Devel-SizeMe
view release on metacpan or search on metacpan
0.02 2012-10-02 Tim Bunce
* Renamed to Devel::SizeMe.
* Assorted fixes, cleanups and polish.
* Greatly extended perl_size coverage thanks to rafl.
0.01 2012-09-29 Tim Bunce
* Created new Devel::Memory extension using a modified version of
Devel::Size's perl memory data crawler, extended to support
callbacks, a 'data path name' concept, data streaming,
data processing and visualization.
* The Devel::Memory core was based on 0.77. The generic changes
will be fed back to Devel::Size so it will remain the
canonical source of knowledge of how to crawl perl internals.
Once Devel::Size has the changes then Devel::Memory will use
it as the core, but compiled with options to enable the extra
features. That way Devel::Size won't have any performance penalty.
* This is very much experimental 'alpha' software. You're milage will
lib/Devel/SizeMe/Graph/static/jit.js view on Meta::CPAN
onMouseLeave: function(node, eventInfo, e) {
viz.canvas.getElement().style.cursor = '';
}
}
});
(end code)
Parameters:
enable - (boolean) Default's *false*. Whether to enable the Event system.
enableForEdges - (boolean) Default's *false*. Whether to track events also in arcs. If *true* the same callbacks -described below- are used for nodes *and* edges. A simple duck type check for edges is to check for *node.nodeFrom*.
type - (string) Default's 'auto'. Whether to attach the events onto the HTML labels (via event delegation) or to use the custom 'Native' canvas Event System of the library. 'auto' is set when you let the <Options.Label> *type* parameter decide this...
onClick(node, eventInfo, e) - Triggered when a user performs a click in the canvas. *node* is the <Graph.Node> clicked or false if no node has been clicked. *e* is the grabbed event (should return the native event in a cross-browser manner). *event...
onRightClick(node, eventInfo, e) - Triggered when a user performs a right click in the canvas. *node* is the <Graph.Node> right clicked or false if no node has been clicked. *e* is the grabbed event (should return the native event in a cross-browse...
onMouseMove(node, eventInfo, e) - Triggered when the user moves the mouse. *node* is the <Graph.Node> under the cursor as it's moving over the canvas or false if no node has been clicked. *e* is the grabbed event (should return the native event in ...
onMouseEnter(node, eventInfo, e) - Triggered when a user moves the mouse over a node. *node* is the <Graph.Node> that the mouse just entered. *e* is the grabbed event (should return the native event in a cross-browser manner). *eventInfo* is an obj...
onMouseLeave(node, eventInfo, e) - Triggered when the user mouse-outs a node. *node* is the <Graph.Node> 'mouse-outed'. *e* is the grabbed event (should return the native event in a cross-browser manner). *eventInfo* is an object containing useful ...
onDragStart(node, eventInfo, e) - Triggered when the user mouse-downs over a node. *node* is the <Graph.Node> being pressed. *e* is the grabbed event (should return the native event in a cross-browser manner). *eventInfo* is an object containing us...
onDragMove(node, eventInfo, e) - Triggered when a user, after pressing the mouse button over a node, moves the mouse around. *node* is the <Graph.Node> being dragged. *e* is the grabbed event (should return the native event in a cross-browser manne...
onDragEnd(node, eventInfo, e) - Triggered when a user finished dragging a node. *node* is the <Graph.Node> being dragged. *e* is the grabbed event (should return the native event in a cross-browser manner). *eventInfo* is an object containing usefu...
onDragCancel(node, eventInfo, e) - Triggered when the user releases the mouse button over a <Graph.Node> that wasn't dragged (i.e. the user didn't perform any mouse movement after pressing the mouse button). *node* is the <Graph.Node> being dragged...
lib/Devel/SizeMe/Graph/static/jit.js view on Meta::CPAN
},
/*
Method: onClick
Animates the <ST> to center the node specified by *id*.
Parameters:
id - (string) A node id.
options - (optional|object) A group of options and callbacks described below.
onComplete - (object) An object callback called when the animation finishes.
Move - (object) An object that has as properties _offsetX_ or _offsetY_ for adding some offset position to the centered node.
Example:
(start code js)
st.onClick('mynodeid', {
Move: {
enable: true,
offsetX: 30,
( run in 0.798 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )