GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — CellStyle | @maxgraph/core

  • CellStyle

Interface CellStyle

interface CellStyle {
    absoluteArcSize?: boolean;
    align?: AlignValue;
    anchorPointDirection?: boolean;
    arcSize?: number;
    aspect?: string;
    autoSize?: boolean;
    backgroundOutline?: boolean;
    baseStyleNames?: string[];
    bendable?: boolean;
    cloneable?: boolean;
    curved?: boolean;
    dashed?: boolean;
    dashPattern?: string;
    deletable?: boolean;
    direction?: DirectionValue;
    edgeStyle?: StyleEdgeStyleValue;
    editable?: boolean;
    elbow?: ElbowValue;
    endArrow?: StyleArrowValue;
    endFill?: boolean;
    endFillColor?: string;
    endSize?: number;
    endStrokeColor?: string;
    entryDx?: number;
    entryDy?: number;
    entryPerimeter?: boolean;
    entryX?: number;
    entryY?: number;
    exitDx?: number;
    exitDy?: number;
    exitPerimeter?: boolean;
    exitX?: number;
    exitY?: number;
    fillColor?: SpecialStyleColorValue;
    fillOpacity?: number;
    fixDash?: boolean;
    flipH?: boolean;
    flipV?: boolean;
    foldable?: boolean;
    fontColor?: SpecialStyleColorValue;
    fontFamily?: string;
    fontSize?: number;
    fontStyle?: number;
    glass?: boolean;
    gradientColor?: SpecialStyleColorValue;
    gradientDirection?: DirectionValue;
    horizontal?: boolean;
    ignoreDefaultStyle?: boolean;
    image?: string;
    imageAlign?: AlignValue;
    imageAspect?: boolean;
    imageBackground?: string;
    imageBorder?: string;
    imageHeight?: number;
    imageWidth?: number;
    indicatorColor?: string;
    indicatorDirection?: DirectionValue;
    indicatorHeight?: number;
    indicatorImage?: string;
    indicatorShape?: StyleShapeValue;
    indicatorStrokeColor?: string;
    indicatorWidth?: number;
    jettySize?: number | "auto";
    labelBackgroundColor?: string;
    labelBorderColor?: string;
    labelPadding?: number;
    labelPosition?: AlignValue | "ignore";
    labelWidth?: number;
    loopStyle?: EdgeStyleFunction;
    margin?: number;
    movable?: boolean;
    noEdgeStyle?: boolean;
    noLabel?: boolean;
    opacity?: number;
    orthogonal?: boolean | null;
    orthogonalLoop?: boolean;
    overflow?: OverflowValue;
    perimeter?:
        | string & Record<never, never>
        | PerimeterFunction
        | PerimeterValue
        | null;
    perimeterSpacing?: number;
    pointerEvents?: boolean;
    portConstraint?: StylePortConstraint;
    portConstraintRotation?: boolean;
    resizable?: boolean;
    resizeHeight?: boolean;
    resizeWidth?: boolean;
    rotatable?: boolean;
    rotation?: number;
    rounded?: boolean;
    routingCenterX?: number;
    routingCenterY?: number;
    segment?: number;
    separatorColor?: string;
    shadow?: boolean;
    shape?: StyleShapeValue;
    sourceJettySize?: number | "auto";
    sourcePerimeterSpacing?: number;
    sourcePort?: string;
    sourcePortConstraint?: StylePortConstraint;
    spacing?: number;
    spacingBottom?: number;
    spacingLeft?: number;
    spacingRight?: number;
    spacingTop?: number;
    startArrow?: StyleArrowValue;
    startFill?: boolean;
    startFillColor?: string;
    startSize?: number;
    startStrokeColor?: string;
    strokeColor?: SpecialStyleColorValue;
    strokeOpacity?: number;
    strokeWidth?: number;
    swimlaneFillColor?: string;
    swimlaneLine?: boolean;
    targetJettySize?: number | "auto";
    targetPerimeterSpacing?: number;
    targetPort?: string;
    targetPortConstraint?: StylePortConstraint;
    textDirection?: TextDirectionValue;
    textOpacity?: number;
    verticalAlign?: VAlignValue;
    verticalLabelPosition?: VAlignValue;
    whiteSpace?: WhiteSpaceValue;
}

Hierarchy (View Summary)

  • CellStateStyle
    • CellStyle
  • Defined in types.ts:52
Index

Properties

absoluteArcSize? align? anchorPointDirection? arcSize? aspect? autoSize? backgroundOutline? baseStyleNames? bendable? cloneable? curved? dashed? dashPattern? deletable? direction? edgeStyle? editable? elbow? endArrow? endFill? endFillColor? endSize? endStrokeColor? entryDx? entryDy? entryPerimeter? entryX? entryY? exitDx? exitDy? exitPerimeter? exitX? exitY? fillColor? fillOpacity? fixDash? flipH? flipV? foldable? fontColor? fontFamily? fontSize? fontStyle? glass? gradientColor? gradientDirection? horizontal? ignoreDefaultStyle? image? imageAlign? imageAspect? imageBackground? imageBorder? imageHeight? imageWidth? indicatorColor? indicatorDirection? indicatorHeight? indicatorImage? indicatorShape? indicatorStrokeColor? indicatorWidth? jettySize? labelBackgroundColor? labelBorderColor? labelPadding? labelPosition? labelWidth? loopStyle? margin? movable? noEdgeStyle? noLabel? opacity? orthogonal? orthogonalLoop? overflow? perimeter? perimeterSpacing? pointerEvents? portConstraint? portConstraintRotation? resizable? resizeHeight? resizeWidth? rotatable? rotation? rounded? routingCenterX? routingCenterY? segment? separatorColor? shadow? shape? sourceJettySize? sourcePerimeterSpacing? sourcePort? sourcePortConstraint? spacing? spacingBottom? spacingLeft? spacingRight? spacingTop? startArrow? startFill? startFillColor? startSize? startStrokeColor? strokeColor? strokeOpacity? strokeWidth? swimlaneFillColor? swimlaneLine? targetJettySize? targetPerimeterSpacing? targetPort? targetPortConstraint? textDirection? textOpacity? verticalAlign? verticalLabelPosition? whiteSpace?

Properties

OptionalabsoluteArcSize

absoluteArcSize?: boolean

This specifies if arcSize for rectangles is absolute or relative.

Default

false

Inherited from CellStateStyle.absoluteArcSize

  • Defined in types.ts:85

Optionalalign

align?: AlignValue

This value defines how the lines of the label are aligned horizontally.

  • left means that the lines of label text are aligned to the left of the label bounds.
  • right means that the lines of label text are aligned to the right of the label bounds.
  • center means that the center of the label text lines are aligned to the center of the label bounds.

Note that this value does not affect the positioning of the overall label bounds relative to the vertex. To move the label bounds horizontally, use labelPosition.

Default

'center'

Inherited from CellStateStyle.align

  • Defined in types.ts:96

OptionalanchorPointDirection

anchorPointDirection?: boolean

This defines if the direction style should be taken into account when computing the fixed point location for connected edges. See also direction.

Set this to false to ignore the direction style for fixed connection points.

Default

true

Inherited from CellStateStyle.anchorPointDirection

  • Defined in types.ts:104

OptionalarcSize

arcSize?: number

For vertex, this defines the absolute size of the rounded corners in pixels for the following shapes:

  • Hexagon
  • Rhombus
  • Triangle
  • Rectangle and Swimlane, if absoluteArcSize is true

If this value is not specified, then LINE_ARCSIZE is used.

For the Rectangle and Swimlane shapes, if absoluteArcSize is not true, this defines the rounding factor for a rounded vertex in percent. The possible values are between 0 and 100. If this value is not specified, then RECTANGLE_ROUNDING_FACTOR * 100 is used.

For edge, this defines the absolute size of the rounded corners in pixels. If this value is not specified, then LINE_ARCSIZE is used.

Inherited from CellStateStyle.arcSize

  • Defined in types.ts:122

Optionalaspect

aspect?: string

The possible values are empty or fixed. If fixed is used, the aspect ratio of the cell will be maintained when resizing.

Default

'empty'

Inherited from CellStateStyle.aspect

  • Defined in types.ts:128

OptionalautoSize

autoSize?: boolean

This specifies if a cell should be resized automatically if its value changed. This is normally combined with resizable to disable manual resizing.

Note that a cell is in fact auto-resizable according to the value returned by AbstractGraph.isAutoSizeCell.

Default

false

Inherited from CellStateStyle.autoSize

  • Defined in types.ts:136

OptionalbackgroundOutline

backgroundOutline?: boolean

This specifies if only the background of a cell should be painted when it is highlighted.

Default

false

Inherited from CellStateStyle.backgroundOutline

  • Defined in types.ts:141

OptionalbaseStyleNames

baseStyleNames?: string[]

Names of styles used to fill properties before applying the specific properties defined in CellStateStyle.

Here's the initial algorithm for populating properties:

  • Take the style name in order from the table
  • Retrieve the style associated with the style registered in StyleSheet. Ignore unknown styles
  • Merge the current style with the style retrieved from StyleSheet.

Once the initial population of properties is complete, merge the style with the properties defined CellStateStyle.

NOTE*: the order of styles in the array is important: if the same property is defined in several styles, the value actually used is that defined in the last style declared in the array.

  • Defined in types.ts:67

Optionalbendable

bendable?: boolean

This specifies if the control points of an edge can be moved.

Note that a cell is in fact bendable according to the value returned by AbstractGraph.isCellBendable.

Default

true

Inherited from CellStateStyle.bendable

  • Defined in types.ts:148

Optionalcloneable

cloneable?: boolean

This specifies if a cell can be cloned.

Note that a cell is in fact cloneable according to the value returned by AbstractGraph.isCellCloneable.

Default

true

Inherited from CellStateStyle.cloneable

  • Defined in types.ts:155

Optionalcurved

curved?: boolean

It is only applicable for connector shapes.

Default

false

Inherited from CellStateStyle.curved

  • Defined in types.ts:160

Optionaldashed

dashed?: boolean

See also dashPattern and fixDash.

Default

false

Inherited from CellStateStyle.dashed

  • Defined in types.ts:165

OptionaldashPattern

dashPattern?: string

The type of this value is a space-separated list of numbers that specify a custom-defined dash pattern. Only relevant if dashed is true.

Dash styles are defined by 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.

See also dashed and fixDash.

Inherited from CellStateStyle.dashPattern

  • Defined in types.ts:175

Optionaldeletable

deletable?: boolean

This specifies if a cell can be deleted.

Note that a cell is in fact deletable according to the value returned by AbstractGraph.isCellDeletable.

Default

true

Inherited from CellStateStyle.deletable

  • Defined in types.ts:182

Optionaldirection

direction?: DirectionValue

The direction style is used to specify the direction of certain shapes (e.g. Swimlane) or EdgeStyle (e.g. Loop).

Default

'east' for shapes and 'west' for the Loop EdgeStyle

Inherited from CellStateStyle.direction

  • Defined in types.ts:187

OptionaledgeStyle

edgeStyle?: StyleEdgeStyleValue

This defines the style of the edge if the current cell is an Edge.

The possible values are all names of the shapes registered with EdgeStyleRegistry.add. This includes EdgeStyleValue values and custom names that have been registered.

It is also possible to pass a EdgeStyleFunction. IMPORTANT: when using a EdgeStyleFunction, be sure that is correctly registered in the EdgeStyleRegistry. Otherwise, the function may not be correctly configured. See EdgeStyleMetaData.

See noEdgeStyle.

Inherited from CellStateStyle.edgeStyle

  • Defined in types.ts:200

Optionaleditable

editable?: boolean

This specifies if the value of a cell can be edited using the in-place editor.

Note that a cell is in fact editable according to the value returned by AbstractGraph.isCellEditable.

Default

true

Inherited from CellStateStyle.editable

  • Defined in types.ts:207

Optionalelbow

elbow?: ElbowValue

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.

Default

'horizontal'

Inherited from CellStateStyle.elbow

  • Defined in types.ts:214

OptionalendArrow

endArrow?: StyleArrowValue

This defines the style of the end arrow marker.

Possible values are all names of registered arrow markers with EdgeMarkerRegistry.add. This includes ArrowValue values and custom names that have been registered.

See startArrow.

Inherited from CellStateStyle.endArrow

  • Defined in types.ts:223

OptionalendFill

endFill?: boolean

Use false to not fill or true to fill the end arrow marker. See startFill.

Default

true

Inherited from CellStateStyle.endFill

  • Defined in types.ts:229

OptionalendFillColor

endFillColor?: string

Set the fill color of the end arrow marker if endFill is true. If not set, use strokeColor.

Since

0.10.0

Inherited from CellStateStyle.endFillColor

  • Defined in types.ts:235

OptionalendSize

endSize?: number

The value represents the size of the end marker in pixels. See startSize.

Inherited from CellStateStyle.endSize

  • Defined in types.ts:246

OptionalendStrokeColor

endStrokeColor?: string

Set the stroke color of the end arrow marker. If not set, use strokeColor.

Since

0.10.0

Inherited from CellStateStyle.endStrokeColor

  • Defined in types.ts:241

OptionalentryDx

entryDx?: number

The horizontal offset in pixels applied to the connection point of an edge with its target terminal.

This offset is applied after the connection point position is determined by entryX and entryY.

See

  • entryDy for the vertical offset.
  • exitDx for the equivalent on the source terminal.

Default

0

Inherited from CellStateStyle.entryDx

  • Defined in types.ts:256

OptionalentryDy

entryDy?: number

The vertical offset in pixels applied to the connection point of an edge with its target terminal.

This offset is applied after the connection point position is determined by entryX and entryY.

See

  • entryDx for the horizontal offset.
  • exitDy for the equivalent on the source terminal.

Default

0

Inherited from CellStateStyle.entryDy

  • Defined in types.ts:266

OptionalentryPerimeter

entryPerimeter?: boolean

Defines if the perimeter should be used to find the exact entry point along the perimeter of the target.

When false, the connection point is not projected on the perimeter: it stays at the fixed position defined by entryX and entryY, inside the bounds of the terminal.

Only applies when a fixed connection point is set, i.e. when both entryX and entryY are defined. Otherwise, the connection point always uses the perimeter.

Default

true

See

  • perimeter for how the perimeter is defined on a cell.
  • entryX and entryY for fixed connection point coordinates.
  • exitPerimeter for the equivalent on the source terminal.

Inherited from CellStateStyle.entryPerimeter

  • Defined in types.ts:279

OptionalentryX

entryX?: number

The x coordinate of the connection point in relative horizontal coordinates of an edge with its target terminal.

Note: Only considered if entryY is set as well.

Typical values are from 0 (left) to 1 (right). Use 0.5 for center.

If undefined, the connection point is computed based on the perimeter settings. See entryPerimeter.

See

  • entryDx for applying a pixel offset after the connection point is determined.
  • exitX for the equivalent on the source terminal.

Inherited from CellStateStyle.entryX

  • Defined in types.ts:292

OptionalentryY

entryY?: number

The y coordinate of the connection point in relative vertical coordinates of an edge with its target terminal.

Note: Only considered if entryX is set as well.

Typical values are from 0 (top) to 1 (bottom). Use 0.5 for center.

If undefined, the connection point is computed based on the perimeter settings. See entryPerimeter.

See

  • entryDy for applying a pixel offset after the connection point is determined.
  • exitY for the equivalent on the source terminal.

Inherited from CellStateStyle.entryY

  • Defined in types.ts:305

OptionalexitDx

exitDx?: number

The horizontal offset in pixels applied to the connection point of an edge with its source terminal.

This offset is applied after the connection point position is determined by exitX and exitY.

See

  • exitDy for the vertical offset.
  • entryDx for the equivalent on the target terminal.

Default

0

Inherited from CellStateStyle.exitDx

  • Defined in types.ts:315

OptionalexitDy

exitDy?: number

The vertical offset in pixels applied to the connection point of an edge with its source terminal.

This offset is applied after the connection point position is determined by exitX and exitY.

See

  • exitDx for the horizontal offset.
  • entryDy for the equivalent on the target terminal.

Default

0

Inherited from CellStateStyle.exitDy

  • Defined in types.ts:325

OptionalexitPerimeter

exitPerimeter?: boolean

Defines if the perimeter should be used to find the exact exit point along the perimeter of the source.

When false, the connection point is not projected on the perimeter: it stays at the fixed position defined by exitX and exitY, inside the bounds of the terminal.

Only applies when a fixed connection point is set, i.e. when both exitX and exitY are defined. Otherwise, the connection point always uses the perimeter.

Default

true

See

  • perimeter for how the perimeter is defined on a cell.
  • exitX and exitY for fixed connection point coordinates.
  • entryPerimeter for the equivalent on the target terminal.

Inherited from CellStateStyle.exitPerimeter

  • Defined in types.ts:338

OptionalexitX

exitX?: number

The x coordinate of the connection point in relative horizontal coordinates of an edge with its source terminal.

Note: Only considered if exitY is set as well.

Typical values are from 0 (left) to 1 (right). Use 0.5 for center.

If undefined, the connection point is computed based on the perimeter settings. See exitPerimeter.

See

  • exitDx for applying a pixel offset after the connection point is determined.
  • entryX for the equivalent on the target terminal.

Inherited from CellStateStyle.exitX

  • Defined in types.ts:351

OptionalexitY

exitY?: number

The y coordinate of the connection point in relative vertical coordinates of an edge with its source terminal.

Note: Only considered if exitX is set as well.

Typical values are from 0 (top) to 1 (bottom). Use 0.5 for center.

If undefined, the connection point is computed based on the perimeter settings. See exitPerimeter.

See

  • exitDy for applying a pixel offset after the connection point is determined.
  • entryY for the equivalent on the target terminal.

Inherited from CellStateStyle.exitY

  • Defined in types.ts:364

OptionalfillColor

fillColor?: SpecialStyleColorValue

The possible values are all HTML color names or HEX codes, as well as special keywords such as:

  • indicated to use the color of a related cell or the indicator shape
  • inherit to use the color of the direct parent cell
  • none for no color
  • swimlane to use the color of the parent swimlane if one exists in the parent hierarchy

Inherited from CellStateStyle.fillColor

  • Defined in types.ts:372

OptionalfillOpacity

fillOpacity?: number

Possible range is 0-100.

Inherited from CellStateStyle.fillOpacity

  • Defined in types.ts:376

OptionalfixDash

fixDash?: boolean

Use false for dash patterns that depend on the line width and true for dash patterns that ignore the line width. See also dashed and dashPattern.

Default

false

Inherited from CellStateStyle.fixDash

  • Defined in types.ts:383

OptionalflipH

flipH?: boolean

Horizontal flip.

Default

false

Inherited from CellStateStyle.flipH

  • Defined in types.ts:388

OptionalflipV

flipV?: boolean

Vertical flip.

Default

false

Inherited from CellStateStyle.flipV

  • Defined in types.ts:393

Optionalfoldable

foldable?: boolean

This specifies if a cell is foldable using a folding icon. See AbstractGraph.isCellFoldable.

Default

true

Inherited from CellStateStyle.foldable

  • Defined in types.ts:399

OptionalfontColor

fontColor?: SpecialStyleColorValue

The possible values are all HTML color names or HEX codes, as well as special keywords such as:

  • indicated to use the color of a related cell or the indicator shape
  • inherit to use the color of the direct parent cell
  • none for no color
  • swimlane to use the color of the parent swimlane if one exists in the parent hierarchy

Inherited from CellStateStyle.fontColor

  • Defined in types.ts:407

OptionalfontFamily

fontFamily?: string

The possible values are names such as Arial; Dialog; Verdana; Times New Roman.

Inherited from CellStateStyle.fontFamily

  • Defined in types.ts:411

OptionalfontSize

fontSize?: number

The size of the font (in px).

Inherited from CellStateStyle.fontSize

  • Defined in types.ts:415

OptionalfontStyle

fontStyle?: number

Values may be any logical AND (sum) of the FONT_STYLE_FLAG. For instance, FONT_STYLE_FLAG.BOLD, FONT_STYLE_FLAG.ITALIC, ...

Inherited from CellStateStyle.fontStyle

  • Defined in types.ts:419

Optionalglass

glass?: boolean

Enable the glass gradient effect

Default

false

Inherited from CellStateStyle.glass

  • Defined in types.ts:424

OptionalgradientColor

gradientColor?: SpecialStyleColorValue

The possible values are all HTML color names or HEX codes, as well as special keywords such as:

  • indicated to use the color of a related cell or the indicator shape
  • inherit to use the color of the direct parent cell
  • none for no color
  • swimlane to use the color of the parent swimlane if one exists in the parent hierarchy

Inherited from CellStateStyle.gradientColor

  • Defined in types.ts:432

OptionalgradientDirection

gradientDirection?: DirectionValue

Generally, and by default in maxGraph, gradient painting is done from the value of fillColor to the value of gradientColor. If we take the example of 'north', this means that the fillColor color is at the bottom of paint pattern and the gradientColor color is at the top, with a gradient in-between.

Default

'south'

Inherited from CellStateStyle.gradientDirection

  • Defined in types.ts:439

Optionalhorizontal

horizontal?: boolean

This value only applies to vertices. If the shape is swimlane, a value of false indicates that the swimlane should be drawn vertically, true indicates that it should be drawn horizontally. If the shape style does not indicate that this vertex is a 'swimlane', this value only affects whether the label is drawn horizontally or vertically.

Default

true

Inherited from CellStateStyle.horizontal

  • Defined in types.ts:448

OptionalignoreDefaultStyle

ignoreDefaultStyle?: boolean

If set to true, ignores the default style when computing the actual style for a cell. The baseStyleNames are still taken into account.

Default

false

Since

0.11.0

  • Defined in types.ts:76

Optionalimage

image?: string

The possible values are any image URL.

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).

The value may also be a key registered via an ImageBundle. When ImageBundlePlugin is registered on the graph, such keys are resolved to the underlying URL or data URI by AbstractGraph.postProcessCellStyle. When the plugin is not registered, or when no bundle contains the key, the raw value is used as the image path unchanged.

Inherited from CellStateStyle.image

  • Defined in types.ts:461

OptionalimageAlign

imageAlign?: AlignValue

The value defines how any image in the vertex label is horizontally aligned within the label bounds of a LabelShape.

Default

'left'

Inherited from CellStateStyle.imageAlign

  • Defined in types.ts:467

OptionalimageAspect

imageAspect?: boolean

The possible values are:

  • false: do not preserve aspect of the image
  • true: keep aspect of the image

This is only used in ImageShape.

Default

true

Inherited from CellStateStyle.imageAspect

  • Defined in types.ts:476

OptionalimageBackground

imageBackground?: string

The possible values for the image background are all HTML color names or HEX codes.

This is only used in ImageShape.

Default

'none'

Inherited from CellStateStyle.imageBackground

  • Defined in types.ts:483

OptionalimageBorder

imageBorder?: string

The possible values for the color of the image border are all HTML color names or HEX codes.

This is only used in ImageShape.

Default

'none'

Inherited from CellStateStyle.imageBorder

  • Defined in types.ts:490

OptionalimageHeight

imageHeight?: number

The value is the image height in pixels and must be greater than 0.

Default

DEFAULT_IMAGESIZE

Inherited from CellStateStyle.imageHeight

  • Defined in types.ts:495

OptionalimageWidth

imageWidth?: number

The value is the image width in pixels and must be greater than 0.

Default

DEFAULT_IMAGESIZE

Inherited from CellStateStyle.imageWidth

  • Defined in types.ts:500

OptionalindicatorColor

indicatorColor?: string

The 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.

Inherited from CellStateStyle.indicatorColor

  • Defined in types.ts:505

OptionalindicatorDirection

indicatorDirection?: DirectionValue

The direction style is used to specify the direction of certain shapes (eg. TriangleShape).

Default

'east'

Inherited from CellStateStyle.indicatorDirection

  • Defined in types.ts:510

OptionalindicatorHeight

indicatorHeight?: number

The possible values start at 0 (in pixels).

Inherited from CellStateStyle.indicatorHeight

  • Defined in types.ts:514

OptionalindicatorImage

indicatorImage?: string

Indicator image used within a LabelShape. The possible values are all image URLs.

The indicatorShape has precedence over the indicatorImage.

Inherited from CellStateStyle.indicatorImage

  • Defined in types.ts:521

OptionalindicatorShape

indicatorShape?: StyleShapeValue

The indicator shape used within an LabelShape. The possible values are all names of registered Shapes with ShapeRegistry.add. This includes ShapeValue values and custom names that have been registered.

The indicatorShape property has precedence over the indicatorImage property.

Inherited from CellStateStyle.indicatorShape

  • Defined in types.ts:529

OptionalindicatorStrokeColor

indicatorStrokeColor?: string

The color of the indicator stroke in LabelShape. The possible values are all HTML color names or HEX codes.

Inherited from CellStateStyle.indicatorStrokeColor

  • Defined in types.ts:534

OptionalindicatorWidth

indicatorWidth?: number

The possible values start at 0 (in pixels).

Inherited from CellStateStyle.indicatorWidth

  • Defined in types.ts:538

OptionaljettySize

jettySize?: number | "auto"

The jetty size in EdgeStyle.OrthConnector when sourceJettySize or targetJettySize.

Default

OrthogonalConnectorConfig.buffer

Inherited from CellStateStyle.jettySize

  • Defined in types.ts:543

OptionallabelBackgroundColor

labelBackgroundColor?: string

The possible values are all HTML color names or HEX codes.

Inherited from CellStateStyle.labelBackgroundColor

  • Defined in types.ts:547

OptionallabelBorderColor

labelBorderColor?: string

The possible values are all HTML color names or HEX codes.

Inherited from CellStateStyle.labelBorderColor

  • Defined in types.ts:551

OptionallabelPadding

labelPadding?: number

The label padding, i.e. the space between the label border and the label.

Inherited from CellStateStyle.labelPadding

  • Defined in types.ts:555

OptionallabelPosition

labelPosition?: AlignValue | "ignore"

The label alignment defines the position of the label relative to the cell.

  • left means that the entire label bounds is placed completely just to the left of the vertex.
  • right means that the label bounds are adjusted to the right.
  • center means that the label bounds are vertically aligned with the bounds of the vertex.
  • ignore means that there is no alignment

Note that this value does not affect the positioning of label within the label bounds. To move the label bounds horizontally within the label bounds, use align

Default

'center'

Inherited from CellStateStyle.labelPosition

  • Defined in types.ts:567

OptionallabelWidth

labelWidth?: number

The width of the label if the label position is not center.

Inherited from CellStateStyle.labelWidth

  • Defined in types.ts:571

OptionalloopStyle

loopStyle?: EdgeStyleFunction

The possible values are the functions defined in EdgeStyle.

See edgeStyle. See AbstractGraph.defaultLoopStyle.

Inherited from CellStateStyle.loopStyle

  • Defined in types.ts:578

Optionalmargin

margin?: number

The margin between the ellipses in DoubleEllipseShape.

The possible values are all positive numbers.

Inherited from CellStateStyle.margin

  • Defined in types.ts:584

Optionalmovable

movable?: boolean

This specifies if a cell can be moved.

Note that a cell is in fact movable according to the value returned by AbstractGraph.isCellMovable.

Default

true

Inherited from CellStateStyle.movable

  • Defined in types.ts:591

OptionalnoEdgeStyle

noEdgeStyle?: boolean

If this is true, no edge style is applied for a given edge. See edgeStyle.

Default

false

Inherited from CellStateStyle.noEdgeStyle

  • Defined in types.ts:597

OptionalnoLabel

noLabel?: boolean

If this is true, no label is visible for a given cell.

Default

false

Inherited from CellStateStyle.noLabel

  • Defined in types.ts:602

Optionalopacity

opacity?: number

The possible range is 0-100.

Inherited from CellStateStyle.opacity

  • Defined in types.ts:606

Optionalorthogonal

orthogonal?: boolean | null

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. The computation of the connection points involves the perimeter.

This is used in AbstractGraph.isOrthogonal, which is in charge of determining if the edge terminals should be orthogonal.

If the orthogonal property is not explicitly set but the edgeStyle belongs to one of the "orthogonal" EdgeStyle connectors, for example when using EdgeStyle.SegmentConnector or EdgeStyle.EntityRelation, the AbstractGraph.isOrthogonal method which also returns true.

Default

undefined

Inherited from CellStateStyle.orthogonal

  • Defined in types.ts:618

OptionalorthogonalLoop

orthogonalLoop?: boolean

Use this style to specify if loops should be routed using an orthogonal router. Currently, this uses EdgeStyle.OrthConnector but will be replaced with a dedicated orthogonal loop router in later releases.

Default

false

Inherited from CellStateStyle.orthogonalLoop

  • Defined in types.ts:625

Optionaloverflow

overflow?: OverflowValue

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.
  • A value of 'width' will use the vertex width for the label.

See AbstractGraph.isLabelClipped.

Note that the vertical alignment is ignored for overflow filling and for horizontal alignment.

Default

'visible'

Inherited from CellStateStyle.overflow

  • Defined in types.ts:640

Optionalperimeter

perimeter?:
    | string & Record<never, never>
    | PerimeterFunction
    | PerimeterValue
    | null

This defines the perimeter around a particular shape.

For PerimeterFunction types, some possible values are the builtin functions defined in the Perimeter namespace.

Alternatively, use a string or a value from PerimeterValue to access perimeter styles registered in PerimeterRegistry. If GraphView.allowEval is set to true, you can pass the PerimeterFunction implementation directly as a string. Remember that enabling this switch carries a possible security risk

WARNING: explicitly set the value to null or undefined means to not use any perimeter. In that case, the connection point is located at the center of the cell. To use the perimeter defined in the default vertex, do not set this property.

Inherited from CellStateStyle.perimeter

  • Defined in types.ts:654

OptionalperimeterSpacing

perimeterSpacing?: number

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).

Inherited from CellStateStyle.perimeterSpacing

  • Defined in types.ts:662

OptionalpointerEvents

pointerEvents?: boolean

Specifies if pointer events should be fired on transparent backgrounds. This style is currently only supported by RectangleShape, SwimlaneShape and StencilShape.

This style is usually set to false in groups where the transparent part should allow any underlying cells to be clickable.

Default

true

Inherited from CellStateStyle.pointerEvents

  • Defined in types.ts:672

OptionalportConstraint

portConstraint?: StylePortConstraint

For vertices only. Defines the direction(s) in which edges are allowed to connect to cells.

If not set, use the sourcePortConstraint or the targetPortConstraint property of the related edges.

Inherited from CellStateStyle.portConstraint

  • Defined in types.ts:678

OptionalportConstraintRotation

portConstraintRotation?: boolean

For vertices only. Defines if the directions of the port constraints are rotated with the vertex rotation.

  • false makes the port constraints remain absolute, relative to the graph.
  • true makes the constraints rotate with the vertex.

See

portConstraint

Default

false

Inherited from CellStateStyle.portConstraintRotation

  • Defined in types.ts:687

Optionalresizable

resizable?: boolean

This specifies if a cell can be resized.

Note that a cell is in fact resizable according to the value returned by AbstractGraph.isCellResizable.

Default

true

Inherited from CellStateStyle.resizable

  • Defined in types.ts:694

OptionalresizeHeight

resizeHeight?: boolean

This specifies if the height of a cell is resized if the parent is resized.

  • If true, then the height will be resized even if the cell geometry is relative.
  • If false, then the height will not be resized.

Default

false

Inherited from CellStateStyle.resizeHeight

  • Defined in types.ts:701

OptionalresizeWidth

resizeWidth?: boolean

This specifies if the width of a cell is resized if the parent is resized.

  • If true, then the width will be resized even if the cell geometry is relative.
  • If false, then the width will not be resized.

Default

false

Inherited from CellStateStyle.resizeWidth

  • Defined in types.ts:708

Optionalrotatable

rotatable?: boolean

This specifies if a cell can be rotated.

Note that a cell is in fact rotatable according to the value returned by AbstractGraph.isCellRotatable.

Default

true

Inherited from CellStateStyle.rotatable

  • Defined in types.ts:715

Optionalrotation

rotation?: number

The possible range is 0-360.

Default

0

Inherited from CellStateStyle.rotation

  • Defined in types.ts:720

Optionalrounded

rounded?: boolean

For edges, this determines whether the joins between edges segments are smoothed to a rounded finish.

For vertices that have the rectangle shape, this determines whether the rectangle is rounded.

See also absoluteArcSize and arcSize for the 'rounded' settings.

Default

false

Inherited from CellStateStyle.rounded

  • Defined in types.ts:730

OptionalroutingCenterX

routingCenterX?: number

This is the relative offset from the center used to connect the edges.

The possible values are between -0.5 and 0.5.

Default

0

Inherited from CellStateStyle.routingCenterX

  • Defined in types.ts:737

