Options
All
  • Public
  • Public/Protected
  • All
Menu

Extends mxShape to implement an new rounded arrow shape with support for waypoints and double arrows. The shape is used to represent edges, not vertices.

This shape is registered under mxConstants.SHAPE_ARROW_CONNECTOR in mxCellRenderer.

Hierarchy

Index

Constructors

constructor

  • new mxArrowConnector(points: mxPoint[], fill: string, stroke: string, strokewidth: number, arrowWidth?: number, spacing?: number, endSize?: number): mxArrowConnector

Properties

antiAlias

antiAlias: boolean

Variable: antiAlias

Rendering hint for configuring the canvas.

boundingBox

boundingBox: mxRectangle

Variable: boundingBox

Contains the bounding box of the shape, that is, the smallest rectangle that includes all pixels of the shape.

bounds

bounds: mxRectangle

Variable: bounds

Holds the that specifies the bounds of this shape.

constraints

constraints: mxConnectionConstraint[]

dialect

dialect: string

Variable: dialect

Holds the dialect in which the shape is to be painted. This can be one of the DIALECT constants in .

direction

direction: string

Specify the direction of certain shapes (eg. mxTriangle). Possible values are mxConstants.DIRECTION_EAST (default), mxConstants.DIRECTION_WEST, mxConstants.DIRECTION_NORTH, and mxConstants.DIRECTION_SOUTH.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

endArrow

endArrow: string

Possible values are all constants with an ARROW-prefix.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

endSize

endSize: number

Size of the end marker in pixels.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

fill

fill: string

Fill color.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

fillOpacity

fillOpacity: number

Fill opacity. Possible range is 0-100.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

flipH

flipH: boolean

Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply implementation).

flipV

flipV: boolean

Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply implementation).

glass

glass: boolean

Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

gradient

gradient: string

Gradient color.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

gradientDirection

gradientDirection: string

Gradient direction.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

isDashed

isDashed: boolean

Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

isRounded

isRounded: 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.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

isShadow

isShadow: boolean

Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

minSvgStrokeWidth

minSvgStrokeWidth: number

Variable: minSvgStrokeWidth

Minimum stroke width for SVG output.

node

node: HTMLElement

Variable: node

Holds the outermost DOM node that represents this shape.

opacity

opacity: number

Opacity. Possible range is 0-100.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

outline

outline: boolean

Variable: outline

Specifies if the shape should be drawn as an outline. This disables all fill colors and can be used to disable other drawing states that should not be painted for outlines. Default is false. This should be set before calling .

pointerEvents

pointerEvents: boolean

Variable: pointerEvents

Specifies if pointer events should be handled. Default is true.

points

points: mxPoint[]

Variable: points

Holds the array of that specify the points of this shape.

rotation

rotation: number

Possible range is 0-360.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

scale

scale: number

Variable: scale

Holds the scale in which the shape is being painted.

shapePointerEvents

shapePointerEvents: boolean

Variable: shapePointerEvents

Specifies if pointer events outside of shape should be handled. Default is false.

spacing

spacing: number

The value represents the spacing, in pixels, added to each side of a label in a vertex (style applies to vertices only).
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

startArrow

startArrow: string

Possible values are all constants with an ARROW-prefix.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

startSize

startSize: number

Size of the start marker or the size of the swimlane title region depending on the shape it is used for.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

Optional state

Variable: state

Optional reference to the corresponding .

stencil

stencil: mxStencil

Variable: stencil

Holds the that defines the shape.

stencilPointerEvents

stencilPointerEvents: boolean

Variable: stencilPointerEvents

Specifies if pointer events outside of stencils should be handled. Default is false. Set this to true for backwards compatibility with the 1.x branch.

stroke

stroke: string

Stroke color.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

strokeOpacity

strokeOpacity: number

Stroke opacity. Possible range is 0-100.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

strokewidth

strokewidth: number

Stroke width.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).

Optional style

style: {}

Variable: style

Optional reference to the style of the corresponding .

Type declaration

  • [key: string]: any

svgPointerEvents

svgPointerEvents: "all"

Variable: svgPointerEvents

Specifies if pointer events should be handled. Default is true.

svgStrokeTolerance

svgStrokeTolerance: number

Variable: svgStrokeTolerance

Event-tolerance for SVG strokes (in px). Default is 8. This is only passed to the canvas in if is true.

useSvgBoundingBox

useSvgBoundingBox: boolean

Allows to use the SVG bounding box in SVG.

defaultvalue

false for performance reasons.

visible

visible: boolean

Variable: visible

Specifies if the shape is visible. Default is true.

vmlScale

vmlScale: number

Variable: vmlScale

Scale for improving the precision of VML rendering. Default is 1.

Methods

addPoints

apply

augmentBoundingBox

checkBounds

  • checkBounds(): boolean

clear

  • clear(): void

configureCanvas

  • configureCanvas(c: mxAbstractCanvas2D, x: number, y: number, w: number, h: number): void

create

  • create(container: Element): Element
  • Function: create

    Creates and returns the DOM node(s) for the shape in the given container. This implementation invokes , or depending on the and style settings.

    Parameters:

    container - DOM node that will contain the shape.

    Parameters

    • container: Element

    Returns Element

createBoundingBox

createCanvas

  • createCanvas(): Element

createHtml

  • createHtml(): HTMLElement
  • Function: createHtml

    Creates and returns the HTML DOM node(s) to represent this shape. This implementation falls back to so that the HTML creation is optional.

    Returns HTMLElement

createSvg

  • createSvg(): Element

createSvgCanvas

createTransparentSvgRectangle

  • createTransparentSvgRectangle(x: number, y: number, w: number, h: number): Element

createVml

  • createVml(): Element

createVmlCanvas

createVmlGroup

  • createVmlGroup(): Element

destroy

  • destroy(): void
  • Function: destroy

    Destroys the shape by removing it from the DOM and releasing the DOM node associated with the shape using <mxEvent.release>.

    Returns void

getArcSize

  • getArcSize(w: number, h: number): number

getCursor

  • getCursor(): string

getEdgeWidth

  • getEdgeWidth(): number

getEndArrowWidth

  • getEndArrowWidth(): number

getGradientBounds

getLabelBounds

  • Function: getLabelBounds

    Returns the for the label bounds of this shape, based on the given scaled and translated bounds of the shape. This method should not change the rectangle in-place. This implementation returns the given rect.

    Parameters

    Returns mxRectangle

getLabelMargins

  • Function: getLabelMargins

    Returns the scaled top, left, bottom and right margin to be used for computing the label bounds as an , where the bottom and right margin are defined in the width and height of the rectangle, respectively.

    Parameters

    Returns null | mxRectangle

getRotation

  • getRotation(): number

getShapeRotation

  • getShapeRotation(): number

getStartArrowWidth

  • getStartArrowWidth(): number

getSvgScreenOffset

  • getSvgScreenOffset(): number

getTextRotation

  • getTextRotation(): number

init

  • init(container: Element): void
  • Function: init

    Initializes the shape by creaing the DOM node using and adding it into the given container.

    Parameters:

    container - DOM node that will contain the shape.

    Parameters

    • container: Element

    Returns void

initStyles

  • initStyles(container: Element): void

isArrowRounded

  • isArrowRounded(): boolean

isHtmlAllowed

  • isHtmlAllowed(): boolean

isMarkerEnd

  • isMarkerEnd(): boolean

isMarkerStart

  • isMarkerStart(): boolean

isOpenEnded

  • isOpenEnded(): boolean

isPaintBoundsInverted

  • isPaintBoundsInverted(): boolean

isParseVml

  • isParseVml(): boolean
  • Function: isParseVml

    Specifies if any VML should be added via insertAdjacentHtml to the DOM. This is only needed in IE8 and only if the shape contains VML markup. This method returns true.

    Returns boolean

isRoundable

  • isRoundable(): boolean

paint

paintBackground

  • paintBackground(c: mxAbstractCanvas2D, x: number, y: number, w: number, h: number): void

paintEdgeShape

paintForeground

  • paintForeground(c: mxAbstractCanvas2D, x: number, y: number, w: number, h: number): void

paintGlassEffect

  • paintGlassEffect(c: mxAbstractCanvas2D, x: number, y: number, w: number, h: number, arc: number): void

paintMarker

  • paintMarker(c: mxAbstractCanvas2D, ptX: number, ptY: number, nx: number, ny: number, size: number, arrowWidth: number, edgeWidth: number, spacing: number, initialMove: boolean): void

paintVertexShape

  • paintVertexShape(c: mxAbstractCanvas2D, x: number, y: number, w: number, h: number): void

reconfigure

  • reconfigure(): void

redraw

  • redraw(): void

redrawHtmlShape

  • redrawHtmlShape(): void

redrawShape

  • redrawShape(): void

releaseSvgGradients

  • releaseSvgGradients(grads: any[]): void

resetStyles

  • resetStyles(): void

setCursor

  • setCursor(cursor: string): void
  • Function: setCursor

    Sets the cursor on the given shape.

    Parameters:

    cursor - The cursor to be used.

    Parameters

    • cursor: string

    Returns void

setTransparentBackgroundImage

  • setTransparentBackgroundImage(node: Element): void

updateBoundingBox

  • updateBoundingBox(): void

updateBoundsFromPoints

  • updateBoundsFromPoints(): void

updateHtmlBounds

  • updateHtmlBounds(node: HTMLElement): void

updateHtmlColors

  • updateHtmlColors(node: HTMLElement): void

updateHtmlFilters

  • updateHtmlFilters(node: HTMLElement): void

updateTransform

  • updateTransform(c: mxAbstractCanvas2D, x: number, y: number, w: number, h: number): void

updateVmlContainer

  • updateVmlContainer(): void

Generated using TypeDoc