@oicl/openbridge-webcomponents-svelte 2.0.0-next.140 → 2.0.0-next.142

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/dist/index.d.ts CHANGED
@@ -2358,6 +2358,7 @@ export { default as ObcSpeedArrows } from './navigation-instruments/speed-arrows
2358
2358
  export { default as ObcSpeedDirections } from './navigation-instruments/speed-directions/ObcSpeedDirections.svelte';
2359
2359
  export { default as ObcSpeedGauge } from './navigation-instruments/speed-gauge/ObcSpeedGauge.svelte';
2360
2360
  export { default as ObcSpeedIndicator } from './navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte';
2361
+ export { default as ObcSurgeSwayYaw } from './navigation-instruments/surge-sway-yaw/ObcSurgeSwayYaw.svelte';
2361
2362
  export { default as ObcThruster } from './navigation-instruments/thruster/ObcThruster.svelte';
2362
2363
  export { default as ObcTopViewPropulsion } from './navigation-instruments/top-view-propulsion/ObcTopViewPropulsion.svelte';
2363
2364
  export { default as ObcVelocityProjectionPlot } from './navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte';
package/dist/index.js CHANGED
@@ -2358,6 +2358,7 @@ export { default as ObcSpeedArrows } from './navigation-instruments/speed-arrows
2358
2358
  export { default as ObcSpeedDirections } from './navigation-instruments/speed-directions/ObcSpeedDirections.svelte';
2359
2359
  export { default as ObcSpeedGauge } from './navigation-instruments/speed-gauge/ObcSpeedGauge.svelte';
2360
2360
  export { default as ObcSpeedIndicator } from './navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte';
2361
+ export { default as ObcSurgeSwayYaw } from './navigation-instruments/surge-sway-yaw/ObcSurgeSwayYaw.svelte';
2361
2362
  export { default as ObcThruster } from './navigation-instruments/thruster/ObcThruster.svelte';
2362
2363
  export { default as ObcTopViewPropulsion } from './navigation-instruments/top-view-propulsion/ObcTopViewPropulsion.svelte';
2363
2364
  export { default as ObcVelocityProjectionPlot } from './navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte';
