Ecosystem /@supermousejs/pointer

Pointer

VERSION2.3.0
LICENSEMIT
CONFIG8 Options

A 'Vehicle' style arrow that rotates based on velocity vectors.

Installation

pnpm add @supermousejs/pointer

Usage

app.use(Pointer({ size: 32, color: '#000' }));

Configuration

* Reactive Property
OptionTypeDefaultDescription
size *number32Size of the pointer in pixels.
color *string'black'Fill color of the SVG.
svg stringDefault ArrowCustom SVG content string.
restingAngle *number-45Angle when stationary (degrees).
returnToRest *booleantrueSnap back to resting angle when stopped.
restDelay *number200Milliseconds to wait before returning to rest.
opacity *number1Opacity level (0-1).
rotationSmoothing number0.15Lerp factor for rotation.
supermouse
js
| Copyright © 2024-2026 Stud.io Inc.