@htmlbricks/hb-gauge 0.66.7 → 0.66.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## `hb-gauge` — gauge
|
|
2
|
+
|
|
3
|
+
**Category:** data
|
|
4
|
+
**Tags:** data, chart
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
SVG gauge wrapper around JustGage: pass JustGage-compatible options as JSON (`value`, min/max, labels, colors, etc.). The gauge is created on the shadow host after mount, destroyed on teardown, and recreated when `options` changes or the window resizes (debounced) so it stays sized correctly.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-gauge`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` — optional string
|
|
17
|
+
- `style` — optional string
|
|
18
|
+
- `options` — required string (JSON object; at minimum `value`, `min`, `max`; additional keys follow JustGage)
|
|
19
|
+
|
|
20
|
+
### Events
|
|
21
|
+
|
|
22
|
+
None declared on the component type.
|
|
23
|
+
|
|
24
|
+
### Usage notes
|
|
25
|
+
|
|
26
|
+
CSS part: `gauge`. `options` may be passed as a JSON string; the component parses it when needed.
|
|
27
|
+
|
|
28
|
+
### Minimal HTML example
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<hb-gauge
|
|
32
|
+
options="{"value":50,"min":0,"max":100}"
|
|
33
|
+
></hb-gauge>
|
|
34
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-gauge",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "SVG gauge wrapper around JustGage: pass JustGage-compatible options as JSON (`value`, min/max, labels, colors, etc.). The gauge is created on the shadow host after mount, destroyed on teardown, and recreated when `options` changes or the window resizes (debounced) so it stays sized correctly.",
|
|
6
6
|
"licenses": [
|