@oicl/openbridge-webcomponents-svelte 2.0.0-next.81 → 2.0.0-next.83

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.
Files changed (95) hide show
  1. package/dist/ar/poi/ObcPoiAton.svelte +31 -2
  2. package/dist/ar/poi/ObcPoiAton.svelte.d.ts +33 -0
  3. package/dist/ar/poi/ObcPoiData.svelte +31 -2
  4. package/dist/ar/poi/ObcPoiData.svelte.d.ts +33 -0
  5. package/dist/ar/poi/ObcPoiVessel.svelte +31 -2
  6. package/dist/ar/poi/ObcPoiVessel.svelte.d.ts +33 -0
  7. package/dist/ar/poi-button/ObcPoiButtonAton.svelte +16 -2
  8. package/dist/ar/poi-button/ObcPoiButtonAton.svelte.d.ts +18 -0
  9. package/dist/ar/poi-button/ObcPoiButtonData.svelte +16 -2
  10. package/dist/ar/poi-button/ObcPoiButtonData.svelte.d.ts +18 -0
  11. package/dist/ar/poi-button/ObcPoiButtonVessel.svelte +16 -2
  12. package/dist/ar/poi-button/ObcPoiButtonVessel.svelte.d.ts +18 -0
  13. package/dist/ar/poi-object/ObcPoiObjectAton.svelte +8 -4
  14. package/dist/ar/poi-object/ObcPoiObjectAton.svelte.d.ts +7 -3
  15. package/dist/ar/poi-object/ObcPoiObjectData.svelte +5 -2
  16. package/dist/ar/poi-object/ObcPoiObjectData.svelte.d.ts +6 -1
  17. package/dist/ar/poi-object/ObcPoiObjectVessel.svelte +7 -2
  18. package/dist/ar/poi-object/ObcPoiObjectVessel.svelte.d.ts +6 -0
  19. package/dist/automation/analog-valve/ObcAnalogValve.svelte +32 -2
  20. package/dist/automation/analog-valve/ObcAnalogValve.svelte.d.ts +38 -1
  21. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte +32 -2
  22. package/dist/automation/automation-button/ObcAbstractAutomationButtonMotorized.svelte.d.ts +38 -1
  23. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte +34 -4
  24. package/dist/automation/automation-button/ObcAbstractAutomationButtonSquared.svelte.d.ts +39 -2
  25. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte +39 -2
  26. package/dist/automation/bipolar-transistor/ObcBipolarTransistor.svelte.d.ts +44 -0
  27. package/dist/automation/capacitor/ObcCapacitor.svelte +39 -2
  28. package/dist/automation/capacitor/ObcCapacitor.svelte.d.ts +44 -0
  29. package/dist/automation/converter/ObcConverter.svelte +39 -2
  30. package/dist/automation/converter/ObcConverter.svelte.d.ts +44 -0
  31. package/dist/automation/damper/ObcDamper.svelte +37 -3
  32. package/dist/automation/damper/ObcDamper.svelte.d.ts +46 -1
  33. package/dist/automation/digital-valve/ObcDigitalValve.svelte +34 -2
  34. package/dist/automation/digital-valve/ObcDigitalValve.svelte.d.ts +38 -0
  35. package/dist/automation/diodes/ObcDiodes.svelte +39 -2
  36. package/dist/automation/diodes/ObcDiodes.svelte.d.ts +44 -0
  37. package/dist/automation/fan/ObcFan.svelte +42 -3
  38. package/dist/automation/fan/ObcFan.svelte.d.ts +52 -1
  39. package/dist/automation/filter/ObcFilter.svelte +39 -2
  40. package/dist/automation/filter/ObcFilter.svelte.d.ts +44 -0
  41. package/dist/automation/ground/ObcGround.svelte +39 -2
  42. package/dist/automation/ground/ObcGround.svelte.d.ts +44 -0
  43. package/dist/automation/logic/ObcLogic.svelte +39 -2
  44. package/dist/automation/logic/ObcLogic.svelte.d.ts +44 -0
  45. package/dist/automation/mosfet/ObcMosfet.svelte +39 -2
  46. package/dist/automation/mosfet/ObcMosfet.svelte.d.ts +44 -0
  47. package/dist/automation/motor/ObcMotor.svelte +42 -2
  48. package/dist/automation/motor/ObcMotor.svelte.d.ts +52 -1
  49. package/dist/automation/pump/ObcPump.svelte +42 -2
  50. package/dist/automation/pump/ObcPump.svelte.d.ts +52 -1
  51. package/dist/automation/resistor/ObcResistor.svelte +39 -2
  52. package/dist/automation/resistor/ObcResistor.svelte.d.ts +44 -0
  53. package/dist/automation/router/ObcRouter.svelte +39 -2
  54. package/dist/automation/router/ObcRouter.svelte.d.ts +44 -0
  55. package/dist/automation/source/ObcSource.svelte +39 -2
  56. package/dist/automation/source/ObcSource.svelte.d.ts +44 -0
  57. package/dist/automation/switch/ObcSwitch.svelte +39 -2
  58. package/dist/automation/switch/ObcSwitch.svelte.d.ts +44 -0
  59. package/dist/automation/transformer/ObcTransformer.svelte +39 -2
  60. package/dist/automation/transformer/ObcTransformer.svelte.d.ts +44 -0
  61. package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte +99 -2
  62. package/dist/bars-graphs/area-graph/ObcAreaGraph.svelte.d.ts +108 -0
  63. package/dist/bars-graphs/line-graph/ObcLineGraph.svelte +97 -3
  64. package/dist/bars-graphs/line-graph/ObcLineGraph.svelte.d.ts +110 -1
  65. package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +21 -0
  66. package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte.d.ts +21 -0
  67. package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +21 -0
  68. package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte.d.ts +21 -0
  69. package/dist/building-blocks/instrument-radial/ObcInstrumentRadial.svelte +21 -0
  70. package/dist/building-blocks/instrument-radial/ObcInstrumentRadial.svelte.d.ts +21 -0
  71. package/dist/components/progress-bar/ObcProgressBar.svelte +34 -16
  72. package/dist/components/progress-bar/ObcProgressBar.svelte.d.ts +17 -1
  73. package/dist/components/progress-button/ObcProgressButton.svelte +49 -21
  74. package/dist/components/progress-button/ObcProgressButton.svelte.d.ts +18 -2
  75. package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte +21 -0
  76. package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte.d.ts +21 -0
  77. package/dist/navigation-instruments/gauge-radial/ObcGaugeRadial.svelte +21 -0
  78. package/dist/navigation-instruments/gauge-radial/ObcGaugeRadial.svelte.d.ts +21 -0
  79. package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +120 -2
  80. package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +129 -0
  81. package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte +21 -0
  82. package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte.d.ts +21 -0
  83. package/dist/navigation-instruments/pitch/ObcPitch.svelte +21 -2
  84. package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +19 -0
  85. package/dist/navigation-instruments/roll/ObcRoll.svelte +21 -2
  86. package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +19 -0
  87. package/dist/navigation-instruments/rot-sector/ObcRotSector.svelte +21 -0
  88. package/dist/navigation-instruments/rot-sector/ObcRotSector.svelte.d.ts +21 -0
  89. package/dist/navigation-instruments/rudder/ObcRudder.svelte +21 -0
  90. package/dist/navigation-instruments/rudder/ObcRudder.svelte.d.ts +21 -0
  91. package/dist/navigation-instruments/speed-gauge/ObcSpeedGauge.svelte +21 -0
  92. package/dist/navigation-instruments/speed-gauge/ObcSpeedGauge.svelte.d.ts +21 -0
  93. package/dist/navigation-instruments/thruster/ObcThruster.svelte +21 -0
  94. package/dist/navigation-instruments/thruster/ObcThruster.svelte.d.ts +21 -0
  95. package/package.json +2 -2
