Coder Social home page Coder Social logo

fsscad's People

Contributors

bisen2 avatar

Watchers

 avatar

fsscad's Issues

Improve readability of generated OpenSCAD

Right now the generated OpenSCAD is not at all formatted - it all outputs as a single line. It would be nice if we could insert some newlines and indents to make the generated code easier for a human to read.

API improvement for named colors

Currently, the API exposes a DU listing all of the valid color names. There are a few reasons that this may be a potential problem:

  • Any changes to this DU would be a breaking change
  • This will be a bit of a pain to maintain. How often do these values change? Is it worthwhile to come up with a more automated solution to keep this current?

Add more Component Builder functions

There are a lot of helper functions that should be added to the ComponentBuilders module. Some examples:

  • Functions defining curried factories for all base component types
  • Functions utilizing default values for each base component or transformation
  • Partially applied variations of transformations (translateX, translateY, etc)
  • Functions for defining combinations of components (perhaps using computation expressions?)

Use more descriptive types for the Color transformations

For both ColorHex and ColorName , the current signatures are color:string * target:Component -> Component. In both of these cases, not all strings are valid inputs for the color argument, so we should introduce types to better define the valid inputs. In particular:

  • ColorHex's color argument should take a type that allows only valid color hex codes
  • ColorName's color argument should take a DU that defines all of the valid color names

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.