Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FlowChart

Index

Constructors

  • Parameters

    • element: string | HTMLElement
    • Optional options: Options

    Returns FlowChart

Properties

VERSION: string
active?: boolean
colorBar: ColorBar
defs: string
editor: Editor
element: HTMLElement
menuBar: MenuBar
mode: string
options: Options
scale: number
selectedPort: Port
selectedPortShape: Shape
selectedShapes: SelectedShapeCollection
shapeBar: ShapeBar
statusBar: StatusBar
svgElement: SVGElement
useChangeListener: boolean
viewBox: number[]
CHANGED_TIMEOUT: number
DEFAULT_LABEL_SHAPE_ID: string
DEFAULT_LINK_SHAPE_ID: string
LINK_DITSNANCE: number
LINK_ROUNDED_CORENERS: number
MAGNET_MOVE_PIXELS: number
MAGNET_PORT: number
MAGNET_RESIZE_PIXELS: number
MAGNET_WIN_PIXELS: number
MOVE_NODE_STEP: number
PADDING: number
SCALE_FACTOR: number
SEPARATOR: string
linkTemplates: { rounded: LinkTemplate }

Type declaration

shapeTemplates: { base: ShapeTemplate; connector: ShapeTemplate; data: ShapeTemplate; decision: ShapeTemplate; delay: ShapeTemplate; display: ShapeTemplate; document: ShapeTemplate; inOut: ShapeTemplate; label: ShapeTemplate; loopLimit: ShapeTemplate; manualInput: ShapeTemplate; manualLoop: ShapeTemplate; or: ShapeTemplate; preparation: ShapeTemplate; process: ShapeTemplate; startEnd: ShapeTemplate }

Type declaration

shortcuts: {}

Type declaration

