Skip to content
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

The node creation stategy should be able to be added after we add elements #73

Open
jecisc opened this issue Oct 24, 2018 · 1 comment

Comments

@jecisc
Copy link
Member

jecisc commented Oct 24, 2018

Currently, the node creation strategy needs to be created before we add elements to the drawable.

This is counter-intuitive because the rest of the Telescope API does not need an order.

We should be able to invert the order of the messages.

@jecisc
Copy link
Member Author

jecisc commented Oct 24, 2018

	
visu nodeCreationStrategy
	compositeProperty: #types;
	compositeChildrenLayout: (TLLinearLayout gap: 20 ratio: 16 / 9).

packages := visu addNodesFromEntities: (model allModelNamespaces sort: [ :p1 :p2 | p1 mooseName <= p2 mooseName ]).

Should produce the same as

packages := visu addNodesFromEntities: (model allModelNamespaces sort: [ :p1 :p2 | p1 mooseName <= p2 mooseName ]).
	
visu nodeCreationStrategy
	compositeProperty: #types;
	compositeChildrenLayout: (TLLinearLayout gap: 20 ratio: 16 / 9).

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

No branches or pull requests

1 participant