@oicl/openbridge-webcomponents-svelte 2.0.0-next.109 → 2.0.0-next.110
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/navigation-instruments/current/ObcCurrent.svelte +48 -0
- package/dist/navigation-instruments/current/ObcCurrent.svelte.d.ts +35 -0
- package/dist/navigation-instruments/watch/ObcWatch.svelte +5 -0
- package/dist/navigation-instruments/watch/ObcWatch.svelte.d.ts +5 -0
- package/dist/navigation-instruments/wind/ObcWind.svelte +9 -3
- package/dist/navigation-instruments/wind/ObcWind.svelte.d.ts +8 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2269,6 +2269,7 @@ export { default as ObcCompass } from './navigation-instruments/compass/ObcCompa
|
|
|
2269
2269
|
export { default as ObcCompassFlat } from './navigation-instruments/compass-flat/ObcCompassFlat.svelte';
|
|
2270
2270
|
export { default as ObcCompassIndicator } from './navigation-instruments/compass-indicator/ObcCompassIndicator.svelte';
|
|
2271
2271
|
export { default as ObcCompassSector } from './navigation-instruments/compass-sector/ObcCompassSector.svelte';
|
|
2272
|
+
export { default as ObcCurrent } from './navigation-instruments/current/ObcCurrent.svelte';
|
|
2272
2273
|
export { default as ObcDepthActual } from './navigation-instruments/depth-actual/ObcDepthActual.svelte';
|
|
2273
2274
|
export { default as ObcDepthIndicator } from './navigation-instruments/depth-indicator/ObcDepthIndicator.svelte';
|
|
2274
2275
|
export { default as ObcDraftTrim } from './navigation-instruments/draft-trim/ObcDraftTrim.svelte';
|
package/dist/index.js
CHANGED
|
@@ -2269,6 +2269,7 @@ export { default as ObcCompass } from './navigation-instruments/compass/ObcCompa
|
|
|
2269
2269
|
export { default as ObcCompassFlat } from './navigation-instruments/compass-flat/ObcCompassFlat.svelte';
|
|
2270
2270
|
export { default as ObcCompassIndicator } from './navigation-instruments/compass-indicator/ObcCompassIndicator.svelte';
|
|
2271
2271
|
export { default as ObcCompassSector } from './navigation-instruments/compass-sector/ObcCompassSector.svelte';
|
|
2272
|
+
export { default as ObcCurrent } from './navigation-instruments/current/ObcCurrent.svelte';
|
|
2272
2273
|
export { default as ObcDepthActual } from './navigation-instruments/depth-actual/ObcDepthActual.svelte';
|
|
2273
2274
|
export { default as ObcDepthIndicator } from './navigation-instruments/depth-indicator/ObcDepthIndicator.svelte';
|
|
2274
2275
|
export { default as ObcDraftTrim } from './navigation-instruments/draft-trim/ObcDraftTrim.svelte';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
<script lang="ts">
|
|
3
|
+
export type {CurrentType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
4
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
|
+
export type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
6
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
7
|
+
import { setProperties } from "../../util.js";
|
|
8
|
+
import type {CurrentType} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
9
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
10
|
+
import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
11
|
+
import type { Snippet } from 'svelte';
|
|
12
|
+
|
|
13
|
+
export interface Props {
|
|
14
|
+
class?: string;
|
|
15
|
+
style?: string;
|
|
16
|
+
/** Layout type: `vessel` (track face with vessel) or `direction` (large centered icon). */
|
|
17
|
+
type?: CurrentType;
|
|
18
|
+
/** The current strength as a chevron bucket (0–4 = number of chevrons);
|
|
19
|
+
rounded and clamped. `null` hides the icon. */
|
|
20
|
+
currentSpeed?: number | null;
|
|
21
|
+
/** The direction the current is coming from in degrees. */
|
|
22
|
+
currentFromDirection?: number | null;
|
|
23
|
+
/** Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). */
|
|
24
|
+
priority?: Priority;
|
|
25
|
+
/** The image of the vessel. */
|
|
26
|
+
vesselImage?: VesselImage;
|
|
27
|
+
/** Vessel heading in degrees. */
|
|
28
|
+
vesselHeadingDeg?: number
|
|
29
|
+
}
|
|
30
|
+
export interface Events {
|
|
31
|
+
|
|
32
|
+
}
|
|
33
|
+
export interface Slots {
|
|
34
|
+
children?: Snippet
|
|
35
|
+
}
|
|
36
|
+
const { class: className, style, children, ...props} = $props<Props & Events & Slots>();
|
|
37
|
+
|
|
38
|
+
</script>
|
|
39
|
+
<obc-current
|
|
40
|
+
use:setProperties={props}
|
|
41
|
+
class={className}
|
|
42
|
+
style={style}
|
|
43
|
+
>
|
|
44
|
+
|
|
45
|
+
{#if children}
|
|
46
|
+
{@render children()}
|
|
47
|
+
{/if}
|
|
48
|
+
</obc-current>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
2
|
+
import type { CurrentType } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/current/current.js';
|
|
3
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
+
import type { VesselImage } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
5
|
+
import type { Snippet } from 'svelte';
|
|
6
|
+
export interface Props {
|
|
7
|
+
class?: string;
|
|
8
|
+
style?: string;
|
|
9
|
+
/** Layout type: `vessel` (track face with vessel) or `direction` (large centered icon). */
|
|
10
|
+
type?: CurrentType;
|
|
11
|
+
/** The current strength as a chevron bucket (0–4 = number of chevrons);
|
|
12
|
+
rounded and clamped. `null` hides the icon. */
|
|
13
|
+
currentSpeed?: number | null;
|
|
14
|
+
/** The direction the current is coming from in degrees. */
|
|
15
|
+
currentFromDirection?: number | null;
|
|
16
|
+
/** Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). */
|
|
17
|
+
priority?: Priority;
|
|
18
|
+
/** The image of the vessel. */
|
|
19
|
+
vesselImage?: VesselImage;
|
|
20
|
+
/** Vessel heading in degrees. */
|
|
21
|
+
vesselHeadingDeg?: number;
|
|
22
|
+
}
|
|
23
|
+
export interface Events {
|
|
24
|
+
}
|
|
25
|
+
export interface Slots {
|
|
26
|
+
children?: Snippet;
|
|
27
|
+
}
|
|
28
|
+
type $$ComponentProps = Props & Events & Slots;
|
|
29
|
+
declare const ObcCurrent: import("svelte").Component<$$ComponentProps, {
|
|
30
|
+
CurrentType: typeof CurrentType;
|
|
31
|
+
Priority: typeof Priority;
|
|
32
|
+
VesselImage: typeof VesselImage;
|
|
33
|
+
}, "">;
|
|
34
|
+
type ObcCurrent = ReturnType<typeof ObcCurrent>;
|
|
35
|
+
export default ObcCurrent;
|
|
@@ -89,6 +89,11 @@ insideLabelsFlush?: boolean;
|
|
|
89
89
|
currentFromDirectionDeg?: number | null;
|
|
90
90
|
currentSymbolRadius?: number | null;
|
|
91
91
|
currentColor?: string | undefined;
|
|
92
|
+
/** Render the current icon centered on the face (direction-type layout)
|
|
93
|
+
instead of at `currentSymbolRadius` on the periphery. */
|
|
94
|
+
currentIconCentered?: boolean;
|
|
95
|
+
/** Scale factor for the centered current icon. */
|
|
96
|
+
scaleCurrentIcon?: number;
|
|
92
97
|
starboardPortIndicator?: boolean;
|
|
93
98
|
/** Top clip, % of height. Ignored when `zoomToFitArc` is true. */
|
|
94
99
|
clipTop?: number;
|
|
@@ -79,6 +79,11 @@ toward the centre as the instrument shrinks. */
|
|
|
79
79
|
currentFromDirectionDeg?: number | null;
|
|
80
80
|
currentSymbolRadius?: number | null;
|
|
81
81
|
currentColor?: string | undefined;
|
|
82
|
+
/** Render the current icon centered on the face (direction-type layout)
|
|
83
|
+
instead of at `currentSymbolRadius` on the periphery. */
|
|
84
|
+
currentIconCentered?: boolean;
|
|
85
|
+
/** Scale factor for the centered current icon. */
|
|
86
|
+
scaleCurrentIcon?: number;
|
|
82
87
|
starboardPortIndicator?: boolean;
|
|
83
88
|
/** Top clip, % of height. Ignored when `zoomToFitArc` is true. */
|
|
84
89
|
clipTop?: number;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
|
-
export type {WindHistogramData, WindVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
3
|
+
export type {WindHistogramData, WindVariant, WindVisualization} 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
|
+
export type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
5
6
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
6
7
|
import { setProperties } from "../../util.js";
|
|
7
|
-
import type {WindHistogramData, WindVariant} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
8
|
+
import type {WindHistogramData, WindVariant, WindVisualization} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
8
9
|
import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/watch.js';
|
|
10
|
+
import type {Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
9
11
|
import type { Snippet } from 'svelte';
|
|
10
12
|
|
|
11
13
|
export interface Props {
|
|
@@ -18,7 +20,11 @@ import type {VesselImage} from '@oicl/openbridge-webcomponents/dist/navigation-i
|
|
|
18
20
|
vesselHeadingDeg?: number;
|
|
19
21
|
variant?: WindVariant;
|
|
20
22
|
smallVariantMaxPx?: number;
|
|
21
|
-
mediumVariantMaxPx?: number
|
|
23
|
+
mediumVariantMaxPx?: number;
|
|
24
|
+
/** Center visualization: wind histogram (default) or the force-graphics streak field. */
|
|
25
|
+
visualization?: WindVisualization;
|
|
26
|
+
/** Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). */
|
|
27
|
+
priority?: Priority
|
|
22
28
|
}
|
|
23
29
|
export interface Events {
|
|
24
30
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
2
|
-
import type { WindHistogramData, WindVariant } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/wind/wind.js';
|
|
2
|
+
import type { WindHistogramData, WindVariant, WindVisualization } 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
|
+
import type { Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
5
|
import type { Snippet } from 'svelte';
|
|
5
6
|
export interface Props {
|
|
6
7
|
class?: string;
|
|
@@ -13,6 +14,10 @@ export interface Props {
|
|
|
13
14
|
variant?: WindVariant;
|
|
14
15
|
smallVariantMaxPx?: number;
|
|
15
16
|
mediumVariantMaxPx?: number;
|
|
17
|
+
/** Center visualization: wind histogram (default) or the force-graphics streak field. */
|
|
18
|
+
visualization?: WindVisualization;
|
|
19
|
+
/** Color priority: `Priority.enhanced` uses the blue/enhanced palette (default: `Priority.regular`). */
|
|
20
|
+
priority?: Priority;
|
|
16
21
|
}
|
|
17
22
|
export interface Events {
|
|
18
23
|
}
|
|
@@ -23,7 +28,9 @@ type $$ComponentProps = Props & Events & Slots;
|
|
|
23
28
|
declare const ObcWind: import("svelte").Component<$$ComponentProps, {
|
|
24
29
|
WindHistogramData: typeof WindHistogramData;
|
|
25
30
|
WindVariant: typeof WindVariant;
|
|
31
|
+
WindVisualization: typeof WindVisualization;
|
|
26
32
|
VesselImage: typeof VesselImage;
|
|
33
|
+
Priority: typeof Priority;
|
|
27
34
|
}, "">;
|
|
28
35
|
type ObcWind = ReturnType<typeof ObcWind>;
|
|
29
36
|
export default ObcWind;
|
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.110",
|
|
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.109"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|