@@ -1,10 +1,128 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-trend/gauge-trend.js';
2
+ import type { ChartLineDataItem, XAxisType, YAxisPosition, ChartLineYAxisConfig, LineMode, TimeDisplay } from '@oicl/openbridge-webcomponents/dist/building-blocks/chart-line/chart-line-base.js';
3
+ import type { ChartDataset } from 'chart.js';
4
+ import type { InstrumentState, Priority, FrameStyle, BorderRadiusPosition } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
2
5
  import type { ScaleType, FillMode } from '@oicl/openbridge-webcomponents/dist/building-blocks/bar-vertical/bar-vertical.js';
3
6
  import type { LinearAdvice } from '@oicl/openbridge-webcomponents/dist/building-blocks/instrument-linear/advice.js';
4
7
  import type { Snippet } from 'svelte';
5
8
  export interface Props {
6
9
  class?: string;
7
10
  style?: string;
11
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
12
+ setpoint?: number | undefined;
13
+ /** Adjustment preview for 2-step interface.
14
+ When defined, two markers are shown: original (dimmed) + new (focus). */
15
+ newSetpoint?: number | undefined;
16
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
17
+ atSetpoint?: boolean;
18
+ /** User is physically interacting with the control.
19
+ Suppresses at-setpoint calculation and triggers focus visual. */
20
+ touching?: boolean;
21
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
22
+ autoAtSetpoint?: boolean;
23
+ /** Tolerance for auto at-setpoint detection. */
24
+ autoAtSetpointDeadband?: number;
25
+ /** Tolerance for zero-snap visual state. */
26
+ setpointAtZeroDeadband?: number;
27
+ /** Override to derive the setpoint color from the instrument's `priority`
28
+ regardless of instrument state. */
29
+ setpointOverride?: boolean;
30
+ /** Enable CSS-animated confirm transition. */
31
+ animateSetpoint?: boolean;
32
+ /** Simple single-series data (array of {label, value}). */
33
+ data?: ChartLineDataItem[];
34
+ /** Chart.js-style datasets for multi-series use. If provided, takes precedence over `data`. */
35
+ datasets?: ChartDataset<"line", (number | {
36
+ x: string | number | Date;
37
+ y: number;
38
+ })[]>[] | undefined;
39
+ /** Optional explicit labels for the x-axis (category mode). If omitted labels are derived from `data` */
40
+ labels?: (string | number)[] | undefined;
41
+ /** Custom color palette (CSS variable names or color strings). */
42
+ colors?: string[];
43
+ /** Show HTML legend below chart with series labels and colors. */
44
+ legend?: boolean;
45
+ /** Development mode: show visual debug overlay with dimension guides. */
46
+ showDebugOverlay?: boolean;
47
+ /** Width of the chart in pixels. Default: 480. */
48
+ width?: number;
49
+ /** Height of the chart in pixels. Default: 320. */
50
+ height?: number;
51
+ /** Enable fixed aspect ratio scaling mode.
52
+ When true, width/height properties define the aspect ratio (not actual pixels).
53
+ The component fills 100% of parent width and calculates height from aspect ratio.
54
+ When false (default), width/height are used as actual pixel dimensions. */
55
+ fixedAspectRatioScaling?: boolean;
56
+ /** Reference size for external scales when using fixedAspectRatioScaling.
57
+ This value is passed down to external scales to determine their 1:1 Figma design size.
58
+ At this reference size, scales render at native size; above/below they scale proportionally.
59
+ Default: 384 (matches Figma design baseline). */
60
+ scaleReferenceSize?: number;
61
+ /** X-axis mode: 'category' for labeled data points, 'time' for time-based data. */
62
+ xAxisType?: XAxisType;
63
+ /** Single y-axis position ('left' or 'right'). For multiple y-axes, use yAxes instead. */
64
+ yAxisPosition?: YAxisPosition;
65
+ /** Multiple y-axis definitions for complex multi-axis charts. */
66
+ yAxes?: ChartLineYAxisConfig[] | undefined;
67
+ /** Show grid lines. */
68
+ showGrid?: boolean;
69
+ /** Show vertical grid lines (x-axis). Default: false. */
70
+ showGridX?: boolean;
71
+ /** Show horizontal grid lines (y-axis). Default: false. */
72
+ showGridY?: boolean;
73
+ /** Show axis tick marks and labels. */
74
+ showTickMarks?: boolean;
75
+ /** Reserve canvas padding for axis tick labels on sides without an external scale.
76
+
77
+ When `true` (default), the chart leaves room for tick labels and renders them
78
+ (subject to `showTickMarks` and the 192px auto-compact threshold).
79
+
80
+ When `false`, the chart renders edge-to-edge on sides without a slotted external
81
+ scale AND axis tick labels are force-hidden so they cannot be clipped. This also
82
+ suppresses the automatic edge-to-edge switch that normally happens below the
83
+ 192px threshold, eliminating the visible padding "jump" when crossing it.
84
+
85
+ Useful when embedding the chart inside another component that owns framing
86
+ and never wants to show axis labels (e.g. `obc-automation-tank`).
87
+
88
+ Defaults to `true` to preserve existing behavior. Declared with `attribute: false`
89
+ because a `true`-default boolean cannot work as an HTML boolean attribute. */
90
+ hasLabelPadding?: boolean;
91
+ /** Show point markers on data points. Default: false. */
92
+ showPoints?: boolean;
93
+ /** Line drawing style: 'smooth' (curved), 'straight', or 'stepped'. */
94
+ lineMode?: LineMode;
95
+ /** Unit label displayed in tooltips (e.g., 'kW', 'kg', '%'). */
96
+ unit?: string;
97
+ /** Time axis label format: 'date' (full date/time) or 'minutes' (relative). */
98
+ timeDisplay?: TimeDisplay;
99
+ /** Max number of x-axis ticks/grid lines. Useful for matching external axes. */
100
+ xTicksLimit?: number | undefined;
101
+ /** Force x-axis tick interval. Useful for matching external axes. */
102
+ xStepSize?: number | undefined;
103
+ /** Max number of y-axis ticks/grid lines. Useful for matching external axes. */
104
+ yTicksLimit?: number | undefined;
105
+ /** Force y-axis tick interval. Useful for matching external axes. */
106
+ yStepSize?: number | undefined;
107
+ /** Instrument state affecting colors of external scales. */
108
+ state?: InstrumentState;
109
+ /** Color priority: enhanced uses blue palette instead of default gray. */
110
+ priority?: Priority;
111
+ /** Frame style for chart and external scales. */
112
+ frameStyle?: FrameStyle;
113
+ /** Border radius position for the chart's own border. */
114
+ borderRadiusPosition?: BorderRadiusPosition | undefined;
115
+ /** Border radius position for external scales based on layout. */
116
+ borderRadiusPositionExternalScales?: BorderRadiusPosition | undefined;
117
+ /** When true, the chart is used inside an instrument (e.g., gauge-trend).
118
+ In this mode, only label font size responds to .obc-component-size-* CSS classes.
119
+ Border radius uses the explicit `borderRadius` property value (or defaults to 8px),
120
+ rather than reading from CSS variables. */
121
+ instrumentMode?: boolean;
122
+ /** Explicit border radius value in pixels.
123
+ When instrumentMode=true, this value is used directly (defaults to 8px).
124
+ When instrumentMode=false, this is ignored and border radius is read from CSS variable. */
125
+ borderRadius?: number | undefined;
8
126
  /** Scale type for the vertical scale.
9
127
  - `'regular'`: Standard tick lengths (default)
10
128
  - `'condensed'`: Shorter tick lengths for compact display
@@ -80,6 +198,17 @@ export interface Slots {
80
198
  }
81
199
  type $$ComponentProps = Props & Events & Slots;
82
200
  declare const ObcGaugeTrend: import("svelte").Component<$$ComponentProps, {
201
+ ChartLineDataItem: typeof ChartLineDataItem;
202
+ XAxisType: typeof XAxisType;
203
+ YAxisPosition: typeof YAxisPosition;
204
+ ChartLineYAxisConfig: typeof ChartLineYAxisConfig;
205
+ LineMode: typeof LineMode;
206
+ TimeDisplay: typeof TimeDisplay;
207
+ ChartDataset: typeof ChartDataset;
208
+ InstrumentState: typeof InstrumentState;
209
+ Priority: typeof Priority;
210
+ FrameStyle: typeof FrameStyle;
211
+ BorderRadiusPosition: typeof BorderRadiusPosition;
83
212
  ScaleType: typeof ScaleType;
84
213
  FillMode: typeof FillMode;
85
214
  LinearAdvice: typeof LinearAdvice;
@@ -13,6 +13,27 @@ import type {LinearAdvice} from '@oicl/openbridge-webcomponents/dist/building-bl
13
13
  export interface Props {
14
14
  class?: string;
15
15
  style?: string;
16
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
17
+ setpoint?: number | undefined;
18
+ /** Adjustment preview for 2-step interface.
19
+ When defined, two markers are shown: original (dimmed) + new (focus). */
20
+ newSetpoint?: number | undefined;
21
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
22
+ atSetpoint?: boolean;
23
+ /** User is physically interacting with the control.
24
+ Suppresses at-setpoint calculation and triggers focus visual. */
25
+ touching?: boolean;
26
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
27
+ autoAtSetpoint?: boolean;
28
+ /** Tolerance for auto at-setpoint detection. */
29
+ autoAtSetpointDeadband?: number;
30
+ /** Tolerance for zero-snap visual state. */
31
+ setpointAtZeroDeadband?: number;
32
+ /** Override to derive the setpoint color from the instrument's `priority`
33
+ regardless of instrument state. */
34
+ setpointOverride?: boolean;
35
+ /** Enable CSS-animated confirm transition. */
36
+ animateSetpoint?: boolean;
16
37
  /** Minimum scale value */
17
38
  minValue?: number;
18
39
  /** Maximum scale value */
@@ -6,6 +6,27 @@ import type { Snippet } from 'svelte';
6
6
  export interface Props {
7
7
  class?: string;
8
8
  style?: string;
9
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
10
+ setpoint?: number | undefined;
11
+ /** Adjustment preview for 2-step interface.
12
+ When defined, two markers are shown: original (dimmed) + new (focus). */
13
+ newSetpoint?: number | undefined;
14
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
15
+ atSetpoint?: boolean;
16
+ /** User is physically interacting with the control.
17
+ Suppresses at-setpoint calculation and triggers focus visual. */
18
+ touching?: boolean;
19
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
20
+ autoAtSetpoint?: boolean;
21
+ /** Tolerance for auto at-setpoint detection. */
22
+ autoAtSetpointDeadband?: number;
23
+ /** Tolerance for zero-snap visual state. */
24
+ setpointAtZeroDeadband?: number;
25
+ /** Override to derive the setpoint color from the instrument's `priority`
26
+ regardless of instrument state. */
27
+ setpointOverride?: boolean;
28
+ /** Enable CSS-animated confirm transition. */
29
+ animateSetpoint?: boolean;
9
30
  /** Minimum scale value */
10
31
  minValue?: number;
11
32
  /** Maximum scale value */
@@ -1,16 +1,35 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
+ export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
+ export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
5
  export type {ObcPitchType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch/pitch.js';
5
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch/pitch.js';
6
7
  import { setProperties } from "../../util.js";
7
- import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
8
+ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
9
+ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
8
10
  import type {ObcPitchType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch/pitch.js';
9
11
  import type { Snippet } from 'svelte';
10
12
 
11
13
  export interface Props {
12
14
  class?: string;
13
15
  style?: string;
16
+ zoomToFitArc?: boolean;
17
+ /** When `true`, the centre shows an `<obc-readout>` with the value instead of
18
+ the horizon line, rotating indicator and vessel. Default `false`. */
19
+ hasReadout?: boolean;
20
+ /** Colour palette for the scale fill / indicator and the readout value:
21
+ `regular` (default) or `enhanced`. */
22
+ priority?: Priority;
23
+ /** Half-extent of the watch arc in degrees. The arc spans `centre ± arcAngle`
24
+ and values are placed at their true position within it. Default `45`
25
+ reproduces the historical 90°-wide arc.
26
+
27
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
28
+ narrower arc is enlarged (its radius grows) on its own layer, while the
29
+ vessel image and the rotating indicator line stay at their natural size and
30
+ position on a separate central layer. The two layers are intentionally
31
+ visually disconnected. */
32
+ arcAngle?: number;
14
33
  pitch?: number;
15
34
  minAvgPitch?: number;
16
35
  maxAvgPitch?: number;
@@ -1,10 +1,28 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch/pitch.js';
2
+ import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
2
3
  import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
4
  import type { ObcPitchType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/pitch/pitch.js';
4
5
  import type { Snippet } from 'svelte';
5
6
  export interface Props {
6
7
  class?: string;
7
8
  style?: string;
9
+ zoomToFitArc?: boolean;
10
+ /** When `true`, the centre shows an `<obc-readout>` with the value instead of
11
+ the horizon line, rotating indicator and vessel. Default `false`. */
12
+ hasReadout?: boolean;
13
+ /** Colour palette for the scale fill / indicator and the readout value:
14
+ `regular` (default) or `enhanced`. */
15
+ priority?: Priority;
16
+ /** Half-extent of the watch arc in degrees. The arc spans `centre ± arcAngle`
17
+ and values are placed at their true position within it. Default `45`
18
+ reproduces the historical 90°-wide arc.
19
+
20
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
21
+ narrower arc is enlarged (its radius grows) on its own layer, while the
22
+ vessel image and the rotating indicator line stay at their natural size and
23
+ position on a separate central layer. The two layers are intentionally
24
+ visually disconnected. */
25
+ arcAngle?: number;
8
26
  pitch?: number;
9
27
  minAvgPitch?: number;
10
28
  maxAvgPitch?: number;
@@ -28,6 +46,7 @@ export interface Slots {
28
46
  }
29
47
  type $$ComponentProps = Props & Events & Slots;
30
48
  declare const ObcPitch: import("svelte").Component<$$ComponentProps, {
49
+ Priority: typeof Priority;
31
50
  VesselImage: typeof VesselImage;
32
51
  ObcPitchType: typeof ObcPitchType;
33
52
  }, "">;
@@ -1,16 +1,35 @@
1
1
 
2
2
  <script lang="ts">
3
- export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
+ export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
+ export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
4
5
  export type {ObcRollType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
5
6
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
6
7
  import { setProperties } from "../../util.js";
7
- import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
8
+ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
9
+ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
8
10
  import type {ObcRollType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
9
11
  import type { Snippet } from 'svelte';
10
12
 
11
13
  export interface Props {
12
14
  class?: string;
13
15
  style?: string;
16
+ zoomToFitArc?: boolean;
17
+ /** When `true`, the centre shows an `<obc-readout>` with the value instead of
18
+ the horizon line, rotating indicator and vessel. Default `false`. */
19
+ hasReadout?: boolean;
20
+ /** Colour palette for the scale fill / indicator and the readout value:
21
+ `regular` (default) or `enhanced`. */
22
+ priority?: Priority;
23
+ /** Half-extent of the watch arc in degrees. The arc spans `centre ± arcAngle`
24
+ and values are placed at their true position within it. Default `45`
25
+ reproduces the historical 90°-wide arc.
26
+
27
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
28
+ narrower arc is enlarged (its radius grows) on its own layer, while the
29
+ vessel image and the rotating indicator line stay at their natural size and
30
+ position on a separate central layer. The two layers are intentionally
31
+ visually disconnected. */
32
+ arcAngle?: number;
14
33
  roll?: number;
15
34
  minAvgRoll?: number;
16
35
  maxAvgRoll?: number;
@@ -1,10 +1,28 @@
1
1
  import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
2
+ import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
2
3
  import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
3
4
  import type { ObcRollType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll/roll.js';
4
5
  import type { Snippet } from 'svelte';
5
6
  export interface Props {
6
7
  class?: string;
7
8
  style?: string;
9
+ zoomToFitArc?: boolean;
10
+ /** When `true`, the centre shows an `<obc-readout>` with the value instead of
11
+ the horizon line, rotating indicator and vessel. Default `false`. */
12
+ hasReadout?: boolean;
13
+ /** Colour palette for the scale fill / indicator and the readout value:
14
+ `regular` (default) or `enhanced`. */
15
+ priority?: Priority;
16
+ /** Half-extent of the watch arc in degrees. The arc spans `centre ± arcAngle`
17
+ and values are placed at their true position within it. Default `45`
18
+ reproduces the historical 90°-wide arc.
19
+
20
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
21
+ narrower arc is enlarged (its radius grows) on its own layer, while the
22
+ vessel image and the rotating indicator line stay at their natural size and
23
+ position on a separate central layer. The two layers are intentionally
24
+ visually disconnected. */
25
+ arcAngle?: number;
8
26
  roll?: number;
9
27
  minAvgRoll?: number;
10
28
  maxAvgRoll?: number;
@@ -29,6 +47,7 @@ export interface Slots {
29
47
  }
30
48
  type $$ComponentProps = Props & Events & Slots;
31
49
  declare const ObcRoll: import("svelte").Component<$$ComponentProps, {
50
+ Priority: typeof Priority;
32
51
  VesselImage: typeof VesselImage;
33
52
  ObcRollType: typeof ObcRollType;
34
53
  }, "">;
@@ -13,6 +13,27 @@ import type {GaugeRadialAdvice} from '@oicl/openbridge-webcomponents/dist/naviga
13
13
  export interface Props {
14
14
  class?: string;
15
15
  style?: string;
16
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
17
+ setpoint?: number | undefined;
18
+ /** Adjustment preview for 2-step interface.
19
+ When defined, two markers are shown: original (dimmed) + new (focus). */
20
+ newSetpoint?: number | undefined;
21
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
22
+ atSetpoint?: boolean;
23
+ /** User is physically interacting with the control.
24
+ Suppresses at-setpoint calculation and triggers focus visual. */
25
+ touching?: boolean;
26
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
27
+ autoAtSetpoint?: boolean;
28
+ /** Tolerance for auto at-setpoint detection. */
29
+ autoAtSetpointDeadband?: number;
30
+ /** Tolerance for zero-snap visual state. */
31
+ setpointAtZeroDeadband?: number;
32
+ /** Override to derive the setpoint color from the instrument's `priority`
33
+ regardless of instrument state. */
34
+ setpointOverride?: boolean;
35
+ /** Enable CSS-animated confirm transition. */
36
+ animateSetpoint?: boolean;
16
37
  value?: number;
17
38
  maxValue?: number;
18
39
  showLabels?: boolean;
@@ -6,6 +6,27 @@ import type { Snippet } from 'svelte';
6
6
  export interface Props {
7
7
  class?: string;
8
8
  style?: string;
9
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
10
+ setpoint?: number | undefined;
11
+ /** Adjustment preview for 2-step interface.
12
+ When defined, two markers are shown: original (dimmed) + new (focus). */
13
+ newSetpoint?: number | undefined;
14
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
15
+ atSetpoint?: boolean;
16
+ /** User is physically interacting with the control.
17
+ Suppresses at-setpoint calculation and triggers focus visual. */
18
+ touching?: boolean;
19
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
20
+ autoAtSetpoint?: boolean;
21
+ /** Tolerance for auto at-setpoint detection. */
22
+ autoAtSetpointDeadband?: number;
23
+ /** Tolerance for zero-snap visual state. */
24
+ setpointAtZeroDeadband?: number;
25
+ /** Override to derive the setpoint color from the instrument's `priority`
26
+ regardless of instrument state. */
27
+ setpointOverride?: boolean;
28
+ /** Enable CSS-animated confirm transition. */
29
+ animateSetpoint?: boolean;
9
30
  value?: number;
10
31
  maxValue?: number;
11
32
  showLabels?: boolean;
@@ -15,6 +15,27 @@ import type {AngleAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-i
15
15
  export interface Props {
16
16
  class?: string;
17
17
  style?: string;
18
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
19
+ setpoint?: number | undefined;
20
+ /** Adjustment preview for 2-step interface.
21
+ When defined, two markers are shown: original (dimmed) + new (focus). */
22
+ newSetpoint?: number | undefined;
23
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
24
+ atSetpoint?: boolean;
25
+ /** User is physically interacting with the control.
26
+ Suppresses at-setpoint calculation and triggers focus visual. */
27
+ touching?: boolean;
28
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
29
+ autoAtSetpoint?: boolean;
30
+ /** Tolerance for auto at-setpoint detection. */
31
+ autoAtSetpointDeadband?: number;
32
+ /** Tolerance for zero-snap visual state. */
33
+ setpointAtZeroDeadband?: number;
34
+ /** Override to derive the setpoint color from the instrument's `priority`
35
+ regardless of instrument state. */
36
+ setpointOverride?: boolean;
37
+ /** Enable CSS-animated confirm transition. */
38
+ animateSetpoint?: boolean;
18
39
  angle?: number;
19
40
  variant?: ObcRudderVariant;
20
41
  maxAngle?: number;
@@ -7,6 +7,27 @@ import type { Snippet } from 'svelte';
7
7
  export interface Props {
8
8
  class?: string;
9
9
  style?: string;
10
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
11
+ setpoint?: number | undefined;
12
+ /** Adjustment preview for 2-step interface.
13
+ When defined, two markers are shown: original (dimmed) + new (focus). */
14
+ newSetpoint?: number | undefined;
15
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
16
+ atSetpoint?: boolean;
17
+ /** User is physically interacting with the control.
18
+ Suppresses at-setpoint calculation and triggers focus visual. */
19
+ touching?: boolean;
20
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
21
+ autoAtSetpoint?: boolean;
22
+ /** Tolerance for auto at-setpoint detection. */
23
+ autoAtSetpointDeadband?: number;
24
+ /** Tolerance for zero-snap visual state. */
25
+ setpointAtZeroDeadband?: number;
26
+ /** Override to derive the setpoint color from the instrument's `priority`
27
+ regardless of instrument state. */
28
+ setpointOverride?: boolean;
29
+ /** Enable CSS-animated confirm transition. */
30
+ animateSetpoint?: boolean;
10
31
  angle?: number;
11
32
  variant?: ObcRudderVariant;
12
33
  maxAngle?: number;
@@ -13,6 +13,27 @@ import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation
13
13
  export interface Props {
14
14
  class?: string;
15
15
  style?: string;
16
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
17
+ setpoint?: number | undefined;
18
+ /** Adjustment preview for 2-step interface.
19
+ When defined, two markers are shown: original (dimmed) + new (focus). */
20
+ newSetpoint?: number | undefined;
21
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
22
+ atSetpoint?: boolean;
23
+ /** User is physically interacting with the control.
24
+ Suppresses at-setpoint calculation and triggers focus visual. */
25
+ touching?: boolean;
26
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
27
+ autoAtSetpoint?: boolean;
28
+ /** Tolerance for auto at-setpoint detection. */
29
+ autoAtSetpointDeadband?: number;
30
+ /** Tolerance for zero-snap visual state. */
31
+ setpointAtZeroDeadband?: number;
32
+ /** Override to derive the setpoint color from the instrument's `priority`
33
+ regardless of instrument state. */
34
+ setpointOverride?: boolean;
35
+ /** Enable CSS-animated confirm transition. */
36
+ animateSetpoint?: boolean;
16
37
  speed?: number;
17
38
  maxSpeed?: number;
18
39
  minSpeed?: number;
@@ -6,6 +6,27 @@ import type { Snippet } from 'svelte';
6
6
  export interface Props {
7
7
  class?: string;
8
8
  style?: string;
9
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
10
+ setpoint?: number | undefined;
11
+ /** Adjustment preview for 2-step interface.
12
+ When defined, two markers are shown: original (dimmed) + new (focus). */
13
+ newSetpoint?: number | undefined;
14
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
15
+ atSetpoint?: boolean;
16
+ /** User is physically interacting with the control.
17
+ Suppresses at-setpoint calculation and triggers focus visual. */
18
+ touching?: boolean;
19
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
20
+ autoAtSetpoint?: boolean;
21
+ /** Tolerance for auto at-setpoint detection. */
22
+ autoAtSetpointDeadband?: number;
23
+ /** Tolerance for zero-snap visual state. */
24
+ setpointAtZeroDeadband?: number;
25
+ /** Override to derive the setpoint color from the instrument's `priority`
26
+ regardless of instrument state. */
27
+ setpointOverride?: boolean;
28
+ /** Enable CSS-animated confirm transition. */
29
+ animateSetpoint?: boolean;
9
30
  speed?: number;
10
31
  maxSpeed?: number;
11
32
  minSpeed?: number;
@@ -13,6 +13,27 @@ import type {PropellerType} from '@oicl/openbridge-webcomponents/dist/navigation
13
13
  export interface Props {
14
14
  class?: string;
15
15
  style?: string;
16
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
17
+ setpoint?: number | undefined;
18
+ /** Adjustment preview for 2-step interface.
19
+ When defined, two markers are shown: original (dimmed) + new (focus). */
20
+ newSetpoint?: number | undefined;
21
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
22
+ atSetpoint?: boolean;
23
+ /** User is physically interacting with the control.
24
+ Suppresses at-setpoint calculation and triggers focus visual. */
25
+ touching?: boolean;
26
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
27
+ autoAtSetpoint?: boolean;
28
+ /** Tolerance for auto at-setpoint detection. */
29
+ autoAtSetpointDeadband?: number;
30
+ /** Tolerance for zero-snap visual state. */
31
+ setpointAtZeroDeadband?: number;
32
+ /** Override to derive the setpoint color from the instrument's `priority`
33
+ regardless of instrument state. */
34
+ setpointOverride?: boolean;
35
+ /** Enable CSS-animated confirm transition. */
36
+ animateSetpoint?: boolean;
16
37
  thrust?: number;
17
38
  state?: InstrumentState;
18
39
  priority?: Priority;
@@ -6,6 +6,27 @@ import type { Snippet } from 'svelte';
6
6
  export interface Props {
7
7
  class?: string;
8
8
  style?: string;
9
+ /** Target setpoint value. `undefined` = no setpoint marker shown. */
10
+ setpoint?: number | undefined;
11
+ /** Adjustment preview for 2-step interface.
12
+ When defined, two markers are shown: original (dimmed) + new (focus). */
13
+ newSetpoint?: number | undefined;
14
+ /** Manual at-setpoint override (used when `autoAtSetpoint` is false). */
15
+ atSetpoint?: boolean;
16
+ /** User is physically interacting with the control.
17
+ Suppresses at-setpoint calculation and triggers focus visual. */
18
+ touching?: boolean;
19
+ /** When false, uses manual `atSetpoint` boolean instead of auto-calculation. */
20
+ autoAtSetpoint?: boolean;
21
+ /** Tolerance for auto at-setpoint detection. */
22
+ autoAtSetpointDeadband?: number;
23
+ /** Tolerance for zero-snap visual state. */
24
+ setpointAtZeroDeadband?: number;
25
+ /** Override to derive the setpoint color from the instrument's `priority`
26
+ regardless of instrument state. */
27
+ setpointOverride?: boolean;
28
+ /** Enable CSS-animated confirm transition. */
29
+ animateSetpoint?: boolean;
9
30
  thrust?: number;
10
31
  state?: InstrumentState;
11
32
  priority?: Priority;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.81",
3
+ "version": "2.0.0-next.83",
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.80"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.82"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"