@oicl/openbridge-webcomponents 2.1.0-next.6 → 2.1.0-next.7

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.
@@ -47706,6 +47706,11 @@
47706
47706
  "kind": "method",
47707
47707
  "name": "applyFillModes",
47708
47708
  "privacy": "protected",
47709
+ "return": {
47710
+ "type": {
47711
+ "text": ""
47712
+ }
47713
+ },
47709
47714
  "description": "Apply fillMode rules to datasets. Must be called after the chart is created\nso scales and pixel coordinates are available for gradient construction.\n\nNOTE: For non-threshold modes (solid, semitransparent), backgroundColor is already\nset correctly in buildDataset(). This method now only handles threshold gradients\nwhich require Chart.js scales to be available.",
47710
47715
  "inheritedFrom": {
47711
47716
  "name": "ObcChartLineBase",
@@ -50056,6 +50061,11 @@
50056
50061
  "kind": "method",
50057
50062
  "name": "applyFillModes",
50058
50063
  "privacy": "protected",
50064
+ "return": {
50065
+ "type": {
50066
+ "text": ""
50067
+ }
50068
+ },
50059
50069
  "description": "Apply fillMode rules to datasets. Must be called after the chart is created\nso scales and pixel coordinates are available for gradient construction.\n\nNOTE: For non-threshold modes (solid, semitransparent), backgroundColor is already\nset correctly in buildDataset(). This method now only handles threshold gradients\nwhich require Chart.js scales to be available.",
50060
50070
  "inheritedFrom": {
50061
50071
  "name": "ObcChartLineBase",
@@ -55589,6 +55599,11 @@
55589
55599
  "kind": "method",
55590
55600
  "name": "applyFillModes",
55591
55601
  "privacy": "protected",
55602
+ "return": {
55603
+ "type": {
55604
+ "text": ""
55605
+ }
55606
+ },
55592
55607
  "description": "Apply fillMode rules to datasets. Must be called after the chart is created\nso scales and pixel coordinates are available for gradient construction.\n\nNOTE: For non-threshold modes (solid, semitransparent), backgroundColor is already\nset correctly in buildDataset(). This method now only handles threshold gradients\nwhich require Chart.js scales to be available."
55593
55608
  },
55594
55609
  {
@@ -107621,6 +107636,11 @@
107621
107636
  "kind": "method",
107622
107637
  "name": "applyFillModes",
107623
107638
  "privacy": "protected",
107639
+ "return": {
107640
+ "type": {
107641
+ "text": ""
107642
+ }
107643
+ },
107624
107644
  "description": "Apply fillMode rules to datasets. Must be called after the chart is created\nso scales and pixel coordinates are available for gradient construction.\n\nNOTE: For non-threshold modes (solid, semitransparent), backgroundColor is already\nset correctly in buildDataset(). This method now only handles threshold gradients\nwhich require Chart.js scales to be available.",
107625
107645
  "inheritedFrom": {
107626
107646
  "name": "ObcChartLineBase",
@@ -126400,6 +126420,12 @@
126400
126420
  },
126401
126421
  "privacy": "private"
126402
126422
  },
126423
+ {
126424
+ "kind": "field",
126425
+ "name": "_resizeController",
126426
+ "privacy": "private",
126427
+ "default": "new ResizeController(this, {})"
126428
+ },
126403
126429
  {
126404
126430
  "kind": "field",
126405
126431
  "name": "_effectiveRpm",
@@ -126409,6 +126435,25 @@
126409
126435
  "privacy": "private",
126410
126436
  "readonly": true
126411
126437
  },
126438
+ {
126439
+ "kind": "method",
126440
+ "name": "scaleFor",
126441
+ "privacy": "private",
126442
+ "return": {
126443
+ "type": {
126444
+ "text": "number"
126445
+ }
126446
+ },
126447
+ "parameters": [
126448
+ {
126449
+ "name": "viewBoxWidth",
126450
+ "type": {
126451
+ "text": "number"
126452
+ }
126453
+ }
126454
+ ],
126455
+ "description": "Rendered px per user-space unit; the labels divide by it to keep their\non-screen size. 1:1 while the strip has no width yet (hidden, or not laid\nout), until the ResizeController re-renders it."
126456
+ },
126412
126457
  {
126413
126458
  "kind": "field",
126414
126459
  "name": "totalHeight",
@@ -1 +1 @@
1
- {"version":3,"file":"chart-object-vessel-button.d.ts","sourceRoot":"","sources":["../../../src/ar/chart-object-vessel-button/chart-object-vessel-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAsB,cAAc,EAAC,MAAM,KAAK,CAAC;AAOnE,OAAO,EACL,WAAW,EAEZ,MAAM,8CAA8C,CAAC;AAGtD,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,oBAAY,KAAK;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB;AAED,oBAAY,IAAI;IACd,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,eAAe;IACxB,KAAK,UAAU;IACf,YAAY,mBAAmB;IAC/B,cAAc,qBAAqB;CACpC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,qBACa,0BAA2B,SAAQ,UAAU;IAC9B,OAAO,SAAK;IACZ,MAAM,SAAK;IACX,cAAc,EAAE,cAAc,CAAsB;IACpD,QAAQ,SAAK;IACb,MAAM,EAAE,MAAM,GAAG,SAAS,CAAa;IACvC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IACrC,KAAK,EAAE,KAAK,CAAiB;IAC7B,IAAI,EAAE,IAAI,CAAa;IACtB,QAAQ,UAAS;IAClB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAa;IAC7C,gBAAgB,EAAE,OAAO,CAAS;IACnC,WAAW,EAAE,WAAW,GAAG,IAAI,CAAQ;IACvC,eAAe,EAAE,MAAM,CAAM;IAE9C,MAAM;IA0Df,OAAO,CAAC,qBAAqB;IAyD7B,OAAO,CAAC,eAAe;IA+BvB,OAAO,CAAC,kBAAkB;IAqD1B,OAAO,CAAC,uBAAuB;IA4D/B,OAAO,CAAC,kBAAkB;IAmB1B,OAAgB,MAAM,0BAA2B;CAClD;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gCAAgC,EAAE,0BAA0B,CAAC;KAC9D;CACF"}
1
+ {"version":3,"file":"chart-object-vessel-button.d.ts","sourceRoot":"","sources":["../../../src/ar/chart-object-vessel-button/chart-object-vessel-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UA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7B,gCAAgC,EAAE,0BAA0B,CAAC;KAC9D;CACF"}
@@ -153,7 +153,7 @@ var ObcChartObjectVesselButton = class ObcChartObjectVesselButton extends LitEle
153
153
  }
154
154
  getTurnRateIcon() {
155
155
  if (!["button-speed-rot", "flat-speed-rot"].includes(this.type)) return nothing;
156
- const deg = this.turnRate / 100 * 12;
156
+ const deg = (Number.isFinite(this.turnRate) ? this.turnRate : 0) / 100 * 12;
157
157
  const R = 24;
158
158
  const x = -24 * Math.cos(degToRad(deg)) + R + 3;
159
159
  const y = R * Math.sin(degToRad(deg)) + 8;
@@ -1 +1 @@
1
- {"version":3,"file":"chart-object-vessel-button.js","names":[],"sources":["../../../src/ar/chart-object-vessel-button/chart-object-vessel-button.ts"],"sourcesContent":["import {LitElement, unsafeCSS, nothing, TemplateResult} from 'lit';\nimport {customElement} from '../../decorator.js';\nimport compentStyle from './chart-object-vessel-button.css?inline';\nimport {property} from 'lit/decorators.js';\n\nimport {classMap} from 'lit/directives/class-map.js';\nimport {html, literal, svg} from 'lit/static-html.js';\nimport {\n VesselImage,\n vesselImages,\n} from '../../navigation-instruments/watch/vessel.js';\nimport {degToRad} from '../../svghelpers/math.js';\n\nexport enum SpeedIndicator {\n Stopped = 'stopped',\n One = 'one',\n Two = 'two',\n Three = 'three',\n Anchored = 'anchored',\n}\n\nexport enum State {\n Enabled = 'enabled',\n Active = 'active',\n Disabled = 'disabled',\n Caution = 'caution',\n Warning = 'warning',\n Alarm = 'alarm',\n}\n\nexport enum Type {\n Flat = 'flat',\n Button = 'button',\n FlatLarge = 'flat-large',\n Large = 'large',\n FlatSpeedRot = 'flat-speed-rot',\n ButtonSpeedRot = 'button-speed-rot',\n}\n\n/**\n * `<obc-chart-object-vessel-button>` - Vessel marker button/flat visual with heading, speed/turn indicators, and optional metadata labels.\n *\n * ## Overview\n * Use this component to render a vessel-shaped marker with configurable states and optional text badges.\n * Keywords/synonyms: vessel marker, chart object button, heading marker, target symbol.\n *\n * ## Features/Variants\n * - `type` (default `flat`): `flat`, `button`, `flat-large`, `large`, `flat-speed-rot`, `button-speed-rot`.\n * - `state` (default `enabled`): `enabled`, `active`, `disabled`, `caution`, `warning`, `alarm`.\n * - `selected` (default `false`): toggles selection frame.\n * - `heading` (default `0`): rotates visible wrapper.\n * - `speedIndicator` (default `two`): `stopped`, `one`, `two`, `three`, `anchored`.\n * - `turnRate` (default `0`): contributes to turn-rate arc shape when speed/turn variants are used.\n * - `course` + `courseArrowPx`: renders optional course arrow line with provided height.\n * - `ownShipIndicator` (default `false`): renders cross-line indicator overlay.\n * - `vesselImage` + `vesselImageSize`: renders preset vessel image or slotted fallback.\n * - `number` and `name`: show optional text chips with overridable slots.\n * - TODO(designer): Confirm intended interaction differences between `button` and `flat` families.\n *\n * ## Usage Guidelines\n * - Use `button`/`large`/`button-speed-rot` when the marker should behave like a button element.\n * - Use `flat` variants for non-button rendering where semantic button behavior is not required.\n * - Provide either `vesselImage` or `vessel-image` slot content for custom imagery.\n *\n * ## Slots/Content\n * - Default slot: Primary vessel icon.\n * - `silhouette`: Optional secondary vessel silhouette icon.\n * - `number`: Optional content for the number badge.\n * - `name`: Optional content for the name badge.\n * - `vessel-image`: Optional vessel image content used when `vesselImage` is not set.\n *\n * ## Events\n * This component does not emit custom events.\n *\n * ## Best Practices\n * - Keep `heading` and `course` values in degrees from the same source to avoid visual drift.\n * - Use `speedIndicator` and `turnRate` together only with speed/turn-capable `type` variants.\n *\n * ## Example\n * ```html\n * <obc-chart-object-vessel-button type=\"button\" state=\"enabled\" selected>\n * <obi-placeholder></obi-placeholder>\n * <obi-placeholder slot=\"silhouette\"></obi-placeholder>\n * </obc-chart-object-vessel-button>\n * ```\n *\n * @property heading - Heading in degrees\n * @property course - Course over ground in degrees\n * @availableWhen course courseArrowPx!=undefined\n * @availableWhen speedIndicator type in [ButtonSpeedRot, FlatSpeedRot]\n * @availableWhen turnRate type in [ButtonSpeedRot, FlatSpeedRot]\n * @slot - Primary vessel icon.\n * @slot silhouette - Optional secondary vessel silhouette icon.\n * @slot number - Optional content for the number badge.\n * @slot name - Optional content for the name badge.\n * @slot vessel-image - Optional vessel image content used when `vesselImage` is not set.\n * @experimental\n */\n@customElement('obc-chart-object-vessel-button')\nexport class ObcChartObjectVesselButton extends LitElement {\n @property({type: Number}) heading = 0;\n @property({type: Number}) course = 0;\n @property({type: String}) speedIndicator: SpeedIndicator = SpeedIndicator.Two;\n @property({type: Number}) turnRate = 0; // -100 (PORT) to 100 (STBD)\n @property({type: Number}) number: number | undefined = undefined;\n @property({type: String}) name: string | undefined = undefined;\n @property({type: String}) state: State = State.Enabled;\n @property({type: String}) type: Type = Type.Flat;\n @property({type: Boolean}) selected = false;\n @property({type: Number}) courseArrowPx: number | undefined = undefined;\n @property({type: Boolean}) ownShipIndicator: boolean = false;\n @property({type: String}) vesselImage: VesselImage | null = null;\n @property({type: Number}) vesselImageSize: number = 80;\n\n override render() {\n const isButton = [Type.Button, Type.Large, Type.ButtonSpeedRot].includes(\n this.type\n );\n const tag = isButton ? literal`button` : literal`div`;\n const hasAlert = [State.Alarm, State.Warning, State.Caution].includes(\n this.state\n );\n return html`\n <${tag}\n class=${classMap({\n wrapper: true,\n [`state-${this.state}`]: true,\n [`type-${this.type}`]: true,\n 'has-alert': hasAlert,\n selected: this.selected,\n })}\n style=\"--heading: ${this.heading}deg;\"\n >\n ${this.getVesselImageIcon()}\n ${this.getCourseArrowIcon()}\n ${this.getOwnShipIndicatorIcon()}\n <div class=\"visible-wrapper\" style=\"transform: rotate(${this.heading}deg);\">\n ${this.getTurnRateIcon()}\n <div\n class=\"icon-wrapper\" \n >\n <span class=\"icon-silhouette\" part=\"icon-silhouette\">\n <slot name=\"silhouette\"></slot>\n </span>\n <span class=\"icon-primary\" part=\"icon\">\n <slot></slot>\n </span>\n\n </div>\n ${this.getSpeedIndicatorIcon()}\n ${hasAlert ? html`<div class=\"alert-ring\"></div>` : nothing}\n </div>\n ${this.selected ? html`<div class=\"selection-frame\"></div>` : nothing}\n ${\n this.number\n ? html`<div class=\"number-wrapper\">\n <slot name=\"number\">${this.number}</slot>\n </div>`\n : nothing\n }\n ${\n this.name\n ? html`<div class=\"name-wrapper\">\n <slot name=\"name\">${this.name}</slot>\n </div>`\n : nothing\n }\n \n </${tag}>\n `;\n }\n\n private getSpeedIndicatorIcon() {\n const hasSpeedIndicator = [Type.ButtonSpeedRot, Type.FlatSpeedRot].includes(\n this.type\n );\n if (!hasSpeedIndicator) {\n return nothing;\n }\n let x: number[] = [];\n switch (this.speedIndicator) {\n case SpeedIndicator.One:\n x = [0];\n break;\n case SpeedIndicator.Two:\n x = [-2, 2];\n break;\n case SpeedIndicator.Three:\n x = [-4, 0, 4];\n break;\n }\n let extra: TemplateResult | undefined = undefined;\n if (this.speedIndicator === SpeedIndicator.Stopped) {\n extra = svg`\n <circle cx=\"0\" cy=\"0\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n `;\n } else if (this.speedIndicator === SpeedIndicator.Anchored) {\n return svg`\n <svg width=\"16\" height=\"12\" viewBox=\"0 0 16 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.75 3.25H10.75V4.75H8.75V8.38379C8.81975 8.36184 8.88925 8.33765 8.95703 8.30957C9.26022 8.18394 9.53551 7.99964 9.76758 7.76758C9.99964 7.53551 10.1839 7.26022 10.3096 6.95703C10.4352 6.65372 10.5 6.3283 10.5 6H12C12 6.52517 11.8962 7.04506 11.6953 7.53027C11.4943 8.01558 11.1996 8.45669 10.8281 8.82812C10.4567 9.19956 10.0156 9.49429 9.53027 9.69531C9.04506 9.89624 8.52517 10 8 10C7.47483 10 6.95494 9.89624 6.46973 9.69531C5.98442 9.49429 5.54331 9.19956 5.17188 8.82812C4.80044 8.45669 4.50571 8.01558 4.30469 7.53027C4.10376 7.04506 4 6.52517 4 6H5.5C5.5 6.3283 5.56479 6.65372 5.69043 6.95703C5.81606 7.26022 6.00036 7.53551 6.23242 7.76758C6.46449 7.99964 6.73978 8.18394 7.04297 8.30957C7.11075 8.33765 7.18025 8.36184 7.25 8.38379V4.75H5.25V3.25H7.25V1.25H8.75V3.25Z\" fill=\"currentColor\" />\n </svg>\n `;\n }\n return html`\n <svg\n width=\"16\"\n height=\"12\"\n viewBox=\"-8 -6 16 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n ${x.map(\n (x: number) => svg`\n <line\n x1=\"${x}\"\n y1=\"-3\"\n x2=\"${x}\"\n y2=\"3\"\n stroke-linecap=\"round\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n />\n `\n )}\n ${extra}\n </svg>\n `;\n }\n\n private getTurnRateIcon() {\n const hasTurnRate = [Type.ButtonSpeedRot, Type.FlatSpeedRot].includes(\n this.type\n );\n if (!hasTurnRate) {\n return nothing;\n }\n const deg = (this.turnRate / 100) * 12;\n const R = 24;\n const x = -R * Math.cos(degToRad(deg)) + R + 3;\n const y = R * Math.sin(degToRad(deg)) + 8;\n\n return html`\n <svg\n width=\"16\"\n height=\"12\"\n viewBox=\"0 0 16 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 9 V 3 A ${R} ${R} 0 0 1 ${y} ${x}\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n `;\n }\n\n private getCourseArrowIcon() {\n if (this.courseArrowPx === undefined) {\n return nothing;\n }\n const height = this.courseArrowPx;\n let color = 'var(--element-active-color)';\n if (this.state === State.Alarm) {\n color = 'var(--alert-alarm-color)';\n }\n return html`\n <svg\n width=\"256\"\n height=${height}\n viewBox=\"-128 0 256 ${height}\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"course-arrow\"\n style=\"--course: ${this.course}deg; --color: ${color}\"\n >\n <line\n x1=\"0\"\n y1=\"24\"\n x2=\"0\"\n y2=${height}\n stroke-width=\"4\"\n stroke=\"var(--border-silhouette-color)\"\n stroke-linecap=\"round\"\n />\n <line\n x1=\"0\"\n y1=\"24\"\n x2=\"0\"\n y2=${height}\n stroke-width=\"2\"\n stroke=\"var(--color)\"\n stroke-linecap=\"square\"\n stroke-dasharray=\"4 4\"\n stroke-linejoin=\"square\"\n />\n <g transform=\"translate(-12 0)\">\n <path\n d=\"M11.5457 11.2919L13.3638 12.1253L13.3638 12.1252L11.5457 11.2919ZM12.4548 11.2919L10.6367 12.1252L10.6367 12.1253L12.4548 11.2919ZM16.7136 20.5829L18.5317 19.7496L18.5317 19.7495L16.7136 20.5829ZM15.8044 21.9999L15.8044 23.9999L15.805 23.9999L15.8044 21.9999ZM14.8953 21.4169L13.0772 22.2503L13.0774 22.2507L14.8953 21.4169ZM11.9998 15.1005L13.8178 14.2671L11.9994 10.3004L10.1816 14.2673L11.9998 15.1005ZM9.10522 21.4169L10.9233 22.2504L10.9234 22.2501L9.10522 21.4169ZM8.19604 21.9999L8.19604 23.9999L8.1964 23.9999L8.19604 21.9999ZM7.28687 20.5829L5.46877 19.7495L5.46874 19.7496L7.28687 20.5829ZM11.5457 2.2919L13.3638 3.12527L13.3638 3.12521L11.5457 2.2919ZM12.4548 2.2919L10.6367 3.12521L10.6367 3.12527L12.4548 2.2919ZM16.7136 11.5829L18.5317 10.7496L18.5317 10.7495L16.7136 11.5829ZM15.8044 12.9999L15.8044 14.9999L15.805 14.9999L15.8044 12.9999ZM14.8953 12.4169L13.0772 13.2503L13.0774 13.2507L14.8953 12.4169ZM11.9998 6.10049L13.8178 5.26706L11.9994 1.30035L10.1816 5.2673L11.9998 6.10049ZM9.10522 12.4169L10.9233 13.2504L10.9234 13.2501L9.10522 12.4169ZM8.19604 12.9999L8.19604 14.9999L8.19643 14.9999L8.19604 12.9999ZM7.28687 11.5829L5.46877 10.7495L5.46874 10.7496L7.28687 11.5829ZM11.5457 11.2919L13.3638 12.1252C12.829 13.2919 11.1714 13.2919 10.6367 12.1252L12.4548 11.2919L14.273 10.4586C13.3817 8.5141 10.6187 8.5141 9.72752 10.4586L11.5457 11.2919ZM12.4548 11.2919L10.6367 12.1253L14.8955 21.4163L16.7136 20.5829L18.5317 19.7495L14.2729 10.4585L12.4548 11.2919ZM16.7136 20.5829L14.8955 21.4162C14.5917 20.7534 15.076 20.0001 15.8039 19.9999L15.8044 21.9999L15.805 23.9999C17.9899 23.9993 19.4426 21.737 18.5317 19.7496L16.7136 20.5829ZM15.8044 21.9999V19.9999C16.1945 19.9999 16.5498 20.227 16.7132 20.5831L14.8953 21.4169L13.0774 22.2507C13.5666 23.3174 14.6325 23.9999 15.8044 23.9999V21.9999ZM14.8953 21.4169L16.7133 20.5835L13.8178 14.2671L11.9998 15.1005L10.1817 15.9339L13.0772 22.2503L14.8953 21.4169ZM11.9998 15.1005L10.1816 14.2673L7.28704 20.5837L9.10522 21.4169L10.9234 22.2501L13.8179 15.9337L11.9998 15.1005ZM9.10522 21.4169L7.28718 20.5834C7.45077 20.2266 7.80642 20 8.19569 19.9999L8.19604 21.9999L8.1964 23.9999C9.36748 23.9997 10.4339 23.3179 10.9233 22.2504L9.10522 21.4169ZM8.19604 21.9999L8.19604 19.9999C8.92502 19.9999 9.40845 20.7541 9.10499 21.4162L7.28687 20.5829L5.46874 19.7496C4.55809 21.7365 6.00978 23.9999 8.19604 23.9999V21.9999ZM7.28687 20.5829L9.10496 21.4163L13.3638 12.1253L11.5457 11.2919L9.72755 10.4585L5.46877 19.7495L7.28687 20.5829ZM11.5457 2.2919L13.3638 3.12521C12.829 4.2919 11.1714 4.2919 10.6367 3.12521L12.4548 2.2919L14.273 1.45859C13.3817 -0.485895 10.6187 -0.485895 9.72752 1.45859L11.5457 2.2919ZM12.4548 2.2919L10.6367 3.12527L14.8955 12.4163L16.7136 11.5829L18.5317 10.7495L14.2729 1.45852L12.4548 2.2919ZM16.7136 11.5829L14.8955 12.4162C14.5917 11.7534 15.076 11.0001 15.8039 10.9999L15.8044 12.9999L15.805 14.9999C17.9899 14.9993 19.4427 12.7371 18.5317 10.7496L16.7136 11.5829ZM15.8044 12.9999V10.9999C16.1946 10.9999 16.5498 11.227 16.7131 11.5831L14.8953 12.4169L13.0774 13.2507C13.5666 14.3174 14.6325 14.9999 15.8044 14.9999V12.9999ZM14.8953 12.4169L16.7133 11.5835L13.8178 5.26706L11.9998 6.10049L10.1817 6.93392L13.0772 13.2503L14.8953 12.4169ZM11.9998 6.10049L10.1816 5.2673L7.28704 11.5837L9.10522 12.4169L10.9234 13.2501L13.8179 6.93368L11.9998 6.10049ZM9.10522 12.4169L7.28717 11.5834C7.45078 11.2265 7.80645 11 8.19566 10.9999L8.19604 12.9999L8.19643 14.9999C9.36745 14.9997 10.4339 14.3179 10.9233 13.2504L9.10522 12.4169ZM8.19604 12.9999V10.9999C8.92502 10.9999 9.40845 11.7541 9.10499 12.4162L7.28687 11.5829L5.46874 10.7496C4.55809 12.7365 6.00978 14.9999 8.19604 14.9999V12.9999ZM7.28687 11.5829L9.10496 12.4163L13.3638 3.12527L11.5457 2.2919L9.72755 1.45852L5.46877 10.7495L7.28687 11.5829Z\"\n fill=\"var(--border-silhouette-color)\"\n />\n <path\n d=\"M11.5457 11.2919C11.7239 10.903 12.2766 10.903 12.4548 11.2919L16.7136 20.5829C17.0172 21.2452 16.5329 21.9997 15.8044 21.9999C15.4135 21.9999 15.0582 21.7722 14.8953 21.4169L11.9998 15.1005L9.10522 21.4169C8.94231 21.7722 8.58695 21.9998 8.19604 21.9999C7.4674 21.9999 6.98327 21.2453 7.28687 20.5829L11.5457 11.2919ZM11.5457 2.2919C11.7239 1.903 12.2766 1.903 12.4548 2.2919L16.7136 11.5829C17.0172 12.2452 16.5329 12.9997 15.8044 12.9999C15.4135 12.9999 15.0582 12.7722 14.8953 12.4169L11.9998 6.10049L9.10522 12.4169C8.94232 12.7722 8.58695 12.9998 8.19604 12.9999C7.4674 12.9999 6.98327 12.2453 7.28687 11.5829L11.5457 2.2919Z\"\n fill=\"var(--color)\"\n />\n </g>\n </svg>\n `;\n }\n\n private getOwnShipIndicatorIcon() {\n if (!this.ownShipIndicator) {\n return nothing;\n }\n return html`\n <svg\n width=\"64\"\n height=\"256\"\n viewBox=\"-32 -128 64 256\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cross-line\"\n >\n <circle cx=\"0\" cy=\"0\" r=\"2\" fill=\"var(--element-active-color)\" />\n <line\n x1=\"-32\"\n x2=\"-4\"\n y1=\"0\"\n y2=\"0\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n\n <line\n x1=\"32\"\n x2=\"4\"\n y1=\"0\"\n y2=\"0\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n\n <line\n x1=\"0\"\n x2=\"0\"\n y1=\"-4\"\n y2=\"-128\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n\n <line\n x1=\"0\"\n x2=\"0\"\n y1=\"4\"\n y2=\"128\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-dasharray=\"1 2\"\n />\n </svg>\n `;\n }\n\n private getVesselImageIcon() {\n if (!this.vesselImage) {\n return html`<div\n class=\"vessel-image-wrapper\"\n style=\"--image-size: ${this.vesselImageSize}px;\"\n part=\"vessel-image-wrapper\"\n >\n <slot name=\"vessel-image\"></slot>\n </div>`;\n }\n return html`<div\n class=\"vessel-image-wrapper\"\n style=\"--image-size: ${this.vesselImageSize}px;\"\n part=\"vessel-image-wrapper\"\n >\n ${vesselImages[this.vesselImage]}\n </div>`;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-chart-object-vessel-button': ObcChartObjectVesselButton;\n }\n}\n"],"mappings":";;;;;;;;;;AAaA,IAAY,iBAAL,yBAAA,gBAAA;CACL,eAAA,aAA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,KAAA,CAAA;AACxB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,iBAAA,KAAA,CAAA;AACvB,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,2BAAA,WAAA,oBAAA,KAAA,CAAA;AACxB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,eAAA,KAAA,CAAA;AACvB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,mBAAA,KAAA,CAAA;AAdzB,6BAAA,WAAA,CAAA,cAAc,gCAAgC,CAAA,GAAA,0BAAA"}
1
+ {"version":3,"file":"chart-object-vessel-button.js","names":[],"sources":["../../../src/ar/chart-object-vessel-button/chart-object-vessel-button.ts"],"sourcesContent":["import {LitElement, unsafeCSS, nothing, TemplateResult} from 'lit';\nimport {customElement} from '../../decorator.js';\nimport compentStyle from './chart-object-vessel-button.css?inline';\nimport {property} from 'lit/decorators.js';\n\nimport {classMap} from 'lit/directives/class-map.js';\nimport {html, literal, svg} from 'lit/static-html.js';\nimport {\n VesselImage,\n vesselImages,\n} from '../../navigation-instruments/watch/vessel.js';\nimport {degToRad} from '../../svghelpers/math.js';\n\nexport enum SpeedIndicator {\n Stopped = 'stopped',\n One = 'one',\n Two = 'two',\n Three = 'three',\n Anchored = 'anchored',\n}\n\nexport enum State {\n Enabled = 'enabled',\n Active = 'active',\n Disabled = 'disabled',\n Caution = 'caution',\n Warning = 'warning',\n Alarm = 'alarm',\n}\n\nexport enum Type {\n Flat = 'flat',\n Button = 'button',\n FlatLarge = 'flat-large',\n Large = 'large',\n FlatSpeedRot = 'flat-speed-rot',\n ButtonSpeedRot = 'button-speed-rot',\n}\n\n/**\n * `<obc-chart-object-vessel-button>` - Vessel marker button/flat visual with heading, speed/turn indicators, and optional metadata labels.\n *\n * ## Overview\n * Use this component to render a vessel-shaped marker with configurable states and optional text badges.\n * Keywords/synonyms: vessel marker, chart object button, heading marker, target symbol.\n *\n * ## Features/Variants\n * - `type` (default `flat`): `flat`, `button`, `flat-large`, `large`, `flat-speed-rot`, `button-speed-rot`.\n * - `state` (default `enabled`): `enabled`, `active`, `disabled`, `caution`, `warning`, `alarm`.\n * - `selected` (default `false`): toggles selection frame.\n * - `heading` (default `0`): rotates visible wrapper.\n * - `speedIndicator` (default `two`): `stopped`, `one`, `two`, `three`, `anchored`.\n * - `turnRate` (default `0`): contributes to turn-rate arc shape when speed/turn variants are used.\n * - `course` + `courseArrowPx`: renders optional course arrow line with provided height.\n * - `ownShipIndicator` (default `false`): renders cross-line indicator overlay.\n * - `vesselImage` + `vesselImageSize`: renders preset vessel image or slotted fallback.\n * - `number` and `name`: show optional text chips with overridable slots.\n * - TODO(designer): Confirm intended interaction differences between `button` and `flat` families.\n *\n * ## Usage Guidelines\n * - Use `button`/`large`/`button-speed-rot` when the marker should behave like a button element.\n * - Use `flat` variants for non-button rendering where semantic button behavior is not required.\n * - Provide either `vesselImage` or `vessel-image` slot content for custom imagery.\n *\n * ## Slots/Content\n * - Default slot: Primary vessel icon.\n * - `silhouette`: Optional secondary vessel silhouette icon.\n * - `number`: Optional content for the number badge.\n * - `name`: Optional content for the name badge.\n * - `vessel-image`: Optional vessel image content used when `vesselImage` is not set.\n *\n * ## Events\n * This component does not emit custom events.\n *\n * ## Best Practices\n * - Keep `heading` and `course` values in degrees from the same source to avoid visual drift.\n * - Use `speedIndicator` and `turnRate` together only with speed/turn-capable `type` variants.\n *\n * ## Example\n * ```html\n * <obc-chart-object-vessel-button type=\"button\" state=\"enabled\" selected>\n * <obi-placeholder></obi-placeholder>\n * <obi-placeholder slot=\"silhouette\"></obi-placeholder>\n * </obc-chart-object-vessel-button>\n * ```\n *\n * @property heading - Heading in degrees\n * @property course - Course over ground in degrees\n * @availableWhen course courseArrowPx!=undefined\n * @availableWhen speedIndicator type in [ButtonSpeedRot, FlatSpeedRot]\n * @availableWhen turnRate type in [ButtonSpeedRot, FlatSpeedRot]\n * @slot - Primary vessel icon.\n * @slot silhouette - Optional secondary vessel silhouette icon.\n * @slot number - Optional content for the number badge.\n * @slot name - Optional content for the name badge.\n * @slot vessel-image - Optional vessel image content used when `vesselImage` is not set.\n * @experimental\n */\n@customElement('obc-chart-object-vessel-button')\nexport class ObcChartObjectVesselButton extends LitElement {\n @property({type: Number}) heading = 0;\n @property({type: Number}) course = 0;\n @property({type: String}) speedIndicator: SpeedIndicator = SpeedIndicator.Two;\n @property({type: Number}) turnRate = 0; // -100 (PORT) to 100 (STBD)\n @property({type: Number}) number: number | undefined = undefined;\n @property({type: String}) name: string | undefined = undefined;\n @property({type: String}) state: State = State.Enabled;\n @property({type: String}) type: Type = Type.Flat;\n @property({type: Boolean}) selected = false;\n @property({type: Number}) courseArrowPx: number | undefined = undefined;\n @property({type: Boolean}) ownShipIndicator: boolean = false;\n @property({type: String}) vesselImage: VesselImage | null = null;\n @property({type: Number}) vesselImageSize: number = 80;\n\n override render() {\n const isButton = [Type.Button, Type.Large, Type.ButtonSpeedRot].includes(\n this.type\n );\n const tag = isButton ? literal`button` : literal`div`;\n const hasAlert = [State.Alarm, State.Warning, State.Caution].includes(\n this.state\n );\n return html`\n <${tag}\n class=${classMap({\n wrapper: true,\n [`state-${this.state}`]: true,\n [`type-${this.type}`]: true,\n 'has-alert': hasAlert,\n selected: this.selected,\n })}\n style=\"--heading: ${this.heading}deg;\"\n >\n ${this.getVesselImageIcon()}\n ${this.getCourseArrowIcon()}\n ${this.getOwnShipIndicatorIcon()}\n <div class=\"visible-wrapper\" style=\"transform: rotate(${this.heading}deg);\">\n ${this.getTurnRateIcon()}\n <div\n class=\"icon-wrapper\" \n >\n <span class=\"icon-silhouette\" part=\"icon-silhouette\">\n <slot name=\"silhouette\"></slot>\n </span>\n <span class=\"icon-primary\" part=\"icon\">\n <slot></slot>\n </span>\n\n </div>\n ${this.getSpeedIndicatorIcon()}\n ${hasAlert ? html`<div class=\"alert-ring\"></div>` : nothing}\n </div>\n ${this.selected ? html`<div class=\"selection-frame\"></div>` : nothing}\n ${\n this.number\n ? html`<div class=\"number-wrapper\">\n <slot name=\"number\">${this.number}</slot>\n </div>`\n : nothing\n }\n ${\n this.name\n ? html`<div class=\"name-wrapper\">\n <slot name=\"name\">${this.name}</slot>\n </div>`\n : nothing\n }\n \n </${tag}>\n `;\n }\n\n private getSpeedIndicatorIcon() {\n const hasSpeedIndicator = [Type.ButtonSpeedRot, Type.FlatSpeedRot].includes(\n this.type\n );\n if (!hasSpeedIndicator) {\n return nothing;\n }\n let x: number[] = [];\n switch (this.speedIndicator) {\n case SpeedIndicator.One:\n x = [0];\n break;\n case SpeedIndicator.Two:\n x = [-2, 2];\n break;\n case SpeedIndicator.Three:\n x = [-4, 0, 4];\n break;\n }\n let extra: TemplateResult | undefined = undefined;\n if (this.speedIndicator === SpeedIndicator.Stopped) {\n extra = svg`\n <circle cx=\"0\" cy=\"0\" r=\"4\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" />\n `;\n } else if (this.speedIndicator === SpeedIndicator.Anchored) {\n return svg`\n <svg width=\"16\" height=\"12\" viewBox=\"0 0 16 12\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M8.75 3.25H10.75V4.75H8.75V8.38379C8.81975 8.36184 8.88925 8.33765 8.95703 8.30957C9.26022 8.18394 9.53551 7.99964 9.76758 7.76758C9.99964 7.53551 10.1839 7.26022 10.3096 6.95703C10.4352 6.65372 10.5 6.3283 10.5 6H12C12 6.52517 11.8962 7.04506 11.6953 7.53027C11.4943 8.01558 11.1996 8.45669 10.8281 8.82812C10.4567 9.19956 10.0156 9.49429 9.53027 9.69531C9.04506 9.89624 8.52517 10 8 10C7.47483 10 6.95494 9.89624 6.46973 9.69531C5.98442 9.49429 5.54331 9.19956 5.17188 8.82812C4.80044 8.45669 4.50571 8.01558 4.30469 7.53027C4.10376 7.04506 4 6.52517 4 6H5.5C5.5 6.3283 5.56479 6.65372 5.69043 6.95703C5.81606 7.26022 6.00036 7.53551 6.23242 7.76758C6.46449 7.99964 6.73978 8.18394 7.04297 8.30957C7.11075 8.33765 7.18025 8.36184 7.25 8.38379V4.75H5.25V3.25H7.25V1.25H8.75V3.25Z\" fill=\"currentColor\" />\n </svg>\n `;\n }\n return html`\n <svg\n width=\"16\"\n height=\"12\"\n viewBox=\"-8 -6 16 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n ${x.map(\n (x: number) => svg`\n <line\n x1=\"${x}\"\n y1=\"-3\"\n x2=\"${x}\"\n y2=\"3\"\n stroke-linecap=\"round\"\n stroke-width=\"1.5\"\n stroke=\"currentColor\"\n />\n `\n )}\n ${extra}\n </svg>\n `;\n }\n\n private getTurnRateIcon() {\n const hasTurnRate = [Type.ButtonSpeedRot, Type.FlatSpeedRot].includes(\n this.type\n );\n if (!hasTurnRate) {\n return nothing;\n }\n // A binding that passes `undefined` would put NaN in the arc path.\n const turnRate = Number.isFinite(this.turnRate) ? this.turnRate : 0;\n const deg = (turnRate / 100) * 12;\n const R = 24;\n const x = -R * Math.cos(degToRad(deg)) + R + 3;\n const y = R * Math.sin(degToRad(deg)) + 8;\n\n return html`\n <svg\n width=\"16\"\n height=\"12\"\n viewBox=\"0 0 16 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M8 9 V 3 A ${R} ${R} 0 0 1 ${y} ${x}\"\n stroke=\"currentColor\"\n stroke-width=\"1.5\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </svg>\n `;\n }\n\n private getCourseArrowIcon() {\n if (this.courseArrowPx === undefined) {\n return nothing;\n }\n const height = this.courseArrowPx;\n let color = 'var(--element-active-color)';\n if (this.state === State.Alarm) {\n color = 'var(--alert-alarm-color)';\n }\n return html`\n <svg\n width=\"256\"\n height=${height}\n viewBox=\"-128 0 256 ${height}\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"course-arrow\"\n style=\"--course: ${this.course}deg; --color: ${color}\"\n >\n <line\n x1=\"0\"\n y1=\"24\"\n x2=\"0\"\n y2=${height}\n stroke-width=\"4\"\n stroke=\"var(--border-silhouette-color)\"\n stroke-linecap=\"round\"\n />\n <line\n x1=\"0\"\n y1=\"24\"\n x2=\"0\"\n y2=${height}\n stroke-width=\"2\"\n stroke=\"var(--color)\"\n stroke-linecap=\"square\"\n stroke-dasharray=\"4 4\"\n stroke-linejoin=\"square\"\n />\n <g transform=\"translate(-12 0)\">\n <path\n d=\"M11.5457 11.2919L13.3638 12.1253L13.3638 12.1252L11.5457 11.2919ZM12.4548 11.2919L10.6367 12.1252L10.6367 12.1253L12.4548 11.2919ZM16.7136 20.5829L18.5317 19.7496L18.5317 19.7495L16.7136 20.5829ZM15.8044 21.9999L15.8044 23.9999L15.805 23.9999L15.8044 21.9999ZM14.8953 21.4169L13.0772 22.2503L13.0774 22.2507L14.8953 21.4169ZM11.9998 15.1005L13.8178 14.2671L11.9994 10.3004L10.1816 14.2673L11.9998 15.1005ZM9.10522 21.4169L10.9233 22.2504L10.9234 22.2501L9.10522 21.4169ZM8.19604 21.9999L8.19604 23.9999L8.1964 23.9999L8.19604 21.9999ZM7.28687 20.5829L5.46877 19.7495L5.46874 19.7496L7.28687 20.5829ZM11.5457 2.2919L13.3638 3.12527L13.3638 3.12521L11.5457 2.2919ZM12.4548 2.2919L10.6367 3.12521L10.6367 3.12527L12.4548 2.2919ZM16.7136 11.5829L18.5317 10.7496L18.5317 10.7495L16.7136 11.5829ZM15.8044 12.9999L15.8044 14.9999L15.805 14.9999L15.8044 12.9999ZM14.8953 12.4169L13.0772 13.2503L13.0774 13.2507L14.8953 12.4169ZM11.9998 6.10049L13.8178 5.26706L11.9994 1.30035L10.1816 5.2673L11.9998 6.10049ZM9.10522 12.4169L10.9233 13.2504L10.9234 13.2501L9.10522 12.4169ZM8.19604 12.9999L8.19604 14.9999L8.19643 14.9999L8.19604 12.9999ZM7.28687 11.5829L5.46877 10.7495L5.46874 10.7496L7.28687 11.5829ZM11.5457 11.2919L13.3638 12.1252C12.829 13.2919 11.1714 13.2919 10.6367 12.1252L12.4548 11.2919L14.273 10.4586C13.3817 8.5141 10.6187 8.5141 9.72752 10.4586L11.5457 11.2919ZM12.4548 11.2919L10.6367 12.1253L14.8955 21.4163L16.7136 20.5829L18.5317 19.7495L14.2729 10.4585L12.4548 11.2919ZM16.7136 20.5829L14.8955 21.4162C14.5917 20.7534 15.076 20.0001 15.8039 19.9999L15.8044 21.9999L15.805 23.9999C17.9899 23.9993 19.4426 21.737 18.5317 19.7496L16.7136 20.5829ZM15.8044 21.9999V19.9999C16.1945 19.9999 16.5498 20.227 16.7132 20.5831L14.8953 21.4169L13.0774 22.2507C13.5666 23.3174 14.6325 23.9999 15.8044 23.9999V21.9999ZM14.8953 21.4169L16.7133 20.5835L13.8178 14.2671L11.9998 15.1005L10.1817 15.9339L13.0772 22.2503L14.8953 21.4169ZM11.9998 15.1005L10.1816 14.2673L7.28704 20.5837L9.10522 21.4169L10.9234 22.2501L13.8179 15.9337L11.9998 15.1005ZM9.10522 21.4169L7.28718 20.5834C7.45077 20.2266 7.80642 20 8.19569 19.9999L8.19604 21.9999L8.1964 23.9999C9.36748 23.9997 10.4339 23.3179 10.9233 22.2504L9.10522 21.4169ZM8.19604 21.9999L8.19604 19.9999C8.92502 19.9999 9.40845 20.7541 9.10499 21.4162L7.28687 20.5829L5.46874 19.7496C4.55809 21.7365 6.00978 23.9999 8.19604 23.9999V21.9999ZM7.28687 20.5829L9.10496 21.4163L13.3638 12.1253L11.5457 11.2919L9.72755 10.4585L5.46877 19.7495L7.28687 20.5829ZM11.5457 2.2919L13.3638 3.12521C12.829 4.2919 11.1714 4.2919 10.6367 3.12521L12.4548 2.2919L14.273 1.45859C13.3817 -0.485895 10.6187 -0.485895 9.72752 1.45859L11.5457 2.2919ZM12.4548 2.2919L10.6367 3.12527L14.8955 12.4163L16.7136 11.5829L18.5317 10.7495L14.2729 1.45852L12.4548 2.2919ZM16.7136 11.5829L14.8955 12.4162C14.5917 11.7534 15.076 11.0001 15.8039 10.9999L15.8044 12.9999L15.805 14.9999C17.9899 14.9993 19.4427 12.7371 18.5317 10.7496L16.7136 11.5829ZM15.8044 12.9999V10.9999C16.1946 10.9999 16.5498 11.227 16.7131 11.5831L14.8953 12.4169L13.0774 13.2507C13.5666 14.3174 14.6325 14.9999 15.8044 14.9999V12.9999ZM14.8953 12.4169L16.7133 11.5835L13.8178 5.26706L11.9998 6.10049L10.1817 6.93392L13.0772 13.2503L14.8953 12.4169ZM11.9998 6.10049L10.1816 5.2673L7.28704 11.5837L9.10522 12.4169L10.9234 13.2501L13.8179 6.93368L11.9998 6.10049ZM9.10522 12.4169L7.28717 11.5834C7.45078 11.2265 7.80645 11 8.19566 10.9999L8.19604 12.9999L8.19643 14.9999C9.36745 14.9997 10.4339 14.3179 10.9233 13.2504L9.10522 12.4169ZM8.19604 12.9999V10.9999C8.92502 10.9999 9.40845 11.7541 9.10499 12.4162L7.28687 11.5829L5.46874 10.7496C4.55809 12.7365 6.00978 14.9999 8.19604 14.9999V12.9999ZM7.28687 11.5829L9.10496 12.4163L13.3638 3.12527L11.5457 2.2919L9.72755 1.45852L5.46877 10.7495L7.28687 11.5829Z\"\n fill=\"var(--border-silhouette-color)\"\n />\n <path\n d=\"M11.5457 11.2919C11.7239 10.903 12.2766 10.903 12.4548 11.2919L16.7136 20.5829C17.0172 21.2452 16.5329 21.9997 15.8044 21.9999C15.4135 21.9999 15.0582 21.7722 14.8953 21.4169L11.9998 15.1005L9.10522 21.4169C8.94231 21.7722 8.58695 21.9998 8.19604 21.9999C7.4674 21.9999 6.98327 21.2453 7.28687 20.5829L11.5457 11.2919ZM11.5457 2.2919C11.7239 1.903 12.2766 1.903 12.4548 2.2919L16.7136 11.5829C17.0172 12.2452 16.5329 12.9997 15.8044 12.9999C15.4135 12.9999 15.0582 12.7722 14.8953 12.4169L11.9998 6.10049L9.10522 12.4169C8.94232 12.7722 8.58695 12.9998 8.19604 12.9999C7.4674 12.9999 6.98327 12.2453 7.28687 11.5829L11.5457 2.2919Z\"\n fill=\"var(--color)\"\n />\n </g>\n </svg>\n `;\n }\n\n private getOwnShipIndicatorIcon() {\n if (!this.ownShipIndicator) {\n return nothing;\n }\n return html`\n <svg\n width=\"64\"\n height=\"256\"\n viewBox=\"-32 -128 64 256\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"cross-line\"\n >\n <circle cx=\"0\" cy=\"0\" r=\"2\" fill=\"var(--element-active-color)\" />\n <line\n x1=\"-32\"\n x2=\"-4\"\n y1=\"0\"\n y2=\"0\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n\n <line\n x1=\"32\"\n x2=\"4\"\n y1=\"0\"\n y2=\"0\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n\n <line\n x1=\"0\"\n x2=\"0\"\n y1=\"-4\"\n y2=\"-128\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n\n <line\n x1=\"0\"\n x2=\"0\"\n y1=\"4\"\n y2=\"128\"\n stroke=\"var(--element-active-color)\"\n stroke-width=\"1\"\n stroke-dasharray=\"1 2\"\n />\n </svg>\n `;\n }\n\n private getVesselImageIcon() {\n if (!this.vesselImage) {\n return html`<div\n class=\"vessel-image-wrapper\"\n style=\"--image-size: ${this.vesselImageSize}px;\"\n part=\"vessel-image-wrapper\"\n >\n <slot name=\"vessel-image\"></slot>\n </div>`;\n }\n return html`<div\n class=\"vessel-image-wrapper\"\n style=\"--image-size: ${this.vesselImageSize}px;\"\n part=\"vessel-image-wrapper\"\n >\n ${vesselImages[this.vesselImage]}\n </div>`;\n }\n\n static override styles = unsafeCSS(compentStyle);\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'obc-chart-object-vessel-button': ObcChartObjectVesselButton;\n }\n}\n"],"mappings":";;;;;;;;;;AAaA,IAAY,iBAAL,yBAAA,gBAAA;CACL,eAAA,aAAA;CACA,eAAA,SAAA;CACA,eAAA,SAAA;CACA,eAAA,WAAA;CACA,eAAA,cAAA;;AACF,EAAA,CAAA,CAAA;AAEA,IAAY,QAAL,yBAAA,OAAA;CACL,MAAA,aAAA;CACA,MAAA,YAAA;CACA,MAAA,cAAA;CACA,MAAA,aAAA;CACA,MAAA,aAAA;CACA,MAAA,WAAA;;AACF,EAAA,CAAA,CAAA;AAEA,IAAY,OAAL,yBAAA,MAAA;CACL,KAAA,UAAA;CACA,KAAA,YAAA;CACA,KAAA,eAAA;CACA,KAAA,WAAA;CACA,KAAA,kBAAA;CACA,KAAA,oBAAA;;AACF,EAAA,CAAA,CAAA;AA8DO,IAAM,6BAAN,MAAM,mCAAmC,WAAW;;;EACrB,KAAA,UAAA;EACD,KAAA,SAAA;;EAEE,KAAA,WAAA;EACkB,KAAA,SAAA,KAAA;EACF,KAAA,OAAA,KAAA;;;EAGf,KAAA,WAAA;EACwB,KAAA,gBAAA,KAAA;EACP,KAAA,mBAAA;EACK,KAAA,cAAA;EACR,KAAA,kBAAA;;CAEpD,SAAkB;EAIhB,MAAM,MAHW;;;;EAA6C,CAAC,CAAC,SAC9D,KAAK,IAEK,IAAW,OAAO,WAAW,OAAO;EAChD,MAAM,WAAW;;;;EAA0C,CAAC,CAAC,SAC3D,KAAK,KACP;EACA,OAAO,MAAI;SACN,IAAI;gBACG,SAAS;GACf,SAAS;IACR,SAAS,KAAK,UAAU;IACxB,QAAQ,KAAK,SAAS;GACvB,aAAa;GACb,UAAU,KAAK;EACjB,CAAC,EAAE;4BACiB,KAAK,QAAQ;;QAEjC,KAAK,mBAAmB,EAAE;QAC1B,KAAK,mBAAmB,EAAE;SACzB,KAAK,wBAAwB,EAAE;gEACwB,KAAK,QAAQ;YACjE,KAA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KAAA,CAAA;AACvB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,QAAA,KAAA,CAAA;AACvB,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,2BAAA,WAAA,YAAA,KAAA,CAAA;AACxB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,iBAAA,KAAA,CAAA;AACvB,WAAA,CAAA,SAAS,EAAC,MAAM,QAAO,CAAC,CAAA,GAAA,2BAAA,WAAA,oBAAA,KAAA,CAAA;AACxB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,eAAA,KAAA,CAAA;AACvB,WAAA,CAAA,SAAS,EAAC,MAAM,OAAM,CAAC,CAAA,GAAA,2BAAA,WAAA,mBAAA,KAAA,CAAA;AAdzB,6BAAA,WAAA,CAAA,cAAc,gCAAgC,CAAA,GAAA,0BAAA"}
@@ -13,6 +13,14 @@ canvas {
13
13
  position: relative;
14
14
  }
15
15
 
16
+ /* Pixel mode: pin the canvas to the requested size. Chart.js writes its
17
+ measured size back inline, so a chart created in a hidden container would
18
+ otherwise keep the 48 px minimum it measured there. */
19
+ :host(:not([fixedaspectratioscaling])) canvas {
20
+ width: var(--chart-width, 100%) !important;
21
+ height: var(--chart-height, auto) !important;
22
+ }
23
+
16
24
  /* Scale slots - absolutely positioned at edges */
17
25
  slot[name="top-scale"],
18
26
  slot[name="bottom-scale"],
@@ -1 +1 @@
1
- {"version":3,"file":"chart-line-base.css.js","names":[],"sources":["../../../src/building-blocks/chart-line/chart-line-base.css?inline"],"sourcesContent":[".canvas-and-slots-container {\n position: relative;\n}\n\ncanvas {\n z-index: 1;\n position: relative;\n}\n\n/* Scale slots - absolutely positioned at edges */\nslot[name=\"top-scale\"],\nslot[name=\"bottom-scale\"],\nslot[name=\"left-scale\"],\nslot[name=\"right-scale\"] {\n position: absolute;\n display: block;\n pointer-events: none;\n}\n\nslot[name=\"top-scale\"] {\n top: 0;\n left: 0;\n right: 0;\n}\n\nslot[name=\"bottom-scale\"] {\n bottom: 0;\n left: 0;\n right: 0;\n}\n\nslot[name=\"left-scale\"] {\n top: 0;\n bottom: 0;\n left: 0;\n}\n\nslot[name=\"right-scale\"] {\n top: 0;\n bottom: 0;\n right: 0;\n}\n"],"mappings":""}
1
+ {"version":3,"file":"chart-line-base.css.js","names":[],"sources":["../../../src/building-blocks/chart-line/chart-line-base.css?inline"],"sourcesContent":[".canvas-and-slots-container {\n position: relative;\n}\n\ncanvas {\n z-index: 1;\n position: relative;\n}\n\n/* Pixel mode: pin the canvas to the requested size. Chart.js writes its\n measured size back inline, so a chart created in a hidden container would\n otherwise keep the 48 px minimum it measured there. */\n:host(:not([fixedaspectratioscaling])) canvas {\n width: var(--chart-width, 100%) !important;\n height: var(--chart-height, auto) !important;\n}\n\n/* Scale slots - absolutely positioned at edges */\nslot[name=\"top-scale\"],\nslot[name=\"bottom-scale\"],\nslot[name=\"left-scale\"],\nslot[name=\"right-scale\"] {\n position: absolute;\n display: block;\n pointer-events: none;\n}\n\nslot[name=\"top-scale\"] {\n top: 0;\n left: 0;\n right: 0;\n}\n\nslot[name=\"bottom-scale\"] {\n bottom: 0;\n left: 0;\n right: 0;\n}\n\nslot[name=\"left-scale\"] {\n top: 0;\n bottom: 0;\n left: 0;\n}\n\nslot[name=\"right-scale\"] {\n top: 0;\n bottom: 0;\n right: 0;\n}\n"],"mappings":""}
@@ -668,8 +668,10 @@ export declare class ObcChartLineBase extends LitElement {
668
668
  * NOTE: For non-threshold modes (solid, semitransparent), backgroundColor is already
669
669
  * set correctly in buildDataset(). This method now only handles threshold gradients
670
670
  * which require Chart.js scales to be available.
671
+ *
672
+ * @returns Whether it set gradients; they reach the drawn chart on its next update.
671
673
  */
672
- protected applyFillModes(): void;
674
+ protected applyFillModes(): boolean;
673
675
  updated(changed: PropertyValues): void;
674
676
  firstUpdated(): Promise<void>;
675
677
  disconnectedCallback(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"chart-line-base.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/chart-line/chart-line-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAkB,MAAM,KAAK,CAAC;AAkBhE,OAAO,KAAK,EAAC,YAAY,EAAE,YAAY,EAAqB,MAAM,UAAU,CAAC;AAC7E,OAAO,EACL,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAiBL,UAAU,EAOX,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAqB/D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC1C,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;CACnB;AA6BD,YAAY,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE7E,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED,oBAAY,QAAQ;IAClB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,YAAY;CACpB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,kEAAkE;AAClE,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,CAAC,MAAM;IACP,CAAC,MAAM;IACP,EAAE,OAAO;CACV;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG;IAAC,CAAC,EAAE,WAAW,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;AAElE,MAAM,MAAM,iBAAiB,GAAG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AAM,CAAC;IA6EjD;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IA+C5B;;;;;;;;OAQG;IACH,SAAS,CAAC,iBAAiB,CACzB,IAAI,CAAC,EAAE,MAAM,EACb,UAAU,UAAQ,EAClB,aAAa,UAAO,GAiIG,YAAY,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;IAGvD;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,WAAW;IAkCnB,OAAO,CAAC,WAAW;IAoBnB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAczB;;OAEG;IACH,OAAO,CAAC,YAAY;IAmDX,MAAM;IAgCf,OAAgB,MAAM,4BAKpB;CACH"}
1
+ {"version":3,"file":"chart-line-base.d.ts","sourceRoot":"","sources":["../../../src/building-blocks/chart-line/chart-line-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,cAAc,EAAkB,MAAM,KAAK,CAAC;AAkBhE,OAAO,KAAK,EAAC,YAAY,EAAE,YAAY,EAAqB,MAAM,UAAU,CAAC;AAC7E,OAAO,EACL,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,QAAQ,EACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAiBL,UAAU,EAOX,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAqB/D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,6CAA6C;IAC7C,IAAI,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC1C,8EAA8E;IAC9E,SAAS,EAAE,MAAM,CAAC;CACnB;AA6BD,YAAY,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,+BAA+B,CAAC;AAE7E,oBAAY,SAAS;IACnB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,oBAAY,aAAa;IACvB,IAAI,SAAS;IACb,KAAK,UAA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M,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,EAC3C,WAAW,EAAE,MAAM,EAAE,GACpB,YAAY,CAAC,MAAM,EAAE,cAAc,EAAE,CAAC,EAAE;IAyC3C;;;;OAIG;IACH,SAAS,CAAC,0BAA0B;IAiCpC,+EAA+E;IAC/E,OAAO,CAAC,iBAAiB;IAYzB;;;;;OAKG;IACH,SAAS,CAAC,2BAA2B;;gBA0BD,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE;;IAcvD;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAoD3B;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,YAAY,CAAC,MAAM,CAAC;IA6EjD;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IA+C5B;;;;;;;;OAQG;IACH,SAAS,CAAC,iBAAiB,CACzB,IAAI,CAAC,EAAE,MAAM,EACb,UAAU,UAAQ,EAClB,aAAa,UAAO,GAiIG,YAAY,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC;IAGvD;;OAEG;IACH,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,WAAW;IAsCnB,OAAO,CAAC,WAAW;IAoBnB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAczB;;OAEG;IACH,OAAO,CAAC,YAAY;IAmDX,MAAM;IAgCf,OAAgB,MAAM,4BAKpB;CACH"}
@@ -1418,14 +1418,17 @@ var ObcChartLineBase = class extends LitElement {
1418
1418
  * NOTE: For non-threshold modes (solid, semitransparent), backgroundColor is already
1419
1419
  * set correctly in buildDataset(). This method now only handles threshold gradients
1420
1420
  * which require Chart.js scales to be available.
1421
+ *
1422
+ * @returns Whether it set gradients; they reach the drawn chart on its next update.
1421
1423
  */
1422
1424
  applyFillModes() {
1423
- if (!this.chart || !this.canvasEl || !this.canvasEl.isConnected) return;
1425
+ if (!this.chart || !this.canvasEl || !this.canvasEl.isConnected) return false;
1424
1426
  const chart = this.chart;
1425
1427
  const ctx = chart.ctx;
1426
- if (!ctx) return;
1428
+ if (!ctx) return false;
1427
1429
  const fill = this.shouldApplyFill();
1428
- if (this.getFillMode() !== "threshold" || !fill) return;
1430
+ if (this.getFillMode() !== "threshold" || !fill) return false;
1431
+ let applied = false;
1429
1432
  chart.data.datasets.forEach((ds, _idx) => {
1430
1433
  const dataset = ds;
1431
1434
  if (dataset.fill === false || !fill) return;
@@ -1456,7 +1459,9 @@ var ObcChartLineBase = class extends LitElement {
1456
1459
  const borderGradient = createGradient(.8, .8);
1457
1460
  dataset.backgroundColor = fillGradient;
1458
1461
  dataset.borderColor = borderGradient;
1462
+ applied = true;
1459
1463
  });
1464
+ return applied;
1460
1465
  }
1461
1466
  updated(changed) {
1462
1467
  super.updated(changed);
@@ -1974,7 +1979,7 @@ var ObcChartLineBase = class extends LitElement {
1974
1979
  ]
1975
1980
  });
1976
1981
  requestAnimationFrame(() => this.updateLegend());
1977
- this.applyFillModes();
1982
+ if (this.applyFillModes()) this.chart.update("none");
1978
1983
  this.syncSlottedScaleRanges();
1979
1984
  }
1980
1985
  updateChart() {