Methods

  • addNodeWithLink(fromPort: Port, templateId: string, callback?: (node: Node, link: Link) => void): Node
  • Parameters

    • fromPort: Port
    • templateId: string
    • Optional callback: (node: Node, link: Link) => void

    Returns Node

  • alignShapes(shapes: Shape[], alignPosition: position, alignToTheFirstNode?: boolean): void
  • Parameters

    • shapes: Shape[]
    • alignPosition: position
    • Optional alignToTheFirstNode: boolean

    Returns void

  • clearRedo(): void
  • Returns void

  • clearUndo(): void
  • Returns void

  • destroy(): void
  • Returns void

  • exportSVG(): void
  • Returns void

  • generateId(): string
  • Returns string

  • getShape(id: string | number): Shape
  • Parameters

    • id: string | number

    Returns Shape

  • json(options?: string[]): JSON
  • Parameters

    • Optional options: string[]

    Returns JSON

  • load(data: { labels?: Shape[]; links?: Link[]; nodes?: Shape[] }): void
  • Parameters

    Returns void

  • makeShapesVisible(shape: Shape[], callback?: () => void): void
  • Parameters

    • shape: Shape[]
    • Optional callback: () => void
        • (): void
        • Returns void

    Returns void

  • onChanged(listener: (args: { properties?: string[] }) => void): FlowChart
  • Parameters

    • listener: (args: { properties?: string[] }) => void
        • (args: { properties?: string[] }): void
        • Parameters

          • args: { properties?: string[] }
            • Optional properties?: string[]

          Returns void

    Returns FlowChart

  • onFieldChange(listener: (args: { fieldName: string; newValue: string; oldValue: string; shape: Shape }) => void): FlowChart
  • Parameters

    • listener: (args: { fieldName: string; newValue: string; oldValue: string; shape: Shape }) => void
        • (args: { fieldName: string; newValue: string; oldValue: string; shape: Shape }): void
        • Parameters

          • args: { fieldName: string; newValue: string; oldValue: string; shape: Shape }
            • fieldName: string
            • newValue: string
            • oldValue: string
            • shape: Shape

          Returns void

    Returns FlowChart

  • onInit(listener: (args: {}) => void): FlowChart
  • Parameters

    • listener: (args: {}) => void
        • (args: {}): void
        • Parameters

          • args: {}

            Returns void

      Returns FlowChart

    • onLinkClick(listener: (args: { event: Event; linkId: string | number }) => void): FlowChart
    • Parameters

      • listener: (args: { event: Event; linkId: string | number }) => void
          • (args: { event: Event; linkId: string | number }): void
          • Parameters

            • args: { event: Event; linkId: string | number }
              • event: Event
              • linkId: string | number

            Returns void

      Returns FlowChart

    • onMenuItemClick(listener: (args: { event: Event; name: string }) => void): FlowChart
    • Parameters

      • listener: (args: { event: Event; name: string }) => void
          • (args: { event: Event; name: string }): void
          • Parameters

            • args: { event: Event; name: string }
              • event: Event
              • name: string

            Returns void

      Returns FlowChart

    • onSelectedPortChange(listener: (args: { newPort: Port; oldPort: Port }) => void): FlowChart
    • Parameters

      • listener: (args: { newPort: Port; oldPort: Port }) => void
          • (args: { newPort: Port; oldPort: Port }): void
          • Parameters

            Returns void

      Returns FlowChart

    • onSelectedShapesChanged(listener: (args: {}) => void): FlowChart
    • Parameters

      • listener: (args: {}) => void
          • (args: {}): void
          • Parameters

            • args: {}

              Returns void

        Returns FlowChart

      • onShapeClick(listener: (args: { event: Event; shapeId: string | number }) => void): FlowChart
      • Parameters

        • listener: (args: { event: Event; shapeId: string | number }) => void
            • (args: { event: Event; shapeId: string | number }): void
            • Parameters

              • args: { event: Event; shapeId: string | number }
                • event: Event
                • shapeId: string | number

              Returns void

        Returns FlowChart

      • onShapeDoubleClick(listener: (args: { event: Event; shapeId: string | number }) => void): FlowChart
      • Parameters

        • listener: (args: { event: Event; shapeId: string | number }) => void
            • (args: { event: Event; shapeId: string | number }): void
            • Parameters

              • args: { event: Event; shapeId: string | number }
                • event: Event
                • shapeId: string | number

              Returns void

        Returns FlowChart

      • onShortcut(listener: (args: { event: Event; name: string }) => void): FlowChart
      • Parameters

        • listener: (args: { event: Event; name: string }) => void
            • (args: { event: Event; name: string }): void
            • Parameters

              • args: { event: Event; name: string }
                • event: Event
                • name: string

              Returns void

        Returns FlowChart

      • onSvgClick(listener: (args: { event: Event }) => void): FlowChart
      • Parameters

        • listener: (args: { event: Event }) => void
            • (args: { event: Event }): void
            • Parameters

              • args: { event: Event }
                • event: Event

              Returns void

        Returns FlowChart

      • onUndoRedoChanged(listener: (args: {}) => void): FlowChart
      • Parameters

        • listener: (args: {}) => void
            • (args: {}): void
            • Parameters

              • args: {}

                Returns void

          Returns FlowChart

        • redo(): void
        • Returns void

        • redoStepsCount(): number
        • Returns number

        • reposition(position?: startPosition, shapes?: Shape[], shouldAnimate?: boolean, callback?: () => void): void
        • Parameters

          • Optional position: startPosition
          • Optional shapes: Shape[]
          • Optional shouldAnimate: boolean
          • Optional callback: () => void
              • (): void
              • Returns void

          Returns void

        • rippleShape(shape: Shape, color: string, callback?: () => void): void
        • Parameters

          • shape: Shape
          • color: string
          • Optional callback: () => void
              • (): void
              • Returns void

          Returns void

        • svg(): string
        • Returns string

        • text(options?: string[]): string
        • Parameters

          • Optional options: string[]

          Returns string

        • undo(): void
        • Returns void

        • undoStepsCount(): number
        • Returns number

        • animate(elements: (HTMLElement | SVGElement)[], attrStart: Object, attrEnd: Object, duration: number, func: anim, callback?: Function, tick?: boolean): void
        • Parameters

          • elements: (HTMLElement | SVGElement)[]
          • attrStart: Object
          • attrEnd: Object
          • duration: number
          • func: anim
          • Optional callback: Function
          • Optional tick: boolean

          Returns void

        • isMobile(): boolean
        • Returns boolean

        • isNEU(val: any): boolean
        • Parameters

          • val: any

          Returns boolean

        Legend

        • Constructor
        • Property
        • Method
        • Static property
        • Static method

        Settings

        Theme

        Generated using TypeDoc