@supermousejs/pointer
v2.2.0
Published
A "Vehicle" style pointer arrow that rotates based on movement velocity.
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.