@@ -0,0 +1,181 @@
1
+
2
+ <script lang="ts">
3
+ export type {SurgeSwayYawType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/surge-sway-yaw/surge-sway-yaw.js';
4
+ export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
5
+ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/surge-sway-yaw/surge-sway-yaw.js';
6
+ import { setProperties } from "../../util.js";
7
+ import type {SurgeSwayYawType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/surge-sway-yaw/surge-sway-yaw.js';
8
+ import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
9
+ import type { Snippet } from 'svelte';
10
+
11
+ export interface Props {
12
+ class?: string;
13
+ style?: string;
14
+ /** `input` (default) shows setpoint markers only; `input-output` adds the yaw arc on the ring band and surge/sway value bars in the cross columns. */
15
+ type?: SurgeSwayYawType;
16
+ /** Longitudinal value in percent of the scale (−100…+100); positive is up (fore). Shown as a vertical bar in `input-output`; always feeds the surge at-setpoint detection. */
17
+ surge?: number;
18
+ /** Transverse value in percent of the scale (−100…+100); positive is right (starboard). Shown as a horizontal bar in `input-output`; always feeds the sway at-setpoint detection. */
19
+ sway?: number;
20
+ /** Rotation in degrees (0° at the top, positive clockwise, clamped to ±180°). Shown as an arc on the ring band in `input-output`; always feeds the yaw at-setpoint detection. */
21
+ yaw?: number;
22
+ /** Surge setpoint in percent; shows a triangular marker beside the vertical scale. */
23
+ surgeSetpoint?: number | undefined;
24
+ /**
25
+ * Surge setpoint being adjusted (focus preview marker).
26
+ *
27
+ * Available when `surgeSetpoint!=undefined`.
28
+ */
29
+ newSurgeSetpoint?: number | undefined;
30
+ /**
31
+ * Manual surge at-setpoint override.
32
+ *
33
+ * Available when `surgeSetpoint!=undefined && autoAtSurgeSetpoint==false`.
34
+ */
35
+ atSurgeSetpoint?: boolean;
36
+ /**
37
+ * Zero-snap tolerance for the surge setpoint marker.
38
+ *
39
+ * Available when `surgeSetpoint!=undefined`.
40
+ */
41
+ surgeSetpointAtZeroDeadband?: number;
42
+ /**
43
+ * Derive the surge marker color from `priority` regardless of `state`.
44
+ *
45
+ * Available when `surgeSetpoint!=undefined`.
46
+ */
47
+ surgeSetpointOverride?: boolean;
48
+ /**
49
+ * Auto-detect surge at-setpoint via deadband.
50
+ *
51
+ * Available when `surgeSetpoint!=undefined`.
52
+ */
53
+ autoAtSurgeSetpoint?: boolean;
54
+ /**
55
+ * Tolerance for surge at-setpoint auto-detection.
56
+ *
57
+ * Available when `surgeSetpoint!=undefined && autoAtSurgeSetpoint==true`.
58
+ */
59
+ autoAtSurgeSetpointDeadband?: number;
60
+ /** Sway setpoint in percent; shows a triangular marker above the horizontal scale. */
61
+ swaySetpoint?: number | undefined;
62
+ /**
63
+ * Sway setpoint being adjusted (focus preview marker).
64
+ *
65
+ * Available when `swaySetpoint!=undefined`.
66
+ */
67
+ newSwaySetpoint?: number | undefined;
68
+ /**
69
+ * Manual sway at-setpoint override.
70
+ *
71
+ * Available when `swaySetpoint!=undefined && autoAtSwaySetpoint==false`.
72
+ */
73
+ atSwaySetpoint?: boolean;
74
+ /**
75
+ * Zero-snap tolerance for the sway setpoint marker.
76
+ *
77
+ * Available when `swaySetpoint!=undefined`.
78
+ */
79
+ swaySetpointAtZeroDeadband?: number;
80
+ /**
81
+ * Derive the sway marker color from `priority` regardless of `state`.
82
+ *
83
+ * Available when `swaySetpoint!=undefined`.
84
+ */
85
+ swaySetpointOverride?: boolean;
86
+ /**
87
+ * Auto-detect sway at-setpoint via deadband.
88
+ *
89
+ * Available when `swaySetpoint!=undefined`.
90
+ */
91
+ autoAtSwaySetpoint?: boolean;
92
+ /**
93
+ * Tolerance for sway at-setpoint auto-detection.
94
+ *
95
+ * Available when `swaySetpoint!=undefined && autoAtSwaySetpoint==true`.
96
+ */
97
+ autoAtSwaySetpointDeadband?: number;
98
+ /** Yaw setpoint in degrees; shows the ring's triangular setpoint marker. */
99
+ yawSetpoint?: number | undefined;
100
+ /**
101
+ * Yaw setpoint being adjusted (focus preview marker).
102
+ *
103
+ * Available when `yawSetpoint!=undefined`.
104
+ */
105
+ newYawSetpoint?: number | undefined;
106
+ /**
107
+ * Manual yaw at-setpoint override.
108
+ *
109
+ * Available when `yawSetpoint!=undefined && autoAtYawSetpoint==false`.
110
+ */
111
+ atYawSetpoint?: boolean;
112
+ /**
113
+ * Zero-snap tolerance for the yaw setpoint marker.
114
+ *
115
+ * Available when `yawSetpoint!=undefined`.
116
+ */
117
+ yawSetpointAtZeroDeadband?: number;
118
+ /**
119
+ * Derive the yaw marker color from `priority` regardless of `state`.
120
+ *
121
+ * Available when `yawSetpoint!=undefined`.
122
+ */
123
+ yawSetpointOverride?: boolean;
124
+ /**
125
+ * Auto-detect yaw at-setpoint via deadband (with 360° wraparound).
126
+ *
127
+ * Available when `yawSetpoint!=undefined`.
128
+ */
129
+ autoAtYawSetpoint?: boolean;
130
+ /**
131
+ * Tolerance for yaw at-setpoint auto-detection.
132
+ *
133
+ * Available when `yawSetpoint!=undefined && autoAtYawSetpoint==true`.
134
+ */
135
+ autoAtYawSetpointDeadband?: number;
136
+ /**
137
+ * User is physically interacting with a control; markers render in the focus state and at-setpoint detection is suppressed.
138
+ *
139
+ * Available when `surgeSetpoint!=undefined || swaySetpoint!=undefined || yawSetpoint!=undefined`.
140
+ */
141
+ touching?: boolean;
142
+ /**
143
+ * Animate setpoint confirm transitions (marker slides, preview fades).
144
+ *
145
+ * Available when `surgeSetpoint!=undefined || swaySetpoint!=undefined || yawSetpoint!=undefined`.
146
+ */
147
+ animateSetpoint?: boolean;
148
+ /** Interval (degrees) for primary ring ticks; undefined or <= 0 hides them. */
149
+ primaryTickmarkInterval?: number | undefined;
150
+ /** Interval (degrees) for secondary ring ticks; undefined or <= 0 hides them. */
151
+ secondaryTickmarkInterval?: number | undefined;
152
+ /** Interval (degrees) for tertiary ring ticks; undefined or <= 0 hides them. */
153
+ tertiaryTickmarkInterval?: number | undefined;
154
+ /** Show degree labels at the main and primary ring ticks. */
155
+ showLabels?: boolean;
156
+ /** Instrument state (active, loading, off). */
157
+ state?: InstrumentState;
158
+ /** Color priority (enhanced = blue palette, regular = gray palette). */
159
+ priority?: Priority;
160
+ /** Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. */
161
+ faceDiameter?: number | undefined
162
+ }
163
+ export interface Events {
164
+
165
+ }
166
+ export interface Slots {
167
+ children?: Snippet
168
+ }
169
+ const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
170
+
171
+ </script>
172
+ <obc-surge-sway-yaw
173
+ use:setProperties={props}
174
+ class={className}
175
+ style={style}
176
+ >
177
+
178
+ {#if children}
179
+ {@render children()}
180
+ {/if}
181
+ </obc-surge-sway-yaw>
@@ -0,0 +1,169 @@
1
+ import '@oicl/openbridge-webcomponents/dist/navigation-instruments/surge-sway-yaw/surge-sway-yaw.js';
2
+ import type { SurgeSwayYawType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/surge-sway-yaw/surge-sway-yaw.js';
3
+ import type { InstrumentState, Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
4
+ import type { Snippet } from 'svelte';
5
+ export interface Props {
6
+ class?: string;
7
+ style?: string;
8
+ /** `input` (default) shows setpoint markers only; `input-output` adds the yaw arc on the ring band and surge/sway value bars in the cross columns. */
9
+ type?: SurgeSwayYawType;
10
+ /** Longitudinal value in percent of the scale (−100…+100); positive is up (fore). Shown as a vertical bar in `input-output`; always feeds the surge at-setpoint detection. */
11
+ surge?: number;
12
+ /** Transverse value in percent of the scale (−100…+100); positive is right (starboard). Shown as a horizontal bar in `input-output`; always feeds the sway at-setpoint detection. */
13
+ sway?: number;
14
+ /** Rotation in degrees (0° at the top, positive clockwise, clamped to ±180°). Shown as an arc on the ring band in `input-output`; always feeds the yaw at-setpoint detection. */
15
+ yaw?: number;
16
+ /** Surge setpoint in percent; shows a triangular marker beside the vertical scale. */
17
+ surgeSetpoint?: number | undefined;
18
+ /**
19
+ * Surge setpoint being adjusted (focus preview marker).
20
+ *
21
+ * Available when `surgeSetpoint!=undefined`.
22
+ */
23
+ newSurgeSetpoint?: number | undefined;
24
+ /**
25
+ * Manual surge at-setpoint override.
26
+ *
27
+ * Available when `surgeSetpoint!=undefined && autoAtSurgeSetpoint==false`.
28
+ */
29
+ atSurgeSetpoint?: boolean;
30
+ /**
31
+ * Zero-snap tolerance for the surge setpoint marker.
32
+ *
33
+ * Available when `surgeSetpoint!=undefined`.
34
+ */
35
+ surgeSetpointAtZeroDeadband?: number;
36
+ /**
37
+ * Derive the surge marker color from `priority` regardless of `state`.
38
+ *
39
+ * Available when `surgeSetpoint!=undefined`.
40
+ */
41
+ surgeSetpointOverride?: boolean;
42
+ /**
43
+ * Auto-detect surge at-setpoint via deadband.
44
+ *
45
+ * Available when `surgeSetpoint!=undefined`.
46
+ */
47
+ autoAtSurgeSetpoint?: boolean;
48
+ /**
49
+ * Tolerance for surge at-setpoint auto-detection.
50
+ *
51
+ * Available when `surgeSetpoint!=undefined && autoAtSurgeSetpoint==true`.
52
+ */
53
+ autoAtSurgeSetpointDeadband?: number;
54
+ /** Sway setpoint in percent; shows a triangular marker above the horizontal scale. */
55
+ swaySetpoint?: number | undefined;
56
+ /**
57
+ * Sway setpoint being adjusted (focus preview marker).
58
+ *
59
+ * Available when `swaySetpoint!=undefined`.
60
+ */
61
+ newSwaySetpoint?: number | undefined;
62
+ /**
63
+ * Manual sway at-setpoint override.
64
+ *
65
+ * Available when `swaySetpoint!=undefined && autoAtSwaySetpoint==false`.
66
+ */
67
+ atSwaySetpoint?: boolean;
68
+ /**
69
+ * Zero-snap tolerance for the sway setpoint marker.
70
+ *
71
+ * Available when `swaySetpoint!=undefined`.
72
+ */
73
+ swaySetpointAtZeroDeadband?: number;
74
+ /**
75
+ * Derive the sway marker color from `priority` regardless of `state`.
76
+ *
77
+ * Available when `swaySetpoint!=undefined`.
78
+ */
79
+ swaySetpointOverride?: boolean;
80
+ /**
81
+ * Auto-detect sway at-setpoint via deadband.
82
+ *
83
+ * Available when `swaySetpoint!=undefined`.
84
+ */
85
+ autoAtSwaySetpoint?: boolean;
86
+ /**
87
+ * Tolerance for sway at-setpoint auto-detection.
88
+ *
89
+ * Available when `swaySetpoint!=undefined && autoAtSwaySetpoint==true`.
90
+ */
91
+ autoAtSwaySetpointDeadband?: number;
92
+ /** Yaw setpoint in degrees; shows the ring's triangular setpoint marker. */
93
+ yawSetpoint?: number | undefined;
94
+ /**
95
+ * Yaw setpoint being adjusted (focus preview marker).
96
+ *
97
+ * Available when `yawSetpoint!=undefined`.
98
+ */
99
+ newYawSetpoint?: number | undefined;
100
+ /**
101
+ * Manual yaw at-setpoint override.
102
+ *
103
+ * Available when `yawSetpoint!=undefined && autoAtYawSetpoint==false`.
104
+ */
105
+ atYawSetpoint?: boolean;
106
+ /**
107
+ * Zero-snap tolerance for the yaw setpoint marker.
108
+ *
109
+ * Available when `yawSetpoint!=undefined`.
110
+ */
111
+ yawSetpointAtZeroDeadband?: number;
112
+ /**
113
+ * Derive the yaw marker color from `priority` regardless of `state`.
114
+ *
115
+ * Available when `yawSetpoint!=undefined`.
116
+ */
117
+ yawSetpointOverride?: boolean;
118
+ /**
119
+ * Auto-detect yaw at-setpoint via deadband (with 360° wraparound).
120
+ *
121
+ * Available when `yawSetpoint!=undefined`.
122
+ */
123
+ autoAtYawSetpoint?: boolean;
124
+ /**
125
+ * Tolerance for yaw at-setpoint auto-detection.
126
+ *
127
+ * Available when `yawSetpoint!=undefined && autoAtYawSetpoint==true`.
128
+ */
129
+ autoAtYawSetpointDeadband?: number;
130
+ /**
131
+ * User is physically interacting with a control; markers render in the focus state and at-setpoint detection is suppressed.
132
+ *
133
+ * Available when `surgeSetpoint!=undefined || swaySetpoint!=undefined || yawSetpoint!=undefined`.
134
+ */
135
+ touching?: boolean;
136
+ /**
137
+ * Animate setpoint confirm transitions (marker slides, preview fades).
138
+ *
139
+ * Available when `surgeSetpoint!=undefined || swaySetpoint!=undefined || yawSetpoint!=undefined`.
140
+ */
141
+ animateSetpoint?: boolean;
142
+ /** Interval (degrees) for primary ring ticks; undefined or <= 0 hides them. */
143
+ primaryTickmarkInterval?: number | undefined;
144
+ /** Interval (degrees) for secondary ring ticks; undefined or <= 0 hides them. */
145
+ secondaryTickmarkInterval?: number | undefined;
146
+ /** Interval (degrees) for tertiary ring ticks; undefined or <= 0 hides them. */
147
+ tertiaryTickmarkInterval?: number | undefined;
148
+ /** Show degree labels at the main and primary ring ticks. */
149
+ showLabels?: boolean;
150
+ /** Instrument state (active, loading, off). */
151
+ state?: InstrumentState;
152
+ /** Color priority (enhanced = blue palette, regular = gray palette). */
153
+ priority?: Priority;
154
+ /** Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size; when unset (default), it fills its container. */
155
+ faceDiameter?: number | undefined;
156
+ }
157
+ export interface Events {
158
+ }
159
+ export interface Slots {
160
+ children?: Snippet;
161
+ }
162
+ type $$ComponentProps = Props & Events & Slots;
163
+ declare const ObcSurgeSwayYaw: import("svelte").Component<$$ComponentProps, {
164
+ SurgeSwayYawType: typeof SurgeSwayYawType;
165
+ InstrumentState: typeof InstrumentState;
166
+ Priority: typeof Priority;
167
+ }, "">;
168
+ type ObcSurgeSwayYaw = ReturnType<typeof ObcSurgeSwayYaw>;
169
+ export default ObcSurgeSwayYaw;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.140",
3
+ "version": "2.0.0-next.142",
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.140"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.142"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"