Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • mxConstants

Index

Constructors

Properties

Constructors

constructor

Properties

Static ABSOLUTE_LINE_HEIGHT

ABSOLUTE_LINE_HEIGHT: false

Specifies if absolute line heights should be used (px) in CSS. Default is false. Set this to true for backwards compatibility.

Static ALIGN_BOTTOM

ALIGN_BOTTOM: "bottom"

Constant for bottom vertical alignment. Default is bottom.

Static ALIGN_CENTER

ALIGN_CENTER: "center"

Constant for center horizontal alignment. Default is center.

Static ALIGN_LEFT

ALIGN_LEFT: "left"

Constant for left horizontal alignment. Default is left.

Static ALIGN_MIDDLE

ALIGN_MIDDLE: "middle"

Constant for middle vertical alignment. Default is middle.

Static ALIGN_RIGHT

ALIGN_RIGHT: "right"

Constant for right horizontal alignment. Default is right.

Static ALIGN_TOP

ALIGN_TOP: "top"

Constant for top vertical alignment. Default is top.

Static ARROW_BLOCK

ARROW_BLOCK: "block"

Constant for block arrow markers.

Static ARROW_BLOCK_THIN

ARROW_BLOCK_THIN: "blockThin"

Constant for thin block arrow markers.

Static ARROW_CLASSIC

ARROW_CLASSIC: "classic"

Constant for classic arrow markers.

Static ARROW_CLASSIC_THIN

ARROW_CLASSIC_THIN: "classicThin"

Constant for thin classic arrow markers.

Static ARROW_DIAMOND

ARROW_DIAMOND: "diamond"

Constant for diamond arrow markers.

Static ARROW_DIAMOND_THIN

ARROW_DIAMOND_THIN: "diamondThin"

Constant for thin diamond arrow markers.

Static ARROW_OPEN

ARROW_OPEN: "open"

Constant for open arrow markers.

Static ARROW_OPEN_THIN

ARROW_OPEN_THIN: "openThin"

Constant for thin open arrow markers.

Static ARROW_OVAL

ARROW_OVAL: "oval"

Constant for oval arrow markers.

Static ARROW_SIZE

ARROW_SIZE: number

Defines the size of the arrowhead in the arrow shape. Default is 30.

default

30

Static ARROW_SPACING

ARROW_SPACING: number

Defines the spacing between the arrow shape and its terminals. Default is 0.

default

0

Static ARROW_WIDTH

ARROW_WIDTH: number

Defines the width of the arrow shape. Default is 30.

default

30

Static CONNECT_HANDLE_FILLCOLOR

CONNECT_HANDLE_FILLCOLOR: string

Defines the color to be used for the connect handle fill color. Use 'none' for no color. Default is #0000FF (blue).

default

#0000FF

Static CONNECT_TARGET_COLOR

CONNECT_TARGET_COLOR: string

Defines the color to be used for highlighting a target cell for a new or changed connection. Note that this may be either a source or target terminal in the graph. Use 'none' for no color. Default is #0000FF.

default

#0000FF

Static CURSOR_BEND_HANDLE

CURSOR_BEND_HANDLE: "crosshair"

Defines the cursor for a movable bend. Default is 'crosshair'.

Static CURSOR_CONNECT

CURSOR_CONNECT: "pointer"

Defines the cursor for a connectable state. Default is 'pointer'.

Static CURSOR_LABEL_HANDLE

CURSOR_LABEL_HANDLE: "default"

Defines the cursor for a movable label. Default is 'default'.

Static CURSOR_MOVABLE_EDGE

CURSOR_MOVABLE_EDGE: "move"

Defines the cursor for a movable edge. Default is 'move'.

Static CURSOR_MOVABLE_VERTEX

CURSOR_MOVABLE_VERTEX: "move"

Defines the cursor for a movable vertex. Default is 'move'.

Static CURSOR_TERMINAL_HANDLE

CURSOR_TERMINAL_HANDLE: "pointer"

Defines the cursor for a terminal handle. Default is 'pointer'.

Static CURSOR_VIRTUAL_BEND_HANDLE

CURSOR_VIRTUAL_BEND_HANDLE: "crosshair"

Defines the cursor for a movable bend. Default is 'crosshair'.

Static DEFAULT_FONTFAMILY

DEFAULT_FONTFAMILY: string

Defines the default family for all fonts. Default is Arial,Helvetica.

default

'Arial,Helvetica'

Static DEFAULT_FONTSIZE

DEFAULT_FONTSIZE: number

Defines the default size (in px). Default is 11.

default

11

Static DEFAULT_FONTSTYLE

DEFAULT_FONTSTYLE: number

Defines the default style for all fonts. Default is 0. This can be set to any combination of font styles as follows.

(code) mxConstants.DEFAULT_FONTSTYLE = mxConstants.FONT_BOLD | mxConstants.FONT_ITALIC; (end)

default

0

Static DEFAULT_HOTSPOT

DEFAULT_HOTSPOT: number

Defines the portion of the cell which is to be used as a connectable region. Default is 0.3. Possible values are 0 < x <= 1.

default

0.3

Static DEFAULT_IMAGESIZE

DEFAULT_IMAGESIZE: number

Defines the default width and height for images used in the label shape. Default is 24.

default

24

Static DEFAULT_INVALID_COLOR

DEFAULT_INVALID_COLOR: string

Specifies the default invalid color. Default is #FF0000.

default

#FF0000

Static DEFAULT_MARKERSIZE

DEFAULT_MARKERSIZE: number

Defines the default size for all markers. Default is 6.

default

6

Static DEFAULT_STARTSIZE

DEFAULT_STARTSIZE: number

Defines the default start size for swimlanes. Default is 40.

default

40

Static DEFAULT_TEXT_DIRECTION

DEFAULT_TEXT_DIRECTION: ""

Defines the default value for the if no value is defined for it in the style. Default value is an empty string which means the default system setting is used and no direction is set.

Static DEFAULT_VALID_COLOR

DEFAULT_VALID_COLOR: string

Specifies the default valid color. Default is #0000FF.

default

#00FF00

Static DIALECT_MIXEDHTML

DIALECT_MIXEDHTML: "mixedHtml"

Defines the mixed HTML display dialect name.

Static DIALECT_PREFERHTML

DIALECT_PREFERHTML: "preferHtml"

Defines the preferred HTML display dialect name.

Static DIALECT_STRICTHTML

DIALECT_STRICTHTML: "strictHtml"

Defines the strict HTML display dialect.

Static DIALECT_SVG

DIALECT_SVG: "svg"

Defines the SVG display dialect name.

Static DIALECT_VML

DIALECT_VML: "vml"

Defines the VML display dialect name.

Static DIRECTION_EAST

DIRECTION_EAST: "east"

Constant for direction east. Default is east.

Static DIRECTION_MASK_ALL

DIRECTION_MASK_ALL: number

Bitwise mask for all directions.

default

15

Static DIRECTION_MASK_EAST

DIRECTION_MASK_EAST: number

Bitwise mask for east direction.

default

8

Static DIRECTION_MASK_NONE

DIRECTION_MASK_NONE: number

Constant for no direction.

default

0

Static DIRECTION_MASK_NORTH

DIRECTION_MASK_NORTH: number

Bitwise mask for north direction.

default

2

Static DIRECTION_MASK_SOUTH

DIRECTION_MASK_SOUTH: number

Bitwise mask for south direction.

default

4

Static DIRECTION_MASK_WEST

DIRECTION_MASK_WEST: number

Bitwise mask for west direction.

default

1

Static DIRECTION_NORTH

DIRECTION_NORTH: "north"

Constant for direction north. Default is north.

Static DIRECTION_SOUTH

DIRECTION_SOUTH: "south"

Constant for direction south. Default is south.

Static DIRECTION_WEST

DIRECTION_WEST: "west"

Constant for direction west. Default is west.

Static DROP_TARGET_COLOR

DROP_TARGET_COLOR: string

Defines the color to be used for the highlighting target parent cells (for drag and drop). Use 'none' for no color. Default is #0000FF.

default

#0000FF

Static EDGESTYLE_ELBOW

EDGESTYLE_ELBOW: "elbowEdgeStyle"

Name of the elbow edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGESTYLE_ENTITY_RELATION

EDGESTYLE_ENTITY_RELATION: "entityRelationEdgeStyle"

Name of the entity relation edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGESTYLE_LOOP

EDGESTYLE_LOOP: "loopEdgeStyle"

Name of the loop edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGESTYLE_ORTHOGONAL

EDGESTYLE_ORTHOGONAL: "orthogonalEdgeStyle"

Name of the generic orthogonal edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGESTYLE_SEGMENT

EDGESTYLE_SEGMENT: "segmentEdgeStyle"

Name of the generic segment edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGESTYLE_SIDETOSIDE

EDGESTYLE_SIDETOSIDE: "sideToSideEdgeStyle"

Name of the side to side edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGESTYLE_TOPTOBOTTOM

EDGESTYLE_TOPTOBOTTOM: "topToBottomEdgeStyle"

Name of the top to bottom edge style. Can be used as a string value for the STYLE_EDGE style.

Static EDGE_SELECTION_COLOR

EDGE_SELECTION_COLOR: string

Defines the color to be used for the selection border of edges. Use 'none' for no color. Default is #00FF00.

default

#00FF00

Static EDGE_SELECTION_DASHED

EDGE_SELECTION_DASHED: true

Defines the dashed state to be used for the edge selection border. Default is true.

Static EDGE_SELECTION_STROKEWIDTH

EDGE_SELECTION_STROKEWIDTH: number

Defines the strokewidth to be used for edge selections. Default is 1.

default

1

Static ELBOW_HORIZONTAL

ELBOW_HORIZONTAL: "horizontal"

Constant for elbow horizontal. Default is horizontal.

Static ELBOW_VERTICAL

ELBOW_VERTICAL: "vertical"

Constant for elbow vertical. Default is horizontal.

Static ENTITY_SEGMENT

ENTITY_SEGMENT: number

Defines the length of the horizontal segment of an Entity Relation. This can be overridden using <mxConstants.STYLE_SEGMENT> style. Default is 30.

Static FONT_BOLD

FONT_BOLD: number

Constant for bold fonts. Default is 1.

default

1

Static FONT_ITALIC

FONT_ITALIC: number

Constant for italic fonts. Default is 2.

default

2

Static FONT_STRIKETHROUGH

FONT_STRIKETHROUGH: number

Constant for strikthrough fonts. Default is 8.

since

mxgraph 4.1.0

default

8

Static FONT_UNDERLINE

FONT_UNDERLINE: number

Constant for underlined fonts. Default is 4.

default

4

Static GUIDE_COLOR

GUIDE_COLOR: string

Defines the color to be used for the guidelines in mxGraphHandler. Default is #FF0000.

default

#FF0000

Static GUIDE_STROKEWIDTH

GUIDE_STROKEWIDTH: number

Defines the strokewidth to be used for the guidelines in mxGraphHandler. Default is 1.

default

1

Static HANDLE_FILLCOLOR

HANDLE_FILLCOLOR: string

Defines the color to be used for the handle fill color. Use 'none' for no color. Default is #00FF00 (green).

default

#00FF00

Static HANDLE_SIZE

HANDLE_SIZE: number

Defines the default size for handles. Default is 6.

default

6

Static HANDLE_STROKECOLOR

HANDLE_STROKECOLOR: string

Defines the color to be used for the handle stroke color. Use 'none' for no color. Default is black.

Static HIGHLIGHT_COLOR

HIGHLIGHT_COLOR: string

Defines the color to be used for the cell highlighting. Use 'none' for no color. Default is #00FF00.

default

#00FF00

Static HIGHLIGHT_OPACITY

HIGHLIGHT_OPACITY: number

Opacity (in %) used for the highlights (including outline). Default is 100.

default

100

Static HIGHLIGHT_SIZE

HIGHLIGHT_SIZE: number

Size of the constraint highlight (in px). Default is 2.

default

2

Static HIGHLIGHT_STROKEWIDTH

HIGHLIGHT_STROKEWIDTH: number

Defines the strokewidth to be used for the highlights. Default is 3.

default

3

Static INVALID_COLOR

INVALID_COLOR: string

Defines the color to be used for the coloring invalid connection previews. Use 'none' for no color. Default is #FF0000.

default

#FF0000

Static INVALID_CONNECT_TARGET_COLOR

INVALID_CONNECT_TARGET_COLOR: string

Defines the color to be used for highlighting a invalid target cells for a new or changed connections. Note that this may be either a source or target terminal in the graph. Use 'none' for no color. Default is #FF0000.

default

#FF0000

Static LABEL_HANDLE_FILLCOLOR

LABEL_HANDLE_FILLCOLOR: string

Defines the color to be used for the label handle fill color. Use 'none' for no color. Default is yellow.

Static LABEL_HANDLE_SIZE

LABEL_HANDLE_SIZE: number

Defines the default size for label handles. Default is 4.

default

4

Static LINE_ARCSIZE

LINE_ARCSIZE: number

Defines the size of the arcs for rounded edges. Default is 20.

default

20

Static LINE_HEIGHT

LINE_HEIGHT: number

Defines the default line height for text labels. Default is 1.2.

default

1.2

Static LOCKED_HANDLE_FILLCOLOR

LOCKED_HANDLE_FILLCOLOR: string

Defines the color to be used for the locked handle fill color. Use 'none' for no color. Default is #FF0000 (red).

default

#FF0000

Static MAX_HOTSPOT_SIZE

MAX_HOTSPOT_SIZE: number

Defines the maximum size in pixels of the portion of the cell which is to be used as a connectable region. Use 0 for no maximum. Default is 0.

default

0

Static MIN_HOTSPOT_SIZE

MIN_HOTSPOT_SIZE: number

Defines the minimum size in pixels of the portion of the cell which is to be used as a connectable region. Default is 8.

default

8

Static NODETYPE_ATTRIBUTE

NODETYPE_ATTRIBUTE: number

DOM node of type ATTRIBUTE.

default

2

Static NODETYPE_CDATA

NODETYPE_CDATA: number

DOM node of type CDATA.

default

4

Static NODETYPE_COMMENT

NODETYPE_COMMENT: number

DOM node of type COMMENT.

default

8

Static NODETYPE_DOCUMENT

NODETYPE_DOCUMENT: number

DOM node of type DOCUMENT.

default

9

Static NODETYPE_DOCUMENTTYPE

NODETYPE_DOCUMENTTYPE: number

DOM node of type DOCUMENTTYPE.

default

10

Static NODETYPE_DOCUMENT_FRAGMENT

NODETYPE_DOCUMENT_FRAGMENT: number

DOM node of type DOCUMENT_FRAGMENT.

default

11

Static NODETYPE_ELEMENT

NODETYPE_ELEMENT: 1

DOM node of type ELEMENT.

default

1

Static NODETYPE_ENTITY

NODETYPE_ENTITY: number

DOM node of type ENTITY.

default

6

Static NODETYPE_ENTITY_REFERENCE

NODETYPE_ENTITY_REFERENCE: number

DOM node of type ENTITY_REFERENCE.

default

5

Static NODETYPE_NOTATION

NODETYPE_NOTATION: number

DOM node of type NOTATION.

default

12

Static NODETYPE_PROCESSING_INSTRUCTION

NODETYPE_PROCESSING_INSTRUCTION: number

DOM node of type PROCESSING_INSTRUCTION.

default

7

Static NODETYPE_TEXT

NODETYPE_TEXT: number

DOM node of type TEXT.

default

3

Static NONE

NONE: "none"

Defines the value for none. Default is "none".

Static NS_SVG

NS_SVG: "http://www.w3.org/2000/svg"

Defines the SVG namespace.

Static NS_XHTML

NS_XHTML: "http://www.w3.org/1999/xhtml"

Defines the XHTML namespace.

Static NS_XLINK

NS_XLINK: "http://www.w3.org/1999/xlink"

Defines the XLink namespace.

Static OUTLINE_COLOR

OUTLINE_COLOR: string

Defines the color to be used for the outline rectangle border. Use 'none' for no color. Default is #0099FF.

default

#0099FF

Static OUTLINE_HANDLE_FILLCOLOR

OUTLINE_HANDLE_FILLCOLOR: string

Defines the color to be used for the outline sizer fill color. Use 'none' for no color. Default is #00FFFF.

default

#00FFFF

Static OUTLINE_HANDLE_STROKECOLOR

OUTLINE_HANDLE_STROKECOLOR: string

Defines the color to be used for the outline sizer stroke color. Use 'none' for no color. Default is #0033FF.

default

#0033FF

Static OUTLINE_HIGHLIGHT_COLOR

OUTLINE_HIGHLIGHT_COLOR: string

Specifies the default highlight color for shape outlines. Default is #0000FF. This is used in .

default

#00FF00

Static OUTLINE_HIGHLIGHT_STROKEWIDTH

OUTLINE_HIGHLIGHT_STROKEWIDTH: number

Defines the strokewidth to be used for shape outlines. Default is 5. This is used in .

default

5

Static OUTLINE_STROKEWIDTH

OUTLINE_STROKEWIDTH: number

Defines the strokewidth to be used for the outline rectangle stroke width. Default is 3.

Static PAGE_FORMAT_A4_LANDSCAPE

PAGE_FORMAT_A4_LANDSCAPE: mxRectangle

Defines the rectangle for the A4 portrait page format. The dimensions of this page format are 826x1169 pixels.

Static PAGE_FORMAT_A4_PORTRAIT

PAGE_FORMAT_A4_PORTRAIT: mxRectangle

Defines the rectangle for the A4 portrait page format. The dimensions of this page format are 826x1169 pixels.

Static PAGE_FORMAT_LETTER_LANDSCAPE

PAGE_FORMAT_LETTER_LANDSCAPE: mxRectangle

Defines the rectangle for the Letter portrait page format. The dimensions of this page format are 850x1100 pixels.

Static PAGE_FORMAT_LETTER_PORTRAIT

PAGE_FORMAT_LETTER_PORTRAIT: mxRectangle

Defines the rectangle for the Letter portrait page format. The dimensions of this page format are 850x1100 pixels.

Static PERIMETER_ELLIPSE

PERIMETER_ELLIPSE: "ellipsePerimeter"

Name of the ellipse perimeter. Can be used as a string value for the STYLE_PERIMETER style.

Static PERIMETER_HEXAGON

PERIMETER_HEXAGON: "hexagonPerimeter"

Name of the hexagon perimeter. Can be used as a string value for the STYLE_PERIMETER style.

Static PERIMETER_RECTANGLE

PERIMETER_RECTANGLE: "rectanglePerimeter"

Name of the rectangle perimeter. Can be used as a string value for the STYLE_PERIMETER style.

Static PERIMETER_RHOMBUS

PERIMETER_RHOMBUS: "rhombusPerimeter"

Name of the rhombus perimeter. Can be used as a string value for the STYLE_PERIMETER style.

Static PERIMETER_TRIANGLE

PERIMETER_TRIANGLE: "trianglePerimeter"

Name of the triangle perimeter. Can be used as a string value for the STYLE_PERIMETER style.

Static RECTANGLE_ROUNDING_FACTOR

RECTANGLE_ROUNDING_FACTOR: number

Defines the rounding factor for rounded rectangles in percent between 0 and 1. Values should be smaller than 0.5. Default is 0.15.

default

0.15

Static RENDERING_HINT_EXACT

RENDERING_HINT_EXACT: "exact"

Defines the exact rendering hint.

Static RENDERING_HINT_FASTER

RENDERING_HINT_FASTER: "faster"

Defines the faster rendering hint.

Static RENDERING_HINT_FASTEST

RENDERING_HINT_FASTEST: "fastest"

Defines the fastest rendering hint.

Static SHADOWCOLOR

SHADOWCOLOR: string

Defines the color to be used to draw shadows in shapes and windows.

default

gray

Static SHADOW_OFFSET_X

SHADOW_OFFSET_X: number

Specifies the x-offset of the shadow. Default is 2.

default

2

Static SHADOW_OFFSET_Y

SHADOW_OFFSET_Y: number

Specifies the y-offset of the shadow. Default is 3.

default

3

Static SHADOW_OPACITY

SHADOW_OPACITY: number

Defines the opacity for shadows. Default is 1.

default

1

Static SHAPE_ACTOR

SHAPE_ACTOR: "actor"

Name under which is registered in . Default is actor.

Static SHAPE_ARROW

SHAPE_ARROW: "arrow"

Name under which is registered in . Default is arrow.

Static SHAPE_ARROW_CONNECTOR

SHAPE_ARROW_CONNECTOR: "arrowConnector"

Name under which is registered in . Default is arrowConnector.

Static SHAPE_CLOUD

SHAPE_CLOUD: "cloud"

Name under which is registered in . Default is cloud.

Static SHAPE_CONNECTOR

SHAPE_CONNECTOR: "connector"

Name under which is registered in . Default is connector.

Static SHAPE_CYLINDER

SHAPE_CYLINDER: "cylinder"

Name under which is registered in . Default is cylinder.

Static SHAPE_DOUBLE_ELLIPSE

SHAPE_DOUBLE_ELLIPSE: "doubleEllipse"

Name under which is registered in . Default is doubleEllipse.

Static SHAPE_ELLIPSE

