Coder Social home page Coder Social logo

Diamond as native shape about isomer HOT 6 OPEN

jdan avatar jdan commented on September 2, 2024
Diamond as native shape

from isomer.

Comments (6)

jdan avatar jdan commented on September 2, 2024 1

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.

whoeverest avatar whoeverest commented on September 2, 2024

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.

jbovenschen avatar jbovenschen commented on September 2, 2024

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.

jdan avatar jdan commented on September 2, 2024

@jbovenschen happy to review if you ever want to merge it :) of course you don't need my approval

from isomer.

derhuerst avatar derhuerst commented on September 2, 2024

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.

derhuerst avatar derhuerst commented on September 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.