Skip to content

Introducing Layouts#22

Open
spencer516 wants to merge 6 commits intomasterfrom
add-layouts
Open

Introducing Layouts#22
spencer516 wants to merge 6 commits intomasterfrom
add-layouts

Conversation

@spencer516
Copy link
Contributor

This introduces a new component/primitive/concept for e3 that allows for isolated positioning engines. This can be used for Force Direction, Collision Detection, or anything that might determine how items are positioned that does not fall into the idea of a scale. Part of the plan is to also support Asynchronous layout generation too (perhaps your position algorithm would be better served running in a Web Worker or something).

The current example /force-direction will eventually become a force direction example (I don't think E3 should support force direction out of the box, but this example would show how you could use a force direction library to get that). But, for now, it demonstrates the concept of how a layout generates some of the position data, based on scales.

Only TODOs on this PR, pending feedback, are:

  • Add Force Direction example

Spencer added 6 commits September 4, 2015 17:22
This is going to end up being a "force direction" example...but just wanted to get a simple layout example working first.
return res;
}

function o() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a huge fan of the function names o and g here...very non-descript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments