Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IMDBVertex

The IMDBVertex abstract base class provides common implementations of:

  • Default styling.
  • Annotation addition and styling (different when expanded / contracted).
  • Tooltip formatting.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected _annotationWidgets

_annotationWidgets: __type

Protected _boundingBox

_boundingBox: any

_class

_class: string

Protected _db

_db: Grid

Protected _display

_display: any

Protected _drawStartPos

_drawStartPos: "center" | "origin"

Protected _element

_element: any

Private _expanded

_expanded: boolean = false

Protected _graphID

_graphID: any

Protected _icon

_icon: Icon

Protected _id

_id: string

_idSeed

_idSeed: string

Protected _isRootNode

_isRootNode: boolean

Protected _overlayElement

_overlayElement: any

Protected _parentOverlay

_parentOverlay: any

Protected _parentRelativeDiv

_parentRelativeDiv: any

Protected _parentWidget

_parentWidget: any

Protected _placeholderElement

_placeholderElement: any

_popMarkersDebounced

_popMarkersDebounced: function

Type declaration

    • (..._dummyArgs: any[]): void
    • Parameters

      • Rest ..._dummyArgs: any[]

      Returns void

Protected _pos

_pos: any

_prevHash

_prevHash: any

Protected _prevPos

_prevPos: any

Protected _renderCount

_renderCount: any

Protected _size

_size: any

_tag

_tag: any

Protected _target

_target: null | HTMLElement | SVGElement

Protected _textBox

_textBox: TextBox

Protected _visible

_visible: any

Protected _widgetScale

_widgetScale: any

classed

classed: function

Type declaration

    • (_?: any): any | this
    • Parameters

      • Optional _: any

      Returns any | this

lazyRender

lazyRender: function

Type declaration

    • (..._dummyArgs: any[]): void
    • Parameters

      • Rest ..._dummyArgs: any[]

      Returns void

Protected transition

transition: any

Static _class

_class: string

Static prevClassID

prevClassID: string

Methods

_fixIEMarkers

  • _fixIEMarkers(element?: any): void
  • Parameters

    • Optional element: any

    Returns void

_popMarkers

  • _popMarkers(element?: any): void
  • Parameters

    • Optional element: any

    Returns void

_pushMarkers

  • _pushMarkers(element?: any): void
  • Parameters

    • Optional element: any

    Returns void

