Options
All
  • Public
  • Public/Protected
  • All
Menu

Edge appearance class. Implements common edge visualizations. In most cases this class is not stored anywhere and totally transient. However someone may want to store it sometime so this class exists.

Hierarchy

  • Component
    • EdgeViz

Index

Constructors

constructor

  • Parameters

    Returns EdgeViz

Properties

classes

classes: string[]

is component highlighted?

id

id: string

A randomly generated unique ID

label_text

label_text: string = ""

the label of the component

source

source: NodeViz

target

target: NodeViz

Methods

addClasses

  • addClasses(addClasses: string[]): void
  • Parameters

    • addClasses: string[]

    Returns void

getElement

  • getElement(): Selection<any, any, any, any>
  • Returns the d3 selection that represents the structure. Probably an <svg> or <g> element

    Returns Selection<any, any, any, any>

highlight

  • highlight(): void
  • highlight toggle: highlights or unhighlights component, enlarges component to catch the eye

    Returns void

label

  • label(text: string): void
  • adds a text label to component

    Parameters

    • text: string

    Returns void

removeClasses

  • removeClasses(removeClasses: string[]): void
  • Parameters

    • removeClasses: string[]

    Returns void

toggleClasses

  • toggleClasses(toggleClasses: string[]): void
  • Parameters

    • toggleClasses: string[]

    Returns void

Generated using TypeDoc