Coder Social home page Coder Social logo

chomtree's People

Contributors

dependabot[bot] avatar duncgibbs avatar tylercecil avatar

Watchers

 avatar  avatar  avatar

chomtree's Issues

Initialize Project / Package Structure

Need to actually set up the npm package / put some structure in. I think once I see the project set up, with tests, I'll feel like I understand what's going on.

`playground.html` should have a list of default tests.

I'm picturing just a table, with a number of stress tests. That way, if any changes are made to rendering, we can just open up playground.html and spot check a number of cases. In the future, once we are stable, that table can include the "considered correct" trees as well, so the changes can be seen. If that happens, though, we'll need to be sure to update them as rendering changes (can make a hook for that).

Collapsed Trees should be children, and not leaf data

[X* data] is currently a tree with one node, which contains leaf data. However, "data" will be rendered as its own node, with a "triangle link" between X and data. Therefor, the real data model should build data as a child node with leaf data.

`sup` and `sup` order on `nodeType`, and general issues with `WORD` tokens

When rendering the nodeType, there's no way of knowing the order that sub and sup should be rendered. I think, honestly, this is an issue with the way WORD tokens are tokenized, and I've been thinking of what I'd prefer.

sub and sup tokens should be made first class, and WORDS should be chains of normal, sub, and sup tokens. What's more, while WORD is being turned into a more complicated structure, it would make a lot of sense to allow for quote-delineated words. This would allow for multi-word nodeTypes, as well as a mechanism to "escape" special characters (by treating everything in the quotes as a literal.

See #16 to see the current issue.

I don't want to get into this, though, until after rendering is totally finished.

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.