OptionalroutingCenterY

routingCenterY?: number

This is the relative offset from the center used to connect the edges.

The possible values are between -0.5 and 0.5.

Default

0

Inherited from CellStateStyle.routingCenterY

  • Defined in types.ts:744

Optionalsegment

segment?: number

The type of this value is float and the value represents the size of the horizontal segment of the entity relation style.

Default

EntityRelationConnectorConfig.segment

Inherited from CellStateStyle.segment

  • Defined in types.ts:750

OptionalseparatorColor

separatorColor?: string

The possible values are all HTML color names or HEX codes. This style is only used for swimlane shapes.

Inherited from CellStateStyle.separatorColor

  • Defined in types.ts:755

Optionalshadow

shadow?: boolean

Add a shadow when painting the shape.

Default

false

Inherited from CellStateStyle.shadow

  • Defined in types.ts:760

Optionalshape

shape?: StyleShapeValue

The name of the shape to be used for the cell.

The actual implementation of the shape is determined by the CellRenderer.createShape method:

  • first, it looks for a shape in StencilShapeRegistry,
  • if not found, it looks for a shape in the ShapeRegistry.

If no shape is specified, the default shape is used:

  • for edges, this is CellRenderer.defaultEdgeShape
  • for vertices, this is CellRenderer.defaultVertexShape

The possible values are all names of the shapes registered with ShapeRegistry.add and StencilShapeRegistry.add. This includes ShapeValue values and custom names that have been registered.

Inherited from CellStateStyle.shape

  • Defined in types.ts:775

OptionalsourceJettySize

sourceJettySize?: number | "auto"

The size of the source jetty in EdgeStyle.OrthConnector.

This value takes precedence over jettySize.

Default

jettySize

Inherited from CellStateStyle.sourceJettySize

  • Defined in types.ts:782

OptionalsourcePerimeterSpacing

sourcePerimeterSpacing?: number

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.

Default

0

Inherited from CellStateStyle.sourcePerimeterSpacing

  • Defined in types.ts:790

OptionalsourcePort

sourcePort?: string

Defines the ID of the cell that should be used to compute 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.

Inherited from CellStateStyle.sourcePort

  • Defined in types.ts:798

OptionalsourcePortConstraint

sourcePortConstraint?: StylePortConstraint

For edges only. Defines the direction(s) in which edges are allowed to connect to sources.

Used as fallback if no portConstraint is defined on the source vertex of the edge.

Inherited from CellStateStyle.sourcePortConstraint

  • Defined in types.ts:804

Optionalspacing

spacing?: number

The value represents the spacing, in pixels, added to each side of a label in a vertex.

This style only applies to vertices.

Default

0

Inherited from CellStateStyle.spacing

  • Defined in types.ts:811

OptionalspacingBottom

spacingBottom?: number

The value represents the spacing, in pixels, added to the bottom side of a label in a vertex. It is added to the CellStateStyle.spacing value.

This style only applies to vertices.

Default

0

Inherited from CellStateStyle.spacingBottom

  • Defined in types.ts:819

OptionalspacingLeft

spacingLeft?: number

The value represents the spacing, in pixels, added to the left side of a label in a vertex. It is added to the CellStateStyle.spacing value.

This style only applies to vertices.

Default

0

Inherited from CellStateStyle.spacingLeft

  • Defined in types.ts:827

OptionalspacingRight

spacingRight?: number

The value represents the spacing, in pixels, added to the right side of a label in a vertex. It is added to the CellStateStyle.spacing value.

This style only applies to vertices.

Default

0

Inherited from CellStateStyle.spacingRight

  • Defined in types.ts:835

OptionalspacingTop

spacingTop?: number

The value represents the spacing, in pixels, added to the top side of a label in a vertex. It is added to the CellStateStyle.spacing value.

This style only applies to vertices.

Default

0

Inherited from CellStateStyle.spacingTop

  • Defined in types.ts:843

OptionalstartArrow

startArrow?: StyleArrowValue

This defines the style of the start arrow marker.

Possible values are all names of registered arrow markers with EdgeMarkerRegistry.add. This includes ArrowValue values and the names of any new shapes.

See endArrow.

Inherited from CellStateStyle.startArrow

  • Defined in types.ts:852

OptionalstartFill

startFill?: boolean

Use false to not fill or true to fill the start arrow marker. See endFill.

Default

true

Inherited from CellStateStyle.startFill

  • Defined in types.ts:858

OptionalstartFillColor

startFillColor?: string

Set the fill color of the start arrow marker if startFill is true. If not set, use startStrokeColor.

Since

0.10.0

Inherited from CellStateStyle.startFillColor

  • Defined in types.ts:864

OptionalstartSize

startSize?: number

The value represents the size of the start marker, in pixels, or the size of the title region of a swimlane depending on the shape it is used for. See endSize.

Inherited from CellStateStyle.startSize

  • Defined in types.ts:876

OptionalstartStrokeColor

startStrokeColor?: string

Set the stroke color of the start arrow marker. If not set, use strokeColor.

Since

0.10.0

Inherited from CellStateStyle.startStrokeColor

  • Defined in types.ts:870

OptionalstrokeColor

strokeColor?: SpecialStyleColorValue

The possible values are all HTML color names or HEX codes, as well as special keywords such as:

  • indicated to use the color of a related cell or the indicator shape
  • inherit to use the color of the direct parent cell
  • none for no color
  • swimlane to use the color of the parent swimlane if one exists in the parent hierarchy

Inherited from CellStateStyle.strokeColor

  • Defined in types.ts:884

OptionalstrokeOpacity

strokeOpacity?: number

The possible range is 0-100.

Inherited from CellStateStyle.strokeOpacity

  • Defined in types.ts:888

OptionalstrokeWidth

strokeWidth?: number

The possible range is any non-negative value greater than or equal to 1. The value defines the stroke width in pixels.

Note: To hide a stroke, use none as value of strokeColor.

Inherited from CellStateStyle.strokeWidth

  • Defined in types.ts:895

OptionalswimlaneFillColor

swimlaneFillColor?: string

The fill color of the swimlane background. The possible values are all HTML color names or HEX codes.

Default

no background

Inherited from CellStateStyle.swimlaneFillColor

  • Defined in types.ts:901

OptionalswimlaneLine

swimlaneLine?: boolean

This style specifies whether the line between the title region of a swimlane should be visible. Use false for hidden or true for visible.

Default

true

Inherited from CellStateStyle.swimlaneLine

  • Defined in types.ts:907

OptionaltargetJettySize

targetJettySize?: number | "auto"

The size of the target jetty in EdgeStyle.OrthConnector.

This value takes precedence over jettySize.

Default

jettySize

Inherited from CellStateStyle.targetJettySize

  • Defined in types.ts:914

OptionaltargetPerimeterSpacing

targetPerimeterSpacing?: number

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.

Default

0

Inherited from CellStateStyle.targetPerimeterSpacing

  • Defined in types.ts:922

OptionaltargetPort

targetPort?: string

Defines the ID of the cell that should be used to compute 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.

Inherited from CellStateStyle.targetPort

  • Defined in types.ts:930

OptionaltargetPortConstraint

targetPortConstraint?: StylePortConstraint

For edges only. Defines the direction(s) in which edges are allowed to connect to sources.

Used as fallback if no portConstraint is defined on the target vertex of the edge.

Inherited from CellStateStyle.targetPortConstraint

  • Defined in types.ts:936

OptionaltextDirection

textDirection?: TextDirectionValue

Default

DEFAULT_TEXT_DIRECTION

Inherited from CellStateStyle.textDirection

  • Defined in types.ts:940

OptionaltextOpacity

textOpacity?: number

The possible range is 0-100.

Inherited from CellStateStyle.textOpacity

  • Defined in types.ts:944

OptionalverticalAlign

verticalAlign?: VAlignValue

This value defines how the lines of the label are vertically aligned.

  • top means that the topmost line of the label text is aligned with the top of the label bounds.
  • bottom means that the bottom-most line of the label text is aligned with the bottom of the label bounds.
  • middle means that there is equal spacing between the topmost line of the text label and the top of the label bounds and between the bottom-most line of the text label and the bottom of the label bounds.

Note that this value doesn't affect the positioning of the overall label bounds relative to the vertex. To move the label bounds vertically, use verticalLabelPosition.

Default

'middle'

Inherited from CellStateStyle.verticalAlign

  • Defined in types.ts:959

OptionalverticalLabelPosition

verticalLabelPosition?: VAlignValue

The label alignment defines the position of the label relative to the cell.

  • 'top' means that the entire label bounds are placed completely just on the top of the vertex.
  • 'bottom' means that the label bounds are adjusted on the bottom of the vertex.
  • 'middle' means that the label bounds are horizontally aligned with the bounds of the vertex.

Note that this value doesn't affect the positioning of label within the label bounds. To move the label vertically within the label bounds, use verticalAlign.

Default

'middle'

Inherited from CellStateStyle.verticalLabelPosition

  • Defined in types.ts:970

OptionalwhiteSpace

whiteSpace?: WhiteSpaceValue

This value specifies how white-space inside an HTML vertex label should be handled.

  • A 'nowrap' value means that the text will never wrap to the next line until a line break is encountered.
  • A 'wrap' value means that the text will wrap if necessary.

This style is only used for HTML labels.

Default

'nowrap'

Inherited from CellStateStyle.whiteSpace

  • Defined in types.ts:980

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Properties
absoluteArcSizealignanchorPointDirectionarcSizeaspectautoSizebackgroundOutlinebaseStyleNamesbendablecloneablecurveddasheddashPatterndeletabledirectionedgeStyleeditableelbowendArrowendFillendFillColorendSizeendStrokeColorentryDxentryDyentryPerimeterentryXentryYexitDxexitDyexitPerimeterexitXexitYfillColorfillOpacityfixDashflipHflipVfoldablefontColorfontFamilyfontSizefontStyleglassgradientColorgradientDirectionhorizontalignoreDefaultStyleimageimageAlignimageAspectimageBackgroundimageBorderimageHeightimageWidthindicatorColorindicatorDirectionindicatorHeightindicatorImageindicatorShapeindicatorStrokeColorindicatorWidthjettySizelabelBackgroundColorlabelBorderColorlabelPaddinglabelPositionlabelWidthloopStylemarginmovablenoEdgeStylenoLabelopacityorthogonalorthogonalLoopoverflowperimeterperimeterSpacingpointerEventsportConstraintportConstraintRotationresizableresizeHeightresizeWidthrotatablerotationroundedroutingCenterXroutingCenterYsegmentseparatorColorshadowshapesourceJettySizesourcePerimeterSpacingsourcePortsourcePortConstraintspacingspacingBottomspacingLeftspacingRightspacingTopstartArrowstartFillstartFillColorstartSizestartStrokeColorstrokeColorstrokeOpacitystrokeWidthswimlaneFillColorswimlaneLinetargetJettySizetargetPerimeterSpacingtargetPorttargetPortConstrainttextDirectiontextOpacityverticalAlignverticalLabelPositionwhiteSpace
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.