Pointer
VERSION2.3.0
LICENSEMIT
CONFIG8 Options
A 'Vehicle' style arrow that rotates based on velocity vectors.
Installation
pnpm add @supermousejs/pointerUsage
app.use(Pointer({ size: 32, color: '#000' }));Configuration
* Reactive Property| Option | Type | Default | Description |
|---|---|---|---|
| size * | number | 32 | Size of the pointer in pixels. |
| color * | string | 'black' | Fill color of the SVG. |
| svg | string | Default Arrow | Custom SVG content string. |
| restingAngle * | number | -45 | Angle when stationary (degrees). |
| returnToRest * | boolean | true | Snap back to resting angle when stopped. |
| restDelay * | number | 200 | Milliseconds to wait before returning to rest. |
| opacity * | number | 1 | Opacity level (0-1). |
| rotationSmoothing | number | 0.15 | Lerp factor for rotation. |