@oicl/openbridge-webcomponents-svelte 2.0.0-next.86 → 2.0.0-next.88
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.
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
<script lang="ts">
|
|
3
3
|
export type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
4
|
-
export type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
4
|
+
export type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector, GaugeRadialHorizontalAlignment, GaugeRadialVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
5
5
|
export type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
6
6
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
7
7
|
import { setProperties } from "../../util.js";
|
|
8
8
|
import type {InstrumentState, Priority} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
9
|
-
import type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
9
|
+
import type {ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector, GaugeRadialHorizontalAlignment, GaugeRadialVerticalAlignment} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
10
10
|
import type {TickmarkStyle} from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
11
11
|
import type { Snippet } from 'svelte';
|
|
12
12
|
|
|
@@ -51,6 +51,14 @@ tertiaryTickmarkInterval?: number | undefined;
|
|
|
51
51
|
/** Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`. */
|
|
52
52
|
advices?: GaugeRadialAdvice[];
|
|
53
53
|
sector?: GaugeRadialSector;
|
|
54
|
+
/** Horizontal placement of the dial when the host is wider than the dial
|
|
55
|
+
(e.g. a short, wide container shrinks the dial to fit the height, leaving
|
|
56
|
+
horizontal slack). Default `center`. */
|
|
57
|
+
horizontalAlignment?: GaugeRadialHorizontalAlignment;
|
|
58
|
+
/** Vertical placement of the dial when the host is taller than the dial
|
|
59
|
+
(e.g. a tall, narrow container shrinks the dial to fit the width, leaving
|
|
60
|
+
vertical slack). Default `center`. */
|
|
61
|
+
verticalAlignment?: GaugeRadialVerticalAlignment;
|
|
54
62
|
/** When `true`, shows the centre `<obc-readout>`(s) with the current value
|
|
55
63
|
(and optional `label`/`unit`). Layout depends on `sector` and `type`.
|
|
56
64
|
Default `false`. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
2
2
|
import type { InstrumentState, Priority } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/types.js';
|
|
3
|
-
import type { ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
3
|
+
import type { ObcGaugeRadialType, GaugeRadialAdvice, GaugeRadialSector, GaugeRadialHorizontalAlignment, GaugeRadialVerticalAlignment } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/gauge-radial/gauge-radial.js';
|
|
4
4
|
import type { TickmarkStyle } from '@oicl/openbridge-webcomponents/dist/navigation-instruments/watch/tickmark.js';
|
|
5
5
|
import type { Snippet } from 'svelte';
|
|
6
6
|
export interface Props {
|
|
@@ -44,6 +44,14 @@ When undefined or <= 0, no tertiary tickmarks are shown. */
|
|
|
44
44
|
/** Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`. */
|
|
45
45
|
advices?: GaugeRadialAdvice[];
|
|
46
46
|
sector?: GaugeRadialSector;
|
|
47
|
+
/** Horizontal placement of the dial when the host is wider than the dial
|
|
48
|
+
(e.g. a short, wide container shrinks the dial to fit the height, leaving
|
|
49
|
+
horizontal slack). Default `center`. */
|
|
50
|
+
horizontalAlignment?: GaugeRadialHorizontalAlignment;
|
|
51
|
+
/** Vertical placement of the dial when the host is taller than the dial
|
|
52
|
+
(e.g. a tall, narrow container shrinks the dial to fit the width, leaving
|
|
53
|
+
vertical slack). Default `center`. */
|
|
54
|
+
verticalAlignment?: GaugeRadialVerticalAlignment;
|
|
47
55
|
/** When `true`, shows the centre `<obc-readout>`(s) with the current value
|
|
48
56
|
(and optional `label`/`unit`). Layout depends on `sector` and `type`.
|
|
49
57
|
Default `false`. */
|
|
@@ -64,6 +72,8 @@ declare const ObcGaugeRadial: import("svelte").Component<$$ComponentProps, {
|
|
|
64
72
|
ObcGaugeRadialType: typeof ObcGaugeRadialType;
|
|
65
73
|
GaugeRadialAdvice: typeof GaugeRadialAdvice;
|
|
66
74
|
GaugeRadialSector: typeof GaugeRadialSector;
|
|
75
|
+
GaugeRadialHorizontalAlignment: typeof GaugeRadialHorizontalAlignment;
|
|
76
|
+
GaugeRadialVerticalAlignment: typeof GaugeRadialVerticalAlignment;
|
|
67
77
|
TickmarkStyle: typeof TickmarkStyle;
|
|
68
78
|
}, "">;
|
|
69
79
|
type ObcGaugeRadial = ReturnType<typeof ObcGaugeRadial>;
|
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.88",
|
|
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.87"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"svelte": "^5.0.0"
|