This is called by Viewport.decelerate.
ReadonlyoptionsOptions used to initialize this plugin.
ReadonlyparentThe viewport to which this plugin is attached.
Flags whether this plugin has been "paused".
The decay factor for the x-component of the viewport.
The viewport's velocity decreased by this amount each 16 milliseconds.
The decay factor for the y-component of the viewport.
The viewport's velocity decreased by this amount each 16 milliseconds.
ProtectedsavedSaved list of recent viewport position snapshots, to estimate velocity.
ProtectedtimeThe time since the user released panning of the viewport.
x-component of the velocity of viewport provided by this plugin, at the current time.
This is measured in px/frame, where a frame is normalized to 16 milliseconds.
y-component of the velocity of the viewport provided by this plugin, at the current time.
This is measured in px/frame, where a frame is normalized to 16 milliseconds.
Manually activate deceleration, starting from the (x, y) velocity components passed in the options.
Optionalx?: numberSpecify x-component of initial velocity.
Optionaly?: numberSpecify y-component of initial velocity.
Called when plugin is removed
Handler for pointerdown PIXI event
ProtectedglobalProtectedhandleHandler for pointermove PIXI event
ProtectedparentPause the plugin
Called when the viewport is manually moved
Called when the viewport is resized
Un-pause the plugin
Handler for pointerup PIXI event
Called on each tick
Protectedviewport
Plugin to decelerate viewport velocity smoothly after panning ends.