SimonBuxx / LogiJS

Discover and create logic circuits
https://logijs.com
GNU General Public License v3.0
42 stars 6 forks source link

Preview function when adding components to canvas #44

Closed crisbbi closed 6 years ago

crisbbi commented 6 years ago

It's now possible to have a preview of the 'Basic' symbols like and/or/xor gates and button/switch/clock/lamp. They are managed as previewSymbol variable and are either instantiated with the according object passed, or just set to null when no more needed, for example clicking on the 'Wiring' or 'Delete' button. To (hopefully) clearify that they are previews, the preview symbols are slightly transparent and follow along the grid.