Comments (6)
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?
from isomer.
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?
from isomer.
I agree to with @jdan. But i think it is better to just create separate builds for isomer.
So we can keep the utils / shapes in the some repository.
In my own fork i added a method to add custom Shapes / Paths to the Shape and Path constructors.
from isomer.
@jbovenschen happy to review if you ever want to merge it :) of course you don't need my approval
from isomer.
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".
I ended up with a build system that reads the list of modules do be bundled from package.json
. And I am quite happy with it. Read more about how to customize velo with your own 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.
from isomer.
Things rather unrelated to the core like #8 could be done like this.
In fact, in velo, I added a few things that are in the main repo, but not in the default build.
from isomer.
Related Issues (20)
- Highlight Edges of Shapes
- isomer
- Can we draw image instead of Isomer object?
- Sprite/Image support HOT 6
- How to implement a 3D Mesh? HOT 2
- How to invert the _translatePoint function? HOT 2
- how to wireframe 2d figures? HOT 2
- Bug with certain dimensions HOT 3
- Missing tag for v0.2.5 HOT 1
- Adding text labels HOT 1
- Animating without leaving artifacts HOT 3
- Object.position or shape.x shape.y shape.z exists ?
- Should I use isomer for a new project? HOT 3
- integration with paperjs HOT 1
- creating rounded corners in cube HOT 1
- How to use isomer.js with Drag and drop like, https://illuminations.nctm.org/activity.aspx?id=4182 HOT 1
- Documentation improvements HOT 3
- Possible to create spheres? HOT 1
- Is there any way to move the camera? HOT 2
- Please remove ORIGIN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isomer.