Components Interactions Examples Tutorials API FAQ
Options
Menu

Hierarchy

Index

Constructors

constructor

Properties

Protected _boundingBox

_boundingBox: Selection<void>

Protected _box

_box: Selection<void>

Protected _clipPathEnabled

_clipPathEnabled: boolean

Protected _hasCorners

_hasCorners: boolean

Protected _isAnchored

_isAnchored: boolean

Protected _isSetup

_isSetup: boolean

Protected _xBoundsMode

_xBoundsMode: PropertyMode

Protected _yBoundsMode

_yBoundsMode: PropertyMode

Methods

Protected _setBounds

  • _setBounds(newBounds: Bounds): void

Protected _setResizableClasses

  • _setResizableClasses(canResize: boolean): void

Protected _setXExtent

  • _setXExtent(xExtent: number | object): void

Protected _setYExtent

  • _setYExtent(yExtent: number | object): void

Protected _setup

  • _setup(): void

Protected _sizeFromOffer

  • _sizeFromOffer(availableWidth: number, availableHeight: number): object

addClass

  • addClass(cssClass: string)

anchor

background

  • Gets the Selection containing the behind the visual elements of the Component.

    Will return undefined if the Component has not been anchored.

    Returns Selection<void>

    background selection for the Component

bounds

boxVisible

  • boxVisible(): boolean
  • boxVisible(show: boolean)

computeLayout

  • computeLayout(origin?: Point, availableWidth?: number, availableHeight?: number)

content

  • Gets a Selection containing a that holds the visual elements of the Component.

    Will return undefined if the Component has not been anchored.

    Returns Selection<void>

    content selection for the Component

destroy

  • destroy(): void

detach

  • detach()

detectionRadius

  • detectionRadius(): number
  • detectionRadius(r: number)

dragInteraction

  • dragInteraction(): Drag

enabled

  • enabled(enabled: boolean)
  • enabled(): boolean

fixedHeight

  • fixedHeight(): boolean

fixedWidth

  • fixedWidth(): boolean

foreground

  • Gets the Selection containing the in front of the visual elements of the Component.

    Will return undefined if the Component has not been anchored.

    Returns Selection<void>

hasClass

  • hasClass(cssClass: string): boolean
  • Checks if the Component has a given CSS class.

    Parameters

    • cssClass: string

      The CSS class to check for.

    Returns boolean

height

  • height(): number

movable

  • movable(): boolean
  • movable(movable: boolean)

offAnchor

offDetach

offDrag

offDragEnd

offDragStart

onAnchor

onDetach

onDrag

onDragEnd

onDragStart

onResize

  • Sets a callback that gets called when the component resizes. The size change is not guaranteed to be reflected by the DOM at the time the callback is fired.

    Parameters

origin

originToSVG

parent

redraw

  • redraw()
  • Causes the Component to re-layout and render.

    This function should be called when a CSS change has occured that could influence the layout of the Component, such as changing the font size.

removeClass

  • removeClass(cssClass: string)

render

  • render()

renderImmediately

  • renderImmediately()

renderTo

  • renderTo(element: String | Element | Selection<void>)

requestedSpace

  • requestedSpace(availableWidth: number, availableHeight: number): SpaceRequest

resizable

  • resizable(): boolean
  • resizable(canResize: boolean)

width

  • width(): number

xAlignment

  • xAlignment(): string
  • xAlignment(xAlignment: string)

xExtent

  • xExtent(): number | object
  • xExtent(xExtent: number | object)

xScale

yAlignment

  • yAlignment(): string
  • yAlignment(yAlignment: string)

yExtent

  • yExtent(): number | object
  • yExtent(yExtent: number | object)

yScale

Generated using TypeDoc