DecorateParams: {
    adapter: AbstractLayoutAdapter<BrowserElement>;
    appendElement: ((el, pos, alignment?) => void);
    bounds: Extents;
    fixElement: ((el, pos, constraints?, id?) => FixedElement);
    floatElement: ((el, pos) => void);
    layout: AbstractLayout<any>;
    positions: Map<string, PointXY>;
    setAbsolutePosition: ((el, xy) => void);
    surface: Surface;
    toolkit: JsPlumbToolkit;
}

Parameters for a decorator

Type declaration

  • adapter: AbstractLayoutAdapter<BrowserElement>
  • appendElement: ((el, pos, alignment?) => void)
      • (el, pos, alignment?): void
      • Parameters

        • el: BrowserElement
        • pos: PointXY
        • Optional alignment: AppendedElementAlignments

        Returns void

  • bounds: Extents
  • fixElement: ((el, pos, constraints?, id?) => FixedElement)
      • (el, pos, constraints?, id?): FixedElement
      • Parameters

        • el: BrowserElement
        • pos: PointXY
        • Optional constraints: FixedElementConstraints
        • Optional id: string

        Returns FixedElement

  • floatElement: ((el, pos) => void)
      • (el, pos): void
      • Parameters

        Returns void

  • layout: AbstractLayout<any>
  • positions: Map<string, PointXY>
  • setAbsolutePosition: ((el, xy) => void)
      • (el, xy): void
      • Parameters

        Returns void

  • surface: Surface
  • toolkit: JsPlumbToolkit
Version :