-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor logic for scaling nodes #32
Comments
Determine node width deterministically without using / reading / setting node.width()Create a function in element.js:dimensions, that does the following: This function will be used to deterministically compute how wide the node needs to be to accommodate each state var / unit of information and will set the node width before drawing any aux items. Once width is set, draw each aux item without worrying about width overflow |
Nodes are scaled based on whether they are a multimer, or have state/infos. Ideally these should act as functional transforms on the shape arguments instead of a sequence of if statements.
Cases that also need to be handled:
The text was updated successfully, but these errors were encountered: