3.1.2 • Published 1 year ago

jcb-gauge v3.1.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

jcb-gauge

A custom-element which displays a gauge, using possibility distributions for representing norm and value. (see: https://pubmed.ncbi.nlm.nih.gov/18261889/)

Properties

PropertyAttributeModifiersTypeDefaultDescription
domaindomainobject{"inf":0,"sup":100}
namenameString""The text to display on the lower part of the gauge
normnormobject{"d1":40,"d2":60,"dt1":5,"dt2":5,"h":0}
valuevalueobject{"d1":50,"d2":50,"dt1":2,"dt2":2,"h":0}

CSS Custom Properties

PropertyDescription
--jcb-gauge-greenControls the green color (full compatibility between value and norm)
--jcb-gauge-orangeControls the orange color (all other compatibility situations)
--jcb-gauge-redControls the red color (when zero compatibility between value and norm)
--jcb-gauge-font-familyControls the text font

Test index.html with hot-reload

npm run dev

Build custom element

npm run build

Result in dist/jcb-gauge.js

Publish on NPM

npm publish

Automatic doc generation

https://runem.github.io/web-component-analyzer

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.10

1 year ago

3.0.11

1 year ago

3.0.9

1 year ago

3.0.4

2 years ago

3.0.3

2 years ago

3.0.1

2 years ago

3.0.8

2 years ago

3.0.7

2 years ago

3.0.6

2 years ago

3.0.5

2 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.7

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago