{
  "definitions": {
    "events": {
      "$ref": "#/definitions/Events",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Events": {
          "additionalProperties": false,
          "type": "object"
        }
      }
    },
    "component": {
      "$ref": "#/definitions/Component",
      "$schema": "http://json-schema.org/draft-07/schema#",
      "definitions": {
        "Component": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "string"
            },
            "options": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "$ref": "#/definitions/GaugeOptions"
                }
              ],
              "description": "JSON string from HTML, or an object when set from JavaScript."
            },
            "style": {
              "type": "string"
            }
          },
          "required": [
            "options"
          ],
          "type": "object"
        },
        "GaugeOptions": {
          "description": "JustGage constructor options merged with `{ element }` in the component.",
          "properties": {
            "max": {
              "type": "number"
            },
            "min": {
              "type": "number"
            },
            "value": {
              "type": "number"
            }
          },
          "required": [
            "max",
            "min",
            "value"
          ],
          "type": "object"
        }
      }
    }
  },
  "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.",
  "storybookArgs": {
    "options": {
      "control": {
        "type": "object"
      }
    }
  },
  "styleSetup": {
    "vars": [
      {
        "name": "--hb-gauge-min-height",
        "valueType": "number",
        "defaultValue": "0",
        "description": "Minimum height of the host element before JustGage draws."
      }
    ],
    "parts": [
      {
        "name": "gauge",
        "description": "JustGage mount node (`#gauge`); style width/height or overflow for the SVG gauge."
      }
    ]
  },
  "contributors": [],
  "htmlSlots": [],
  "i18n": [],
  "examples": [
    {
      "name": "default",
      "data": {
        "options": {
          "value": 50,
          "min": 0,
          "max": 100
        }
      }
    },
    {
      "name": "quarter",
      "description": "Needle at one quarter of a 0–100 scale.",
      "data": {
        "options": {
          "value": 25,
          "min": 0,
          "max": 100
        }
      }
    },
    {
      "name": "wideRange",
      "description": "Wider numeric span (0–500) with a mid-range value.",
      "data": {
        "options": {
          "value": 250,
          "min": 0,
          "max": 500
        }
      }
    },
    {
      "name": "atMaximum",
      "description": "Value pinned at the upper bound of the scale.",
      "data": {
        "options": {
          "value": 100,
          "min": 0,
          "max": 100
        }
      }
    }
  ],
  "iifeIntegrity": "sha384-6Apv4cDNGAkVK/HYGE7nB6wevvO1hyif78ZNY7xDut2YegnKeJPN/g2wk/qm+0mW",
  "dependencies": [],
  "screenshots": [],
  "licenses": [
    {
      "type": "Apache-2.0",
      "path": "LICENSE.md",
      "cost": 0,
      "currency": "EUR"
    }
  ],
  "readmePath": "README.md",
  "name": "hb-gauge",
  "category": "data",
  "tags": [
    "data",
    "chart"
  ],
  "size": {},
  "iifePath": "main.iife.js",
  "repoName": "@htmlbricks/hb-gauge",
  "version": "0.76.5"
}