@oicl/openbridge-webcomponents-svelte 2.2.0-next.17 → 2.2.0-next.18

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.
@@ -48,6 +48,14 @@ animateSetpoint?: boolean;
48
48
  reverse?: boolean;
49
49
  /** Which side of the chart area this scale lives on (top or bottom) */
50
50
  side?: ExternalScaleSide;
51
+ /** Scale the whole gauge to its container like a vector image, keeping the label font size: the SVG fills the host, so size the host. Off, the gauge draws at its 384 px reference width. */
52
+ fixedAspectRatio?: boolean;
53
+ /**
54
+ * Container width at which a `fixedAspectRatio` gauge draws 1:1 with the design. A wider container enlarges the drawing proportionally, a narrower one shrinks it.
55
+ *
56
+ * Available when `fixedAspectRatio==true`.
57
+ */
58
+ scaleReferenceSize?: number;
51
59
  /** Show numerical value labels at primary tickmarks */
52
60
  showLabels?: boolean;
53
61
  /** Array of values for main tickmarks. When undefined, no main tickmarks shown. When empty array [], defaults to [minValue, 0, maxValue]. */
@@ -48,6 +48,14 @@ animateSetpoint?: boolean;
48
48
  reverse?: boolean;
49
49
  /** Which side of the chart area this scale lives on (left or right) */
50
50
  side?: ExternalScaleSide;
51
+ /** Scale the whole gauge to its container like a vector image, keeping the label font size: the SVG fills the host, so size the host. Off, the gauge draws at its 384 px reference height. */
52
+ fixedAspectRatio?: boolean;
53
+ /**
54
+ * Container height at which a `fixedAspectRatio` gauge draws 1:1 with the design. A taller container enlarges the drawing proportionally, a shorter one shrinks it.
55
+ *
56
+ * Available when `fixedAspectRatio==true`.
57
+ */
58
+ scaleReferenceSize?: number;
51
59
  /** Show numerical value labels at primary tickmarks */
52
60
  showLabels?: boolean;
53
61
  /** Array of values for main tickmarks. When undefined, no main tickmarks shown. When empty array [], defaults to [minValue, 0, maxValue]. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.2.0-next.17",
3
+ "version": "2.2.0-next.18",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -34,7 +34,7 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@oicl/openbridge-webcomponents": "^2.2.0-next.17"
37
+ "@oicl/openbridge-webcomponents": "^2.2.0-next.18"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "svelte": "^5.0.0"