Options
All
  • Public
  • Public/Protected
  • All
Menu

Implements a single custom handle for vertices.

Hierarchy

  • mxHandle

Index

Constructors

constructor

Properties

cursor

cursor: string

Specifies the cursor to be used for this handle. Default is 'default'.

ignoreGrid

ignoreGrid: boolean

Default is false.

image

image: mxImage

Specifies the to be used to render the handle. Default is null.

Methods

copyStyle

  • copyStyle(key: string): void
  • Sets the cell style with the given name to the corresponding value in .

    Parameters

    • key: string

    Returns void

createShape

destroy

  • destroy(): void

execute

flipPoint

getPosition

getRotation

  • getRotation(): number

getTotalRotation

  • getTotalRotation(): number
  • Returns the rotation from the style and the rotation from the direction of the cell.

    Returns number

init

  • init(): void

initShape

  • initShape(html: any): void

isHtmlRequired

  • isHtmlRequired(): boolean
  • Returns true if this handle should be rendered in HTML. This returns true if the text node is in the graph container.

    Returns boolean

positionChanged

  • positionChanged(): void

processEvent

redraw

  • redraw(): void

reset

  • reset(): void

rotatePoint

setPosition

  • setPosition(bounds: mxRectangle, pt: any, me: any): any

setVisible

  • setVisible(visible: boolean): void

snapPoint

  • Snaps the given point to the grid if ignore is false. This modifies the given point in-place and also returns it.

    Parameters

    Returns mxPoint

Generated using TypeDoc