nx.graphic.Topology.StageMixin Class
Topology stage class
Item Index
Methods
Events
Methods
adaptToContainer
()
Make topology adapt to container,container should set width/height
adjustLayout
()
If enable enableSmartNode, this function will auto adjust the node's overlapping and set the nodes to right size
fit
()
Make topology graphic fit stage
move
(
-
x
-
y
-
[duration]
Move topology
zoomByBound
(
-
inBound
-
[callback]
-
[context]
-
[duration]
Zoom topology by a bound
Properties
adaptive
Boolean
Set to true will adapt to topology's outside container, set to ture will ignore width/height
Events
fit
Fired when after topology fit to stage
ready
Fired when topology appended to container with with& height