Open theRoughCode opened 3 years ago
A couple more things the API should allow:
X
) is hardcoded, should be easier to register a new formatter that takes precedence over the built-in ones.numChildren
to indicate classical bits it's really oddMeasure
gates is very complicated
Our current API for the package looks like this:
A few things that would make for a good interface are:
A good example of an interface that we can draw inspiration from is d3.js:
We can select a DOM element, add data to it, and customize it. A similar API for Sqore would work really well.