goessner / mec2

A javascript library for simulating and analysing planar mechanisms.
https://goessner.github.io/mec2
MIT License
5 stars 3 forks source link

'darkmode' with custom 'mec-2' element #25

Open goessner opened 5 years ago

goessner commented 5 years ago

I added darkmode and individual label control to the mec-2 custom element.

<mec-2 width="801" height="601" cartesian x0="400" y0="50" grid darkmode shownodelabels showconstraintlabels="false">
...
</mec-2>

Looks quite good ... !

tschebyschew-dark

jauhl commented 5 years ago

Cool. Do i need an additional module to use custom-elements like that and if yes, where do i get it?