SHAPE_ELLIPSE: "ellipse"

Name under which is registered in . Default is ellipse.

Static SHAPE_HEXAGON

SHAPE_HEXAGON: "hexagon"

Name under which is registered in . Default is hexagon.

Static SHAPE_IMAGE

SHAPE_IMAGE: "image"

Name under which is registered in . Default is image.

Static SHAPE_LABEL

SHAPE_LABEL: "label"

Name under which is registered in . Default is label.

Static SHAPE_LINE

SHAPE_LINE: "line"

Name under which is registered in . Default is line.

Static SHAPE_RECTANGLE

SHAPE_RECTANGLE: "rectangle"

Name under which is registered in . Default is rectangle.

Static SHAPE_RHOMBUS

SHAPE_RHOMBUS: "rhombus"

Name under which is registered in . Default is rhombus.

Static SHAPE_SWIMLANE

SHAPE_SWIMLANE: "swimlane"

Name under which is registered in . Default is swimlane.

Static SHAPE_TRIANGLE

SHAPE_TRIANGLE: "triangle"

Name under which is registered in . Default is triangle.

Static STYLE_ABSOLUTE_ARCSIZE

STYLE_ABSOLUTE_ARCSIZE: "absoluteArcSize"

Defines the key for the absolute arc size style. This specifies if arcSize for rectangles is abolute or relative. Possible values are 1 and 0 (default). Value is "absoluteArcSize".

Static STYLE_ALIGN

STYLE_ALIGN: "align"

Defines the key for the align style. Possible values are ; and . This value defines how the lines of the label are horizontally aligned. mean label text lines are aligned to left of the label bounds, to the right of the label bounds and means the center of the text lines are aligned in the center of the label bounds. Note this value doesn't affect the positioning of the overall label bounds relative to the vertex, to move the label bounds horizontally, use . Value is "align".

Static STYLE_ANCHOR_POINT_DIRECTION

STYLE_ANCHOR_POINT_DIRECTION: "anchorPointDirection"

Defines the key for the anchorPointDirection style. The defines if the direction style should be taken into account when computing the fixed point location for connected edges. Default is 1 (yes). Set this to 0 to ignore the direction style for fixed connection points. Value is "anchorPointDirection".

Static STYLE_ARCSIZE

STYLE_ARCSIZE: "arcSize"

Defines the rounding factor for a rounded rectangle in percent (without the percent sign). Possible values are between 0 and 100. If this value is not specified then RECTANGLE_ROUNDING_FACTOR * 100 is used. For edges, this defines the absolute size of rounded corners in pixels. If this values is not specified then LINE_ARCSIZE is used. (This style is only exported via .) Value is "arcSize".

Static STYLE_ASPECT

STYLE_ASPECT: "aspect"

Defines the key for the aspect style. Possible values are empty or fixed. If fixed is used then the aspect ratio of the cell will be maintained when resizing. Default is empty. Value is "aspect".

Static STYLE_AUTOSIZE

STYLE_AUTOSIZE: "autosize"

Defines the key for the autosize style. This specifies if a cell should be resized automatically if the value has changed. Possible values are 0 or 1. Default is 0. See <mxGraph.isAutoSizeCell>. This is normally combined with to disable manual sizing. Value is "autosize".

Static STYLE_BACKGROUND_OUTLINE

STYLE_BACKGROUND_OUTLINE: "backgroundOutline"

Defines the key for the backgroundOutline style. This specifies if a only the background of a cell should be painted when it is highlighted. Possible values are 0 or 1. Default is 0. Value is "backgroundOutline".

Static STYLE_BENDABLE

STYLE_BENDABLE: "bendable"

Defines the key for the bendable style. This specifies if the control points of an edge can be moved. Possible values are 0 or 1. Default is

  1. See <mxGraph.isCellBendable>. Value is "bendable".

Static STYLE_CLONEABLE

STYLE_CLONEABLE: "cloneable"

Defines the key for the cloneable style. This specifies if a cell can be cloned. Possible values are 0 or 1. Default is 1. See <mxGraph.isCellCloneable>. Value is "cloneable".

Static STYLE_CURVED

STYLE_CURVED: "curved"

Defines the key for the curved style. The type of this value is Boolean. It is only applicable for connector shapes. Use 0 (default) for non-curved or 1 for curved. Value is "curved".

Static STYLE_DASHED

STYLE_DASHED: "dashed"

Defines the key for the dashed style. Use 0 (default) for non-dashed or 1 for dashed. Value is "dashed".

Static STYLE_DASH_PATTERN

STYLE_DASH_PATTERN: "dashPattern"

Defines the key for the dashed pattern style in SVG and image exports. The type of this value is a space separated list of numbers that specify a custom-defined dash pattern. Dash styles are defined in terms of the length of the dash (the drawn part of the stroke) and the length of the space between the dashes. The lengths are relative to the line width: a length of "1" is equal to the line width. VML ignores this style and uses dashStyle instead as defined in the VML specification. This style is only used in the shape. Value is "dashPattern".

Static STYLE_DELETABLE

STYLE_DELETABLE: "deletable"

Defines the key for the deletable style. This specifies if a cell can be deleted. Possible values are 0 or 1. Default is 1. See <mxGraph.isCellDeletable>. Value is "deletable".

Static STYLE_DIRECTION

STYLE_DIRECTION: "direction"

Defines the key for the direction style. The direction style is used to specify the direction of certain shapes (eg. ). Possible values are (default), ; and . Value is "direction".

Static STYLE_EDGE

STYLE_EDGE: "edgeStyle"

Defines the key for the edge style. Possible values are the functions defined in . Value is "edgeStyle".

Static STYLE_EDITABLE

STYLE_EDITABLE: "editable"

Defines the key for the editable style. This specifies if the value of a cell can be edited using the in-place editor. Possible values are 0 or

  1. Default is 1. See <mxGraph.isCellEditable>. Value is "editable".

Static STYLE_ELBOW

STYLE_ELBOW: "elbow"

Defines the key for the elbow style. Possible values are and . Default is . This defines how the three segment orthogonal edge style leaves its terminal vertices. The vertical style leaves the terminal vertices at the top and bottom sides. Value is "elbow".

Static STYLE_ENDARROW

STYLE_ENDARROW: "endArrow"

Defines the key for the end arrow marker. Possible values are all constants with an ARROW-prefix. This is only used in . Value is "endArrow".

Example: (code) style[mxConstants.STYLE_ENDARROW] = mxConstants.ARROW_CLASSIC; (end)

Static STYLE_ENDFILL

STYLE_ENDFILL: "endFill"

Defines the key for the endFill style. Use 0 for no fill or 1 (default) for fill. (This style is only exported via .) Value is "endFill".

Static STYLE_ENDSIZE

STYLE_ENDSIZE: "endSize"

Defines the key for the endSize style. The type of this value is numeric and the value represents the size of the end marker in pixels. Value is "endSize".

Static STYLE_ENTRY_PERIMETER

STYLE_ENTRY_PERIMETER: "entryPerimeter"

Defines if the perimeter should be used to find the exact entry point along the perimeter of the target. Possible values are 0 (false) and 1 (true). Default is 1 (true). Value is "entryPerimeter".

