tsParticles - v4.0.0-beta.12
    Preparing search index...

    External drag-and-drop interactor. Allows the user to click and drag particles across the canvas. Relies on pointer state provided by the interactivity plugin.

    Options (under interactivity.modes.drag):

    • preserveMomentum — if true, the particle retains the velocity of the drag gesture on release.
    • momentumFactor — scaling factor for the computed drag velocity (default 0.03).

    Hierarchy

    Index

    Constructors

    Properties

    container: DragContainer
    maxDistance: 0
    type: InteractorType

    Methods

    • Parameters

      • interactivityData: IInteractivityData
      • Optionalparticle: InteractivityParticle

      Returns boolean

    • Parameters

      • _interactivityData: IInteractivityData
      • _particle: InteractivityParticle

      Returns void