Plugins for common behaviors is provided for convenience.
Each package describes usages with example code.
-
anim
allows for animation of a node's property like moving it horizontally or some other direction -
click
to detect user mouse-clicks on a node -
double-click
to detect user mouse double-clicks on a node -
drag-other
when applied to a node, when that node is dragged, the plugin will move another node. This is useful for title bars where dragging the title bar actually drags its parent window -
drag
when applied to a node, makes that node draggable with a mouse -
focus
allows a node to grab keyboard focus and detect key presses -
hover
detects when a mouse cursor hovers or moves over a node. This plugin can be used to create hover-over effects -
mouse-drag
detects a mouse-drag gesture over a node. When a mouse button-press over a node is followed by a mouse move - this is a mouse-drag. This is different from thedrag
plugin, because this plugin simply events on the gesture, whereasdrag
actually moves the node across the screen. -
is a tech demo - and has not been used in a real application. This plugin when applied to a node, detects when a node is being resized, but redirects that to another node. Analogous to aresize-other
drag-other
. -
is a tech demo - and has not been used in a real application. This plugin when applied to a node, allows the node to be resizable.resize
-
side-resize
when applied to a node and configured for one of theleft
,top
,left-top
,right
,bottom
, orright-bottom
will resize its parent when the node is dragged around. Can be used to implement resizing of a node when grabbed by its side. -
zindex
when this plugin is applied to a node, it makes all of the node's child nodes clickable. When a child-node is clicked, it changes its z-index to move to the topmost child.
-
vert
when applied to a node will arrange its kid nodes vertically with configurable spacing -
horiz
likevert
except horizontal -
docker
allows docking of a node to its parent's borders (e.g. Top-Left docking)
Use the issues
capability in Github to suggest new plugins