Static STYLE_ENTRY_X

STYLE_ENTRY_X: "entryX"

Defines the key for the horizontal relative coordinate connection point of an edge with its target terminal. Value is "entryX".

Static STYLE_ENTRY_Y

STYLE_ENTRY_Y: "entryY"

Defines the key for the vertical relative coordinate connection point of an edge with its target terminal. Value is "entryY".

Static STYLE_EXIT_PERIMETER

STYLE_EXIT_PERIMETER: "exitPerimeter"

Defines if the perimeter should be used to find the exact entry point along the perimeter of the source. Possible values are 0 (false) and 1 (true). Default is 1 (true). Value is "exitPerimeter".

Static STYLE_EXIT_X

STYLE_EXIT_X: "exitX"

Defines the key for the horizontal relative coordinate connection point of an edge with its source terminal. Value is "exitX".

Static STYLE_EXIT_Y

STYLE_EXIT_Y: "exitY"

Defines the key for the vertical relative coordinate connection point of an edge with its source terminal. Value is "exitY".

Static STYLE_FILLCOLOR

STYLE_FILLCOLOR: "fillColor"

Defines the key for the fill color. Possible values are all HTML color names or HEX codes, as well as special keywords such as 'swimlane; 'inherit' or 'indicated' to use the color code of a related cell or the indicator shape. Value is "fillColor".

Static STYLE_FILL_OPACITY

STYLE_FILL_OPACITY: "fillOpacity"

Defines the key for the fill opacity style. The type of the value is numeric and the possible range is 0-100. Value is "fillOpacity".

Static STYLE_FIX_DASH

STYLE_FIX_DASH: "fixDash"

Defines the key for the fixDash style. Use 0 (default) for dash patterns that depend on the linewidth and 1 for dash patterns that ignore the line width. Value is "fixDash".

Static STYLE_FLIPH

STYLE_FLIPH: "flipH"

Defines the key for the horizontal image flip. This style is only used in . Possible values are 0 and 1. Default is 0. Value is "flipH".

Static STYLE_FLIPV

STYLE_FLIPV: "flipV"

Defines the key for the vertical flip. Possible values are 0 and 1. Default is 0. Value is "flipV".

Static STYLE_FOLDABLE

STYLE_FOLDABLE: "foldable"

Defines the key for the foldable style. This specifies if a cell is foldable using a folding icon. Possible values are 0 or 1. Default is 1. See <mxGraph.isCellFoldable>. Value is "foldable".

Static STYLE_FONTCOLOR

STYLE_FONTCOLOR: "fontColor"

Defines the key for the fontColor style. Possible values are all HTML color names or HEX codes. Value is "fontColor".

Static STYLE_FONTFAMILY

STYLE_FONTFAMILY: "fontFamily"

Defines the key for the fontFamily style. Possible values are names such as Arial; Dialog; Verdana; Times New Roman. The value is of type String. Value is fontFamily.

Static STYLE_FONTSIZE

STYLE_FONTSIZE: "fontSize"

Defines the key for the fontSize style (in px). The type of the value is int. Value is "fontSize".

Static STYLE_FONTSTYLE

STYLE_FONTSTYLE: "fontStyle"

Defines the key for the fontStyle style. Values may be any logical AND (sum) of , and . The type of the value is int. Value is "fontStyle".

Static STYLE_GLASS

STYLE_GLASS: "glass"

Defines the key for the glass style. Possible values are 0 (disabled) and 1(enabled). The default value is 0. This is used in . Value is "glass".

Static STYLE_GRADIENTCOLOR

STYLE_GRADIENTCOLOR: "gradientColor"

Defines the key for the gradient color. Possible values are all HTML color names or HEX codes, as well as special keywords such as 'swimlane; 'inherit' or 'indicated' to use the color code of a related cell or the indicator shape. This is ignored if no fill color is defined. Value is "gradientColor".

Static STYLE_GRADIENT_DIRECTION

STYLE_GRADIENT_DIRECTION: "gradientDirection"

Defines the key for the gradient direction. Possible values are , , and . Default is . Generally, and by default in mxGraph, gradient painting is done from the value of to the value of . Taking the example of , this means color at the bottom of paint pattern and at top, with a gradient in-between. Value is "gradientDirection".

Static STYLE_HORIZONTAL

STYLE_HORIZONTAL: "horizontal"

Defines the key for the horizontal style. Possible values are true or false. This value only applies to vertices. If the is "SHAPE_SWIMLANE" a value of false indicates that the swimlane should be drawn vertically, true indicates to draw it horizontally. If the shape style does not indicate that this vertex is a swimlane, this value affects only whether the label is drawn horizontally or vertically. Value is "horizontal".

Static STYLE_IMAGE

STYLE_IMAGE: "image"

Defines the key for the image style. Possible values are any image URL; the type of the value is String. This is the path to the image that is to be displayed within the label of a vertex. Data URLs should use the following format: data:image/png,xyz where xyz is the base64 encoded data (without the "base64"-prefix). Note that Data URLs are only supported in modern browsers. Value is "image".

Static STYLE_IMAGE_ALIGN

STYLE_IMAGE_ALIGN: "imageAlign"

Defines the key for the align style. Possible values are ; and . The value defines how any image in the vertex label is aligned horizontally within the label bounds of a shape. Value is "imageAlign".

Static STYLE_IMAGE_ASPECT

STYLE_IMAGE_ASPECT: "imageAspect"

Defines the key for the image aspect style. Possible values are 0 (do not preserve aspect) or 1 (keep aspect). This is only used in . Default is 1. Value is "imageAspect".

Static STYLE_IMAGE_BACKGROUND

STYLE_IMAGE_BACKGROUND: "imageBackground"

Defines the key for the image background color. This style is only used in . Possible values are all HTML color names or HEX codes. Value is "imageBackground".

Static STYLE_IMAGE_BORDER

STYLE_IMAGE_BORDER: "imageBorder"

Defines the key for the image border color. This style is only used in . Possible values are all HTML color names or HEX codes. Value is "imageBorder".

Static STYLE_IMAGE_HEIGHT

STYLE_IMAGE_HEIGHT: "imageHeight"

Defines the key for the imageHeight style. The type of this value is int, the value is the image height in pixels and must be greater than 0. Value is "imageHeight".

Static STYLE_IMAGE_VERTICAL_ALIGN

STYLE_IMAGE_VERTICAL_ALIGN: "imageVerticalAlign"

Defines the key for the verticalAlign style. Possible values are , and . The value defines how any image in the vertex label is aligned vertically within the label bounds of a shape. Value is "imageVerticalAlign".

Static STYLE_IMAGE_WIDTH

STYLE_IMAGE_WIDTH: "imageWidth"

Defines the key for the imageWidth style. The type of this value is int, the value is the image width in pixels and must be greater than 0. Value is "imageWidth".

Static STYLE_INDICATOR_COLOR

STYLE_INDICATOR_COLOR: "indicatorColor"

Defines the key for the indicatorColor style. Possible values are all HTML color names or HEX codes, as well as the special 'swimlane' keyword to refer to the color of the parent swimlane if one exists. Value is "indicatorColor".

Static STYLE_INDICATOR_DIRECTION

STYLE_INDICATOR_DIRECTION: "indicatorDirection"

Defines the key for the indicatorDirection style. The direction style is used to specify the direction of certain shapes (eg. ). Possible values are (default), ; and . Value is "indicatorDirection".

Static STYLE_INDICATOR_GRADIENTCOLOR

STYLE_INDICATOR_GRADIENTCOLOR: "indicatorGradientColor"

Defines the key for the indicatorGradientColor style. Possible values are all HTML color names or HEX codes. This style is only supported in shapes. Value is "indicatorGradientColor".

Static STYLE_INDICATOR_HEIGHT

STYLE_INDICATOR_HEIGHT: "indicatorHeight"

Defines the key for the indicator height. Possible values start at 0 (in pixels). Value is "indicatorHeight".

Static STYLE_INDICATOR_IMAGE

STYLE_INDICATOR_IMAGE: "indicatorImage"

Defines the key for the indicator image used within an . Possible values are all image URLs. The indicatorShape has precedence over the indicatorImage. Value is "indicatorImage".

Static STYLE_INDICATOR_SHAPE

STYLE_INDICATOR_SHAPE: "indicatorShape"

Defines the key for the indicator shape used within an . Possible values are all SHAPE_* constants or the names of any new shapes. The indicatorShape has precedence over the indicatorImage. Value is "indicatorShape".

Static STYLE_INDICATOR_SPACING

STYLE_INDICATOR_SPACING: "indicatorSpacing"

The defines the key for the spacing between the label and the indicator in . Possible values are in pixels. Value is "indicatorSpacing".

Static STYLE_INDICATOR_STROKECOLOR

STYLE_INDICATOR_STROKECOLOR: "indicatorStrokeColor"

Defines the key for the indicator stroke color in . Possible values are all color codes. Value is "indicatorStrokeColor".

Static STYLE_INDICATOR_WIDTH

STYLE_INDICATOR_WIDTH: "indicatorWidth"

Defines the key for the indicator width. Possible values start at 0 (in pixels). Value is "indicatorWidth".

Static STYLE_JETTY_SIZE

STYLE_JETTY_SIZE: "jettySize"

Defines the key for the jetty size in <mxEdgeStyle.OrthConnector>. Default is 10. Possible values are all numeric values or "auto". Value is "jettySize".

Static STYLE_LABEL_BACKGROUNDCOLOR

STYLE_LABEL_BACKGROUNDCOLOR: "labelBackgroundColor"

Defines the key for the label background color. Possible values are all HTML color names or HEX codes. Value is "labelBackgroundColor".

Static STYLE_LABEL_BORDERCOLOR

STYLE_LABEL_BORDERCOLOR: "labelBorderColor"

Defines the key for the label border color. Possible values are all HTML color names or HEX codes. Value is "labelBorderColor".

Static STYLE_LABEL_PADDING

STYLE_LABEL_PADDING: "labelPadding"

Defines the key for the label padding, ie. the space between the label border and the label. Value is "labelPadding".

Static STYLE_LABEL_POSITION

STYLE_LABEL_POSITION: "labelPosition"

Defines the key for the horizontal label position of vertices. Possible values are , and . Default is . The label align defines the position of the label relative to the cell. means the entire label bounds is placed completely just to the left of the vertex, means adjust to the right and means the label bounds are vertically aligned with the bounds of the vertex. Note this value doesn't affect the positioning of label within the label bounds, to move the label horizontally within the label bounds, use . Value is "labelPosition".

Static STYLE_LABEL_WIDTH

STYLE_LABEL_WIDTH: "labelWidth"

Defines the key for the width of the label if the label position is not center. Value is "labelWidth".

Static STYLE_LOOP

STYLE_LOOP: "loopStyle"

Defines the key for the loop style. Possible values are the functions defined in . Value is "loopStyle".

Static STYLE_MARGIN

STYLE_MARGIN: "margin"

Defines the key for the margin between the ellipses in the double ellipse shape. Possible values are all positive numbers. Value is "margin".

Static STYLE_MOVABLE

STYLE_MOVABLE: "movable"

Defines the key for the movable style. This specifies if a cell can be moved. Possible values are 0 or 1. Default is 1. See <mxGraph.isCellMovable>. Value is "movable".

Static STYLE_NOEDGESTYLE

STYLE_NOEDGESTYLE: "noEdgeStyle"

Defines the key for the noEdgeStyle style. If this is true then no edge style is applied for a given edge. Possible values are true or false (1 or 0). Default is false. Value is "noEdgeStyle".

Static STYLE_NOLABEL

STYLE_NOLABEL: "noLabel"

Defines the key for the noLabel style. If this is true then no label is visible for a given cell. Possible values are true or false (1 or 0). Default is false. Value is "noLabel".

Static STYLE_OPACITY

STYLE_OPACITY: "opacity"

Defines the key for the opacity style. The type of the value is numeric and the possible range is 0-100. Value is "opacity".

Static STYLE_ORTHOGONAL

STYLE_ORTHOGONAL: "orthogonal"

Defines if the connection points on either end of the edge should be computed so that the edge is vertical or horizontal if possible and if the point is not at a fixed location. Default is false. This is used in <mxGraph.isOrthogonal>, which also returns true if the edgeStyle of the edge is an elbow or entity. Value is "orthogonal".

Static STYLE_ORTHOGONAL_LOOP

STYLE_ORTHOGONAL_LOOP: "orthogonalLoop"

Defines the key for the orthogonal loop style. Possible values are 0 and

  1. Default is 0. Value is "orthogonalLoop". Use this style to specify if loops should be routed using an orthogonal router. Currently, this uses <mxEdgeStyle.OrthConnector> but will be replaced with a dedicated orthogonal loop router in later releases.

Static STYLE_OVERFLOW

STYLE_OVERFLOW: "overflow"

Defines the key for the overflow style. Possible values are 'visible'; 'hidden', 'fill' and 'width'. The default value is 'visible'. This value specifies how overlapping vertex labels are handled. A value of 'visible' will show the complete label. A value of 'hidden' will clip the label so that it does not overlap the vertex bounds. A value of 'fill' will use the vertex bounds and a value of 'width' will use the the vertex width for the label. See <mxGraph.isLabelClipped>. Note that the vertical alignment is ignored for overflow fill and for horizontal alignment, left should be used to avoid pixel offsets in Internet Explorer 11 and earlier or if foreignObjects are disabled. Value is "overflow".

Static STYLE_PERIMETER

STYLE_PERIMETER: "perimeter"

Defines the key for the perimeter style. This is a function that defines the perimeter around a particular shape. Possible values are the functions defined in . Alternatively, the constants in this class that start with "PERIMETER_" may be used to access perimeter styles in . Value is "perimeter".

Static STYLE_PERIMETER_SPACING

STYLE_PERIMETER_SPACING: "perimeterSpacing"

Defines the key for the perimeter spacing. This is the distance between the connection point and the perimeter in pixels. When used in a vertex style, this applies to all incoming edges to floating ports (edges that terminate on the perimeter of the vertex). When used in an edge style; this spacing applies to the source and target separately, if they terminate in floating ports (on the perimeter of the vertex). Value is "perimeterSpacing".

Static STYLE_POINTER_EVENTS

