Home > @jsplumbtoolkit/browser-ui
#
browser-ui package#
ClassesClass | Description |
---|---|
AbsoluteTiledBackground | |
BrowserUIBase | Base instance of the Toolkit that uses ajax to load data asynchronously. This is extended in the various integrations and in the vanilla packages. |
BrowserUIMagnetizer | An extension of the Magnetizer that knows about the DOM, offering an executeAtEvent method that takes a MouseEvent as the focus of the operation. |
BrowserUIModel | A Model describes the appearance and behaviour of a set of Nodes, Edges, Ports and Groups. You do not create one of these directly; instead you pass a definition to a jsPlumbToolkit.render or jsPlumbToolkitBrowserUI.newInstance() call. Although the Model has the same syntax in each context, you are encouraged to configure model-specific things in the Model you pass to the newInstance method (such as, which Nodes/Ports can be connected to which others, what is the maximum number of connections, etc), and view-specific things (such as css classes, paint styles, connector appearance etc) to the model you pass to the render method. The render method automatically merges in a Node/Port/Edge definition from a Model defined on the associated Toolkit, if there is one. Only the Surface widget provides this. The Toolkit instance creates a Model but it is headless. |
Decorator | |
FixedLayer | |
GroupLayoutAdapter | Layout adapter that operates on a single group. getElements returns member of this group. filter filters out vertices that are not children of this group.TODO why exactly does filter have to exist here? If getElements only returns group members, what's the filter for? |
IngestedSurface | |
LogarithmicTiledBackground | |
PinchListener | |
SimpleBackground | |
Surface | |
TiledBackground | |
UIPath | A wrapper around the Toolkit's path object, which offers a few DOM specific methods. |
xml |
#
EnumerationsEnumeration | Description |
---|---|
PanAxes | Axes in which the canvas can be panned - x, y, or both. |
SurfaceMode |
#
FunctionsFunction | Description |
---|---|
addWheelListener(el, callback, ignoreTouchWheelEvents, requireMetaKey) | |
ajax(params) | Basic ajax function. |
attWithValue(att, value) | |
debounce(fn, timeout) | Create a debounced version of the given function. |
getAbsolutePosition(element) | Returns the position of the given element, as reported by the left and top properties of the element's style . |
mergeWithParents(type, map, shouldOverride) | Extract the definition(s) with the given type and merge them, |
registerDecorator(name, dec) | |
removeWheelListener(el, callback) | |
setAbsolutePosition(element, x, y) | Sets the position of the given DOM element, by setting values for left and top on the element's style . |
setBoundingRect(element, origin, size) | Sets the position and size of the given element. This method is equivalent to first calling setAbsolutePosition and then setSize on the given element. |
setSize(element, w, h) | Sets the size of the given DOM element, by setting values for width and height on the element's style . |
shouldOverrideEndpoints(p, from) |
#
InterfacesInterface | Description |
---|---|
Background | |
BackgroundOptions | |
BasePortDefinition | |
ConnectorEditor | |
ConnectorEditorActivateParams | |
ConnectorEditorFactory | |
ConstructableConnectorEditor | |
EdgeDefinition | |
EndpointDefinition | Definition of an Endpoint to be added to some Vertex. This is largely the same as a PortDefinition in the view, with the exception that an EndpointDefinition supports portId (which is used to look up a PortDefinition, if found), and also portId . |
IngestOptions | |
InternalSurfacePluginOptions | |
IntersectingObjectData | |
jsPlumbToolkitDOMElement | |
jsPlumbToolkitDOMInformation | |
ModelOptions | |
PanZoomOptions | Options for the PanZoom widget. This widget is used internally by the Toolkit and is not something users of the library will need to interact with. |
PinchListenerOptions | Pinch listener for all touch browsers - ipad, android, and windows laptops/surfaces. Needless to say, every browser does it differently. IE10+ uses PointerEvents; ipad safari/windows chrome/ipad chrome/ android chrome use TouchEvents. The listener posts pinchstart, pinch happening, and pinch end events. |
SimpleBackgroundOptions | |
SurfaceDragOptions | |
SurfaceEdgeAddedParams | Payload for an edge:added event from a surface. |
SurfaceGridOptions | Options for the grid in a Surface. |
SurfaceGroupAddedParams | Payload for a group:added event from the Surface. |
SurfaceGroupCollapsedParams | Payload for a group:collapse event from a surface |
SurfaceGroupExpandedParams | Payload for a group:expand event from a surface |
SurfaceGroupMemberAddedParams | Payload for a group:member:added event from the Surface. |
SurfaceGroupMemberRemovedParams | Payload for a group:member:removed event from the Surface. |
SurfaceGroupRemovedParams | Payload for a group:removed event from the Surface. |
SurfaceGroupResizedParams | Payload for a group:resize event from a surface. |
SurfaceMagnetizeOptions | Options for the magnetize functionality of the Surface. |
SurfaceNodeAddedParams | Payload for a node:added event from the Surface. |
SurfaceNodeRemovedParams | Payload for a node:removed event from the Surface. |
SurfaceObjectInfo | |
SurfacePanZoomParams | Payload for a pan/zoom event from a surface. |
SurfacePlugin | |
SurfacePluginOptions | |
SurfacePortRemovedParams | Payload for a port:removed event from a Surface. |
SurfaceRenderOptions | This interface defines the allowed parameters on a render call that will create a new Surface. |
SurfaceSelector | |
SurfaceVertexAddedParams | Payload for a node:added or group:added event from the Surface. |
SurfaceVertexMoveStartParams | Payload for the node:move:start event that is fired when a node/group has just begun to be moved. |
SurfaceVertexRemovedParams | Parent payload for a node:removed or group:removed event from the Surface. |
SurfaceViewOptions | |
SurfaceWheelOptions | |
TemplateRenderer | Defines a template renderer |
TiledBackgroundOptions | |
UIGroupDefinition | Definition of a group in the view. |
UINodeDefinition | |
UIPortDefinition | Definition of a port type. |
UIVertexDefinition | |
ViewEdgeOptions | |
ViewGroupOptions | |
ViewNodeOptions | |
ViewNodeOrPortOptions | |
ViewOptionsCommon | |
ViewportBounds | Models the current bounds of a viewport, containing its left/top, width/height, padding and current zoom. |
ViewPortOptions | |
WheelOptions | Options for how to respond to wheel events. |
#
Variables#
Type AliasesType Alias | Description |
---|---|
DecoratorSpec | |
FixedElementConstraint | |
FixedElementConstraints | |
FullDecoratorSpec | |
FullPluginSpec | |
IntersectingElementsFilter | |
IntersectingVertex | |
ModelEventCallback | |
PanAxis | Axes in which the canvas can be panned - x, y, or both. |
SupportsClassManipulation | List of entities whose class, in the visual representation, can be manipulated. |
SupportsClassManipulationElement | Models some entity whose class, in the visual representation, can be manipulated. |
SurfacePluginSpec | |
TileSpecs | |
ViewOptionsEntry | |
ZoomRange | Models the minimum and maximum values in an allowed zoom range. These value are expressed decimals: 0.5 means 50%, for instance. |