Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphComponent<X, Y>

Type parameters

  • X

  • Y

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Readonly childComponentMap

childComponentMap: null | {}

Readonly childComponents

childComponents: readonly Component[]

Readonly componentFasteners

componentFasteners: null | {}

Readonly componentFlags

componentFlags: number

Readonly componentModels

componentModels: null | {}

Readonly componentObservers

componentObservers: readonly GraphComponentObserver<X, Y, GraphComponent<X, Y>>[]

Readonly componentProperties

componentProperties: null | {}

Readonly componentServices

componentServices: null | {}

Readonly componentTraits

componentTraits: null | {}

Readonly componentViewTraits

componentViewTraits: null | {}

Readonly componentViews

componentViews: null | {}

Readonly executeService

executeService: ExecuteService<GraphComponent<X, Y>>

Readonly graph

graph: ComponentViewTrait<GraphComponent<X, Y>, GraphView<X, Y>, GraphTrait<X, Y>, never, never>

Readonly historyService

historyService: HistoryService<GraphComponent<X, Y>>

Readonly key

key: undefined | string

Readonly parentComponent

parentComponent: null | Component

Readonly plotFasteners

plotFasteners: readonly ComponentFastener<GraphComponent<X, Y>, PlotComponent<X, Y>, never>[]

Readonly storageService

storageService: StorageService<GraphComponent<X, Y>>

Static Readonly Extrinsic

Extrinsic: number = 1

Static GraphFastener

GraphFastener: ComponentViewTraitConstructor<GraphComponent<unknown, unknown>, GraphView<unknown, unknown>, GraphTrait<unknown, unknown>, never, never, {}>

Static Readonly Intrinsic

Intrinsic: number = 0

Static Readonly NeedsAssemble

NeedsAssemble: number = ...

Static Readonly NeedsCompile

NeedsCompile: number = ...

Static Readonly NeedsCompute

NeedsCompute: number = ...

Static Readonly NeedsExecute

NeedsExecute: number = ...

Static Readonly NeedsGenerate

NeedsGenerate: number = ...

Static Readonly NeedsResolve

NeedsResolve: number = ...

Static Readonly NeedsRevise

NeedsRevise: number = ...

Static PlotFastener

PlotFastener: ComponentFastenerConstructor<GraphComponent<unknown, unknown>, PlotComponent<unknown, unknown>, never, {}>

Static Readonly insertChildFlags

insertChildFlags: number = 0

Static Readonly mountFlags

mountFlags: number = 0

Static Readonly powerFlags

powerFlags: number = 0

Static Readonly removeChildFlags

removeChildFlags: number = 0

Accessors

childComponentCount

  • get childComponentCount(): number
  • Returns number

componentContext

insertChildFlags

  • get insertChildFlags(): number

mountFlags

  • get mountFlags(): number

powerFlags

  • get powerFlags(): number

removeChildFlags

  • get removeChildFlags(): number

superComponentContext

Methods

addComponentObserver

appendChildComponent

  • appendChildComponent(childComponent: Component, key?: string): void

Protected attachDataPoint

Protected attachDataPointLabelView

Protected attachDataPointTrait

Protected attachDataPointView

Protected attachDataSetTrait

Protected attachGraphTrait

  • attachGraphTrait(graphTrait: GraphTrait<X, Y>): void
  • Parameters

    Returns void

Protected attachGraphView

  • attachGraphView(graphView: GraphView<X, Y>): void
  • Parameters

    Returns void

Protected attachParentComponent

  • attachParentComponent(parentComponent: Component): void

Protected attachPlot

Protected attachPlotTrait

Protected attachPlotView

cascadeCompile

  • cascadeCompile(compileFlags: number, componentContext: ComponentContext): void

cascadeExecute

  • cascadeExecute(executeFlags: number, componentContext: ComponentContext): void

cascadeInsert

  • cascadeInsert(updateFlags?: number, componentContext?: ComponentContext): void
  • Parameters

    Returns void

cascadeMount

  • cascadeMount(): void
  • Returns void

cascadePower

  • cascadePower(): void
  • Returns void

cascadeUnmount

  • cascadeUnmount(): void

cascadeUnpower

  • cascadeUnpower(): void

Protected compileChildComponents

  • compileChildComponents(compileFlags: number, componentContext: ComponentContext, compileChildComponent: (childComponent: Component, compileFlags: number, componentContext: ComponentContext) => void): void

Protected createGraphView

  • Returns null | GraphView<X, Y>

