@supermousejs/pointer
v2.1.0
Published
A "Vehicle" style pointer arrow that rotates based on movement velocity.
Downloads
387
Readme
@supermousejs/pointer
A "Vehicle" style pointer arrow that rotates based on movement velocity.
Installation
pnpm add @supermousejs/pointerUsage
import { Supermouse } from '@supermousejs/core';
import { Pointer } from '@supermousejs/pointer';
const app = new Supermouse();
app.use(Pointer({
size: 32,
color: 'black',
restingAngle: -45, // Angle when stopped
returnToRest: true // Snap back when stopped
}));Documentation
Full documentation and interactive playground available at supermouse or check out the repo.