STYLE_POINTER_EVENTS: "pointerEvents"

Specifies if pointer events should be fired on transparent backgrounds. This style is currently only supported in . Default is true. Value is "pointerEvents". This is typically set to false in groups where the transparent part should allow any underlying cells to be clickable.

Static STYLE_PORT_CONSTRAINT

STYLE_PORT_CONSTRAINT: "portConstraint"

Defines the direction(s) that edges are allowed to connect to cells in. Possible values are "DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST" and "DIRECTION_WEST". Value is "portConstraint".

Static STYLE_PORT_CONSTRAINT_ROTATION

STYLE_PORT_CONSTRAINT_ROTATION: "portConstraintRotation"

Define whether port constraint directions are rotated with vertex rotation. 0 (default) causes port constraints to remain absolute, relative to the graph, 1 causes the constraints to rotate with the vertex. Value is "portConstraintRotation".

Static STYLE_RESIZABLE

STYLE_RESIZABLE: "resizable"

Defines the key for the resizable style. This specifies if a cell can be resized. Possible values are 0 or 1. Default is 1. See <mxGraph.isCellResizable>. Value is "resizable".

Static STYLE_RESIZE_HEIGHT

STYLE_RESIZE_HEIGHT: "resizeHeight"

Defines the key for the resizeHeight style. This specifies if a cell's height if resize if the parent is resized. If this is 1 then the height will be resized even if the cell's geometry is relative. If this is 0 then the cell's height will not be resized. Default is not defined. Value is "resizeHeight".

Static STYLE_RESIZE_WIDTH

STYLE_RESIZE_WIDTH: "resizeWidth"

Defines the key for the resizeWidth style. This specifies if a cell's width is resized if the parent is resized. If this is 1 then the width will be resized even if the cell's geometry is relative. If this is 0 then the cell's width will not be resized. Default is not defined. Value is "resizeWidth".

Static STYLE_ROTATABLE

STYLE_ROTATABLE: "rotatable"

Defines the key for the rotatable style. This specifies if a cell can be rotated. Possible values are 0 or 1. Default is 1. See <mxGraph.isCellRotatable>. Value is "rotatable".

Static STYLE_ROTATION

STYLE_ROTATION: "rotation"

Defines the key for the rotation style. The type of the value is numeric and the possible range is 0-360. Value is "rotation".

Static STYLE_ROUNDED

STYLE_ROUNDED: "rounded"

Defines the key for the rounded style. The type of this value is Boolean. For edges this determines whether or not joins between edges segments are smoothed to a rounded finish. For vertices that have the rectangle shape, this determines whether or not the rectangle is rounded. Use 0 (default) for non-rounded or 1 for rounded. Value is "rounded".

Static STYLE_ROUTING_CENTER_X

STYLE_ROUTING_CENTER_X: "routingCenterX"

Defines the key for the horizontal routing center. Possible values are between -0.5 and 0.5. This is the relative offset from the center used for connecting edges. The type of this value is numeric. Value is "routingCenterX".

Static STYLE_ROUTING_CENTER_Y

STYLE_ROUTING_CENTER_Y: "routingCenterY"

Defines the key for the vertical routing center. Possible values are between -0.5 and 0.5. This is the relative offset from the center used for connecting edges. The type of this value is numeric. Value is "routingCenterY".

Static STYLE_SEGMENT

STYLE_SEGMENT: "segment"

Defines the key for the segment style. The type of this value is float and the value represents the size of the horizontal segment of the entity relation style. Default is ENTITY_SEGMENT. Value is "segment".

Static STYLE_SEPARATORCOLOR

STYLE_SEPARATORCOLOR: "separatorColor"

Defines the key for the separatorColor style. Possible values are all HTML color names or HEX codes. This style is only used for shapes. Value is "separatorColor".

Static STYLE_SHADOW

STYLE_SHADOW: "shadow"

Defines the key for the shadow style. The type of the value is Boolean. Value is "shadow".

Static STYLE_SHAPE

STYLE_SHAPE: "shape"

Defines the key for the shape. Possible values are all constants with a SHAPE-prefix or any newly defined shape names. Value is "shape".

Static STYLE_SOURCE_JETTY_SIZE

STYLE_SOURCE_JETTY_SIZE: "sourceJettySize"

Defines the key for the jetty size in <mxEdgeStyle.OrthConnector>. Default is 10. Possible values are numeric values or "auto". This has precedence over . Value is "sourceJettySize".

Static STYLE_SOURCE_PERIMETER_SPACING

STYLE_SOURCE_PERIMETER_SPACING: "sourcePerimeterSpacing"

Defines the key for the source perimeter spacing. The type of this value is numeric. This is the distance between the source connection point of an edge and the perimeter of the source vertex in pixels. This style only applies to edges. Value is "sourcePerimeterSpacing".

Static STYLE_SOURCE_PORT

STYLE_SOURCE_PORT: "sourcePort"

Defines the ID of the cell that should be used for computing the perimeter point of the source for an edge. This allows for graphically connecting to a cell while keeping the actual terminal of the edge. Value is "sourcePort".

Static STYLE_SOURCE_PORT_CONSTRAINT

STYLE_SOURCE_PORT_CONSTRAINT: "sourcePortConstraint"

Defines the direction(s) that edges are allowed to connect to sources in. Possible values are "DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST" and "DIRECTION_WEST". Value is "sourcePortConstraint".

Static STYLE_SPACING

STYLE_SPACING: "spacing"

Defines the key for the spacing. The value represents the spacing, in pixels, added to each side of a label in a vertex (style applies to vertices only). Value is "spacing".

Static STYLE_SPACING_BOTTOM

STYLE_SPACING_BOTTOM: "spacingBottom"

Defines the key for the spacingBottom style The value represents the spacing, in pixels, added to the bottom side of a label in a vertex (style applies to vertices only). Value is "spacingBottom".

Static STYLE_SPACING_LEFT

STYLE_SPACING_LEFT: "spacingLeft"

Defines the key for the spacingLeft style. The value represents the spacing, in pixels, added to the left side of a label in a vertex (style applies to vertices only). Value is "spacingLeft".

Static STYLE_SPACING_RIGHT

STYLE_SPACING_RIGHT: "spacingRight"

Defines the key for the spacingRight style The value represents the spacing, in pixels, added to the right side of a label in a vertex (style applies to vertices only). Value is "spacingRight".

Static STYLE_SPACING_TOP

STYLE_SPACING_TOP: "spacingTop"

Defines the key for the spacingTop style. The value represents the spacing, in pixels, added to the top side of a label in a vertex (style applies to vertices only). Value is "spacingTop".

Static STYLE_STARTARROW

STYLE_STARTARROW: "startArrow"

Defines the key for the start arrow marker. Possible values are all constants with an ARROW-prefix. This is only used in . See . Value is "startArrow".

Static STYLE_STARTFILL

STYLE_STARTFILL: "startFill"

Defines the key for the startFill style. Use 0 for no fill or 1 (default) for fill. (This style is only exported via .) Value is "startFill".

Static STYLE_STARTSIZE

STYLE_STARTSIZE: "startSize"

Defines the key for the startSize style. The type of this value is numeric and the value represents the size of the start marker or the size of the swimlane title region depending on the shape it is used for. Value is "startSize".