Protected createPlot

  • Parameters

    Returns null | PlotComponent<X, Y>

Protected createPlotFastener

Protected createPlotView

  • Parameters

    Returns null | PlotView<X, Y>

Protected detachDataPoint

Protected detachDataPointLabelView

Protected detachDataPointTrait

Protected detachDataPointView

Protected detachDataSetTrait

Protected detachGraphTrait

  • detachGraphTrait(graphTrait: GraphTrait<X, Y>): void
  • Parameters

    Returns void

Protected detachGraphView

  • detachGraphView(graphView: GraphView<X, Y>): void
  • Parameters

    Returns void

Protected detachParentComponent

  • detachParentComponent(parentComponent: Component): void

Protected detachPlot

Protected detachPlotTrait

Protected detachPlotView

Protected detectPlotComponent

  • Parameters

    Returns null | PlotComponent<X, Y>

Protected didAddComponentObserver

Protected didAssemble

Protected didCompile

Protected didCompileChildComponent

Protected didCompileChildComponents

  • didCompileChildComponents(compileFlags: number, componentContext: ComponentContext): void

Protected didCompute

Protected didExecute

Protected didExecuteChildComponent

Protected didExecuteChildComponents

  • didExecuteChildComponents(executeFlags: number, componentContext: ComponentContext): void

Protected didGenerate

Protected didInsertChildComponent

  • didInsertChildComponent(childComponent: Component, targetComponent: null | Component): void

Protected didMount

  • didMount(): void

Protected didObserve

Protected didPower

  • didPower(): void

Protected didRemoveChildComponent

  • didRemoveChildComponent(childComponent: Component): void

Protected didRemoveComponentObserver

Protected didRequestUpdate

  • didRequestUpdate(targetComponent: Component, updateFlags: number, immediate: boolean): void

Protected didRequireUpdate

  • didRequireUpdate(updateFlags: number, immediate: boolean): void

Protected didResolve

Protected didRevise

Protected didSetDataPoint

Protected didSetDataPointLabelView

Protected didSetDataPointTrait

Protected didSetDataPointView

Protected didSetDataSetTrait

Protected didSetGraphTrait

  • didSetGraphTrait(newGraphTrait: null | GraphTrait<X, Y>, oldGraphTrait: null | GraphTrait<X, Y>): void
  • Parameters

    Returns void

Protected didSetGraphView

  • didSetGraphView(newGraphView: null | GraphView<X, Y>, oldGraphView: null | GraphView<X, Y>): void
  • Parameters

    Returns void

Protected didSetParentComponent

  • didSetParentComponent(newParentComponent: null | Component, oldParentComponent: null | Component): void

Protected didSetPlot

Protected didSetPlotTrait

Protected didSetPlotView

Protected didUnmount

  • didUnmount(): void

Protected didUnpower

  • didUnpower(): void

Protected doCompile

  • Parameters

    Returns void

Protected doExecute

  • Parameters

    Returns void

Protected doMountChildComponents

  • doMountChildComponents(): void

Protected doPowerChildComponents

  • doPowerChildComponents(): void

Protected doUnmountChildComponents

  • doUnmountChildComponents(): void

Protected doUnpowerChildComponents

  • doUnpowerChildComponents(): void

Protected executeChildComponents

  • executeChildComponents(executeFlags: number, componentContext: ComponentContext, executeChildComponent: (childComponent: Component, executeFlags: number, componentContext: ComponentContext) => void): void

firstChildComponent

forEachChildComponent

  • forEachChildComponent<T>(callback: (childComponent: Component) => void | T): undefined | T
  • forEachChildComponent<T, S>(callback: (childComponent: Component) => void | T, thisArg: S): undefined | T
  • Type parameters

    • T

    Parameters

    • callback: (childComponent: Component) => void | T
        • Parameters

          Returns void | T

    Returns undefined | T

  • Type parameters

    • T

    • S

    Parameters

    • callback: (childComponent: Component) => void | T
        • Parameters

          Returns void | T

    • thisArg: S

    Returns undefined | T

getBaseComponent

getChildComponent

  • getChildComponent(key: string): null | Component

getComponentFastener

getComponentModel

getComponentProperty

getComponentService

getComponentTrait

getComponentView

getComponentViewTrait

Protected getPlotFastener

getSuperComponent

hasComponentFastener

  • hasComponentFastener(fastenerName: string): boolean
  • Parameters

    • fastenerName: string

    Returns boolean

hasComponentModel

  • hasComponentModel(modelName: string): boolean
  • Parameters

    • modelName: string

    Returns boolean

