Skip to content
  1. API
  2. Types

OverlayOptions

Type: object

HTML element provided with its affine transformation in the graph space.

Properties

  • element HTMLElement|string HTML element being transformed. You can also provide an HTML string.
  • position {x: number, y: number} The element translation in the graph space.
  • scaled(optional) boolean[=true] Whether or not the overlay should be scaled together with the graph.
  • size(optional) {width: number, height: number} The element size in the graph space.