Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphComponent

Hierarchy

  • GraphComponent

Index

Constructors

constructor

  • new GraphComponent(context: DiazoContext, elementRef: ElementRef<HTMLElement>): GraphComponent

Properties

active

active: boolean = undefined

canvasRef

canvasRef: ElementRef<HTMLCanvasElement>

contextChanged

contextChanged: BehaviorSubject<any> = new BehaviorSubject(null)

graphChanged

graphChanged: BehaviorSubject<DiazoGraph> = new BehaviorSubject<DiazoGraph>({ nodes: [], edges: [] })

graphMenuTrigger

graphMenuTrigger: MatMenuTrigger

menuContents

menuContents: ElementRef<HTMLElement>

nodeMenu

nodeMenu: CdkDrag

nodeMenuEl

nodeMenuEl: ElementRef<HTMLElement>

nodeMenuPositionChanged

nodeMenuPositionChanged: BehaviorSubject<Position> = new BehaviorSubject<Position>({ top: 0, left: 0 })

nodeMenuVisible

nodeMenuVisible: boolean = false

plateRef

plateRef: ElementRef<HTMLElement>

saveRequested

saveRequested: Subject<void> = new Subject<void>()

zoomOrigin

zoomOrigin: Position

Accessors

draftNode

  • get draftNode(): DiazoNode

graph

  • get graph(): DiazoGraph
  • set graph(value: DiazoGraph): void

locked

  • get locked(): boolean
  • set locked(value: boolean): void

nodeTypeMap

  • get nodeTypeMap(): {}
  • set nodeTypeMap(map: {}): void

readonly

  • get readonly(): boolean
  • set readonly(value: boolean): void

zoom

  • get zoom(): number

Methods

componentForNode

  • componentForNode(node: DiazoNode): any

hideNodeMenu

  • hideNodeMenu(): void

isElementInNodeMenu

  • isElementInNodeMenu(element: HTMLElement): boolean

ngAfterViewInit

  • ngAfterViewInit(): void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void

nodeIdentity

  • nodeIdentity(index: number, node: DiazoNode): string

onClick

  • onClick(event: MouseEvent): void

onContextMenu

  • onContextMenu(): boolean

onDoubleClick

  • onDoubleClick(event: MouseEvent): void

onKeyDown

  • onKeyDown(event: KeyboardEvent): void

onMouseDown

  • onMouseDown(startEvent: MouseEvent): void

onMouseEnter

  • onMouseEnter(event: MouseEvent): void

onMouseLeave

  • onMouseLeave(event: MouseEvent): void

onMouseMove

  • onMouseMove(event: MouseEvent): void

onMouseWheel

  • onMouseWheel(event: WheelEvent): void

onNewTouch

  • onNewTouch(event: TouchEvent): void

onTouchEnd

  • onTouchEnd(event: TouchEvent): void

onTouchMove

  • onTouchMove(event: TouchEvent): void

onTouchStart

  • onTouchStart(event: TouchEvent): void

showNodeMenu

  • showNodeMenu(): void

updateNodeMenuHeight

  • updateNodeMenuHeight(): void

Object literals

menuPosition

menuPosition: object

x

x: number = 0

y

y: number = 0

mousePosition

mousePosition: object

left

left: number = 0

top

top: number = 0

Generated using TypeDoc