You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I usually encourage folks to just go forth and make those shapes, instead of adding them to the standard library. For instance, I can imagine something like
var diamond = require("isomer-diamond");
iso.add(diamond(8));
This should be doable now, but I hope to make it easier - by making the Shape API better. Thoughts?
I agree with @jdan it's better to keep special shapes separate. Maybe we should create an isomer-shapes repository, so we can keep track of them there?
I had the same problem with velo, my minimalistic 2D canvas library. I wanted to keep the footprint very small but introduce some flexibility for developers to use third-party "modules".
Because modules in velo are just directories containing JavaScript files, developers can use Git submodules to add their third-party stuff and still keep the main repo clean.
I'd love to have the diamond-shape as a native shape like, preferably with the ability to set sides (much like cylinder objects).
Oh, and love your work <3