A collection of gauge components for JavaScript.
This project is a re-packaging of HanSolo's SteelSeries-Canvas.
npm install steelseries
import * as steelseries from "steelseries";
Use unpkg: https://unpkg.com/steelseries .
<!DOCTYPE html>
<html>
<body>
<div>
<canvas id="myCanvas"></canvas>
</div>
<script src="./index.js"></script>
</body>
</html>
import { Compass } from "steelseries";
const compass = new Compass(document.querySelector("#myCanvas"), {
size: 200
});
Unfortunately there is no formal documentation :) . But you can take a look at the Demo Website and it's source code.