MCPcopy Index your code
hub / github.com/Mikhus/canvas-gauges

github.com/Mikhus/canvas-gauges @v2.1.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.1.7 ↗ · + Follow
198 symbols 427 edges 27 files 86 documented · 43% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

HTML Canvas Gauges v2.1

Build Status Test Coverage Documentation Coverage License run on repl.it

Canvas Gauges

This is tiny implementation of highly configurable gauge using pure JavaScript and HTML5 canvas. No dependencies. Suitable for IoT devices because of minimum code base.

Installation

Canvas gauges can be simply installed using npm package manager. Depending on your needs there is possibility to install whole gauge library or only that part you really need for your project. To install the whole library, run:

$ npm install canvas-gauges

If you only need the exact type of the gauge it can be installed using the appropriate npm tag. Currently the following gauges are supported: linear, radial.

To install only linear gauge, run:

$ npm install canvas-gauges@linear

To install only radial gauge, run:

$ npm install canvas-gauges@radial

This strategy useful only if you need to minimize your code base and plan to use ONLY a specific gauge type. If you need to use various gauge types in your project it is recommended to use whole gauge package.

More...

Documentation

You can find complete docs on the canvas gauges web-site:

Add-Ons

Here are some third-party libraries which are developed and delivered to use canvas-gauges as components for a different popular frameworks:

Special Thanks

Lohika

For supporting development!

SauceLabs

For testing support!

And to all contributors!

License

This code is subject to MIT license.

Core symbols most depended-on inside this repo

emit
called by 87
lib/EventEmitter.js
parse
called by 19
lib/DomObserver.js
on
called by 13
lib/EventEmitter.js
draw
called by 8
lib/BaseGauge.js
vendorize
called by 7
lib/vendorize.js
isValidNode
called by 7
lib/DomObserver.js
init
called by 6
lib/SmartCanvas.js
commit
called by 6
lib/SmartCanvas.js

Shape

Function 129
Method 51
Class 18

Languages

TypeScript100%

Modules by API surface

gauge.min.js66 symbols
lib/LinearGauge.js28 symbols
lib/RadialGauge.js23 symbols
lib/drawings.js16 symbols
lib/BaseGauge.js13 symbols
lib/DomObserver.js12 symbols
lib/EventEmitter.js10 symbols
lib/SmartCanvas.js8 symbols
lib/Animation.js7 symbols
test/spec/DomObserver.spec.js5 symbols
test/spec/BaseGauge.spec.js4 symbols
gulpfile.js4 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add canvas-gauges \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page