@oicl/openbridge-webcomponents-svelte 2.0.0-next.16 → 2.0.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.
Files changed (21) hide show
  1. package/dist/navigation-instruments/compass/ObcCompass.svelte +17 -1
  2. package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +16 -0
  3. package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte +8 -1
  4. package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte.d.ts +7 -0
  5. package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte +16 -1
  6. package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte.d.ts +15 -0
  7. package/dist/navigation-instruments/pitch/ObcPitch.svelte +12 -1
  8. package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +11 -0
  9. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +12 -1
  10. package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +11 -0
  11. package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte +6 -0
  12. package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte.d.ts +6 -0
  13. package/dist/navigation-instruments/roll/ObcRoll.svelte +12 -1
  14. package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +11 -0
  15. package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte +10 -0
  16. package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte.d.ts +10 -0
  17. package/dist/navigation-instruments/watch/ObcWatch.svelte +3 -1
  18. package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +2 -0
  19. package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte +3 -1
  20. package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte.d.ts +2 -0
  21. package/package.json +2 -2
@@ -32,10 +32,26 @@ import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dis
32
32
  currentSpeed?: number | null;
33
33
  currentFromDirection?: number | null;
34
34
  vesselImage?: VesselImage;
35
+ /** Measured rate of turn in degrees per minute (positive = starboard).
36
+ Drives both the bar extent and (after multiplication by
37
+ `rotDotAnimationFactor`) the spinning dot animation.
38
+ When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
39
+ rateOfTurnDegreesPerMinute?: number | undefined;
40
+ /** Visual amplification applied only to the spinning dot animation
41
+ (not to the bar extent). Default `18` keeps the legacy visual feel
42
+ (≈1 rpm at 20°/min). */
43
+ rotDotAnimationFactor?: number;
35
44
  rotationsPerMinute?: number;
36
45
  rotType?: RotType;
37
46
  rotPosition?: RotPosition;
38
- rotMaxValue?: number;
47
+ /** Bar-extent reference value in **degrees per minute**. The bar fills the
48
+ full ±`rotArcExtent` arc when the measured ROT equals ±`rotMaxValue`.
49
+ Default `60` aligns with ES-TRIN 2025/1 Art. 3.02.
50
+
51
+ Note: prior to the introduction of `rateOfTurnDegreesPerMinute` this
52
+ property was interpreted in rotations per minute. The unit changed when
53
+ the physical ROT API was introduced. */
54
+ rotMaxValue?: number;
39
55
  rotArcExtent?: number;
40
56
  rotPortStarboard?: boolean;
41
57
  rotAtZeroDeadband?: number;
