thinkmap.display.Display

extends:
Jump To: Members Events

A display is a graph that renders its node's and edges on screen using SVG.

Constructor

Instance Methods

Defined in thinkmap.display.Display:

Events

layout : function ( )

this event is fired when the display is drawing and requires a layout to be performed (New entities added to the display or elements changing in size ). Most layouts listen for this event and perform the layout calculation when it is fired. However, it can also be useful to know when the display needs to do a new layout for scrolling and animations.

frame : function ( )

this event is fired on each frame. All work during this event should be completed quickly as it can effect performance

scale : function ( )

this event is fired when the scale for the display has changed.

scroll : function ( )

this event is fired when the globalOffset for the display has changed.

addnode : function ( thinkmap.graph.Node )

This event is fired each time a node is added to the graph. The parameter is the node added.

addedge : function ( thinkmap.graph.Edge )

This event is fired each time an edge is added to the graph. The parameter is the edge added.

removenode : function ( thinkmap.graph.Node )

This event is fired each time a node is removed from the graph. The parameter is the node removed.

removeedge : function ( thinkmap.graph.Edge )

This event is fired each time an edge is removed from the graph. The parameter is the edge removed.

dataupdate : function ( thinkmap.graph.Entity )

This event is fired each time each time dataUpdate on graph is called. This typically signifies that some change occured to the entity's data object. The single parameter is the entity passed to the graphs dataUpdate method.