Telescope icon indicating copy to clipboard operation
Telescope copied to clipboard

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

Open jecisc opened this issue 7 years ago • 1 comments

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 avatar Oct 24 '18 10:10 jecisc

	
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).

jecisc avatar Oct 24 '18 10:10 jecisc