@oicl/openbridge-webcomponents-svelte 2.0.0-next.57 → 2.0.0-next.58

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.
@@ -38,6 +38,12 @@ tertiaryTickmarkInterval?: number | undefined;
38
38
  advices?: GaugeRadialAdvice[];
39
39
  clipTop?: number;
40
40
  clipBottom?: number;
41
+ clipLeft?: number;
42
+ clipRight?: number;
43
+ /** Place the horizontal end labels (±90°, e.g. min/max) below the tick instead
44
+ of beside it — the "Max-min" placement from the radial label model
45
+ (External / Internal / Max-min). See PR #903 / design discussion. */
46
+ endLabelsMaxMin?: boolean;
41
47
  zoomToFitArc?: boolean
42
48
  }
43
49
  export interface Events {
@@ -31,6 +31,12 @@ When undefined or <= 0, no tertiary tickmarks are shown. */
31
31
  advices?: GaugeRadialAdvice[];
32
32
  clipTop?: number;
33
33
  clipBottom?: number;
34
+ clipLeft?: number;
35
+ clipRight?: number;
36
+ /** Place the horizontal end labels (±90°, e.g. min/max) below the tick instead
37
+ of beside it — the "Max-min" placement from the radial label model
38
+ (External / Internal / Max-min). See PR #903 / design discussion. */
39
+ endLabelsMaxMin?: boolean;
34
40
  zoomToFitArc?: boolean;
35
41
  }
36
42
  export interface Events {
@@ -1,12 +1,12 @@
1
1
 
2
2
  <script lang="ts">
3
3
  export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
- export type {ObcGaugeRadialType, GaugeRadialAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
4
+ export type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
5
5
  export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
6
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
7
7
  import { setProperties } from "../../util.js";
8
8
  import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
9
- import type {ObcGaugeRadialType, GaugeRadialAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
9
+ import type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
10
10
  import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
11
11
  import type { Snippet } from 'svelte';
12
12
 
@@ -27,7 +27,13 @@ tertiaryTickmarkInterval?: number | undefined;
27
27
  type?: ObcGaugeRadialType;
28
28
  tickmarksInside?: boolean;
29
29
  tickmarkStyle?: TickmarkStyle;
30
- advices?: GaugeRadialAdvice[]
30
+ /** Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`. */
31
+ advices?: GaugeRadialAdvice[];
32
+ sector?: GaugeRadialSector;
33
+ showReadout?: boolean;
34
+ label?: string;
35
+ unit?: string;
36
+ fractionDigits?: number
31
37
  }
32
38
  export interface Events {
33
39
 
@@ -1,6 +1,6 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
2
2
  import type { InstrumentState, Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
3
- import type { ObcGaugeRadialType, GaugeRadialAdvice } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
3
+ import type { ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
4
4
  import type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
5
5
  import type { Snippet } from 'svelte';
6
6
  export interface Props {
@@ -20,7 +20,13 @@ When undefined or <= 0, no tertiary tickmarks are shown. */
20
20
  type?: ObcGaugeRadialType;
21
21
  tickmarksInside?: boolean;
22
22
  tickmarkStyle?: TickmarkStyle;
23
+ /** Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`. */
23
24
  advices?: GaugeRadialAdvice[];
25
+ sector?: GaugeRadialSector;
26
+ showReadout?: boolean;
27
+ label?: string;
28
+ unit?: string;
29
+ fractionDigits?: number;
24
30
  }
25
31
  export interface Events {
26
32
  }
@@ -33,6 +39,7 @@ declare const ObcGaugeRadial: import("svelte").Component<$$ComponentProps, {
33
39
  Priority: typeof Priority;
34
40
  ObcGaugeRadialType: typeof ObcGaugeRadialType;
35
41
  GaugeRadialAdvice: typeof GaugeRadialAdvice;
42
+ GaugeRadialSector: typeof GaugeRadialSector;
36
43
  TickmarkStyle: typeof TickmarkStyle;
37
44
  }, "">;
38
45
  type ObcGaugeRadial = ReturnType<typeof ObcGaugeRadial>;
@@ -51,8 +51,19 @@ import type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/nav
51
51
  currentSymbolRadius?: number | null;
52
52
  currentColor?: string | undefined;
53
53
  starboardPortIndicator?: boolean;
54
- clipTop?: number;
55
- clipBottom?: number;
54
+ /** Top clip, % of height. Ignored when `zoomToFitArc` is true. */
55
+ clipTop?: number;
56
+ /** Bottom clip, % of height. Ignored when `zoomToFitArc` is true. */
57
+ clipBottom?: number;
58
+ /** Left clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`. */
59
+ clipLeft?: number;
60
+ /** Right clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`. */
61
+ clipRight?: number;
62
+ /** Place the horizontal end labels (±90°, e.g. min/max) below the tick instead
63
+ of beside it. This is the "Max-min" label placement from the radial label
64
+ model (External / Internal / Max-min) — see PR #903 / design discussion.
65
+ Currently only used by the 180° sector of `obc-gauge-radial`. */
66
+ endLabelsMaxMin?: boolean;
56
67
  scaleWindIcon?: number;
57
68
  rotation?: number | undefined;
58
69
  zoomToFitArc?: boolean;
@@ -41,8 +41,19 @@ export interface Props {
41
41
  currentSymbolRadius?: number | null;
42
42
  currentColor?: string | undefined;
43
43
  starboardPortIndicator?: boolean;
44
+ /** Top clip, % of height. Ignored when `zoomToFitArc` is true. */
44
45
  clipTop?: number;
46
+ /** Bottom clip, % of height. Ignored when `zoomToFitArc` is true. */
45
47
  clipBottom?: number;
48
+ /** Left clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`. */
49
+ clipLeft?: number;
50
+ /** Right clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`. */
51
+ clipRight?: number;
52
+ /** Place the horizontal end labels (±90°, e.g. min/max) below the tick instead
53
+ of beside it. This is the "Max-min" label placement from the radial label
54
+ model (External / Internal / Max-min) — see PR #903 / design discussion.
55
+ Currently only used by the 180° sector of `obc-gauge-radial`. */
56
+ endLabelsMaxMin?: boolean;
46
57
  scaleWindIcon?: number;
47
58
  rotation?: number | undefined;
48
59
  zoomToFitArc?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.57",
3
+ "version": "2.0.0-next.58",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@oicl/openbridge-webcomponents": "^2.0.0-next.56"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.57"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"