@oicl/openbridge-webcomponents-svelte 2.0.0-next.43 → 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/README.md CHANGED
@@ -28,12 +28,14 @@ We are thrilled if you would like to support the OpenBridge Web Components proje
28
28
  We invite industry partners to join our Joint Industry Project. By becoming a donor, you help secure the future of the project and gain influence over the roadmap.
29
29
 
30
30
  ### Donor Benefits
31
+
31
32
  By becoming a donor, you aren’t just supporting code—you’re joining a collaborative movement. To show our appreciation, donors receive a specialized benefits package valid for 12 months upon receipt of payment:
32
33
 
33
34
  - **Proudly Show Your Support:** You are authorized to use the official "OpenBridge Member" logo in your marketing materials and corporate communications.
34
35
  - **Early & Easy Access:** You gain the right to use all new releases of the project’s software components directly under the Apache License 2.0.
35
36
 
36
37
  ### How to Support
38
+
37
39
  If you are interested in supporting the project, please fill out this **[Support Form](https://docs.google.com/forms/d/e/1FAIpQLSc6JVRyyIease2PkUArirNkG0DeTB__YnWEovjVwISlaYdktA/viewform?usp=header)**.
38
40
 
39
41
  For more information, please contact **Torstein A. Bø** at [torstein.bo@openstudio.no](mailto:torstein.bo@openstudio.no) or contact us on [Slack](https://join.slack.com/t/openbridgegroup/shared_invite/zt-2e4clvl6s-uZLkN5L3g8O~c1UZCN1reQ).
@@ -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
- windSpeed?: number | null;
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
- windSpeed?: number | null;
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
  }
@@ -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
- instantWindDirectionDeg?: number | null;
16
- instantWindSpeedNumber?: number | null;
17
- instantCurrentDirectionDeg?: number | null;
18
- instantCurrentSpeedNumber?: number | null;
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 {
@@ -6,10 +6,10 @@ export interface Props {
6
6
  class?: string;
7
7
  style?: string;
8
8
  dataPoints?: VelocityProjectionDatapoint[];
9
- instantWindDirectionDeg?: number | null;
10
- instantWindSpeedNumber?: number | null;
11
- instantCurrentDirectionDeg?: number | null;
12
- instantCurrentSpeedNumber?: number | null;
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
- wind?: number | null;
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
- wind?: number | null;
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
- currentWindSpeedBeaufort?: number;
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
- currentWindSpeedBeaufort?: number;
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
- level?: number;
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
- Used in relative mode to compute the marker rotation as `windFromAngle - rotationAngle`.
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
- windFromAngle?: number;
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
- level?: number;
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
- Used in relative mode to compute the marker rotation as `windFromAngle - rotationAngle`.
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
- currentWindSpeedBeaufort?: number | null;
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
- currentWindSpeedBeaufort?: number | null;
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.43",
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.42"
34
+ "@oicl/openbridge-webcomponents": "^2.0.0-next.46"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "svelte": "^5.0.0"