3.1.2 • Published 1 year ago
jcb-gauge v3.1.2
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
Property | Attribute | Modifiers | Type | Default | Description |
---|---|---|---|---|---|
domain | domain | object | {"inf":0,"sup":100} | ||
name | name | String | "" | The text to display on the lower part of the gauge | |
norm | norm | object | {"d1":40,"d2":60,"dt1":5,"dt2":5,"h":0} | ||
value | value | object | {"d1":50,"d2":50,"dt1":2,"dt2":2,"h":0} |
CSS Custom Properties
Property | Description |
---|---|
--jcb-gauge-green | Controls the green color (full compatibility between value and norm) |
--jcb-gauge-orange | Controls the orange color (all other compatibility situations) |
--jcb-gauge-red | Controls the red color (when zero compatibility between value and norm) |
--jcb-gauge-font-family | Controls 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
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