@oicl/openbridge-webcomponents 2.0.0-next.45 → 2.0.0-next.46

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 (37) hide show
  1. package/bundle/openbridge-webcomponents.bundle.js +14869 -14889
  2. package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
  3. package/custom-elements.json +74 -81
  4. package/dist/components/badge/badge.css.js +15 -15
  5. package/dist/navigation-instruments/compass/compass.d.ts +3 -3
  6. package/dist/navigation-instruments/compass/compass.d.ts.map +1 -1
  7. package/dist/navigation-instruments/compass/compass.js +3 -3
  8. package/dist/navigation-instruments/compass/compass.js.map +1 -1
  9. package/dist/navigation-instruments/compass-indicator/compass-indicator.d.ts +12 -0
  10. package/dist/navigation-instruments/compass-indicator/compass-indicator.d.ts.map +1 -1
  11. package/dist/navigation-instruments/compass-indicator/compass-indicator.js +9 -1
  12. package/dist/navigation-instruments/compass-indicator/compass-indicator.js.map +1 -1
  13. package/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.d.ts +4 -4
  14. package/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.d.ts.map +1 -1
  15. package/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js +15 -14
  16. package/dist/navigation-instruments/velocity-projection-plot/velocity-projection-plot.js.map +1 -1
  17. package/dist/navigation-instruments/watch/environment.d.ts +39 -1
  18. package/dist/navigation-instruments/watch/environment.d.ts.map +1 -1
  19. package/dist/navigation-instruments/watch/environment.js +71 -88
  20. package/dist/navigation-instruments/watch/environment.js.map +1 -1
  21. package/dist/navigation-instruments/watch/watch.d.ts +1 -1
  22. package/dist/navigation-instruments/watch/watch.d.ts.map +1 -1
  23. package/dist/navigation-instruments/watch/watch.js +4 -4
  24. package/dist/navigation-instruments/watch/watch.js.map +1 -1
  25. package/dist/navigation-instruments/wind/wind.d.ts +1 -1
  26. package/dist/navigation-instruments/wind/wind.d.ts.map +1 -1
  27. package/dist/navigation-instruments/wind/wind.js +3 -3
  28. package/dist/navigation-instruments/wind/wind.js.map +1 -1
  29. package/dist/navigation-instruments/wind-indicator/wind-indicator.d.ts +63 -9
  30. package/dist/navigation-instruments/wind-indicator/wind-indicator.d.ts.map +1 -1
  31. package/dist/navigation-instruments/wind-indicator/wind-indicator.js +57 -1995
  32. package/dist/navigation-instruments/wind-indicator/wind-indicator.js.map +1 -1
  33. package/dist/navigation-instruments/wind-propulsion/wind-propulsion.d.ts +1 -1
  34. package/dist/navigation-instruments/wind-propulsion/wind-propulsion.d.ts.map +1 -1
  35. package/dist/navigation-instruments/wind-propulsion/wind-propulsion.js +4 -4
  36. package/dist/navigation-instruments/wind-propulsion/wind-propulsion.js.map +1 -1
  37. package/package.json +1 -1
