@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.
- package/custom-elements-manifest.config.mjs +2 -1
- package/custom-elements.json +312 -17
- package/llms/components/obc-accordion-card.md +141 -0
- package/llms/components/obc-accordion-item.md +90 -0
- package/llms/components/obc-advice-button.md +87 -0
- package/llms/components/obc-advice-floating-item.md +113 -0
- package/llms/components/obc-advice-menu-item.md +87 -0
- package/llms/components/obc-advice-message-item.md +138 -0
- package/llms/components/obc-alert-button-item.md +117 -0
- package/llms/components/obc-alert-button.md +134 -0
- package/llms/components/obc-alert-counter-item.md +74 -0
- package/llms/components/obc-alert-detail-page.md +45 -0
- package/llms/components/obc-alert-floating-item.md +53 -0
- package/llms/components/obc-alert-frame.md +142 -0
- package/llms/components/obc-alert-icon.md +79 -0
- package/llms/components/obc-alert-list-details-experimental.md +89 -0
- package/llms/components/obc-alert-list-details.md +38 -0
- package/llms/components/obc-alert-list-page-small.md +39 -0
- package/llms/components/obc-alert-list.md +37 -0
- package/llms/components/obc-alert-menu-item.md +128 -0
- package/llms/components/obc-alert-menu.md +115 -0
- package/llms/components/obc-alert-subsystem-button.md +88 -0
- package/llms/components/obc-alert-subsystem-counter.md +110 -0
- package/llms/components/obc-analog-threeway-valve.md +106 -0
- package/llms/components/obc-analog-valve.md +74 -0
- package/llms/components/obc-app-button.md +83 -0
- package/llms/components/obc-app-menu.md +69 -0
- package/llms/components/obc-area-graph.md +333 -0
- package/llms/components/obc-attachment-list-item.md +49 -0
- package/llms/components/obc-audio-output.md +59 -0
- package/llms/components/obc-audio-recording-item.md +91 -0
- package/llms/components/obc-automation-badge.md +66 -0
- package/llms/components/obc-automation-button-readout-stack.md +71 -0
- package/llms/components/obc-automation-button.md +86 -0
- package/llms/components/obc-automation-input-modal.md +48 -0
- package/llms/components/obc-automation-readout.md +32 -0
- package/llms/components/obc-automation-tank.md +156 -0
- package/llms/components/obc-azimuth-thruster-labeled.md +56 -0
- package/llms/components/obc-azimuth-thruster.md +80 -0
- package/llms/components/obc-badge-command.md +26 -0
- package/llms/components/obc-badge.md +151 -0
- package/llms/components/obc-bar-horizontal.md +123 -0
- package/llms/components/obc-bar-vertical.md +125 -0
- package/llms/components/obc-battery-icon.md +38 -0
- package/llms/components/obc-bearing-indicator.md +27 -0
- package/llms/components/obc-bipolar-transistor.md +64 -0
- package/llms/components/obc-breadcrumb.md +58 -0
- package/llms/components/obc-brilliance-menu.md +115 -0
- package/llms/components/obc-bus.md +64 -0
- package/llms/components/obc-button.md +110 -0
- package/llms/components/obc-calendar.md +91 -0
- package/llms/components/obc-capacitor.md +64 -0
- package/llms/components/obc-card.md +103 -0
- package/llms/components/obc-chart-object-vessel-button.md +103 -0
- package/llms/components/obc-chat-message.md +35 -0
- package/llms/components/obc-check-button.md +104 -0
- package/llms/components/obc-checkbox-item.md +95 -0
- package/llms/components/obc-checkbox-list.md +73 -0
- package/llms/components/obc-checkbox.md +97 -0
- package/llms/components/obc-circular-progress.md +36 -0
- package/llms/components/obc-clock.md +86 -0
- package/llms/components/obc-command-button.md +56 -0
- package/llms/components/obc-command-menu.md +135 -0
- package/llms/components/obc-communication-table.md +31 -0
- package/llms/components/obc-compass-flat.md +79 -0
- package/llms/components/obc-compass-indicator.md +61 -0
- package/llms/components/obc-compass-sector.md +110 -0
- package/llms/components/obc-compass.md +157 -0
- package/llms/components/obc-context-menu-input.md +191 -0
- package/llms/components/obc-converter.md +64 -0
- package/llms/components/obc-corner-line.md +29 -0
- package/llms/components/obc-current.md +79 -0
- package/llms/components/obc-damper.md +62 -0
- package/llms/components/obc-date-item.md +66 -0
- package/llms/components/obc-depth-actual.md +69 -0
- package/llms/components/obc-depth-indicator.md +31 -0
- package/llms/components/obc-depth-top-band.md +43 -0
- package/llms/components/obc-depth.md +94 -0
- package/llms/components/obc-diagnostic-button.md +71 -0
- package/llms/components/obc-diagnostic-menu.md +88 -0
- package/llms/components/obc-digital-threeway-valve.md +112 -0
- package/llms/components/obc-digital-valve.md +78 -0
- package/llms/components/obc-diodes.md +64 -0
- package/llms/components/obc-direction-line.md +28 -0
- package/llms/components/obc-divider.md +44 -0
- package/llms/components/obc-donut-chart.md +116 -0
- package/llms/components/obc-draft-trim.md +67 -0
- package/llms/components/obc-dropdown-button.md +99 -0
- package/llms/components/obc-electricity-battery.md +83 -0
- package/llms/components/obc-elevated-card-radio-group.md +103 -0
- package/llms/components/obc-elevated-card-radio.md +104 -0
- package/llms/components/obc-elevated-card.md +146 -0
- package/llms/components/obc-end-point-line.md +29 -0
- package/llms/components/obc-event-item.md +47 -0
- package/llms/components/obc-event-list.md +37 -0
- package/llms/components/obc-fan.md +68 -0
- package/llms/components/obc-filter-chip.md +91 -0
- package/llms/components/obc-filter.md +64 -0
- package/llms/components/obc-floating-item.md +125 -0
- package/llms/components/obc-form-container.md +45 -0
- package/llms/components/obc-form-footer-container.md +34 -0
- package/llms/components/obc-form-group.md +80 -0
- package/llms/components/obc-form-item.md +95 -0
- package/llms/components/obc-gauge-bar-indicator.md +46 -0
- package/llms/components/obc-gauge-generator.md +102 -0
- package/llms/components/obc-gauge-horizontal.md +169 -0
- package/llms/components/obc-gauge-motors-and-pumps.md +110 -0
- package/llms/components/obc-gauge-proportional.md +134 -0
- package/llms/components/obc-gauge-radial-indicator.md +76 -0
- package/llms/components/obc-gauge-radial.md +163 -0
- package/llms/components/obc-gauge-trend-indicator.md +53 -0
- package/llms/components/obc-gauge-trend.md +271 -0
- package/llms/components/obc-gauge-valve.md +114 -0
- package/llms/components/obc-gauge-vertical.md +169 -0
- package/llms/components/obc-gnss-skyplot.md +80 -0
- package/llms/components/obc-graph-mini.md +28 -0
- package/llms/components/obc-ground.md +64 -0
- package/llms/components/obc-heading-indicator.md +42 -0
- package/llms/components/obc-heading.md +106 -0
- package/llms/components/obc-heat-exchanger.md +80 -0
- package/llms/components/obc-heat-pump.md +79 -0
- package/llms/components/obc-heave-indicator.md +38 -0
- package/llms/components/obc-heave.md +60 -0
- package/llms/components/obc-horizontal-line.md +29 -0
- package/llms/components/obc-hydraulic-check-valve.md +36 -0
- package/llms/components/obc-hydraulic-separator.md +80 -0
- package/llms/components/obc-hydraulic-valve-4-3.md +71 -0
- package/llms/components/obc-hydraulic-valve-x-2.md +68 -0
- package/llms/components/obc-icon-button.md +117 -0
- package/llms/components/obc-icon-check-button.md +85 -0
- package/llms/components/obc-indicator-battery.md +69 -0
- package/llms/components/obc-indicator-engine.md +39 -0
- package/llms/components/obc-indicator-generator.md +59 -0
- package/llms/components/obc-indicator-graph.md +33 -0
- package/llms/components/obc-indicator-tank-atmospheric.md +69 -0
- package/llms/components/obc-input-chip.md +96 -0
- package/llms/components/obc-instrument-field.md +172 -0
- package/llms/components/obc-instrument-radial.md +77 -0
- package/llms/components/obc-integration-app-bar.md +41 -0
- package/llms/components/obc-integration-bar-dropdown.md +71 -0
- package/llms/components/obc-integration-bar.md +72 -0
- package/llms/components/obc-integration-button.md +62 -0
- package/llms/components/obc-integration-dropdown-button.md +75 -0
- package/llms/components/obc-integration-fleet-button.md +41 -0
- package/llms/components/obc-integration-tabs.md +28 -0
- package/llms/components/obc-integration-vessel-menu.md +58 -0
- package/llms/components/obc-integration-vessel-selector.md +32 -0
- package/llms/components/obc-keyboard-full.md +175 -0
- package/llms/components/obc-keyboard-numeric.md +77 -0
- package/llms/components/obc-line-cross.md +28 -0
- package/llms/components/obc-line-graph.md +164 -0
- package/llms/components/obc-line-overlap.md +28 -0
- package/llms/components/obc-logic.md +64 -0
- package/llms/components/obc-main-engine-indicator.md +55 -0
- package/llms/components/obc-main-engine.md +54 -0
- package/llms/components/obc-menu-button.md +158 -0
- package/llms/components/obc-message-menu-item.md +165 -0
- package/llms/components/obc-modal-window.md +139 -0
- package/llms/components/obc-mosfet.md +64 -0
- package/llms/components/obc-motor.md +73 -0
- package/llms/components/obc-navigation-item-group.md +82 -0
- package/llms/components/obc-navigation-item.md +138 -0
- package/llms/components/obc-navigation-menu.md +135 -0
- package/llms/components/obc-non-return-valve.md +79 -0
- package/llms/components/obc-notification-badge-button.md +87 -0
- package/llms/components/obc-notification-button.md +92 -0
- package/llms/components/obc-notification-floating-item.md +121 -0
- package/llms/components/obc-notification-menu-item.md +87 -0
- package/llms/components/obc-notification-message-item.md +127 -0
- package/llms/components/obc-number-input-field.md +97 -0
- package/llms/components/obc-pagination.md +95 -0
- package/llms/components/obc-pie-chart.md +120 -0
- package/llms/components/obc-pitch-indicator.md +39 -0
- package/llms/components/obc-pitch-roll-heave.md +86 -0
- package/llms/components/obc-pitch-roll-yaw.md +72 -0
- package/llms/components/obc-pitch-roll.md +63 -0
- package/llms/components/obc-pitch.md +81 -0
- package/llms/components/obc-pivot-item-group.md +79 -0
- package/llms/components/obc-pivot-item.md +75 -0
- package/llms/components/obc-poi-aton.md +68 -0
- package/llms/components/obc-poi-button-aton.md +54 -0
- package/llms/components/obc-poi-button-data.md +53 -0
- package/llms/components/obc-poi-button-vessel.md +55 -0
- package/llms/components/obc-poi-button.md +94 -0
- package/llms/components/obc-poi-card-header.md +90 -0
- package/llms/components/obc-poi-card.md +110 -0
- package/llms/components/obc-poi-controller.md +151 -0
- package/llms/components/obc-poi-data.md +72 -0
- package/llms/components/obc-poi-graphic-line.md +70 -0
- package/llms/components/obc-poi-group.md +85 -0
- package/llms/components/obc-poi-header.md +71 -0
- package/llms/components/obc-poi-layer-stack.md +85 -0
- package/llms/components/obc-poi-layer.md +110 -0
- package/llms/components/obc-poi-line.md +70 -0
- package/llms/components/obc-poi-object-aton.md +45 -0
- package/llms/components/obc-poi-object-data.md +48 -0
- package/llms/components/obc-poi-object-vessel.md +95 -0
- package/llms/components/obc-poi-object.md +82 -0
- package/llms/components/obc-poi-pointer.md +70 -0
- package/llms/components/obc-poi-selection-frame.md +66 -0
- package/llms/components/obc-poi-vessel.md +70 -0
- package/llms/components/obc-poi.md +140 -0
- package/llms/components/obc-polar-chart.md +126 -0
- package/llms/components/obc-position-deviation.md +84 -0
- package/llms/components/obc-pressure-reduction-valve.md +88 -0
- package/llms/components/obc-pressure-sustain-valve.md +85 -0
- package/llms/components/obc-progress-bar.md +102 -0
- package/llms/components/obc-progress-button.md +111 -0
- package/llms/components/obc-progress-indicator-dots.md +57 -0
- package/llms/components/obc-propulsion-azimuth-indicator.md +48 -0
- package/llms/components/obc-pump.md +76 -0
- package/llms/components/obc-radial-bar-chart.md +103 -0
- package/llms/components/obc-radio.md +82 -0
- package/llms/components/obc-rate-of-turn.md +95 -0
- package/llms/components/obc-readout-block.md +137 -0
- package/llms/components/obc-readout-list-item.md +142 -0
- package/llms/components/obc-readout-list.md +85 -0
- package/llms/components/obc-readout.md +169 -0
- package/llms/components/obc-resistor.md +64 -0
- package/llms/components/obc-rich-button.md +92 -0
- package/llms/components/obc-roll-indicator.md +38 -0
- package/llms/components/obc-roll.md +56 -0
- package/llms/components/obc-rot-indicator.md +32 -0
- package/llms/components/obc-rot-linear.md +68 -0
- package/llms/components/obc-rot-sector.md +125 -0
- package/llms/components/obc-router.md +64 -0
- package/llms/components/obc-rudder-indicator.md +54 -0
- package/llms/components/obc-rudder.md +112 -0
- package/llms/components/obc-ruler-pointer.md +57 -0
- package/llms/components/obc-scrollbar.md +57 -0
- package/llms/components/obc-sequence-card.md +119 -0
- package/llms/components/obc-sequence-connector.md +70 -0
- package/llms/components/obc-sequence-item.md +64 -0
- package/llms/components/obc-sequence-loading-spinner.md +70 -0
- package/llms/components/obc-sequence-modal.md +89 -0
- package/llms/components/obc-sequence-step.md +48 -0
- package/llms/components/obc-sequence-toolbar.md +108 -0
- package/llms/components/obc-slide-button.md +111 -0
- package/llms/components/obc-slider-double.md +137 -0
- package/llms/components/obc-slider.md +143 -0
- package/llms/components/obc-source.md +64 -0
- package/llms/components/obc-speed-arrows.md +39 -0
- package/llms/components/obc-speed-directions.md +66 -0
- package/llms/components/obc-speed-gauge.md +124 -0
- package/llms/components/obc-speed-indicator.md +37 -0
- package/llms/components/obc-split-button.md +144 -0
- package/llms/components/obc-start-stop-switch.md +126 -0
- package/llms/components/obc-status-indicator.md +30 -0
- package/llms/components/obc-stepper-box.md +90 -0
- package/llms/components/obc-surge-sway-yaw.md +95 -0
- package/llms/components/obc-switch.md +69 -0
- package/llms/components/obc-system-button.md +112 -0
- package/llms/components/obc-system-menu.md +67 -0
- package/llms/components/obc-tab-item.md +161 -0
- package/llms/components/obc-tab-row.md +151 -0
- package/llms/components/obc-tabbed-card.md +148 -0
- package/llms/components/obc-table-header-item.md +42 -0
- package/llms/components/obc-table.md +124 -0
- package/llms/components/obc-tag.md +41 -0
- package/llms/components/obc-text-input-field.md +94 -0
- package/llms/components/obc-textarea-field.md +186 -0
- package/llms/components/obc-textbox.md +80 -0
- package/llms/components/obc-three-way-line.md +29 -0
- package/llms/components/obc-thruster.md +64 -0
- package/llms/components/obc-title-container.md +81 -0
- package/llms/components/obc-toggle-button-group.md +184 -0
- package/llms/components/obc-toggle-button-option.md +126 -0
- package/llms/components/obc-toggle-button-three-state.md +38 -0
- package/llms/components/obc-toggle-button-vertical-group.md +142 -0
- package/llms/components/obc-toggle-button-vertical-option.md +110 -0
- package/llms/components/obc-toggle-switch.md +126 -0
- package/llms/components/obc-toggletip.md +135 -0
- package/llms/components/obc-tooltip.md +106 -0
- package/llms/components/obc-top-bar.md +194 -0
- package/llms/components/obc-top-view-propulsion.md +84 -0
- package/llms/components/obc-topbar-message-item.md +150 -0
- package/llms/components/obc-transformer.md +64 -0
- package/llms/components/obc-transmitter-button.md +101 -0
- package/llms/components/obc-transmitter-stack.md +79 -0
- package/llms/components/obc-transmitter.md +114 -0
- package/llms/components/obc-tree-navigation-group.md +69 -0
- package/llms/components/obc-tree-navigation-item.md +110 -0
- package/llms/components/obc-tree-navigation.md +73 -0
- package/llms/components/obc-tunnel-thruster.md +59 -0
- package/llms/components/obc-user-button.md +107 -0
- package/llms/components/obc-user-menu.md +154 -0
- package/llms/components/obc-valve-analog-three-way-icon.md +69 -0
- package/llms/components/obc-valve-analog-two-way-icon.md +39 -0
- package/llms/components/obc-velocity-projection-plot.md +34 -0
- package/llms/components/obc-vendor-button.md +63 -0
- package/llms/components/obc-vertical-line.md +33 -0
- package/llms/components/obc-watch-flat.md +54 -0
- package/llms/components/obc-watch.md +206 -0
- package/llms/components/obc-wind-indicator.md +52 -0
- package/llms/components/obc-wind-propulsion.md +92 -0
- package/llms/components/obc-wind.md +46 -0
- package/llms/docs/ar-poi-projection.md +36 -0
- package/llms/docs/automation-sequence-step-diagram-playground.md +13 -0
- package/llms/docs/building-blocks-advice.md +31 -0
- package/llms/docs/building-blocks-external-scale.md +138 -0
- package/llms/docs/building-blocks-setpoint.md +119 -0
- package/llms/docs/introduction-advice-system.md +161 -0
- package/llms/docs/introduction-getting-started.md +94 -0
- package/llms/docs/introduction-introduction.md +27 -0
- package/llms/docs/introduction-join-the-project.md +11 -0
- package/llms/docs/introduction-migration-guide-2-0-to-2-1.md +126 -0
- package/llms/docs/introduction-migration-guide-2-1-to-2-2.md +106 -0
- package/llms/docs/introduction-migration-guide.md +1063 -0
- package/llms/docs/palettes-categorical-colour.md +9 -0
- package/llms/llms-full.txt +28380 -0
- package/llms/llms.txt +368 -0
- package/package.json +12 -2
- package/script/cem-plugins/lifecycle.d.mts +6 -0
- package/script/cem-plugins/lifecycle.mjs +48 -0
- package/script/cem-plugins.test.ts +52 -1
- package/script/generate-llms-txt.ts +34 -0
- package/script/llms/channel.test.ts +69 -0
- package/script/llms/channel.ts +63 -0
- package/script/llms/generate.test.ts +143 -0
- package/script/llms/generate.ts +229 -0
- package/script/llms/manifest.test.ts +160 -0
- package/script/llms/manifest.ts +109 -0
- package/script/llms/markdown.test.ts +22 -0
- package/script/llms/markdown.ts +37 -0
- package/script/llms/mdx.test.ts +172 -0
- package/script/llms/mdx.ts +171 -0
- package/script/llms/render-component.test.ts +290 -0
- package/script/llms/render-component.ts +208 -0
- package/script/llms/render-guides.test.ts +105 -0
- package/script/llms/render-guides.ts +51 -0
- package/script/llms/render-llms-txt.test.ts +222 -0
- package/script/llms/render-llms-txt.ts +185 -0
- package/script/llms/sources.test.ts +118 -0
- package/script/llms/sources.ts +89 -0
- package/script/llms/stories.test.ts +193 -0
- package/script/llms/stories.ts +256 -0
- package/script/llms/types.ts +95 -0
- package/script/prepare-full-bundle.ts +1 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# `<obc-gauge-vertical>`
|
|
2
|
+
|
|
3
|
+
A vertical gauge component with bar and scale background.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-gauge-vertical--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/gauge-vertical/gauge-vertical.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-gauge-vertical>` – A vertical gauge component with bar and scale background.
|
|
8
|
+
|
|
9
|
+
Use `obc-gauge-vertical` when you need a standalone vertical gauge with a visible scale
|
|
10
|
+
and bar. This is ideal for displaying single values like tank levels, pressure, or
|
|
11
|
+
temperature where the scale context is always needed.
|
|
12
|
+
|
|
13
|
+
This is the same as `obc-bar-vertical` (both use `external-scale.ts`)
|
|
14
|
+
but with several properties fixed for consistent gauge appearance.
|
|
15
|
+
Unlike `obc-bar-vertical`, this component always shows the bar and scale background.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Features
|
|
20
|
+
- **Fixed Layout:** Height (384px), padding (32px), bar/tick/label thicknesses, and border radius are fixed for consistent gauge appearance. 384 px is the length the design is drawn at, not a layout limit: see `fixedAspectRatio`.
|
|
21
|
+
- **Scale Configuration:**
|
|
22
|
+
- Configurable `minValue` and `maxValue` for the value range.
|
|
23
|
+
- Optional main, primary, secondary, and tertiary tickmarks at specified intervals.
|
|
24
|
+
- Labels shown at primary tickmark intervals (controlled via `showLabels`).
|
|
25
|
+
- **Side Positioning:** Can be placed on the `left` or `right` side via the `side` property.
|
|
26
|
+
- **Value Display:**
|
|
27
|
+
- `value` property drives the bar fill.
|
|
28
|
+
- `fillMode` controls visualization: `fill` shows bar from `fillMin` to `fillMax`; `tint` adds a marker at the `value` position.
|
|
29
|
+
- Set `priority` to `Priority.enhanced` to use the blue/enhanced color palette for bar fill and setpoint (default: `Priority.regular`).
|
|
30
|
+
- **Setpoint Marker:**
|
|
31
|
+
- Optional `setpoint` value displays a marker.
|
|
32
|
+
- Automatic at-setpoint detection with configurable deadband.
|
|
33
|
+
- **Advice Overlays:** Render advice ranges with different types and hinted states.
|
|
34
|
+
- **Fixed Aspect Ratio:** `fixedAspectRatio` scales the whole gauge to its container like a vector image while the label font size stays put; `scaleReferenceSize` is the container height at which it draws 1:1.
|
|
35
|
+
- **Dimension Reporting:** Dispatches `scale-dimensions-changed` events for parent chart integration.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Fixed Properties (not configurable)
|
|
40
|
+
- `height`: 384px
|
|
41
|
+
- `paddingTop`/`paddingBottom`: 32px (`CHART_DIMENSIONS.CANVAS_PADDING`)
|
|
42
|
+
- `barThickness`: 48px
|
|
43
|
+
- `tickThickness`: 24px
|
|
44
|
+
- `labelThickness`: 60px
|
|
45
|
+
- `borderRadius`: 8px (matches obc-component-size-medium)
|
|
46
|
+
- `scaleType`: regular
|
|
47
|
+
- `frameStyle`: regular
|
|
48
|
+
- `hasBar`: true
|
|
49
|
+
- `hasScale`: true
|
|
50
|
+
- `scaleBackground`: true
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Implementation
|
|
55
|
+
This is a higher fidelity implementation of the concept shown in `instrument-linear.ts`,
|
|
56
|
+
providing a complete gauge with container, scale background, tickmarks, labels, advice overlays, and setpoint marker.
|
|
57
|
+
|
|
58
|
+
This is a thin web-component wrapper around the pure SVG building-block renderer in `external-scale.ts`.
|
|
59
|
+
It sets up the outer `<svg>`/`viewBox` for a vertical scale and delegates rendering/layout to:
|
|
60
|
+
- `computeExternalScaleLayout(...)`
|
|
61
|
+
- `renderExternalScale(config)`
|
|
62
|
+
|
|
63
|
+
For renderer documentation see: **Building Blocks/External Scale**.
|
|
64
|
+
|
|
65
|
+
For a version where these properties are user-configurable, see **Bars and Graphs/Bar Vertical**.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Events
|
|
70
|
+
- `scale-dimensions-changed` – Fired when layout-affecting properties (`side`, `showLabels`) change, reporting dimensions to parent chart components.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Example
|
|
75
|
+
|
|
76
|
+
```html
|
|
77
|
+
<obc-gauge-vertical
|
|
78
|
+
min-value="0"
|
|
79
|
+
max-value="100"
|
|
80
|
+
value="75"
|
|
81
|
+
primary-tickmark-interval="20"
|
|
82
|
+
secondary-tickmark-interval="10"
|
|
83
|
+
setpoint="80"
|
|
84
|
+
side="right"
|
|
85
|
+
></obc-gauge-vertical>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Properties
|
|
89
|
+
|
|
90
|
+
| Property | Attribute | Type | Default | Description |
|
|
91
|
+
| --- | --- | --- | --- | --- |
|
|
92
|
+
| minValue | minValue | `number` | `0` | Minimum scale value |
|
|
93
|
+
| maxValue | maxValue | `number` | `100` | Maximum scale value |
|
|
94
|
+
| reverse | reverse | `boolean` | `false` | Plot `minValue` at the top so values grow downward. |
|
|
95
|
+
| side | side | `ExternalScaleSide` | | Which side of the chart area this scale lives on (left or right) |
|
|
96
|
+
| fixedAspectRatio | fixedAspectRatio | `boolean` | `false` | Scale the whole gauge to its container like a vector image, keeping the label font size: the SVG fills the host, so size the host. Off, the gauge draws at its 384 px reference height. |
|
|
97
|
+
| scaleReferenceSize | scaleReferenceSize | `number` | `384` | Container height at which a `fixedAspectRatio` gauge draws 1:1 with the design. A taller container enlarges the drawing proportionally, a shorter one shrinks it. Available when `fixedAspectRatio==true`. |
|
|
98
|
+
| showLabels | | `boolean` | `true` | Show numerical value labels at primary tickmarks |
|
|
99
|
+
| mainTickmarks | | `number[] \| undefined` | `[]` | Array of values for main tickmarks. When undefined, no main tickmarks shown. When empty array [], defaults to [minValue, 0, maxValue]. |
|
|
100
|
+
| primaryTickmarkInterval | primaryTickmarkInterval | `number \| undefined` | `undefined` | Interval for primary (longest) tickmarks with labels |
|
|
101
|
+
| secondaryTickmarkInterval | secondaryTickmarkInterval | `number \| undefined` | `undefined` | Interval for secondary (medium) tickmarks |
|
|
102
|
+
| tertiaryTickmarkInterval | tertiaryTickmarkInterval | `number \| undefined` | `undefined` | Interval for tertiary (shortest) tickmarks |
|
|
103
|
+
| borderRadiusPosition | | `BorderRadiusPosition \| undefined` | | Border radius position based on component layout |
|
|
104
|
+
| priority | priority | `Priority` | | Color priority: enhanced uses blue instrument colors for bar fill and setpoint |
|
|
105
|
+
| fillMode | fillMode | `FillMode` | | Fill visualization mode: 'fill' shows bar from fillMin to fillMax; 'tint' adds a marker at the value position |
|
|
106
|
+
| fillMin | fillMin | `number \| undefined` | `undefined` | Minimum fill value (defaults to 0) |
|
|
107
|
+
| fillMax | fillMax | `number \| undefined` | `undefined` | Maximum fill value (defaults to value) |
|
|
108
|
+
| value | value | `number \| undefined` | `undefined` | Current value (bar fill level) |
|
|
109
|
+
| state | state | `InstrumentState` | | Instrument state: active, loading, or off |
|
|
110
|
+
| focused | focused | `boolean` | `false` | Earlier name for `touching`: a change to it sets `touching`, unless `touching` changes in the same update, which then wins. It is not updated from `touching`, so it does not read back the current value. |
|
|
111
|
+
| highlightCurrentValue | highlightCurrentValue | `boolean` | `false` | When true, displays a dot indicator at the current value position. The dot is rendered in the scale band, touching its inner edge (towards the chart). This provides an alternative to bar fill for highlighting the current value. |
|
|
112
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice/alert overlays with min, max, type, and hinted state. When undefined or empty, no advice shown. |
|
|
113
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
114
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
115
|
+
| setpoint | setpoint | `number \| undefined` | | Target setpoint value. `undefined` = no setpoint marker shown. |
|
|
116
|
+
| newSetpoint | newSetpoint | `number \| undefined` | | Adjustment preview for 2-step interface. When defined, two markers are shown: original (dimmed) + new (focus). Available when `setpoint!=undefined`. |
|
|
117
|
+
| atSetpoint | | `boolean` | `false` | Manual at-setpoint override (used when `autoAtSetpoint` is false). Available when `setpoint!=undefined && autoAtSetpoint==false`. |
|
|
118
|
+
| touching | touching | `boolean` | `false` | User is physically interacting with the control. Suppresses at-setpoint calculation and triggers focus visual. Available when `setpoint!=undefined`. |
|
|
119
|
+
| autoAtSetpoint | | `boolean` | `true` | When false, uses manual `atSetpoint` boolean instead of auto-calculation. Available when `setpoint!=undefined`. |
|
|
120
|
+
| autoAtSetpointDeadband | autoAtSetpointDeadband | `number` | `defaultDeadband` | Tolerance for auto at-setpoint detection. Available when `setpoint!=undefined && autoAtSetpoint==true`. |
|
|
121
|
+
| setpointAtZeroDeadband | setpointAtZeroDeadband | `number` | `defaultZeroDeadband` | Tolerance for zero-snap visual state. Available when `setpoint!=undefined`. |
|
|
122
|
+
| setpointOverride | setpointOverride | `boolean` | `false` | Override to derive the setpoint color from the instrument's `priority` regardless of instrument state. Available when `setpoint!=undefined`. |
|
|
123
|
+
| animateSetpoint | animateSetpoint | `boolean` | `false` | Enable CSS-animated confirm transition. Available when `setpoint!=undefined`. |
|
|
124
|
+
| departingNewSetpoint | | `number \| undefined` | | Public getter for renderers/wrappers to access the departing value. |
|
|
125
|
+
|
|
126
|
+
## Events
|
|
127
|
+
|
|
128
|
+
| Event | Type | Description |
|
|
129
|
+
| --- | --- | --- |
|
|
130
|
+
| scale-dimensions-changed | `CustomEvent` | Fired when layout-affecting properties change, providing dimension info for parent chart integration. It bubbles to the chart slot the gauge sits in and does not leave the shadow root around it. |
|
|
131
|
+
|
|
132
|
+
## Slots
|
|
133
|
+
|
|
134
|
+
None.
|
|
135
|
+
|
|
136
|
+
## Stories
|
|
137
|
+
|
|
138
|
+
- [Default (right side, labels, advice)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--default-right)
|
|
139
|
+
- [Component Size Comparison (regular/medium/large/xl)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--component-size-comparison)
|
|
140
|
+
- [Default (left side, labels)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--default-left)
|
|
141
|
+
- [Negative Range (-100 to 100)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--negative-range)
|
|
142
|
+
- [Small Range (0 to 10)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--small-range)
|
|
143
|
+
- [With Bar Fill (right side, enhanced)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--with-bar-fill-right)
|
|
144
|
+
- [With Bar Fill (left side)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--with-bar-fill-left)
|
|
145
|
+
- [Fill Mode Comparison, Enhanced (fill vs tint)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--fill-mode-comparison)
|
|
146
|
+
- [Tint Mode With Advice Overlays](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--tint-mode-with-advice)
|
|
147
|
+
- [With Advice Overlays](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--with-advice)
|
|
148
|
+
- [With Setpoint (value at setpoint)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--with-setpoint-at-value)
|
|
149
|
+
- [With Setpoint (value away from setpoint)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--with-setpoint-away-from-value)
|
|
150
|
+
- [State Comparison](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--state-comparison)
|
|
151
|
+
- [Enhanced Mode Comparison (regular vs enhanced)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--enhanced-mode-comparison)
|
|
152
|
+
- [Reversed (0 at Top, Depth 0 to 75 m)](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--reversed): `reverse` puts `minValue` at the top so a quantity measured downward is plotted with positive numbers. The bar fills from `fillMin` (0, the surface) down to `value`.
|
|
153
|
+
- [Fixed Aspect Ratio Comparison](https://openbridge-next-storybook.web.app/?path=/story/instruments-gauge-vertical--fixed-aspect-ratio-comparison): `obc-gauge-vertical` is a fixed-config gauge: it draws at the design's 384 px reference height with the bar, tick and label bands at their design thickness. That number is where the drawing is 1:1, not a layout limit.
|
|
154
|
+
|
|
155
|
+
- **fixedAspectRatio=false (default)**: a 384 px tall SVG, whatever the box does.
|
|
156
|
+
- **fixedAspectRatio=true**: the whole gauge scales to the height of its host
|
|
157
|
+
like a vector image and the labels keep their font size; `scaleReferenceSize`
|
|
158
|
+
is the host height at which it is 1:1. Size the host, the gauge fills it.
|
|
159
|
+
|
|
160
|
+
For a scale whose length follows the layout while the bands keep their design
|
|
161
|
+
thickness, use `obc-bar-vertical` with `height` from a ResizeObserver, as the
|
|
162
|
+
automation tank and the chart slots do.
|
|
163
|
+
|
|
164
|
+
Drag the corner of each box to resize it.
|
|
165
|
+
|
|
166
|
+
## See also
|
|
167
|
+
|
|
168
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
169
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# `<obc-gnss-skyplot>`
|
|
2
|
+
|
|
3
|
+
Polar plot of the satellites a GNSS receiver can see, placed by azimuth and elevation on a concentric watch face.
|
|
4
|
+
|
|
5
|
+
Lifecycle: experimental. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-gnss-skyplot--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/gnss-skyplot/gnss-skyplot.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-gnss-skyplot>` – Polar plot of the satellites a GNSS receiver can see,
|
|
8
|
+
placed by azimuth and elevation on a concentric watch face.
|
|
9
|
+
|
|
10
|
+
Each satellite is a disc carrying its vehicle number: the bearing sets the
|
|
11
|
+
angle, the elevation the distance from the centre, so a satellite overhead
|
|
12
|
+
sits at the middle of the face and one on the horizon at the outer ring.
|
|
13
|
+
A filled disc marks a satellite the receiver uses in its fix; a tinted one
|
|
14
|
+
marks a satellite it can see but does not use.
|
|
15
|
+
|
|
16
|
+
## Features / Variants
|
|
17
|
+
|
|
18
|
+
- **`priority`:** `regular` (default) draws the markers in neutral greys,
|
|
19
|
+
`enhanced` in the accent ramp.
|
|
20
|
+
- **`colorByConstellation`:** gives each constellation its own hue from the
|
|
21
|
+
categorical palette, so a mixed-constellation fix is readable at a glance.
|
|
22
|
+
A satellite with no `constellation` keeps the `priority` hue.
|
|
23
|
+
- **`showLegend`:** a key for the constellations present, in the lower left.
|
|
24
|
+
- **`showLabels`:** azimuth labels every 45° outside the ring.
|
|
25
|
+
|
|
26
|
+
## Usage Guidelines
|
|
27
|
+
|
|
28
|
+
Use when the operator needs to see where the fix is coming from — a gap in
|
|
29
|
+
the sky, a constellation low on the horizon, satellites dropping out of the
|
|
30
|
+
solution. For position drift against a commanded point use
|
|
31
|
+
`obc-position-deviation`; for combined attitude use `obc-pitch-roll-yaw`.
|
|
32
|
+
|
|
33
|
+
## Best Practices
|
|
34
|
+
|
|
35
|
+
- Pass elevation in degrees, not a normalised radius — the component owns
|
|
36
|
+
the mapping from elevation to distance and clamps out-of-range values.
|
|
37
|
+
- Keep `id` short. The marker is 24 px across and the design's numbers run
|
|
38
|
+
to three digits.
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<obc-gnss-skyplot colorByConstellation showLegend></obc-gnss-skyplot>
|
|
44
|
+
<script>
|
|
45
|
+
document.querySelector('obc-gnss-skyplot').satellites = [
|
|
46
|
+
{id: 23, azimuth: 45, elevation: 62, constellation: 'gps', tracked: true},
|
|
47
|
+
{id: 7, azimuth: 310, elevation: 18, constellation: 'beidou'},
|
|
48
|
+
];
|
|
49
|
+
</script>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Properties
|
|
53
|
+
|
|
54
|
+
| Property | Attribute | Type | Default | Description |
|
|
55
|
+
| --- | --- | --- | --- | --- |
|
|
56
|
+
| satellites | | `Satellite[]` | `[]` | The satellites to plot; each carries its own azimuth, elevation, constellation and tracked state. |
|
|
57
|
+
| priority | priority | `Priority` | | Color priority of the markers that have no constellation hue. |
|
|
58
|
+
| colorByConstellation | colorByConstellation | `boolean` | `false` | When `true`, the marker hue comes from the satellite's `constellation` instead of `priority`. |
|
|
59
|
+
| showLegend | showLegend | `boolean` | `false` | When `true`, shows a key for the constellations present. Available when `colorByConstellation==true`. |
|
|
60
|
+
| showLabels | | `boolean` | `true` | When `true` (default), shows the azimuth labels outside the ring. |
|
|
61
|
+
| 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 and label reserve, so instruments sharing the same value have identical ring circumference. When unset (default), the instrument fills its container. |
|
|
62
|
+
|
|
63
|
+
## Events
|
|
64
|
+
|
|
65
|
+
None.
|
|
66
|
+
|
|
67
|
+
## Slots
|
|
68
|
+
|
|
69
|
+
None.
|
|
70
|
+
|
|
71
|
+
## Stories
|
|
72
|
+
|
|
73
|
+
- [Regular](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--regular)
|
|
74
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--enhanced)
|
|
75
|
+
- [Categorical](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--categorical)
|
|
76
|
+
- [Every Constellation](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--every-constellation)
|
|
77
|
+
- [Without Labels](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--without-labels)
|
|
78
|
+
- [No Satellites](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--no-satellites): An empty sky still reads as an instrument, not as a missing component.
|
|
79
|
+
- [Elevation Extremes](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--elevation-extremes): The horizon and the zenith, the two ends of the elevation scale.
|
|
80
|
+
- [Face Diameter](https://openbridge-next-storybook.web.app/?path=/story/instruments-gnss-skyplot--face-diameter): A pinned face renders at a fixed ring circumference, whatever the container.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# `<obc-graph-mini>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/bars-and-graphs-graph-mini--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/graph-mini/graph-mini.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| data | data | `[number[], number[]]` | `[[], []]` | The data to display in the graph, first array is the x values, second array is the y values |
|
|
12
|
+
| minY | minY | `number \| undefined` | | |
|
|
13
|
+
| maxY | maxY | `number \| undefined` | | |
|
|
14
|
+
| chart | | `HTMLDivElement` | | |
|
|
15
|
+
|
|
16
|
+
## Events
|
|
17
|
+
|
|
18
|
+
None.
|
|
19
|
+
|
|
20
|
+
## Slots
|
|
21
|
+
|
|
22
|
+
None.
|
|
23
|
+
|
|
24
|
+
## Stories
|
|
25
|
+
|
|
26
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-graph-mini--primary)
|
|
27
|
+
- [With Range](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-graph-mini--with-range)
|
|
28
|
+
- [Realtime](https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-graph-mini--realtime)
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# `<obc-ground>`
|
|
2
|
+
|
|
3
|
+
No summary yet.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-automation-devices-ground--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/ground/ground.ts)
|
|
6
|
+
|
|
7
|
+
## Properties
|
|
8
|
+
|
|
9
|
+
| Property | Attribute | Type | Default | Description |
|
|
10
|
+
| --- | --- | --- | --- | --- |
|
|
11
|
+
| alternativeIcon | alternativeIcon | `GroundAlternativeIcon` | | |
|
|
12
|
+
| icon | | `TemplateResult` | | |
|
|
13
|
+
| turnedOn | turnedOn | `boolean` | `false` | Whether the device is on. Selects the on icon and the `On` state row instead of `Off`. Not named `on`, which Svelte binds as an event listener in markup (#1090). |
|
|
14
|
+
| on | on | `boolean \| undefined` | | Alias of `turnedOn` for 1.x markup: setting it sets `turnedOn`. |
|
|
15
|
+
| variant | variant | `SquaredVariant` | | |
|
|
16
|
+
| orientation | orientation | `AutomationButtonOrientation` | | |
|
|
17
|
+
| extraReadouts | | `AutomationButtonReadoutStack[]` | | |
|
|
18
|
+
| showReadoutStack | | `boolean` | `true` | |
|
|
19
|
+
| static | static | `boolean` | `false` | Draws the device as present with its state unknown: a grey button, and the static icon where the device has one. |
|
|
20
|
+
| readoutPosition | readoutPosition | `AutomationButtonReadoutPosition \| undefined` | `undefined` | Available when `showReadoutStack==true`. |
|
|
21
|
+
| showStatus | | `boolean` | `true` | Available when `showReadoutStack==true`. |
|
|
22
|
+
| showStatusIcon | | `boolean` | `false` | |
|
|
23
|
+
| readoutSize | readoutSize | `AutomationButtonReadoutStackSize` | | Available when `showReadoutStack==true`. |
|
|
24
|
+
| tag | tag | `string \| null` | `null` | Available when `showReadoutStack==true`. |
|
|
25
|
+
| positioning | positioning | `AutomationButtonPositioning` | | |
|
|
26
|
+
| activated | activated | `boolean` | `false` | Enables the activated background color, used to indicate that the button is activated/selected. |
|
|
27
|
+
| alert | alert | `boolean` | `false` | |
|
|
28
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Available when `alert==true`. |
|
|
29
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Available when `alert==true`. |
|
|
30
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Available when `alert==true`. |
|
|
31
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Available when `alert==true`. |
|
|
32
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
33
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
34
|
+
| progress | progress | `boolean` | `false` | Shows a progress indicator, used to indicate that an user action is in progress |
|
|
35
|
+
| progressMode | progressMode | `CircularProgressMode` | | Available when `progress==true`. |
|
|
36
|
+
| progressValue | progressValue | `number` | `0` | Available when `progress==true && progressMode in [determinate, progressiveIndeterminate]`. |
|
|
37
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | |
|
|
38
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | |
|
|
39
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | |
|
|
40
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | |
|
|
41
|
+
| badgeLayout | | `AutomationButtonBadgeLayout \| undefined` | `undefined` | Which badge kind each corner shows, on top of the app-wide layout set with `setAutomationBadgeLayout()`. A corner left out keeps the app-wide badge, `null` leaves it empty, and a badge moved here leaves the corner it came from. |
|
|
42
|
+
| badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
|
|
43
|
+
| badgeTopRight | | `HTMLElement[]` | | |
|
|
44
|
+
| badgeTopLeft | | `HTMLElement[]` | | |
|
|
45
|
+
| badgeBottomLeft | | `HTMLElement[]` | | |
|
|
46
|
+
| badgeBottomRight | | `HTMLElement[]` | | |
|
|
47
|
+
|
|
48
|
+
## Events
|
|
49
|
+
|
|
50
|
+
None.
|
|
51
|
+
|
|
52
|
+
## Slots
|
|
53
|
+
|
|
54
|
+
None.
|
|
55
|
+
|
|
56
|
+
## Stories
|
|
57
|
+
|
|
58
|
+
- [On](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-ground--on)
|
|
59
|
+
- [Off](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-ground--off)
|
|
60
|
+
- [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-automation-devices-ground--static)
|
|
61
|
+
|
|
62
|
+
## See also
|
|
63
|
+
|
|
64
|
+
- [Migration Guide](https://openbridge-next-storybook.web.app/docs/introduction-migration-guide.md)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# `<obc-heading-indicator>`
|
|
2
|
+
|
|
3
|
+
A compact heading status indicator with HDG and XTD variants.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/indicators-heading-indicator--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/heading-indicator/heading-indicator.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-heading-indicator>` – A compact heading status indicator with HDG and XTD variants.
|
|
8
|
+
|
|
9
|
+
Renders a 48 x 48 icon used as a small status cue for heading-related modes.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
- **Types**: `HDG` uses a circular compass scale with a centered heading cue.
|
|
14
|
+
- **Types**: `XTD` uses a split rectangular frame with a fixed centerline, a movable position cue driven by `xtd`, and arrow rotation driven by `angle`.
|
|
15
|
+
- **Fixed-size output**: both variants render inside the same 48 x 48 viewport.
|
|
16
|
+
|
|
17
|
+
## Usage Guidelines
|
|
18
|
+
|
|
19
|
+
- Use `type="HDG"` for the compass-style heading cue.
|
|
20
|
+
- Use `type="XTD"` for the split-frame cross-track cue.
|
|
21
|
+
|
|
22
|
+
## Properties
|
|
23
|
+
|
|
24
|
+
| Property | Attribute | Type | Default | Description |
|
|
25
|
+
| --- | --- | --- | --- | --- |
|
|
26
|
+
| type | type | `HeadingIndicatorType` | | |
|
|
27
|
+
| angle | angle | `number` | `0` | |
|
|
28
|
+
| xtd | xtd | `number` | `0` | Cross-track deviation in the range [-1, 1]. |
|
|
29
|
+
|
|
30
|
+
## Events
|
|
31
|
+
|
|
32
|
+
None.
|
|
33
|
+
|
|
34
|
+
## Slots
|
|
35
|
+
|
|
36
|
+
None.
|
|
37
|
+
|
|
38
|
+
## Stories
|
|
39
|
+
|
|
40
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/indicators-heading-indicator--default)
|
|
41
|
+
- [Hdg](https://openbridge-next-storybook.web.app/?path=/story/indicators-heading-indicator--hdg)
|
|
42
|
+
- [Xtd](https://openbridge-next-storybook.web.app/?path=/story/indicators-heading-indicator--xtd)
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# `<obc-heading>`
|
|
2
|
+
|
|
3
|
+
Heading instrument with HDG/COG arrows over a single-ring watch face, with optional vessel silhouette and center readouts.
|
|
4
|
+
|
|
5
|
+
Lifecycle: stable. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/instruments-heading--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/navigation-instruments/heading/heading.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-heading>` – Heading instrument with HDG/COG arrows over a single-ring
|
|
8
|
+
watch face, with optional vessel silhouette and center readouts.
|
|
9
|
+
|
|
10
|
+
Renders a circular instrument that displays heading (HDG) and course over
|
|
11
|
+
ground (COG) as rotating arrows. It supports a heading setpoint with auto
|
|
12
|
+
at-setpoint detection, advice zones, north-up/heading-up/course-up
|
|
13
|
+
orientation, an optional vessel image, and center readouts replacing the
|
|
14
|
+
vessel.
|
|
15
|
+
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Direction modes**: `northUp` (default), `headingUp`, or `courseUp`
|
|
19
|
+
via the `direction` property.
|
|
20
|
+
- **HDG / COG arrows**: Two arrows overlay the watch face, rotating
|
|
21
|
+
independently; their look is selected per arrow via `hdgArrowStyle`
|
|
22
|
+
(`needle` default, `arrowHead`, `vector`, `beamLine`) and
|
|
23
|
+
`cogArrowStyle` (`needle` default, `arrowHead`, `vector`,
|
|
24
|
+
`velocityVector`).
|
|
25
|
+
- **Vessel image**: Optional vessel silhouette via `vesselImage`
|
|
26
|
+
(hidden by default), centered and rotating with heading.
|
|
27
|
+
- **Center readouts**: `centerReadouts` replaces the vessel with up to
|
|
28
|
+
three readouts (first on top, the rest below a horizontal divider);
|
|
29
|
+
values bind to the instrument's own inputs per entry `source`.
|
|
30
|
+
- **Heading setpoint**: Optional setpoint marker with auto at-setpoint
|
|
31
|
+
detection via `headingSetpoint`, `atHeadingSetpoint`, and deadband
|
|
32
|
+
tuning properties.
|
|
33
|
+
- **Advice zones**: Pass `headingAdvices` (or the shared `advices`) to render caution/alert arcs.
|
|
34
|
+
- **Color priority**: Set `priority` to `Priority.enhanced` and select
|
|
35
|
+
the accented elements via `priorityElements`.
|
|
36
|
+
|
|
37
|
+
## Usage Guidelines
|
|
38
|
+
|
|
39
|
+
- Set `heading` and `courseOverGround` to the current sensor values in
|
|
40
|
+
degrees.
|
|
41
|
+
- Use `obc-compass` instead when rate-of-turn, wind or current overlays
|
|
42
|
+
are needed — this instrument is the reduced heading-focused variant.
|
|
43
|
+
|
|
44
|
+
## Example
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<obc-heading
|
|
48
|
+
heading="45"
|
|
49
|
+
courseOverGround="50"
|
|
50
|
+
direction="northUp"
|
|
51
|
+
headingSetpoint="90"
|
|
52
|
+
></obc-heading>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Properties
|
|
56
|
+
|
|
57
|
+
| Property | Attribute | Type | Default | Description |
|
|
58
|
+
| --- | --- | --- | --- | --- |
|
|
59
|
+
| heading | heading | `number` | `0` | |
|
|
60
|
+
| courseOverGround | courseOverGround | `number` | `0` | |
|
|
61
|
+
| headingSetpoint | headingSetpoint | `number \| null` | `null` | |
|
|
62
|
+
| newHeadingSetpoint | newHeadingSetpoint | `number \| undefined` | | Available when `headingSetpoint!=null`. |
|
|
63
|
+
| atHeadingSetpoint | atHeadingSetpoint | `boolean` | `false` | Available when `headingSetpoint!=null && autoAtHeadingSetpoint==false`. |
|
|
64
|
+
| headingSetpointAtZeroDeadband | headingSetpointAtZeroDeadband | `number` | `0.5` | Available when `headingSetpoint!=null`. |
|
|
65
|
+
| headingSetpointOverride | headingSetpointOverride | `boolean` | `false` | Available when `headingSetpoint!=null`. |
|
|
66
|
+
| autoAtHeadingSetpoint | | `boolean` | `true` | Available when `headingSetpoint!=null`. |
|
|
67
|
+
| autoAtHeadingSetpointDeadband | autoAtHeadingSetpointDeadband | `number` | `2` | Available when `headingSetpoint!=null && autoAtHeadingSetpoint==true`. |
|
|
68
|
+
| animateSetpoint | animateSetpoint | `boolean` | `false` | Available when `headingSetpoint!=null`. |
|
|
69
|
+
| touching | touching | `boolean` | `false` | Available when `headingSetpoint!=null`. |
|
|
70
|
+
| headingAdvices | | `AdviceInput[] \| undefined` | | Heading advices: ranges and points in degrees, resolved against `heading` and `headingSetpoint`. The same list as `advices`, the name every instrument shares. |
|
|
71
|
+
| direction | direction | `CompassDirection` | | |
|
|
72
|
+
| priority | priority | `Priority` | | |
|
|
73
|
+
| priorityElements | | `HeadingPriorityElement[]` | `[HeadingPriorityElement.hdg]` | Available when `priority==enhanced`. |
|
|
74
|
+
| vesselImage | vesselImage | `VesselImage \| undefined` | | The vessel silhouette shown in the center, rotating with heading. When unset (default) no vessel is shown; hidden while `centerReadouts` is non-empty. Available when `centerReadouts==[]`. |
|
|
75
|
+
| 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`). Setting it shows the vessel even when `vesselImage` is unset. Available when `centerReadouts==[]`. |
|
|
76
|
+
| centerReadouts | | `CompassCenterReadout[]` | `[]` | Center readouts replacing the vessel: the first entry renders on top, the rest side by side below a horizontal divider. Values bind per entry `source` (`hdg` → `heading`, `cog` → `courseOverGround`; `rot` has no input on this instrument and renders a dash) and colors follow `priorityElements`. While non-empty, the crosshair's center is cut out so the readouts sit on a clean face. |
|
|
77
|
+
| hdgArrowStyle | hdgArrowStyle | `HdgArrowStyle` | | HDG arrow style: `needle` (default), `arrowHead`, `vector`, or `beamLine`. |
|
|
78
|
+
| cogArrowStyle | cogArrowStyle | `CogArrowStyle` | | COG arrow style: `needle` (default), `arrowHead`, `vector`, or `velocityVector`. |
|
|
79
|
+
| showLabels | showLabels | `boolean` | `false` | Show compass NSEW labels. |
|
|
80
|
+
| tickmarksInside | tickmarksInside | `boolean` | `false` | When true, labels and north arrow are placed inside the outer ring. |
|
|
81
|
+
| 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. |
|
|
82
|
+
| advices | advices | `AdviceInput[]` | `[]` | Advice ranges and points in the instrument's unit; see `svghelpers/advice.ts`. |
|
|
83
|
+
| adviceTrigger | adviceTrigger | `AdviceTrigger` | | Which readings trigger an advice: the value, the setpoint, or either. Available when `adviceTrigger advices!=[]`. |
|
|
84
|
+
| adviceEmphasis | adviceEmphasis | `boolean` | `false` | The design's go-to / no-go emphasis rules. Available when `adviceEmphasis advices!=[]`. |
|
|
85
|
+
|
|
86
|
+
## Events
|
|
87
|
+
|
|
88
|
+
None.
|
|
89
|
+
|
|
90
|
+
## Slots
|
|
91
|
+
|
|
92
|
+
None.
|
|
93
|
+
|
|
94
|
+
## Stories
|
|
95
|
+
|
|
96
|
+
- [Primary](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--primary)
|
|
97
|
+
- [Enhanced](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--enhanced)
|
|
98
|
+
- [With Vessel](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--with-vessel)
|
|
99
|
+
- [With Center Readout](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--with-center-readout)
|
|
100
|
+
- [With Vector Arrows](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--with-vector-arrows)
|
|
101
|
+
- [Small Container (160px, Labels Hidden Past Cap)](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--small-container-degraded): Below the label-reserve cap (~200px for the NSWE + north-arrow decor) the frame reports `labelsHidden` and the instrument drops the labels instead of letting them clip — the same graceful degradation the tick-label instruments use (issue #1021). The north arrow stays visible on even the smallest face: below the small-scale threshold it renders as a compact triangle at the ring that scales with the face, so it never clips.
|
|
102
|
+
- [Sizing Playground — FaceDiameter + Resizable (Manual)](https://openbridge-next-storybook.web.app/?path=/story/instruments-heading--sizing-playground): Interactive sizing playground: drag the dashed box's bottom-right corner to resize it. The first instrument is pinned to a fixed intrinsic size by the `faceDiameter` control, while the second adapts to the remaining flex space, reserving room for the NSWE labels and north arrow adaptively (issue #1021). Enable `lockFaceDiameter` to pin both to the same circumference. Related: *Sizing Playground* stories under Building Blocks/Watch, Building Blocks/Instrument Radial and Instruments/Gauge Radial.
|
|
103
|
+
|
|
104
|
+
## See also
|
|
105
|
+
|
|
106
|
+
- [Advice System](https://openbridge-next-storybook.web.app/docs/introduction-advice-system.md)
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# `<obc-heat-exchanger>`
|
|
2
|
+
|
|
3
|
+
HVAC tile for a heat exchanger.
|
|
4
|
+
|
|
5
|
+
Lifecycle: beta. [Storybook](https://openbridge-next-storybook.web.app/?path=/docs/automation-tanks-heat-exchanger--docs) · [Source](https://raw.githubusercontent.com/Ocean-Industries-Concept-Lab/openbridge-webcomponents/develop/packages/openbridge-webcomponents/src/automation/heat-exchanger/heat-exchanger.ts)
|
|
6
|
+
|
|
7
|
+
`<obc-heat-exchanger>` – HVAC tile for a heat exchanger.
|
|
8
|
+
|
|
9
|
+
A 56×142 pressurized-tank silhouette whose graphic area splits diagonally
|
|
10
|
+
into two corner-to-corner triangles — hot top-left, cold bottom-right —
|
|
11
|
+
around a centered heat-exchanger icon, with an optional badge row above
|
|
12
|
+
the frame and a tag readout below it.
|
|
13
|
+
|
|
14
|
+
## Features / Variants
|
|
15
|
+
- `medium` selects the graphic area: one grey area (`regular`), two grey
|
|
16
|
+
triangles (`graphic`) or hot/cold triangles (`medium`).
|
|
17
|
+
- `static` renders a flat, display-only tile with a bare icon.
|
|
18
|
+
- Enum-driven badges (`badgeControl`, `badgeAlert`, `badgeInterlock`,
|
|
19
|
+
`badgeCommandLocked`) or the `badges` slot fill the badge row; it
|
|
20
|
+
collapses when empty, as does the tag cell.
|
|
21
|
+
- Alert-frame overlay with the same seven properties and three slots as
|
|
22
|
+
`obc-automation-tank`.
|
|
23
|
+
- `positioning`, `clickable` and `activated` behave as on
|
|
24
|
+
`obc-automation-tank`.
|
|
25
|
+
|
|
26
|
+
## Usage Guidelines
|
|
27
|
+
Use for heat exchangers in automation system views. For heat pumps use
|
|
28
|
+
`obc-heat-pump` and for hydraulic separators `obc-hydraulic-separator`;
|
|
29
|
+
the three tiles differ only in footprint, icon and split geometry.
|
|
30
|
+
|
|
31
|
+
## Properties
|
|
32
|
+
|
|
33
|
+
| Property | Attribute | Type | Default | Description |
|
|
34
|
+
| --- | --- | --- | --- | --- |
|
|
35
|
+
| medium | medium | `SpecialtyTankMedium` | | What the graphic area shows: `regular` (one grey area), `graphic` (two grey halves) or `medium` (hot/cold halves). |
|
|
36
|
+
| static | static | `boolean` | `false` | Display-only tile with a flat grey frame and a bare icon, rendered as a non-interactive `<div role="img">`. Hides the graphic area. |
|
|
37
|
+
| showIcon | | `boolean` | `true` | Show the equipment icon centered on the graphic area. |
|
|
38
|
+
| tag | tag | `string` | `''` | Identifier rendered in the tag readout below the frame (for example `#0000`); also the accessible name. The cell collapses when empty. |
|
|
39
|
+
| positioning | positioning | `TankPositioning` | | Host positioning model — see `TankPositioning`. `button` (default) fills the parent, `point` uses the fixed design footprint with the P&ID anchor. |
|
|
40
|
+
| clickable | | `boolean` | `true` | Whether the tile is interactive. `false` keeps the resting appearance but drops hover, pressed and focus states and leaves the tab order; property-only because the default is `true`. |
|
|
41
|
+
| activated | activated | `boolean` | `false` | Paints the activated background on the halo. Needs an interactive tile. Available when `clickable==true`. |
|
|
42
|
+
| badgeControl | badgeControl | `AutomationButtonBadgeControl` | | Mode badge (auto / manual / local variants), first in the badge row. |
|
|
43
|
+
| badgeAlert | badgeAlert | `AutomationButtonBadgeAlert` | | Alert badge, second in the badge row. |
|
|
44
|
+
| badgeInterlock | badgeInterlock | `AutomationButtonBadgeInterlock` | | Interlock badge, third in the badge row. |
|
|
45
|
+
| badgeCommandLocked | badgeCommandLocked | `AutomationButtonBadgeCommandLocked` | | Command-locked badge, last in the badge row. |
|
|
46
|
+
| badgeSymbolOverride | | `AutomationBadgeSymbolOverride \| undefined` | `undefined` | Letters that replace badge symbols on this device, per badge property and value, on top of the app-wide ones set with `setAutomationBadgeSymbolOverride()`; for example `{commandLocked: {simulation: 's'}}`. `null` brings the symbol back. |
|
|
47
|
+
| alert | alert | `boolean` | `false` | Show an alert-frame overlay around the halo, mirroring `obc-automation-tank`. |
|
|
48
|
+
| alertFrameType | alertFrameType | `ObcAlertFrameType` | | Shape of the alert frame. Available when `alert==true`. |
|
|
49
|
+
| alertFrameThickness | alertFrameThickness | `ObcAlertFrameThickness` | | Thickness of the alert frame. Available when `alert==true`. |
|
|
50
|
+
| alertFrameStatus | alertFrameStatus | `AlertType` | | Alert status the frame is coloured for. Available when `alert==true`. |
|
|
51
|
+
| alertFrameMode | alertFrameMode | `ObcAlertFrameMode` | | Acknowledgement state of the alert: `acked-active` (default) is steady, `unacked-active` flashes, `unacked-rectified` flashes a dashed frame. Available when `alert==true`. |
|
|
52
|
+
| showAlertCategoryIcon | | `boolean` | `true` | Shows the alert category icon inside the frame. Available when `alert==true && alertFrameType in [SmallSideFlip, LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
53
|
+
| showAlertIcon | showAlertIcon | `boolean` | `false` | Shows the slotted alert icon inside the frame. Available when `alert==true && alertFrameType in [LargeSideFlip, BottomFlip, TopFlip]`. |
|
|
54
|
+
|
|
55
|
+
## Events
|
|
56
|
+
|
|
57
|
+
| Event | Type | Description |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| click | | Fired when the tile is clicked. When `clickable` is `false` the tile renders a plain `<div>`, and in `static` mode a `<div role="img">`, instead of a `<button>` — in both cases it is not focusable or keyboard-activatable; pointer clicks still reach the host. |
|
|
60
|
+
|
|
61
|
+
## Slots
|
|
62
|
+
|
|
63
|
+
| Slot | Description |
|
|
64
|
+
| --- | --- |
|
|
65
|
+
| badges | Custom badges, overriding the enum-driven defaults. |
|
|
66
|
+
| tag | Text or element replacing the `tag` property readout. |
|
|
67
|
+
| alert-icon | Custom icon for the alert frame. |
|
|
68
|
+
| alert-label | Label for the alert frame. |
|
|
69
|
+
| alert-timer | Timer for the alert frame. |
|
|
70
|
+
|
|
71
|
+
## Stories
|
|
72
|
+
|
|
73
|
+
- [Default](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--default)
|
|
74
|
+
- [Graphic](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--graphic)
|
|
75
|
+
- [Medium](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--medium)
|
|
76
|
+
- [Static](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--static)
|
|
77
|
+
- [Without Icon](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--without-icon)
|
|
78
|
+
- [With Badges](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--with-badges)
|
|
79
|
+
- [With Badge Letters](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--with-badge-letters)
|
|
80
|
+
- [With Alert](https://openbridge-next-storybook.web.app/?path=/story/automation-tanks-heat-exchanger--with-alert)
|