@oicl/openbridge-webcomponents-svelte 2.0.0-next.3 → 2.0.0-next.31
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/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte +10 -10
- package/dist/ar/chart-object-vessel-button/ObcChartObjectVesselButton.svelte.d.ts +3 -3
- package/dist/ar/{building-blocks/poi → poi}/ObcPoi.svelte +6 -6
- package/dist/ar/{building-blocks/poi → poi}/ObcPoi.svelte.d.ts +3 -3
- package/dist/ar/{poi-aton → poi}/ObcPoiAton.svelte +6 -4
- package/dist/ar/{poi-aton → poi}/ObcPoiAton.svelte.d.ts +5 -4
- package/dist/ar/{poi-data → poi}/ObcPoiData.svelte +5 -5
- package/dist/ar/{poi-data → poi}/ObcPoiData.svelte.d.ts +6 -6
- package/dist/ar/{poi-vessel → poi}/ObcPoiVessel.svelte +3 -3
- package/dist/ar/{poi-vessel → poi}/ObcPoiVessel.svelte.d.ts +2 -2
- package/dist/ar/{building-blocks/poi/ObcPoiBase.svelte → poi/PoiBase.svelte} +9 -10
- package/dist/ar/{building-blocks/poi/ObcPoiBase.svelte.d.ts → poi/PoiBase.svelte.d.ts} +8 -9
- package/dist/ar/{building-blocks/poi-button → poi-button}/ObcPoiButton.svelte +4 -4
- package/dist/ar/{building-blocks/poi-button → poi-button}/ObcPoiButton.svelte.d.ts +2 -2
- package/dist/ar/{poi-button-aton → poi-button}/ObcPoiButtonAton.svelte +6 -4
- package/dist/ar/{poi-button-aton → poi-button}/ObcPoiButtonAton.svelte.d.ts +5 -4
- package/dist/ar/{poi-button-data → poi-button}/ObcPoiButtonData.svelte +5 -5
- package/dist/ar/{poi-button-data → poi-button}/ObcPoiButtonData.svelte.d.ts +6 -6
- package/dist/ar/{poi-button-vessel → poi-button}/ObcPoiButtonVessel.svelte +3 -3
- package/dist/ar/{poi-button-vessel → poi-button}/ObcPoiButtonVessel.svelte.d.ts +2 -2
- package/dist/ar/poi-controller/ObcPoiController.svelte +14 -5
- package/dist/ar/poi-controller/ObcPoiController.svelte.d.ts +2 -1
- package/dist/ar/{building-blocks/poi-object/ObcAbstractPoiObject.svelte → poi-object/AbstractPoiObject.svelte} +5 -5
- package/dist/ar/poi-object/AbstractPoiObject.svelte.d.ts +22 -0
- package/dist/ar/{building-blocks/poi-object → poi-object}/ObcPoiObject.svelte +4 -4
- package/dist/ar/{building-blocks/poi-object → poi-object}/ObcPoiObject.svelte.d.ts +2 -2
- package/dist/ar/{poi-object-aton → poi-object}/ObcPoiObjectAton.svelte +3 -3
- package/dist/ar/{poi-object-aton → poi-object}/ObcPoiObjectAton.svelte.d.ts +2 -2
- package/dist/ar/{poi-object-data → poi-object}/ObcPoiObjectData.svelte +3 -3
- package/dist/ar/{poi-object-data → poi-object}/ObcPoiObjectData.svelte.d.ts +2 -2
- package/dist/ar/{poi-object-vessel → poi-object}/ObcPoiObjectVessel.svelte +3 -3
- package/dist/ar/{poi-object-vessel → poi-object}/ObcPoiObjectVessel.svelte.d.ts +2 -2
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte +7 -6
- package/dist/automation/automation-button/ObcAbstractAutomationButton.svelte.d.ts +10 -6
- package/dist/automation/automation-button/ObcAutomationButton.svelte +3 -4
- package/dist/automation/automation-button/ObcAutomationButton.svelte.d.ts +2 -4
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte +5 -3
- package/dist/bars-graphs/donut-chart/ObcDonutChart.svelte.d.ts +3 -4
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte +5 -3
- package/dist/bars-graphs/pie-chart/ObcPieChart.svelte.d.ts +3 -8
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte +5 -3
- package/dist/bars-graphs/polar-chart/ObcPolarChart.svelte.d.ts +3 -4
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte +3 -3
- package/dist/building-blocks/bar-horizontal/ObcBarHorizontal.svelte.d.ts +3 -8
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte +3 -3
- package/dist/building-blocks/bar-vertical/ObcBarVertical.svelte.d.ts +3 -8
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte +6 -6
- package/dist/building-blocks/chart-line/ObcChartLineBase.svelte.d.ts +6 -13
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte +7 -7
- package/dist/components/advice-floating-item/ObcAdviceFloatingItem.svelte.d.ts +2 -2
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte +13 -13
- package/dist/components/advice-message-item/ObcAdviceMessageItem.svelte.d.ts +4 -4
- package/dist/components/alert-menu/ObcAlertMenu.svelte +11 -1
- package/dist/components/alert-menu/ObcAlertMenu.svelte.d.ts +10 -0
- package/dist/components/automation-button-readout-stack/ObcAutomationButtonReadoutStack.svelte +4 -5
- package/dist/components/automation-button-readout-stack/ObcAutomationButtonReadoutStack.svelte.d.ts +2 -4
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte +4 -4
- package/dist/components/context-menu-input/ObcContextMenuInput.svelte.d.ts +6 -10
- package/dist/components/dropdown-button/ObcDropdownButton.svelte +3 -3
- package/dist/components/dropdown-button/ObcDropdownButton.svelte.d.ts +3 -6
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte +4 -4
- package/dist/components/elevated-card-radio/ObcElevatedCardRadio.svelte.d.ts +1 -1
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte +3 -3
- package/dist/components/elevated-card-radio-group/ObcElevatedCardRadioGroup.svelte.d.ts +3 -5
- package/dist/components/floating-item/ObcFloatingItem.svelte +7 -7
- package/dist/components/floating-item/ObcFloatingItem.svelte.d.ts +2 -2
- package/dist/components/form-container/ObcFormContainer.svelte +4 -4
- package/dist/components/form-container/ObcFormContainer.svelte.d.ts +1 -1
- package/dist/components/menu-button/ObcMenuButton.svelte +6 -4
- package/dist/components/menu-button/ObcMenuButton.svelte.d.ts +5 -8
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte +7 -7
- package/dist/components/message-menu-item/ObcMessageMenuItem.svelte.d.ts +2 -2
- package/dist/components/modal-window/ObcModalWindow.svelte +5 -1
- package/dist/components/modal-window/ObcModalWindow.svelte.d.ts +4 -0
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte +7 -7
- package/dist/components/notification-floating-item/ObcNotificationFloatingItem.svelte.d.ts +2 -2
- package/dist/components/slider-double/ObcSliderDouble.svelte +34 -3
- package/dist/components/slider-double/ObcSliderDouble.svelte.d.ts +19 -0
- package/dist/components/split-button/ObcSplitButton.svelte +6 -4
- package/dist/components/split-button/ObcSplitButton.svelte.d.ts +5 -9
- package/dist/components/tab-item/ObcTabItem.svelte +4 -4
- package/dist/components/tab-item/ObcTabItem.svelte.d.ts +1 -1
- package/dist/components/title-container/ObcTitleContainer.svelte +4 -4
- package/dist/components/title-container/ObcTitleContainer.svelte.d.ts +1 -1
- package/dist/index.d.ts +27 -14
- package/dist/index.js +27 -14
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte +3 -5
- package/dist/integration-systems/integration-dropdown-button/ObcIntegrationDropdownButton.svelte.d.ts +3 -10
- package/dist/navigation-instruments/compass/ObcCompass.svelte +17 -1
- package/dist/navigation-instruments/compass/ObcCompass.svelte.d.ts +16 -0
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte +8 -1
- package/dist/navigation-instruments/compass-flat/ObcCompassFlat.svelte.d.ts +7 -0
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte +4 -4
- package/dist/navigation-instruments/compass-indicator/ObcCompassIndicator.svelte.d.ts +5 -4
- package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte +16 -1
- package/dist/navigation-instruments/compass-sector/ObcCompassSector.svelte.d.ts +15 -0
- package/dist/navigation-instruments/depth-indicator/ObcDepthIndicator.svelte +33 -0
- package/dist/navigation-instruments/depth-indicator/ObcDepthIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/gauge-bar-indicator/ObcGaugeBarIndicator.svelte +34 -0
- package/dist/navigation-instruments/gauge-bar-indicator/ObcGaugeBarIndicator.svelte.d.ts +18 -0
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte +3 -3
- package/dist/navigation-instruments/gauge-horizontal/ObcGaugeHorizontal.svelte.d.ts +3 -8
- package/dist/navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte +40 -0
- package/dist/navigation-instruments/gauge-radial-indicator/ObcGaugeRadialIndicator.svelte.d.ts +25 -0
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte +3 -3
- package/dist/navigation-instruments/gauge-trend/ObcGaugeTrend.svelte.d.ts +3 -8
- package/dist/navigation-instruments/gauge-trend-indicator/ObcGaugeTrendIndicator.svelte +38 -0
- package/dist/navigation-instruments/gauge-trend-indicator/ObcGaugeTrendIndicator.svelte.d.ts +25 -0
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte +3 -3
- package/dist/navigation-instruments/gauge-vertical/ObcGaugeVertical.svelte.d.ts +3 -8
- package/dist/navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte +35 -0
- package/dist/navigation-instruments/heading-indicator/ObcHeadingIndicator.svelte.d.ts +22 -0
- package/dist/navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte +33 -0
- package/dist/navigation-instruments/heave-indicator/ObcHeaveIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte +38 -0
- package/dist/navigation-instruments/main-engine-indicator/ObcMainEngineIndicator.svelte.d.ts +26 -0
- package/dist/navigation-instruments/pitch/ObcPitch.svelte +12 -1
- package/dist/navigation-instruments/pitch/ObcPitch.svelte.d.ts +11 -0
- package/dist/navigation-instruments/pitch-indicator/ObcPitchIndicator.svelte +33 -0
- package/dist/navigation-instruments/pitch-indicator/ObcPitchIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte +13 -1
- package/dist/navigation-instruments/pitch-roll/ObcPitchRoll.svelte.d.ts +12 -0
- package/dist/navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte +38 -0
- package/dist/navigation-instruments/propulsion-azimuth-indicator/ObcPropulsionAzimuthIndicator.svelte.d.ts +25 -0
- package/dist/navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte +35 -0
- package/dist/navigation-instruments/propulsion-tunnel-thruster/ObcTunnelThruster.svelte.d.ts +19 -0
- package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte +6 -0
- package/dist/navigation-instruments/rate-of-turn/ObcRateOfTurn.svelte.d.ts +6 -0
- package/dist/navigation-instruments/roll/ObcRoll.svelte +13 -1
- package/dist/navigation-instruments/roll/ObcRoll.svelte.d.ts +12 -0
- package/dist/navigation-instruments/roll-indicator/ObcRollIndicator.svelte +33 -0
- package/dist/navigation-instruments/roll-indicator/ObcRollIndicator.svelte.d.ts +20 -0
- package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte +13 -2
- package/dist/navigation-instruments/rot-indicator/ObcRotIndicator.svelte.d.ts +15 -1
- package/dist/navigation-instruments/rudder-indicator/ObcRudderIndicator.svelte +35 -0
- package/dist/navigation-instruments/rudder-indicator/ObcRudderIndicator.svelte.d.ts +22 -0
- package/dist/navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte +5 -3
- package/dist/navigation-instruments/speed-indicator/ObcSpeedIndicator.svelte.d.ts +6 -1
- package/dist/navigation-instruments/watch/ObcWatch.svelte +3 -1
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +2 -0
- package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte +3 -1
- package/dist/navigation-instruments/watch-flat/ObcWatchFlat.svelte.d.ts +2 -0
- package/dist/navigation-instruments/wind/ObcWind.svelte +6 -3
- package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +5 -1
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte +18 -8
- package/dist/navigation-instruments/wind-indicator/ObcWindIndicator.svelte.d.ts +21 -6
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte +62 -0
- package/dist/navigation-instruments/wind-propulsion/ObcWindPropulsion.svelte.d.ts +51 -0
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte +5 -3
- package/dist/pages/alert-list-page-small/ObcAlertListPageSmall.svelte.d.ts +1 -0
- package/package.json +2 -2
- package/dist/ar/building-blocks/poi-object/ObcAbstractPoiObject.svelte.d.ts +0 -21
|
@@ -21,12 +21,24 @@ import type {PitchRollPriorityElement} from '@oicl/openbridge-webcomponents/dist
|
|
|
21
21
|
maxAvgRoll?: number;
|
|
22
22
|
vesselImageFore?: VesselImage;
|
|
23
23
|
vesselImageSide?: VesselImage;
|
|
24
|
+
scaleForeImage?: number;
|
|
24
25
|
maxPitchAdvice?: number | undefined;
|
|
25
26
|
maxRollAdvice?: number | undefined;
|
|
26
27
|
triggerPitchAdvice?: boolean;
|
|
27
28
|
triggerRollAdvice?: boolean;
|
|
28
29
|
priority?: Priority;
|
|
29
|
-
priorityElements?: PitchRollPriorityElement[]
|
|
30
|
+
priorityElements?: PitchRollPriorityElement[];
|
|
31
|
+
zoomToFitArc?: boolean;
|
|
32
|
+
/** Half-extent of each of the four watch arcs in degrees, measured from the
|
|
33
|
+
arc's natural center (0°/90°/180°/270°). Each arc spans
|
|
34
|
+
`center ± arcAngle`. Default `30` reproduces the historical 60°-wide
|
|
35
|
+
arcs; smaller values produce narrower arcs that, combined with
|
|
36
|
+
`zoomToFitArc`, reveal more detail in the relevant motion range. */
|
|
37
|
+
arcAngle?: number;
|
|
38
|
+
/** [object Object],[object Object],[object Object] */
|
|
39
|
+
pitchArcAngle?: number | undefined;
|
|
40
|
+
/** [object Object],[object Object],[object Object] */
|
|
41
|
+
rollArcAngle?: number | undefined
|
|
30
42
|
}
|
|
31
43
|
export interface Events {
|
|
32
44
|
|
|
@@ -14,12 +14,24 @@ export interface Props {
|
|
|
14
14
|
maxAvgRoll?: number;
|
|
15
15
|
vesselImageFore?: VesselImage;
|
|
16
16
|
vesselImageSide?: VesselImage;
|
|
17
|
+
scaleForeImage?: number;
|
|
17
18
|
maxPitchAdvice?: number | undefined;
|
|
18
19
|
maxRollAdvice?: number | undefined;
|
|
19
20
|
triggerPitchAdvice?: boolean;
|
|
20
21
|
triggerRollAdvice?: boolean;
|
|
21
22
|
priority?: Priority;
|
|
22
23
|
priorityElements?: PitchRollPriorityElement[];
|
|
24
|
+
zoomToFitArc?: boolean;
|
|
25
|
+
/** Half-extent of each of the four watch arcs in degrees, measured from the
|
|
26
|
+
arc's natural center (0°/90°/180°/270°). Each arc spans
|
|
27
|
+
`center ± arcAngle`. Default `30` reproduces the historical 60°-wide
|
|
28
|
+
arcs; smaller values produce narrower arcs that, combined with
|
|
29
|
+
`zoomToFitArc`, reveal more detail in the relevant motion range. */
|
|
30
|
+
arcAngle?: number;
|
|
31
|
+
/** [object Object],[object Object],[object Object] */
|
|
32
|
+
pitchArcAngle?: number | undefined;
|
|
33
|
+
/** [object Object],[object Object],[object Object] */
|
|
34
|
+
rollArcAngle?: number | undefined;
|
|
23
35
|
}
|
|
24
36
|
export interface Events {
|
|
25
37
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {PropulsionAzimuthIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-azimuth-indicator/propulsion-azimuth-indicator.js';
|
|
4
|
+
export type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-azimuth-indicator/propulsion-azimuth-indicator.js';
|
|
6
|
+
import { setProperties } from "../../util.js";
|
|
7
|
+
import type {PropulsionAzimuthIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-azimuth-indicator/propulsion-azimuth-indicator.js';
|
|
8
|
+
import type {InstrumentState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
9
|
+
import type { Snippet } from 'svelte';
|
|
10
|
+
|
|
11
|
+
export interface Props {
|
|
12
|
+
class?: string;
|
|
13
|
+
style?: string;
|
|
14
|
+
type?: PropulsionAzimuthIndicatorType;
|
|
15
|
+
hasSilhouette?: boolean;
|
|
16
|
+
azimuth?: number;
|
|
17
|
+
value?: number;
|
|
18
|
+
state?: InstrumentState
|
|
19
|
+
}
|
|
20
|
+
export interface Events {
|
|
21
|
+
|
|
22
|
+
}
|
|
23
|
+
export interface Slots {
|
|
24
|
+
children?: Snippet
|
|
25
|
+
}
|
|
26
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
27
|
+
|
|
28
|
+
</script>
|
|
29
|
+
<obc-propulsion-azimuth-indicator
|
|
30
|
+
use:setProperties={props}
|
|
31
|
+
class={className}
|
|
32
|
+
style={style}
|
|
33
|
+
>
|
|
34
|
+
|
|
35
|
+
{#if children}
|
|
36
|
+
{@render children()}
|
|
37
|
+
{/if}
|
|
38
|
+
</obc-propulsion-azimuth-indicator>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-azimuth-indicator/propulsion-azimuth-indicator.js';
|
|
2
|
+
import type { PropulsionAzimuthIndicatorType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-azimuth-indicator/propulsion-azimuth-indicator.js';
|
|
3
|
+
import type { InstrumentState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
+
import type { Snippet } from 'svelte';
|
|
5
|
+
export interface Props {
|
|
6
|
+
class?: string;
|
|
7
|
+
style?: string;
|
|
8
|
+
type?: PropulsionAzimuthIndicatorType;
|
|
9
|
+
hasSilhouette?: boolean;
|
|
10
|
+
azimuth?: number;
|
|
11
|
+
value?: number;
|
|
12
|
+
state?: InstrumentState;
|
|
13
|
+
}
|
|
14
|
+
export interface Events {
|
|
15
|
+
}
|
|
16
|
+
export interface Slots {
|
|
17
|
+
children?: Snippet;
|
|
18
|
+
}
|
|
19
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
20
|
+
declare const ObcPropulsionAzimuthIndicator: import("svelte").Component<$$ComponentProps, {
|
|
21
|
+
PropulsionAzimuthIndicatorType: typeof PropulsionAzimuthIndicatorType;
|
|
22
|
+
InstrumentState: typeof InstrumentState;
|
|
23
|
+
}, "">;
|
|
24
|
+
type ObcPropulsionAzimuthIndicator = ReturnType<typeof ObcPropulsionAzimuthIndicator>;
|
|
25
|
+
export default ObcPropulsionAzimuthIndicator;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-tunnel-thruster/propulsion-tunnel-thruster.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
value?: number;
|
|
13
|
+
thrust?: number;
|
|
14
|
+
state?: string;
|
|
15
|
+
hasSilhouette?: boolean
|
|
16
|
+
}
|
|
17
|
+
export interface Events {
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
export interface Slots {
|
|
21
|
+
children?: Snippet
|
|
22
|
+
}
|
|
23
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
24
|
+
|
|
25
|
+
</script>
|
|
26
|
+
<obc-tunnel-thruster
|
|
27
|
+
use:setProperties={props}
|
|
28
|
+
class={className}
|
|
29
|
+
style={style}
|
|
30
|
+
>
|
|
31
|
+
|
|
32
|
+
{#if children}
|
|
33
|
+
{@render children()}
|
|
34
|
+
{/if}
|
|
35
|
+
</obc-tunnel-thruster>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/propulsion-tunnel-thruster/propulsion-tunnel-thruster.js';
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
export interface Props {
|
|
4
|
+
class?: string;
|
|
5
|
+
style?: string;
|
|
6
|
+
value?: number;
|
|
7
|
+
thrust?: number;
|
|
8
|
+
state?: string;
|
|
9
|
+
hasSilhouette?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface Events {
|
|
12
|
+
}
|
|
13
|
+
export interface Slots {
|
|
14
|
+
children?: Snippet;
|
|
15
|
+
}
|
|
16
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
17
|
+
declare const ObcTunnelThruster: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
18
|
+
type ObcTunnelThruster = ReturnType<typeof ObcTunnelThruster>;
|
|
19
|
+
export default ObcTunnelThruster;
|
|
@@ -11,6 +11,12 @@ import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-inst
|
|
|
11
11
|
export interface Props {
|
|
12
12
|
class?: string;
|
|
13
13
|
style?: string;
|
|
14
|
+
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
15
|
+
When `undefined`, the legacy `rotationsPerMinute` value is used. */
|
|
16
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
17
|
+
/** Visual amplification applied to the spinning dot animation. Default `18`
|
|
18
|
+
keeps the legacy visual feel (≈1 rpm at 20°/min). */
|
|
19
|
+
rotDotAnimationFactor?: number;
|
|
14
20
|
rotationsPerMinute?: number;
|
|
15
21
|
rotType?: RotType;
|
|
16
22
|
rotPosition?: RotPosition;
|
|
@@ -5,6 +5,12 @@ import type { Snippet } from 'svelte';
|
|
|
5
5
|
export interface Props {
|
|
6
6
|
class?: string;
|
|
7
7
|
style?: string;
|
|
8
|
+
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
9
|
+
When `undefined`, the legacy `rotationsPerMinute` value is used. */
|
|
10
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
11
|
+
/** Visual amplification applied to the spinning dot animation. Default `18`
|
|
12
|
+
keeps the legacy visual feel (≈1 rpm at 20°/min). */
|
|
13
|
+
rotDotAnimationFactor?: number;
|
|
8
14
|
rotationsPerMinute?: number;
|
|
9
15
|
rotType?: RotType;
|
|
10
16
|
rotPosition?: RotPosition;
|
|
@@ -13,8 +13,20 @@
|
|
|
13
13
|
minAvgRoll?: number;
|
|
14
14
|
maxAvgRoll?: number;
|
|
15
15
|
vesselImageFore?: VesselImage;
|
|
16
|
+
scaleForeImage?: number;
|
|
16
17
|
maxRollAdvice?: number | undefined;
|
|
17
|
-
triggerRollAdvice?: boolean
|
|
18
|
+
triggerRollAdvice?: boolean;
|
|
19
|
+
zoomToFitArc?: boolean;
|
|
20
|
+
/** Half-extent of the watch arc in degrees. The arc spans `180° ± arcAngle`
|
|
21
|
+
and roll values are placed at their true position within it. Default
|
|
22
|
+
`45` reproduces the historical 90°-wide arc.
|
|
23
|
+
|
|
24
|
+
Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
|
|
25
|
+
narrower arc is enlarged (its radius grows) on its own layer, while the
|
|
26
|
+
vessel image and the rotating indicator line stay at their natural size
|
|
27
|
+
and position on a separate central layer. The two layers are
|
|
28
|
+
intentionally visually disconnected. */
|
|
29
|
+
arcAngle?: number
|
|
18
30
|
}
|
|
19
31
|
export interface Events {
|
|
20
32
|
|
|
@@ -8,8 +8,20 @@ export interface Props {
|
|
|
8
8
|
minAvgRoll?: number;
|
|
9
9
|
maxAvgRoll?: number;
|
|
10
10
|
vesselImageFore?: VesselImage;
|
|
11
|
+
scaleForeImage?: number;
|
|
11
12
|
maxRollAdvice?: number | undefined;
|
|
12
13
|
triggerRollAdvice?: boolean;
|
|
14
|
+
zoomToFitArc?: boolean;
|
|
15
|
+
/** Half-extent of the watch arc in degrees. The arc spans `180° ± arcAngle`
|
|
16
|
+
and roll values are placed at their true position within it. Default
|
|
17
|
+
`45` reproduces the historical 90°-wide arc.
|
|
18
|
+
|
|
19
|
+
Smaller values render a narrower arc. Combined with `zoomToFitArc`, the
|
|
20
|
+
narrower arc is enlarged (its radius grows) on its own layer, while the
|
|
21
|
+
vessel image and the rotating indicator line stay at their natural size
|
|
22
|
+
and position on a separate central layer. The two layers are
|
|
23
|
+
intentionally visually disconnected. */
|
|
24
|
+
arcAngle?: number;
|
|
13
25
|
}
|
|
14
26
|
export interface Events {
|
|
15
27
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {RollIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
import type {RollIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
type?: RollIndicatorType;
|
|
13
|
+
value?: number
|
|
14
|
+
}
|
|
15
|
+
export interface Events {
|
|
16
|
+
|
|
17
|
+
}
|
|
18
|
+
export interface Slots {
|
|
19
|
+
children?: Snippet
|
|
20
|
+
}
|
|
21
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
22
|
+
|
|
23
|
+
</script>
|
|
24
|
+
<obc-roll-indicator
|
|
25
|
+
use:setProperties={props}
|
|
26
|
+
class={className}
|
|
27
|
+
style={style}
|
|
28
|
+
>
|
|
29
|
+
|
|
30
|
+
{#if children}
|
|
31
|
+
{@render children()}
|
|
32
|
+
{/if}
|
|
33
|
+
</obc-roll-indicator>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
2
|
+
import type { RollIndicatorType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/roll-indicator/roll-indicator.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
export interface Props {
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
type?: RollIndicatorType;
|
|
8
|
+
value?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface Events {
|
|
11
|
+
}
|
|
12
|
+
export interface Slots {
|
|
13
|
+
children?: Snippet;
|
|
14
|
+
}
|
|
15
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
16
|
+
declare const ObcRollIndicator: import("svelte").Component<$$ComponentProps, {
|
|
17
|
+
RollIndicatorType: typeof RollIndicatorType;
|
|
18
|
+
}, "">;
|
|
19
|
+
type ObcRollIndicator = ReturnType<typeof ObcRollIndicator>;
|
|
20
|
+
export default ObcRollIndicator;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
|
|
3
|
+
export type {RotIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rot-indicator/rot-indicator.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/rot-indicator/rot-indicator.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
|
|
6
|
+
import type {RotIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rot-indicator/rot-indicator.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
+
type?: RotIndicatorType;
|
|
13
|
+
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
14
|
+
|
|
15
|
+
Drives the spinner animation via `(rateOfTurnDegreesPerMinute / 360) *
|
|
16
|
+
rotDotAnimationFactor` rotations per minute. When `undefined` the legacy
|
|
17
|
+
`rotationsPerMinute` value is used instead. */
|
|
18
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
19
|
+
/** Visual amplification applied to the spinning dot animation. Default `18`
|
|
20
|
+
keeps the legacy visual feel (≈1 rpm at 20°/min). Has no effect when
|
|
21
|
+
the legacy `rotationsPerMinute` API is used. */
|
|
22
|
+
rotDotAnimationFactor?: number;
|
|
12
23
|
rotationsPerMinute?: number
|
|
13
24
|
}
|
|
14
25
|
export interface Events {
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/rot-indicator/rot-indicator.js';
|
|
2
|
+
import type { RotIndicatorType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rot-indicator/rot-indicator.js';
|
|
2
3
|
import type { Snippet } from 'svelte';
|
|
3
4
|
export interface Props {
|
|
4
5
|
class?: string;
|
|
5
6
|
style?: string;
|
|
7
|
+
type?: RotIndicatorType;
|
|
8
|
+
/** Measured rate of turn in degrees per minute (positive = starboard).
|
|
9
|
+
|
|
10
|
+
Drives the spinner animation via `(rateOfTurnDegreesPerMinute / 360) *
|
|
11
|
+
rotDotAnimationFactor` rotations per minute. When `undefined` the legacy
|
|
12
|
+
`rotationsPerMinute` value is used instead. */
|
|
13
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
14
|
+
/** Visual amplification applied to the spinning dot animation. Default `18`
|
|
15
|
+
keeps the legacy visual feel (≈1 rpm at 20°/min). Has no effect when
|
|
16
|
+
the legacy `rotationsPerMinute` API is used. */
|
|
17
|
+
rotDotAnimationFactor?: number;
|
|
6
18
|
rotationsPerMinute?: number;
|
|
7
19
|
}
|
|
8
20
|
export interface Events {
|
|
@@ -11,6 +23,8 @@ export interface Slots {
|
|
|
11
23
|
children?: Snippet;
|
|
12
24
|
}
|
|
13
25
|
type $$ComponentProps = Props & Events & Slots;
|
|
14
|
-
declare const ObcRotIndicator: import("svelte").Component<$$ComponentProps, {
|
|
26
|
+
declare const ObcRotIndicator: import("svelte").Component<$$ComponentProps, {
|
|
27
|
+
RotIndicatorType: typeof RotIndicatorType;
|
|
28
|
+
}, "">;
|
|
15
29
|
type ObcRotIndicator = ReturnType<typeof ObcRotIndicator>;
|
|
16
30
|
export default ObcRotIndicator;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {RudderIndicatorState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rudder-indicator/rudder-indicator.js';
|
|
4
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/rudder-indicator/rudder-indicator.js';
|
|
5
|
+
import { setProperties } from "../../util.js";
|
|
6
|
+
import type {RudderIndicatorState} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rudder-indicator/rudder-indicator.js';
|
|
7
|
+
import type { Snippet } from 'svelte';
|
|
8
|
+
|
|
9
|
+
export interface Props {
|
|
10
|
+
class?: string;
|
|
11
|
+
style?: string;
|
|
12
|
+
angle?: number;
|
|
13
|
+
setpoint?: number;
|
|
14
|
+
state?: RudderIndicatorState;
|
|
15
|
+
hasSilhouette?: boolean
|
|
16
|
+
}
|
|
17
|
+
export interface Events {
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
export interface Slots {
|
|
21
|
+
children?: Snippet
|
|
22
|
+
}
|
|
23
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
24
|
+
|
|
25
|
+
</script>
|
|
26
|
+
<obc-rudder-indicator
|
|
27
|
+
use:setProperties={props}
|
|
28
|
+
class={className}
|
|
29
|
+
style={style}
|
|
30
|
+
>
|
|
31
|
+
|
|
32
|
+
{#if children}
|
|
33
|
+
{@render children()}
|
|
34
|
+
{/if}
|
|
35
|
+
</obc-rudder-indicator>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/rudder-indicator/rudder-indicator.js';
|
|
2
|
+
import type { RudderIndicatorState } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/rudder-indicator/rudder-indicator.js';
|
|
3
|
+
import type { Snippet } from 'svelte';
|
|
4
|
+
export interface Props {
|
|
5
|
+
class?: string;
|
|
6
|
+
style?: string;
|
|
7
|
+
angle?: number;
|
|
8
|
+
setpoint?: number;
|
|
9
|
+
state?: RudderIndicatorState;
|
|
10
|
+
hasSilhouette?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface Events {
|
|
13
|
+
}
|
|
14
|
+
export interface Slots {
|
|
15
|
+
children?: Snippet;
|
|
16
|
+
}
|
|
17
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
18
|
+
declare const ObcRudderIndicator: import("svelte").Component<$$ComponentProps, {
|
|
19
|
+
RudderIndicatorState: typeof RudderIndicatorState;
|
|
20
|
+
}, "">;
|
|
21
|
+
type ObcRudderIndicator = ReturnType<typeof ObcRudderIndicator>;
|
|
22
|
+
export default ObcRudderIndicator;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
|
|
3
|
+
export type {SpeedIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-indicator/speed-indicator.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-indicator/speed-indicator.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
|
|
6
|
+
import type {SpeedIndicatorType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-indicator/speed-indicator.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
+
type?: SpeedIndicatorType;
|
|
12
13
|
speed?: number;
|
|
13
|
-
maxSpeed?: number
|
|
14
|
+
maxSpeed?: number;
|
|
15
|
+
longLatLevels?: number[] | undefined
|
|
14
16
|
}
|
|
15
17
|
export interface Events {
|
|
16
18
|
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-indicator/speed-indicator.js';
|
|
2
|
+
import type { SpeedIndicatorType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/speed-indicator/speed-indicator.js';
|
|
2
3
|
import type { Snippet } from 'svelte';
|
|
3
4
|
export interface Props {
|
|
4
5
|
class?: string;
|
|
5
6
|
style?: string;
|
|
7
|
+
type?: SpeedIndicatorType;
|
|
6
8
|
speed?: number;
|
|
7
9
|
maxSpeed?: number;
|
|
10
|
+
longLatLevels?: number[] | undefined;
|
|
8
11
|
}
|
|
9
12
|
export interface Events {
|
|
10
13
|
}
|
|
@@ -12,6 +15,8 @@ export interface Slots {
|
|
|
12
15
|
children?: Snippet;
|
|
13
16
|
}
|
|
14
17
|
type $$ComponentProps = Props & Events & Slots;
|
|
15
|
-
declare const ObcSpeedIndicator: import("svelte").Component<$$ComponentProps, {
|
|
18
|
+
declare const ObcSpeedIndicator: import("svelte").Component<$$ComponentProps, {
|
|
19
|
+
SpeedIndicatorType: typeof SpeedIndicatorType;
|
|
20
|
+
}, "">;
|
|
16
21
|
type ObcSpeedIndicator = ReturnType<typeof ObcSpeedIndicator>;
|
|
17
22
|
export default ObcSpeedIndicator;
|
|
@@ -64,7 +64,9 @@ import type {RotType, RotPosition} from '@oicl/openbridge-webcomponents/dist/nav
|
|
|
64
64
|
rotEndAngle?: number;
|
|
65
65
|
rotPriority?: Priority | undefined;
|
|
66
66
|
rotPortStarboard?: boolean;
|
|
67
|
-
rotAtZeroDeadband?: number
|
|
67
|
+
rotAtZeroDeadband?: number;
|
|
68
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
69
|
+
rotDotAnimationFactor?: number
|
|
68
70
|
}
|
|
69
71
|
export interface Events {
|
|
70
72
|
|
|
@@ -43,7 +43,9 @@ derived from the current scale (e.g. `LINEAR_DOT_ANGLE_SPACING * translationScal
|
|
|
43
43
|
rotDotSpacing?: number;
|
|
44
44
|
rotPriority?: Priority;
|
|
45
45
|
rotPortStarboard?: boolean;
|
|
46
|
-
rotAtZeroDeadband?: number
|
|
46
|
+
rotAtZeroDeadband?: number;
|
|
47
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
48
|
+
rotDotAnimationFactor?: number
|
|
47
49
|
}
|
|
48
50
|
export interface Events {
|
|
49
51
|
|
|
@@ -35,6 +35,8 @@ derived from the current scale (e.g. `LINEAR_DOT_ANGLE_SPACING * translationScal
|
|
|
35
35
|
rotPriority?: Priority;
|
|
36
36
|
rotPortStarboard?: boolean;
|
|
37
37
|
rotAtZeroDeadband?: number;
|
|
38
|
+
rateOfTurnDegreesPerMinute?: number | undefined;
|
|
39
|
+
rotDotAnimationFactor?: number;
|
|
38
40
|
}
|
|
39
41
|
export interface Events {
|
|
40
42
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {WindHistogramData} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
3
|
+
export type {WindHistogramData, WindVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
4
4
|
export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
5
5
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
6
6
|
import { setProperties } from "../../util.js";
|
|
7
|
-
import type {WindHistogramData} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
7
|
+
import type {WindHistogramData, WindVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
8
8
|
import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
9
9
|
import type { Snippet } from 'svelte';
|
|
10
10
|
|
|
@@ -15,7 +15,10 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
|
|
|
15
15
|
currentWindSpeedBeaufort?: number;
|
|
16
16
|
windHistogramData?: WindHistogramData[];
|
|
17
17
|
vesselImage?: VesselImage;
|
|
18
|
-
vesselHeadingDeg?: number
|
|
18
|
+
vesselHeadingDeg?: number;
|
|
19
|
+
variant?: WindVariant;
|
|
20
|
+
smallVariantMaxPx?: number;
|
|
21
|
+
mediumVariantMaxPx?: number
|
|
19
22
|
}
|
|
20
23
|
export interface Events {
|
|
21
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
2
|
-
import type { WindHistogramData } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
2
|
+
import type { WindHistogramData, WindVariant } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
3
3
|
import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
4
4
|
import type { Snippet } from 'svelte';
|
|
5
5
|
export interface Props {
|
|
@@ -10,6 +10,9 @@ export interface Props {
|
|
|
10
10
|
windHistogramData?: WindHistogramData[];
|
|
11
11
|
vesselImage?: VesselImage;
|
|
12
12
|
vesselHeadingDeg?: number;
|
|
13
|
+
variant?: WindVariant;
|
|
14
|
+
smallVariantMaxPx?: number;
|
|
15
|
+
mediumVariantMaxPx?: number;
|
|
13
16
|
}
|
|
14
17
|
export interface Events {
|
|
15
18
|
}
|
|
@@ -19,6 +22,7 @@ export interface Slots {
|
|
|
19
22
|
type $$ComponentProps = Props & Events & Slots;
|
|
20
23
|
declare const ObcWind: import("svelte").Component<$$ComponentProps, {
|
|
21
24
|
WindHistogramData: typeof WindHistogramData;
|
|
25
|
+
WindVariant: typeof WindVariant;
|
|
22
26
|
VesselImage: typeof VesselImage;
|
|
23
27
|
}, "">;
|
|
24
28
|
type ObcWind = ReturnType<typeof ObcWind>;
|
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
|
|
3
|
+
export type {WindIndicatorType, WindIndicatorDirection, WindIndicatorPriority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-indicator/wind-indicator.js';
|
|
4
4
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-indicator/wind-indicator.js';
|
|
5
5
|
import { setProperties } from "../../util.js";
|
|
6
|
-
|
|
6
|
+
import type {WindIndicatorType, WindIndicatorDirection, WindIndicatorPriority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-indicator/wind-indicator.js';
|
|
7
7
|
import type { Snippet } from 'svelte';
|
|
8
8
|
|
|
9
9
|
export interface Props {
|
|
10
10
|
class?: string;
|
|
11
11
|
style?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
|
|
12
|
+
type?: WindIndicatorType;
|
|
13
|
+
direction?: WindIndicatorDirection;
|
|
14
|
+
priority?: WindIndicatorPriority;
|
|
15
|
+
level?: number;
|
|
16
|
+
/** Rotation of the reference frame (course/heading) in degrees.
|
|
17
|
+
|
|
18
|
+
Used in relative mode to compute the marker rotation as `windFromAngle - rotationAngle`.
|
|
19
|
+
`0` means north-up. */
|
|
20
|
+
rotationAngle?: number;
|
|
21
|
+
/** Primary wind direction input (wind-from).
|
|
22
|
+
|
|
23
|
+
Represents the direction the wind comes **from** in degrees.
|
|
24
|
+
- `0` / `360`: wind from north → marker points south (down)
|
|
25
|
+
- `180`: wind from south → marker points north (up) */
|
|
26
|
+
windFromAngle?: number;
|
|
27
|
+
angle?: number
|
|
18
28
|
}
|
|
19
29
|
export interface Events {
|
|
20
30
|
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-indicator/wind-indicator.js';
|
|
2
|
+
import type { WindIndicatorType, WindIndicatorDirection, WindIndicatorPriority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind-indicator/wind-indicator.js';
|
|
2
3
|
import type { Snippet } from 'svelte';
|
|
3
4
|
export interface Props {
|
|
4
5
|
class?: string;
|
|
5
6
|
style?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type?: WindIndicatorType;
|
|
8
|
+
direction?: WindIndicatorDirection;
|
|
9
|
+
priority?: WindIndicatorPriority;
|
|
10
|
+
level?: number;
|
|
11
|
+
/** Rotation of the reference frame (course/heading) in degrees.
|
|
12
|
+
|
|
13
|
+
Used in relative mode to compute the marker rotation as `windFromAngle - rotationAngle`.
|
|
14
|
+
`0` means north-up. */
|
|
15
|
+
rotationAngle?: number;
|
|
16
|
+
/** Primary wind direction input (wind-from).
|
|
17
|
+
|
|
18
|
+
Represents the direction the wind comes **from** in degrees.
|
|
19
|
+
- `0` / `360`: wind from north → marker points south (down)
|
|
20
|
+
- `180`: wind from south → marker points north (up) */
|
|
21
|
+
windFromAngle?: number;
|
|
9
22
|
angle?: number;
|
|
10
|
-
/** If true, the wind direction is relative to North. If false, it is relative to the vessel's heading. */
|
|
11
|
-
northUp?: boolean;
|
|
12
23
|
}
|
|
13
24
|
export interface Events {
|
|
14
25
|
}
|
|
@@ -16,6 +27,10 @@ export interface Slots {
|
|
|
16
27
|
children?: Snippet;
|
|
17
28
|
}
|
|
18
29
|
type $$ComponentProps = Props & Events & Slots;
|
|
19
|
-
declare const ObcWindIndicator: import("svelte").Component<$$ComponentProps, {
|
|
30
|
+
declare const ObcWindIndicator: import("svelte").Component<$$ComponentProps, {
|
|
31
|
+
WindIndicatorType: typeof WindIndicatorType;
|
|
32
|
+
WindIndicatorDirection: typeof WindIndicatorDirection;
|
|
33
|
+
WindIndicatorPriority: typeof WindIndicatorPriority;
|
|
34
|
+
}, "">;
|
|
20
35
|
type ObcWindIndicator = ReturnType<typeof ObcWindIndicator>;
|
|
21
36
|
export default ObcWindIndicator;
|