@@ -69104,7 +69104,7 @@
69104
69104
  "declarations": [
69105
69105
  {
69106
69106
  "kind": "class",
69107
- "description": "`<obc-compass-indicator>` – A compact compass direction indicator with heading, course, and north variants.\n\nRenders a 48 x 48 directional indicator that can switch between a circular\ncompass face and labeled compact readouts. Use it when you need a small\ndirectional cue next to a numeric readout or inside dense instrument layouts.\n\n## Features\n\n- **Types**: `regular` shows the circular compass indicator; `labeled` shows a framed indicator with a single cardinal label.\n- **Directions**: `heading`, `course`, and `north` each use their own visual symbol.\n- **Angle-driven output**: `angle` rotates the active symbol and drives the derived label in labeled mode.\n\n## Usage Guidelines\n\n- Use `direction=\"heading\"` for the filled heading arrow variant.\n- Use `direction=\"course\"` for the outlined course arrow variant.\n- Use `direction=\"north\"` for the north marker / bearing-style indicator.\n- Switch `type` to `labeled` when the indicator should also communicate the\n nearest cardinal direction as text.",
69107
+ "description": "`<obc-compass-indicator>` – A compact compass direction indicator with heading, course, and north variants.\n\nRenders a 48 x 48 directional indicator that can switch between a circular\ncompass face and labeled compact readouts. Use it when you need a small\ndirectional cue next to a numeric readout or inside dense instrument layouts.\n\n## Features\n\n- **Types**: `regular` shows the circular compass indicator; `labeled` shows a framed indicator with a single cardinal label.\n- **Directions**: `heading`, `course`, and `north` each use their own visual symbol.\n- **Angle-driven output**: `angle` rotates the active symbol and drives the derived label in labeled mode.\n- **Orientation**: `northUp` keeps the compass face fixed north-up and rotates the arrow; when `false` the face rotates and the arrow stays pointing up (heading-up / course-up).\n\n## Usage Guidelines\n\n- Use `direction=\"heading\"` for the filled heading arrow variant.\n- Use `direction=\"course\"` for the outlined course arrow variant.\n- Use `direction=\"north\"` for the north marker / bearing-style indicator.\n- Switch `type` to `labeled` when the indicator should also communicate the\n nearest cardinal direction as text.\n- Set `northUp` to `false` to render a heading-up / course-up presentation\n where the arrow stays vertical and the compass face rotates instead.",
69108
69108
  "name": "ObcCompassIndicator",
69109
69109
  "members": [
69110
69110
  {
@@ -69138,6 +69138,15 @@
69138
69138
  },
69139
69139
  "attribute": "direction"
69140
69140
  },
69141
+ {
69142
+ "kind": "field",
69143
+ "name": "northUp",
69144
+ "type": {
69145
+ "text": "boolean"
69146
+ },
69147
+ "default": "true",
69148
+ "description": "When `true` (default) the compass face stays north-up and the arrow\nrotates by `angle`. When `false` the arrow stays pointing up and the\ncompass face rotates instead (heading-up / course-up presentation).\n\nDeclared with `attribute: false` because the default is `true`; set it\nvia the JavaScript property (or framework binding) to opt out."
69149
+ },
69141
69150
  {
69142
69151
  "kind": "field",
69143
69152
  "name": "normalizedAngle",
@@ -70000,7 +70009,7 @@
70000
70009
  "declarations": [
70001
70010
  {
70002
70011
  "kind": "class",
70003
- "description": "`<obc-compass>` – Full-featured compass with HDG/COG arrows, rate-of-turn indicator, and environmental overlays.\n\nRenders a circular compass instrument that displays heading (HDG) and\ncourse-over-ground (COG) as rotating arrows over a triple-ring watch face.\nIt supports wind and current indicators, a vessel silhouette, heading\nsetpoint with auto at-setpoint detection, advice zones, and a rate-of-turn\n(ROT) dot indicator. The compass can be oriented north-up, heading-up, or\ncourse-up.\n\n## Features\n\n- **Direction modes**: `northUp` (default), `headingUp`, or `courseUp`\n via the `direction` property.\n- **HDG / COG arrows**: Two styled arrows overlay the watch face,\n rotating independently.\n- **Heading setpoint**: Optional setpoint marker with auto at-setpoint\n detection via `headingSetpoint`, `atHeadingSetpoint`, and deadband\n tuning properties.\n- **Advice zones**: Pass `headingAdvices` to render caution/alert arcs;\n triggered state is derived from whether the current heading falls\n inside the advice range.\n- **Rate of turn**: Animated ROT indicator driven by\n `rateOfTurnDegreesPerMinute` (deg/min, the maritime / AIS convention).\n Supports spinning dots (`rotType=\"dots\"`) — the dot animation is\n amplified by `rotDotAnimationFactor` so small physical values still\n read at a glance — and a banana-shaped arc bar (`rotType=\"bar\"`)\n showing the HDG→COG span. Bar extent is driven by the physical value\n only (gain is not applied). Position on the outer scale ring or inner\n circle via `rotPosition`.\n- **Environmental overlays**: Wind speed/direction and current\n speed/direction indicators on the watch face.\n- **Vessel image**: Configurable vessel silhouette centered on the\n compass, rotating with heading.\n- **Color priority**: Set `priority` to `Priority.enhanced` to use the\n blue/enhanced color palette instead of the default gray/regular palette\n (default: `Priority.regular`).\n\n## Usage Guidelines\n\n- Set `heading` and `courseOverGround` to the current sensor values\n in degrees.\n- Use `direction` to control the compass orientation mode.\n- Use `headingSetpoint` to show a target heading marker.\n- Pass `headingAdvices` as an array of `AngleAdvice` objects for\n caution/alert zones.\n- Set `windSpeed` / `windFromDirection` and `currentSpeed` /\n `currentFromDirection` to display environmental indicators.\n\n## Example\n\n```html\n<obc-compass\n heading=\"45\"\n courseOverGround=\"50\"\n direction=\"northUp\"\n headingSetpoint=\"90\"\n priority=\"regular\"\n vesselImage=\"genericTop\"\n></obc-compass>\n```",
70012
+ "description": "`<obc-compass>` – Full-featured compass with HDG/COG arrows, rate-of-turn indicator, and environmental overlays.\n\nRenders a circular compass instrument that displays heading (HDG) and\ncourse-over-ground (COG) as rotating arrows over a triple-ring watch face.\nIt supports wind and current indicators, a vessel silhouette, heading\nsetpoint with auto at-setpoint detection, advice zones, and a rate-of-turn\n(ROT) dot indicator. The compass can be oriented north-up, heading-up, or\ncourse-up.\n\n## Features\n\n- **Direction modes**: `northUp` (default), `headingUp`, or `courseUp`\n via the `direction` property.\n- **HDG / COG arrows**: Two styled arrows overlay the watch face,\n rotating independently.\n- **Heading setpoint**: Optional setpoint marker with auto at-setpoint\n detection via `headingSetpoint`, `atHeadingSetpoint`, and deadband\n tuning properties.\n- **Advice zones**: Pass `headingAdvices` to render caution/alert arcs;\n triggered state is derived from whether the current heading falls\n inside the advice range.\n- **Rate of turn**: Animated ROT indicator driven by\n `rateOfTurnDegreesPerMinute` (deg/min, the maritime / AIS convention).\n Supports spinning dots (`rotType=\"dots\"`) — the dot animation is\n amplified by `rotDotAnimationFactor` so small physical values still\n read at a glance — and a banana-shaped arc bar (`rotType=\"bar\"`)\n showing the HDG→COG span. Bar extent is driven by the physical value\n only (gain is not applied). Position on the outer scale ring or inner\n circle via `rotPosition`.\n- **Environmental overlays**: Wind speed/direction and current\n speed/direction indicators on the watch face.\n- **Vessel image**: Configurable vessel silhouette centered on the\n compass, rotating with heading.\n- **Color priority**: Set `priority` to `Priority.enhanced` to use the\n blue/enhanced color palette instead of the default gray/regular palette\n (default: `Priority.regular`).\n\n## Usage Guidelines\n\n- Set `heading` and `courseOverGround` to the current sensor values\n in degrees.\n- Use `direction` to control the compass orientation mode.\n- Use `headingSetpoint` to show a target heading marker.\n- Pass `headingAdvices` as an array of `AngleAdvice` objects for\n caution/alert zones.\n- Set `currentWindSpeedKnots` / `windFromDirection` and `currentSpeed` /\n `currentFromDirection` to display environmental indicators.\n\n## Example\n\n```html\n<obc-compass\n heading=\"45\"\n courseOverGround=\"50\"\n direction=\"northUp\"\n headingSetpoint=\"90\"\n priority=\"regular\"\n vesselImage=\"genericTop\"\n></obc-compass>\n```",
70004
70013
  "name": "ObcCompass",
70005
70014
  "members": [
70006
70015
  {
@@ -70118,13 +70127,13 @@
70118
70127
  },
70119
70128
  {
70120
70129
  "kind": "field",
70121
- "name": "windSpeed",
70130
+ "name": "currentWindSpeedKnots",
70122
70131
  "type": {
70123
70132
  "text": "number | null"
70124
70133
  },
70125
70134
  "default": "null",
70126
- "description": "The wind speed in beaufort scale number.",
70127
- "attribute": "windSpeed"
70135
+ "description": "The wind speed in knots.",
70136
+ "attribute": "currentWindSpeedKnots"
70128
70137
  },
70129
70138
  {
70130
70139
  "kind": "field",
@@ -70473,13 +70482,13 @@
70473
70482
  "fieldName": "touching"
70474
70483
  },
70475
70484
  {
70476
- "name": "windSpeed",
70485
+ "name": "currentWindSpeedKnots",
70477
70486
  "type": {
70478
70487
  "text": "number | null"
70479
70488
  },
70480
70489
  "default": "null",
70481
- "description": "The wind speed in beaufort scale number.",
70482
- "fieldName": "windSpeed"
70490
+ "description": "The wind speed in knots.",
70491
+ "fieldName": "currentWindSpeedKnots"
70483
70492
  },
70484
70493
  {
70485
70494
  "name": "windFromDirection",
@@ -86078,39 +86087,39 @@
86078
86087
  },
86079
86088
  {
86080
86089
  "kind": "field",
86081
- "name": "instantWindDirectionDeg",
86090
+ "name": "currentWindFromDirection",
86082
86091
  "type": {
86083
86092
  "text": "number | null"
86084
86093
  },
86085
86094
  "default": "null",
86086
- "attribute": "instantWindDirectionDeg"
86095
+ "attribute": "currentWindFromDirection"
86087
86096
  },
86088
86097
  {
86089
86098
  "kind": "field",
86090
- "name": "instantWindSpeedNumber",
86099
+ "name": "currentWindSpeedKnots",
86091
86100
  "type": {
86092
86101
  "text": "number | null"
86093
86102
  },
86094
86103
  "default": "null",
86095
- "attribute": "instantWindSpeedNumber"
86104
+ "attribute": "currentWindSpeedKnots"
86096
86105
  },
86097
86106
  {
86098
86107
  "kind": "field",
86099
- "name": "instantCurrentDirectionDeg",
86108
+ "name": "currentFromDirection",
86100
86109
  "type": {
86101
86110
  "text": "number | null"
86102
86111
  },
86103
86112
  "default": "null",
86104
- "attribute": "instantCurrentDirectionDeg"
86113
+ "attribute": "currentFromDirection"
86105
86114
  },
86106
86115
  {
86107
86116
  "kind": "field",
86108
- "name": "instantCurrentSpeedNumber",
86117
+ "name": "currentSpeedKnots",
86109
86118
  "type": {
86110
86119
  "text": "number | null"
86111
86120
  },
86112
86121
  "default": "null",
86113
- "attribute": "instantCurrentSpeedNumber"
86122
+ "attribute": "currentSpeedKnots"
86114
86123
  },
86115
86124
  {
86116
86125
  "kind": "field",
@@ -86169,36 +86178,36 @@
86169
86178
  ],
86170
86179
  "attributes": [
86171
86180
  {
86172
- "name": "instantWindDirectionDeg",
86181
+ "name": "currentWindFromDirection",
86173
86182
  "type": {
86174
86183
  "text": "number | null"
86175
86184
  },
86176
86185
  "default": "null",
86177
- "fieldName": "instantWindDirectionDeg"
86186
+ "fieldName": "currentWindFromDirection"
86178
86187
  },
86179
86188
  {
86180
- "name": "instantWindSpeedNumber",
86189
+ "name": "currentWindSpeedKnots",
86181
86190
  "type": {
86182
86191
  "text": "number | null"
86183
86192
  },
86184
86193
  "default": "null",
86185
- "fieldName": "instantWindSpeedNumber"
86194
+ "fieldName": "currentWindSpeedKnots"
86186
86195
  },
86187
86196
  {
86188
- "name": "instantCurrentDirectionDeg",
86197
+ "name": "currentFromDirection",
86189
86198
  "type": {
86190
86199
  "text": "number | null"
86191
86200
  },
86192
86201
  "default": "null",
86193
- "fieldName": "instantCurrentDirectionDeg"
86202
+ "fieldName": "currentFromDirection"
86194
86203
  },
86195
86204
  {
86196
- "name": "instantCurrentSpeedNumber",
86205
+ "name": "currentSpeedKnots",
86197
86206
  "type": {
86198
86207
  "text": "number | null"
86199
86208
  },
86200
86209
  "default": "null",
86201
- "fieldName": "instantCurrentSpeedNumber"
86210
+ "fieldName": "currentSpeedKnots"
86202
86211
  },
86203
86212
  {
86204
86213
  "name": "vesselImage",
@@ -87026,12 +87035,12 @@
87026
87035
  },
87027
87036
  {
87028
87037
  "kind": "field",
87029
- "name": "wind",
87038
+ "name": "windKnots",
87030
87039
  "type": {
87031
87040
  "text": "number | null"
87032
87041
  },
87033
87042
  "default": "null",
87034
- "attribute": "wind"
87043
+ "attribute": "windKnots"
87035
87044
  },
87036
87045
  {
87037
87046
  "kind": "field",
@@ -87590,12 +87599,12 @@
87590
87599
  "fieldName": "showLabels"
87591
87600
  },
87592
87601
  {
87593
- "name": "wind",
87602
+ "name": "windKnots",
87594
87603
  "type": {
87595
87604
  "text": "number | null"
87596
87605
  },
87597
87606
  "default": "null",
87598
- "fieldName": "wind"
87607
+ "fieldName": "windKnots"
87599
87608
  },
87600
87609
  {
87601
87610
  "name": "windFromDirectionDeg",
@@ -87888,7 +87897,7 @@
87888
87897
  "declarations": [
87889
87898
  {
87890
87899
  "kind": "class",
87891
- "description": "`<obc-wind-indicator>` – A compact wind indicator with a fixed frame and a rotating wind marker.\n\nVisualizes a discrete wind `level` using a compact icon plus optional mode layers.\n\n## Features\n\n- **Variants:** `type` (`arrow` | `shaft` | `labeled`), `direction` (`true` | `relative`), `priority` (`regular` | `enhanced`).\n- **Discrete input:** `level` selects the icon state; mapping from real wind to `level` happens outside.\n\n## Usage Guidelines\n\nUse when you need a small wind cue next to other compact indicators.",
87900
+ "description": "`<obc-wind-indicator>` – A compact wind indicator with a fixed frame and a rotating wind marker.\n\nVisualizes a wind speed in knots using a compact wind-barb icon plus\noptional mode layers.\n\n## Features\n\n- **Variants:** `type` (`arrow` | `shaft` | `labeled`), `direction` (`true` | `relative`), `priority` (`regular` | `enhanced`).\n- **Speed input:** `currentWindSpeedKnots` is the wind speed in knots.\n The barb icon follows the standard meteorological convention (one\n half-barb per 5 kn). 0–65 kn covers all 14 icons; higher values clamp\n to the heaviest icon.\n\n## Usage Guidelines\n\nUse when you need a small wind cue next to other compact indicators.\nPass the wind speed in knots through `currentWindSpeedKnots`, matching\nthe convention used by `<obc-wind>`, `<obc-wind-propulsion>` and\n`<obc-compass>`.",
87892
87901
  "name": "ObcWindIndicator",
87893
87902
  "members": [
87894
87903
  {
@@ -87917,12 +87926,13 @@
87917
87926
  },
87918
87927
  {
87919
87928
  "kind": "field",
87920
- "name": "level",
87929
+ "name": "currentWindSpeedKnots",
87921
87930
  "type": {
87922
87931
  "text": "number"
87923
87932
  },
87924
87933
  "default": "0",
87925
- "attribute": "level"
87934
+ "description": "Wind speed in **knots**, used to pick the wind-barb icon.\n\nMaps to the icon set using the designer-confirmed \"Option C\"\nranges: `[0, 0.5)` kn renders calm, `[0.5, 2.5)` kn renders a\nshaft only, then 5-kn nearest-neighbour buckets up to 45 kn\n(half-barb steps), `[47.5, 55)` kn renders the 50-kn pennant, and\n`[55, 65)` / `[65, ∞)` kn add one and two full barbs above the\npennant respectively. Non-finite or negative values fall back to\ncalm.",
87935
+ "attribute": "current-wind-speed-knots"
87926
87936
  },
87927
87937
  {
87928
87938
  "kind": "field",
@@ -87931,50 +87941,39 @@
87931
87941
  "text": "number"
87932
87942
  },
87933
87943
  "default": "0",
87934
- "description": "Rotation of the reference frame (course/heading) in degrees.\n\nUsed in relative mode to compute the marker rotation as `windFromAngle - rotationAngle`.\n`0` means north-up.",
87944
+ "description": "Rotation of the reference frame (course/heading) in degrees.\n\nThis could be the heading or the course of the vessel.\n`0` means north-up.",
87935
87945
  "attribute": "rotation-angle"
87936
87946
  },
87937
87947
  {
87938
87948
  "kind": "field",
87939
- "name": "windFromAngle",
87949
+ "name": "currentWindFromDirection",
87940
87950
  "type": {
87941
87951
  "text": "number"
87942
87952
  },
87943
87953
  "default": "0",
87944
87954
  "description": "Primary wind direction input (wind-from).\n\nRepresents the direction the wind comes **from** in degrees.\n- `0` / `360`: wind from north → marker points south (down)\n- `180`: wind from south → marker points north (up)",
87945
- "attribute": "wind-from-angle"
87955
+ "attribute": "current-wind-from-direction"
87946
87956
  },
87947
87957
  {
87948
87958
  "kind": "field",
87949
- "name": "angle",
87950
- "deprecated": "Use `windFromAngle` instead.",
87951
- "attribute": "angle"
87959
+ "name": "windFromAngle",
87960
+ "deprecated": "Use `currentWindFromDirection` instead.",
87961
+ "attribute": "windFromAngle"
87952
87962
  },
87953
87963
  {
87954
- "kind": "method",
87955
- "name": "clampLevel",
87956
- "privacy": "private",
87957
- "return": {
87958
- "type": {
87959
- "text": "number"
87960
- }
87961
- },
87962
- "parameters": [
87963
- {
87964
- "name": "value",
87965
- "type": {
87966
- "text": "number"
87967
- }
87968
- }
87969
- ]
87964
+ "kind": "field",
87965
+ "name": "angle",
87966
+ "deprecated": "Use `currentWindFromDirection` instead.",
87967
+ "attribute": "angle"
87970
87968
  },
87971
87969
  {
87972
87970
  "kind": "field",
87973
- "name": "clampedLevel",
87971
+ "name": "iconIndex",
87974
87972
  "type": {
87975
87973
  "text": "number"
87976
87974
  },
87977
87975
  "privacy": "private",
87976
+ "description": "Icon index in the range `1..14`, derived from `currentWindSpeedKnots`\nvia the shared `windKnotsToIconIndex` helper (standard meteorological\nwind-barb convention; one half-barb per 5 kn).",
87978
87977
  "readonly": true
87979
87978
  },
87980
87979
  {
@@ -88058,12 +88057,6 @@
88058
88057
  "type": {
88059
88058
  "text": "string"
88060
88059
  }
88061
- },
88062
- {
88063
- "name": "level",
88064
- "type": {
88065
- "text": "number"
88066
- }
88067
88060
  }
88068
88061
  ]
88069
88062
  },
@@ -88088,12 +88081,6 @@
88088
88081
  "type": {
88089
88082
  "text": "string"
88090
88083
  }
88091
- },
88092
- {
88093
- "name": "level",
88094
- "type": {
88095
- "text": "number"
88096
- }
88097
88084
  }
88098
88085
  ]
88099
88086
  },
@@ -88151,12 +88138,13 @@
88151
88138
  "fieldName": "priority"
88152
88139
  },
88153
88140
  {
88154
- "name": "level",
88141
+ "name": "current-wind-speed-knots",
88155
88142
  "type": {
88156
88143
  "text": "number"
88157
88144
  },
88158
88145
  "default": "0",
88159
- "fieldName": "level"
88146
+ "description": "Wind speed in **knots**, used to pick the wind-barb icon.\n\nMaps to the icon set using the designer-confirmed \"Option C\"\nranges: `[0, 0.5)` kn renders calm, `[0.5, 2.5)` kn renders a\nshaft only, then 5-kn nearest-neighbour buckets up to 45 kn\n(half-barb steps), `[47.5, 55)` kn renders the 50-kn pennant, and\n`[55, 65)` / `[65, ∞)` kn add one and two full barbs above the\npennant respectively. Non-finite or negative values fall back to\ncalm.",
88147
+ "fieldName": "currentWindSpeedKnots"
88160
88148
  },
88161
88149
  {
88162
88150
  "name": "rotation-angle",
@@ -88164,21 +88152,26 @@
88164
88152
  "text": "number"
88165
88153
  },
88166
88154
  "default": "0",
88167
- "description": "Rotation of the reference frame (course/heading) in degrees.\n\nUsed in relative mode to compute the marker rotation as `windFromAngle - rotationAngle`.\n`0` means north-up.",
88155
+ "description": "Rotation of the reference frame (course/heading) in degrees.\n\nThis could be the heading or the course of the vessel.\n`0` means north-up.",
88168
88156
  "fieldName": "rotationAngle"
88169
88157
  },
88170
88158
  {
88171
- "name": "wind-from-angle",
88159
+ "name": "current-wind-from-direction",
88172
88160
  "type": {
88173
88161
  "text": "number"
88174
88162
  },
88175
88163
  "default": "0",
88176
88164
  "description": "Primary wind direction input (wind-from).\n\nRepresents the direction the wind comes **from** in degrees.\n- `0` / `360`: wind from north → marker points south (down)\n- `180`: wind from south → marker points north (up)",
88165
+ "fieldName": "currentWindFromDirection"
88166
+ },
88167
+ {
88168
+ "name": "windFromAngle",
88169
+ "deprecated": "Use `currentWindFromDirection` instead.",
88177
88170
  "fieldName": "windFromAngle"
88178
88171
  },
88179
88172
  {
88180
88173
  "name": "angle",
88181
- "deprecated": "Use `windFromAngle` instead.",
88174
+ "deprecated": "Use `currentWindFromDirection` instead.",
88182
88175
  "fieldName": "angle"
88183
88176
  }
88184
88177
  ],
@@ -88392,12 +88385,12 @@
88392
88385
  },
88393
88386
  {
88394
88387
  "kind": "field",
88395
- "name": "currentWindSpeedBeaufort",
88388
+ "name": "currentWindSpeedKnots",
88396
88389
  "type": {
88397
88390
  "text": "number | null"
88398
88391
  },
88399
88392
  "default": "null",
88400
- "attribute": "currentWindSpeedBeaufort"
88393
+ "attribute": "currentWindSpeedKnots"
88401
88394
  },
88402
88395
  {
88403
88396
  "kind": "field",
@@ -88644,12 +88637,12 @@
88644
88637
  "fieldName": "tickmarkStyle"
88645
88638
  },
88646
88639
  {
88647
- "name": "currentWindSpeedBeaufort",
88640
+ "name": "currentWindSpeedKnots",
88648
88641
  "type": {
88649
88642
  "text": "number | null"
88650
88643
  },
88651
88644
  "default": "null",
88652
- "fieldName": "currentWindSpeedBeaufort"
88645
+ "fieldName": "currentWindSpeedKnots"
88653
88646
  },
88654
88647
  {
88655
88648
  "name": "currentWindFromDirection",
@@ -88707,12 +88700,12 @@
88707
88700
  },
88708
88701
  {
88709
88702
  "kind": "field",
88710
- "name": "currentWindSpeedBeaufort",
88703
+ "name": "currentWindSpeedKnots",
88711
88704
  "type": {
88712
88705
  "text": "number"
88713
88706
  },
88714
- "default": "1",
88715
- "attribute": "currentWindSpeedBeaufort"
88707
+ "default": "25",
88708
+ "attribute": "currentWindSpeedKnots"
88716
88709
  },
88717
88710
  {
88718
88711
  "kind": "field",
@@ -88867,12 +88860,12 @@
88867
88860
  "fieldName": "currentWindFromDirection"
88868
88861
  },
88869
88862
  {
88870
- "name": "currentWindSpeedBeaufort",
88863
+ "name": "currentWindSpeedKnots",
88871
88864
  "type": {
88872
88865
  "text": "number"
88873
88866
  },
88874
- "default": "1",
88875
- "fieldName": "currentWindSpeedBeaufort"
88867
+ "default": "25",
88868
+ "fieldName": "currentWindSpeedKnots"
88876
88869
  },
88877
88870
  {
88878
88871
  "name": "vesselImage",
@@ -10,7 +10,7 @@ const compentStyle = css`
10
10
  align-items: center;
11
11
  justify-content: center;
12
12
  border-style: solid;
13
- border-radius: var(--app-components-badge-border-radius);
13
+ border-radius: var(--ui-components-badge-border-radius);
14
14
  padding: calc(var(--ui-components-badge-padding) - 1px);
15
15
  border: 1px solid var(--alert-alarm-outline-color);
16
16
  background: var(--alert-alarm-color);
@@ -25,8 +25,8 @@ const compentStyle = css`
25
25
  }
26
26
 
27
27
  .wrapper .icon {
28
- width: var(--app-components-badge-icon-size);
29
- height: var(--app-components-badge-icon-size);
28
+ width: var(--ui-components-badge-icon-size);
29
+ height: var(--ui-components-badge-icon-size);
30
30
  display: flex;
31
31
  align-items: center;
32
32
  justify-content: center;
@@ -46,18 +46,18 @@ const compentStyle = css`
46
46
  flex-direction: column;
47
47
  justify-content: center;
48
48
  align-items: center;
49
- padding: 0 var(--app-components-badge-label-spacing) 1px
50
- var(--app-components-badge-label-spacing);
51
- height: var(--app-components-badge-icon-size);
52
- min-width: var(--app-components-badge-icon-size);
49
+ padding: 0 var(--ui-components-badge-label-spacing) 1px
50
+ var(--ui-components-badge-label-spacing);
51
+ height: var(--ui-components-badge-icon-size);
52
+ min-width: var(--ui-components-badge-icon-size);
53
53
  }
54
54
 
55
55
  .wrapper.size-large {
56
56
  display: inline-flex;
57
57
  width: fit-content;
58
58
  height: 24px;
59
- min-width: var(--app-components-badge-min-size-large);
60
- min-height: var(--app-components-badge-min-size-large);
59
+ min-width: var(--ui-components-badge-min-size-large);
60
+ min-height: var(--ui-components-badge-min-size-large);
61
61
 
62
62
  padding: calc(var(--ui-components-badge-padding) - 1px);
63
63
  justify-content: center;
@@ -80,8 +80,8 @@ const compentStyle = css`
80
80
  }
81
81
 
82
82
  .wrapper.size-large .icon {
83
- width: var(--app-components-badge-icon-size-large);
84
- height: var(--app-components-badge-icon-size-large);
83
+ width: var(--ui-components-badge-icon-size-large);
84
+ height: var(--ui-components-badge-icon-size-large);
85
85
  display: flex;
86
86
  align-items: center;
87
87
  justify-content: center;
@@ -152,8 +152,8 @@ const compentStyle = css`
152
152
  }
153
153
 
154
154
  .wrapper.variant-flat .icon {
155
- min-width: var(--app-components-badge-icon-size);
156
- min-height: var(--app-components-badge-icon-size);
155
+ min-width: var(--ui-components-badge-icon-size);
156
+ min-height: var(--ui-components-badge-icon-size);
157
157
  }
158
158
 
159
159
  .wrapper.variant-flat .icon.type-alarm {
@@ -208,8 +208,8 @@ const compentStyle = css`
208
208
  }
209
209
 
210
210
  .wrapper.variant-flat .icon.type-outline {
211
- width: var(--app-components-badge-icon-size-flat);
212
- height: var(--app-components-badge-icon-size-flat);
211
+ width: var(--ui-components-badge-icon-size-flat);
212
+ height: var(--ui-components-badge-icon-size-flat);
213
213
  }
214
214
 
215
215
  .wrapper.variant-flat .icon.type-outline + .number {
@@ -62,7 +62,7 @@ export declare enum CompassPriorityElement {
62
62
  * - Use `headingSetpoint` to show a target heading marker.
63
63
  * - Pass `headingAdvices` as an array of `AngleAdvice` objects for
64
64
  * caution/alert zones.
65
- * - Set `windSpeed` / `windFromDirection` and `currentSpeed` /
65
+ * - Set `currentWindSpeedKnots` / `windFromDirection` and `currentSpeed` /
66
66
  * `currentFromDirection` to display environmental indicators.
67
67
  *
68
68
  * ## Example
@@ -86,7 +86,7 @@ export declare enum CompassPriorityElement {
86
86
  * @property {number} autoAtHeadingSetpointDeadband - The deadband for the heading set point in degrees.
87
87
  * @property {boolean} touching - Indicates if the compass is being touched.
88
88
  * @property {Array<AngleAdvice>} headingAdvices - An array of angle advices for the compass.
89
- * @property {number | null} windSpeed - The wind speed in beaufort scale number.
89
+ * @property {number | null} currentWindSpeedKnots - The wind speed in knots.
90
90
  * @property {number | null} windFromDirection - The direction the wind is coming from in degrees.
91
91
  * @property {number | null} currentSpeed - The current speed, number of arrows.
92
92
  * @property {number | null} currentFromDirection - The direction the current is coming from in degrees.
@@ -114,7 +114,7 @@ export declare class ObcCompass extends LitElement {
114
114
  animateSetpoint: boolean;
115
115
  touching: boolean;
116
116
  headingAdvices: AngleAdvice[];
117
- windSpeed: number | null;
117
+ currentWindSpeedKnots: number | null;
118
118
  windFromDirection: number | null;
119
119
  currentSpeed: number | null;
120
120
  currentFromDirection: number | null;
@@ -1 +1 @@
1
- {"version":3,"file":"compass.d.ts","sourceRoot":"","sources":["../../../src/navigation-instruments/compass/compass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAY,MAAM,KAAK,CAAC;AAE1D,OAAO,mBAAmB,CAAC;AAG3B,OAAO,EAAc,WAAW,EAAiB,MAAM,oBAAoB,CAAC;AAE5E,OAAO,EACL,WAAW,EAGX,OAAO,EACP,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAI3B,OAAO,EAAC,eAAe,EAAE,QAA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AE,MAAM,CAAM;IACzB,gBAAgB,EAAE,OAAO,CAAS;IACnC,iBAAiB,EAAE,MAAM,CAAyB;IAClD,SAAS,EAAE,gBAAgB,CAC1B;IACD,KAAK,EAAE,eAAe,CAA0B;IAChD,QAAQ,EAAE,QAAQ,CAAoB;IAEhE,gBAAgB,EAAE,sBAAsB,EAAE,CAAgC;IAC1E,gDAAgD;IACrB,UAAU,EAAE,OAAO,CAAS;IACvD,0EAA0E;IAC/C,eAAe,EAAE,OAAO,CAAS;IAE5D,OAAO,CAAC,UAAU,CAGf;IAEM,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAezC,oBAAoB,IAAI,IAAI;IAOrC,OAAO,CAAC,iBAAiB,CAAkC;IAE3D;;;;;OAKG;IACH,OAAO,KAAK,sBAAsB,GAEjC;IAED,OAAO,CAAC,UAAU;IAclB,OAAO,KAAK,cAAc,GAUzB;IAED,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,WAAW;IAWV,MAAM;IA6Ef,OAAgB,MAAM,0BAwBpB;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAC;KAC3B;CACF"}
@@ -48,7 +48,7 @@ let ObcCompass = class extends LitElement {
48
48
  this.animateSetpoint = false;
49
49
  this.touching = false;
50
50
  this.headingAdvices = [];
51
- this.windSpeed = null;
51
+ this.currentWindSpeedKnots = null;
52
52
  this.windFromDirection = null;
53
53
  this.currentSpeed = null;
54
54
  this.currentFromDirection = null;
@@ -175,7 +175,7 @@ let ObcCompass = class extends LitElement {
175
175
  transform: `rotate(${this.heading}deg)`
176
176
  }
177
177
  ]}
178
- .wind=${this.windSpeed}
178
+ .windKnots=${this.currentWindSpeedKnots}
179
179
  .windFromDirectionDeg=${this.windFromDirection}
180
180
  .windColor=${this.colorFor(
181
181
  "wind"
@@ -288,7 +288,7 @@ __decorateClass([
288
288
  ], ObcCompass.prototype, "headingAdvices", 2);
289
289
  __decorateClass([
290
290
  property({ type: Number })
291
- ], ObcCompass.prototype, "windSpeed", 2);
291
+ ], ObcCompass.prototype, "currentWindSpeedKnots", 2);
292
292
  __decorateClass([
293
293
  property({ type: Number })
294
294
  ], ObcCompass.prototype, "windFromDirection", 2);