MindFusion.Diagramming for JavaScript Programmer's Guide

Behavior Enumeration

See Also
 





Defines values that specify how the component responds to actions performed by the user.

Namespace: MindFusion.Diagramming
File: Enum.js

 Syntax

JavaScript  Copy Code

// enum
Behavior = {}

 Members

  Member name Description

DoNothing

The control ignores users actions with the mouse, but raises the appropriate mouse events. This mode allows applications to implement their own mouse-drawing behavior, disabling the default response to users actions.

DrawLinks

Drawing started over a node creates a DiagramLink. Otherwise a lasso rectangle is displayed allowing the selection of items.

DrawShapes

Drawing with the mouse creates ShapeNode instances.

LinkShapes

A mode that is suitable for creating flowcharts and process diagrams. Drawing over empty document area creates a ShapeNode instance. Drawing started over a node creates a DiagramLink.

Modify

Objects can be selected and modified. New objects cannot be created.

 Remarks

Member of this enumeration can be assigned to the Behavior property of the Diagram class.

 See Also