@oicl/openbridge-webcomponents 2.0.0-next.102 → 2.0.0-next.103
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 +579 -143
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +338 -8
- package/dist/building-blocks/instrument-radial/instrument-radial.d.ts +22 -2
- package/dist/building-blocks/instrument-radial/instrument-radial.d.ts.map +1 -1
- package/dist/building-blocks/instrument-radial/instrument-radial.js +61 -37
- package/dist/building-blocks/instrument-radial/instrument-radial.js.map +1 -1
- package/dist/navigation-instruments/azimuth-thruster/azimuth-thruster.d.ts +14 -0
- package/dist/navigation-instruments/azimuth-thruster/azimuth-thruster.d.ts.map +1 -1
- package/dist/navigation-instruments/azimuth-thruster/azimuth-thruster.js +30 -11
- package/dist/navigation-instruments/azimuth-thruster/azimuth-thruster.js.map +1 -1
- package/dist/navigation-instruments/compass/compass.d.ts +21 -1
- package/dist/navigation-instruments/compass/compass.d.ts.map +1 -1
- package/dist/navigation-instruments/compass/compass.js +36 -16
- package/dist/navigation-instruments/compass/compass.js.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.d.ts.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.js.map +1 -1
- package/dist/navigation-instruments/gauge-radial/gauge-radial.css.js +34 -2
- package/dist/navigation-instruments/gauge-radial/gauge-radial.css.js.map +1 -1
- package/dist/navigation-instruments/gauge-radial/gauge-radial.d.ts +15 -0
- package/dist/navigation-instruments/gauge-radial/gauge-radial.d.ts.map +1 -1
- package/dist/navigation-instruments/gauge-radial/gauge-radial.js +35 -1
- package/dist/navigation-instruments/gauge-radial/gauge-radial.js.map +1 -1
- package/dist/navigation-instruments/heading/heading.d.ts +19 -1
- package/dist/navigation-instruments/heading/heading.d.ts.map +1 -1
- package/dist/navigation-instruments/heading/heading.js +34 -16
- package/dist/navigation-instruments/heading/heading.js.map +1 -1
- package/dist/navigation-instruments/rudder/rudder.d.ts +15 -2
- package/dist/navigation-instruments/rudder/rudder.d.ts.map +1 -1
- package/dist/navigation-instruments/rudder/rudder.js +36 -26
- package/dist/navigation-instruments/rudder/rudder.js.map +1 -1
- package/dist/navigation-instruments/speed-gauge/speed-gauge.d.ts +15 -1
- package/dist/navigation-instruments/speed-gauge/speed-gauge.d.ts.map +1 -1
- package/dist/navigation-instruments/speed-gauge/speed-gauge.js +31 -3
- package/dist/navigation-instruments/speed-gauge/speed-gauge.js.map +1 -1
- package/dist/navigation-instruments/watch/watch.d.ts +29 -1
- package/dist/navigation-instruments/watch/watch.d.ts.map +1 -1
- package/dist/navigation-instruments/watch/watch.js +52 -38
- package/dist/navigation-instruments/watch/watch.js.map +1 -1
- package/dist/svghelpers/radial-frame.d.ts +122 -0
- package/dist/svghelpers/radial-frame.d.ts.map +1 -0
- package/dist/svghelpers/radial-frame.js +259 -0
- package/dist/svghelpers/radial-frame.js.map +1 -0
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -38344,6 +38344,15 @@
|
|
|
38344
38344
|
"default": "false",
|
|
38345
38345
|
"attribute": "zoomToFitArc"
|
|
38346
38346
|
},
|
|
38347
|
+
{
|
|
38348
|
+
"kind": "field",
|
|
38349
|
+
"name": "faceDiameter",
|
|
38350
|
+
"type": {
|
|
38351
|
+
"text": "number | undefined"
|
|
38352
|
+
},
|
|
38353
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
38354
|
+
"attribute": "face-diameter"
|
|
38355
|
+
},
|
|
38347
38356
|
{
|
|
38348
38357
|
"kind": "field",
|
|
38349
38358
|
"name": "_radiusOffset",
|
|
@@ -38355,12 +38364,46 @@
|
|
|
38355
38364
|
},
|
|
38356
38365
|
{
|
|
38357
38366
|
"kind": "field",
|
|
38358
|
-
"name": "
|
|
38367
|
+
"name": "_frame",
|
|
38359
38368
|
"type": {
|
|
38360
|
-
"text": "
|
|
38369
|
+
"text": "RadialFrame | undefined"
|
|
38361
38370
|
},
|
|
38362
38371
|
"privacy": "private"
|
|
38363
38372
|
},
|
|
38373
|
+
{
|
|
38374
|
+
"kind": "field",
|
|
38375
|
+
"name": "_lastFrameKey",
|
|
38376
|
+
"type": {
|
|
38377
|
+
"text": "string"
|
|
38378
|
+
},
|
|
38379
|
+
"privacy": "private",
|
|
38380
|
+
"default": "''"
|
|
38381
|
+
},
|
|
38382
|
+
{
|
|
38383
|
+
"kind": "field",
|
|
38384
|
+
"name": "_resizeController",
|
|
38385
|
+
"privacy": "private",
|
|
38386
|
+
"default": "new ResizeController(this, {})"
|
|
38387
|
+
},
|
|
38388
|
+
{
|
|
38389
|
+
"kind": "field",
|
|
38390
|
+
"name": "frame",
|
|
38391
|
+
"type": {
|
|
38392
|
+
"text": "RadialFrame | undefined"
|
|
38393
|
+
},
|
|
38394
|
+
"description": "The frame computed for the current render (viewBox, label reserve …).",
|
|
38395
|
+
"readonly": true
|
|
38396
|
+
},
|
|
38397
|
+
{
|
|
38398
|
+
"kind": "field",
|
|
38399
|
+
"name": "_hostSizePinned",
|
|
38400
|
+
"type": {
|
|
38401
|
+
"text": "boolean"
|
|
38402
|
+
},
|
|
38403
|
+
"privacy": "private",
|
|
38404
|
+
"default": "false",
|
|
38405
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
38406
|
+
},
|
|
38364
38407
|
{
|
|
38365
38408
|
"kind": "field",
|
|
38366
38409
|
"name": "clampedValue",
|
|
@@ -38641,6 +38684,15 @@
|
|
|
38641
38684
|
}
|
|
38642
38685
|
}
|
|
38643
38686
|
],
|
|
38687
|
+
"events": [
|
|
38688
|
+
{
|
|
38689
|
+
"name": "frame-changed",
|
|
38690
|
+
"type": {
|
|
38691
|
+
"text": "CustomEvent"
|
|
38692
|
+
},
|
|
38693
|
+
"description": "{CustomEvent<RadialFrame>} Fired after render when the computed radial frame changed (viewBox, label visibility, or pinned host size). Wrappers use it to align sibling overlays/readouts with the dial."
|
|
38694
|
+
}
|
|
38695
|
+
],
|
|
38644
38696
|
"attributes": [
|
|
38645
38697
|
{
|
|
38646
38698
|
"name": "state",
|
|
@@ -38807,6 +38859,14 @@
|
|
|
38807
38859
|
"default": "false",
|
|
38808
38860
|
"fieldName": "zoomToFitArc"
|
|
38809
38861
|
},
|
|
38862
|
+
{
|
|
38863
|
+
"name": "face-diameter",
|
|
38864
|
+
"type": {
|
|
38865
|
+
"text": "number | undefined"
|
|
38866
|
+
},
|
|
38867
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
38868
|
+
"fieldName": "faceDiameter"
|
|
38869
|
+
},
|
|
38810
38870
|
{
|
|
38811
38871
|
"name": "setpoint",
|
|
38812
38872
|
"type": {
|
|
@@ -73445,6 +73505,39 @@
|
|
|
73445
73505
|
"default": "false",
|
|
73446
73506
|
"attribute": "starboardPortIndicator"
|
|
73447
73507
|
},
|
|
73508
|
+
{
|
|
73509
|
+
"kind": "field",
|
|
73510
|
+
"name": "faceDiameter",
|
|
73511
|
+
"type": {
|
|
73512
|
+
"text": "number | undefined"
|
|
73513
|
+
},
|
|
73514
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
73515
|
+
"attribute": "face-diameter"
|
|
73516
|
+
},
|
|
73517
|
+
{
|
|
73518
|
+
"kind": "field",
|
|
73519
|
+
"name": "_frame",
|
|
73520
|
+
"type": {
|
|
73521
|
+
"text": "RadialFrame | undefined"
|
|
73522
|
+
},
|
|
73523
|
+
"privacy": "private"
|
|
73524
|
+
},
|
|
73525
|
+
{
|
|
73526
|
+
"kind": "field",
|
|
73527
|
+
"name": "_hostSizePinned",
|
|
73528
|
+
"type": {
|
|
73529
|
+
"text": "boolean"
|
|
73530
|
+
},
|
|
73531
|
+
"privacy": "private",
|
|
73532
|
+
"default": "false",
|
|
73533
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
73534
|
+
},
|
|
73535
|
+
{
|
|
73536
|
+
"kind": "field",
|
|
73537
|
+
"name": "_resizeController",
|
|
73538
|
+
"privacy": "private",
|
|
73539
|
+
"default": "new ResizeController(this, {})"
|
|
73540
|
+
},
|
|
73448
73541
|
{
|
|
73449
73542
|
"kind": "field",
|
|
73450
73543
|
"name": "angleAdviceRaw",
|
|
@@ -73691,6 +73784,14 @@
|
|
|
73691
73784
|
},
|
|
73692
73785
|
"default": "false",
|
|
73693
73786
|
"fieldName": "starboardPortIndicator"
|
|
73787
|
+
},
|
|
73788
|
+
{
|
|
73789
|
+
"name": "face-diameter",
|
|
73790
|
+
"type": {
|
|
73791
|
+
"text": "number | undefined"
|
|
73792
|
+
},
|
|
73793
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
73794
|
+
"fieldName": "faceDiameter"
|
|
73694
73795
|
}
|
|
73695
73796
|
],
|
|
73696
73797
|
"superclass": {
|
|
@@ -75676,6 +75777,15 @@
|
|
|
75676
75777
|
"description": "When true, labels and north arrow are placed inside the outer ring.",
|
|
75677
75778
|
"attribute": "tickmarksInside"
|
|
75678
75779
|
},
|
|
75780
|
+
{
|
|
75781
|
+
"kind": "field",
|
|
75782
|
+
"name": "faceDiameter",
|
|
75783
|
+
"type": {
|
|
75784
|
+
"text": "number | undefined"
|
|
75785
|
+
},
|
|
75786
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
75787
|
+
"attribute": "face-diameter"
|
|
75788
|
+
},
|
|
75679
75789
|
{
|
|
75680
75790
|
"kind": "field",
|
|
75681
75791
|
"name": "_headingSp",
|
|
@@ -75700,7 +75810,31 @@
|
|
|
75700
75810
|
},
|
|
75701
75811
|
{
|
|
75702
75812
|
"kind": "method",
|
|
75703
|
-
"name": "
|
|
75813
|
+
"name": "getOutsideDecorPx",
|
|
75814
|
+
"privacy": "private",
|
|
75815
|
+
"return": {
|
|
75816
|
+
"type": {
|
|
75817
|
+
"text": "number"
|
|
75818
|
+
}
|
|
75819
|
+
},
|
|
75820
|
+
"description": "Pixel cost of the outside decor: the always-rendered north-arrow glyph\nplus, only while shown, the NSWE labels (both keep a constant on-screen\nsize via `1/scale` terms). Feeds the frame's width-aware reserve,\nreplacing the former empirical `72 + delta(clientSize)` padding.\nWind/current symbols at their default radius are covered by the base\npadding of 72."
|
|
75821
|
+
},
|
|
75822
|
+
{
|
|
75823
|
+
"kind": "field",
|
|
75824
|
+
"name": "_hostSizePinned",
|
|
75825
|
+
"type": {
|
|
75826
|
+
"text": "boolean"
|
|
75827
|
+
},
|
|
75828
|
+
"privacy": "private",
|
|
75829
|
+
"default": "false",
|
|
75830
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
75831
|
+
},
|
|
75832
|
+
{
|
|
75833
|
+
"kind": "field",
|
|
75834
|
+
"name": "_frame",
|
|
75835
|
+
"type": {
|
|
75836
|
+
"text": "RadialFrame | undefined"
|
|
75837
|
+
},
|
|
75704
75838
|
"privacy": "private"
|
|
75705
75839
|
},
|
|
75706
75840
|
{
|
|
@@ -76004,6 +76138,14 @@
|
|
|
76004
76138
|
"default": "false",
|
|
76005
76139
|
"description": "When true, labels and north arrow are placed inside the outer ring.",
|
|
76006
76140
|
"fieldName": "tickmarksInside"
|
|
76141
|
+
},
|
|
76142
|
+
{
|
|
76143
|
+
"name": "face-diameter",
|
|
76144
|
+
"type": {
|
|
76145
|
+
"text": "number | undefined"
|
|
76146
|
+
},
|
|
76147
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
76148
|
+
"fieldName": "faceDiameter"
|
|
76007
76149
|
}
|
|
76008
76150
|
],
|
|
76009
76151
|
"superclass": {
|
|
@@ -78001,6 +78143,16 @@
|
|
|
78001
78143
|
"default": "0",
|
|
78002
78144
|
"attribute": "fractionDigits"
|
|
78003
78145
|
},
|
|
78146
|
+
{
|
|
78147
|
+
"kind": "field",
|
|
78148
|
+
"name": "faceDiameter",
|
|
78149
|
+
"type": {
|
|
78150
|
+
"text": "number | undefined"
|
|
78151
|
+
},
|
|
78152
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
78153
|
+
"attribute": "face-diameter",
|
|
78154
|
+
"reflects": true
|
|
78155
|
+
},
|
|
78004
78156
|
{
|
|
78005
78157
|
"kind": "field",
|
|
78006
78158
|
"name": "sectorAngles",
|
|
@@ -78029,6 +78181,12 @@
|
|
|
78029
78181
|
"privacy": "private",
|
|
78030
78182
|
"readonly": true
|
|
78031
78183
|
},
|
|
78184
|
+
{
|
|
78185
|
+
"kind": "field",
|
|
78186
|
+
"name": "_onFrameChanged",
|
|
78187
|
+
"privacy": "private",
|
|
78188
|
+
"description": "Re-anchor the %-positioned readouts against the frame the inner\ninstrument actually rendered (the box grows when labels need room)."
|
|
78189
|
+
},
|
|
78032
78190
|
{
|
|
78033
78191
|
"kind": "field",
|
|
78034
78192
|
"name": "getAngle"
|
|
@@ -78392,6 +78550,14 @@
|
|
|
78392
78550
|
"default": "0",
|
|
78393
78551
|
"fieldName": "fractionDigits"
|
|
78394
78552
|
},
|
|
78553
|
+
{
|
|
78554
|
+
"name": "face-diameter",
|
|
78555
|
+
"type": {
|
|
78556
|
+
"text": "number | undefined"
|
|
78557
|
+
},
|
|
78558
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
78559
|
+
"fieldName": "faceDiameter"
|
|
78560
|
+
},
|
|
78395
78561
|
{
|
|
78396
78562
|
"name": "setpoint",
|
|
78397
78563
|
"type": {
|
|
@@ -82242,6 +82408,15 @@
|
|
|
82242
82408
|
"description": "When true, labels and north arrow are placed inside the outer ring.",
|
|
82243
82409
|
"attribute": "tickmarksInside"
|
|
82244
82410
|
},
|
|
82411
|
+
{
|
|
82412
|
+
"kind": "field",
|
|
82413
|
+
"name": "faceDiameter",
|
|
82414
|
+
"type": {
|
|
82415
|
+
"text": "number | undefined"
|
|
82416
|
+
},
|
|
82417
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
82418
|
+
"attribute": "face-diameter"
|
|
82419
|
+
},
|
|
82245
82420
|
{
|
|
82246
82421
|
"kind": "field",
|
|
82247
82422
|
"name": "_headingSp",
|
|
@@ -82256,7 +82431,31 @@
|
|
|
82256
82431
|
},
|
|
82257
82432
|
{
|
|
82258
82433
|
"kind": "method",
|
|
82259
|
-
"name": "
|
|
82434
|
+
"name": "getOutsideDecorPx",
|
|
82435
|
+
"privacy": "private",
|
|
82436
|
+
"return": {
|
|
82437
|
+
"type": {
|
|
82438
|
+
"text": "number"
|
|
82439
|
+
}
|
|
82440
|
+
},
|
|
82441
|
+
"description": "Pixel cost of the outside decor: the always-rendered north-arrow glyph\nplus, only while shown, the NSWE labels (both keep a constant on-screen\nsize via `1/scale` terms). Feeds the frame's width-aware reserve,\nreplacing the former empirical `72 + delta(clientSize)` padding."
|
|
82442
|
+
},
|
|
82443
|
+
{
|
|
82444
|
+
"kind": "field",
|
|
82445
|
+
"name": "_hostSizePinned",
|
|
82446
|
+
"type": {
|
|
82447
|
+
"text": "boolean"
|
|
82448
|
+
},
|
|
82449
|
+
"privacy": "private",
|
|
82450
|
+
"default": "false",
|
|
82451
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
82452
|
+
},
|
|
82453
|
+
{
|
|
82454
|
+
"kind": "field",
|
|
82455
|
+
"name": "_frame",
|
|
82456
|
+
"type": {
|
|
82457
|
+
"text": "RadialFrame | undefined"
|
|
82458
|
+
},
|
|
82260
82459
|
"privacy": "private"
|
|
82261
82460
|
},
|
|
82262
82461
|
{
|
|
@@ -82408,6 +82607,14 @@
|
|
|
82408
82607
|
"default": "false",
|
|
82409
82608
|
"description": "When true, labels and north arrow are placed inside the outer ring.",
|
|
82410
82609
|
"fieldName": "tickmarksInside"
|
|
82610
|
+
},
|
|
82611
|
+
{
|
|
82612
|
+
"name": "face-diameter",
|
|
82613
|
+
"type": {
|
|
82614
|
+
"text": "number | undefined"
|
|
82615
|
+
},
|
|
82616
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
82617
|
+
"fieldName": "faceDiameter"
|
|
82411
82618
|
}
|
|
82412
82619
|
],
|
|
82413
82620
|
"superclass": {
|
|
@@ -90665,6 +90872,15 @@
|
|
|
90665
90872
|
"default": "false",
|
|
90666
90873
|
"attribute": "zoomToFitArc"
|
|
90667
90874
|
},
|
|
90875
|
+
{
|
|
90876
|
+
"kind": "field",
|
|
90877
|
+
"name": "faceDiameter",
|
|
90878
|
+
"type": {
|
|
90879
|
+
"text": "number | undefined"
|
|
90880
|
+
},
|
|
90881
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
90882
|
+
"attribute": "face-diameter"
|
|
90883
|
+
},
|
|
90668
90884
|
{
|
|
90669
90885
|
"kind": "field",
|
|
90670
90886
|
"name": "_radiusOffset",
|
|
@@ -90676,12 +90892,28 @@
|
|
|
90676
90892
|
},
|
|
90677
90893
|
{
|
|
90678
90894
|
"kind": "field",
|
|
90679
|
-
"name": "
|
|
90895
|
+
"name": "_frame",
|
|
90680
90896
|
"type": {
|
|
90681
|
-
"text": "
|
|
90897
|
+
"text": "RadialFrame | undefined"
|
|
90682
90898
|
},
|
|
90683
90899
|
"privacy": "private"
|
|
90684
90900
|
},
|
|
90901
|
+
{
|
|
90902
|
+
"kind": "field",
|
|
90903
|
+
"name": "_hostSizePinned",
|
|
90904
|
+
"type": {
|
|
90905
|
+
"text": "boolean"
|
|
90906
|
+
},
|
|
90907
|
+
"privacy": "private",
|
|
90908
|
+
"default": "false",
|
|
90909
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
90910
|
+
},
|
|
90911
|
+
{
|
|
90912
|
+
"kind": "field",
|
|
90913
|
+
"name": "_resizeController",
|
|
90914
|
+
"privacy": "private",
|
|
90915
|
+
"default": "new ResizeController(this, {})"
|
|
90916
|
+
},
|
|
90685
90917
|
{
|
|
90686
90918
|
"kind": "field",
|
|
90687
90919
|
"name": "_needleTransform",
|
|
@@ -90967,6 +91199,14 @@
|
|
|
90967
91199
|
"default": "false",
|
|
90968
91200
|
"fieldName": "zoomToFitArc"
|
|
90969
91201
|
},
|
|
91202
|
+
{
|
|
91203
|
+
"name": "face-diameter",
|
|
91204
|
+
"type": {
|
|
91205
|
+
"text": "number | undefined"
|
|
91206
|
+
},
|
|
91207
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
91208
|
+
"fieldName": "faceDiameter"
|
|
91209
|
+
},
|
|
90970
91210
|
{
|
|
90971
91211
|
"name": "setpoint",
|
|
90972
91212
|
"type": {
|
|
@@ -91450,6 +91690,39 @@
|
|
|
91450
91690
|
"description": "Number of fraction digits shown in the readout. Default `1`.",
|
|
91451
91691
|
"attribute": "fractionDigits"
|
|
91452
91692
|
},
|
|
91693
|
+
{
|
|
91694
|
+
"kind": "field",
|
|
91695
|
+
"name": "faceDiameter",
|
|
91696
|
+
"type": {
|
|
91697
|
+
"text": "number | undefined"
|
|
91698
|
+
},
|
|
91699
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
91700
|
+
"attribute": "face-diameter"
|
|
91701
|
+
},
|
|
91702
|
+
{
|
|
91703
|
+
"kind": "field",
|
|
91704
|
+
"name": "_frame",
|
|
91705
|
+
"type": {
|
|
91706
|
+
"text": "RadialFrame | undefined"
|
|
91707
|
+
},
|
|
91708
|
+
"privacy": "private"
|
|
91709
|
+
},
|
|
91710
|
+
{
|
|
91711
|
+
"kind": "field",
|
|
91712
|
+
"name": "_hostSizePinned",
|
|
91713
|
+
"type": {
|
|
91714
|
+
"text": "boolean"
|
|
91715
|
+
},
|
|
91716
|
+
"privacy": "private",
|
|
91717
|
+
"default": "false",
|
|
91718
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
91719
|
+
},
|
|
91720
|
+
{
|
|
91721
|
+
"kind": "field",
|
|
91722
|
+
"name": "_resizeController",
|
|
91723
|
+
"privacy": "private",
|
|
91724
|
+
"default": "new ResizeController(this, {})"
|
|
91725
|
+
},
|
|
91453
91726
|
{
|
|
91454
91727
|
"kind": "method",
|
|
91455
91728
|
"name": "getAngle",
|
|
@@ -91793,6 +92066,14 @@
|
|
|
91793
92066
|
"description": "Number of fraction digits shown in the readout. Default `1`.",
|
|
91794
92067
|
"fieldName": "fractionDigits"
|
|
91795
92068
|
},
|
|
92069
|
+
{
|
|
92070
|
+
"name": "face-diameter",
|
|
92071
|
+
"type": {
|
|
92072
|
+
"text": "number | undefined"
|
|
92073
|
+
},
|
|
92074
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
92075
|
+
"fieldName": "faceDiameter"
|
|
92076
|
+
},
|
|
91796
92077
|
{
|
|
91797
92078
|
"name": "setpoint",
|
|
91798
92079
|
"type": {
|
|
@@ -93481,8 +93762,18 @@
|
|
|
93481
93762
|
"type": {
|
|
93482
93763
|
"text": "number | undefined"
|
|
93483
93764
|
},
|
|
93765
|
+
"description": "Explicit padding override in SVG units: the un-zoomed viewBox becomes\nexactly `(176 + padding) * 2`. Setting it disables the automatic\nwidth-aware label reserve (issue #1021) — the caller owns label room.",
|
|
93484
93766
|
"attribute": "padding"
|
|
93485
93767
|
},
|
|
93768
|
+
{
|
|
93769
|
+
"kind": "field",
|
|
93770
|
+
"name": "faceDiameter",
|
|
93771
|
+
"type": {
|
|
93772
|
+
"text": "number | undefined"
|
|
93773
|
+
},
|
|
93774
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
93775
|
+
"attribute": "face-diameter"
|
|
93776
|
+
},
|
|
93486
93777
|
{
|
|
93487
93778
|
"kind": "field",
|
|
93488
93779
|
"name": "areas",
|
|
@@ -93880,6 +94171,35 @@
|
|
|
93880
94171
|
"privacy": "private",
|
|
93881
94172
|
"default": "0"
|
|
93882
94173
|
},
|
|
94174
|
+
{
|
|
94175
|
+
"kind": "field",
|
|
94176
|
+
"name": "_labelsHidden",
|
|
94177
|
+
"type": {
|
|
94178
|
+
"text": "boolean"
|
|
94179
|
+
},
|
|
94180
|
+
"privacy": "private",
|
|
94181
|
+
"default": "false",
|
|
94182
|
+
"description": "Set by the frame when the label reserve exceeded its cap: tick label\ntexts are dropped instead of clipped (see radial-frame.ts)."
|
|
94183
|
+
},
|
|
94184
|
+
{
|
|
94185
|
+
"kind": "field",
|
|
94186
|
+
"name": "_ownFrame",
|
|
94187
|
+
"type": {
|
|
94188
|
+
"text": "RadialFrame | undefined"
|
|
94189
|
+
},
|
|
94190
|
+
"privacy": "private",
|
|
94191
|
+
"description": "The frame of the last render, when computed internally (no arcFrame)."
|
|
94192
|
+
},
|
|
94193
|
+
{
|
|
94194
|
+
"kind": "field",
|
|
94195
|
+
"name": "_hostSizePinned",
|
|
94196
|
+
"type": {
|
|
94197
|
+
"text": "boolean"
|
|
94198
|
+
},
|
|
94199
|
+
"privacy": "private",
|
|
94200
|
+
"default": "false",
|
|
94201
|
+
"description": "Whether the host size styles were set by applyPinnedHostSize."
|
|
94202
|
+
},
|
|
93883
94203
|
{
|
|
93884
94204
|
"kind": "method",
|
|
93885
94205
|
"name": "_bandRadius",
|
|
@@ -93984,13 +94304,14 @@
|
|
|
93984
94304
|
},
|
|
93985
94305
|
{
|
|
93986
94306
|
"kind": "method",
|
|
93987
|
-
"name": "
|
|
94307
|
+
"name": "getLabelWidthPx",
|
|
93988
94308
|
"privacy": "private",
|
|
93989
94309
|
"return": {
|
|
93990
94310
|
"type": {
|
|
93991
94311
|
"text": "number"
|
|
93992
94312
|
}
|
|
93993
|
-
}
|
|
94313
|
+
},
|
|
94314
|
+
"description": "Pixel width of the widest outside label, feeding the frame's label\nreserve (issue #1021). Explicit `padding` is a hard geometry override\nand disables the reserve, preserving legacy consumer output."
|
|
93994
94315
|
},
|
|
93995
94316
|
{
|
|
93996
94317
|
"kind": "method",
|
|
@@ -94146,8 +94467,17 @@
|
|
|
94146
94467
|
"type": {
|
|
94147
94468
|
"text": "number | undefined"
|
|
94148
94469
|
},
|
|
94470
|
+
"description": "Explicit padding override in SVG units: the un-zoomed viewBox becomes\nexactly `(176 + padding) * 2`. Setting it disables the automatic\nwidth-aware label reserve (issue #1021) — the caller owns label room.",
|
|
94149
94471
|
"fieldName": "padding"
|
|
94150
94472
|
},
|
|
94473
|
+
{
|
|
94474
|
+
"name": "face-diameter",
|
|
94475
|
+
"type": {
|
|
94476
|
+
"text": "number | undefined"
|
|
94477
|
+
},
|
|
94478
|
+
"description": "Outer-ring diameter in CSS pixels. When set, the instrument renders at a\nfixed intrinsic size derived from the ring, arc shape and label reserve —\nso instruments sharing the same value have identical ring circumference\nregardless of label width or arc extent (like obc-donut-chart's\nfixedHeight). When unset (default), the instrument fills its container.",
|
|
94479
|
+
"fieldName": "faceDiameter"
|
|
94480
|
+
},
|
|
94151
94481
|
{
|
|
94152
94482
|
"name": "tickmarksInside",
|
|
94153
94483
|
"type": {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
import { AdviceType } from '../../navigation-instruments/watch/advice.js';
|
|
3
3
|
import { Tickmark, TickmarkStyle } from '../../navigation-instruments/watch/tickmark.js';
|
|
4
4
|
import { InstrumentState, Priority } from '../../navigation-instruments/types.js';
|
|
5
|
+
import { RadialFrame } from '../../svghelpers/radial-frame.js';
|
|
5
6
|
export declare enum ObcGaugeRadialType {
|
|
6
7
|
filled = "filled",
|
|
7
8
|
bar = "bar",
|
|
@@ -15,6 +16,9 @@ export interface GaugeRadialAdvice {
|
|
|
15
16
|
}
|
|
16
17
|
declare const ObcInstrumentRadial_base: (new (...args: any[]) => import('../../svghelpers/setpoint-mixin.js').SetpointMixinInterface) & typeof LitElement;
|
|
17
18
|
/**
|
|
19
|
+
* @fires frame-changed {CustomEvent<RadialFrame>} Fired after render when the
|
|
20
|
+
* computed radial frame changed (viewBox, label visibility, or pinned host
|
|
21
|
+
* size). Wrappers use it to align sibling overlays/readouts with the dial.
|
|
18
22
|
* @experimental
|
|
19
23
|
*/
|
|
20
24
|
export declare class ObcInstrumentRadial extends ObcInstrumentRadial_base {
|
|
@@ -64,8 +68,24 @@ export declare class ObcInstrumentRadial extends ObcInstrumentRadial_base {
|
|
|
64
68
|
*/
|
|
65
69
|
endLabelsMaxMin: boolean;
|
|
66
70
|
zoomToFitArc: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Outer-ring diameter in CSS pixels. When set, the instrument renders at a
|
|
73
|
+
* fixed intrinsic size derived from the ring, arc shape and label reserve —
|
|
74
|
+
* so instruments sharing the same value have identical ring circumference
|
|
75
|
+
* regardless of label width or arc extent (like obc-donut-chart's
|
|
76
|
+
* fixedHeight). When unset (default), the instrument fills its container.
|
|
77
|
+
*/
|
|
78
|
+
faceDiameter: number | undefined;
|
|
67
79
|
private _radiusOffset;
|
|
68
|
-
private
|
|
80
|
+
private _frame;
|
|
81
|
+
private _lastFrameKey;
|
|
82
|
+
private _resizeController;
|
|
83
|
+
firstUpdated(changed: PropertyValues): void;
|
|
84
|
+
/** The frame computed for the current render (viewBox, label reserve …). */
|
|
85
|
+
get frame(): RadialFrame | undefined;
|
|
86
|
+
/** Whether the host size styles were set by applyPinnedHostSize. */
|
|
87
|
+
private _hostSizePinned;
|
|
88
|
+
updated(changed: PropertyValues): void;
|
|
69
89
|
private get clampedValue();
|
|
70
90
|
private get minAngle();
|
|
71
91
|
private get maxAngle();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument-radial.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/instrument-radial/instrument-radial.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,UAAU,EAAqB,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"instrument-radial.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/instrument-radial/instrument-radial.ts"],"names":[],"mappings":"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"}
|