Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ControlPointManager<T> Abstract

A manager for a control point.

Type Parameters

Hierarchy

Index

Constructors

Properties

defaultControlPoint: T

The default control point for this type.

Accessors

  • get points(): readonly T[]

Methods

  • add(controlPoint: T): boolean
  • Adds a new control point.

    Note that the provided control point may not be added if the correct state is already present at the control point's time.

    Additionally, any control point that exists in the same time will be removed.

    Parameters

    • controlPoint: T

      The control point to add.

    Returns boolean

    Whether the control point was added.

  • controlPointAt(time: number): T
  • remove(controlPoint: T): boolean
  • Removes a control point.

    This method will remove the earliest control point in the array that is equal to the given control point.

    Parameters

    • controlPoint: T

      The control point to remove.

    Returns boolean

    Whether the control point was removed.

  • removeAt(index: number): T

Generated using TypeDoc