anchor

  • anchor(): string
  • anchor(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

animationFrameRender

  • animationFrameRender(): this
  • Returns this

annotationDiameter

  • annotationDiameter(): number
  • annotationDiameter(_: number): this
  • Returns number

  • Parameters

    • _: number

    Returns this

annotationIcons

  • annotationIcons(): IAnnotation[]
  • annotationIcons(_: IAnnotation[]): this
  • Returns IAnnotation[]

  • Parameters

    • _: IAnnotation[]

    Returns this

annotationSpacing

  • annotationSpacing(): number
  • annotationSpacing(_: number): this
  • Returns number

  • Parameters

    • _: number

    Returns this

appData

  • appData(key: string): any
  • appData(key: string, value: any): this
  • Parameters

    • key: string

    Returns any

  • Parameters

    • key: string
    • value: any

    Returns this

Protected appendAnnotation

  • appendAnnotation(linkCount: number, tooltip: any, shape_color: any, image_color: any): void
  • Append a new annotation, default to "filled" to indicate that it has not been expanded.

    Parameters

    • linkCount: number

      number of external links. Numbers > 10 will be displayed as a "*"

    • tooltip: any
    • shape_color: any

      Rectangle color

    • image_color: any

      Icon/Text color

    Returns void

applyTheme

  • applyTheme(theme: any): void
  • Parameters

    • theme: any

    Returns void

broadcast

  • broadcast(key: any, newVal: any, oldVal: any, source?: any): void
  • Parameters

    • key: any
    • newVal: any
    • oldVal: any
    • Optional source: any

    Returns void

calcPublishedProperties

  • calcPublishedProperties(includePrivate?: boolean, expandProxies?: boolean): void
  • Parameters

    • Optional includePrivate: boolean
    • Optional expandProxies: boolean

    Returns void

calcSnap

  • calcSnap(snapSize: any): (object | object)[]
  • Parameters

    • snapSize: any

    Returns (object | object)[]

Protected calcTooltip

  • calcTooltip(titleKey: string, obj: object): string
  • Tooltip html generator, creates a two column HTML table with a single header.

    Parameters

    • titleKey: string

      ID of key in obj to use as the title

    • obj: object

      Key/Value object containgin data to display in the table

    Returns string

    String containing HTML formatted table

centroid

  • centroid(): boolean
  • centroid(_: boolean): this
  • Returns boolean

  • Parameters

    • _: boolean

    Returns this

class

  • class(): string
  • class(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

classID

  • classID(): string
  • Returns string

classMeta

  • classMeta(): ClassMeta
  • Returns ClassMeta

cloneData

  • cloneData(): any
  • Returns any

columns

  • columns(): string[]
  • columns(_: string[], asDefault?: boolean): this
  • Returns string[]

  • Parameters

    • _: string[]
    • Optional asDefault: boolean

    Returns this

contains

  • contains(point: any): boolean
  • Parameters

    • point: any

    Returns boolean

containsCircle

  • containsCircle(radius: any, point: any): boolean
  • Parameters

    • radius: any
    • point: any

    Returns boolean

containsRect

  • containsRect(point: any): boolean
  • Parameters

    • point: any

    Returns boolean

copyPropsTo

  • copyPropsTo(other: PropertyExt, ignore?: string[]): this
  • Parameters

    • other: PropertyExt
    • Optional ignore: string[]

    Returns this

cssTag

  • cssTag(id: string): string
  • Parameters

    • id: string

    Returns string

data

  • data(): any
  • data(_: any): this
  • Returns any

  • Parameters

    • _: any

    Returns this

deserialize

  • deserialize(props: any): this
  • Parameters

    • props: any

    Returns this

display

  • display(): boolean
  • display(_: any): this
  • Returns boolean

  • Parameters

    • _: any

    Returns this

distance

  • distance(pointA: any, pointB: any): number
  • Parameters

    • pointA: any
    • pointB: any

    Returns number

element

  • element(): any
  • Returns any

enter

  • enter(domNode: any, element: any): void
  • Parameters

    • domNode: any
    • element: any

    Returns void

exit

  • exit(domNode: any, _element: any): void
  • Parameters

    • domNode: any
    • _element: any

    Returns void

expanded

  • expanded(): boolean
  • expanded(_: boolean): this
  • Mark any vertex as expanded. When expanded the annotations will render "hollow" as a visual indicator to the user that the node has been expanded:

    Returns boolean

  • Parameters

    • _: boolean

    Returns this

export

  • export(_?: "JSON" | "CSV" | "TSV"): string | Grid
  • Parameters

    • Optional _: "JSON" | "CSV" | "TSV"

    Returns string | Grid

faChar

  • faChar(): string
  • faChar(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

fields

  • fields(): Field[]
  • fields(_: Field[]): this
  • Returns Field[]

  • Parameters

    • _: Field[]

    Returns this

flattenData

  • flattenData(columns?: string[], data?: any): any[]
  • Parameters

    • Optional columns: string[]
    • Optional data: any

    Returns any[]

formattedData

  • formattedData(): any[][]
  • Returns any[][]

getAbsolutePos

  • getAbsolutePos(domNode: any, w: any, h: any): any
  • Parameters

    • domNode: any
    • w: any
    • h: any

    Returns any

getBBox

  • getBBox(refresh?: boolean, round?: boolean): object
  • Parameters

    • Optional refresh: boolean
    • Optional round: boolean

    Returns object

    • height: number
    • width: number
    • x: number
    • y: number

getIconBBox

  • getIconBBox(): object
  • Returns object

    • height: number
    • width: number
    • x: number
    • y: number

getOffsetPos

  • getOffsetPos(): object
  • Returns object

    • x: number
    • y: number

hasOverlay

  • hasOverlay(): any
  • Returns any

hashSum

  • hashSum(ignore?: string[], more?: __type): string
  • Parameters

    • Optional ignore: string[]
    • Optional more: __type

    Returns string

height

  • height(): number
  • height(_: any): this
  • Returns number

  • Parameters

    • _: any

    Returns this

iconAnchor

  • iconAnchor(): "" | "start" | "middle" | "end" | "left"
  • iconAnchor(_: "" | "start" | "middle" | "end" | "left"): this
  • Returns "" | "start" | "middle" | "end" | "left"

  • Parameters

    • _: "" | "start" | "middle" | "end" | "left"

    Returns this

iconTooltip

  • iconTooltip(): string
  • iconTooltip(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

icon_diameter

  • icon_diameter(): number
  • icon_diameter(_: number): this
  • Returns number

  • Parameters

    • _: number

    Returns this

icon_image_colorFill

  • icon_image_colorFill(): string
  • icon_image_colorFill(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

icon_paddingPercent

  • icon_paddingPercent(): number
  • icon_paddingPercent(_: number): this
  • Returns number

  • Parameters

    • _: number

    Returns this

icon_shape_colorFill

  • icon_shape_colorFill(): string
  • icon_shape_colorFill(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

icon_shape_colorStroke

  • icon_shape_colorStroke(): string
  • icon_shape_colorStroke(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

id

  • id(): string
  • id(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

imageUrl

  • imageUrl(): string
  • imageUrl(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

implements

  • implements(source: any): void
  • Parameters

    • source: any

    Returns void

importJSON

  • importJSON(_: string | any): this
  • Parameters

    • _: string | any

    Returns this

intersectCircle

  • intersectCircle(radius: any, pointA: any, pointB: any): object
  • Parameters

    • radius: any
    • pointA: any
    • pointB: any

    Returns object

    • x: any
    • y: any

intersectRect

  • intersectRect(pointA: any, pointB: any): any
  • Parameters

    • pointA: any
    • pointB: any

    Returns any

intersection

  • intersection(pointA: any, pointB: any): any
  • Parameters

    • pointA: any
    • pointB: any

    Returns any

isDOMHidden

  • isDOMHidden(): boolean
  • Returns boolean

leakCheck

  • leakCheck(newNode: any): void
  • Parameters

    • newNode: any

    Returns void

locateAncestor

  • locateAncestor(classID: any): Widget | null
  • Parameters

    • classID: any

    Returns Widget | null

locateOverlayNode

  • locateOverlayNode(): d3SelectionType | null
  • Returns d3SelectionType | null

locateParentWidget

  • locateParentWidget(domNode?: any): Widget | null
  • Parameters

    • Optional domNode: any

    Returns Widget | null

locateSVGNode

  • locateSVGNode(domNode: any): SVGSVGElement | null
  • Parameters

    • domNode: any

    Returns SVGSVGElement | null

mixin

  • mixin(mixinClass: any): void
  • Parameters

    • mixinClass: any

    Returns void

monitor

  • monitor(func: function): object
  • Parameters

    • func: function
        • (id: string, newVal: any, oldVal: any, source: PropertyExt): void
        • Parameters

          • id: string
          • newVal: any
          • oldVal: any
          • source: PropertyExt

          Returns void

    Returns object

    • remove: function
        • (): void
        • Returns void

monitorProperty

  • monitorProperty(propID: string, func: function): IMonitorHandle
  • Parameters

    • propID: string
    • func: function
        • (id: string, newVal: any, oldVal: any): void
        • Parameters

          • id: string
          • newVal: any
          • oldVal: any

          Returns void

    Returns IMonitorHandle

mouseout

  • mouseout(d: any): void
  • Parameters

    • d: any

    Returns void

mouseover

  • mouseover(d: any): void
  • Parameters

    • d: any

    Returns void

move

  • move(_: any, transitionDuration?: any): this
  • Parameters

    • _: any
    • Optional transitionDuration: any

    Returns this

node

  • node(): any
  • Returns any

on

  • on(eventID: any, func: any, stopPropagation?: boolean): this
  • Parameters

    • eventID: any
    • func: any
    • Optional stopPropagation: boolean

    Returns this

overrideMethod

  • overrideMethod(methodID: string, newMethod: function): this
  • Parameters

    • methodID: string
    • newMethod: function
        • (...args: any[]): any
        • Parameters

          • Rest ...args: any[]

          Returns any

    Returns this

parentOverlay

  • parentOverlay(): d3SelectionType | null
  • Returns d3SelectionType | null

parsedData

  • parsedData(): any[]
  • Returns any[]

pos

  • pos(): IPos
  • pos(_: IPos): this
  • Returns IPos

  • Parameters

    • _: IPos

    Returns this

postUpdate

  • postUpdate(domNode: any, element: any): void
  • Parameters

    • domNode: any
    • element: any

    Returns void

preUpdate

  • preUpdate(_domNode: HTMLElement, _element: d3SelectionType): void
  • Parameters

    • _domNode: HTMLElement
    • _element: d3SelectionType

    Returns void

propertyWalker

  • propertyWalker(visitor: function, filter?: function): void
  • Parameters

    • visitor: function
        • (context: this, publishItem: Meta): void
        • Parameters

          • context: this
          • publishItem: Meta

          Returns void

    • Optional filter: function
        • (context: this, publishItem: Meta): boolean
        • Parameters

          • context: this
          • publishItem: Meta

          Returns boolean

    Returns void

publish

  • publish(id: string, defaultValue: any, type?: PublishTypes, description?: string, set?: string[] | function | IPublishExt, ext?: IPublishExt): void
  • Parameters

    • id: string
    • defaultValue: any
    • Optional type: PublishTypes
    • Optional description: string
    • Optional set: string[] | function | IPublishExt
    • Optional ext: IPublishExt

    Returns void

publishProxy

  • publishProxy(id: string, proxy: any, method?: any, defaultValue?: any): void
  • Parameters

    • id: string
    • proxy: any
    • Optional method: any
    • Optional defaultValue: any

    Returns void

publishReset

  • publishReset(privateArr?: any, exceptionsArr?: any): void
  • Parameters

    • Optional privateArr: any
    • Optional exceptionsArr: any

    Returns void

publishWidget

  • publishWidget(prefix: any, WidgetType: any, id: any): void
  • Parameters

    • prefix: any
    • WidgetType: any
    • id: any

    Returns void

publishedModified

  • publishedModified(): boolean
  • Returns boolean

publishedProperties

  • publishedProperties(includePrivate?: boolean, expandProxies?: boolean): Meta[]
  • Parameters

    • Optional includePrivate: boolean
    • Optional expandProxies: boolean

    Returns Meta[]

publishedProperty

  • publishedProperty(id: any): any
  • Parameters

    • id: any

    Returns any

render

  • render(callback?: function): this
  • Parameters

    • Optional callback: function
        • (w: Widget): void
        • Parameters

          • w: Widget

          Returns void

    Returns this

renderCount

  • renderCount(): number
  • Returns number

renderPromise

  • renderPromise(): Promise<Widget>
  • Returns Promise<Widget>

resize

  • resize(_size?: object): any
  • Parameters

    • Optional _size: object
      • height: number
      • width: number

    Returns any

rowToObj

  • rowToObj(row: any): any
  • Parameters

    • row: any

    Returns any

scale

  • scale(): number
  • scale(_: any): Widget
  • Returns number

  • Parameters

    • _: any

    Returns Widget

serialize

  • serialize(): __type | undefined
  • Returns __type | undefined

size

  • size(): ISize
  • size(_: any): this
  • Returns ISize

  • Parameters

    • _: any

    Returns this

svgGlowID

  • svgGlowID(): string | undefined
  • Returns string | undefined

syncOverlay

  • syncOverlay(): void
  • Returns void

target

  • target(): null | HTMLElement | SVGElement
  • target(_: null | string | HTMLElement | SVGElement): this
  • Returns null | HTMLElement | SVGElement

  • Parameters

    • _: null | string | HTMLElement | SVGElement

    Returns this

text

  • text(): string
  • text(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

textSize

  • textSize(_text: string | string[], fontName?: string, fontSize?: number, bold?: boolean): ISize
  • Parameters

    • _text: string | string[]
    • Optional fontName: string
    • Optional fontSize: number
    • Optional bold: boolean

    Returns ISize

textbox_shape_colorFill

  • textbox_shape_colorFill(): string
  • textbox_shape_colorFill(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

textbox_shape_colorStroke

  • textbox_shape_colorStroke(): string
  • textbox_shape_colorStroke(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

textbox_text_colorFill

  • textbox_text_colorFill(): string
  • textbox_text_colorFill(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

toWidget

  • toWidget(domNode: any): Widget | null
  • Parameters

    • domNode: any

    Returns Widget | null

tooltip

  • tooltip(): string
  • tooltip(_: string): this
  • Returns string

  • Parameters

    • _: string

    Returns this

Abstract tooltipHTML

  • tooltipHTML(): string
  • Abstract method which all specific IMDB vertices must implement.

    Returns string

update

  • update(_domNode: any, element: any): void
  • Parameters

    • _domNode: any
    • element: any

    Returns void

visible

  • visible(): boolean
  • visible(_: any): this
  • Returns boolean

  • Parameters

    • _: any

    Returns this

widgetWalker

  • widgetWalker(visitor: function): void
  • Parameters

    • visitor: function
        • (item: PropertyExt): void
        • Parameters

          • item: PropertyExt

          Returns void

    Returns void

width

  • width(): number
  • width(_: any): this
  • Returns number

  • Parameters

    • _: any

    Returns this

x

  • x(): number
  • x(_: any): this
  • Returns number

  • Parameters

    • _: any

    Returns this

y

  • y(): number
  • y(_: any): this
  • Returns number

  • Parameters

    • _: any

    Returns this

Generated using TypeDoc