Static STYLE_STROKECOLOR

STYLE_STROKECOLOR: "strokeColor"

Defines the key for the strokeColor style. Possible values are all HTML color names or HEX codes, as well as special keywords such as 'swimlane; 'inherit', 'indicated' to use the color code of a related cell or the indicator shape or 'none' for no color. Value is "strokeColor".

Static STYLE_STROKEWIDTH

STYLE_STROKEWIDTH: "strokeWidth"

Defines the key for the strokeWidth style. The type of the value is numeric and the possible range is any non-negative value larger or equal to 1. The value defines the stroke width in pixels. Note: To hide a stroke use strokeColor none. Value is "strokeWidth".

Static STYLE_STROKE_OPACITY

STYLE_STROKE_OPACITY: "strokeOpacity"

Defines the key for the stroke opacity style. The type of the value is numeric and the possible range is 0-100. Value is "strokeOpacity".

Static STYLE_SWIMLANE_FILLCOLOR

STYLE_SWIMLANE_FILLCOLOR: "swimlaneFillColor"

Defines the key for the fill color of the swimlane background. Possible values are all HTML color names or HEX codes. Default is no background. Value is "swimlaneFillColor".

Static STYLE_SWIMLANE_LINE

STYLE_SWIMLANE_LINE: "swimlaneLine"

Defines the key for the swimlaneLine style. This style specifies whether the line between the title regio of a swimlane should be visible. Use 0 for hidden or 1 (default) for visible. Value is "swimlaneLine".

Static STYLE_TARGET_JETTY_SIZE

STYLE_TARGET_JETTY_SIZE: "targetJettySize"

Defines the key for the jetty size in <mxEdgeStyle.OrthConnector>. Default is 10. Possible values are numeric values or "auto". This has precedence over . Value is "targetJettySize".

Static STYLE_TARGET_PERIMETER_SPACING

STYLE_TARGET_PERIMETER_SPACING: "targetPerimeterSpacing"

Defines the key for the target perimeter spacing. The type of this value is numeric. This is the distance between the target connection point of an edge and the perimeter of the target vertex in pixels. This style only applies to edges. Value is "targetPerimeterSpacing".

Static STYLE_TARGET_PORT

STYLE_TARGET_PORT: "targetPort"

Defines the ID of the cell that should be used for computing the perimeter point of the target for an edge. This allows for graphically connecting to a cell while keeping the actual terminal of the edge. Value is "targetPort".

Static STYLE_TARGET_PORT_CONSTRAINT

STYLE_TARGET_PORT_CONSTRAINT: "targetPortConstraint"

Defines the direction(s) that edges are allowed to connect to targets in. Possible values are "DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_EAST" and "DIRECTION_WEST". Value is "targetPortConstraint".

Static STYLE_TEXT_DIRECTION

STYLE_TEXT_DIRECTION: "textDirection"

Defines the key for the text direction style. Possible values are "TEXT_DIRECTION_DEFAULT, TEXT_DIRECTION_AUTO, TEXT_DIRECTION_LTR" and "TEXT_DIRECTION_RTL". Value is "textDirection". The default value for the style is defined in . It is used is no value is defined for this key in a given style. This is an experimental style that is currently ignored in the backends.

Static STYLE_TEXT_OPACITY

STYLE_TEXT_OPACITY: "textOpacity"

Defines the key for the text opacity style. The type of the value is numeric and the possible range is 0-100. Value is "textOpacity".

Static STYLE_VERTICAL_ALIGN

STYLE_VERTICAL_ALIGN: "verticalAlign"

Defines the key for the verticalAlign style. Possible values are , and . This value defines how the lines of the label are vertically aligned. means the topmost label text line is aligned against the top of the label bounds; means the bottom-most label text line is aligned against the bottom of the label bounds and means there is equal spacing between the topmost text label line and the top of the label bounds and the bottom-most text label line and the bottom of the label bounds. Note this value doesn't affect the positioning of the overall label bounds relative to the vertex, to move the label bounds vertically, use . Value is "verticalAlign".

Static STYLE_VERTICAL_LABEL_POSITION

STYLE_VERTICAL_LABEL_POSITION: "verticalLabelPosition"

Defines the key for the vertical label position of vertices. Possible values are , and . Default is . The label align defines the position of the label relative to the cell. means the entire label bounds is placed completely just on the top of the vertex, means adjust on the bottom and means the label bounds are horizontally aligned with the bounds of the vertex. Note this value doesn't affect the positioning of label within the label bounds, to move the label vertically within the label bounds, use . Value is "verticalLabelPosition".

Static STYLE_WHITE_SPACE

STYLE_WHITE_SPACE: "whiteSpace"

Defines the key for the white-space style. Possible values are 'nowrap' and 'wrap'. The default value is 'nowrap'. This value specifies how white-space inside a HTML vertex label should be handled. A value of 'nowrap' means the text will never wrap to the next line until a linefeed is encountered. A value of 'wrap' means text will wrap when necessary. This style is only used for HTML labels. See <mxGraph.isWrapping>. Value is "whiteSpace".

Static TEXT_DIRECTION_AUTO

TEXT_DIRECTION_AUTO: "auto"

Constant for text direction automatic. Default is auto. Use this value to find the direction for a given text with <mxText.getAutoDirection>.

Static TEXT_DIRECTION_DEFAULT

TEXT_DIRECTION_DEFAULT: ""

Constant for text direction default. Default is an empty string. Use this value to use the default text direction of the operating system.

Static TEXT_DIRECTION_LTR

TEXT_DIRECTION_LTR: "ltr"

Constant for text direction left to right. Default is ltr. Use this value for left to right text direction.

Static TEXT_DIRECTION_RTL

TEXT_DIRECTION_RTL: "rtl"

Constant for text direction right to left. Default is rtl. Use this value for right to left text direction.

Static TOOLTIP_VERTICAL_OFFSET

TOOLTIP_VERTICAL_OFFSET: number

Defines the vertical offset for the tooltip. Default is 16.

default

16

Static VALID_COLOR

VALID_COLOR: string

Defines the color to be used for the coloring valid connection previews. Use 'none' for no color. Default is #FF0000.

default

#00FF00

Static VERTEX_SELECTION_COLOR

VERTEX_SELECTION_COLOR: string

Defines the color to be used for the selection border of vertices. Use 'none' for no color. Default is #00FF00.

default

#00FF00

Static VERTEX_SELECTION_DASHED

VERTEX_SELECTION_DASHED: true

Defines the dashed state to be used for the vertex selection border. Default is true.

Static VERTEX_SELECTION_STROKEWIDTH

VERTEX_SELECTION_STROKEWIDTH: number

Defines the strokewidth to be used for vertex selections. Default is 1.

default

1

Static VML_SHADOWCOLOR

VML_SHADOWCOLOR: string

Used for shadow color in filters where transparency is not supported (Microsoft Internet Explorer). Default is gray.

default

gray

Static WORD_WRAP

WORD_WRAP: "normal"

Defines the CSS value for the word-wrap property. Default is "normal". Change this to "break-word" to allow long words to be able to be broken and wrap onto the next line.

Generated using TypeDoc