@oicl/openbridge-webcomponents 2.0.0-next.56 → 2.0.0-next.58
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 +987 -362
- package/bundle/openbridge-webcomponents.bundle.js.map +1 -1
- package/custom-elements.json +576 -10
- package/dist/building-blocks/instrument-radial/instrument-radial.d.ts +10 -0
- package/dist/building-blocks/instrument-radial/instrument-radial.d.ts.map +1 -1
- package/dist/building-blocks/instrument-radial/instrument-radial.js +86 -21
- package/dist/building-blocks/instrument-radial/instrument-radial.js.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.css.js +12 -0
- package/dist/navigation-instruments/compass-sector/compass-sector.css.js.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.d.ts +23 -0
- package/dist/navigation-instruments/compass-sector/compass-sector.d.ts.map +1 -1
- package/dist/navigation-instruments/compass-sector/compass-sector.js +47 -0
- package/dist/navigation-instruments/compass-sector/compass-sector.js.map +1 -1
- package/dist/navigation-instruments/gauge-radial/gauge-radial.css.js +99 -0
- package/dist/navigation-instruments/gauge-radial/gauge-radial.css.js.map +1 -0
- package/dist/navigation-instruments/gauge-radial/gauge-radial.d.ts +42 -7
- package/dist/navigation-instruments/gauge-radial/gauge-radial.d.ts.map +1 -1
- package/dist/navigation-instruments/gauge-radial/gauge-radial.js +178 -31
- package/dist/navigation-instruments/gauge-radial/gauge-radial.js.map +1 -1
- package/dist/navigation-instruments/pitch/pitch.d.ts +37 -0
- package/dist/navigation-instruments/pitch/pitch.d.ts.map +1 -1
- package/dist/navigation-instruments/pitch/pitch.js +130 -62
- package/dist/navigation-instruments/pitch/pitch.js.map +1 -1
- package/dist/navigation-instruments/pitch-roll/pitch-roll.d.ts +7 -0
- package/dist/navigation-instruments/pitch-roll/pitch-roll.d.ts.map +1 -1
- package/dist/navigation-instruments/pitch-roll/pitch-roll.js +58 -2
- package/dist/navigation-instruments/pitch-roll/pitch-roll.js.map +1 -1
- package/dist/navigation-instruments/readout/readout.css.js +4 -0
- package/dist/navigation-instruments/readout/readout.css.js.map +1 -1
- package/dist/navigation-instruments/roll/roll.d.ts +37 -0
- package/dist/navigation-instruments/roll/roll.d.ts.map +1 -1
- package/dist/navigation-instruments/roll/roll.js +119 -63
- package/dist/navigation-instruments/roll/roll.js.map +1 -1
- package/dist/navigation-instruments/rot-sector/rot-sector.d.ts +15 -0
- package/dist/navigation-instruments/rot-sector/rot-sector.d.ts.map +1 -1
- package/dist/navigation-instruments/rot-sector/rot-sector.js +53 -1
- package/dist/navigation-instruments/rot-sector/rot-sector.js.map +1 -1
- package/dist/navigation-instruments/watch/tickmark.d.ts +2 -1
- package/dist/navigation-instruments/watch/tickmark.d.ts.map +1 -1
- package/dist/navigation-instruments/watch/tickmark.js +24 -4
- package/dist/navigation-instruments/watch/tickmark.js.map +1 -1
- package/dist/navigation-instruments/watch/watch.d.ts +23 -1
- package/dist/navigation-instruments/watch/watch.d.ts.map +1 -1
- package/dist/navigation-instruments/watch/watch.js +48 -20
- package/dist/navigation-instruments/watch/watch.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -36273,6 +36273,34 @@
|
|
|
36273
36273
|
"default": "0",
|
|
36274
36274
|
"attribute": "clipBottom"
|
|
36275
36275
|
},
|
|
36276
|
+
{
|
|
36277
|
+
"kind": "field",
|
|
36278
|
+
"name": "clipLeft",
|
|
36279
|
+
"type": {
|
|
36280
|
+
"text": "number"
|
|
36281
|
+
},
|
|
36282
|
+
"default": "0",
|
|
36283
|
+
"attribute": "clipLeft"
|
|
36284
|
+
},
|
|
36285
|
+
{
|
|
36286
|
+
"kind": "field",
|
|
36287
|
+
"name": "clipRight",
|
|
36288
|
+
"type": {
|
|
36289
|
+
"text": "number"
|
|
36290
|
+
},
|
|
36291
|
+
"default": "0",
|
|
36292
|
+
"attribute": "clipRight"
|
|
36293
|
+
},
|
|
36294
|
+
{
|
|
36295
|
+
"kind": "field",
|
|
36296
|
+
"name": "endLabelsMaxMin",
|
|
36297
|
+
"type": {
|
|
36298
|
+
"text": "boolean"
|
|
36299
|
+
},
|
|
36300
|
+
"default": "false",
|
|
36301
|
+
"description": "Place the horizontal end labels (±90°, e.g. min/max) below the tick instead\nof beside it — the \"Max-min\" placement from the radial label model\n(External / Internal / Max-min). See PR #903 / design discussion.",
|
|
36302
|
+
"attribute": "endLabelsMaxMin"
|
|
36303
|
+
},
|
|
36276
36304
|
{
|
|
36277
36305
|
"kind": "field",
|
|
36278
36306
|
"name": "zoomToFitArc",
|
|
@@ -36326,6 +36354,33 @@
|
|
|
36326
36354
|
"privacy": "private",
|
|
36327
36355
|
"readonly": true
|
|
36328
36356
|
},
|
|
36357
|
+
{
|
|
36358
|
+
"kind": "method",
|
|
36359
|
+
"name": "mapAngle",
|
|
36360
|
+
"privacy": "private",
|
|
36361
|
+
"return": {
|
|
36362
|
+
"type": {
|
|
36363
|
+
"text": "number"
|
|
36364
|
+
}
|
|
36365
|
+
},
|
|
36366
|
+
"parameters": [
|
|
36367
|
+
{
|
|
36368
|
+
"name": "value",
|
|
36369
|
+
"type": {
|
|
36370
|
+
"text": "number"
|
|
36371
|
+
}
|
|
36372
|
+
}
|
|
36373
|
+
]
|
|
36374
|
+
},
|
|
36375
|
+
{
|
|
36376
|
+
"kind": "field",
|
|
36377
|
+
"name": "safeClips",
|
|
36378
|
+
"type": {
|
|
36379
|
+
"text": "Clips"
|
|
36380
|
+
},
|
|
36381
|
+
"privacy": "private",
|
|
36382
|
+
"readonly": true
|
|
36383
|
+
},
|
|
36329
36384
|
{
|
|
36330
36385
|
"kind": "field",
|
|
36331
36386
|
"name": "_derivedNeedleColor",
|
|
@@ -36685,6 +36740,31 @@
|
|
|
36685
36740
|
"default": "0",
|
|
36686
36741
|
"fieldName": "clipBottom"
|
|
36687
36742
|
},
|
|
36743
|
+
{
|
|
36744
|
+
"name": "clipLeft",
|
|
36745
|
+
"type": {
|
|
36746
|
+
"text": "number"
|
|
36747
|
+
},
|
|
36748
|
+
"default": "0",
|
|
36749
|
+
"fieldName": "clipLeft"
|
|
36750
|
+
},
|
|
36751
|
+
{
|
|
36752
|
+
"name": "clipRight",
|
|
36753
|
+
"type": {
|
|
36754
|
+
"text": "number"
|
|
36755
|
+
},
|
|
36756
|
+
"default": "0",
|
|
36757
|
+
"fieldName": "clipRight"
|
|
36758
|
+
},
|
|
36759
|
+
{
|
|
36760
|
+
"name": "endLabelsMaxMin",
|
|
36761
|
+
"type": {
|
|
36762
|
+
"text": "boolean"
|
|
36763
|
+
},
|
|
36764
|
+
"default": "false",
|
|
36765
|
+
"description": "Place the horizontal end labels (±90°, e.g. min/max) below the tick instead\nof beside it — the \"Max-min\" placement from the radial label model\n(External / Internal / Max-min). See PR #903 / design discussion.",
|
|
36766
|
+
"fieldName": "endLabelsMaxMin"
|
|
36767
|
+
},
|
|
36688
36768
|
{
|
|
36689
36769
|
"name": "zoomToFitArc",
|
|
36690
36770
|
"type": {
|
|
@@ -70468,6 +70548,16 @@
|
|
|
70468
70548
|
"default": "false",
|
|
70469
70549
|
"attribute": "zoomToFitArc"
|
|
70470
70550
|
},
|
|
70551
|
+
{
|
|
70552
|
+
"kind": "field",
|
|
70553
|
+
"name": "hasReadout",
|
|
70554
|
+
"type": {
|
|
70555
|
+
"text": "boolean"
|
|
70556
|
+
},
|
|
70557
|
+
"default": "false",
|
|
70558
|
+
"description": "When `true`, shows a centered `<obc-readout>` under the arc displaying the\nheading (label `HDG`, unit `DEG`). The value color follows the HDG entry in\n`priorityElements`, matching the HDG arrow.",
|
|
70559
|
+
"attribute": "hasReadout"
|
|
70560
|
+
},
|
|
70471
70561
|
{
|
|
70472
70562
|
"kind": "field",
|
|
70473
70563
|
"name": "_headingSp",
|
|
@@ -70680,6 +70770,16 @@
|
|
|
70680
70770
|
}
|
|
70681
70771
|
}
|
|
70682
70772
|
]
|
|
70773
|
+
},
|
|
70774
|
+
{
|
|
70775
|
+
"kind": "field",
|
|
70776
|
+
"name": "_readoutTopPercent",
|
|
70777
|
+
"type": {
|
|
70778
|
+
"text": "number"
|
|
70779
|
+
},
|
|
70780
|
+
"privacy": "private",
|
|
70781
|
+
"description": "Vertical placement of the readout as a percentage of the host height.\n\nWith `zoomToFitArc` the arc is reframed by `computeZoomToFitArcFrame`, whose\n`radiusOffset`/`viewBox` depend on the arc's *absolute* orientation (which\ncardinal axes its bounding box crosses), not just its bend. The arc itself\nis always rotated back to the top, so it stays put on screen — but a\nframe-derived offset would swing wildly as `heading` rotates the bbox around\nthe circle. So in zoom we use a fixed offset, which keeps the readout steady\nunder the (stationary) arc regardless of heading.\n\nWithout zoom the viewBox is the fixed, origin-symmetric 120° framing, so the\ngeometry is orientation-independent: place the readout halfway down the inner\nradius from the watch center toward the arc's inner edge.",
|
|
70782
|
+
"readonly": true
|
|
70683
70783
|
}
|
|
70684
70784
|
],
|
|
70685
70785
|
"events": [
|
|
@@ -70869,6 +70969,15 @@
|
|
|
70869
70969
|
},
|
|
70870
70970
|
"default": "false",
|
|
70871
70971
|
"fieldName": "zoomToFitArc"
|
|
70972
|
+
},
|
|
70973
|
+
{
|
|
70974
|
+
"name": "hasReadout",
|
|
70975
|
+
"type": {
|
|
70976
|
+
"text": "boolean"
|
|
70977
|
+
},
|
|
70978
|
+
"default": "false",
|
|
70979
|
+
"description": "When `true`, shows a centered `<obc-readout>` under the arc displaying the\nheading (label `HDG`, unit `DEG`). The value color follows the HDG entry in\n`priorityElements`, matching the HDG arrow.",
|
|
70980
|
+
"fieldName": "hasReadout"
|
|
70872
70981
|
}
|
|
70873
70982
|
],
|
|
70874
70983
|
"superclass": {
|
|
@@ -73367,7 +73476,7 @@
|
|
|
73367
73476
|
"declarations": [
|
|
73368
73477
|
{
|
|
73369
73478
|
"kind": "class",
|
|
73370
|
-
"description": "`<obc-gauge-radial>` — Configurable radial gauge for generic numeric values.\n\n`ObcGaugeRadial` is a thin wrapper around `<obc-instrument-radial>` that adds\ndomain-independent value-to-angle mapping with automatic range handling for\nboth positive-only and bipolar (negative-to-positive) scales. It inherits a\nfull setpoint property bundle from SetpointMixin, including\nauto at-setpoint detection, dual-marker adjustment preview, and deadband\ntuning — no manual wiring required.\n\n## Features\n\n- **Three display types**: `filled` (solid arc), `bar` (thinner arc), and\n `needle` (pointer indicator) via the `type` property.\n- **
|
|
73479
|
+
"description": "`<obc-gauge-radial>` — Configurable radial gauge for generic numeric values.\n\n`ObcGaugeRadial` is a thin wrapper around `<obc-instrument-radial>` that adds\ndomain-independent value-to-angle mapping with automatic range handling for\nboth positive-only and bipolar (negative-to-positive) scales. It inherits a\nfull setpoint property bundle from SetpointMixin, including\nauto at-setpoint detection, dual-marker adjustment preview, and deadband\ntuning — no manual wiring required.\n\n## Features\n\n- **Three display types**: `filled` (solid arc), `bar` (thinner arc), and\n `needle` (pointer indicator) via the `type` property.\n- **Sector sweep**: `sector` selects the arc span (`270`, `180`, `90-left`, or `90-right`).\n The configured `minValue..maxValue` always spans the full sector. For the\n centered sectors (`270`, `180`) a symmetric range places `0` at 12 o'clock;\n for `90-left`/`90-right` the range midpoint sits at the middle of the quadrant.\n- **Setpoint via mixin**: `setpoint`, `newSetpoint`, `touching`,\n `autoAtSetpointDeadband`, `setpointOverride`, and all other setpoint\n properties are provided by `SetpointMixin` and forwarded to the inner\n `<obc-instrument-radial>`.\n- **Advice zones**: Pass an array of GaugeRadialAdvice objects to\n render caution/alert arcs on the gauge. Not shown on the `90-left` /\n `90-right` sectors.\n\n## Usage Guidelines\n\n- Set `minValue` / `maxValue` to define the scale range.\n- Use `priority` to switch between regular and enhanced color palettes.\n- Provide `primaryTickmarkInterval` and `secondaryTickmarkInterval` to\n control tickmark density.\n- Enable `showLabels` to show numeric labels at primary tickmarks.\n- Enable `showReadout` with optional `label` and `unit`. Layout depends on `sector`\n and `type`: **270** filled/bar — value at center + a label-only `meta` row in\n the bottom gap (two separate readouts); **180** filled/bar — a single centered\n stack (value + label/unit) at the bottom; **270** needle — bottom stack;\n **180** needle — no readout; **90-left** / **90-right** filled/bar — corner\n readout in a square host; **90** needle — no readout.\n\n## Best Practices\n\n- Prefer `SetpointMixin` properties (`setpoint`, `touching`, etc.) over\n any legacy aliases — the mixin is the single source of truth.\n- Keep domain-specific logic (units, formatting) in the parent view; this\n component is intentionally unit-agnostic.\n\n## Example\n\n```html\n<obc-gauge-radial\n value=\"42\"\n minValue=\"0\"\n maxValue=\"100\"\n type=\"filled\"\n priority=\"enhanced\"\n showLabels\n primaryTickmarkInterval=\"25\"\n secondaryTickmarkInterval=\"5\"\n setpoint=\"60\"\n></obc-gauge-radial>\n```",
|
|
73371
73480
|
"name": "ObcGaugeRadial",
|
|
73372
73481
|
"members": [
|
|
73373
73482
|
{
|
|
@@ -73481,24 +73590,109 @@
|
|
|
73481
73590
|
"type": {
|
|
73482
73591
|
"text": "GaugeRadialAdvice[]"
|
|
73483
73592
|
},
|
|
73484
|
-
"default": "[]"
|
|
73593
|
+
"default": "[]",
|
|
73594
|
+
"description": "Caution/alert arcs. Ignored on `sector: 90-left` / `90-right`."
|
|
73595
|
+
},
|
|
73596
|
+
{
|
|
73597
|
+
"kind": "field",
|
|
73598
|
+
"name": "sector",
|
|
73599
|
+
"type": {
|
|
73600
|
+
"text": "GaugeRadialSector"
|
|
73601
|
+
},
|
|
73602
|
+
"attribute": "sector",
|
|
73603
|
+
"reflects": true
|
|
73604
|
+
},
|
|
73605
|
+
{
|
|
73606
|
+
"kind": "field",
|
|
73607
|
+
"name": "showReadout",
|
|
73608
|
+
"type": {
|
|
73609
|
+
"text": "boolean"
|
|
73610
|
+
},
|
|
73611
|
+
"default": "false",
|
|
73612
|
+
"attribute": "showReadout"
|
|
73613
|
+
},
|
|
73614
|
+
{
|
|
73615
|
+
"kind": "field",
|
|
73616
|
+
"name": "label",
|
|
73617
|
+
"type": {
|
|
73618
|
+
"text": "string"
|
|
73619
|
+
},
|
|
73620
|
+
"default": "''",
|
|
73621
|
+
"attribute": "label"
|
|
73622
|
+
},
|
|
73623
|
+
{
|
|
73624
|
+
"kind": "field",
|
|
73625
|
+
"name": "unit",
|
|
73626
|
+
"type": {
|
|
73627
|
+
"text": "string"
|
|
73628
|
+
},
|
|
73629
|
+
"default": "''",
|
|
73630
|
+
"attribute": "unit"
|
|
73631
|
+
},
|
|
73632
|
+
{
|
|
73633
|
+
"kind": "field",
|
|
73634
|
+
"name": "fractionDigits",
|
|
73635
|
+
"type": {
|
|
73636
|
+
"text": "number"
|
|
73637
|
+
},
|
|
73638
|
+
"default": "0",
|
|
73639
|
+
"attribute": "fractionDigits"
|
|
73640
|
+
},
|
|
73641
|
+
{
|
|
73642
|
+
"kind": "field",
|
|
73643
|
+
"name": "sectorAngles",
|
|
73644
|
+
"type": {
|
|
73645
|
+
"text": "{sweep: number; start: number}"
|
|
73646
|
+
},
|
|
73647
|
+
"privacy": "private",
|
|
73648
|
+
"readonly": true
|
|
73649
|
+
},
|
|
73650
|
+
{
|
|
73651
|
+
"kind": "field",
|
|
73652
|
+
"name": "sectorClips",
|
|
73653
|
+
"type": {
|
|
73654
|
+
"text": "{\n top: number;\n bottom: number;\n left: number;\n right: number;\n }"
|
|
73655
|
+
},
|
|
73656
|
+
"privacy": "private",
|
|
73657
|
+
"description": "Per-edge crop (%) of the shared, origin-centered 448 SVG box each sector\nshows. All sectors render at the same natural scale, so the dial stays the\nsame size; the sector only windows a different part (270 whole, 180 wide,\n90 a quadrant).",
|
|
73658
|
+
"readonly": true
|
|
73659
|
+
},
|
|
73660
|
+
{
|
|
73661
|
+
"kind": "field",
|
|
73662
|
+
"name": "isSector90",
|
|
73663
|
+
"type": {
|
|
73664
|
+
"text": "boolean"
|
|
73665
|
+
},
|
|
73666
|
+
"privacy": "private",
|
|
73667
|
+
"readonly": true
|
|
73668
|
+
},
|
|
73669
|
+
{
|
|
73670
|
+
"kind": "field",
|
|
73671
|
+
"name": "getAngle"
|
|
73485
73672
|
},
|
|
73486
73673
|
{
|
|
73487
73674
|
"kind": "method",
|
|
73488
|
-
"name": "
|
|
73675
|
+
"name": "renderReadout",
|
|
73676
|
+
"privacy": "private",
|
|
73489
73677
|
"return": {
|
|
73490
73678
|
"type": {
|
|
73491
|
-
"text": "
|
|
73679
|
+
"text": "TemplateResult"
|
|
73492
73680
|
}
|
|
73493
73681
|
},
|
|
73494
73682
|
"parameters": [
|
|
73495
73683
|
{
|
|
73496
|
-
"name": "
|
|
73684
|
+
"name": "{\n className,\n variant,\n alignment = ReadoutStackVerticalAlignment.vertical,\n withMeta = true,\n labelOnly = false,\n }",
|
|
73497
73685
|
"type": {
|
|
73498
|
-
"text": "
|
|
73686
|
+
"text": "{\n className: string;\n variant: ReadoutVariant;\n alignment?: ReadoutStackVerticalAlignment;\n withMeta?: boolean;\n labelOnly?: boolean;\n }"
|
|
73499
73687
|
}
|
|
73500
73688
|
}
|
|
73501
|
-
]
|
|
73689
|
+
],
|
|
73690
|
+
"description": "Renders one gauge readout; `withMeta`/`labelOnly` pick parts."
|
|
73691
|
+
},
|
|
73692
|
+
{
|
|
73693
|
+
"kind": "method",
|
|
73694
|
+
"name": "renderReadouts",
|
|
73695
|
+
"privacy": "private"
|
|
73502
73696
|
},
|
|
73503
73697
|
{
|
|
73504
73698
|
"kind": "field",
|
|
@@ -73779,6 +73973,45 @@
|
|
|
73779
73973
|
},
|
|
73780
73974
|
"fieldName": "tickmarkStyle"
|
|
73781
73975
|
},
|
|
73976
|
+
{
|
|
73977
|
+
"name": "sector",
|
|
73978
|
+
"type": {
|
|
73979
|
+
"text": "GaugeRadialSector"
|
|
73980
|
+
},
|
|
73981
|
+
"fieldName": "sector"
|
|
73982
|
+
},
|
|
73983
|
+
{
|
|
73984
|
+
"name": "showReadout",
|
|
73985
|
+
"type": {
|
|
73986
|
+
"text": "boolean"
|
|
73987
|
+
},
|
|
73988
|
+
"default": "false",
|
|
73989
|
+
"fieldName": "showReadout"
|
|
73990
|
+
},
|
|
73991
|
+
{
|
|
73992
|
+
"name": "label",
|
|
73993
|
+
"type": {
|
|
73994
|
+
"text": "string"
|
|
73995
|
+
},
|
|
73996
|
+
"default": "''",
|
|
73997
|
+
"fieldName": "label"
|
|
73998
|
+
},
|
|
73999
|
+
{
|
|
74000
|
+
"name": "unit",
|
|
74001
|
+
"type": {
|
|
74002
|
+
"text": "string"
|
|
74003
|
+
},
|
|
74004
|
+
"default": "''",
|
|
74005
|
+
"fieldName": "unit"
|
|
74006
|
+
},
|
|
74007
|
+
{
|
|
74008
|
+
"name": "fractionDigits",
|
|
74009
|
+
"type": {
|
|
74010
|
+
"text": "number"
|
|
74011
|
+
},
|
|
74012
|
+
"default": "0",
|
|
74013
|
+
"fieldName": "fractionDigits"
|
|
74014
|
+
},
|
|
73782
74015
|
{
|
|
73783
74016
|
"name": "setpoint",
|
|
73784
74017
|
"type": {
|
|
@@ -79764,6 +79997,16 @@
|
|
|
79764
79997
|
},
|
|
79765
79998
|
"default": "[ PitchRollPriorityElement.pitch, PitchRollPriorityElement.roll, ]"
|
|
79766
79999
|
},
|
|
80000
|
+
{
|
|
80001
|
+
"kind": "field",
|
|
80002
|
+
"name": "hasReadout",
|
|
80003
|
+
"type": {
|
|
80004
|
+
"text": "boolean"
|
|
80005
|
+
},
|
|
80006
|
+
"default": "false",
|
|
80007
|
+
"description": "When `true`, the centre shows two stacked `<obc-readout>`s (pitch above\nroll) instead of the vessel images. Default `false`.",
|
|
80008
|
+
"attribute": "hasReadout"
|
|
80009
|
+
},
|
|
79767
80010
|
{
|
|
79768
80011
|
"kind": "field",
|
|
79769
80012
|
"name": "zoomToFitArc",
|
|
@@ -79883,6 +80126,31 @@
|
|
|
79883
80126
|
"privacy": "private",
|
|
79884
80127
|
"readonly": true
|
|
79885
80128
|
},
|
|
80129
|
+
{
|
|
80130
|
+
"kind": "method",
|
|
80131
|
+
"name": "renderReadout",
|
|
80132
|
+
"privacy": "private",
|
|
80133
|
+
"parameters": [
|
|
80134
|
+
{
|
|
80135
|
+
"name": "value",
|
|
80136
|
+
"type": {
|
|
80137
|
+
"text": "number"
|
|
80138
|
+
}
|
|
80139
|
+
},
|
|
80140
|
+
{
|
|
80141
|
+
"name": "label",
|
|
80142
|
+
"type": {
|
|
80143
|
+
"text": "string"
|
|
80144
|
+
}
|
|
80145
|
+
},
|
|
80146
|
+
{
|
|
80147
|
+
"name": "element",
|
|
80148
|
+
"type": {
|
|
80149
|
+
"text": "PitchRollPriorityElement"
|
|
80150
|
+
}
|
|
80151
|
+
}
|
|
80152
|
+
]
|
|
80153
|
+
},
|
|
79886
80154
|
{
|
|
79887
80155
|
"kind": "method",
|
|
79888
80156
|
"name": "renderZoomedArcs",
|
|
@@ -80062,6 +80330,15 @@
|
|
|
80062
80330
|
},
|
|
80063
80331
|
"fieldName": "priority"
|
|
80064
80332
|
},
|
|
80333
|
+
{
|
|
80334
|
+
"name": "hasReadout",
|
|
80335
|
+
"type": {
|
|
80336
|
+
"text": "boolean"
|
|
80337
|
+
},
|
|
80338
|
+
"default": "false",
|
|
80339
|
+
"description": "When `true`, the centre shows two stacked `<obc-readout>`s (pitch above\nroll) instead of the vessel images. Default `false`.",
|
|
80340
|
+
"fieldName": "hasReadout"
|
|
80341
|
+
},
|
|
80065
80342
|
{
|
|
80066
80343
|
"name": "zoomToFitArc",
|
|
80067
80344
|
"type": {
|
|
@@ -80129,7 +80406,7 @@
|
|
|
80129
80406
|
"declarations": [
|
|
80130
80407
|
{
|
|
80131
80408
|
"kind": "class",
|
|
80132
|
-
"description": "",
|
|
80409
|
+
"description": "`<obc-pitch>` — Pitch (trim) indicator with a side arc scale.\n\nShows `pitch` against a watch arc centred on the right, with an average-pitch\nband and a rotating indicator. Supports an optional opposite-side scale\n(`dual-scale`), a centre readout (`hasReadout`), and a `regular`/`enhanced`\npalette.",
|
|
80133
80410
|
"name": "ObcPitch",
|
|
80134
80411
|
"members": [
|
|
80135
80412
|
{
|
|
@@ -80194,6 +80471,34 @@
|
|
|
80194
80471
|
"default": "false",
|
|
80195
80472
|
"attribute": "zoomToFitArc"
|
|
80196
80473
|
},
|
|
80474
|
+
{
|
|
80475
|
+
"kind": "field",
|
|
80476
|
+
"name": "hasReadout",
|
|
80477
|
+
"type": {
|
|
80478
|
+
"text": "boolean"
|
|
80479
|
+
},
|
|
80480
|
+
"default": "false",
|
|
80481
|
+
"description": "When `true`, the centre shows an `<obc-readout>` with the pitch value\n(label `Pitch`, unit `DEG`) instead of the horizon line, rotating indicator\nand vessel. Default `false`.",
|
|
80482
|
+
"attribute": "hasReadout"
|
|
80483
|
+
},
|
|
80484
|
+
{
|
|
80485
|
+
"kind": "field",
|
|
80486
|
+
"name": "type",
|
|
80487
|
+
"type": {
|
|
80488
|
+
"text": "ObcPitchType"
|
|
80489
|
+
},
|
|
80490
|
+
"description": "`single-scale` shows one arc on the right (default); `dual-scale` also\nshows the scale on the opposite (left) arc (the indicator's opposite end).",
|
|
80491
|
+
"attribute": "type"
|
|
80492
|
+
},
|
|
80493
|
+
{
|
|
80494
|
+
"kind": "field",
|
|
80495
|
+
"name": "priority",
|
|
80496
|
+
"type": {
|
|
80497
|
+
"text": "Priority"
|
|
80498
|
+
},
|
|
80499
|
+
"description": "Colour palette for the scale fill / indicator and the readout value:\n`regular` (default) or `enhanced`.",
|
|
80500
|
+
"attribute": "priority"
|
|
80501
|
+
},
|
|
80197
80502
|
{
|
|
80198
80503
|
"kind": "field",
|
|
80199
80504
|
"name": "arcAngle",
|
|
@@ -80212,6 +80517,43 @@
|
|
|
80212
80517
|
},
|
|
80213
80518
|
"privacy": "private"
|
|
80214
80519
|
},
|
|
80520
|
+
{
|
|
80521
|
+
"kind": "field",
|
|
80522
|
+
"name": "scaleFillColor",
|
|
80523
|
+
"type": {
|
|
80524
|
+
"text": "string"
|
|
80525
|
+
},
|
|
80526
|
+
"privacy": "private",
|
|
80527
|
+
"readonly": true
|
|
80528
|
+
},
|
|
80529
|
+
{
|
|
80530
|
+
"kind": "field",
|
|
80531
|
+
"name": "indicatorColor",
|
|
80532
|
+
"type": {
|
|
80533
|
+
"text": "string"
|
|
80534
|
+
},
|
|
80535
|
+
"privacy": "private",
|
|
80536
|
+
"readonly": true
|
|
80537
|
+
},
|
|
80538
|
+
{
|
|
80539
|
+
"kind": "method",
|
|
80540
|
+
"name": "renderScale",
|
|
80541
|
+
"privacy": "private",
|
|
80542
|
+
"parameters": [
|
|
80543
|
+
{
|
|
80544
|
+
"name": "areas",
|
|
80545
|
+
"type": {
|
|
80546
|
+
"text": "WatchArea[]"
|
|
80547
|
+
}
|
|
80548
|
+
},
|
|
80549
|
+
{
|
|
80550
|
+
"name": "opposite",
|
|
80551
|
+
"type": {
|
|
80552
|
+
"text": "boolean"
|
|
80553
|
+
}
|
|
80554
|
+
}
|
|
80555
|
+
]
|
|
80556
|
+
},
|
|
80215
80557
|
{
|
|
80216
80558
|
"kind": "field",
|
|
80217
80559
|
"name": "advices",
|
|
@@ -80278,6 +80620,31 @@
|
|
|
80278
80620
|
"default": "false",
|
|
80279
80621
|
"fieldName": "zoomToFitArc"
|
|
80280
80622
|
},
|
|
80623
|
+
{
|
|
80624
|
+
"name": "hasReadout",
|
|
80625
|
+
"type": {
|
|
80626
|
+
"text": "boolean"
|
|
80627
|
+
},
|
|
80628
|
+
"default": "false",
|
|
80629
|
+
"description": "When `true`, the centre shows an `<obc-readout>` with the pitch value\n(label `Pitch`, unit `DEG`) instead of the horizon line, rotating indicator\nand vessel. Default `false`.",
|
|
80630
|
+
"fieldName": "hasReadout"
|
|
80631
|
+
},
|
|
80632
|
+
{
|
|
80633
|
+
"name": "type",
|
|
80634
|
+
"type": {
|
|
80635
|
+
"text": "ObcPitchType"
|
|
80636
|
+
},
|
|
80637
|
+
"description": "`single-scale` shows one arc on the right (default); `dual-scale` also\nshows the scale on the opposite (left) arc (the indicator's opposite end).",
|
|
80638
|
+
"fieldName": "type"
|
|
80639
|
+
},
|
|
80640
|
+
{
|
|
80641
|
+
"name": "priority",
|
|
80642
|
+
"type": {
|
|
80643
|
+
"text": "Priority"
|
|
80644
|
+
},
|
|
80645
|
+
"description": "Colour palette for the scale fill / indicator and the readout value:\n`regular` (default) or `enhanced`.",
|
|
80646
|
+
"fieldName": "priority"
|
|
80647
|
+
},
|
|
80281
80648
|
{
|
|
80282
80649
|
"name": "arcAngle",
|
|
80283
80650
|
"type": {
|
|
@@ -83833,7 +84200,7 @@
|
|
|
83833
84200
|
"declarations": [
|
|
83834
84201
|
{
|
|
83835
84202
|
"kind": "class",
|
|
83836
|
-
"description": "",
|
|
84203
|
+
"description": "`<obc-roll>` — Roll (heel) indicator with a bottom arc scale.\n\nShows `roll` against a watch arc centred at the bottom, with an average-roll\nband and a rotating indicator. Supports an optional top scale (`dual-scale`),\na centre readout (`hasReadout`), and a `regular`/`enhanced` palette. See the\nindividual properties for details.",
|
|
83837
84204
|
"name": "ObcRoll",
|
|
83838
84205
|
"members": [
|
|
83839
84206
|
{
|
|
@@ -83907,6 +84274,34 @@
|
|
|
83907
84274
|
"default": "false",
|
|
83908
84275
|
"attribute": "zoomToFitArc"
|
|
83909
84276
|
},
|
|
84277
|
+
{
|
|
84278
|
+
"kind": "field",
|
|
84279
|
+
"name": "hasReadout",
|
|
84280
|
+
"type": {
|
|
84281
|
+
"text": "boolean"
|
|
84282
|
+
},
|
|
84283
|
+
"default": "false",
|
|
84284
|
+
"description": "When `true`, the centre shows an `<obc-readout>` with the roll value\n(label `Roll`, unit `DEG`) instead of the horizon line, rotating indicator\nand vessel. Default `false`.",
|
|
84285
|
+
"attribute": "hasReadout"
|
|
84286
|
+
},
|
|
84287
|
+
{
|
|
84288
|
+
"kind": "field",
|
|
84289
|
+
"name": "type",
|
|
84290
|
+
"type": {
|
|
84291
|
+
"text": "ObcRollType"
|
|
84292
|
+
},
|
|
84293
|
+
"description": "`single-scale` shows one arc at the bottom (default); `dual-scale` also\nshows the scale on the top arc (the indicator's opposite end).",
|
|
84294
|
+
"attribute": "type"
|
|
84295
|
+
},
|
|
84296
|
+
{
|
|
84297
|
+
"kind": "field",
|
|
84298
|
+
"name": "priority",
|
|
84299
|
+
"type": {
|
|
84300
|
+
"text": "Priority"
|
|
84301
|
+
},
|
|
84302
|
+
"description": "Colour palette for the scale fill / indicator and the readout value:\n`regular` (default) or `enhanced`.",
|
|
84303
|
+
"attribute": "priority"
|
|
84304
|
+
},
|
|
83910
84305
|
{
|
|
83911
84306
|
"kind": "field",
|
|
83912
84307
|
"name": "arcAngle",
|
|
@@ -83934,6 +84329,43 @@
|
|
|
83934
84329
|
"privacy": "private",
|
|
83935
84330
|
"readonly": true
|
|
83936
84331
|
},
|
|
84332
|
+
{
|
|
84333
|
+
"kind": "field",
|
|
84334
|
+
"name": "scaleFillColor",
|
|
84335
|
+
"type": {
|
|
84336
|
+
"text": "string"
|
|
84337
|
+
},
|
|
84338
|
+
"privacy": "private",
|
|
84339
|
+
"readonly": true
|
|
84340
|
+
},
|
|
84341
|
+
{
|
|
84342
|
+
"kind": "field",
|
|
84343
|
+
"name": "indicatorColor",
|
|
84344
|
+
"type": {
|
|
84345
|
+
"text": "string"
|
|
84346
|
+
},
|
|
84347
|
+
"privacy": "private",
|
|
84348
|
+
"readonly": true
|
|
84349
|
+
},
|
|
84350
|
+
{
|
|
84351
|
+
"kind": "method",
|
|
84352
|
+
"name": "renderScale",
|
|
84353
|
+
"privacy": "private",
|
|
84354
|
+
"parameters": [
|
|
84355
|
+
{
|
|
84356
|
+
"name": "areas",
|
|
84357
|
+
"type": {
|
|
84358
|
+
"text": "WatchArea[]"
|
|
84359
|
+
}
|
|
84360
|
+
},
|
|
84361
|
+
{
|
|
84362
|
+
"name": "top",
|
|
84363
|
+
"type": {
|
|
84364
|
+
"text": "boolean"
|
|
84365
|
+
}
|
|
84366
|
+
}
|
|
84367
|
+
]
|
|
84368
|
+
},
|
|
83937
84369
|
{
|
|
83938
84370
|
"kind": "field",
|
|
83939
84371
|
"name": "advices",
|
|
@@ -84008,6 +84440,31 @@
|
|
|
84008
84440
|
"default": "false",
|
|
84009
84441
|
"fieldName": "zoomToFitArc"
|
|
84010
84442
|
},
|
|
84443
|
+
{
|
|
84444
|
+
"name": "hasReadout",
|
|
84445
|
+
"type": {
|
|
84446
|
+
"text": "boolean"
|
|
84447
|
+
},
|
|
84448
|
+
"default": "false",
|
|
84449
|
+
"description": "When `true`, the centre shows an `<obc-readout>` with the roll value\n(label `Roll`, unit `DEG`) instead of the horizon line, rotating indicator\nand vessel. Default `false`.",
|
|
84450
|
+
"fieldName": "hasReadout"
|
|
84451
|
+
},
|
|
84452
|
+
{
|
|
84453
|
+
"name": "type",
|
|
84454
|
+
"type": {
|
|
84455
|
+
"text": "ObcRollType"
|
|
84456
|
+
},
|
|
84457
|
+
"description": "`single-scale` shows one arc at the bottom (default); `dual-scale` also\nshows the scale on the top arc (the indicator's opposite end).",
|
|
84458
|
+
"fieldName": "type"
|
|
84459
|
+
},
|
|
84460
|
+
{
|
|
84461
|
+
"name": "priority",
|
|
84462
|
+
"type": {
|
|
84463
|
+
"text": "Priority"
|
|
84464
|
+
},
|
|
84465
|
+
"description": "Colour palette for the scale fill / indicator and the readout value:\n`regular` (default) or `enhanced`.",
|
|
84466
|
+
"fieldName": "priority"
|
|
84467
|
+
},
|
|
84011
84468
|
{
|
|
84012
84469
|
"name": "arcAngle",
|
|
84013
84470
|
"type": {
|
|
@@ -84394,6 +84851,16 @@
|
|
|
84394
84851
|
"default": "60",
|
|
84395
84852
|
"attribute": "rotArcExtent"
|
|
84396
84853
|
},
|
|
84854
|
+
{
|
|
84855
|
+
"kind": "field",
|
|
84856
|
+
"name": "hasReadout",
|
|
84857
|
+
"type": {
|
|
84858
|
+
"text": "boolean"
|
|
84859
|
+
},
|
|
84860
|
+
"default": "false",
|
|
84861
|
+
"description": "When `true`, shows a centered `<obc-readout>` (label `ROT`, unit `DEG/min`)\nunder the arc with the current rate-of-turn value. Default `false`.",
|
|
84862
|
+
"attribute": "hasReadout"
|
|
84863
|
+
},
|
|
84397
84864
|
{
|
|
84398
84865
|
"kind": "field",
|
|
84399
84866
|
"name": "getAngle"
|
|
@@ -84415,6 +84882,16 @@
|
|
|
84415
84882
|
"privacy": "private",
|
|
84416
84883
|
"readonly": true
|
|
84417
84884
|
},
|
|
84885
|
+
{
|
|
84886
|
+
"kind": "field",
|
|
84887
|
+
"name": "_readoutTopPercent",
|
|
84888
|
+
"type": {
|
|
84889
|
+
"text": "number"
|
|
84890
|
+
},
|
|
84891
|
+
"privacy": "private",
|
|
84892
|
+
"description": "Vertical position of the readout, in % of the host. In the zoomed view the\narc's lower edge shifts with `rotArcExtent`, so the position is interpolated\nbetween the narrow- and wide-arc anchors to keep a roughly constant gap\nbetween the arc and the readout. The static (unzoomed) arc uses a fixed\nposition.",
|
|
84893
|
+
"readonly": true
|
|
84894
|
+
},
|
|
84418
84895
|
{
|
|
84419
84896
|
"kind": "field",
|
|
84420
84897
|
"name": "_needleColor",
|
|
@@ -84724,6 +85201,15 @@
|
|
|
84724
85201
|
"default": "60",
|
|
84725
85202
|
"fieldName": "rotArcExtent"
|
|
84726
85203
|
},
|
|
85204
|
+
{
|
|
85205
|
+
"name": "hasReadout",
|
|
85206
|
+
"type": {
|
|
85207
|
+
"text": "boolean"
|
|
85208
|
+
},
|
|
85209
|
+
"default": "false",
|
|
85210
|
+
"description": "When `true`, shows a centered `<obc-readout>` (label `ROT`, unit `DEG/min`)\nunder the arc with the current rate-of-turn value. Default `false`.",
|
|
85211
|
+
"fieldName": "hasReadout"
|
|
85212
|
+
},
|
|
84727
85213
|
{
|
|
84728
85214
|
"name": "setpoint",
|
|
84729
85215
|
"type": {
|
|
@@ -88055,6 +88541,7 @@
|
|
|
88055
88541
|
"text": "number"
|
|
88056
88542
|
},
|
|
88057
88543
|
"default": "0",
|
|
88544
|
+
"description": "Top clip, % of height. Ignored when `zoomToFitArc` is true.",
|
|
88058
88545
|
"attribute": "clipTop"
|
|
88059
88546
|
},
|
|
88060
88547
|
{
|
|
@@ -88064,8 +88551,39 @@
|
|
|
88064
88551
|
"text": "number"
|
|
88065
88552
|
},
|
|
88066
88553
|
"default": "0",
|
|
88554
|
+
"description": "Bottom clip, % of height. Ignored when `zoomToFitArc` is true.",
|
|
88067
88555
|
"attribute": "clipBottom"
|
|
88068
88556
|
},
|
|
88557
|
+
{
|
|
88558
|
+
"kind": "field",
|
|
88559
|
+
"name": "clipLeft",
|
|
88560
|
+
"type": {
|
|
88561
|
+
"text": "number"
|
|
88562
|
+
},
|
|
88563
|
+
"default": "0",
|
|
88564
|
+
"description": "Left clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`.",
|
|
88565
|
+
"attribute": "clipLeft"
|
|
88566
|
+
},
|
|
88567
|
+
{
|
|
88568
|
+
"kind": "field",
|
|
88569
|
+
"name": "clipRight",
|
|
88570
|
+
"type": {
|
|
88571
|
+
"text": "number"
|
|
88572
|
+
},
|
|
88573
|
+
"default": "0",
|
|
88574
|
+
"description": "Right clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`.",
|
|
88575
|
+
"attribute": "clipRight"
|
|
88576
|
+
},
|
|
88577
|
+
{
|
|
88578
|
+
"kind": "field",
|
|
88579
|
+
"name": "endLabelsMaxMin",
|
|
88580
|
+
"type": {
|
|
88581
|
+
"text": "boolean"
|
|
88582
|
+
},
|
|
88583
|
+
"default": "false",
|
|
88584
|
+
"description": "Place the horizontal end labels (±90°, e.g. min/max) below the tick instead\nof beside it. This is the \"Max-min\" label placement from the radial label\nmodel (External / Internal / Max-min) — see PR #903 / design discussion.\nCurrently only used by the 180° sector of `obc-gauge-radial`.",
|
|
88585
|
+
"attribute": "endLabelsMaxMin"
|
|
88586
|
+
},
|
|
88069
88587
|
{
|
|
88070
88588
|
"kind": "field",
|
|
88071
88589
|
"name": "scaleWindIcon",
|
|
@@ -88098,7 +88616,7 @@
|
|
|
88098
88616
|
"type": {
|
|
88099
88617
|
"text": "ZoomToFitArcFrame|undefined"
|
|
88100
88618
|
},
|
|
88101
|
-
"description": "Pre-computed zoom-to-fit arc frame. When set, the watch skips its own `computeZoomToFitArcFrame()` call and uses these values directly. Consumer instruments (e.g. rudder, instrument-radial) should compute the frame once and pass it here to avoid redundant computation."
|
|
88619
|
+
"description": "Pre-computed zoom-to-fit arc frame. When set, the watch skips its own `computeZoomToFitArcFrame()` call and uses these values directly. Consumer instruments (e.g. rudder, instrument-radial) should compute the frame once and pass it here to avoid redundant computation. If you pass `arcFrame`, you own keeping it in sync with `areas` / `watchCircleType` — obc-watch will NOT recompute it, so a stale frame renders stale geometry."
|
|
88102
88620
|
},
|
|
88103
88621
|
{
|
|
88104
88622
|
"kind": "field",
|
|
@@ -88254,6 +88772,25 @@
|
|
|
88254
88772
|
"privacy": "private",
|
|
88255
88773
|
"default": "0"
|
|
88256
88774
|
},
|
|
88775
|
+
{
|
|
88776
|
+
"kind": "method",
|
|
88777
|
+
"name": "_bandRadius",
|
|
88778
|
+
"privacy": "private",
|
|
88779
|
+
"return": {
|
|
88780
|
+
"type": {
|
|
88781
|
+
"text": "number"
|
|
88782
|
+
}
|
|
88783
|
+
},
|
|
88784
|
+
"parameters": [
|
|
88785
|
+
{
|
|
88786
|
+
"name": "base",
|
|
88787
|
+
"type": {
|
|
88788
|
+
"text": "number"
|
|
88789
|
+
}
|
|
88790
|
+
}
|
|
88791
|
+
],
|
|
88792
|
+
"description": "Radius for a dial-band edge under zoom: additive (`base + _rOff`), keeping\nband thickness constant in SVG units. INVARIANT: every band-edge radius\n(rings, value arc, bars, needles, inside-label `textRadius`) must go through\nthis — mixing additive and multiplicative offsets misaligns ticks, labels,\nadvice masks and arcs. The proportional experiments were removed for this\nreason (PR #903)."
|
|
88793
|
+
},
|
|
88257
88794
|
{
|
|
88258
88795
|
"kind": "method",
|
|
88259
88796
|
"name": "watchCircle",
|
|
@@ -88610,6 +89147,7 @@
|
|
|
88610
89147
|
"text": "number"
|
|
88611
89148
|
},
|
|
88612
89149
|
"default": "0",
|
|
89150
|
+
"description": "Top clip, % of height. Ignored when `zoomToFitArc` is true.",
|
|
88613
89151
|
"fieldName": "clipTop"
|
|
88614
89152
|
},
|
|
88615
89153
|
{
|
|
@@ -88618,8 +89156,36 @@
|
|
|
88618
89156
|
"text": "number"
|
|
88619
89157
|
},
|
|
88620
89158
|
"default": "0",
|
|
89159
|
+
"description": "Bottom clip, % of height. Ignored when `zoomToFitArc` is true.",
|
|
88621
89160
|
"fieldName": "clipBottom"
|
|
88622
89161
|
},
|
|
89162
|
+
{
|
|
89163
|
+
"name": "clipLeft",
|
|
89164
|
+
"type": {
|
|
89165
|
+
"text": "number"
|
|
89166
|
+
},
|
|
89167
|
+
"default": "0",
|
|
89168
|
+
"description": "Left clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`.",
|
|
89169
|
+
"fieldName": "clipLeft"
|
|
89170
|
+
},
|
|
89171
|
+
{
|
|
89172
|
+
"name": "clipRight",
|
|
89173
|
+
"type": {
|
|
89174
|
+
"text": "number"
|
|
89175
|
+
},
|
|
89176
|
+
"default": "0",
|
|
89177
|
+
"description": "Right clip, % of width — horizontal counterpart of clipTop/bottom (90° sectors). Ignored when `zoomToFitArc`.",
|
|
89178
|
+
"fieldName": "clipRight"
|
|
89179
|
+
},
|
|
89180
|
+
{
|
|
89181
|
+
"name": "endLabelsMaxMin",
|
|
89182
|
+
"type": {
|
|
89183
|
+
"text": "boolean"
|
|
89184
|
+
},
|
|
89185
|
+
"default": "false",
|
|
89186
|
+
"description": "Place the horizontal end labels (±90°, e.g. min/max) below the tick instead\nof beside it. This is the \"Max-min\" label placement from the radial label\nmodel (External / Internal / Max-min) — see PR #903 / design discussion.\nCurrently only used by the 180° sector of `obc-gauge-radial`.",
|
|
89187
|
+
"fieldName": "endLabelsMaxMin"
|
|
89188
|
+
},
|
|
88623
89189
|
{
|
|
88624
89190
|
"name": "scaleWindIcon",
|
|
88625
89191
|
"type": {
|