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

A curve factory for straightened cubic basis spline generators.

The curve generators produce a straightened cubic basis spline using the specified control points, with the spline straightened according to the curve’s beta, which defaults to 0.85. This curve is typically used in hierarchical edge bundling to disambiguate connections, as proposed by Danny Holten in Hierarchical Edge Bundles: Visualization of Adjacency Relations in Hierarchical Data.

This curve does not implement curve.areaStart and curve.areaEnd; it is intended to work with d3.line, not d3.area.

Hierarchy

Callable

  • Returns a "lines only" curve generator which renders to the specified context.

    The curve generators produce a straightened cubic basis spline using the specified control points, with the spline straightened according to the curve’s beta, which defaults to 0.85. This curve is typically used in hierarchical edge bundling to disambiguate connections, as proposed by Danny Holten in Hierarchical Edge Bundles: Visualization of Adjacency Relations in Hierarchical Data.

    This curve does not implement curve.areaStart and curve.areaEnd; it is intended to work with d3.line, not d3.area.

    Parameters

    • context: CanvasRenderingContext2D | Path

      A rendering context

    Returns CurveGeneratorLineOnly

Index

Methods

Methods

beta

  • beta(beta: number)
  • Returns a bundle curve factory with the specified beta in the range [0, 1], representing the bundle strength. If beta equals zero, a straight line between the first and last point is produced; if beta equals one, a standard basis spline is produced.

    Parameters

    • beta: number

      A constant value in the [0, 1] interval.

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