@oicl/openbridge-webcomponents-svelte 2.0.0-next.100 → 2.0.0-next.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte +30 -15
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte.d.ts +15 -0
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte +22 -11
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte.d.ts +11 -0
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte +26 -13
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte.d.ts +13 -0
- package/dist/bars-graphs/radial-bar-chart/ObcRadialBarChart.svelte +16 -8
- package/dist/bars-graphs/radial-bar-chart/ObcRadialBarChart.svelte.d.ts +8 -0
- package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte +40 -20
- package/dist/integration-systems/integration-bar/ObcIntegrationBar.svelte.d.ts +20 -0
- package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte +24 -12
- package/dist/integration-systems/integration-button/ObcIntegrationButton.svelte.d.ts +12 -0
- package/dist/navigation-instruments/compass/ObcCompass.svelte +37 -17
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +20 -0
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte +10 -5
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte.d.ts +5 -0
- package/dist/navigation-instruments/graph-mini/ObcGraphMini.svelte +2 -1
- package/dist/navigation-instruments/graph-mini/ObcGraphMini.svelte.d.ts +1 -0
- package/dist/navigation-instruments/indicator-graph/ObcIndicatorGraph.svelte +2 -1
- package/dist/navigation-instruments/indicator-graph/ObcIndicatorGraph.svelte.d.ts +1 -0
- package/dist/navigation-instruments/watch/ObcWatch.svelte +30 -15
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +15 -0
- package/package.json +2 -2
|
@@ -11,22 +11,37 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** Chart data segments (set via JavaScript) */
|
|
15
|
+
data?: DonutChartDataItem[];
|
|
16
|
+
/** Custom segment colors (set via JavaScript) with fallback to theme palette */
|
|
17
|
+
colors?: string[];
|
|
16
18
|
priority?: Priority;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
/** Whether to display as half-circle (180°) or full circle (360°), default: false */
|
|
20
|
+
half?: boolean;
|
|
21
|
+
/** Show outer labels, default: false */
|
|
22
|
+
showOuterLabels?: boolean;
|
|
23
|
+
/** Whether to show unit in labels, default: false */
|
|
24
|
+
showUnit?: boolean;
|
|
25
|
+
/** Unit string to append to outer labels, default: "%" */
|
|
26
|
+
outerLabelUnit?: string;
|
|
27
|
+
/** Maximum character length for labels before trim (0 = no limit), default: 0 */
|
|
28
|
+
outerLabelMaxLength?: number;
|
|
29
|
+
/** Number of decimal places in labels, default: 0 */
|
|
30
|
+
outerLabelDecimalPlaces?: number;
|
|
31
|
+
/** Text label shown below the center total value, default: "Total" */
|
|
32
|
+
centerReadoutLabel?: string;
|
|
33
|
+
/** Unit string shown inline after the label in the center readout, default: "%" */
|
|
34
|
+
centerReadoutUnit?: string;
|
|
35
|
+
/** Maximum value for calculating remaining empty sector, default: 100 */
|
|
36
|
+
max?: number;
|
|
37
|
+
/** Donut ring thickness in pixels, default: 24 */
|
|
38
|
+
thickness?: number;
|
|
39
|
+
/** Whether to display the legend below the chart, default: false */
|
|
40
|
+
legend?: boolean;
|
|
41
|
+
/** Show debug overlay for development, default: false */
|
|
42
|
+
showDebugOverlay?: boolean;
|
|
43
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
44
|
+
fixedHeight?: number
|
|
30
45
|
}
|
|
31
46
|
export interface Events {
|
|
32
47
|
|
|
@@ -5,21 +5,36 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
+
/** Chart data segments (set via JavaScript) */
|
|
8
9
|
data?: DonutChartDataItem[];
|
|
10
|
+
/** Custom segment colors (set via JavaScript) with fallback to theme palette */
|
|
9
11
|
colors?: string[];
|
|
10
12
|
priority?: Priority;
|
|
13
|
+
/** Whether to display as half-circle (180°) or full circle (360°), default: false */
|
|
11
14
|
half?: boolean;
|
|
15
|
+
/** Show outer labels, default: false */
|
|
12
16
|
showOuterLabels?: boolean;
|
|
17
|
+
/** Whether to show unit in labels, default: false */
|
|
13
18
|
showUnit?: boolean;
|
|
19
|
+
/** Unit string to append to outer labels, default: "%" */
|
|
14
20
|
outerLabelUnit?: string;
|
|
21
|
+
/** Maximum character length for labels before trim (0 = no limit), default: 0 */
|
|
15
22
|
outerLabelMaxLength?: number;
|
|
23
|
+
/** Number of decimal places in labels, default: 0 */
|
|
16
24
|
outerLabelDecimalPlaces?: number;
|
|
25
|
+
/** Text label shown below the center total value, default: "Total" */
|
|
17
26
|
centerReadoutLabel?: string;
|
|
27
|
+
/** Unit string shown inline after the label in the center readout, default: "%" */
|
|
18
28
|
centerReadoutUnit?: string;
|
|
29
|
+
/** Maximum value for calculating remaining empty sector, default: 100 */
|
|
19
30
|
max?: number;
|
|
31
|
+
/** Donut ring thickness in pixels, default: 24 */
|
|
20
32
|
thickness?: number;
|
|
33
|
+
/** Whether to display the legend below the chart, default: false */
|
|
21
34
|
legend?: boolean;
|
|
35
|
+
/** Show debug overlay for development, default: false */
|
|
22
36
|
showDebugOverlay?: boolean;
|
|
37
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
23
38
|
fixedHeight?: number;
|
|
24
39
|
}
|
|
25
40
|
export interface Events {
|
|
@@ -11,18 +11,29 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** Chart data segments with optional children subsegments for sunburst mode (set via JavaScript). */
|
|
15
|
+
data?: PieChartDataItem[];
|
|
16
|
+
/** Custom segment colors (set via JavaScript) with fallback to theme palette */
|
|
17
|
+
colors?: string[];
|
|
16
18
|
priority?: Priority;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
/** Show outer labels, default: false */
|
|
20
|
+
showOuterLabels?: boolean;
|
|
21
|
+
/** Whether to show unit in labels, default: false */
|
|
22
|
+
showUnit?: boolean;
|
|
23
|
+
/** Enable sunburst mode with interactive children subsegments, default: false */
|
|
24
|
+
sunburst?: boolean;
|
|
25
|
+
/** Unit string to append to outer labels, default: "%" */
|
|
26
|
+
outerLabelUnit?: string;
|
|
27
|
+
/** Maximum character length for labels before trim (0 = no limit), default: 0 */
|
|
28
|
+
outerLabelMaxLength?: number;
|
|
29
|
+
/** Number of decimal places in labels, default: 0 */
|
|
30
|
+
outerLabelDecimalPlaces?: number;
|
|
31
|
+
/** Whether to display the legend below the chart, default: false */
|
|
32
|
+
legend?: boolean;
|
|
33
|
+
/** Show debug overlay for development, default: false */
|
|
34
|
+
showDebugOverlay?: boolean;
|
|
35
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
36
|
+
fixedHeight?: number
|
|
26
37
|
}
|
|
27
38
|
export interface Events {
|
|
28
39
|
|
|
@@ -5,17 +5,28 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
+
/** Chart data segments with optional children subsegments for sunburst mode (set via JavaScript). */
|
|
8
9
|
data?: PieChartDataItem[];
|
|
10
|
+
/** Custom segment colors (set via JavaScript) with fallback to theme palette */
|
|
9
11
|
colors?: string[];
|
|
10
12
|
priority?: Priority;
|
|
13
|
+
/** Show outer labels, default: false */
|
|
11
14
|
showOuterLabels?: boolean;
|
|
15
|
+
/** Whether to show unit in labels, default: false */
|
|
12
16
|
showUnit?: boolean;
|
|
17
|
+
/** Enable sunburst mode with interactive children subsegments, default: false */
|
|
13
18
|
sunburst?: boolean;
|
|
19
|
+
/** Unit string to append to outer labels, default: "%" */
|
|
14
20
|
outerLabelUnit?: string;
|
|
21
|
+
/** Maximum character length for labels before trim (0 = no limit), default: 0 */
|
|
15
22
|
outerLabelMaxLength?: number;
|
|
23
|
+
/** Number of decimal places in labels, default: 0 */
|
|
16
24
|
outerLabelDecimalPlaces?: number;
|
|
25
|
+
/** Whether to display the legend below the chart, default: false */
|
|
17
26
|
legend?: boolean;
|
|
27
|
+
/** Show debug overlay for development, default: false */
|
|
18
28
|
showDebugOverlay?: boolean;
|
|
29
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
19
30
|
fixedHeight?: number;
|
|
20
31
|
}
|
|
21
32
|
export interface Events {
|
|
@@ -11,20 +11,33 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
/** Chart data segments (set via JavaScript) */
|
|
15
|
+
data?: PolarChartDataItem[];
|
|
16
|
+
/** Custom segment colors (set via JavaScript) with fallback to theme palette */
|
|
17
|
+
colors?: string[];
|
|
16
18
|
priority?: Priority;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
/** Use single color for all sectors (uses first color from array, default: false) */
|
|
20
|
+
monochrome?: boolean;
|
|
21
|
+
/** Draw sectors as radial color bands from center outward using the colors array as threshold steps (default: false) */
|
|
22
|
+
discreteColorStops?: boolean;
|
|
23
|
+
/** When true, display sector labels from data (e.g. "Sector A"). When false, display angle values (0°, 30°, etc.). Default: false */
|
|
24
|
+
showSectorLabels?: boolean;
|
|
25
|
+
/** Whether to show unit in angle or outer labels, default: false */
|
|
26
|
+
showUnit?: boolean;
|
|
27
|
+
/** Show outer labels, default: false */
|
|
28
|
+
showOuterLabels?: boolean;
|
|
29
|
+
/** Unit string to append to outer labels, default: "°" */
|
|
30
|
+
outerLabelUnit?: string;
|
|
31
|
+
/** Maximum character length for labels before trim (0 = no limit), default: 0 */
|
|
32
|
+
outerLabelMaxLength?: number;
|
|
33
|
+
/** Number of decimal places in labels, default: 0 */
|
|
34
|
+
outerLabelDecimalPlaces?: number;
|
|
35
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
36
|
+
fixedHeight?: number;
|
|
37
|
+
/** Whether to display the legend below the chart, default: false */
|
|
38
|
+
legend?: boolean;
|
|
39
|
+
/** Show debug overlay for development, default: false */
|
|
40
|
+
showDebugOverlay?: boolean
|
|
28
41
|
}
|
|
29
42
|
export interface Events {
|
|
30
43
|
|
|
@@ -5,19 +5,32 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
+
/** Chart data segments (set via JavaScript) */
|
|
8
9
|
data?: PolarChartDataItem[];
|
|
10
|
+
/** Custom segment colors (set via JavaScript) with fallback to theme palette */
|
|
9
11
|
colors?: string[];
|
|
10
12
|
priority?: Priority;
|
|
13
|
+
/** Use single color for all sectors (uses first color from array, default: false) */
|
|
11
14
|
monochrome?: boolean;
|
|
15
|
+
/** Draw sectors as radial color bands from center outward using the colors array as threshold steps (default: false) */
|
|
12
16
|
discreteColorStops?: boolean;
|
|
17
|
+
/** When true, display sector labels from data (e.g. "Sector A"). When false, display angle values (0°, 30°, etc.). Default: false */
|
|
13
18
|
showSectorLabels?: boolean;
|
|
19
|
+
/** Whether to show unit in angle or outer labels, default: false */
|
|
14
20
|
showUnit?: boolean;
|
|
21
|
+
/** Show outer labels, default: false */
|
|
15
22
|
showOuterLabels?: boolean;
|
|
23
|
+
/** Unit string to append to outer labels, default: "°" */
|
|
16
24
|
outerLabelUnit?: string;
|
|
25
|
+
/** Maximum character length for labels before trim (0 = no limit), default: 0 */
|
|
17
26
|
outerLabelMaxLength?: number;
|
|
27
|
+
/** Number of decimal places in labels, default: 0 */
|
|
18
28
|
outerLabelDecimalPlaces?: number;
|
|
29
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
19
30
|
fixedHeight?: number;
|
|
31
|
+
/** Whether to display the legend below the chart, default: false */
|
|
20
32
|
legend?: boolean;
|
|
33
|
+
/** Show debug overlay for development, default: false */
|
|
21
34
|
showDebugOverlay?: boolean;
|
|
22
35
|
}
|
|
23
36
|
export interface Events {
|
|
@@ -9,15 +9,23 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
/** Array of values for each ring (set via JavaScript) */
|
|
13
|
+
data?: number[];
|
|
14
|
+
/** Custom ring colors (set via JavaScript) with fallback to theme palette */
|
|
15
|
+
colors?: string[];
|
|
14
16
|
priority?: Priority;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
/** Maximum value for calculating remaining empty area, default: 100 */
|
|
18
|
+
max?: number;
|
|
19
|
+
/** Arc span in degrees: 360 for full circle, 270 for 3/4 circle, default: 270 */
|
|
20
|
+
circumference?: number;
|
|
21
|
+
/** Whether to display the legend below the chart, default: false */
|
|
22
|
+
legend?: boolean;
|
|
23
|
+
/** Show debug overlay for development, default: false */
|
|
24
|
+
showDebugOverlay?: boolean;
|
|
25
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
26
|
+
fixedHeight?: number;
|
|
27
|
+
/** Minimum thickness of each ring in pixels, excluding borders, default: 16 */
|
|
28
|
+
minRingThickness?: number
|
|
21
29
|
}
|
|
22
30
|
export interface Events {
|
|
23
31
|
|
|
@@ -4,14 +4,22 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
+
/** Array of values for each ring (set via JavaScript) */
|
|
7
8
|
data?: number[];
|
|
9
|
+
/** Custom ring colors (set via JavaScript) with fallback to theme palette */
|
|
8
10
|
colors?: string[];
|
|
9
11
|
priority?: Priority;
|
|
12
|
+
/** Maximum value for calculating remaining empty area, default: 100 */
|
|
10
13
|
max?: number;
|
|
14
|
+
/** Arc span in degrees: 360 for full circle, 270 for 3/4 circle, default: 270 */
|
|
11
15
|
circumference?: number;
|
|
16
|
+
/** Whether to display the legend below the chart, default: false */
|
|
12
17
|
legend?: boolean;
|
|
18
|
+
/** Show debug overlay for development, default: false */
|
|
13
19
|
showDebugOverlay?: boolean;
|
|
20
|
+
/** Fixed height of the chart in pixels (determines chart circumference), default: 320. The chart's circumference is always based on this fixed height to match other radial instruments. */
|
|
14
21
|
fixedHeight?: number;
|
|
22
|
+
/** Minimum thickness of each ring in pixels, excluding borders, default: 16 */
|
|
15
23
|
minRingThickness?: number;
|
|
16
24
|
}
|
|
17
25
|
export interface Events {
|
|
@@ -9,26 +9,46 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
/** Hides the home button when true */
|
|
13
|
+
hideHomeButton?: boolean;
|
|
14
|
+
/** Toggles rendering of the clock slot */
|
|
15
|
+
showClock?: boolean;
|
|
16
|
+
/** Toggles visibility of link button */
|
|
17
|
+
showLinkButton?: boolean;
|
|
18
|
+
/** Activated state of link button */
|
|
19
|
+
linkButtonActivated?: boolean;
|
|
20
|
+
/** Toggles visibility of user button */
|
|
21
|
+
showUserButton?: boolean;
|
|
22
|
+
/** Activated state of user button */
|
|
23
|
+
userButtonActivated?: boolean;
|
|
24
|
+
/** Toggles visibility of dimming button */
|
|
25
|
+
showDimmingButton?: boolean;
|
|
26
|
+
/** Activated state of dimming button */
|
|
27
|
+
dimmingButtonActivated?: boolean;
|
|
28
|
+
/** Toggles visibility of system button */
|
|
29
|
+
showSystemButton?: boolean;
|
|
30
|
+
/** Activated state of system button */
|
|
31
|
+
systemButtonActivated?: boolean;
|
|
32
|
+
/** Toggles visibility of screen button */
|
|
33
|
+
showScreenButton?: boolean;
|
|
34
|
+
/** Activated state of screen button */
|
|
35
|
+
screenButtonActivated?: boolean;
|
|
36
|
+
/** Toggles visibility of notification button */
|
|
37
|
+
showNotificationButton?: boolean;
|
|
38
|
+
/** Activated state of notification button */
|
|
39
|
+
notificationButtonActivated?: boolean;
|
|
40
|
+
/** Toggles visibility of alert button */
|
|
41
|
+
showAlertButton?: boolean;
|
|
42
|
+
/** Activated state of alert button */
|
|
43
|
+
alertButtonActivated?: boolean;
|
|
44
|
+
/** Toggles visibility of fleet button */
|
|
45
|
+
showFleetButton?: boolean;
|
|
46
|
+
/** Selected state of fleet button */
|
|
47
|
+
fleetButtonSelected?: boolean;
|
|
48
|
+
/** Active state of fleet button while selection is pending */
|
|
49
|
+
fleetButtonActivated?: boolean;
|
|
50
|
+
/** Label for the fleet button */
|
|
51
|
+
fleetButtonLabel?: string
|
|
32
52
|
}
|
|
33
53
|
export interface Events {
|
|
34
54
|
onFleetButtonClick?: (event: CustomEvent<unknown>) => void;
|
|
@@ -3,25 +3,45 @@ import type { Snippet } from 'svelte';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
class?: string;
|
|
5
5
|
style?: string;
|
|
6
|
+
/** Hides the home button when true */
|
|
6
7
|
hideHomeButton?: boolean;
|
|
8
|
+
/** Toggles rendering of the clock slot */
|
|
7
9
|
showClock?: boolean;
|
|
10
|
+
/** Toggles visibility of link button */
|
|
8
11
|
showLinkButton?: boolean;
|
|
12
|
+
/** Activated state of link button */
|
|
9
13
|
linkButtonActivated?: boolean;
|
|
14
|
+
/** Toggles visibility of user button */
|
|
10
15
|
showUserButton?: boolean;
|
|
16
|
+
/** Activated state of user button */
|
|
11
17
|
userButtonActivated?: boolean;
|
|
18
|
+
/** Toggles visibility of dimming button */
|
|
12
19
|
showDimmingButton?: boolean;
|
|
20
|
+
/** Activated state of dimming button */
|
|
13
21
|
dimmingButtonActivated?: boolean;
|
|
22
|
+
/** Toggles visibility of system button */
|
|
14
23
|
showSystemButton?: boolean;
|
|
24
|
+
/** Activated state of system button */
|
|
15
25
|
systemButtonActivated?: boolean;
|
|
26
|
+
/** Toggles visibility of screen button */
|
|
16
27
|
showScreenButton?: boolean;
|
|
28
|
+
/** Activated state of screen button */
|
|
17
29
|
screenButtonActivated?: boolean;
|
|
30
|
+
/** Toggles visibility of notification button */
|
|
18
31
|
showNotificationButton?: boolean;
|
|
32
|
+
/** Activated state of notification button */
|
|
19
33
|
notificationButtonActivated?: boolean;
|
|
34
|
+
/** Toggles visibility of alert button */
|
|
20
35
|
showAlertButton?: boolean;
|
|
36
|
+
/** Activated state of alert button */
|
|
21
37
|
alertButtonActivated?: boolean;
|
|
38
|
+
/** Toggles visibility of fleet button */
|
|
22
39
|
showFleetButton?: boolean;
|
|
40
|
+
/** Selected state of fleet button */
|
|
23
41
|
fleetButtonSelected?: boolean;
|
|
42
|
+
/** Active state of fleet button while selection is pending */
|
|
24
43
|
fleetButtonActivated?: boolean;
|
|
44
|
+
/** Label for the fleet button */
|
|
25
45
|
fleetButtonLabel?: string;
|
|
26
46
|
}
|
|
27
47
|
export interface Events {
|
|
@@ -9,18 +9,30 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
/** Shows the `trailing-icon` slot. */
|
|
13
|
+
hasTrailingIcon?: boolean;
|
|
14
|
+
/** Shows the `trailing-icon2` slot. */
|
|
15
|
+
hasTrailingIcon2?: boolean;
|
|
16
|
+
/** Shows the `leading-icon` slot. */
|
|
17
|
+
hasLeadingIcon?: boolean;
|
|
18
|
+
/** Shows the `status` slot. */
|
|
19
|
+
hasStatus?: boolean;
|
|
20
|
+
/** List of readout items shown in the rich type. */
|
|
21
|
+
readouts?: IntegrationButtonReadout[];
|
|
22
|
+
/** Disables the internal button. */
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/** Applies active state styling while a selection is pending. */
|
|
25
|
+
activated?: boolean;
|
|
26
|
+
/** Applies selected state styling. */
|
|
27
|
+
selected?: boolean;
|
|
28
|
+
/** Shows a bottom divider under the button. */
|
|
29
|
+
dividerBottom?: boolean;
|
|
30
|
+
/** Shows a right divider to separate from adjacent buttons. */
|
|
31
|
+
dividerRight?: boolean;
|
|
32
|
+
/** Visual variant (`normal` or `flat`). */
|
|
33
|
+
variant?: IntegrationButtonVariant;
|
|
34
|
+
/** Layout type (`hug`, `regular`, or `rich`). */
|
|
35
|
+
type?: IntegrationButtonType
|
|
24
36
|
}
|
|
25
37
|
export interface Events {
|
|
26
38
|
onClick?: (event: CustomEvent<unknown>) => void
|
|
@@ -4,17 +4,29 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
+
/** Shows the `trailing-icon` slot. */
|
|
7
8
|
hasTrailingIcon?: boolean;
|
|
9
|
+
/** Shows the `trailing-icon2` slot. */
|
|
8
10
|
hasTrailingIcon2?: boolean;
|
|
11
|
+
/** Shows the `leading-icon` slot. */
|
|
9
12
|
hasLeadingIcon?: boolean;
|
|
13
|
+
/** Shows the `status` slot. */
|
|
10
14
|
hasStatus?: boolean;
|
|
15
|
+
/** List of readout items shown in the rich type. */
|
|
11
16
|
readouts?: IntegrationButtonReadout[];
|
|
17
|
+
/** Disables the internal button. */
|
|
12
18
|
disabled?: boolean;
|
|
19
|
+
/** Applies active state styling while a selection is pending. */
|
|
13
20
|
activated?: boolean;
|
|
21
|
+
/** Applies selected state styling. */
|
|
14
22
|
selected?: boolean;
|
|
23
|
+
/** Shows a bottom divider under the button. */
|
|
15
24
|
dividerBottom?: boolean;
|
|
25
|
+
/** Shows a right divider to separate from adjacent buttons. */
|
|
16
26
|
dividerRight?: boolean;
|
|
27
|
+
/** Visual variant (`normal` or `flat`). */
|
|
17
28
|
variant?: IntegrationButtonVariant;
|
|
29
|
+
/** Layout type (`hug`, `regular`, or `rich`). */
|
|
18
30
|
type?: IntegrationButtonType;
|
|
19
31
|
}
|
|
20
32
|
export interface Events {
|
|
@@ -15,23 +15,36 @@ import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dis
|
|
|
15
15
|
export interface Props {
|
|
16
16
|
class?: string;
|
|
17
17
|
style?: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
/** The current heading of the vessel in degrees. */
|
|
19
|
+
heading?: number;
|
|
20
|
+
/** The current course over ground in degrees. */
|
|
21
|
+
courseOverGround?: number;
|
|
22
|
+
/** The set point for the heading in degrees. */
|
|
23
|
+
headingSetpoint?: number | null;
|
|
21
24
|
newHeadingSetpoint?: number | undefined;
|
|
22
|
-
|
|
25
|
+
/** Indicates if the vessel is at the heading set point. */
|
|
26
|
+
atHeadingSetpoint?: boolean;
|
|
23
27
|
headingSetpointAtZeroDeadband?: number;
|
|
24
28
|
headingSetpointOverride?: boolean;
|
|
25
|
-
|
|
26
|
-
|
|
29
|
+
/** Enables automatic at heading set point calculation. */
|
|
30
|
+
autoAtHeadingSetpoint?: boolean;
|
|
31
|
+
/** The deadband for the heading set point in degrees. */
|
|
32
|
+
autoAtHeadingSetpointDeadband?: number;
|
|
27
33
|
animateSetpoint?: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
/** Indicates if the compass is being touched. */
|
|
35
|
+
touching?: boolean;
|
|
36
|
+
/** An array of angle advices for the compass. */
|
|
37
|
+
headingAdvices?: AngleAdvice[];
|
|
38
|
+
/** The wind speed in knots. */
|
|
39
|
+
currentWindSpeedKnots?: number | null;
|
|
40
|
+
/** The direction the wind is coming from in degrees. */
|
|
41
|
+
windFromDirection?: number | null;
|
|
42
|
+
/** The current speed, number of arrows. */
|
|
43
|
+
currentSpeed?: number | null;
|
|
44
|
+
/** The direction the current is coming from in degrees. */
|
|
45
|
+
currentFromDirection?: number | null;
|
|
46
|
+
/** The image of the vessel. */
|
|
47
|
+
vesselImage?: VesselImage;
|
|
35
48
|
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
36
49
|
Drives both the bar extent and (after multiplication by
|
|
37
50
|
`rotDotAnimationFactor`) the spinning dot animation.
|
|
@@ -41,9 +54,15 @@ rateOfTurnDegreesPerMinute?: number | undefined;
|
|
|
41
54
|
(not to the bar extent). Default `18` keeps the legacy visual feel
|
|
42
55
|
(≈1 rpm at 20°/min). */
|
|
43
56
|
rotDotAnimationFactor?: number;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
/** Legacy rate-of-turn input, in rotations per minute. When
|
|
58
|
+
`rateOfTurnDegreesPerMinute` is `undefined`, this value is used
|
|
59
|
+
(unconverted) as the fallback ROT, driving both the spinning dot ring
|
|
60
|
+
and the bar extent. */
|
|
61
|
+
rotationsPerMinute?: number;
|
|
62
|
+
/** ROT display mode: `'dots'` (spinning dots, default) or `'bar'` (a rate-of-turn arc anchored at the current heading, its length proportional to the rate of turn). */
|
|
63
|
+
rotType?: RotType;
|
|
64
|
+
/** ROT track position: `'innerCircle'` (default) or `'scale'` (on the outer ring). */
|
|
65
|
+
rotPosition?: RotPosition;
|
|
47
66
|
/** Bar-extent reference value in **degrees per minute**. The bar fills the
|
|
48
67
|
full ±`rotArcExtent` arc when the measured ROT equals ±`rotMaxValue`.
|
|
49
68
|
Default `60` aligns with ES-TRIN 2025/1 Art. 3.02.
|
|
@@ -57,7 +76,8 @@ rotMaxValue?: number;
|
|
|
57
76
|
rotAtZeroDeadband?: number;
|
|
58
77
|
direction?: CompassDirection;
|
|
59
78
|
state?: InstrumentState;
|
|
60
|
-
|
|
79
|
+
/** Color priority: `Priority.enhanced` uses the blue/enhanced color palette, `Priority.regular` (default) uses the standard palette. */
|
|
80
|
+
priority?: Priority;
|
|
61
81
|
priorityElements?: CompassPriorityElement[];
|
|
62
82
|
/** Show compass NSEW labels and north arrow. */
|
|
63
83
|
showLabels?: boolean;
|
|
@@ -7,22 +7,35 @@ import type { Snippet } from 'svelte';
|
|
|
7
7
|
export interface Props {
|
|
8
8
|
class?: string;
|
|
9
9
|
style?: string;
|
|
10
|
+
/** The current heading of the vessel in degrees. */
|
|
10
11
|
heading?: number;
|
|
12
|
+
/** The current course over ground in degrees. */
|
|
11
13
|
courseOverGround?: number;
|
|
14
|
+
/** The set point for the heading in degrees. */
|
|
12
15
|
headingSetpoint?: number | null;
|
|
13
16
|
newHeadingSetpoint?: number | undefined;
|
|
17
|
+
/** Indicates if the vessel is at the heading set point. */
|
|
14
18
|
atHeadingSetpoint?: boolean;
|
|
15
19
|
headingSetpointAtZeroDeadband?: number;
|
|
16
20
|
headingSetpointOverride?: boolean;
|
|
21
|
+
/** Enables automatic at heading set point calculation. */
|
|
17
22
|
autoAtHeadingSetpoint?: boolean;
|
|
23
|
+
/** The deadband for the heading set point in degrees. */
|
|
18
24
|
autoAtHeadingSetpointDeadband?: number;
|
|
19
25
|
animateSetpoint?: boolean;
|
|
26
|
+
/** Indicates if the compass is being touched. */
|
|
20
27
|
touching?: boolean;
|
|
28
|
+
/** An array of angle advices for the compass. */
|
|
21
29
|
headingAdvices?: AngleAdvice[];
|
|
30
|
+
/** The wind speed in knots. */
|
|
22
31
|
currentWindSpeedKnots?: number | null;
|
|
32
|
+
/** The direction the wind is coming from in degrees. */
|
|
23
33
|
windFromDirection?: number | null;
|
|
34
|
+
/** The current speed, number of arrows. */
|
|
24
35
|
currentSpeed?: number | null;
|
|
36
|
+
/** The direction the current is coming from in degrees. */
|
|
25
37
|
currentFromDirection?: number | null;
|
|
38
|
+
/** The image of the vessel. */
|
|
26
39
|
vesselImage?: VesselImage;
|
|
27
40
|
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
28
41
|
Drives both the bar extent and (after multiplication by
|
|
@@ -33,8 +46,14 @@ When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
|
|
|
33
46
|
(not to the bar extent). Default `18` keeps the legacy visual feel
|
|
34
47
|
(≈1 rpm at 20°/min). */
|
|
35
48
|
rotDotAnimationFactor?: number;
|
|
49
|
+
/** Legacy rate-of-turn input, in rotations per minute. When
|
|
50
|
+
`rateOfTurnDegreesPerMinute` is `undefined`, this value is used
|
|
51
|
+
(unconverted) as the fallback ROT, driving both the spinning dot ring
|
|
52
|
+
and the bar extent. */
|
|
36
53
|
rotationsPerMinute?: number;
|
|
54
|
+
/** ROT display mode: `'dots'` (spinning dots, default) or `'bar'` (a rate-of-turn arc anchored at the current heading, its length proportional to the rate of turn). */
|
|
37
55
|
rotType?: RotType;
|
|
56
|
+
/** ROT track position: `'innerCircle'` (default) or `'scale'` (on the outer ring). */
|
|
38
57
|
rotPosition?: RotPosition;
|
|
39
58
|
/** Bar-extent reference value in **degrees per minute**. The bar fills the
|
|
40
59
|
full ±`rotArcExtent` arc when the measured ROT equals ±`rotMaxValue`.
|
|
@@ -49,6 +68,7 @@ the physical ROT API was introduced. */
|
|
|
49
68
|
rotAtZeroDeadband?: number;
|
|
50
69
|
direction?: CompassDirection;
|
|
51
70
|
state?: InstrumentState;
|
|
71
|
+
/** Color priority: `Priority.enhanced` uses the blue/enhanced color palette, `Priority.regular` (default) uses the standard palette. */
|
|
52
72
|
priority?: Priority;
|
|
53
73
|
priorityElements?: CompassPriorityElement[];
|
|
54
74
|
/** Show compass NSEW labels and north arrow. */
|
|
@@ -14,25 +14,30 @@ import type {RotType} from '@oicl/openbridge-webcomponents/dist/navigation-instr
|
|
|
14
14
|
class?: string;
|
|
15
15
|
style?: string;
|
|
16
16
|
FOVIndicator?: boolean;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/** Current heading in degrees. */
|
|
18
|
+
heading?: number;
|
|
19
|
+
/** Current COG in degrees. */
|
|
20
|
+
courseOverGround?: number;
|
|
19
21
|
tickInterval?: number;
|
|
20
22
|
FOV?: number;
|
|
21
23
|
minFOV?: number;
|
|
22
24
|
maxFOV?: number;
|
|
23
25
|
priority?: Priority;
|
|
24
26
|
priorityElements?: CompassFlatPriorityElement[];
|
|
25
|
-
|
|
27
|
+
/** ROT display mode: `'dots'`, `'bar'`, or `undefined` (hidden). */
|
|
28
|
+
rotType?: RotType | undefined;
|
|
26
29
|
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
27
30
|
When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
|
|
28
31
|
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
29
32
|
/** Visual amplification applied only to the spinning dot animation. */
|
|
30
33
|
rotDotAnimationFactor?: number;
|
|
31
|
-
|
|
34
|
+
/** **Deprecated.** Use `rateOfTurnDegreesPerMinute` instead. */
|
|
35
|
+
rotationsPerMinute?: number;
|
|
32
36
|
/** Bar-extent reference value in **degrees per minute**. Default `60`
|
|
33
37
|
per ES-TRIN 2025/1 Art. 3.02. */
|
|
34
38
|
rotMaxValue?: number;
|
|
35
|
-
|
|
39
|
+
/** Degrees of bar arc per max-value ROT (default 60). */
|
|
40
|
+
rotArcExtent?: number;
|
|
36
41
|
rotPortStarboard?: boolean;
|
|
37
42
|
rotAtZeroDeadband?: number
|
|
38
43
|
}
|
|
@@ -7,7 +7,9 @@ export interface Props {
|
|
|
7
7
|
class?: string;
|
|
8
8
|
style?: string;
|
|
9
9
|
FOVIndicator?: boolean;
|
|
10
|
+
/** Current heading in degrees. */
|
|
10
11
|
heading?: number;
|
|
12
|
+
/** Current COG in degrees. */
|
|
11
13
|
courseOverGround?: number;
|
|
12
14
|
tickInterval?: number;
|
|
13
15
|
FOV?: number;
|
|
@@ -15,16 +17,19 @@ export interface Props {
|
|
|
15
17
|
maxFOV?: number;
|
|
16
18
|
priority?: Priority;
|
|
17
19
|
priorityElements?: CompassFlatPriorityElement[];
|
|
20
|
+
/** ROT display mode: `'dots'`, `'bar'`, or `undefined` (hidden). */
|
|
18
21
|
rotType?: RotType | undefined;
|
|
19
22
|
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
20
23
|
When `undefined`, falls back to the deprecated `rotationsPerMinute`. */
|
|
21
24
|
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
22
25
|
/** Visual amplification applied only to the spinning dot animation. */
|
|
23
26
|
rotDotAnimationFactor?: number;
|
|
27
|
+
/** **Deprecated.** Use `rateOfTurnDegreesPerMinute` instead. */
|
|
24
28
|
rotationsPerMinute?: number;
|
|
25
29
|
/** Bar-extent reference value in **degrees per minute**. Default `60`
|
|
26
30
|
per ES-TRIN 2025/1 Art. 3.02. */
|
|
27
31
|
rotMaxValue?: number;
|
|
32
|
+
/** Degrees of bar arc per max-value ROT (default 60). */
|
|
28
33
|
rotArcExtent?: number;
|
|
29
34
|
rotPortStarboard?: boolean;
|
|
30
35
|
rotAtZeroDeadband?: number;
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
|
|
12
|
+
/** The data to display in the graph, first array is the x values, second array is the y values */
|
|
13
|
+
data?: [number[], number[]];
|
|
13
14
|
minY?: number | undefined;
|
|
14
15
|
maxY?: number | undefined
|
|
15
16
|
}
|
|
@@ -3,6 +3,7 @@ import type { Snippet } from 'svelte';
|
|
|
3
3
|
export interface Props {
|
|
4
4
|
class?: string;
|
|
5
5
|
style?: string;
|
|
6
|
+
/** The data to display in the graph, first array is the x values, second array is the y values */
|
|
6
7
|
data?: [number[], number[]];
|
|
7
8
|
minY?: number | undefined;
|
|
8
9
|
maxY?: number | undefined;
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
|
|
12
|
+
/** The data to display in the graph, first array is the x values, second array is the y values */
|
|
13
|
+
data?: [number[], number[]];
|
|
13
14
|
layout?: ObcIndicatorGraphLayout
|
|
14
15
|
}
|
|
15
16
|
export interface Events {
|
|
@@ -4,6 +4,7 @@ import type { Snippet } from 'svelte';
|
|
|
4
4
|
export interface Props {
|
|
5
5
|
class?: string;
|
|
6
6
|
style?: string;
|
|
7
|
+
/** The data to display in the graph, first array is the x values, second array is the y values */
|
|
7
8
|
data?: [number[], number[]];
|
|
8
9
|
layout?: ObcIndicatorGraphLayout;
|
|
9
10
|
}
|
|
@@ -19,16 +19,23 @@ import type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/nav
|
|
|
19
19
|
export interface Props {
|
|
20
20
|
class?: string;
|
|
21
21
|
style?: string;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/** Instrument state (active, loading, off) */
|
|
23
|
+
state?: InstrumentState;
|
|
24
|
+
/** Color priority (enhanced = blue palette, regular = gray palette) */
|
|
25
|
+
priority?: Priority;
|
|
24
26
|
watchCircleType?: WatchCircleType;
|
|
25
27
|
northArrow?: boolean;
|
|
26
28
|
northArrowInside?: boolean | undefined;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
/** Setpoint angle in degrees (0° = 12 o'clock) */
|
|
30
|
+
angleSetpoint?: number | undefined;
|
|
31
|
+
/** New setpoint being adjusted (focus mode) */
|
|
32
|
+
newAngleSetpoint?: number | undefined;
|
|
33
|
+
/** Whether value matches setpoint (within deadband) */
|
|
34
|
+
atAngleSetpoint?: boolean;
|
|
35
|
+
/** Deadband for zero detection (default 0.5°) */
|
|
36
|
+
angleSetpointAtZeroDeadband?: number;
|
|
37
|
+
/** Override to derive setpoint color from priority regardless of state */
|
|
38
|
+
setpointOverride?: boolean;
|
|
32
39
|
touching?: boolean;
|
|
33
40
|
animateSetpoint?: boolean;
|
|
34
41
|
padding?: number | undefined;
|
|
@@ -67,17 +74,25 @@ endLabelsMaxMin?: boolean;
|
|
|
67
74
|
scaleWindIcon?: number;
|
|
68
75
|
rotation?: number | undefined;
|
|
69
76
|
zoomToFitArc?: boolean;
|
|
70
|
-
|
|
77
|
+
/** 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. */
|
|
78
|
+
arcFrame?: ZoomToFitArcFrame | undefined;
|
|
71
79
|
tickFadeAngle?: number;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
80
|
+
/** ROT visualization type: `'dots'` (spinning dots) or `'bar'` (arc bar with clipped dots). Undefined hides the ROT layer. */
|
|
81
|
+
rotType?: RotType | undefined;
|
|
82
|
+
/** Track on which ROT elements are placed: `'scale'` (on the outer ring) or `'innerCircle'` (default, inside the inner ring) */
|
|
83
|
+
rotPosition?: RotPosition;
|
|
84
|
+
/** Start angle of the ROT bar arc in degrees (0° = 12 o'clock, clockwise). Only used when `rotType` is `'bar'`. */
|
|
85
|
+
rotStartAngle?: number;
|
|
86
|
+
/** End angle of the ROT bar arc in degrees. The bar is hidden when the difference from `rotStartAngle` is less than 0.1°. */
|
|
87
|
+
rotEndAngle?: number;
|
|
88
|
+
/** 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). */
|
|
89
|
+
rotPriority?: Priority | undefined;
|
|
77
90
|
rotPortStarboard?: boolean;
|
|
78
91
|
rotAtZeroDeadband?: number;
|
|
79
|
-
|
|
80
|
-
|
|
92
|
+
/** 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. */
|
|
93
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
94
|
+
/** 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). */
|
|
95
|
+
rotDotAnimationFactor?: number
|
|
81
96
|
}
|
|
82
97
|
export interface Events {
|
|
83
98
|
|
|
@@ -9,15 +9,22 @@ import type { Snippet } from 'svelte';
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
+
/** Instrument state (active, loading, off) */
|
|
12
13
|
state?: InstrumentState;
|
|
14
|
+
/** Color priority (enhanced = blue palette, regular = gray palette) */
|
|
13
15
|
priority?: Priority;
|
|
14
16
|
watchCircleType?: WatchCircleType;
|
|
15
17
|
northArrow?: boolean;
|
|
16
18
|
northArrowInside?: boolean | undefined;
|
|
19
|
+
/** Setpoint angle in degrees (0° = 12 o'clock) */
|
|
17
20
|
angleSetpoint?: number | undefined;
|
|
21
|
+
/** New setpoint being adjusted (focus mode) */
|
|
18
22
|
newAngleSetpoint?: number | undefined;
|
|
23
|
+
/** Whether value matches setpoint (within deadband) */
|
|
19
24
|
atAngleSetpoint?: boolean;
|
|
25
|
+
/** Deadband for zero detection (default 0.5°) */
|
|
20
26
|
angleSetpointAtZeroDeadband?: number;
|
|
27
|
+
/** Override to derive setpoint color from priority regardless of state */
|
|
21
28
|
setpointOverride?: boolean;
|
|
22
29
|
touching?: boolean;
|
|
23
30
|
animateSetpoint?: boolean;
|
|
@@ -57,16 +64,24 @@ Currently only used by the 180° sector of `obc-gauge-radial`. */
|
|
|
57
64
|
scaleWindIcon?: number;
|
|
58
65
|
rotation?: number | undefined;
|
|
59
66
|
zoomToFitArc?: boolean;
|
|
67
|
+
/** 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. */
|
|
60
68
|
arcFrame?: ZoomToFitArcFrame | undefined;
|
|
61
69
|
tickFadeAngle?: number;
|
|
70
|
+
/** ROT visualization type: `'dots'` (spinning dots) or `'bar'` (arc bar with clipped dots). Undefined hides the ROT layer. */
|
|
62
71
|
rotType?: RotType | undefined;
|
|
72
|
+
/** Track on which ROT elements are placed: `'scale'` (on the outer ring) or `'innerCircle'` (default, inside the inner ring) */
|
|
63
73
|
rotPosition?: RotPosition;
|
|
74
|
+
/** Start angle of the ROT bar arc in degrees (0° = 12 o'clock, clockwise). Only used when `rotType` is `'bar'`. */
|
|
64
75
|
rotStartAngle?: number;
|
|
76
|
+
/** End angle of the ROT bar arc in degrees. The bar is hidden when the difference from `rotStartAngle` is less than 0.1°. */
|
|
65
77
|
rotEndAngle?: number;
|
|
78
|
+
/** 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). */
|
|
66
79
|
rotPriority?: Priority | undefined;
|
|
67
80
|
rotPortStarboard?: boolean;
|
|
68
81
|
rotAtZeroDeadband?: number;
|
|
82
|
+
/** 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. */
|
|
69
83
|
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
84
|
+
/** 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). */
|
|
70
85
|
rotDotAnimationFactor?: number;
|
|
71
86
|
}
|
|
72
87
|
export interface Events {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oicl/openbridge-webcomponents-svelte",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.102",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "vite build && npm run prepack",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oicl/openbridge-webcomponents": "^2.0.0-next.
|
|
34
|
+
"@oicl/openbridge-webcomponents": "^2.0.0-next.101"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|