@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.20 → 2.2.0-next.22
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/bundle/openbridge-webcomponents.bundle.js +156 -61
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +49 -21
- package/dist/automation/automation-tank/automation-tank.d.ts.map +1 -1
- package/dist/automation/automation-tank/automation-tank.js +2 -1
- package/dist/automation/automation-tank/automation-tank.js.map +1 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts +4 -2
- package/dist/building-blocks/bar-horizontal/bar-horizontal.d.ts.map +1 -1
- package/dist/building-blocks/bar-horizontal/bar-horizontal.js +12 -6
- package/dist/building-blocks/bar-horizontal/bar-horizontal.js.map +1 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.d.ts +4 -2
- package/dist/building-blocks/bar-vertical/bar-vertical.d.ts.map +1 -1
- package/dist/building-blocks/bar-vertical/bar-vertical.js +12 -6
- package/dist/building-blocks/bar-vertical/bar-vertical.js.map +1 -1
- package/dist/building-blocks/external-scale/external-scale.d.ts +21 -3
- package/dist/building-blocks/external-scale/external-scale.d.ts.map +1 -1
- package/dist/building-blocks/external-scale/external-scale.js +40 -17
- package/dist/building-blocks/external-scale/external-scale.js.map +1 -1
- package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.d.ts +4 -2
- package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.d.ts.map +1 -1
- package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.js +14 -6
- package/dist/navigation-instruments/gauge-horizontal/gauge-horizontal.js.map +1 -1
- package/dist/navigation-instruments/gauge-vertical/gauge-vertical.d.ts +4 -2
- package/dist/navigation-instruments/gauge-vertical/gauge-vertical.d.ts.map +1 -1
- package/dist/navigation-instruments/gauge-vertical/gauge-vertical.js +14 -6
- package/dist/navigation-instruments/gauge-vertical/gauge-vertical.js.map +1 -1
- package/dist/navigation-instruments/heave/heave.d.ts.map +1 -1
- package/dist/navigation-instruments/heave/heave.js +14 -5
- package/dist/navigation-instruments/heave/heave.js.map +1 -1
- package/dist/navigation-instruments/watch/vessel.d.ts +2 -0
- package/dist/navigation-instruments/watch/vessel.d.ts.map +1 -1
- package/dist/navigation-instruments/watch/vessel.js +6 -0
- package/dist/navigation-instruments/watch/vessel.js.map +1 -1
- package/dist/navigation-instruments/watch/vessels/fish-cage-side.d.ts +3 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-side.d.ts.map +1 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-side.js +13 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-side.js.map +1 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-top.d.ts +3 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-top.d.ts.map +1 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-top.js +20 -0
- package/dist/navigation-instruments/watch/vessels/fish-cage-top.js.map +1 -0
- package/dist/svghelpers/advice-linear.d.ts +7 -0
- package/dist/svghelpers/advice-linear.d.ts.map +1 -1
- package/dist/svghelpers/advice-linear.js +14 -10
- package/dist/svghelpers/advice-linear.js.map +1 -1
- package/dist/svghelpers/advice-patterns.d.ts +2 -2
- package/dist/svghelpers/advice-patterns.d.ts.map +1 -1
- package/dist/svghelpers/advice-patterns.js +6 -4
- package/dist/svghelpers/advice-patterns.js.map +1 -1
- package/package.json +1 -1
- package/src/automation/automation-tank/automation-tank.ts +4 -0
- package/src/building-blocks/bar-horizontal/bar-horizontal-fixed-aspect.spec.ts +50 -0
- package/src/building-blocks/bar-horizontal/bar-horizontal.stories.ts +6 -0
- package/src/building-blocks/bar-horizontal/bar-horizontal.ts +22 -9
- package/src/building-blocks/bar-vertical/bar-vertical-dimensions.spec.ts +36 -0
- package/src/building-blocks/bar-vertical/bar-vertical-fixed-aspect.spec.ts +49 -0
- package/src/building-blocks/bar-vertical/bar-vertical.stories.ts +6 -0
- package/src/building-blocks/bar-vertical/bar-vertical.ts +22 -9
- package/src/building-blocks/external-scale/external-scale.spec.ts +151 -0
- package/src/building-blocks/external-scale/external-scale.stories.ts +6 -0
- package/src/building-blocks/external-scale/external-scale.ts +86 -40
- package/src/navigation-instruments/gauge-horizontal/gauge-horizontal.spec.ts +55 -0
- package/src/navigation-instruments/gauge-horizontal/gauge-horizontal.stories.ts +2 -0
- package/src/navigation-instruments/gauge-horizontal/gauge-horizontal.ts +24 -9
- package/src/navigation-instruments/gauge-trend/gauge-trend.stories.ts +25 -0
- package/src/navigation-instruments/gauge-vertical/gauge-vertical.spec.ts +55 -0
- package/src/navigation-instruments/gauge-vertical/gauge-vertical.stories.ts +2 -0
- package/src/navigation-instruments/gauge-vertical/gauge-vertical.ts +24 -9
- package/src/navigation-instruments/heave/heave.stories.ts +12 -1
- package/src/navigation-instruments/heave/heave.ts +23 -7
- package/src/navigation-instruments/pitch/pitch.stories.ts +13 -0
- package/src/navigation-instruments/roll/roll.stories.ts +13 -1
- package/src/navigation-instruments/watch/vessel.ts +6 -0
- package/src/navigation-instruments/watch/vessels/fish-cage-side.ts +10 -0
- package/src/navigation-instruments/watch/vessels/fish-cage-top.ts +17 -0
- package/src/svghelpers/advice-linear.ts +25 -11
- package/src/svghelpers/advice-patterns.ts +13 -5
|
@@ -23,6 +23,13 @@ const svgOf = (el: Element) => el.querySelector('svg')!;
|
|
|
23
23
|
const scaleOf = (el: Element) =>
|
|
24
24
|
parseFloat(svgOf(el).style.getPropertyValue('--scale'));
|
|
25
25
|
|
|
26
|
+
/** The painted thickness of the first advice band, in CSS px. */
|
|
27
|
+
const pillPx = (el: Element) => {
|
|
28
|
+
const svg = svgOf(el);
|
|
29
|
+
const band = svg.querySelector('path.advice-band') as SVGPathElement;
|
|
30
|
+
return +(band.getBBox().height * svg.getScreenCTM()!.a).toFixed(2);
|
|
31
|
+
};
|
|
32
|
+
|
|
26
33
|
/** Default bands and no setpoint: 48 bar + 24 ticks + 60 labels = 132 thick. */
|
|
27
34
|
async function mount(fixedAspectRatio = false): Promise<ObcGaugeHorizontal> {
|
|
28
35
|
const screen = render(
|
|
@@ -285,4 +292,52 @@ describe('obc-gauge-horizontal sizing', () => {
|
|
|
285
292
|
await until(() => Math.abs(scaleOf(el) - 60 / 72) < 1e-3);
|
|
286
293
|
await until(() => reports[reports.length - 1] === 60);
|
|
287
294
|
});
|
|
295
|
+
|
|
296
|
+
it('keeps the advice pill at 8 px at every scale', async () => {
|
|
297
|
+
const screen = render(
|
|
298
|
+
html`<div style="display: block; width: 600px; height: 440px">
|
|
299
|
+
<obc-gauge-horizontal
|
|
300
|
+
.minValue=${0}
|
|
301
|
+
.maxValue=${100}
|
|
302
|
+
.value=${40}
|
|
303
|
+
.primaryTickmarkInterval=${20}
|
|
304
|
+
.advices=${[{min: 20, max: 40, category: 'optimal'}]}
|
|
305
|
+
.fixedAspectRatio=${true}
|
|
306
|
+
></obc-gauge-horizontal>
|
|
307
|
+
</div>`
|
|
308
|
+
);
|
|
309
|
+
const el = screen.container.querySelector(
|
|
310
|
+
'obc-gauge-horizontal'
|
|
311
|
+
) as ObcGaugeHorizontal;
|
|
312
|
+
await el.updateComplete;
|
|
313
|
+
await until(() => Math.abs(scaleOf(el) - 600 / 384) < 1e-3);
|
|
314
|
+
expect(pillPx(el)).toBeCloseTo(8, 1);
|
|
315
|
+
});
|
|
316
|
+
|
|
317
|
+
it('reports the advice column when it is the widest band outside the bar', async () => {
|
|
318
|
+
const screen = render(
|
|
319
|
+
html`<div style="display: block; width: 192px; height: 260px">
|
|
320
|
+
<obc-gauge-horizontal
|
|
321
|
+
.minValue=${0}
|
|
322
|
+
.maxValue=${100}
|
|
323
|
+
.value=${40}
|
|
324
|
+
.primaryTickmarkInterval=${20}
|
|
325
|
+
.showLabels=${false}
|
|
326
|
+
.advices=${[{min: 20, max: 40, category: 'optimal'}]}
|
|
327
|
+
.fixedAspectRatio=${true}
|
|
328
|
+
></obc-gauge-horizontal>
|
|
329
|
+
</div>`
|
|
330
|
+
);
|
|
331
|
+
const el = screen.container.querySelector(
|
|
332
|
+
'obc-gauge-horizontal'
|
|
333
|
+
) as ObcGaugeHorizontal;
|
|
334
|
+
const reports: number[] = [];
|
|
335
|
+
el.addEventListener('scale-dimensions-changed', (e) =>
|
|
336
|
+
reports.push((e as CustomEvent<{thickness: number}>).detail.thickness)
|
|
337
|
+
);
|
|
338
|
+
await el.updateComplete;
|
|
339
|
+
// At scale 0.5 the 16 px column is 32 units, past the 24 unit ticks:
|
|
340
|
+
// (48 + 32) × 0.5, not (48 + 24) × 0.5.
|
|
341
|
+
await until(() => reports[reports.length - 1] === 40);
|
|
342
|
+
});
|
|
288
343
|
});
|
|
@@ -634,6 +634,7 @@ export const FixedAspectRatioComparison: StoryObj = {
|
|
|
634
634
|
.value=${60}
|
|
635
635
|
.setpoint=${80}
|
|
636
636
|
.primaryTickmarkInterval=${20}
|
|
637
|
+
.advices=${[{min: 60, max: 80, type: AdviceType.caution, hinted: true}]}
|
|
637
638
|
.priority=${Priority.regular}
|
|
638
639
|
></obc-gauge-horizontal>
|
|
639
640
|
</div>
|
|
@@ -648,6 +649,7 @@ export const FixedAspectRatioComparison: StoryObj = {
|
|
|
648
649
|
.value=${60}
|
|
649
650
|
.setpoint=${80}
|
|
650
651
|
.primaryTickmarkInterval=${20}
|
|
652
|
+
.advices=${[{min: 60, max: 80, type: AdviceType.caution, hinted: true}]}
|
|
651
653
|
.priority=${Priority.enhanced}
|
|
652
654
|
></obc-gauge-horizontal>
|
|
653
655
|
</div>
|
|
@@ -10,7 +10,10 @@ import {
|
|
|
10
10
|
BorderRadiusPosition,
|
|
11
11
|
Priority,
|
|
12
12
|
} from '../types.js';
|
|
13
|
-
import type {
|
|
13
|
+
import type {
|
|
14
|
+
ExternalScaleConfig,
|
|
15
|
+
ExternalScaleLayoutConfig,
|
|
16
|
+
} from '../../building-blocks/external-scale/external-scale.js';
|
|
14
17
|
import {
|
|
15
18
|
computeExternalScaleViewBox,
|
|
16
19
|
computeFixedAspectRatioScale,
|
|
@@ -172,8 +175,17 @@ export class ObcGaugeHorizontal extends AdviceMixin(
|
|
|
172
175
|
@state()
|
|
173
176
|
private _scale = 1;
|
|
174
177
|
|
|
175
|
-
/** The
|
|
176
|
-
private
|
|
178
|
+
/** The last render's layout inputs, for the scale measurement. */
|
|
179
|
+
private _layoutConfig?: ExternalScaleLayoutConfig;
|
|
180
|
+
|
|
181
|
+
/** The drawing's height in viewBox units at a scale: the advice column is pixels, so it depends on it. */
|
|
182
|
+
private _thicknessAt = (scale: number): number =>
|
|
183
|
+
this._layoutConfig
|
|
184
|
+
? computeExternalScaleLayout({
|
|
185
|
+
...this._layoutConfig,
|
|
186
|
+
fixedAspectRatioScale: scale,
|
|
187
|
+
}).thickness
|
|
188
|
+
: 0;
|
|
177
189
|
|
|
178
190
|
// ResizeController automatically subscribes/unsubscribes based on component lifecycle
|
|
179
191
|
// @ts-expect-error - Controller is used for side effects, not accessed directly
|
|
@@ -189,7 +201,7 @@ export class ObcGaugeHorizontal extends AdviceMixin(
|
|
|
189
201
|
containerMainAxisSize: entry.contentRect.width,
|
|
190
202
|
containerCrossAxisSize: entry.contentRect.height,
|
|
191
203
|
scaleReferenceSize: this.scaleReferenceSize,
|
|
192
|
-
viewBoxThickness: this.
|
|
204
|
+
viewBoxThickness: this._thicknessAt,
|
|
193
205
|
});
|
|
194
206
|
// Guard against zero-sized containers, but allow fractional scales < 1
|
|
195
207
|
this._scale = scale > 0 ? scale : 1;
|
|
@@ -301,16 +313,16 @@ export class ObcGaugeHorizontal extends AdviceMixin(
|
|
|
301
313
|
adviceEmphasis: this.adviceEmphasis,
|
|
302
314
|
adviceMaskPrefix: this._adviceMaskPrefix,
|
|
303
315
|
fixedAspectRatio: this.fixedAspectRatio,
|
|
316
|
+
fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
|
|
304
317
|
// Gauges are always in instrument mode - they use fixed borderRadius (8px)
|
|
305
318
|
// and don't respond to .obc-component-size-* CSS classes for border radius
|
|
306
319
|
instrumentMode: true,
|
|
307
320
|
highlightCurrentValue: this.highlightCurrentValue,
|
|
308
321
|
};
|
|
309
322
|
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this._viewBoxThickness = layout.thickness;
|
|
323
|
+
const layoutConfig = toExternalScaleLayoutConfig(config);
|
|
324
|
+
const layout = computeExternalScaleLayout(layoutConfig);
|
|
325
|
+
this._layoutConfig = layoutConfig;
|
|
314
326
|
|
|
315
327
|
const parts = renderExternalScale(config);
|
|
316
328
|
|
|
@@ -411,11 +423,14 @@ export class ObcGaugeHorizontal extends AdviceMixin(
|
|
|
411
423
|
labelThickness: this.labelThickness,
|
|
412
424
|
length: this.fixedAspectRatio ? this.scaleReferenceSize : this.width,
|
|
413
425
|
scaleType: this.scaleType,
|
|
426
|
+
advicePosition: this.advicePosition,
|
|
427
|
+
hasAdvice: !!this.advices && this.advices.length > 0,
|
|
414
428
|
hasAdviceIcon: !!this.advices?.some((a) => a.showIcon),
|
|
415
429
|
hasSetpoint:
|
|
416
430
|
this.setpoint !== undefined ||
|
|
417
431
|
this.newSetpoint !== undefined ||
|
|
418
432
|
this.departingNewSetpoint !== undefined,
|
|
433
|
+
fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
|
|
419
434
|
});
|
|
420
435
|
|
|
421
436
|
// The chart lays out in visual pixels, so a scaled drawing reports its
|
|
@@ -492,7 +507,7 @@ export class ObcGaugeHorizontal extends AdviceMixin(
|
|
|
492
507
|
containerMainAxisSize: width,
|
|
493
508
|
containerCrossAxisSize: height,
|
|
494
509
|
scaleReferenceSize: this.scaleReferenceSize,
|
|
495
|
-
viewBoxThickness: this.
|
|
510
|
+
viewBoxThickness: this._thicknessAt,
|
|
496
511
|
});
|
|
497
512
|
return true;
|
|
498
513
|
}
|
|
@@ -291,6 +291,7 @@ export const CompactRangeLabels: Story = {
|
|
|
291
291
|
rangeLabels: 'xy',
|
|
292
292
|
hasBar: true,
|
|
293
293
|
hasScale: true,
|
|
294
|
+
hasAdvice: true,
|
|
294
295
|
},
|
|
295
296
|
};
|
|
296
297
|
|
|
@@ -486,6 +487,11 @@ export const ScaleReferenceSizeComparison: StoryObj = {
|
|
|
486
487
|
.hasBar=${true}
|
|
487
488
|
.hasScale=${true}
|
|
488
489
|
.secondaryTickmarkInterval=${5}
|
|
490
|
+
.hasAdvice=${true}
|
|
491
|
+
.advice=${[
|
|
492
|
+
{min: 25, max: 45, type: AdviceType.caution, hinted: true},
|
|
493
|
+
{min: 55, max: 75, type: AdviceType.advice, hinted: false},
|
|
494
|
+
]}
|
|
489
495
|
></obc-gauge-trend>
|
|
490
496
|
</div>
|
|
491
497
|
<div class="scale-comparison-sublabel">Scale factor: 1.0</div>
|
|
@@ -514,6 +520,11 @@ export const ScaleReferenceSizeComparison: StoryObj = {
|
|
|
514
520
|
.hasBar=${true}
|
|
515
521
|
.hasScale=${true}
|
|
516
522
|
.secondaryTickmarkInterval=${5}
|
|
523
|
+
.hasAdvice=${true}
|
|
524
|
+
.advice=${[
|
|
525
|
+
{min: 25, max: 45, type: AdviceType.caution, hinted: true},
|
|
526
|
+
{min: 55, max: 75, type: AdviceType.advice, hinted: false},
|
|
527
|
+
]}
|
|
517
528
|
></obc-gauge-trend>
|
|
518
529
|
</div>
|
|
519
530
|
<div class="scale-comparison-sublabel">Scale factor: 1.6</div>
|
|
@@ -542,6 +553,11 @@ export const ScaleReferenceSizeComparison: StoryObj = {
|
|
|
542
553
|
.hasBar=${true}
|
|
543
554
|
.hasScale=${true}
|
|
544
555
|
.secondaryTickmarkInterval=${5}
|
|
556
|
+
.hasAdvice=${true}
|
|
557
|
+
.advice=${[
|
|
558
|
+
{min: 25, max: 45, type: AdviceType.caution, hinted: true},
|
|
559
|
+
{min: 55, max: 75, type: AdviceType.advice, hinted: false},
|
|
560
|
+
]}
|
|
545
561
|
></obc-gauge-trend>
|
|
546
562
|
</div>
|
|
547
563
|
<div class="scale-comparison-sublabel">Scale factor: 1.0</div>
|
|
@@ -997,6 +1013,10 @@ export const FixedAspectRatioScalingComparison: StoryObj = {
|
|
|
997
1013
|
.primaryTickmarkInterval=${10}
|
|
998
1014
|
.secondaryTickmarkInterval=${5}
|
|
999
1015
|
.tertiaryTickmarkInterval=${1}
|
|
1016
|
+
.advices=${[
|
|
1017
|
+
{min: 25, max: 45, type: AdviceType.caution, hinted: true},
|
|
1018
|
+
{min: 55, max: 75, type: AdviceType.advice, hinted: false},
|
|
1019
|
+
]}
|
|
1000
1020
|
.scaleBackground=${true}
|
|
1001
1021
|
.fixedAspectRatio=${false}
|
|
1002
1022
|
.priority=${Priority.regular}
|
|
@@ -1027,6 +1047,11 @@ export const FixedAspectRatioScalingComparison: StoryObj = {
|
|
|
1027
1047
|
.primaryTickmarkInterval=${10}
|
|
1028
1048
|
.secondaryTickmarkInterval=${5}
|
|
1029
1049
|
.tertiaryTickmarkInterval=${1}
|
|
1050
|
+
.hasAdvice=${true}
|
|
1051
|
+
.advice=${[
|
|
1052
|
+
{min: 25, max: 45, type: AdviceType.caution, hinted: true},
|
|
1053
|
+
{min: 55, max: 75, type: AdviceType.advice, hinted: false},
|
|
1054
|
+
]}
|
|
1030
1055
|
></obc-gauge-trend>
|
|
1031
1056
|
</div>
|
|
1032
1057
|
</div>
|
|
@@ -23,6 +23,13 @@ const svgOf = (el: Element) => el.querySelector('svg')!;
|
|
|
23
23
|
const scaleOf = (el: Element) =>
|
|
24
24
|
parseFloat(svgOf(el).style.getPropertyValue('--scale'));
|
|
25
25
|
|
|
26
|
+
/** The painted thickness of the first advice band, in CSS px. */
|
|
27
|
+
const pillPx = (el: Element) => {
|
|
28
|
+
const svg = svgOf(el);
|
|
29
|
+
const band = svg.querySelector('path.advice-band') as SVGPathElement;
|
|
30
|
+
return +(band.getBBox().width * svg.getScreenCTM()!.a).toFixed(2);
|
|
31
|
+
};
|
|
32
|
+
|
|
26
33
|
/** Default bands and no setpoint: 48 bar + 24 ticks + 60 labels = 132 thick. */
|
|
27
34
|
async function mount(fixedAspectRatio = false): Promise<ObcGaugeVertical> {
|
|
28
35
|
const screen = render(
|
|
@@ -281,4 +288,52 @@ describe('obc-gauge-vertical sizing', () => {
|
|
|
281
288
|
await until(() => Math.abs(scaleOf(el) - 80 / 72) < 1e-3);
|
|
282
289
|
await until(() => reports[reports.length - 1] === 80);
|
|
283
290
|
});
|
|
291
|
+
|
|
292
|
+
it('keeps the advice pill at 8 px at every scale', async () => {
|
|
293
|
+
const screen = render(
|
|
294
|
+
html`<div style="display: block; width: 480px; height: 600px">
|
|
295
|
+
<obc-gauge-vertical
|
|
296
|
+
.minValue=${0}
|
|
297
|
+
.maxValue=${100}
|
|
298
|
+
.value=${40}
|
|
299
|
+
.primaryTickmarkInterval=${20}
|
|
300
|
+
.advices=${[{min: 20, max: 40, category: 'optimal'}]}
|
|
301
|
+
.fixedAspectRatio=${true}
|
|
302
|
+
></obc-gauge-vertical>
|
|
303
|
+
</div>`
|
|
304
|
+
);
|
|
305
|
+
const el = screen.container.querySelector(
|
|
306
|
+
'obc-gauge-vertical'
|
|
307
|
+
) as ObcGaugeVertical;
|
|
308
|
+
await el.updateComplete;
|
|
309
|
+
await until(() => Math.abs(scaleOf(el) - 600 / 384) < 1e-3);
|
|
310
|
+
expect(pillPx(el)).toBeCloseTo(8, 1);
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
it('reports the advice column when it is the widest band outside the bar', async () => {
|
|
314
|
+
const screen = render(
|
|
315
|
+
html`<div style="display: block; width: 480px; height: 192px">
|
|
316
|
+
<obc-gauge-vertical
|
|
317
|
+
.minValue=${0}
|
|
318
|
+
.maxValue=${100}
|
|
319
|
+
.value=${40}
|
|
320
|
+
.primaryTickmarkInterval=${20}
|
|
321
|
+
.showLabels=${false}
|
|
322
|
+
.advices=${[{min: 20, max: 40, category: 'optimal'}]}
|
|
323
|
+
.fixedAspectRatio=${true}
|
|
324
|
+
></obc-gauge-vertical>
|
|
325
|
+
</div>`
|
|
326
|
+
);
|
|
327
|
+
const el = screen.container.querySelector(
|
|
328
|
+
'obc-gauge-vertical'
|
|
329
|
+
) as ObcGaugeVertical;
|
|
330
|
+
const reports: number[] = [];
|
|
331
|
+
el.addEventListener('scale-dimensions-changed', (e) =>
|
|
332
|
+
reports.push((e as CustomEvent<{thickness: number}>).detail.thickness)
|
|
333
|
+
);
|
|
334
|
+
await el.updateComplete;
|
|
335
|
+
// At scale 0.5 the 16 px column is 32 units, past the 24 unit ticks:
|
|
336
|
+
// (48 + 32) × 0.5, not (48 + 24) × 0.5.
|
|
337
|
+
await until(() => reports[reports.length - 1] === 40);
|
|
338
|
+
});
|
|
284
339
|
});
|
|
@@ -689,6 +689,7 @@ export const FixedAspectRatioComparison: StoryObj = {
|
|
|
689
689
|
.value=${60}
|
|
690
690
|
.setpoint=${80}
|
|
691
691
|
.primaryTickmarkInterval=${20}
|
|
692
|
+
.advices=${[{min: 60, max: 80, type: AdviceType.caution, hinted: true}]}
|
|
692
693
|
.priority=${Priority.regular}
|
|
693
694
|
></obc-gauge-vertical>
|
|
694
695
|
</div>
|
|
@@ -703,6 +704,7 @@ export const FixedAspectRatioComparison: StoryObj = {
|
|
|
703
704
|
.value=${60}
|
|
704
705
|
.setpoint=${80}
|
|
705
706
|
.primaryTickmarkInterval=${20}
|
|
707
|
+
.advices=${[{min: 60, max: 80, type: AdviceType.caution, hinted: true}]}
|
|
706
708
|
.priority=${Priority.enhanced}
|
|
707
709
|
></obc-gauge-vertical>
|
|
708
710
|
</div>
|
|
@@ -10,7 +10,10 @@ import {
|
|
|
10
10
|
BorderRadiusPosition,
|
|
11
11
|
Priority,
|
|
12
12
|
} from '../types.js';
|
|
13
|
-
import type {
|
|
13
|
+
import type {
|
|
14
|
+
ExternalScaleConfig,
|
|
15
|
+
ExternalScaleLayoutConfig,
|
|
16
|
+
} from '../../building-blocks/external-scale/external-scale.js';
|
|
14
17
|
import {
|
|
15
18
|
computeExternalScaleViewBox,
|
|
16
19
|
computeFixedAspectRatioScale,
|
|
@@ -172,8 +175,17 @@ export class ObcGaugeVertical extends AdviceMixin(
|
|
|
172
175
|
@state()
|
|
173
176
|
private _scale = 1;
|
|
174
177
|
|
|
175
|
-
/** The
|
|
176
|
-
private
|
|
178
|
+
/** The last render's layout inputs, for the scale measurement. */
|
|
179
|
+
private _layoutConfig?: ExternalScaleLayoutConfig;
|
|
180
|
+
|
|
181
|
+
/** The drawing's width in viewBox units at a scale: the advice column is pixels, so it depends on it. */
|
|
182
|
+
private _thicknessAt = (scale: number): number =>
|
|
183
|
+
this._layoutConfig
|
|
184
|
+
? computeExternalScaleLayout({
|
|
185
|
+
...this._layoutConfig,
|
|
186
|
+
fixedAspectRatioScale: scale,
|
|
187
|
+
}).thickness
|
|
188
|
+
: 0;
|
|
177
189
|
|
|
178
190
|
// ResizeController automatically subscribes/unsubscribes based on component lifecycle
|
|
179
191
|
// @ts-expect-error - Controller is used for side effects, not accessed directly
|
|
@@ -189,7 +201,7 @@ export class ObcGaugeVertical extends AdviceMixin(
|
|
|
189
201
|
containerMainAxisSize: entry.contentRect.height,
|
|
190
202
|
containerCrossAxisSize: entry.contentRect.width,
|
|
191
203
|
scaleReferenceSize: this.scaleReferenceSize,
|
|
192
|
-
viewBoxThickness: this.
|
|
204
|
+
viewBoxThickness: this._thicknessAt,
|
|
193
205
|
});
|
|
194
206
|
// Guard against zero-sized containers, but allow fractional scales < 1
|
|
195
207
|
this._scale = scale > 0 ? scale : 1;
|
|
@@ -301,16 +313,16 @@ export class ObcGaugeVertical extends AdviceMixin(
|
|
|
301
313
|
adviceEmphasis: this.adviceEmphasis,
|
|
302
314
|
adviceMaskPrefix: this._adviceMaskPrefix,
|
|
303
315
|
fixedAspectRatio: this.fixedAspectRatio,
|
|
316
|
+
fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
|
|
304
317
|
// Gauges are always in instrument mode - they use fixed borderRadius (8px)
|
|
305
318
|
// and don't respond to .obc-component-size-* CSS classes for border radius
|
|
306
319
|
instrumentMode: true,
|
|
307
320
|
highlightCurrentValue: this.highlightCurrentValue,
|
|
308
321
|
};
|
|
309
322
|
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
this._viewBoxThickness = layout.thickness;
|
|
323
|
+
const layoutConfig = toExternalScaleLayoutConfig(config);
|
|
324
|
+
const layout = computeExternalScaleLayout(layoutConfig);
|
|
325
|
+
this._layoutConfig = layoutConfig;
|
|
314
326
|
|
|
315
327
|
const parts = renderExternalScale(config);
|
|
316
328
|
|
|
@@ -411,11 +423,14 @@ export class ObcGaugeVertical extends AdviceMixin(
|
|
|
411
423
|
labelThickness: this.labelThickness,
|
|
412
424
|
length: this.fixedAspectRatio ? this.scaleReferenceSize : this.height,
|
|
413
425
|
scaleType: this.scaleType,
|
|
426
|
+
advicePosition: this.advicePosition,
|
|
427
|
+
hasAdvice: !!this.advices && this.advices.length > 0,
|
|
414
428
|
hasAdviceIcon: !!this.advices?.some((a) => a.showIcon),
|
|
415
429
|
hasSetpoint:
|
|
416
430
|
this.setpoint !== undefined ||
|
|
417
431
|
this.newSetpoint !== undefined ||
|
|
418
432
|
this.departingNewSetpoint !== undefined,
|
|
433
|
+
fixedAspectRatioScale: this.fixedAspectRatio ? this._scale : 1,
|
|
419
434
|
});
|
|
420
435
|
|
|
421
436
|
// The chart lays out in visual pixels, so a scaled drawing reports its
|
|
@@ -492,7 +507,7 @@ export class ObcGaugeVertical extends AdviceMixin(
|
|
|
492
507
|
containerMainAxisSize: height,
|
|
493
508
|
containerCrossAxisSize: width,
|
|
494
509
|
scaleReferenceSize: this.scaleReferenceSize,
|
|
495
|
-
viewBoxThickness: this.
|
|
510
|
+
viewBoxThickness: this._thicknessAt,
|
|
496
511
|
});
|
|
497
512
|
return true;
|
|
498
513
|
}
|
|
@@ -30,7 +30,7 @@ const meta: Meta<typeof ObcHeave> = {
|
|
|
30
30
|
draftOffset: {control: {type: 'range', min: -10, max: 10, step: 0.1}},
|
|
31
31
|
vesselImage: {
|
|
32
32
|
control: 'select',
|
|
33
|
-
options: foreVessels,
|
|
33
|
+
options: [...foreVessels, VesselImage.fishCageSide],
|
|
34
34
|
},
|
|
35
35
|
priority: {control: 'select', options: Object.values(Priority)},
|
|
36
36
|
type: {control: 'select', options: Object.values(ObcHeaveType)},
|
|
@@ -104,3 +104,14 @@ export const AdviceIcons: Story = {
|
|
|
104
104
|
],
|
|
105
105
|
},
|
|
106
106
|
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The fish cage seen from the side, the way Figma 47546:222683 shows it on the
|
|
110
|
+
* heave instrument.
|
|
111
|
+
*/
|
|
112
|
+
export const FishCage: Story = {
|
|
113
|
+
args: {
|
|
114
|
+
vesselImage: VesselImage.fishCageSide,
|
|
115
|
+
priority: Priority.enhanced,
|
|
116
|
+
},
|
|
117
|
+
};
|
|
@@ -37,6 +37,19 @@ const VESSEL_VIEW_BOX = '-200 -200 400 400';
|
|
|
37
37
|
/** `bar` viewBox: the 72×336 scale column centred in a 128×384 frame. */
|
|
38
38
|
const BAR_VIEW_BOX = '-64 -192 128 384';
|
|
39
39
|
|
|
40
|
+
/**
|
|
41
|
+
* Floating objects at inclinometer size
|
|
42
|
+
*
|
|
43
|
+
* The fore silhouettes are drawn small in their 160 box, so heave zooms them
|
|
44
|
+
* ×3. The floating objects fill the box, so heave draws them at the 224/160
|
|
45
|
+
* the inclinometers use, centred on the face (Figma 47546:223140).
|
|
46
|
+
*/
|
|
47
|
+
const FLOATING_OBJECTS: ReadonlySet<VesselImage> = new Set([
|
|
48
|
+
VesselImage.fishCageSide,
|
|
49
|
+
VesselImage.fishCageTop,
|
|
50
|
+
]);
|
|
51
|
+
const FLOATING_OBJECT_ZOOM = 224 / 160;
|
|
52
|
+
|
|
40
53
|
/**
|
|
41
54
|
* `<obc-heave>` — Vertical heave indicator.
|
|
42
55
|
*
|
|
@@ -116,6 +129,14 @@ export class ObcHeave extends AdviceMixin(LitElement) {
|
|
|
116
129
|
}
|
|
117
130
|
|
|
118
131
|
private renderVessel(): SVGTemplateResult {
|
|
132
|
+
const art = vesselArt(this.vesselImage, this.vesselImageSrc);
|
|
133
|
+
const y = this._toTranslatedValue(
|
|
134
|
+
(-this.heave + this.draftOffset) / this.gainScale
|
|
135
|
+
);
|
|
136
|
+
const transform =
|
|
137
|
+
'vesselImage' in art && FLOATING_OBJECTS.has(art.vesselImage)
|
|
138
|
+
? `translate(${-this._gaugeWidth / 2}, ${y}) scale(${FLOATING_OBJECT_ZOOM}) translate(-80, -80)`
|
|
139
|
+
: `translate(0, ${y}) scale(3) translate(${-this._gaugeWidth / 2 - 80 / 1.5} , ${-80})`;
|
|
119
140
|
return svg`
|
|
120
141
|
<defs>
|
|
121
142
|
<clipPath id="heaveClip">
|
|
@@ -128,13 +149,8 @@ export class ObcHeave extends AdviceMixin(LitElement) {
|
|
|
128
149
|
</clipPath>
|
|
129
150
|
</defs>
|
|
130
151
|
<g clip-path="url(#heaveClip)">
|
|
131
|
-
<g
|
|
132
|
-
|
|
133
|
-
(-this.heave + this.draftOffset) / this.gainScale
|
|
134
|
-
)}) scale(3)
|
|
135
|
-
translate(${-this._gaugeWidth / 2 - 80 / 1.5} , ${-80})"
|
|
136
|
-
>
|
|
137
|
-
${this.vesselImage ? renderVesselArt(vesselArt(this.vesselImage, this.vesselImageSrc), this._palette.current) : nothing}
|
|
152
|
+
<g transform=${transform}>
|
|
153
|
+
${this.vesselImage ? renderVesselArt(art, this._palette.current) : nothing}
|
|
138
154
|
</g>
|
|
139
155
|
</g>
|
|
140
156
|
`;
|
|
@@ -3,6 +3,7 @@ import {ObcPitch, ObcPitchType} from './pitch.js';
|
|
|
3
3
|
import './pitch.js';
|
|
4
4
|
import {Priority} from '../types.js';
|
|
5
5
|
import {widthDecorator} from '../../storybook-util.js';
|
|
6
|
+
import {VesselImage} from '../watch/vessel.js';
|
|
6
7
|
import {
|
|
7
8
|
customVesselSidePngSrc,
|
|
8
9
|
sideVessels,
|
|
@@ -94,3 +95,15 @@ export const WithCustomVesselImageZoomedIn: Story = {
|
|
|
94
95
|
zoomToFitArc: true,
|
|
95
96
|
},
|
|
96
97
|
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* The fish cage seen from the side, the way Figma 47546:222683 shows it on the
|
|
101
|
+
* pitch instrument.
|
|
102
|
+
*/
|
|
103
|
+
export const FishCage: Story = {
|
|
104
|
+
args: {
|
|
105
|
+
vesselImageSide: VesselImage.fishCageSide,
|
|
106
|
+
type: ObcPitchType.dualScale,
|
|
107
|
+
priority: Priority.enhanced,
|
|
108
|
+
},
|
|
109
|
+
};
|
|
@@ -25,7 +25,7 @@ const meta: Meta<typeof ObcRoll> = {
|
|
|
25
25
|
scaleForeImage: {control: {type: 'range', min: 0, max: 2, step: 0.01}},
|
|
26
26
|
vesselImageFore: {
|
|
27
27
|
control: 'select',
|
|
28
|
-
options: foreVessels,
|
|
28
|
+
options: [...foreVessels, VesselImage.fishCageTop],
|
|
29
29
|
},
|
|
30
30
|
type: {control: 'select', options: Object.values(ObcRollType)},
|
|
31
31
|
priority: {control: 'select', options: Object.values(Priority)},
|
|
@@ -87,3 +87,15 @@ export const Enhanced: Story = {
|
|
|
87
87
|
priority: Priority.enhanced,
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* The fish cage seen from above, the way Figma 47546:222683 shows it on the
|
|
93
|
+
* roll instrument.
|
|
94
|
+
*/
|
|
95
|
+
export const FishCage: Story = {
|
|
96
|
+
args: {
|
|
97
|
+
vesselImageFore: VesselImage.fishCageTop,
|
|
98
|
+
type: ObcRollType.dualScale,
|
|
99
|
+
priority: Priority.enhanced,
|
|
100
|
+
},
|
|
101
|
+
};
|
|
@@ -12,6 +12,8 @@ import * as cargoTop from './vessels/cargo-top.js';
|
|
|
12
12
|
import * as cargoWindFore from './vessels/cargo-wind-fore.js';
|
|
13
13
|
import cargoWindSide, {cargoWindSideFaded} from './vessels/cargo-wind-side.js';
|
|
14
14
|
import * as cargoWindTop from './vessels/cargo-wind-top.js';
|
|
15
|
+
import fishCageSide from './vessels/fish-cage-side.js';
|
|
16
|
+
import fishCageTop from './vessels/fish-cage-top.js';
|
|
15
17
|
import fishingVesselSide, {
|
|
16
18
|
fishingVesselSideFaded,
|
|
17
19
|
} from './vessels/fishing-vessel-side.js';
|
|
@@ -69,6 +71,8 @@ export enum VesselImage {
|
|
|
69
71
|
cargoWindSide = 'cargo-wind-side',
|
|
70
72
|
cargoWindSideFaded = 'cargo-wind-side-faded',
|
|
71
73
|
cargoWindTop = 'cargo-wind-top',
|
|
74
|
+
fishCageSide = 'fish-cage-side',
|
|
75
|
+
fishCageTop = 'fish-cage-top',
|
|
72
76
|
fishingVesselSide = 'fishing-vessel-side',
|
|
73
77
|
fishingVesselSideFaded = 'fishing-vessel-side-faded',
|
|
74
78
|
fishingVesselTop = 'fishing-vessel-top',
|
|
@@ -124,6 +128,8 @@ export const vesselImages: Record<VesselImage, SVGTemplateResult> = {
|
|
|
124
128
|
[VesselImage.cargoWindSide]: cargoWindSide,
|
|
125
129
|
[VesselImage.cargoWindSideFaded]: cargoWindSideFaded,
|
|
126
130
|
[VesselImage.cargoWindTop]: cargoWindTop.default,
|
|
131
|
+
[VesselImage.fishCageSide]: fishCageSide,
|
|
132
|
+
[VesselImage.fishCageTop]: fishCageTop,
|
|
127
133
|
[VesselImage.fishingVesselSide]: fishingVesselSide,
|
|
128
134
|
[VesselImage.fishingVesselSideFaded]: fishingVesselSideFaded,
|
|
129
135
|
[VesselImage.fishingVesselTop]: fishingVesselTop.default,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {svg} from 'lit';
|
|
2
|
+
|
|
3
|
+
export default svg`<svg width="160" height="160" viewBox="0 0 160 160" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<path d="M68.307 151.604V154.209C68.307 154.761 68.7547 155.209 69.307 155.209H80H90.693C91.2453 155.209 91.693 154.761 91.693 154.209V151.604H80H68.307Z" fill="var(--instrument-frame-primary-color)"/>
|
|
5
|
+
<path d="M36.5898 81.7408C36.5898 82.2931 37.0376 82.7408 37.5898 82.7408H40.3413H80H119.659H122.41C122.962 82.7408 123.41 82.2931 123.41 81.7408V78.3816C123.41 77.8293 122.962 77.3816 122.41 77.3816H119.659H80H40.3413H37.5898C37.0376 77.3816 36.5898 77.8293 36.5898 78.3816V81.7408Z" fill="var(--instrument-frame-primary-color)"/>
|
|
6
|
+
<path d="M41.3413 72.1172C40.789 72.1172 40.3413 72.5649 40.3413 73.1172V77.3816H80H119.659V73.1172C119.659 72.5649 119.211 72.1172 118.659 72.1172H80H41.3413Z" fill="var(--instrument-frame-primary-color)"/>
|
|
7
|
+
<path d="M40.3413 82.7408H80H119.659C119.662 86.1285 119.56 89.3676 119.365 92.4633C119.128 96.2295 118.835 99.2143 118.344 102.565C117.859 105.875 117.178 109.555 116.487 112.477C115.654 116.004 114.686 119.255 113.622 122.247C112.323 125.896 110.879 129.159 109.359 132.065C107.176 136.235 104.834 139.669 102.531 142.451C98.4117 147.427 94.4193 150.317 91.693 151.604H80H68.307C65.5807 150.317 61.5883 147.427 57.469 142.451C55.1664 139.669 52.8241 136.235 50.6411 132.065C49.1205 129.159 47.6772 125.896 46.3784 122.247C45.3136 119.255 44.346 116.004 43.5125 112.477C42.8736 109.774 42.3838 106.421 41.9298 103.313L41.8204 102.565L41.7386 102.008C41.2788 98.8793 40.8586 96.0197 40.6346 92.4633C40.4396 89.3676 40.3378 86.1285 40.3413 82.7408Z" fill="var(--instrument-frame-primary-color)"/>
|
|
8
|
+
<path d="M68.307 151.604V154.209C68.307 154.761 68.7547 155.209 69.307 155.209H80H90.693C91.2453 155.209 91.693 154.761 91.693 154.209V151.604M68.307 151.604H80H91.693M41.7386 102.008C41.7657 102.193 41.793 102.378 41.8204 102.565L41.9298 103.313C42.3838 106.421 42.8736 109.774 43.5125 112.477C44.346 116.004 45.3136 119.255 46.3784 122.247C47.6772 125.896 49.1205 129.159 50.6411 132.065C52.8241 136.235 55.1664 139.669 57.469 142.451C61.5883 147.427 65.5807 150.317 68.307 151.604M91.693 151.604C94.4193 150.317 98.4117 147.427 102.531 142.451C104.834 139.669 107.176 136.235 109.359 132.065C110.879 129.159 112.323 125.896 113.622 122.247C114.686 119.255 115.654 116.004 116.487 112.477C117.178 109.555 117.859 105.875 118.344 102.565C118.835 99.2143 119.128 96.2295 119.365 92.4633C119.56 89.3676 119.662 86.1285 119.659 82.7408M40.3413 82.7408H37.5898C37.0376 82.7408 36.5898 82.2931 36.5898 81.7408V78.3816C36.5898 77.8293 37.0376 77.3816 37.5898 77.3816H40.3413M40.3413 82.7408H80H119.659M40.3413 82.7408C40.3378 86.1285 40.4396 89.3676 40.6346 92.4633C40.8586 96.0197 41.2788 98.8793 41.7386 102.008M119.659 82.7408H122.41C122.962 82.7408 123.41 82.2931 123.41 81.7408V78.3816C123.41 77.8293 122.962 77.3816 122.41 77.3816H119.659M119.659 77.3816H80H40.3413M119.659 77.3816V73.1172C119.659 72.5649 119.211 72.1172 118.659 72.1172H80H41.3413C40.789 72.1172 40.3413 72.5649 40.3413 73.1172V77.3816M41.8204 102.565L41.7386 102.008" vector-effect="non-scaling-stroke" stroke="var(--instrument-tick-mark-secondary-color)"/>
|
|
9
|
+
</svg>
|
|
10
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {svg} from 'lit';
|
|
2
|
+
|
|
3
|
+
export default svg`<svg width="160" height="160" viewBox="0 0 160 160" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
<path d="M101.086 36.0945L80.1035 30.2248L79.9993 30.1953L79.895 30.2248L58.9132 36.0944C59.2751 36.5959 59.4897 37.2198 59.4897 37.8961C59.4897 39.551 58.2047 40.8926 56.6196 40.8926C55.4473 40.8926 54.4392 40.1588 53.9936 39.1072L38.6721 55.1036L38.6471 55.2018L33.049 77.0142C33.1341 77.0062 33.2203 77.0022 33.3074 77.0022C34.8925 77.0022 36.1775 78.3438 36.1775 79.9987C36.1775 81.6536 34.8925 82.9952 33.3074 82.9952C33.2202 82.9952 33.134 82.9912 33.0488 82.9832L38.6471 104.796L38.6721 104.894L54.165 121.07C54.6684 120.205 55.5794 119.627 56.6196 119.627C58.2047 119.627 59.4897 120.969 59.4897 122.624C59.4897 123.111 59.3782 123.571 59.1803 123.978L79.895 129.773L79.9993 129.803L80.1035 129.773L100.819 123.978C100.621 123.571 100.51 123.111 100.51 122.624C100.51 120.969 101.795 119.627 103.38 119.627C104.42 119.627 105.331 120.205 105.834 121.07L121.327 104.894L121.352 104.796L126.951 82.9833C126.866 82.9912 126.78 82.9952 126.693 82.9952C125.108 82.9952 123.823 81.6536 123.823 79.9987C123.823 78.3438 125.108 77.0022 126.693 77.0022C126.78 77.0022 126.866 77.0062 126.95 77.0141L121.352 55.2018L121.327 55.1036L106.006 39.1074C105.56 40.159 104.552 40.8926 103.38 40.8926C101.795 40.8926 100.51 39.551 100.51 37.8961C100.51 37.2199 100.724 36.596 101.086 36.0945ZM39.1736 79.999C39.1736 56.4579 57.4522 37.3741 80 37.3741C102.548 37.3742 120.826 56.458 120.826 79.999C120.826 101.956 104.925 120.035 84.4899 122.369C83.4611 122.487 82.4208 122.564 81.3704 122.6C81.3556 122.601 81.3408 122.601 81.326 122.602C80.8857 122.617 80.4437 122.624 80 122.624C57.4522 122.624 39.1737 103.54 39.1736 79.999Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
|
|
5
|
+
<path d="M33.0488 82.9832C33.134 82.9912 33.2202 82.9952 33.3074 82.9952C34.8925 82.9952 36.1775 81.6536 36.1775 79.9987C36.1775 78.3438 34.8925 77.0022 33.3074 77.0022C33.2203 77.0022 33.1341 77.0062 33.049 77.0142C31.5849 77.1506 30.4373 78.4347 30.4373 79.9987C30.4373 81.5626 31.5848 82.8467 33.0488 82.9832Z" fill="var(--instrument-frame-primary-color)"/>
|
|
6
|
+
<path d="M58.9132 36.0944C58.3894 35.3688 57.557 34.8996 56.6196 34.8996C55.0345 34.8996 53.7495 36.2412 53.7495 37.8961C53.7495 38.3271 53.8367 38.7369 53.9936 39.1072C54.4392 40.1588 55.4473 40.8926 56.6196 40.8926C58.2047 40.8926 59.4897 39.551 59.4897 37.8961C59.4897 37.2198 59.2751 36.5959 58.9132 36.0944Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
|
|
7
|
+
<path d="M103.38 34.8996C102.443 34.8996 101.61 35.3688 101.086 36.0945C100.724 36.596 100.51 37.2199 100.51 37.8961C100.51 39.551 101.795 40.8926 103.38 40.8926C104.552 40.8926 105.56 40.159 106.006 39.1074C106.163 38.737 106.25 38.3272 106.25 37.8961C106.25 36.2412 104.965 34.8996 103.38 34.8996Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
|
|
8
|
+
<path d="M126.95 77.0141C126.866 77.0062 126.78 77.0022 126.693 77.0022C125.108 77.0022 123.823 78.3438 123.823 79.9987C123.823 81.6536 125.108 82.9952 126.693 82.9952C126.78 82.9952 126.866 82.9912 126.951 82.9833C128.415 82.8474 129.563 81.563 129.563 79.9987C129.563 78.4343 128.415 77.1499 126.95 77.0141Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
|
|
9
|
+
<path d="M105.834 121.07C105.331 120.205 104.42 119.627 103.38 119.627C101.795 119.627 100.51 120.969 100.51 122.624C100.51 123.111 100.621 123.571 100.819 123.978C101.293 124.953 102.262 125.62 103.38 125.62C104.965 125.62 106.25 124.279 106.25 122.624C106.25 122.055 106.098 121.523 105.834 121.07Z" fill-rule="evenodd" clip-rule="evenodd" fill="var(--instrument-frame-primary-color)"/>
|
|
10
|
+
<path d="M89.176 121.544C87.6451 121.911 86.0812 122.188 84.4899 122.369C84.4096 122.378 84.3293 122.387 84.2489 122.396L70.7184 38.4805C72.3255 38.0909 73.9054 37.8065 75.579 37.6211L89.176 121.544Z" fill="var(--instrument-frame-primary-color)"/>
|
|
11
|
+
<path d="M56.6196 119.627C55.5794 119.627 54.6684 120.205 54.165 121.07C53.9014 121.523 53.7495 122.055 53.7495 122.624C53.7495 124.279 55.0345 125.62 56.6196 125.62C57.7377 125.62 58.7065 124.953 59.1803 123.978C59.3782 123.571 59.4897 123.111 59.4897 122.624C59.4897 120.969 58.2047 119.627 56.6196 119.627Z" fill="var(--instrument-frame-primary-color)"/>
|
|
12
|
+
<path d="M70.7184 38.4805C72.328 38.0898 73.9026 37.8065 75.579 37.6211L89.176 121.544C87.6451 121.911 86.0812 122.188 84.4899 122.369C84.4096 122.378 84.3293 122.387 84.2489 122.396L70.7184 38.4805Z" fill="var(--instrument-frame-primary-color)"/>
|
|
13
|
+
<path d="M70.7184 38.4805C52.6422 42.868 39.1736 59.7913 39.1736 79.999C39.1737 103.54 57.4522 122.624 80 122.624C80.4437 122.624 80.8857 122.617 81.326 122.602L81.3704 122.6C82.4208 122.564 83.4611 122.487 84.4899 122.369C84.4096 122.378 84.3293 122.387 84.2489 122.396L70.7184 38.4805Z" fill="var(--instrument-frame-secondary-color)"/>
|
|
14
|
+
<path d="M80 37.3741C78.5063 37.3741 77.0312 37.4579 75.579 37.6211L89.176 121.544C107.305 117.197 120.826 100.246 120.826 79.999C120.826 56.458 102.548 37.3742 80 37.3741Z" fill="var(--instrument-frame-secondary-color)"/>
|
|
15
|
+
<path d="M101.086 36.0945L80.1035 30.2248L79.9993 30.1953L79.895 30.2248L58.9132 36.0944M106.006 39.1074C106.163 38.737 106.25 38.3272 106.25 37.8961C106.25 36.2412 104.965 34.8996 103.38 34.8996C102.443 34.8996 101.61 35.3688 101.086 36.0945C100.724 36.596 100.51 37.2199 100.51 37.8961C100.51 39.551 101.795 40.8926 103.38 40.8926C104.552 40.8926 105.56 40.159 106.006 39.1074ZM53.9936 39.1072C53.8367 38.7369 53.7495 38.3271 53.7495 37.8961C53.7495 36.2412 55.0345 34.8996 56.6196 34.8996C57.557 34.8996 58.3894 35.3688 58.9132 36.0944C59.2751 36.5959 59.4897 37.2198 59.4897 37.8961C59.4897 39.551 58.2047 40.8926 56.6196 40.8926C55.4473 40.8926 54.4392 40.1588 53.9936 39.1072ZM53.9936 39.1072L38.6721 55.1036L38.6471 55.2018L33.049 77.0142M33.0488 82.9832C31.5848 82.8467 30.4373 81.5626 30.4373 79.9987C30.4373 78.4347 31.5849 77.1506 33.049 77.0142C33.1341 77.0062 33.2203 77.0022 33.3074 77.0022C34.8925 77.0022 36.1775 78.3438 36.1775 79.9987C36.1775 81.6536 34.8925 82.9952 33.3074 82.9952C33.2202 82.9952 33.134 82.9912 33.0488 82.9832ZM33.0488 82.9832L38.6471 104.796L38.6721 104.894L54.165 121.07M59.1803 123.978C58.7065 124.953 57.7377 125.62 56.6196 125.62C55.0345 125.62 53.7495 124.279 53.7495 122.624C53.7495 122.055 53.9014 121.523 54.165 121.07C54.6684 120.205 55.5794 119.627 56.6196 119.627C58.2047 119.627 59.4897 120.969 59.4897 122.624C59.4897 123.111 59.3782 123.571 59.1803 123.978ZM59.1803 123.978L79.895 129.773L79.9993 129.803L80.1035 129.773L100.819 123.978M105.834 121.07C106.098 121.523 106.25 122.055 106.25 122.624C106.25 124.279 104.965 125.62 103.38 125.62C102.262 125.62 101.293 124.953 100.819 123.978C100.621 123.571 100.51 123.111 100.51 122.624C100.51 120.969 101.795 119.627 103.38 119.627C104.42 119.627 105.331 120.205 105.834 121.07ZM105.834 121.07L121.327 104.894L121.352 104.796L126.951 82.9833M126.951 82.9833C126.866 82.9912 126.78 82.9952 126.693 82.9952C125.108 82.9952 123.823 81.6536 123.823 79.9987C123.823 78.3438 125.108 77.0022 126.693 77.0022C126.78 77.0022 126.866 77.0062 126.95 77.0141M126.951 82.9833C128.415 82.8474 129.563 81.563 129.563 79.9987C129.563 78.4343 128.415 77.1499 126.95 77.0141M126.95 77.0141L121.352 55.2018L121.327 55.1036L106.006 39.1074M81.3704 122.6C81.3556 122.601 81.3408 122.601 81.326 122.602C80.8857 122.617 80.4437 122.624 80 122.624C57.4522 122.624 39.1737 103.54 39.1736 79.999C39.1736 56.4579 57.4522 37.3741 80 37.3741M39.1736 79.999C39.1736 57.9919 55.0761 39.8881 75.579 37.6211M75.579 37.6211C73.9026 37.8065 72.328 38.0898 70.7184 38.4805C52.6422 42.868 39.1736 59.7913 39.1736 79.999M75.579 37.6211C77.0312 37.4579 78.5063 37.3741 80 37.3741C102.548 37.3742 120.826 56.458 120.826 79.999C120.826 100.246 107.305 117.197 89.176 121.544C87.6451 121.911 86.0812 122.188 84.4899 122.369M120.826 79.999C120.826 101.956 104.925 120.035 84.4899 122.369M89.176 121.544L75.579 37.6211M70.7184 38.4805L84.2489 122.396C84.3293 122.387 84.4096 122.378 84.4899 122.369M70.7184 38.4805C72.3255 38.0909 73.9054 37.8065 75.579 37.6211M81.326 122.602L81.3704 122.6M81.3704 122.6C82.4208 122.564 83.4611 122.487 84.4899 122.369" vector-effect="non-scaling-stroke" stroke="var(--instrument-tick-mark-secondary-color)"/>
|
|
16
|
+
</svg>
|
|
17
|
+
`;
|