Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • mxGuide

Index

Constructors

constructor

Properties

graph

graph: mxGraph

Variable: graph

Reference to the enclosing instance.

guideX

guideX: mxShape

Variable: vertical

Holds the for the horizontal guide.

guideY

guideY: mxShape

Variable: vertical

Holds the for the vertical guide.

horizontal

horizontal: boolean

Variable: horizontal

Specifies if horizontal guides are enabled. Default is true.

states

states: mxCellState[]

Variable: states

Contains the that are used for alignment.

vertical

vertical: boolean

Variable: vertical

Specifies if vertical guides are enabled. Default is true.

Methods

createGuideShape

  • createGuideShape(horizontal: boolean): mxPolyline
  • Function: createGuideShape

    Returns the mxShape to be used for painting the respective guide. This implementation returns a new, dashed and crisp using <mxConstants.GUIDE_COLOR> and <mxConstants.GUIDE_STROKEWIDTH> as the format.

    Parameters:

    horizontal - Boolean that specifies which guide should be created.

    Parameters

    • horizontal: boolean

    Returns mxPolyline

destroy

  • destroy(): void
  • Function: destroy

    Destroys all resources that this object uses.

    Returns void

getGuideColor

  • getGuideColor(state: mxCellState, horizontal: any): string

getGuideTolerance

  • getGuideTolerance(): number
  • Function: getGuideTolerance

    Returns the tolerance for the guides. Default value is gridSize / 2.

    Returns number

hide

  • hide(): void

isEnabledForEvent

  • isEnabledForEvent(evt: Event): boolean
  • Function: isEnabledForEvent

    Returns true if the guide should be enabled for the given native event. This implementation always returns true.

    Parameters

    • evt: Event

    Returns boolean

isStateIgnored

move

setStates

setVisible

  • setVisible(visible: boolean): void
  • Function: setVisible

    Shows or hides the current guides.

    Parameters

    • visible: boolean

    Returns void

Generated using TypeDoc