all files / enum/ enum.js

100% Statements 70/70
100% Branches 12/12
100% Functions 7/7
100% Lines 70/70
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200                                                                                                                                                                                                                                                                   
/**
 * enum module defines the public enumerations
 */
define(["require", "exports"], function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    /**
     * Defines the container/canvas transform
     * Self - Sets the transform type as Self
     * Parent - Sets the transform type as Parent
     */
    var RotateTransform;
    (function (RotateTransform) {
        /** Self - Sets the transform type as Self */
        RotateTransform[RotateTransform["Self"] = 1] = "Self";
        /** Parent - Sets the transform type as Parent */
        RotateTransform[RotateTransform["Parent"] = 2] = "Parent";
    })(RotateTransform = exports.RotateTransform || (exports.RotateTransform = {}));
    /** Enables/Disables The element actions
     * None - Diables all element actions are none
     * ElementIsPort - Enable element action is port
     * ElementIsGroup - Enable element action as Group
     * @private
     */
    var ElementAction;
    (function (ElementAction) {
        /** Disables all element actions are none  */
        ElementAction[ElementAction["None"] = 0] = "None";
        /** Enable the element action is Port  */
        ElementAction[ElementAction["ElementIsPort"] = 2] = "ElementIsPort";
        /** Enable the element action as Group  */
        ElementAction[ElementAction["ElementIsGroup"] = 4] = "ElementIsGroup";
    })(ElementAction = exports.ElementAction || (exports.ElementAction = {}));
    /**
     * Defines the constraints to enable/disable certain features of connector.
     * * None - Interaction of the connectors cannot be done.
     * * Select - Selects the connector.
     * * Delete - Delete the connector.
     * * Drag - Drag the connector.
     * * DragSourceEnd - Drag the source end of the connector.
     * * DragTargetEnd - Drag the target end of the connector.
     * * DragSegmentThump - Drag the segment thumb of the connector.
     * * AllowDrop - Allow to drop a node.
     * * Bridging - Creates bridge  on intersection of two connectors.
     * * BridgeObstacle -
     * * InheritBridging - Creates bridge  on intersection of two connectors.
     * * PointerEvents - Sets the pointer events.
     * * Tooltip - Displays a tooltip for the connectors.
     * * InheritToolTip - Displays a tooltip for the connectors.
     * * Interaction - Features of the connector used for interaction.
     * * ReadOnly - Enables ReadOnly
     * * Default - Default features of the connector.
     * @aspNumberEnum
     * @IgnoreSingular
     */
    var ConnectorConstraints;
    (function (ConnectorConstraints) {
        /** Disable all connector Constraints. */
        ConnectorConstraints[ConnectorConstraints["None"] = 1] = "None";
        /** Enables connector to be selected. */
        ConnectorConstraints[ConnectorConstraints["Select"] = 2] = "Select";
        /** Enables connector to be Deleted. */
        ConnectorConstraints[ConnectorConstraints["Delete"] = 4] = "Delete";
        /** Enables connector to be Dragged. */
        ConnectorConstraints[ConnectorConstraints["Drag"] = 8] = "Drag";
        /** Enables connectors source end to be selected. */
        ConnectorConstraints[ConnectorConstraints["DragSourceEnd"] = 16] = "DragSourceEnd";
        /** Enables connectors target end to be selected. */
        ConnectorConstraints[ConnectorConstraints["DragTargetEnd"] = 32] = "DragTargetEnd";
        /** Enables control point and end point of every segment in a connector for editing. */
        ConnectorConstraints[ConnectorConstraints["DragSegmentThumb"] = 64] = "DragSegmentThumb";
        /** Enables AllowDrop constraints to the  connector. */
        ConnectorConstraints[ConnectorConstraints["AllowDrop"] = 128] = "AllowDrop";
        /** Enables bridging to the connector. */
        ConnectorConstraints[ConnectorConstraints["Bridging"] = 256] = "Bridging";
        /** Enables or Disables Bridge Obstacles with overlapping of connectors. */
        ConnectorConstraints[ConnectorConstraints["BridgeObstacle"] = 512] = "BridgeObstacle";
        /** Enables bridging to the connector. */
        ConnectorConstraints[ConnectorConstraints["InheritBridging"] = 1024] = "InheritBridging";
        /** Used to set the pointer events. */
        ConnectorConstraints[ConnectorConstraints["PointerEvents"] = 2048] = "PointerEvents";
        /** Enables or disables tool tip for the connectors */
        ConnectorConstraints[ConnectorConstraints["Tooltip"] = 4096] = "Tooltip";
        /** Enables or disables tool tip for the connectors */
        ConnectorConstraints[ConnectorConstraints["InheritTooltip"] = 8192] = "InheritTooltip";
        /** Enables Interaction. */
        ConnectorConstraints[ConnectorConstraints["Interaction"] = 4218] = "Interaction";
        /** Enables ReadOnly */
        ConnectorConstraints[ConnectorConstraints["ReadOnly"] = 16384] = "ReadOnly";
        /** Enables all constraints. */
        ConnectorConstraints[ConnectorConstraints["Default"] = 11838] = "Default";
    })(ConnectorConstraints = exports.ConnectorConstraints || (exports.ConnectorConstraints = {}));
    /** Enables/Disables the handles of the selector
     * Rotate - Enable Rotate Thumb
     * ConnectorSource - Enable Connector source point
     * ConnectorTarget - Enable Connector target point
     * ResizeNorthEast - Enable ResizeNorthEast Resize
     * ResizeEast - Enable ResizeEast Resize
     * ResizeSouthEast - Enable ResizeSouthEast Resize
     * ResizeSouth - Enable ResizeSouth Resize
     * ResizeSouthWest - Enable ResizeSouthWest Resize
     * ResizeWest - Enable ResizeWest Resize
     * ResizeNorthWest - Enable ResizeNorthWest Resize
     * ResizeNorth - Enable ResizeNorth Resize
     * Default - Enables all constraints
     * @private
     */
    var ThumbsConstraints;
    (function (ThumbsConstraints) {
        /** Enable Rotate Thumb  */
        ThumbsConstraints[ThumbsConstraints["Rotate"] = 2] = "Rotate";
        /** Enable Connector source point  */
        ThumbsConstraints[ThumbsConstraints["ConnectorSource"] = 4] = "ConnectorSource";
        /** Enable Connector target point  */
        ThumbsConstraints[ThumbsConstraints["ConnectorTarget"] = 8] = "ConnectorTarget";
        /** Enable ResizeNorthEast Resize  */
        ThumbsConstraints[ThumbsConstraints["ResizeNorthEast"] = 16] = "ResizeNorthEast";
        /** Enable ResizeEast Resize  */
        ThumbsConstraints[ThumbsConstraints["ResizeEast"] = 32] = "ResizeEast";
        /** Enable ResizeSouthEast Resize */
        ThumbsConstraints[ThumbsConstraints["ResizeSouthEast"] = 64] = "ResizeSouthEast";
        /** Enable ResizeSouth Resize */
        ThumbsConstraints[ThumbsConstraints["ResizeSouth"] = 128] = "ResizeSouth";
        /** Enable ResizeSouthWest Resize */
        ThumbsConstraints[ThumbsConstraints["ResizeSouthWest"] = 256] = "ResizeSouthWest";
        /** Enable ResizeWest Resize */
        ThumbsConstraints[ThumbsConstraints["ResizeWest"] = 512] = "ResizeWest";
        /** Enable ResizeNorthWest Resize */
        ThumbsConstraints[ThumbsConstraints["ResizeNorthWest"] = 1024] = "ResizeNorthWest";
        /** Enable ResizeNorth Resize */
        ThumbsConstraints[ThumbsConstraints["ResizeNorth"] = 2048] = "ResizeNorth";
        /** Enables all constraints */
        ThumbsConstraints[ThumbsConstraints["Default"] = 4094] = "Default";
    })(ThumbsConstraints = exports.ThumbsConstraints || (exports.ThumbsConstraints = {}));
    /**
     * Defines the visibility of the selector handles
     * None - Hides all the selector elements
     * ConnectorSourceThumb - Shows/hides the source thumb of the connector
     * ConnectorTargetThumb - Shows/hides the target thumb of the connector
     * ResizeSouthEast - Shows/hides the bottom right resize handle of the selector
     * ResizeSouthWest - Shows/hides the bottom left resize handle of the selector
     * ResizeNorthEast - Shows/hides the top right resize handle of the selector
     * ResizeNorthWest - Shows/hides the top left resize handle of the selector
     * ResizeEast - Shows/hides the middle right resize handle of the selector
     * ResizeWest - Shows/hides the middle left resize handle of the selector
     * ResizeSouth - Shows/hides the bottom center resize handle of the selector
     * ResizeNorth - Shows/hides the top center resize handle of the selector
     * Rotate - Shows/hides the rotate handle of the selector
     * UserHandles - Shows/hides the user handles of the selector
     * Resize - Shows/hides all resize handles of the selector
     * @aspNumberEnum
     * @IgnoreSingular
     */
    var SelectorConstraints;
    (function (SelectorConstraints) {
        /** Hides all the selector elements */
        SelectorConstraints[SelectorConstraints["None"] = 1] = "None";
        /** Shows/hides the source thumb of the connector */
        SelectorConstraints[SelectorConstraints["ConnectorSourceThumb"] = 2] = "ConnectorSourceThumb";
        /** Shows/hides the target thumb of the connector */
        SelectorConstraints[SelectorConstraints["ConnectorTargetThumb"] = 4] = "ConnectorTargetThumb";
        /** Shows/hides the bottom right resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeSouthEast"] = 8] = "ResizeSouthEast";
        /** Shows/hides the bottom left resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeSouthWest"] = 16] = "ResizeSouthWest";
        /** Shows/hides the top right resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeNorthEast"] = 32] = "ResizeNorthEast";
        /** Shows/hides the top left resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeNorthWest"] = 64] = "ResizeNorthWest";
        /** Shows/hides the middle right resize handle of the selector  */
        SelectorConstraints[SelectorConstraints["ResizeEast"] = 128] = "ResizeEast";
        /** Shows/hides the middle left resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeWest"] = 256] = "ResizeWest";
        /** Shows/hides the bottom center resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeSouth"] = 512] = "ResizeSouth";
        /** Shows/hides the top center resize handle of the selector */
        SelectorConstraints[SelectorConstraints["ResizeNorth"] = 1024] = "ResizeNorth";
        /**  Shows/hides the rotate handle of the selector */
        SelectorConstraints[SelectorConstraints["Rotate"] = 2048] = "Rotate";
        /** Shows/hides the user handles of the selector */
        SelectorConstraints[SelectorConstraints["UserHandle"] = 4096] = "UserHandle";
        /** Shows/hides the default tooltip of nodes and connectors */
        SelectorConstraints[SelectorConstraints["ToolTip"] = 8192] = "ToolTip";
        /** Shows/hides all resize handles of the selector */
        SelectorConstraints[SelectorConstraints["ResizeAll"] = 2046] = "ResizeAll";
        /** Shows all handles of the selector  */
        SelectorConstraints[SelectorConstraints["All"] = 16382] = "All";
    })(SelectorConstraints = exports.SelectorConstraints || (exports.SelectorConstraints = {}));
    /** @private */
    var NoOfSegments;
    (function (NoOfSegments) {
        NoOfSegments[NoOfSegments["Zero"] = 0] = "Zero";
        NoOfSegments[NoOfSegments["One"] = 1] = "One";
        NoOfSegments[NoOfSegments["Two"] = 2] = "Two";
        NoOfSegments[NoOfSegments["Three"] = 3] = "Three";
        NoOfSegments[NoOfSegments["Four"] = 4] = "Four";
        NoOfSegments[NoOfSegments["Five"] = 5] = "Five";
    })(NoOfSegments = exports.NoOfSegments || (exports.NoOfSegments = {}));
});