WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

ZoomedElementBaseType

ZoomedElementBaseType: Element

ZoomedElementBaseType serves as an alias for the 'minimal' data type which can be selected without 'd3-zoom' (and related code in 'd3-selection') trying to use properties internally which would otherwise not be supported.

Variables

zoomIdentity

zoomIdentity: ZoomTransform

The identity transform, where k = 1, tx = ty = 0.

Functions

zoom

  • zoom<ZoomRefElement, Datum>(): ZoomBehavior<ZoomRefElement, Datum>
  • Creates a new zoom behavior. The returned behavior, zoom, is both an object and a function, and is typically applied to selected elements via selection.call.

    The first generic refers to the type of reference element to which the zoom behavior is attached. The second generic refers to the type of the datum of the reference element.

    Type parameters

    Returns ZoomBehavior<ZoomRefElement, Datum>

zoomTransform

  • Returns the current transform for the specified node. Note that node should typically be a DOM element, and not a selection. (A selection may consist of multiple nodes, in different states, and this function only returns a single transform.) If you have a selection, call selection.node first. In the context of an event listener, the node is typically the element that received the input event (which should be equal to event.transform), "this". Internally, an element’s transform is stored as element.__zoom; however, you should use this method rather than accessing it directly. If the given node has no defined transform, returns the identity transformation. The returned transform represents a two-dimensional transformation matrix

    For details see https://github.com/d3/d3-zoom#zoom-transforms

    Parameters

    Returns ZoomTransform

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc