@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.22 → 2.2.0-next.23

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 (338) hide show
  1. package/custom-elements-manifest.config.mjs +2 -1
  2. package/custom-elements.json +312 -17
  3. package/llms/components/obc-accordion-card.md +141 -0
  4. package/llms/components/obc-accordion-item.md +90 -0
  5. package/llms/components/obc-advice-button.md +87 -0
  6. package/llms/components/obc-advice-floating-item.md +113 -0
  7. package/llms/components/obc-advice-menu-item.md +87 -0
  8. package/llms/components/obc-advice-message-item.md +138 -0
  9. package/llms/components/obc-alert-button-item.md +117 -0
  10. package/llms/components/obc-alert-button.md +134 -0
  11. package/llms/components/obc-alert-counter-item.md +74 -0
  12. package/llms/components/obc-alert-detail-page.md +45 -0
  13. package/llms/components/obc-alert-floating-item.md +53 -0
  14. package/llms/components/obc-alert-frame.md +142 -0
  15. package/llms/components/obc-alert-icon.md +79 -0
  16. package/llms/components/obc-alert-list-details-experimental.md +89 -0
  17. package/llms/components/obc-alert-list-details.md +38 -0
  18. package/llms/components/obc-alert-list-page-small.md +39 -0
  19. package/llms/components/obc-alert-list.md +37 -0
  20. package/llms/components/obc-alert-menu-item.md +128 -0
  21. package/llms/components/obc-alert-menu.md +115 -0
  22. package/llms/components/obc-alert-subsystem-button.md +88 -0
  23. package/llms/components/obc-alert-subsystem-counter.md +110 -0
  24. package/llms/components/obc-analog-threeway-valve.md +106 -0
  25. package/llms/components/obc-analog-valve.md +74 -0
  26. package/llms/components/obc-app-button.md +83 -0
  27. package/llms/components/obc-app-menu.md +69 -0
  28. package/llms/components/obc-area-graph.md +333 -0
  29. package/llms/components/obc-attachment-list-item.md +49 -0
  30. package/llms/components/obc-audio-output.md +59 -0
  31. package/llms/components/obc-audio-recording-item.md +91 -0
  32. package/llms/components/obc-automation-badge.md +66 -0
  33. package/llms/components/obc-automation-button-readout-stack.md +71 -0
  34. package/llms/components/obc-automation-button.md +86 -0
  35. package/llms/components/obc-automation-input-modal.md +48 -0
  36. package/llms/components/obc-automation-readout.md +32 -0
  37. package/llms/components/obc-automation-tank.md +156 -0
  38. package/llms/components/obc-azimuth-thruster-labeled.md +56 -0
  39. package/llms/components/obc-azimuth-thruster.md +80 -0
  40. package/llms/components/obc-badge-command.md +26 -0
  41. package/llms/components/obc-badge.md +151 -0
  42. package/llms/components/obc-bar-horizontal.md +123 -0
  43. package/llms/components/obc-bar-vertical.md +125 -0
  44. package/llms/components/obc-battery-icon.md +38 -0
  45. package/llms/components/obc-bearing-indicator.md +27 -0
  46. package/llms/components/obc-bipolar-transistor.md +64 -0
  47. package/llms/components/obc-breadcrumb.md +58 -0
  48. package/llms/components/obc-brilliance-menu.md +115 -0
  49. package/llms/components/obc-bus.md +64 -0
  50. package/llms/components/obc-button.md +110 -0
  51. package/llms/components/obc-calendar.md +91 -0
  52. package/llms/components/obc-capacitor.md +64 -0
  53. package/llms/components/obc-card.md +103 -0
  54. package/llms/components/obc-chart-object-vessel-button.md +103 -0
  55. package/llms/components/obc-chat-message.md +35 -0
  56. package/llms/components/obc-check-button.md +104 -0
  57. package/llms/components/obc-checkbox-item.md +95 -0
  58. package/llms/components/obc-checkbox-list.md +73 -0
  59. package/llms/components/obc-checkbox.md +97 -0
  60. package/llms/components/obc-circular-progress.md +36 -0
  61. package/llms/components/obc-clock.md +86 -0
  62. package/llms/components/obc-command-button.md +56 -0
  63. package/llms/components/obc-command-menu.md +135 -0
  64. package/llms/components/obc-communication-table.md +31 -0
  65. package/llms/components/obc-compass-flat.md +79 -0
  66. package/llms/components/obc-compass-indicator.md +61 -0
  67. package/llms/components/obc-compass-sector.md +110 -0
  68. package/llms/components/obc-compass.md +157 -0
  69. package/llms/components/obc-context-menu-input.md +191 -0
  70. package/llms/components/obc-converter.md +64 -0
  71. package/llms/components/obc-corner-line.md +29 -0
  72. package/llms/components/obc-current.md +79 -0
  73. package/llms/components/obc-damper.md +62 -0
  74. package/llms/components/obc-date-item.md +66 -0
  75. package/llms/components/obc-depth-actual.md +69 -0
  76. package/llms/components/obc-depth-indicator.md +31 -0
  77. package/llms/components/obc-depth-top-band.md +43 -0
  78. package/llms/components/obc-depth.md +94 -0
  79. package/llms/components/obc-diagnostic-button.md +71 -0
  80. package/llms/components/obc-diagnostic-menu.md +88 -0
  81. package/llms/components/obc-digital-threeway-valve.md +112 -0
  82. package/llms/components/obc-digital-valve.md +78 -0
  83. package/llms/components/obc-diodes.md +64 -0
  84. package/llms/components/obc-direction-line.md +28 -0
  85. package/llms/components/obc-divider.md +44 -0
  86. package/llms/components/obc-donut-chart.md +116 -0
  87. package/llms/components/obc-draft-trim.md +67 -0
  88. package/llms/components/obc-dropdown-button.md +99 -0
  89. package/llms/components/obc-electricity-battery.md +83 -0
  90. package/llms/components/obc-elevated-card-radio-group.md +103 -0
  91. package/llms/components/obc-elevated-card-radio.md +104 -0
  92. package/llms/components/obc-elevated-card.md +146 -0
  93. package/llms/components/obc-end-point-line.md +29 -0
  94. package/llms/components/obc-event-item.md +47 -0
  95. package/llms/components/obc-event-list.md +37 -0
  96. package/llms/components/obc-fan.md +68 -0
  97. package/llms/components/obc-filter-chip.md +91 -0
  98. package/llms/components/obc-filter.md +64 -0
  99. package/llms/components/obc-floating-item.md +125 -0
  100. package/llms/components/obc-form-container.md +45 -0
  101. package/llms/components/obc-form-footer-container.md +34 -0
  102. package/llms/components/obc-form-group.md +80 -0
  103. package/llms/components/obc-form-item.md +95 -0
  104. package/llms/components/obc-gauge-bar-indicator.md +46 -0
  105. package/llms/components/obc-gauge-generator.md +102 -0
  106. package/llms/components/obc-gauge-horizontal.md +169 -0
  107. package/llms/components/obc-gauge-motors-and-pumps.md +110 -0
  108. package/llms/components/obc-gauge-proportional.md +134 -0
  109. package/llms/components/obc-gauge-radial-indicator.md +76 -0
  110. package/llms/components/obc-gauge-radial.md +163 -0
  111. package/llms/components/obc-gauge-trend-indicator.md +53 -0
  112. package/llms/components/obc-gauge-trend.md +271 -0
  113. package/llms/components/obc-gauge-valve.md +114 -0
  114. package/llms/components/obc-gauge-vertical.md +169 -0
  115. package/llms/components/obc-gnss-skyplot.md +80 -0
  116. package/llms/components/obc-graph-mini.md +28 -0
  117. package/llms/components/obc-ground.md +64 -0
  118. package/llms/components/obc-heading-indicator.md +42 -0
  119. package/llms/components/obc-heading.md +106 -0
  120. package/llms/components/obc-heat-exchanger.md +80 -0
  121. package/llms/components/obc-heat-pump.md +79 -0
  122. package/llms/components/obc-heave-indicator.md +38 -0
  123. package/llms/components/obc-heave.md +60 -0
  124. package/llms/components/obc-horizontal-line.md +29 -0
  125. package/llms/components/obc-hydraulic-check-valve.md +36 -0
  126. package/llms/components/obc-hydraulic-separator.md +80 -0
  127. package/llms/components/obc-hydraulic-valve-4-3.md +71 -0
  128. package/llms/components/obc-hydraulic-valve-x-2.md +68 -0
  129. package/llms/components/obc-icon-button.md +117 -0
  130. package/llms/components/obc-icon-check-button.md +85 -0
  131. package/llms/components/obc-indicator-battery.md +69 -0
  132. package/llms/components/obc-indicator-engine.md +39 -0
  133. package/llms/components/obc-indicator-generator.md +59 -0
  134. package/llms/components/obc-indicator-graph.md +33 -0
  135. package/llms/components/obc-indicator-tank-atmospheric.md +69 -0
  136. package/llms/components/obc-input-chip.md +96 -0
  137. package/llms/components/obc-instrument-field.md +172 -0
  138. package/llms/components/obc-instrument-radial.md +77 -0
  139. package/llms/components/obc-integration-app-bar.md +41 -0
  140. package/llms/components/obc-integration-bar-dropdown.md +71 -0
  141. package/llms/components/obc-integration-bar.md +72 -0
  142. package/llms/components/obc-integration-button.md +62 -0
  143. package/llms/components/obc-integration-dropdown-button.md +75 -0
  144. package/llms/components/obc-integration-fleet-button.md +41 -0
  145. package/llms/components/obc-integration-tabs.md +28 -0
  146. package/llms/components/obc-integration-vessel-menu.md +58 -0
  147. package/llms/components/obc-integration-vessel-selector.md +32 -0
  148. package/llms/components/obc-keyboard-full.md +175 -0
  149. package/llms/components/obc-keyboard-numeric.md +77 -0
  150. package/llms/components/obc-line-cross.md +28 -0
  151. package/llms/components/obc-line-graph.md +164 -0
  152. package/llms/components/obc-line-overlap.md +28 -0
  153. package/llms/components/obc-logic.md +64 -0
  154. package/llms/components/obc-main-engine-indicator.md +55 -0
  155. package/llms/components/obc-main-engine.md +54 -0
  156. package/llms/components/obc-menu-button.md +158 -0
  157. package/llms/components/obc-message-menu-item.md +165 -0
  158. package/llms/components/obc-modal-window.md +139 -0
  159. package/llms/components/obc-mosfet.md +64 -0
  160. package/llms/components/obc-motor.md +73 -0
  161. package/llms/components/obc-navigation-item-group.md +82 -0
  162. package/llms/components/obc-navigation-item.md +138 -0
  163. package/llms/components/obc-navigation-menu.md +135 -0
  164. package/llms/components/obc-non-return-valve.md +79 -0
  165. package/llms/components/obc-notification-badge-button.md +87 -0
  166. package/llms/components/obc-notification-button.md +92 -0
  167. package/llms/components/obc-notification-floating-item.md +121 -0
  168. package/llms/components/obc-notification-menu-item.md +87 -0
  169. package/llms/components/obc-notification-message-item.md +127 -0
  170. package/llms/components/obc-number-input-field.md +97 -0
  171. package/llms/components/obc-pagination.md +95 -0
  172. package/llms/components/obc-pie-chart.md +120 -0
  173. package/llms/components/obc-pitch-indicator.md +39 -0
  174. package/llms/components/obc-pitch-roll-heave.md +86 -0
  175. package/llms/components/obc-pitch-roll-yaw.md +72 -0
  176. package/llms/components/obc-pitch-roll.md +63 -0
  177. package/llms/components/obc-pitch.md +81 -0
  178. package/llms/components/obc-pivot-item-group.md +79 -0
  179. package/llms/components/obc-pivot-item.md +75 -0
  180. package/llms/components/obc-poi-aton.md +68 -0
  181. package/llms/components/obc-poi-button-aton.md +54 -0
  182. package/llms/components/obc-poi-button-data.md +53 -0
  183. package/llms/components/obc-poi-button-vessel.md +55 -0
  184. package/llms/components/obc-poi-button.md +94 -0
  185. package/llms/components/obc-poi-card-header.md +90 -0
  186. package/llms/components/obc-poi-card.md +110 -0
  187. package/llms/components/obc-poi-controller.md +151 -0
  188. package/llms/components/obc-poi-data.md +72 -0
  189. package/llms/components/obc-poi-graphic-line.md +70 -0
  190. package/llms/components/obc-poi-group.md +85 -0
  191. package/llms/components/obc-poi-header.md +71 -0
  192. package/llms/components/obc-poi-layer-stack.md +85 -0
  193. package/llms/components/obc-poi-layer.md +110 -0
  194. package/llms/components/obc-poi-line.md +70 -0
  195. package/llms/components/obc-poi-object-aton.md +45 -0
  196. package/llms/components/obc-poi-object-data.md +48 -0
  197. package/llms/components/obc-poi-object-vessel.md +95 -0
  198. package/llms/components/obc-poi-object.md +82 -0
  199. package/llms/components/obc-poi-pointer.md +70 -0
  200. package/llms/components/obc-poi-selection-frame.md +66 -0
  201. package/llms/components/obc-poi-vessel.md +70 -0
  202. package/llms/components/obc-poi.md +140 -0
  203. package/llms/components/obc-polar-chart.md +126 -0
  204. package/llms/components/obc-position-deviation.md +84 -0
  205. package/llms/components/obc-pressure-reduction-valve.md +88 -0
  206. package/llms/components/obc-pressure-sustain-valve.md +85 -0
  207. package/llms/components/obc-progress-bar.md +102 -0
  208. package/llms/components/obc-progress-button.md +111 -0
  209. package/llms/components/obc-progress-indicator-dots.md +57 -0
  210. package/llms/components/obc-propulsion-azimuth-indicator.md +48 -0
  211. package/llms/components/obc-pump.md +76 -0
  212. package/llms/components/obc-radial-bar-chart.md +103 -0
  213. package/llms/components/obc-radio.md +82 -0
  214. package/llms/components/obc-rate-of-turn.md +95 -0
  215. package/llms/components/obc-readout-block.md +137 -0
  216. package/llms/components/obc-readout-list-item.md +142 -0
  217. package/llms/components/obc-readout-list.md +85 -0
  218. package/llms/components/obc-readout.md +169 -0
  219. package/llms/components/obc-resistor.md +64 -0
  220. package/llms/components/obc-rich-button.md +92 -0
  221. package/llms/components/obc-roll-indicator.md +38 -0
  222. package/llms/components/obc-roll.md +56 -0
  223. package/llms/components/obc-rot-indicator.md +32 -0
  224. package/llms/components/obc-rot-linear.md +68 -0
  225. package/llms/components/obc-rot-sector.md +125 -0
  226. package/llms/components/obc-router.md +64 -0
  227. package/llms/components/obc-rudder-indicator.md +54 -0
  228. package/llms/components/obc-rudder.md +112 -0
  229. package/llms/components/obc-ruler-pointer.md +57 -0
  230. package/llms/components/obc-scrollbar.md +57 -0
  231. package/llms/components/obc-sequence-card.md +119 -0
  232. package/llms/components/obc-sequence-connector.md +70 -0
  233. package/llms/components/obc-sequence-item.md +64 -0
  234. package/llms/components/obc-sequence-loading-spinner.md +70 -0
  235. package/llms/components/obc-sequence-modal.md +89 -0
  236. package/llms/components/obc-sequence-step.md +48 -0
  237. package/llms/components/obc-sequence-toolbar.md +108 -0
  238. package/llms/components/obc-slide-button.md +111 -0
  239. package/llms/components/obc-slider-double.md +137 -0
  240. package/llms/components/obc-slider.md +143 -0
  241. package/llms/components/obc-source.md +64 -0
  242. package/llms/components/obc-speed-arrows.md +39 -0
  243. package/llms/components/obc-speed-directions.md +66 -0
  244. package/llms/components/obc-speed-gauge.md +124 -0
  245. package/llms/components/obc-speed-indicator.md +37 -0
  246. package/llms/components/obc-split-button.md +144 -0
  247. package/llms/components/obc-start-stop-switch.md +126 -0
  248. package/llms/components/obc-status-indicator.md +30 -0
  249. package/llms/components/obc-stepper-box.md +90 -0
  250. package/llms/components/obc-surge-sway-yaw.md +95 -0
  251. package/llms/components/obc-switch.md +69 -0
  252. package/llms/components/obc-system-button.md +112 -0
  253. package/llms/components/obc-system-menu.md +67 -0
  254. package/llms/components/obc-tab-item.md +161 -0
  255. package/llms/components/obc-tab-row.md +151 -0
  256. package/llms/components/obc-tabbed-card.md +148 -0
  257. package/llms/components/obc-table-header-item.md +42 -0
  258. package/llms/components/obc-table.md +124 -0
  259. package/llms/components/obc-tag.md +41 -0
  260. package/llms/components/obc-text-input-field.md +94 -0
  261. package/llms/components/obc-textarea-field.md +186 -0
  262. package/llms/components/obc-textbox.md +80 -0
  263. package/llms/components/obc-three-way-line.md +29 -0
  264. package/llms/components/obc-thruster.md +64 -0
  265. package/llms/components/obc-title-container.md +81 -0
  266. package/llms/components/obc-toggle-button-group.md +184 -0
  267. package/llms/components/obc-toggle-button-option.md +126 -0
  268. package/llms/components/obc-toggle-button-three-state.md +38 -0
  269. package/llms/components/obc-toggle-button-vertical-group.md +142 -0
  270. package/llms/components/obc-toggle-button-vertical-option.md +110 -0
  271. package/llms/components/obc-toggle-switch.md +126 -0
  272. package/llms/components/obc-toggletip.md +135 -0
  273. package/llms/components/obc-tooltip.md +106 -0
  274. package/llms/components/obc-top-bar.md +194 -0
  275. package/llms/components/obc-top-view-propulsion.md +84 -0
  276. package/llms/components/obc-topbar-message-item.md +150 -0
  277. package/llms/components/obc-transformer.md +64 -0
  278. package/llms/components/obc-transmitter-button.md +101 -0
  279. package/llms/components/obc-transmitter-stack.md +79 -0
  280. package/llms/components/obc-transmitter.md +114 -0
  281. package/llms/components/obc-tree-navigation-group.md +69 -0
  282. package/llms/components/obc-tree-navigation-item.md +110 -0
  283. package/llms/components/obc-tree-navigation.md +73 -0
  284. package/llms/components/obc-tunnel-thruster.md +59 -0
  285. package/llms/components/obc-user-button.md +107 -0
  286. package/llms/components/obc-user-menu.md +154 -0
  287. package/llms/components/obc-valve-analog-three-way-icon.md +69 -0
  288. package/llms/components/obc-valve-analog-two-way-icon.md +39 -0
  289. package/llms/components/obc-velocity-projection-plot.md +34 -0
  290. package/llms/components/obc-vendor-button.md +63 -0
  291. package/llms/components/obc-vertical-line.md +33 -0
  292. package/llms/components/obc-watch-flat.md +54 -0
  293. package/llms/components/obc-watch.md +206 -0
  294. package/llms/components/obc-wind-indicator.md +52 -0
  295. package/llms/components/obc-wind-propulsion.md +92 -0
  296. package/llms/components/obc-wind.md +46 -0
  297. package/llms/docs/ar-poi-projection.md +36 -0
  298. package/llms/docs/automation-sequence-step-diagram-playground.md +13 -0
  299. package/llms/docs/building-blocks-advice.md +31 -0
  300. package/llms/docs/building-blocks-external-scale.md +138 -0
  301. package/llms/docs/building-blocks-setpoint.md +119 -0
  302. package/llms/docs/introduction-advice-system.md +161 -0
  303. package/llms/docs/introduction-getting-started.md +94 -0
  304. package/llms/docs/introduction-introduction.md +27 -0
  305. package/llms/docs/introduction-join-the-project.md +11 -0
  306. package/llms/docs/introduction-migration-guide-2-0-to-2-1.md +126 -0
  307. package/llms/docs/introduction-migration-guide-2-1-to-2-2.md +106 -0
  308. package/llms/docs/introduction-migration-guide.md +1063 -0
  309. package/llms/docs/palettes-categorical-colour.md +9 -0
  310. package/llms/llms-full.txt +28380 -0
  311. package/llms/llms.txt +368 -0
  312. package/package.json +12 -2
  313. package/script/cem-plugins/lifecycle.d.mts +6 -0
  314. package/script/cem-plugins/lifecycle.mjs +48 -0
  315. package/script/cem-plugins.test.ts +52 -1
  316. package/script/generate-llms-txt.ts +34 -0
  317. package/script/llms/channel.test.ts +69 -0
  318. package/script/llms/channel.ts +63 -0
  319. package/script/llms/generate.test.ts +143 -0
  320. package/script/llms/generate.ts +229 -0
  321. package/script/llms/manifest.test.ts +160 -0
  322. package/script/llms/manifest.ts +109 -0
  323. package/script/llms/markdown.test.ts +22 -0
  324. package/script/llms/markdown.ts +37 -0
  325. package/script/llms/mdx.test.ts +172 -0
  326. package/script/llms/mdx.ts +171 -0
  327. package/script/llms/render-component.test.ts +290 -0
  328. package/script/llms/render-component.ts +208 -0
  329. package/script/llms/render-guides.test.ts +105 -0
  330. package/script/llms/render-guides.ts +51 -0
  331. package/script/llms/render-llms-txt.test.ts +222 -0
  332. package/script/llms/render-llms-txt.ts +185 -0
  333. package/script/llms/sources.test.ts +118 -0
  334. package/script/llms/sources.ts +89 -0
  335. package/script/llms/stories.test.ts +193 -0
  336. package/script/llms/stories.ts +256 -0
  337. package/script/llms/types.ts +95 -0
  338. package/script/prepare-full-bundle.ts +1 -0
@@ -0,0 +1,34 @@
1
+ # `<obc-velocity-projection-plot>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-velocity-projection--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/velocity-projection-plot/velocity-projection-plot.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | dataPoints | | `VelocityProjectionDatapoint[]` | `[]` | |
12
+ | currentWindFromDirection | currentWindFromDirection | `number \| null` | `null` | |
13
+ | currentWindSpeedKnots | currentWindSpeedKnots | `number \| null` | `null` | |
14
+ | currentFromDirection | currentFromDirection | `number \| null` | `null` | |
15
+ | currentSpeedKnots | currentSpeedKnots | `number \| null` | `null` | |
16
+ | vesselImage | vesselImage | `VesselImage` | | |
17
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). |
18
+
19
+ ## Events
20
+
21
+ None.
22
+
23
+ ## Slots
24
+
25
+ None.
26
+
27
+ ## Stories
28
+
29
+ - [Average](https://openbridge-next-storybook.web.app/?path=/story/instruments-velocity-projection--average)
30
+ - [Instantaneous](https://openbridge-next-storybook.web.app/?path=/story/instruments-velocity-projection--instantaneous)
31
+
32
+ ## See also
33
+
34
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,63 @@
1
+ # `<obc-vendor-button>`
2
+
3
+ A button component that displays a vendor or company logo as its content.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ui-components-buttons-vendor-button--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/components/vendor-button/vendor-button.ts)
6
+
7
+ `<obc-vendor-button>` – A button component that displays a vendor or company logo as its content.
8
+
9
+ This component renders a clickable button containing an image, typically used to represent a third-party vendor, partner, or authentication provider (such as "Sign in with Vendor" buttons). The button is designed to visually highlight a brand or logo in a compact, interactive format.
10
+
11
+ ## Features
12
+ - **Image-based button:** Displays a logo or brand image as the main content of the button.
13
+ - **Customizable image source:** Accepts any image URL via the `imageSrc` property.
14
+ - **Accessible labeling:** The `alt` property provides alternative text for screen readers.
15
+ - **Full-width layout:** The button stretches to fill its container's width by default.
16
+
17
+ ## Usage Guidelines
18
+ Use `obc-vendor-button` when you need a button that represents a vendor, brand, or external service through its logo. Common scenarios include authentication flows (e.g., "Sign in with Google"), partner selection, or highlighting external integrations. Avoid using this component for generic actions or when a text label is required—use a standard button component instead.
19
+
20
+ **TODO(designer):** Confirm if there are recommended minimum/maximum image dimensions, or if there are style guidelines for logo backgrounds (e.g., transparency, padding).
21
+
22
+ ## Slots and Content Structure
23
+ This component does not use slots. The image is provided via the `imageSrc` property.
24
+
25
+ ## Properties and Attributes
26
+ - `imageSrc` (string): URL of the image to display as the button's content.
27
+ - `alt` (string): Alternative text for the image, used for accessibility (default: "logo").
28
+
29
+ ## Best Practices and Constraints
30
+ - Ensure the provided image is optimized for display at various sizes and maintains legibility.
31
+ - Use meaningful `alt` text to describe the logo or vendor for accessibility.
32
+ - Do not use this component for actions that require a text label or icon—use a standard button instead.
33
+
34
+ ## Example:
35
+ ```html
36
+ <obc-vendor-button
37
+ imageSrc="https://openbridge-demo.web.app/companylogo-day.png"
38
+ alt="Acme Corp"
39
+ ></obc-vendor-button>
40
+ ```
41
+
42
+ ## Properties
43
+
44
+ | Property | Attribute | Type | Default | Description |
45
+ | --- | --- | --- | --- | --- |
46
+ | imageSrc | imageSrc | `string` | `''` | The URL of the image to display as the button's content. Typically this should be a logo or brand image representing a vendor or external service. |
47
+ | alt | alt | `string` | `'logo'` | Alternative text for the image, used for accessibility. This should describe the logo or vendor for screen readers. |
48
+
49
+ ## Events
50
+
51
+ | Event | Type | Description |
52
+ | --- | --- | --- |
53
+ | click | | Fired when the button is clicked. |
54
+
55
+ ## Slots
56
+
57
+ | Slot | Description |
58
+ | --- | --- |
59
+ | (default) | (none; content is provided via properties) |
60
+
61
+ ## Stories
62
+
63
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/ui-components-buttons-vendor-button--primary)
@@ -0,0 +1,33 @@
1
+ # `<obc-vertical-line>`
2
+
3
+ Vertical line component
4
+
5
+ Lifecycle: deprecated. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-line-vertical-line--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/vertical-line/vertical-line.ts)
6
+
7
+ Vertical line component
8
+
9
+ The vertical line is 24px * length + 1px. +1 px to make sure that connecting lines are overlapping, to hide the gap between them.
10
+
11
+ ## Properties
12
+
13
+ | Property | Attribute | Type | Default | Description |
14
+ | --- | --- | --- | --- | --- |
15
+ | medium | medium | `LineMedium` | | |
16
+ | lineType | lineType | `LineType` | | |
17
+ | length | length | `number` | `1` | |
18
+
19
+ ## Events
20
+
21
+ None.
22
+
23
+ ## Slots
24
+
25
+ None.
26
+
27
+ ## Stories
28
+
29
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/automation-line-vertical-line--primary)
30
+
31
+ ## See also
32
+
33
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,54 @@
1
+ # `<obc-watch-flat>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/building-blocks-watch-flat--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/watch-flat/watch-flat.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | width | width | `number` | `352` | |
12
+ | height | height | `number` | `72` | |
13
+ | padding | padding | `number` | `0` | |
14
+ | rotation | rotation | `number` | `0` | |
15
+ | tickmarkSpacing | tickmarkSpacing | `number` | `0` | |
16
+ | angleSetpoint | angleSetpoint | `number \| undefined` | | |
17
+ | tickmarks | | `Tickmark[]` | `[]` | |
18
+ | labels | | `Label[]` | `[]` | |
19
+ | FOVIndicator | | `SVGTemplateResult[]` | `[]` | |
20
+ | trackHeight | trackHeight | | | |
21
+ | ticksHeight | ticksHeight | | | |
22
+ | borderRadius | borderRadius | `number` | `8` | |
23
+ | bottomBar | bottomBar | `boolean` | `false` | |
24
+ | barAreas | | `WatchFlatBarArea[]` | `[]` | Filled segments rendered inside the track band (the linear counterpart of the radial bar areas). |
25
+ | needles | | `WatchFlatNeedle[]` | `[]` | Needle markers spanning the track band (the linear counterpart of the radial needles). |
26
+ | rotType | rotType | `RotType \| undefined` | | |
27
+ | rotPosition | rotPosition | `LinearRotPosition` | | Available when `rotType!=undefined`. |
28
+ | rotStartX | rotStartX | `number` | `0` | Bar start position in SVG user-space x-coordinates (center-origin). Computed by the parent instrument. Available when `rotType!=undefined`. |
29
+ | rotEndX | rotEndX | `number` | `0` | Bar end position in SVG user-space x-coordinates (center-origin). Computed by the parent instrument. Available when `rotType!=undefined`. |
30
+ | rotDotSpacing | rotDotSpacing | `number` | `0` | Pixel spacing between adjacent dots in the linear ROT strip. Must be > 0 to enable animation; the default `0` intentionally disables the spinning dots so the parent instrument must supply a meaningful value derived from the current scale (e.g. `LINEAR_DOT_ANGLE_SPACING * translationScale`). Available when `rotType!=undefined`. |
31
+ | rotPriority | rotPriority | `Priority` | | Available when `rotType!=undefined`. |
32
+ | rotPortStarboard | rotPortStarboard | `boolean` | `false` | Available when `rotType!=undefined`. |
33
+ | rotAtZeroDeadband | rotAtZeroDeadband | `number` | `ROT_ZERO_DEADBAND_PX` | Available when `rotType==bar`. |
34
+ | rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Available when `rotType!=undefined`. |
35
+ | rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Available when `rotType!=undefined`. |
36
+ | rotationsPerMinute | rotationsPerMinute | | | |
37
+
38
+ ## Events
39
+
40
+ None.
41
+
42
+ ## Slots
43
+
44
+ None.
45
+
46
+ ## Stories
47
+
48
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch-flat--primary)
49
+ - [With Bottom Bar](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch-flat--with-bottom-bar)
50
+
51
+ ## See also
52
+
53
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
54
+ - [Migration Guide 2.0 to 2.1](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide-2-0-to-2-1.md)
@@ -0,0 +1,206 @@
1
+ # `<obc-watch>`
2
+
3
+ Core SVG renderer for circular/radial watch-based instruments.
4
+
5
+ Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/building-blocks-watch--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/watch/watch.ts)
6
+
7
+ `<obc-watch>` - Core SVG renderer for circular/radial watch-based instruments.
8
+
9
+ This component renders all circular instrument elements including rings, tickmarks,
10
+ bar areas, needles, advices, setpoints, vessel images, and environmental indicators
11
+ (wind/current). It serves as the foundation for compass, heading, rudder, speed-gauge,
12
+ and other radial navigation instruments.
13
+
14
+ ## Setpoint Behavior
15
+
16
+ The setpoint marker visual state is derived from the combination of `atAngleSetpoint`,
17
+ `angleSetpoint`, and `angleSetpointAtZeroDeadband` properties:
18
+
19
+ - **notEqual**: Value differs from setpoint (triangular marker, offset outward)
20
+ - **equal**: Value matches setpoint (line marker, sits on ring)
21
+ - **equalZero**: Value matches setpoint at zero angle (double-line marker, offset outward)
22
+ - **focus**: User is actively adjusting via `newAngleSetpoint` - shows focus visual state
23
+
24
+ ## newAngleSetpoint Pattern
25
+
26
+ When `newAngleSetpoint` is defined, TWO setpoint markers are rendered:
27
+ 1. Original marker at `angleSetpoint` - dimmed (0.75 opacity)
28
+ 2. New marker at `newAngleSetpoint` - focus visual state, full opacity
29
+
30
+ This enables the "adjustment preview" UX where users can see both the current
31
+ and proposed setpoint positions simultaneously.
32
+
33
+ The `RADIAL_SETPOINT_INWARD_ADJUST` constant (4px) fine-tunes radial setpoint positioning
34
+ to match Figma designs, applied on top of visual state offsets from setpoint.ts.
35
+
36
+ The `colorMode` property allows overriding the derived color mode (enhanced for enhanced priority,
37
+ regular for other states).
38
+
39
+ ## Setpoint Animation (`animateSetpoint`)
40
+
41
+ When `animateSetpoint` is true and a confirm occurs (`newAngleSetpoint` → `undefined`):
42
+ - The original setpoint slides to the new position via CSS transition
43
+ - The departing new-setpoint marker fades out
44
+ - Angular transitions always take the shortest path via accumulated
45
+ CSS-safe angles (`cssSafeAngle()`), so even 350° → 10° animates +20°
46
+
47
+ Duration: `var(--setpoint-animation-duration, 300ms)`
48
+
49
+ Internally, `_departingNewAngleSetpoint` captures the departing angle during confirm
50
+ fade-out and `_animationTimer` auto-clears it after the animation duration.
51
+ `_setpointCssAngle` tracks the accumulated CSS angle to avoid long-way-around
52
+ transitions across the 0°/360° boundary.
53
+
54
+ ## `<obc-watch>` - Core SVG renderer for circular/radial watch-based instruments
55
+
56
+ This component renders all circular instrument elements including rings, tickmarks, bar areas, needles, advices, setpoints, vessel images, and environmental indicators (wind/current). It serves as the foundation for compass, heading, rudder, speed-gauge, and other radial navigation instruments.
57
+
58
+ ### Setpoint Behavior
59
+
60
+ The setpoint marker visual state is derived from the combination of `atAngleSetpoint`, `atAngleSetpointZero`, and `focused` properties:
61
+
62
+ - **notEqual**: Value differs from setpoint (triangular marker, offset outward)
63
+ - **equal**: Value matches setpoint (line marker, sits on ring)
64
+ - **equalZero**: Value matches setpoint at zero angle (double-line marker, offset outward)
65
+ - **focus**: User is actively adjusting (e.g., dragging) - shows focus visual state
66
+
67
+ The `RADIAL_SETPOINT_INWARD_ADJUST` constant (4px) fine-tunes radial setpoint positioning to match Figma designs, applied on top of visual state offsets from setpoint.ts.
68
+
69
+ The `setpointOverride` property allows overriding the derived disabled state so the setpoint marker derives its color from `priority` even in loading/off instrument states.
70
+
71
+ ### Properties
72
+
73
+ | Property | Type | Description |
74
+ |----------|------|-------------|
75
+ | `state` | `InstrumentState` | Instrument state (active, loading, off) |
76
+ | `angleSetpoint` | `number \| undefined` | Setpoint angle in degrees (0° = 12 o'clock) |
77
+ | `atAngleSetpoint` | `boolean` | Whether value matches setpoint (within deadband) |
78
+ | `atAngleSetpointZero` | `boolean` | Whether setpoint is at zero angle |
79
+ | `focused` | `boolean` | Whether user is actively adjusting the setpoint |
80
+ | `setpointOverride` | `boolean` | When true, derive setpoint color from priority even in loading/off states |
81
+
82
+ ### Usage
83
+
84
+ This component is typically not used directly. Instead, use the higher-level wrapper components:
85
+ - `obc-compass` - Full compass with HDG/COG arrows, ROT, vessel, wind/current
86
+ - `obc-heading` - Simplified compass with HDG/COG arrows only
87
+ - `obc-rudder` - Half-circle rudder indicator
88
+ - `obc-speed-gauge` - Speed arc with needle
89
+ - `obc-azimuth-thruster` - Thruster with angle setpoint and thrust bar
90
+ - `obc-instrument-radial` - Generic building block for radial gauges
91
+
92
+ Source of truth: `packages/openbridge-webcomponents/src/navigation-instruments/watch/watch.ts`
93
+
94
+ ## Properties
95
+
96
+ | Property | Attribute | Type | Default | Description |
97
+ | --- | --- | --- | --- | --- |
98
+ | state | state | `InstrumentState` | | Instrument state (active, loading, off) |
99
+ | priority | priority | `Priority` | | Color priority (enhanced = blue palette, regular = gray palette) |
100
+ | watchCircleType | watchCircleType | `WatchCircleType` | | |
101
+ | hasBackgroundCircle | hasBackgroundCircle | `boolean` | `false` | When `true`, the full watch-face circle is drawn behind the dial — a frame-primary fill with a tertiary outline — so partial-sector instruments still read as a complete circle. In the `off` state the fill is omitted (only the outline remains), keeping the off skeleton hollow. With sector `areas`, the per-area arch outline is dropped; the face outline takes its place. |
102
+ | northArrow | northArrow | `boolean` | `false` | |
103
+ | northArrowInside | northArrowInside | `boolean \| undefined` | | |
104
+ | northMarker | northMarker | `boolean` | `false` | Replace the north arrow with the compact heading-up north marker: a small triangle on the outer ring with an upright "N" at the outside label radius. Rotates with the card via `rotation`. Available when `northArrow==true`. |
105
+ | angleSetpoint | angleSetpoint | `number \| undefined` | | Setpoint angle in degrees (0° = 12 o'clock) |
106
+ | newAngleSetpoint | newAngleSetpoint | `number \| undefined` | | New setpoint being adjusted (focus mode) |
107
+ | atAngleSetpoint | atAngleSetpoint | `boolean` | `false` | Whether value matches setpoint (within deadband) |
108
+ | angleSetpointAtZeroDeadband | angleSetpointAtZeroDeadband | `number` | `0.5` | Deadband for zero detection (default 0.5°) |
109
+ | setpointOverride | setpointOverride | `boolean` | `false` | Override to derive setpoint color from priority regardless of state |
110
+ | touching | touching | `boolean` | `false` | |
111
+ | animateSetpoint | animateSetpoint | `boolean` | `false` | |
112
+ | padding | padding | `number \| undefined` | | Explicit padding override in SVG units: the un-zoomed viewBox becomes exactly `(176 + padding) * 2`. Setting it disables the automatic width-aware label reserve (issue #1021) — the caller owns label room. |
113
+ | faceDiameter | face-diameter | `number \| undefined` | | Outer-ring diameter in CSS pixels. When set, the instrument renders at a fixed intrinsic size derived from the ring, arc shape and label reserve — so instruments sharing the same value have identical ring circumference regardless of label width or arc extent (like obc-donut-chart's fixedHeight). When unset (default), the instrument fills its container. |
114
+ | areas | | `WatchArea[]` | `[]` | |
115
+ | barAreas | | `WatchBarArea[]` | `[]` | |
116
+ | roundBandCuts | roundBandCuts | `boolean` | `false` | Rounds the band track's sector end cuts at the band's own radii and clips bars to that rounded track shape (the design's track-mask model), instead of the joint silhouette cut shared with the scale ring. No effect without `areas`. |
117
+ | splitBand | splitBand | `boolean` | `false` | With `watchCircleType: double`, render the band as the split primary/secondary lane tracks (secondary-lane geometry) instead of the joint band; bars clip to the primary lane. Takes precedence over `roundBandCuts` for the band. |
118
+ | needles | | `WatchNeedle[]` | `[]` | |
119
+ | tickmarks | | `Tickmark[]` | `[]` | |
120
+ | tickmarksInside | tickmarksInside | `boolean` | `false` | |
121
+ | tickmarkStyle | tickmarkStyle | `TickmarkStyle` | | |
122
+ | advices | | `AdviceInput[]` | `[]` | Advice bands and points on the ring, already resolved by the instrument: `min` / `max` (or `value`) in degrees, `category`, `state`, the tick-hide flags and `showArea` for the wedge inside the face. The earlier `minAngle` / `maxAngle`, `type` and `hinted` names are still read. |
123
+ | crosshairEnabled | crosshairEnabled | `boolean` | `false` | |
124
+ | crosshairCenterCutout | crosshairCenterCutout | `boolean` | `false` | Cuts the crosshair out inside the inner ring, so center content (e.g. center readouts) sits on a clean face. Available when `crosshairEnabled==true`. |
125
+ | showLabels | showLabels | `boolean` | `false` | |
126
+ | insideLabelsFlush | insideLabelsFlush | `boolean` | `false` | With `tickmarksInside`, anchor the NSEW label boxes flush against the inner ring (px-fixed) instead of the legacy gap that lets them drift toward the centre as the instrument shrinks. Available when `tickmarksInside==true`. |
127
+ | vessels | | `WatchVessel[]` | `[]` | |
128
+ | windKnots | windKnots | `number \| null` | `null` | |
129
+ | windFromDirectionDeg | windFromDirectionDeg | `number \| null` | `null` | |
130
+ | windSymbolRadius | windSymbolRadius | `number \| null` | `null` | |
131
+ | windColor | windColor | `string \| undefined` | | |
132
+ | current | current | `number \| null` | `null` | |
133
+ | currentFromDirectionDeg | currentFromDirectionDeg | `number \| null` | `null` | |
134
+ | currentSymbolRadius | currentSymbolRadius | `number \| null` | `null` | |
135
+ | currentColor | currentColor | `string \| undefined` | | |
136
+ | currentIconCentered | currentIconCentered | `boolean` | `false` | Render the current icon centered on the face (direction-type layout) instead of at `currentSymbolRadius` on the periphery. Available when `current!=null && currentFromDirectionDeg!=null`. |
137
+ | scaleCurrentIcon | scaleCurrentIcon | `number` | `1` | Scale factor for the centered current icon. Available when `currentIconCentered==true`. |
138
+ | starboardPortIndicator | starboardPortIndicator | `boolean` | `false` | |
139
+ | clipTop | clipTop | `number` | `0` | Top clip, % of height. Ignored when `zoomToFitArc` is true. |
140
+ | clipBottom | clipBottom | `number` | `0` | Bottom clip, % of height. Ignored when `zoomToFitArc` is true. |
141
+ | clipLeft | clipLeft | `number` | `0` | Left clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`. |
142
+ | clipRight | clipRight | `number` | `0` | Right clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`. |
143
+ | endLabelsMaxMin | endLabelsMaxMin | `boolean` | `false` | Place the horizontal end labels (±90°, e.g. min/max) below the tick instead of beside it. This is the "Max-min" label placement from the radial label model (External / Internal / Max-min) — see PR #903 / design discussion. Currently only used by the 180° sector of `obc-gauge-radial`. |
144
+ | scaleWindIcon | scaleWindIcon | `number` | `1` | |
145
+ | rotation | rotation | `number \| undefined` | | |
146
+ | zoomToFitArc | zoomToFitArc | `boolean` | `false` | |
147
+ | arcFrame | | `ZoomToFitArcFrame \| undefined` | | Pre-computed zoom-to-fit arc frame. When set, the watch skips its own `computeZoomToFitArcFrame()` call and uses these values directly. Consumer instruments (e.g. rudder, instrument-radial) should compute the frame once and pass it here to avoid redundant computation. If you pass `arcFrame`, you own keeping it in sync with `areas` / `watchCircleType` — obc-watch will NOT recompute it, so a stale frame renders stale geometry. |
148
+ | tickFadeAngle | tickFadeAngle | `number` | `0` | |
149
+ | rotType | rotType | `RotType \| undefined` | | ROT visualization type: `'dots'` (spinning dots) or `'bar'` (arc bar with clipped dots). Undefined hides the ROT layer. |
150
+ | rotPosition | rotPosition | `RotPosition` | | Track on which ROT elements are placed: `'scale'` (on the outer ring) or `'innerCircle'` (default, inside the inner ring) |
151
+ | rotStartAngle | rotStartAngle | `number` | `0` | Start angle of the ROT bar arc in degrees (0° = 12 o'clock, clockwise). Only used when `rotType` is `'bar'`. |
152
+ | rotEndAngle | rotEndAngle | `number` | `0` | End angle of the ROT bar arc in degrees. The bar is hidden when the difference from `rotStartAngle` is less than 0.1°. |
153
+ | rotPriority | rotPriority | `Priority \| undefined` | | Override priority for ROT color derivation. When set, ROT colors use this instead of the main `priority`. Useful when the ROT element has independent priority (e.g. compass per-element priority). |
154
+ | rotPortStarboard | rotPortStarboard | `boolean` | `false` | |
155
+ | rotAtZeroDeadband | rotAtZeroDeadband | `number` | `ROT_ZERO_DEADBAND_DEG` | |
156
+ | rateOfTurnDegreesPerMinute | rateOfTurnDegreesPerMinute | `number \| undefined` | | Measured rate of turn in degrees per minute (the maritime/AIS convention, see ES-TRIN 2025/1 Art. 3.02 and ITU-R M.1371). Sign controls direction (positive = starboard/clockwise). When defined, this drives both the dot animation (multiplied by `rotDotAnimationFactor`) and the port/starboard direction sign. |
157
+ | rotDotAnimationFactor | rotDotAnimationFactor | `number` | `18` | Visual amplification factor applied only to the spinning-dot animation (not to bar extent). Default `18` keeps the legacy visual feel (≈1 rpm at 20°/min). |
158
+ | rotationsPerMinute | rotationsPerMinute | | | Legacy spin speed of the ROT dot ring, in rotations per minute (sign controls direction; positive = clockwise). |
159
+
160
+ ## Events
161
+
162
+ None.
163
+
164
+ ## Slots
165
+
166
+ None.
167
+
168
+ ## Stories
169
+
170
+ - [In Command](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--in-command)
171
+ - [Not In Command](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--not-in-command)
172
+ - [With Vessel Image](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--with-vessel-image)
173
+ - [With Custom Vessel Image](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--with-custom-vessel-image)
174
+ - [With Bar Areas](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--with-bar-areas)
175
+ - [With Starboard Port Indicator](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--with-starboard-port-indicator)
176
+ - [With Wind](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--with-wind)
177
+ - [Cut Rounded](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--cut-rounded)
178
+ - [Cut](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--cut)
179
+ - [Advice](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--advice)
180
+ - [Advice Categories](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--advice-categories)
181
+ - [Advice States](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--advice-states)
182
+ - [Advice Point And Area](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--advice-point-and-area)
183
+ - [Advice Chained](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--advice-chained)
184
+ - [Tickmarks](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tickmarks)
185
+ - [Tickmarks Inside](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tickmarks-inside)
186
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--off)
187
+ - [Tripple](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tripple)
188
+ - [Cut Triple Watch](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--cut-triple-watch)
189
+ - [Multi Cut](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--multi-cut)
190
+ - [Tickmarks Test](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tickmarks-test)
191
+ - [Tickmarks Inside Test](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tickmarks-inside-test)
192
+ - [Tickmarks Test Rotation](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tickmarks-test-rotation)
193
+ - [Tickmarks Test Inside Rotation](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--tickmarks-test-inside-rotation)
194
+ - [Counter Scale After Resize](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--counter-scale-after-resize): Regression test for label counter-scaling after a container resize: the wrapper starts at 400px and `play` shrinks it to 240px BEFORE the snapshot. The standalone watch host renders inline (no box), so its ResizeObserver only fires via the internal `<svg>` (`observeInnerBox`) — if that observation is lost, `--scale` stays at the 400px value and the labels shrink with the box (~7px on screen) instead of holding ~12px.
195
+ - [Sizing Playground — FaceDiameter + Resizable (Manual)](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--sizing-playground): Interactive sizing playground for the core renderer: drag the dashed box's bottom-right corner to resize it. The first watch (2-digit tick labels) is pinned to a fixed intrinsic size by the `faceDiameter` control, while the 4-digit watch and the 180° arc adapt to the remaining flex space, reserving label room adaptively (and hiding labels past the reserve cap in `svghelpers/radial-frame.ts`, issue #1021). Enable `lockFaceDiameter` to pin all three to the same circumference. Related: *Sizing Playground* stories under Building Blocks/Instrument Radial and Instruments/Gauge Radial.
196
+ - [State Comparison](https://openbridge-next-storybook.web.app/?path=/story/building-blocks-watch--state-comparison): Side-by-side comparison of setpoint visual states for radial instruments.
197
+
198
+ This story demonstrates the same state grid as bar-vertical/horizontal and
199
+ gauge-vertical/horizontal components, but for radial (watch-based) instruments.
200
+
201
+ ## See also
202
+
203
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
204
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
205
+ - [Building Blocks/Advice](https://openbridge-next-storybook.web.app/docs/building-blocks-advice.md)
206
+ - [Building Blocks/Setpoint](https://openbridge-next-storybook.web.app/docs/building-blocks-setpoint.md)
@@ -0,0 +1,52 @@
1
+ # `<obc-wind-indicator>`
2
+
3
+ A compact wind indicator with a fixed frame and a rotating wind marker.
4
+
5
+ Lifecycle: stable. [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/wind-indicator/wind-indicator.ts)
6
+
7
+ `<obc-wind-indicator>` – A compact wind indicator with a fixed frame and a rotating wind marker.
8
+
9
+ Visualizes a wind speed in knots using a compact wind-barb icon plus
10
+ optional mode layers.
11
+
12
+ ## Features
13
+
14
+ - **Variants:** `type` (`arrow` | `shaft` | `labeled`), `direction` (`true` | `relative`), `priority` (`regular` | `enhanced`).
15
+ - **Speed input:** `currentWindSpeedKnots` is the wind speed in knots.
16
+ The barb icon follows the standard meteorological wind-barb
17
+ convention. The icon's knots value is the nearest available bucket
18
+ in the Figma `wind-true` / `wind-shaft` icon set (5-kn granularity,
19
+ with sub-buckets for calm and shaft-only conditions); values beyond
20
+ the heaviest authored bucket snap to that bucket.
21
+
22
+ ## Usage Guidelines
23
+
24
+ Use when you need a small wind cue next to other compact indicators.
25
+ Pass the wind speed in knots through `currentWindSpeedKnots`, matching
26
+ the convention used by `<obc-wind>`, `<obc-wind-propulsion>` and
27
+ `<obc-compass>`.
28
+
29
+ ## Properties
30
+
31
+ | Property | Attribute | Type | Default | Description |
32
+ | --- | --- | --- | --- | --- |
33
+ | type | type | `WindIndicatorType` | | |
34
+ | direction | direction | `WindIndicatorDirection` | | |
35
+ | priority | priority | `WindIndicatorPriority` | | |
36
+ | currentWindSpeedKnots | current-wind-speed-knots | `number` | `0` | Wind speed in knots, snapped to the nearest authored bucket of the wind-barb icon set — `<obi-wind-true-N>` for the arrow and labeled variants, the finer `<obi-wind-shaft-N>` family for the shaft variant. Calm (`0`) and shaft-only (`1`) cover the lowest two ranges and 5-knot steps follow up to the heaviest icon; anything beyond it snaps to that icon, and a non-finite or negative value falls back to calm. |
37
+ | rotationAngle | rotation-angle | `number` | `0` | Rotation of the reference frame (course/heading) in degrees. This could be the heading or the course of the vessel. `0` means north-up. |
38
+ | currentWindFromDirection | current-wind-from-direction | `number` | `0` | Direction the wind comes from, in degrees: `0` or `360` is wind from the north, so the marker points down, and `180` is wind from the south, so it points up. |
39
+ | windFromAngle | windFromAngle | | | |
40
+ | angle | angle | | | |
41
+
42
+ ## Events
43
+
44
+ None.
45
+
46
+ ## Slots
47
+
48
+ None.
49
+
50
+ ## See also
51
+
52
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,92 @@
1
+ # `<obc-wind-propulsion>`
2
+
3
+ Radial instrument showing sail force direction and strength.
4
+
5
+ Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-wind-propulsion--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/wind-propulsion/wind-propulsion.ts)
6
+
7
+ `<obc-wind-propulsion>` – Radial instrument showing sail force direction and strength.
8
+
9
+ Displays a circular watch face with a rotatable sail image, a directional force bar
10
+ indicating force strength (0–100), and an independent sail angle setpoint. The sail
11
+ and force bar rotate independently to show the difference between sail orientation
12
+ and force direction.
13
+
14
+ ## Features
15
+
16
+ - **Sail angle**: Rotatable sail type image with a directional arrow
17
+ pointing outward from the bow.
18
+ - **Force angle / force**: A vertical bar overlay that rotates to `forceAngle`,
19
+ filled proportionally to `force / maxForce`.
20
+ - **Sail angle setpoint**: Optional setpoint marker on the watch ring with
21
+ auto at-setpoint detection and confirm animation support.
22
+ - **Advice zones**: Configurable caution/alert arcs on the watch ring.
23
+ - **Wind overlay**: Optional wind speed/direction indicator (pass-through to watch).
24
+ - **Labels**: Toggleable 0°/90°/180°/–90° tickmark labels.
25
+ - **Priority elements**: Selectively apply the enhanced color palette to
26
+ individual elements (`sail`, `forceBar`, `wind`) via `priorityElements`.
27
+
28
+ ## Usage Guidelines
29
+
30
+ - Set `forceAngle` and `sailAngle` independently to show the angular
31
+ difference between force direction and sail orientation.
32
+ - Use `sailAngleSetpoint` to show a target sail angle on the watch ring.
33
+ - Select the sail image via `sailType` (e.g. `SailType.solidSail`).
34
+ - Use `priorityElements` to control which elements receive the enhanced
35
+ color palette when `priority` is `enhanced`.
36
+ - Set `maxForce` to the system-specific ceiling so the bar fills
37
+ proportionally (default 100).
38
+ - For a full-circle compass, use `<obc-compass>` instead.
39
+
40
+ ## Properties
41
+
42
+ | Property | Attribute | Type | Default | Description |
43
+ | --- | --- | --- | --- | --- |
44
+ | forceAngle | forceAngle | `number` | `0` | |
45
+ | sailAngle | sailAngle | `number` | `0` | |
46
+ | sailAngleSetpoint | sailAngleSetpoint | `number \| undefined` | | |
47
+ | newSailAngleSetpoint | newSailAngleSetpoint | `number \| undefined` | | |
48
+ | atSailAngleSetpoint | atSailAngleSetpoint | `boolean` | `false` | |
49
+ | autoAtSailAngleSetpoint | | `boolean` | `true` | |
50
+ | autoAtSailAngleSetpointDeadband | autoAtSailAngleSetpointDeadband | `number` | `2` | |
51
+ | sailAngleSetpointAtZeroDeadband | sailAngleSetpointAtZeroDeadband | `number` | `0.5` | |
52
+ | sailAngleSetpointOverride | sailAngleSetpointOverride | `boolean` | `false` | |
53
+ | animateSetpoint | animateSetpoint | `boolean` | `false` | |
54
+ | touching | touching | `boolean` | `false` | |
55
+ | force | force | `number` | `0` | |
56
+ | maxForce | maxForce | `number` | `100` | |
57
+ | sailType | sailType | `SailType` | | |
58
+ | state | state | `InstrumentState` | | |
59
+ | priority | priority | `Priority` | | |
60
+ | priorityElements | | `WindPropulsionPriorityElement[]` | `[ WindPropulsionPriorityElement.sail, ]` | |
61
+ | showLabels | showLabels | `boolean` | `false` | |
62
+ | tickmarksInside | tickmarksInside | `boolean` | `false` | |
63
+ | tickmarkStyle | tickmarkStyle | `TickmarkStyle` | | |
64
+ | currentWindSpeedKnots | currentWindSpeedKnots | `number \| null` | `null` | |
65
+ | currentWindFromDirection | currentWindFromDirection | `number \| null` | `null` | |
66
+ | sailAngleAdvices | | `AdviceInput[] \| undefined` | | Sail angle advices: ranges and points in degrees, resolved against `sailAngle` and `sailAngleSetpoint`. The same list as `advices`, the name every instrument shares. |
67
+ | advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
68
+ | adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
69
+ | adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
70
+
71
+ ## Events
72
+
73
+ None.
74
+
75
+ ## Slots
76
+
77
+ None.
78
+
79
+ ## Stories
80
+
81
+ - [Default](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--default)
82
+ - [With Advices](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--with-advices)
83
+ - [At Setpoint](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--at-setpoint)
84
+ - [With Labels](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--with-labels)
85
+ - [With Labels Inside](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--with-labels-inside)
86
+ - [With Wind](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--with-wind)
87
+ - [Loading](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--loading)
88
+ - [Off](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind-propulsion--off)
89
+
90
+ ## See also
91
+
92
+ - [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
@@ -0,0 +1,46 @@
1
+ # `<obc-wind>`
2
+
3
+ No summary yet.
4
+
5
+ Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-wind--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/wind/wind.ts)
6
+
7
+ ## Properties
8
+
9
+ | Property | Attribute | Type | Default | Description |
10
+ | --- | --- | --- | --- | --- |
11
+ | currentWindFromDirection | currentWindFromDirection | `number` | `0` | |
12
+ | currentWindSpeedKnots | currentWindSpeedKnots | `number` | `25` | |
13
+ | windHistogramData | | `WindHistogramData[]` | `[]` | |
14
+ | vesselImage | vesselImage | `VesselImage` | | |
15
+ | vesselImageSrc | | `VesselImageSrc \| undefined` | | Image URLs per palette (`{bright, day, dusk, night}`, SVG, PNG or data URLs) drawn instead of `vesselImage` in the same 160 × 160 box. A palette without a URL falls back to the nearest one (see `VesselImageSrc`). |
16
+ | vesselHeadingDeg | vesselHeadingDeg | `number` | `0` | |
17
+ | variant | variant | `WindVariant` | | |
18
+ | smallVariantMaxPx | smallVariantMaxPx | `number` | `96` | |
19
+ | mediumVariantMaxPx | mediumVariantMaxPx | `number` | `200` | |
20
+ | visualization | visualization | `WindVisualization` | | Center visualization: wind histogram (default) or the force-graphics streak field. |
21
+ | priority | priority | `Priority` | | Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). |
22
+
23
+ ## Events
24
+
25
+ None.
26
+
27
+ ## Slots
28
+
29
+ None.
30
+
31
+ ## Stories
32
+
33
+ - [Primary](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--primary)
34
+ - [Large](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--large)
35
+ - [Medium](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--medium)
36
+ - [Small](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--small)
37
+ - [Auto](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--auto)
38
+ - [Force Graphics](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--force-graphics)
39
+ - [Force Graphics Medium](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--force-graphics-medium)
40
+ - [Force Graphics Small](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--force-graphics-small)
41
+ - [Histogram Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--histogram-enhanced)
42
+ - [Force Graphics Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-wind--force-graphics-enhanced)
43
+
44
+ ## See also
45
+
46
+ - [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
@@ -0,0 +1,36 @@
1
+ # POI Projection
2
+
3
+ [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/ar-poi-projection--docs)
4
+
5
+ Media-projection helpers for POI overlays.
6
+
7
+ Maps points from media pixel space (video/image natural resolution) to
8
+ rendered screen space, accounting for `cover`/`contain` letterboxing.
9
+ This is the same math `obc-poi-controller` applies to its
10
+ detections-driven targets, exported as pure functions so applications
11
+ that manage their own POI elements can project coordinates without
12
+ re-implementing the transform.
13
+
14
+ ## Usage Guidelines
15
+ - Build a {@link MediaProjection} once per resize/metadata change via
16
+ {@link computeMediaProjection}; reuse it for every point in a frame.
17
+ - `renderWidth`/`renderHeight` come from the media element's
18
+ `getBoundingClientRect()`; `mediaWidth`/`mediaHeight` from
19
+ `videoWidth`/`videoHeight` (video) or `naturalWidth`/`naturalHeight`
20
+ (image).
21
+ - {@link projectPointToLayer} additionally converts a projected
22
+ point into `obc-poi-data` layer coordinates (`x` center px,
23
+ `y` line length from the layer's bottom anchor), given the layer's
24
+ bottom offset inside the projection container.
25
+
26
+ ## Fit modes
27
+ - `cover`: media fills the container; overflow is cropped.
28
+ - `contain`: media letterboxes inside the container.
29
+
30
+ The Storybook demo draws the rendered container (outer box), the scaled
31
+ media content region (shaded), and a marker at the projected point.
32
+
33
+ ## Stories
34
+
35
+ - [Contain](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-projection--contain)
36
+ - [Cover](https://openbridge-next-storybook.web.app/?path=/story/ar-poi-projection--cover)
@@ -0,0 +1,13 @@
1
+ # Diagram Playground
2
+
3
+ [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-sequence-step-diagram-playground--docs)
4
+
5
+ Play with the components to assemble a complete sequence. Below are a few ready-made examples: a small indicator chain with an active step, a medium chain with a completed step, and large “button” steps.
6
+
7
+ ## Stories
8
+
9
+ - [Sequence Items](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step-diagram-playground--sequence-items)
10
+ - [Sequence Items With Description](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step-diagram-playground--sequence-items-with-description)
11
+ - [Medium Button Steps](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step-diagram-playground--medium-button-sequence)
12
+ - [Large Button Steps](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step-diagram-playground--large-buttons)
13
+ - [Point Steps](https://openbridge-next-storybook.web.app/?path=/story/automation-sequence-step-diagram-playground--large-point-sequence)