@oicl/openbridge-webcomponents-svelte 2.0.0-next.45 → 2.0.0-next.47
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/navigation-instruments/compass/ObcCompass.svelte +1 -1
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +1 -1
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte +8 -1
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte.d.ts +7 -0
- package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte +4 -4
- package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte.d.ts +4 -4
- package/dist/navigation-instruments/watch/ObcWatch.svelte +1 -1
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +1 -1
- package/dist/navigation-instruments/wind/ObcWind.svelte +1 -1
- package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +1 -1
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte +13 -3
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte.d.ts +12 -2
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte +1 -1
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte.d.ts +1 -1
- package/package.json +2 -2
|
@@ -27,7 +27,7 @@ import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dis
|
|
|
27
27
|
animateSetpoint?: boolean;
|
|
28
28
|
touching?: boolean;
|
|
29
29
|
headingAdvices?: AngleAdvice[];
|
|
30
|
-
|
|
30
|
+
currentWindSpeedKnots?: number | null;
|
|
31
31
|
windFromDirection?: number | null;
|
|
32
32
|
currentSpeed?: number | null;
|
|
33
33
|
currentFromDirection?: number | null;
|
|
@@ -19,7 +19,7 @@ export interface Props {
|
|
|
19
19
|
animateSetpoint?: boolean;
|
|
20
20
|
touching?: boolean;
|
|
21
21
|
headingAdvices?: AngleAdvice[];
|
|
22
|
-
|
|
22
|
+
currentWindSpeedKnots?: number | null;
|
|
23
23
|
windFromDirection?: number | null;
|
|
24
24
|
currentSpeed?: number | null;
|
|
25
25
|
currentFromDirection?: number | null;
|
|
@@ -11,7 +11,14 @@
|
|
|
11
11
|
style?: string;
|
|
12
12
|
angle?: number;
|
|
13
13
|
type?: CompassIndicatorType;
|
|
14
|
-
direction?: CompassIndicatorDirection
|
|
14
|
+
direction?: CompassIndicatorDirection;
|
|
15
|
+
/** When `true` (default) the compass face stays north-up and the arrow
|
|
16
|
+
rotates by `angle`. When `false` the arrow stays pointing up and the
|
|
17
|
+
compass face rotates instead (heading-up / course-up presentation).
|
|
18
|
+
|
|
19
|
+
Declared with `attribute: false` because the default is `true`; set it
|
|
20
|
+
via the JavaScript property (or framework binding) to opt out. */
|
|
21
|
+
northUp?: boolean
|
|
15
22
|
}
|
|
16
23
|
export interface Events {
|
|
17
24
|
|
|
@@ -7,6 +7,13 @@ export interface Props {
|
|
|
7
7
|
angle?: number;
|
|
8
8
|
type?: CompassIndicatorType;
|
|
9
9
|
direction?: CompassIndicatorDirection;
|
|
10
|
+
/** When `true` (default) the compass face stays north-up and the arrow
|
|
11
|
+
rotates by `angle`. When `false` the arrow stays pointing up and the
|
|
12
|
+
compass face rotates instead (heading-up / course-up presentation).
|
|
13
|
+
|
|
14
|
+
Declared with `attribute: false` because the default is `true`; set it
|
|
15
|
+
via the JavaScript property (or framework binding) to opt out. */
|
|
16
|
+
northUp?: boolean;
|
|
10
17
|
}
|
|
11
18
|
export interface Events {
|
|
12
19
|
}
|
package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte
CHANGED
|
@@ -12,10 +12,10 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
|
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
14
|
dataPoints?: VelocityProjectionDatapoint[];
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
currentWindFromDirection?: number | null;
|
|
16
|
+
currentWindSpeedKnots?: number | null;
|
|
17
|
+
currentFromDirection?: number | null;
|
|
18
|
+
currentSpeedKnots?: number | null;
|
|
19
19
|
vesselImage?: VesselImage
|
|
20
20
|
}
|
|
21
21
|
export interface Events {
|
package/dist/navigation-instruments/velocity-projection-plot/ObcVelocityProjectionPlot.svelte.d.ts
CHANGED
|
@@ -6,10 +6,10 @@ export interface Props {
|
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
8
|
dataPoints?: VelocityProjectionDatapoint[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
currentWindFromDirection?: number | null;
|
|
10
|
+
currentWindSpeedKnots?: number | null;
|
|
11
|
+
currentFromDirection?: number | null;
|
|
12
|
+
currentSpeedKnots?: number | null;
|
|
13
13
|
vesselImage?: VesselImage;
|
|
14
14
|
}
|
|
15
15
|
export interface Events {
|
|
@@ -42,7 +42,7 @@ import type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/nav
|
|
|
42
42
|
crosshairEnabled?: boolean;
|
|
43
43
|
showLabels?: boolean;
|
|
44
44
|
vessels?: WatchVessel[];
|
|
45
|
-
|
|
45
|
+
windKnots?: number | null;
|
|
46
46
|
windFromDirectionDeg?: number | null;
|
|
47
47
|
windSymbolRadius?: number | null;
|
|
48
48
|
windColor?: string | undefined;
|
|
@@ -32,7 +32,7 @@ export interface Props {
|
|
|
32
32
|
crosshairEnabled?: boolean;
|
|
33
33
|
showLabels?: boolean;
|
|
34
34
|
vessels?: WatchVessel[];
|
|
35
|
-
|
|
35
|
+
windKnots?: number | null;
|
|
36
36
|
windFromDirectionDeg?: number | null;
|
|
37
37
|
windSymbolRadius?: number | null;
|
|
38
38
|
windColor?: string | undefined;
|
|
@@ -12,7 +12,7 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
|
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
14
|
currentWindFromDirection?: number;
|
|
15
|
-
|
|
15
|
+
currentWindSpeedKnots?: number;
|
|
16
16
|
windHistogramData?: WindHistogramData[];
|
|
17
17
|
vesselImage?: VesselImage;
|
|
18
18
|
vesselHeadingDeg?: number;
|
|
@@ -6,7 +6,7 @@ export interface Props {
|
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
8
|
currentWindFromDirection?: number;
|
|
9
|
-
|
|
9
|
+
currentWindSpeedKnots?: number;
|
|
10
10
|
windHistogramData?: WindHistogramData[];
|
|
11
11
|
vesselImage?: VesselImage;
|
|
12
12
|
vesselHeadingDeg?: number;
|
|
@@ -12,10 +12,19 @@
|
|
|
12
12
|
type?: WindIndicatorType;
|
|
13
13
|
direction?: WindIndicatorDirection;
|
|
14
14
|
priority?: WindIndicatorPriority;
|
|
15
|
-
|
|
15
|
+
/** Wind speed in **knots**, used to pick the wind-barb icon.
|
|
16
|
+
|
|
17
|
+
Maps to the icon set using the designer-confirmed "Option C"
|
|
18
|
+
ranges: `[0, 0.5)` kn renders calm, `[0.5, 2.5)` kn renders a
|
|
19
|
+
shaft only, then 5-kn nearest-neighbour buckets up to 45 kn
|
|
20
|
+
(half-barb steps), `[47.5, 55)` kn renders the 50-kn pennant, and
|
|
21
|
+
`[55, 65)` / `[65, ∞)` kn add one and two full barbs above the
|
|
22
|
+
pennant respectively. Non-finite or negative values fall back to
|
|
23
|
+
calm. */
|
|
24
|
+
currentWindSpeedKnots?: number;
|
|
16
25
|
/** Rotation of the reference frame (course/heading) in degrees.
|
|
17
26
|
|
|
18
|
-
|
|
27
|
+
This could be the heading or the course of the vessel.
|
|
19
28
|
`0` means north-up. */
|
|
20
29
|
rotationAngle?: number;
|
|
21
30
|
/** Primary wind direction input (wind-from).
|
|
@@ -23,7 +32,8 @@ rotationAngle?: number;
|
|
|
23
32
|
Represents the direction the wind comes **from** in degrees.
|
|
24
33
|
- `0` / `360`: wind from north → marker points south (down)
|
|
25
34
|
- `180`: wind from south → marker points north (up) */
|
|
26
|
-
|
|
35
|
+
currentWindFromDirection?: number;
|
|
36
|
+
windFromAngle?: number;
|
|
27
37
|
angle?: number
|
|
28
38
|
}
|
|
29
39
|
export interface Events {
|
|
@@ -7,10 +7,19 @@ export interface Props {
|
|
|
7
7
|
type?: WindIndicatorType;
|
|
8
8
|
direction?: WindIndicatorDirection;
|
|
9
9
|
priority?: WindIndicatorPriority;
|
|
10
|
-
|
|
10
|
+
/** Wind speed in **knots**, used to pick the wind-barb icon.
|
|
11
|
+
|
|
12
|
+
Maps to the icon set using the designer-confirmed "Option C"
|
|
13
|
+
ranges: `[0, 0.5)` kn renders calm, `[0.5, 2.5)` kn renders a
|
|
14
|
+
shaft only, then 5-kn nearest-neighbour buckets up to 45 kn
|
|
15
|
+
(half-barb steps), `[47.5, 55)` kn renders the 50-kn pennant, and
|
|
16
|
+
`[55, 65)` / `[65, ∞)` kn add one and two full barbs above the
|
|
17
|
+
pennant respectively. Non-finite or negative values fall back to
|
|
18
|
+
calm. */
|
|
19
|
+
currentWindSpeedKnots?: number;
|
|
11
20
|
/** Rotation of the reference frame (course/heading) in degrees.
|
|
12
21
|
|
|
13
|
-
|
|
22
|
+
This could be the heading or the course of the vessel.
|
|
14
23
|
`0` means north-up. */
|
|
15
24
|
rotationAngle?: number;
|
|
16
25
|
/** Primary wind direction input (wind-from).
|
|
@@ -18,6 +27,7 @@ Used in relative mode to compute the marker rotation as `windFromAngle - rotatio
|
|
|
18
27
|
Represents the direction the wind comes **from** in degrees.
|
|
19
28
|
- `0` / `360`: wind from north → marker points south (down)
|
|
20
29
|
- `180`: wind from south → marker points north (up) */
|
|
30
|
+
currentWindFromDirection?: number;
|
|
21
31
|
windFromAngle?: number;
|
|
22
32
|
angle?: number;
|
|
23
33
|
}
|
|
@@ -37,7 +37,7 @@ import type {AngleAdvice} from '@oicl/openbridge-webcomponents/dist/navigation-i
|
|
|
37
37
|
showLabels?: boolean;
|
|
38
38
|
tickmarksInside?: boolean;
|
|
39
39
|
tickmarkStyle?: TickmarkStyle;
|
|
40
|
-
|
|
40
|
+
currentWindSpeedKnots?: number | null;
|
|
41
41
|
currentWindFromDirection?: number | null;
|
|
42
42
|
sailAngleAdvices?: AngleAdvice[]
|
|
43
43
|
}
|
|
@@ -28,7 +28,7 @@ export interface Props {
|
|
|
28
28
|
showLabels?: boolean;
|
|
29
29
|
tickmarksInside?: boolean;
|
|
30
30
|
tickmarkStyle?: TickmarkStyle;
|
|
31
|
-
|
|
31
|
+
currentWindSpeedKnots?: number | null;
|
|
32
32
|
currentWindFromDirection?: number | null;
|
|
33
33
|
sailAngleAdvices?: AngleAdvice[];
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.47",
|
|
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.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.46"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|