hasComponentProperty

  • hasComponentProperty(propertyName: string): boolean
  • Parameters

    • propertyName: string

    Returns boolean

hasComponentService

  • hasComponentService(serviceName: string): boolean
  • Parameters

    • serviceName: string

    Returns boolean

hasComponentTrait

  • hasComponentTrait(traitName: string): boolean
  • Parameters

    • traitName: string

    Returns boolean

hasComponentView

  • hasComponentView(viewName: string): boolean
  • Parameters

    • viewName: string

    Returns boolean

hasComponentViewTrait

  • hasComponentViewTrait(fastenerName: string): boolean
  • Parameters

    • fastenerName: string

    Returns boolean

initComponent

Protected initDataPoint

Protected initDataPointLabelView

Protected initDataPointTrait

Protected initDataPointView

Protected initDataSetTrait

Protected initGraphTrait

  • initGraphTrait(graphTrait: GraphTrait<X, Y>): void
  • Parameters

    Returns void

Protected initGraphView

  • initGraphView(graphView: GraphView<X, Y>): void
  • Parameters

    Returns void

Protected initPlot

Protected initPlotTrait

Protected initPlotView

insertChildComponent

  • insertChildComponent(childComponent: Component, targetComponent: null | Component, key?: string): void

Protected insertChildComponentMap

  • insertChildComponentMap(childComponent: Component): void

Protected insertComponentFastener

  • insertComponentFastener(childComponent: Component, targetComponent: null | Component): void

insertPlot

  • Parameters

    Returns void

insertPlotTrait

  • insertPlotTrait(plotTrait: PlotTrait<X, Y>, targetTrait?: null | Trait): void
  • Parameters

    Returns void

isCompiling

  • isCompiling(): boolean

isExecuting

  • isExecuting(): boolean

isMounted

  • isMounted(): boolean

isPowered

  • isPowered(): boolean

isTraversing

  • isTraversing(): boolean

isUpdating

  • isUpdating(): boolean

lastChildComponent

mount

  • mount(): void

Protected mountComponentFasteners

  • mountComponentFasteners(): void

Protected mountComponentModels

  • mountComponentModels(): void

Protected mountComponentProperties

  • mountComponentProperties(): void

Protected mountComponentServices

  • mountComponentServices(): void

Protected mountComponentTraits

  • mountComponentTraits(): void

Protected mountComponentViewTraits

  • mountComponentViewTraits(): void

Protected mountComponentViews

  • mountComponentViews(): void

Protected mountPlotFasteners

  • mountPlotFasteners(): void
  • Returns void

needsCompile

  • needsCompile(compileFlags: number, componentContext: ComponentContext): number

needsExecute

  • needsExecute(executeFlags: number, componentContext: ComponentContext): number

nextChildComponent

Protected onAddComponentObserver

Protected onAssemble

Protected onCompile

Protected onCompileChildComponent

Protected onCompileChildComponents

  • onCompileChildComponents(compileFlags: number, componentContext: ComponentContext): void

Protected onCompute

Protected onExecute

Protected onExecuteChildComponent

Protected onExecuteChildComponents

  • onExecuteChildComponents(executeFlags: number, componentContext: ComponentContext): void

Protected onGenerate

Protected onInsertChildComponent

  • onInsertChildComponent(childComponent: Component, targetComponent: null | Component): void

Protected onMount

  • onMount(): void
  • Returns void

Protected onPower

  • onPower(): void

Protected onRemoveChildComponent

  • onRemoveChildComponent(childComponent: Component): void

Protected onRemoveComponentObserver

Protected onRequestUpdate

  • onRequestUpdate(targetComponent: Component, updateFlags: number, immediate: boolean): void

Protected onRequireUpdate

  • onRequireUpdate(updateFlags: number, immediate: boolean): void

Protected onResolve

Protected onRevise

Protected onSetDataPoint

Protected onSetDataPointColor

Protected onSetDataPointLabelView

Protected onSetDataPointOpacity

Protected onSetDataPointRadius

Protected onSetDataPointTrait

Protected onSetDataPointView

Protected onSetDataPointX

Protected onSetDataPointY

Protected onSetDataPointY2

Protected onSetDataSetTrait

Protected onSetGraphTrait

  • onSetGraphTrait(newGraphTrait: null | GraphTrait<X, Y>, oldGraphTrait: null | GraphTrait<X, Y>): void
  • Parameters

    Returns void

Protected onSetGraphView

  • onSetGraphView(newGraphView: null | GraphView<X, Y>, oldGraphView: null | GraphView<X, Y>): void
  • Parameters

    Returns void

Protected onSetParentComponent

  • onSetParentComponent(newParentComponent: null | Component, oldParentComponent: null | Component): void

Protected onSetPlot

Protected onSetPlotTrait

Protected onSetPlotView

Protected onUnmount

  • onUnmount(): void
  • Returns void

Protected onUnpower

  • onUnpower(): void

prependChildComponent

  • prependChildComponent(childComponent: Component, key?: string): void

previousChildComponent

remove

  • remove(): void
  • Returns void

removeAll

  • removeAll(): void
  • Returns void

removeChildComponent

  • removeChildComponent(key: string): null | Component
  • removeChildComponent(childComponent: Component): void

Protected removeChildComponentMap

  • removeChildComponentMap(childComponent: Component): void

Protected removeComponentFastener

  • removeComponentFastener(childComponent: Component): void

removeComponentObserver

removePlot

  • Parameters

    Returns void

removePlotTrait

  • removePlotTrait(plotTrait: PlotTrait<X, Y>): void
  • Parameters

    Returns void

requestUpdate

  • requestUpdate(targetComponent: Component, updateFlags: number, immediate: boolean): void

requireUpdate

  • requireUpdate(updateFlags: number, immediate?: boolean): void

reviseComponentProperties

  • reviseComponentProperties(): void

setChildComponent

setComponentFastener

setComponentFlags

  • setComponentFlags(componentFlags: number): void

setComponentModel

setComponentProperty

setComponentService

setComponentTrait

setComponentView

setComponentViewTrait

setKey

  • setKey(key: undefined | string): void
  • Parameters

    • key: undefined | string

    Returns void

setParentComponent

  • setParentComponent(newParentComponent: null | Component, oldParentComponent: null | Component): void

Protected themeGraphView

  • Parameters

    Returns void

Protected unmountComponentFasteners

  • unmountComponentFasteners(): void

Protected unmountComponentModels

  • unmountComponentModels(): void

Protected unmountComponentProperties

  • unmountComponentProperties(): void

Protected unmountComponentServices

  • unmountComponentServices(): void

Protected unmountComponentTraits

  • unmountComponentTraits(): void

Protected unmountComponentViewTraits

  • unmountComponentViewTraits(): void

Protected unmountComponentViews

  • unmountComponentViews(): void

Protected unmountPlotFasteners

  • unmountPlotFasteners(): void
  • Returns void

Protected willAddComponentObserver

Protected willAssemble

Protected willCompile

Protected willCompileChildComponent

Protected willCompileChildComponents

  • willCompileChildComponents(compileFlags: number, componentContext: ComponentContext): void

Protected willCompute

Protected willExecute

Protected willExecuteChildComponent

Protected willExecuteChildComponents

  • willExecuteChildComponents(executeFlags: number, componentContext: ComponentContext): void

Protected willGenerate

Protected willInsertChildComponent

  • willInsertChildComponent(childComponent: Component, targetComponent: null | Component): void

Protected willMount

  • willMount(): void

Protected willObserve

Protected willPower

  • willPower(): void

Protected willRemoveChildComponent

  • willRemoveChildComponent(childComponent: Component): void

Protected willRemoveComponentObserver

Protected willRequestUpdate

  • willRequestUpdate(targetComponent: Component, updateFlags: number, immediate: boolean): void

Protected willRequireUpdate

  • willRequireUpdate(updateFlags: number, immediate: boolean): void

Protected willResolve

Protected willRevise

Protected willSetDataPoint

Protected willSetDataPointLabelView

Protected willSetDataPointTrait

Protected willSetDataPointView

Protected willSetDataSetTrait

Protected willSetGraphTrait

  • willSetGraphTrait(newGraphTrait: null | GraphTrait<X, Y>, oldGraphTrait: null | GraphTrait<X, Y>): void
  • Parameters

    Returns void

Protected willSetGraphView

  • willSetGraphView(newGraphView: null | GraphView<X, Y>, oldGraphView: null | GraphView<X, Y>): void
  • Parameters

    Returns void

Protected willSetParentComponent

  • willSetParentComponent(newParentComponent: null | Component, oldParentComponent: null | Component): void

Protected willSetPlot

Protected willSetPlotTrait

Protected willSetPlotView

Protected willUnmount

  • willUnmount(): void

Protected willUnpower

  • willUnpower(): void

Generated using TypeDoc