@@ -24,9 +24,25 @@ export interface Props {
24
24
  currentSpeed?: number | null;
25
25
  currentFromDirection?: number | null;
26
26
  vesselImage?: VesselImage;
27
+ /** Measured rate of turn in degrees per minute (positive = starboard).
28
+ Drives both the bar extent and (after multiplication by
29
+ `rotDotAnimationFactor`) the spinning dot animation.
30
+ When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
31
+ rateOfTurnDegreesPerMinute?: number | undefined;
32
+ /** Visual amplification applied only to the spinning dot animation
33
+ (not to the bar extent). Default `18` keeps the legacy visual feel
34
+ (≈1 rpm at 20°/min). */
35
+ rotDotAnimationFactor?: number;
27
36
  rotationsPerMinute?: number;
28
37
  rotType?: RotType;
29
38
  rotPosition?: RotPosition;
39
+ /** Bar-extent reference value in **degrees per minute**. The bar fills the
40
+ full ±`rotArcExtent` arc when the measured ROT equals ±`rotMaxValue`.
41
+ Default `60` aligns with ES-TRIN 2025/1 Art. 3.02.
42
+
43
+ Note: prior to the introduction of `rateOfTurnDegreesPerMinute` this
44
+ property was interpreted in rotations per minute. The unit changed when
45
+ the physical ROT API was introduced. */
30
46
  rotMaxValue?: number;
31
47
  rotArcExtent?: number;
32
48
  rotPortStarboard?: boolean;
@@ -23,8 +23,15 @@ import type {RotType} from '@oicl/openbridge-webcomponents/dist/navigation-instr
23
23
  priority?: Priority;
24
24
  priorityElements?: CompassFlatPriorityElement[];
25
25
  rotType?: RotType | undefined;
26
+ /** Measured rate of turn in degrees per minute (positive = starboard).
27
+ When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
28
+ rateOfTurnDegreesPerMinute?: number | undefined;
29
+ /** Visual amplification applied only to the spinning dot animation. */
30
+ rotDotAnimationFactor?: number;
26
31
  rotationsPerMinute?: number;
27
- rotMaxValue?: number;
32
+ /** Bar-extent reference value in **degrees per minute**. Default `60`
33
+ per ES-TRIN 2025/1 Art. 3.02. */
34
+ rotMaxValue?: number;
28
35
  rotArcExtent?: number;
29
36
  rotPortStarboard?: boolean;
30
37
  rotAtZeroDeadband?: number
@@ -16,7 +16,14 @@ export interface Props {
16
16
  priority?: Priority;
17
17
  priorityElements?: CompassFlatPriorityElement[];
18
18
  rotType?: RotType | undefined;
19
+ /** Measured rate of turn in degrees per minute (positive = starboard).
20
+ When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
21
+ rateOfTurnDegreesPerMinute?: number | undefined;
22
+ /** Visual amplification applied only to the spinning dot animation. */
23
+ rotDotAnimationFactor?: number;
19
24
  rotationsPerMinute?: number;
25
+ /** Bar-extent reference value in **degrees per minute**. Default `60`
26
+ per ES-TRIN 2025/1 Art. 3.02. */
20
27
  rotMaxValue?: number;
21
28
  rotArcExtent?: number;
22
29
  rotPortStarboard?: boolean;
@@ -30,8 +30,23 @@ import type {CompassSectorPriorityElement} from '@oicl/openbridge-webcomponents/
30
30
  minFOV?: number;
31
31
  rotType?: RotType | undefined;
32
32
  rotPosition?: RotPosition;
33
+ /** Measured rate of turn in degrees per minute (positive = starboard).
34
+ Drives both the bar extent and (after multiplication by
35
+ `rotDotAnimationFactor`) the spinning dot animation. When `undefined`,
36
+ falls back to the deprecated `rotationsPerMinute`. */
37
+ rateOfTurnDegreesPerMinute?: number | undefined;
38
+ /** Visual amplification applied only to the spinning dot animation
39
+ (not to the bar extent). Default `18` keeps the legacy visual feel
40
+ (≈1 rpm at 20°/min). */
41
+ rotDotAnimationFactor?: number;
33
42
  rotationsPerMinute?: number;
34
- rotMaxValue?: number;
43
+ /** Bar-extent reference value in **degrees per minute**. The bar fills the
44
+ full ±`ARC_HALF_EXTENT` arc when the measured ROT equals
45
+ ±`rotMaxValue`. Default `60` aligns with ES-TRIN 2025/1 Art. 3.02.
46
+
47
+ Note: the unit changed from rotations per minute to degrees per minute
48
+ with the introduction of `rateOfTurnDegreesPerMinute`. */
49
+ rotMaxValue?: number;
35
50
  rotPortStarboard?: boolean;
36
51
  rotAtZeroDeadband?: number;
37
52
  state?: InstrumentState;
@@ -22,7 +22,22 @@ export interface Props {
22
22
  minFOV?: number;
23
23
  rotType?: RotType | undefined;
24
24
  rotPosition?: RotPosition;
25
+ /** Measured rate of turn in degrees per minute (positive = starboard).
26
+ Drives both the bar extent and (after multiplication by
27
+ `rotDotAnimationFactor`) the spinning dot animation. When `undefined`,
28
+ falls back to the deprecated `rotationsPerMinute`. */
29
+ rateOfTurnDegreesPerMinute?: number | undefined;
30
+ /** Visual amplification applied only to the spinning dot animation
31
+ (not to the bar extent). Default `18` keeps the legacy visual feel
32
+ (≈1 rpm at 20°/min). */
33
+ rotDotAnimationFactor?: number;
25
34
  rotationsPerMinute?: number;
35
+ /** Bar-extent reference value in **degrees per minute**. The bar fills the
36
+ full ±`ARC_HALF_EXTENT` arc when the measured ROT equals
37
+ ±`rotMaxValue`. Default `60` aligns with ES-TRIN 2025/1 Art. 3.02.
38
+
39
+ Note: the unit changed from rotations per minute to degrees per minute
40
+ with the introduction of `rateOfTurnDegreesPerMinute`. */
26
41
  rotMaxValue?: number;
27
42
  rotPortStarboard?: boolean;
28
43
  rotAtZeroDeadband?: number;
@@ -14,7 +14,18 @@
14
14
  maxAvgPitch?: number;
15
15
  vesselImageSide?: VesselImage;
16
16
  maxPitchAdvice?: number | undefined;
17
- triggerPitchAdvice?: boolean
17
+ triggerPitchAdvice?: boolean;
18
+ zoomToFitArc?: boolean;
19
+ /** Half-extent of the watch arc in degrees. The arc spans `90° ± arcAngle`
20
+ and pitch values are placed at their true position within it. Default
21
+ `45` reproduces the historical 90°-wide arc.
22
+
23
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
24
+ narrower arc is enlarged (its radius grows) on its own layer, while the
25
+ vessel image and the rotating indicator line stay at their natural size
26
+ and position on a separate central layer. The two layers are
27
+ intentionally visually disconnected. */
28
+ arcAngle?: number
18
29
  }
19
30
  export interface Events {
20
31
 
@@ -10,6 +10,17 @@ export interface Props {
10
10
  vesselImageSide?: VesselImage;
11
11
  maxPitchAdvice?: number | undefined;
12
12
  triggerPitchAdvice?: boolean;
13
+ zoomToFitArc?: boolean;
14
+ /** Half-extent of the watch arc in degrees. The arc spans `90° ± arcAngle`
15
+ and pitch values are placed at their true position within it. Default
16
+ `45` reproduces the historical 90°-wide arc.
17
+
18
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
19
+ narrower arc is enlarged (its radius grows) on its own layer, while the
20
+ vessel image and the rotating indicator line stay at their natural size
21
+ and position on a separate central layer. The two layers are
22
+ intentionally visually disconnected. */
23
+ arcAngle?: number;
13
24
  }
14
25
  export interface Events {
15
26
  }
@@ -27,7 +27,18 @@ import type {PitchRollPriorityElement} from '@oicl/openbridge-webcomponents/dist
27
27
  triggerPitchAdvice?: boolean;
28
28
  triggerRollAdvice?: boolean;
29
29
  priority?: Priority;
30
- priorityElements?: PitchRollPriorityElement[]
30
+ priorityElements?: PitchRollPriorityElement[];
31
+ zoomToFitArc?: boolean;
32
+ /** Half-extent of each of the four watch arcs in degrees, measured from the
33
+ arc's natural center (0°/90°/180°/270°). Each arc spans
34
+ `center ± arcAngle`. Default `30` reproduces the historical 60°-wide
35
+ arcs; smaller values produce narrower arcs that, combined with
36
+ `zoomToFitArc`, reveal more detail in the relevant motion range. */
37
+ arcAngle?: number;
38
+ /** [object Object],[object Object],[object Object] */
39
+ pitchArcAngle?: number | undefined;
40
+ /** [object Object],[object Object],[object Object] */
41
+ rollArcAngle?: number | undefined
31
42
  }
32
43
  export interface Events {
33
44
 
@@ -21,6 +21,17 @@ export interface Props {
21
21
  triggerRollAdvice?: boolean;
22
22
  priority?: Priority;
23
23
  priorityElements?: PitchRollPriorityElement[];
24
+ zoomToFitArc?: boolean;
25
+ /** Half-extent of each of the four watch arcs in degrees, measured from the
26
+ arc's natural center (0°/90°/180°/270°). Each arc spans
27
+ `center ± arcAngle`. Default `30` reproduces the historical 60°-wide
28
+ arcs; smaller values produce narrower arcs that, combined with
29
+ `zoomToFitArc`, reveal more detail in the relevant motion range. */
30
+ arcAngle?: number;
31
+ /** [object Object],[object Object],[object Object] */
32
+ pitchArcAngle?: number | undefined;
33
+ /** [object Object],[object Object],[object Object] */
34
+ rollArcAngle?: number | undefined;
24
35
  }
25
36
  export interface Events {
26
37
  }
@@ -11,6 +11,12 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
11
11
  export interface Props {
12
12
  class?: string;
13
13
  style?: string;
14
+ /** Measured rate of turn in degrees per minute (positive = starboard).
15
+ When `undefined`, the legacy `rotationsPerMinute` value is used. */
16
+ rateOfTurnDegreesPerMinute?: number | undefined;
17
+ /** Visual amplification applied to the spinning dot animation. Default `18`
18
+ keeps the legacy visual feel (≈1 rpm at 20°/min). */
19
+ rotDotAnimationFactor?: number;
14
20
  rotationsPerMinute?: number;
15
21
  rotType?: RotType;
16
22
  rotPosition?: RotPosition;
@@ -5,6 +5,12 @@ import type { Snippet } from 'svelte';
5
5
  export interface Props {
6
6
  class?: string;
7
7
  style?: string;
8
+ /** Measured rate of turn in degrees per minute (positive = starboard).
9
+ When `undefined`, the legacy `rotationsPerMinute` value is used. */
10
+ rateOfTurnDegreesPerMinute?: number | undefined;
11
+ /** Visual amplification applied to the spinning dot animation. Default `18`
12
+ keeps the legacy visual feel (≈1 rpm at 20°/min). */
13
+ rotDotAnimationFactor?: number;
8
14
  rotationsPerMinute?: number;
9
15
  rotType?: RotType;
10
16
  rotPosition?: RotPosition;
@@ -15,7 +15,18 @@
15
15
  vesselImageFore?: VesselImage;
16
16
  scaleForeImage?: number;
17
17
  maxRollAdvice?: number | undefined;
18
- triggerRollAdvice?: boolean
18
+ triggerRollAdvice?: boolean;
19
+ zoomToFitArc?: boolean;
20
+ /** Half-extent of the watch arc in degrees. The arc spans `180° ± arcAngle`
21
+ and roll values are placed at their true position within it. Default
22
+ `45` reproduces the historical 90°-wide arc.
23
+
24
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
25
+ narrower arc is enlarged (its radius grows) on its own layer, while the
26
+ vessel image and the rotating indicator line stay at their natural size
27
+ and position on a separate central layer. The two layers are
28
+ intentionally visually disconnected. */
29
+ arcAngle?: number
19
30
  }
20
31
  export interface Events {
21
32
 
@@ -11,6 +11,17 @@ export interface Props {
11
11
  scaleForeImage?: number;
12
12
  maxRollAdvice?: number | undefined;
13
13
  triggerRollAdvice?: boolean;
14
+ zoomToFitArc?: boolean;
15
+ /** Half-extent of the watch arc in degrees. The arc spans `180° ± arcAngle`
16
+ and roll values are placed at their true position within it. Default
17
+ `45` reproduces the historical 90°-wide arc.
18
+
19
+ Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
20
+ narrower arc is enlarged (its radius grows) on its own layer, while the
21
+ vessel image and the rotating indicator line stay at their natural size
22
+ and position on a separate central layer. The two layers are
23
+ intentionally visually disconnected. */
24
+ arcAngle?: number;
14
25
  }
15
26
  export interface Events {
16
27
  }
@@ -9,6 +9,16 @@
9
9
  export interface Props {
10
10
  class?: string;
11
11
  style?: string;
12
+ /** Measured rate of turn in degrees per minute (positive = starboard).
13
+
14
+ Drives the spinner animation via `(rateOfTurnDegreesPerMinute / 360) *
15
+ rotDotAnimationFactor` rotations per minute. When `undefined` the legacy
16
+ `rotationsPerMinute` value is used instead. */
17
+ rateOfTurnDegreesPerMinute?: number | undefined;
18
+ /** Visual amplification applied to the spinning dot animation. Default `18`
19
+ keeps the legacy visual feel (≈1 rpm at 20°/min). Has no effect when
20
+ the legacy `rotationsPerMinute` API is used. */
21
+ rotDotAnimationFactor?: number;
12
22
  rotationsPerMinute?: number
13
23
  }
14
24
  export interface Events {
@@ -3,6 +3,16 @@ import type { Snippet } from 'svelte';
3
3
  export interface Props {
4
4
  class?: string;
5
5
  style?: string;
6
+ /** Measured rate of turn in degrees per minute (positive = starboard).
7
+
8
+ Drives the spinner animation via `(rateOfTurnDegreesPerMinute / 360) *
9
+ rotDotAnimationFactor` rotations per minute. When `undefined` the legacy
10
+ `rotationsPerMinute` value is used instead. */
11
+ rateOfTurnDegreesPerMinute?: number | undefined;
12
+ /** Visual amplification applied to the spinning dot animation. Default `18`
13
+ keeps the legacy visual feel (≈1 rpm at 20°/min). Has no effect when
14
+ the legacy `rotationsPerMinute` API is used. */
15
+ rotDotAnimationFactor?: number;
6
16
  rotationsPerMinute?: number;
7
17
  }
8
18
  export interface Events {
@@ -64,7 +64,9 @@ import type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/nav
64
64
  rotEndAngle?: number;
65
65
  rotPriority?: Priority | undefined;
66
66
  rotPortStarboard?: boolean;
67
- rotAtZeroDeadband?: number
67
+ rotAtZeroDeadband?: number;
68
+ rateOfTurnDegreesPerMinute?: number | undefined;
69
+ rotDotAnimationFactor?: number
68
70
  }
69
71
  export interface Events {
70
72
 
@@ -55,6 +55,8 @@ export interface Props {
55
55
  rotPriority?: Priority | undefined;
56
56
  rotPortStarboard?: boolean;
57
57
  rotAtZeroDeadband?: number;
58
+ rateOfTurnDegreesPerMinute?: number | undefined;
59
+ rotDotAnimationFactor?: number;
58
60
  }
59
61
  export interface Events {
60
62
  }
@@ -43,7 +43,9 @@ derived from the current scale (e.g. `LINEAR_DOT_ANGLE_SPACING * translationScal
43
43
  rotDotSpacing?: number;
44
44
  rotPriority?: Priority;
45
45
  rotPortStarboard?: boolean;
46
- rotAtZeroDeadband?: number
46
+ rotAtZeroDeadband?: number;
47
+ rateOfTurnDegreesPerMinute?: number | undefined;
48
+ rotDotAnimationFactor?: number
47
49
  }
48
50
  export interface Events {
49
51
 
@@ -35,6 +35,8 @@ derived from the current scale (e.g. `LINEAR_DOT_ANGLE_SPACING * translationScal
35
35
  rotPriority?: Priority;
36
36
  rotPortStarboard?: boolean;
37
37
  rotAtZeroDeadband?: number;
38
+ rateOfTurnDegreesPerMinute?: number | undefined;
39
+ rotDotAnimationFactor?: number;
38
40
  }
39
41
  export interface Events {
40
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oicl/openbridge-webcomponents-svelte",
3
- "version": "2.0.0-next.16",
3
+ "version": "2.0.0-next.18",
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.15"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.17"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"