@cloudscape-design/chart-components 1.0.89 → 1.0.91

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.
@@ -63,8 +63,8 @@ export class ChartExtraTooltip extends AsyncStore {
63
63
  const pointRect = point ? getPointRect(point) : getGroupRect(group.slice(0, 1));
64
64
  const groupRect = getGroupRect(group);
65
65
  // The cursor is not shown when column series are present (a UX decision).
66
- const hasColumnSeries = getChartSeries(this.context.chart()).some((s) => s.type === "column");
67
- this.cursor.create(groupRect, point, group, !hasColumnSeries);
66
+ const hideCursorLine = getChartSeries(this.context.chart()).some((s) => s.type === "column" || s.type === "heatmap");
67
+ this.cursor.create(groupRect, point, group, !hideCursorLine);
68
68
  this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });
69
69
  this.groupTrack.rect(this.context.chart().renderer, { ...groupRect, ...this.commonTrackAttrs });
70
70
  };
@@ -147,7 +147,8 @@ class HighlightCursorCartesian {
147
147
  return (isPointVisible(point) &&
148
148
  !isXThreshold(point.series) &&
149
149
  point.series.type !== "column" &&
150
- point.series.type !== "errorbar");
150
+ point.series.type !== "errorbar" &&
151
+ point.series.type !== "heatmap");
151
152
  };
152
153
  }
153
154
  create(target, point, group, showLine) {
@@ -1 +1 @@
1
- {"version":3,"file":"chart-extra-tooltip.js","sourceRoot":"","sources":["../../../../src/core/chart-api/chart-extra-tooltip.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AACrF,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAA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C,OAAO,CAAC;IAC9B,MAAM,OAAO,GAAG,QAAQ,GAAG,CAAC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7G,MAAM,OAAO,GAAG,OAAO,GAAG,CAAC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAC7G,MAAM,MAAM,GACV,CAAC,OAAO,gBAAgB,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,gBAAgB,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7G,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC;AAC3E,CAAC;AAED,SAAS,4BAA4B,CAAC,KAAuB;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IACjC,OAAO,QAAQ,CAAC;QACd,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,GAAG,CAAC;QACvC,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,UAAU,GAAG,CAAC;QACvC,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;KACV,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport clsx from \"clsx\";\nimport type Highcharts from \"highcharts\";\n\nimport { getIsRtl } from \"@cloudscape-design/component-toolkit/internal\";\n\nimport * as Styles from \"../../internal/chart-styles\";\nimport { renderMarker } from \"../../internal/components/series-marker/render-marker\";\nimport AsyncStore from \"../../internal/utils/async-store\";\nimport { getChartSeries, isPointVisible } from \"../../internal/utils/highcharts\";\nimport { SVGRendererPool, SVGRendererSingle } from \"../../internal/utils/renderer-utils\";\nimport { DebouncedCall, isEqualArrays } from \"../../internal/utils/utils\";\nimport { Rect } from \"../interfaces\";\nimport { getGroupRect, getPointRect, getSeriesId, isXThreshold, safeRect } from \"../utils\";\nimport { ChartExtraContext } from \"./chart-extra-context\";\n\nimport testClasses from \"../test-classes/styles.css.js\";\n\nconst TOOLTIP_LAST_DISMISS_DELAY = 250;\n\n// The reactive state is used to propagate updates to the chart tooltip React component. The tooltip\n// content is to be derived from the target point and group.\nexport interface ReactiveTooltipState {\n visible: boolean;\n pinned: boolean;\n point: null | Highcharts.Point;\n group: readonly Highcharts.Point[];\n}\n\n// Chart helper that implements tooltip placement logic and cursors.\nexport class ChartExtraTooltip extends AsyncStore<ReactiveTooltipState> {\n private context: ChartExtraContext;\n\n // The tooltip lock is used to prevent tooltip position changes shortly after it was dismissed, to\n // deny its immediate re-appearance in the spot under where the dismiss button was.\n public tooltipLock = false;\n private tooltipLockCall = new DebouncedCall();\n private setTooltipLock = () => {\n if (this.get().pinned) {\n this.tooltipLock = true;\n this.tooltipLockCall.call(() => (this.tooltipLock = false), TOOLTIP_LAST_DISMISS_DELAY);\n }\n };\n\n // The cursor is a vertical or horizontal (in inverted charts) line and hollow or filled markers,\n // shown in cartesian charts on top of the matched group or point.\n private cursor = new HighlightCursorCartesian();\n // The track elements are invisible rectangles, compted for the given target point or group.\n // The target track is used for the \"target\" tooltip placement. The group track is used for\n // the \"middle\" and \"outside\" tooltip placement.\n private targetTrack = new SVGRendererSingle();\n private groupTrack = new SVGRendererSingle();\n\n // Cached coordinates to update cursor's position on re-render.\n private lastPoint: null | Highcharts.Point = null;\n private lastGroup: null | readonly Highcharts.Point[] = null;\n\n constructor(context: ChartExtraContext) {\n super({ visible: false, pinned: false, point: null, group: [] });\n this.context = context;\n }\n\n // The targetElement.element can get invalidated by Highcharts, so we cannot use\n // trackRef.current = targetElement.element as it might get invalidated unexpectedly.\n // The getTrack function ensures the latest element reference is given on each request.\n public getTargetTrack = () => (this.targetTrack.element?.element ?? null) as null | SVGElement;\n public getGroupTrack = () => {\n return (this.groupTrack.element?.element ?? null) as null | SVGElement;\n };\n\n public onChartRender() {\n if (this.lastGroup && this.get().visible) {\n this.updateTooltipCursor({ point: this.lastPoint, group: this.lastGroup });\n }\n }\n\n public onChartDestroy() {\n this.cursor.destroy();\n this.targetTrack.destroy();\n this.groupTrack.destroy();\n }\n\n public showTooltipOnPoint(point: Highcharts.Point, matchingGroup: readonly Highcharts.Point[], ignoreLock = false) {\n if (!this.tooltipLock || ignoreLock) {\n this.updateTooltipCursor({ point, group: matchingGroup });\n this.set(() => ({ visible: true, pinned: false, point, group: matchingGroup }));\n }\n }\n\n public showTooltipOnGroup(group: readonly Highcharts.Point[], ignoreLock = false) {\n if (!this.tooltipLock || ignoreLock) {\n this.updateTooltipCursor({ point: null, group });\n this.setGroupIfDifferent(group);\n }\n }\n\n public hideTooltip() {\n this.cursor.hide();\n this.targetTrack.hide();\n this.groupTrack.hide();\n this.setTooltipLock();\n this.set((prev) => ({ ...prev, visible: false, pinned: false }));\n }\n\n public pinTooltip() {\n if (this.context.settings.tooltipEnabled) {\n this.set((prev) => ({ ...prev, visible: true, pinned: true }));\n }\n }\n\n // Avoid re-rendering the tooltip on every cursor position change when hovering over the graph.\n // Just re-render when the groups are different.\n private setGroupIfDifferent(group: readonly Highcharts.Point[]) {\n function isGroupEqual(a: Highcharts.Point, b: Highcharts.Point) {\n return a?.x === b?.x && a?.y === b?.y && getSeriesId(a?.series) === getSeriesId(b?.series);\n }\n this.set((prev) => {\n return prev.point === null && isEqualArrays(prev.group, group, isGroupEqual)\n ? prev\n : { visible: true, pinned: false, point: null, group };\n });\n }\n\n private updateTooltipCursor = (props: { point: null | Highcharts.Point; group: readonly Highcharts.Point[] }) => {\n this.lastPoint = props.point;\n this.lastGroup = props.group;\n\n const chartType =\n getChartSeries(this.context.chart()).find((s) => s.type === \"pie\" || s.type === \"solidgauge\")?.type ??\n \"cartesian\";\n if (chartType === \"pie\") {\n return this.updateTooltipCursorPie(props.group[0]);\n } else if (chartType === \"solidgauge\") {\n return this.updateTooltipCursorGauge(props.group[0]);\n } else {\n return this.updateTooltipCursorCartesian(props);\n }\n };\n\n private updateTooltipCursorCartesian = ({\n point,\n group,\n }: {\n point: null | Highcharts.Point;\n group: readonly Highcharts.Point[];\n }) => {\n const pointRect = point ? getPointRect(point) : getGroupRect(group.slice(0, 1));\n const groupRect = getGroupRect(group);\n // The cursor is not shown when column series are present (a UX decision).\n const hasColumnSeries = getChartSeries(this.context.chart()).some((s) => s.type === \"column\");\n this.cursor.create(groupRect, point, group, !hasColumnSeries);\n this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });\n this.groupTrack.rect(this.context.chart().renderer, { ...groupRect, ...this.commonTrackAttrs });\n };\n\n private updateTooltipCursorPie = (point: Highcharts.Point) => {\n // We only create target track for pie chart as pie chart does not support groups.\n // It is also expected that only \"target\" tooltip position is used for pie charts.\n const pointRect = getPieChartTargetPlacement(point);\n this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });\n };\n\n private updateTooltipCursorGauge = (point: Highcharts.Point) => {\n // Solid gauge charts are similar to pie charts in that they have a circular shape\n // and don't support grouping. We use a similar approach to pie charts.\n const pointRect = getSolidGaugeTargetPlacement(point);\n this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });\n };\n\n private get commonTrackAttrs() {\n return { fill: \"transparent\", zIndex: -1, \"pointer-events\": \"none\", direction: this.direction };\n }\n\n // We compute the direction from the chart container and then explicitly set it to the track\n // elements, as otherwise the direction check done for track elements always results to \"ltr\".\n private get direction() {\n const isRtl = getIsRtl(this.context.chart().container.parentElement);\n return isRtl ? \"rtl\" : \"ltr\";\n }\n}\n\n// A helper class to draw the cursor elements (include cursor line and matched points markers).\nclass HighlightCursorCartesian {\n private lineElement = new SVGRendererSingle();\n private markerElementsPool = new SVGRendererPool();\n\n public create(target: Rect, point: null | Highcharts.Point, group: readonly Highcharts.Point[], showLine: boolean) {\n this.hide();\n if (!group[0]?.series) {\n return;\n }\n\n const chart = group[0]?.series.chart;\n if (!chart) {\n return;\n }\n if (showLine) {\n // The cursor line is rendered orthogonally to the x axis (when the chart is inverted, the line is rendered horizontally).\n // The line is 1px thick, and is rendered through the center of the target's rect.\n const lineAttrs = chart.inverted\n ? {\n x: chart.plotLeft,\n y: chart.plotTop + target.y - target.height - 1,\n width: chart.plotWidth,\n height: 1,\n }\n : {\n x: target.x + target.width / 2,\n y: chart.plotTop,\n width: 1,\n height: chart.plotHeight,\n };\n this.lineElement.rect(chart.renderer, { ...Styles.cursorLine, ...lineAttrs });\n }\n for (const p of group.filter(this.isPointEligibleForMarker)) {\n if (p.plotX !== undefined && p.plotY !== undefined) {\n const selected = p === point;\n const className = clsx(testClasses[\"highlight-marker\"], selected && testClasses[\"highlight-marker-selected\"]);\n renderMarker({ chart, pool: this.markerElementsPool, point: p, selected, className });\n }\n }\n }\n\n public hide() {\n this.lineElement.hide();\n this.markerElementsPool.hideAll();\n }\n\n public destroy() {\n this.lineElement.destroy();\n this.markerElementsPool.destroyAll();\n }\n\n private isPointEligibleForMarker = (point: Highcharts.Point) => {\n return (\n isPointVisible(point) &&\n !isXThreshold(point.series) &&\n point.series.type !== \"column\" &&\n point.series.type !== \"errorbar\"\n );\n };\n}\n\nfunction getPieChartTargetPlacement(point: Highcharts.Point): Rect {\n // The pie series segments do not provide plotX, plotY to compute the tooltip placement.\n // Instead, there is a `tooltipPos` tuple, which is not covered by TS.\n // See: https://github.com/highcharts/highcharts/issues/23118.\n if (\"tooltipPos\" in point && Array.isArray(point.tooltipPos)) {\n return safeRect({ x: point.tooltipPos[0], y: point.tooltipPos[1], width: 0, height: 0 });\n }\n // We use the alternative, middle, tooltip placement as a fallback, in case the undocumented \"tooltipPos\"\n // is no longer available in the point.\n return getPieMiddlePlacement(point);\n}\n\nfunction getPieMiddlePlacement(point: Highcharts.Point): Rect {\n const chart = point.series.chart;\n const [relativeX, relativeY, relativeDiameter] = point.series.center;\n const plotLeft = chart.plotLeft;\n const plotTop = chart.plotTop;\n const centerX = plotLeft + (typeof relativeX === \"number\" ? relativeX : (relativeX / 100) * chart.plotWidth);\n const centerY = plotTop + (typeof relativeY === \"number\" ? relativeY : (relativeY / 100) * chart.plotHeight);\n const radius =\n (typeof relativeDiameter === \"number\" ? relativeDiameter : (relativeDiameter / 100) * chart.plotWidth) / 2;\n return { x: centerX, y: centerY - radius, width: 1, height: 2 * radius };\n}\n\nfunction getSolidGaugeTargetPlacement(point: Highcharts.Point): Rect {\n const chart = point.series.chart;\n return safeRect({\n x: chart.plotLeft + chart.plotWidth / 2,\n y: chart.plotTop + chart.plotHeight / 2,\n width: 0,\n height: 0,\n });\n}\n"]}
1
+ {"version":3,"file":"chart-extra-tooltip.js","sourceRoot":"","sources":["../../../../src/core/chart-api/chart-extra-tooltip.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAEzE,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uDAAuD,CAAC;AACrF,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,E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CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7G,MAAM,OAAO,GAAG,OAAO,GAAG,CAAC,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;IAC7G,MAAM,MAAM,GACV,CAAC,OAAO,gBAAgB,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,gBAAgB,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC7G,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC;AAC3E,CAAC;AAED,SAAS,4BAA4B,CAAC,KAAuB;IAC3D,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IACjC,OAAO,QAAQ,CAAC;QACd,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,GAAG,CAAC;QACvC,CAAC,EAAE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,UAAU,GAAG,CAAC;QACvC,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;KACV,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport clsx from \"clsx\";\nimport type Highcharts from \"highcharts\";\n\nimport { getIsRtl } from \"@cloudscape-design/component-toolkit/internal\";\n\nimport * as Styles from \"../../internal/chart-styles\";\nimport { renderMarker } from \"../../internal/components/series-marker/render-marker\";\nimport AsyncStore from \"../../internal/utils/async-store\";\nimport { getChartSeries, isPointVisible } from \"../../internal/utils/highcharts\";\nimport { SVGRendererPool, SVGRendererSingle } from \"../../internal/utils/renderer-utils\";\nimport { DebouncedCall, isEqualArrays } from \"../../internal/utils/utils\";\nimport { Rect } from \"../interfaces\";\nimport { getGroupRect, getPointRect, getSeriesId, isXThreshold, safeRect } from \"../utils\";\nimport { ChartExtraContext } from \"./chart-extra-context\";\n\nimport testClasses from \"../test-classes/styles.css.js\";\n\nconst TOOLTIP_LAST_DISMISS_DELAY = 250;\n\n// The reactive state is used to propagate updates to the chart tooltip React component. The tooltip\n// content is to be derived from the target point and group.\nexport interface ReactiveTooltipState {\n visible: boolean;\n pinned: boolean;\n point: null | Highcharts.Point;\n group: readonly Highcharts.Point[];\n}\n\n// Chart helper that implements tooltip placement logic and cursors.\nexport class ChartExtraTooltip extends AsyncStore<ReactiveTooltipState> {\n private context: ChartExtraContext;\n\n // The tooltip lock is used to prevent tooltip position changes shortly after it was dismissed, to\n // deny its immediate re-appearance in the spot under where the dismiss button was.\n public tooltipLock = false;\n private tooltipLockCall = new DebouncedCall();\n private setTooltipLock = () => {\n if (this.get().pinned) {\n this.tooltipLock = true;\n this.tooltipLockCall.call(() => (this.tooltipLock = false), TOOLTIP_LAST_DISMISS_DELAY);\n }\n };\n\n // The cursor is a vertical or horizontal (in inverted charts) line and hollow or filled markers,\n // shown in cartesian charts on top of the matched group or point.\n private cursor = new HighlightCursorCartesian();\n // The track elements are invisible rectangles, compted for the given target point or group.\n // The target track is used for the \"target\" tooltip placement. The group track is used for\n // the \"middle\" and \"outside\" tooltip placement.\n private targetTrack = new SVGRendererSingle();\n private groupTrack = new SVGRendererSingle();\n\n // Cached coordinates to update cursor's position on re-render.\n private lastPoint: null | Highcharts.Point = null;\n private lastGroup: null | readonly Highcharts.Point[] = null;\n\n constructor(context: ChartExtraContext) {\n super({ visible: false, pinned: false, point: null, group: [] });\n this.context = context;\n }\n\n // The targetElement.element can get invalidated by Highcharts, so we cannot use\n // trackRef.current = targetElement.element as it might get invalidated unexpectedly.\n // The getTrack function ensures the latest element reference is given on each request.\n public getTargetTrack = () => (this.targetTrack.element?.element ?? null) as null | SVGElement;\n public getGroupTrack = () => {\n return (this.groupTrack.element?.element ?? null) as null | SVGElement;\n };\n\n public onChartRender() {\n if (this.lastGroup && this.get().visible) {\n this.updateTooltipCursor({ point: this.lastPoint, group: this.lastGroup });\n }\n }\n\n public onChartDestroy() {\n this.cursor.destroy();\n this.targetTrack.destroy();\n this.groupTrack.destroy();\n }\n\n public showTooltipOnPoint(point: Highcharts.Point, matchingGroup: readonly Highcharts.Point[], ignoreLock = false) {\n if (!this.tooltipLock || ignoreLock) {\n this.updateTooltipCursor({ point, group: matchingGroup });\n this.set(() => ({ visible: true, pinned: false, point, group: matchingGroup }));\n }\n }\n\n public showTooltipOnGroup(group: readonly Highcharts.Point[], ignoreLock = false) {\n if (!this.tooltipLock || ignoreLock) {\n this.updateTooltipCursor({ point: null, group });\n this.setGroupIfDifferent(group);\n }\n }\n\n public hideTooltip() {\n this.cursor.hide();\n this.targetTrack.hide();\n this.groupTrack.hide();\n this.setTooltipLock();\n this.set((prev) => ({ ...prev, visible: false, pinned: false }));\n }\n\n public pinTooltip() {\n if (this.context.settings.tooltipEnabled) {\n this.set((prev) => ({ ...prev, visible: true, pinned: true }));\n }\n }\n\n // Avoid re-rendering the tooltip on every cursor position change when hovering over the graph.\n // Just re-render when the groups are different.\n private setGroupIfDifferent(group: readonly Highcharts.Point[]) {\n function isGroupEqual(a: Highcharts.Point, b: Highcharts.Point) {\n return a?.x === b?.x && a?.y === b?.y && getSeriesId(a?.series) === getSeriesId(b?.series);\n }\n this.set((prev) => {\n return prev.point === null && isEqualArrays(prev.group, group, isGroupEqual)\n ? prev\n : { visible: true, pinned: false, point: null, group };\n });\n }\n\n private updateTooltipCursor = (props: { point: null | Highcharts.Point; group: readonly Highcharts.Point[] }) => {\n this.lastPoint = props.point;\n this.lastGroup = props.group;\n\n const chartType =\n getChartSeries(this.context.chart()).find((s) => s.type === \"pie\" || s.type === \"solidgauge\")?.type ??\n \"cartesian\";\n if (chartType === \"pie\") {\n return this.updateTooltipCursorPie(props.group[0]);\n } else if (chartType === \"solidgauge\") {\n return this.updateTooltipCursorGauge(props.group[0]);\n } else {\n return this.updateTooltipCursorCartesian(props);\n }\n };\n\n private updateTooltipCursorCartesian = ({\n point,\n group,\n }: {\n point: null | Highcharts.Point;\n group: readonly Highcharts.Point[];\n }) => {\n const pointRect = point ? getPointRect(point) : getGroupRect(group.slice(0, 1));\n const groupRect = getGroupRect(group);\n // The cursor is not shown when column series are present (a UX decision).\n const hideCursorLine = getChartSeries(this.context.chart()).some(\n (s) => s.type === \"column\" || s.type === \"heatmap\",\n );\n this.cursor.create(groupRect, point, group, !hideCursorLine);\n this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });\n this.groupTrack.rect(this.context.chart().renderer, { ...groupRect, ...this.commonTrackAttrs });\n };\n\n private updateTooltipCursorPie = (point: Highcharts.Point) => {\n // We only create target track for pie chart as pie chart does not support groups.\n // It is also expected that only \"target\" tooltip position is used for pie charts.\n const pointRect = getPieChartTargetPlacement(point);\n this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });\n };\n\n private updateTooltipCursorGauge = (point: Highcharts.Point) => {\n // Solid gauge charts are similar to pie charts in that they have a circular shape\n // and don't support grouping. We use a similar approach to pie charts.\n const pointRect = getSolidGaugeTargetPlacement(point);\n this.targetTrack.rect(this.context.chart().renderer, { ...pointRect, ...this.commonTrackAttrs });\n };\n\n private get commonTrackAttrs() {\n return { fill: \"transparent\", zIndex: -1, \"pointer-events\": \"none\", direction: this.direction };\n }\n\n // We compute the direction from the chart container and then explicitly set it to the track\n // elements, as otherwise the direction check done for track elements always results to \"ltr\".\n private get direction() {\n const isRtl = getIsRtl(this.context.chart().container.parentElement);\n return isRtl ? \"rtl\" : \"ltr\";\n }\n}\n\n// A helper class to draw the cursor elements (include cursor line and matched points markers).\nclass HighlightCursorCartesian {\n private lineElement = new SVGRendererSingle();\n private markerElementsPool = new SVGRendererPool();\n\n public create(target: Rect, point: null | Highcharts.Point, group: readonly Highcharts.Point[], showLine: boolean) {\n this.hide();\n if (!group[0]?.series) {\n return;\n }\n\n const chart = group[0]?.series.chart;\n if (!chart) {\n return;\n }\n if (showLine) {\n // The cursor line is rendered orthogonally to the x axis (when the chart is inverted, the line is rendered horizontally).\n // The line is 1px thick, and is rendered through the center of the target's rect.\n const lineAttrs = chart.inverted\n ? {\n x: chart.plotLeft,\n y: chart.plotTop + target.y - target.height - 1,\n width: chart.plotWidth,\n height: 1,\n }\n : {\n x: target.x + target.width / 2,\n y: chart.plotTop,\n width: 1,\n height: chart.plotHeight,\n };\n this.lineElement.rect(chart.renderer, { ...Styles.cursorLine, ...lineAttrs });\n }\n for (const p of group.filter(this.isPointEligibleForMarker)) {\n if (p.plotX !== undefined && p.plotY !== undefined) {\n const selected = p === point;\n const className = clsx(testClasses[\"highlight-marker\"], selected && testClasses[\"highlight-marker-selected\"]);\n renderMarker({ chart, pool: this.markerElementsPool, point: p, selected, className });\n }\n }\n }\n\n public hide() {\n this.lineElement.hide();\n this.markerElementsPool.hideAll();\n }\n\n public destroy() {\n this.lineElement.destroy();\n this.markerElementsPool.destroyAll();\n }\n\n private isPointEligibleForMarker = (point: Highcharts.Point) => {\n return (\n isPointVisible(point) &&\n !isXThreshold(point.series) &&\n point.series.type !== \"column\" &&\n point.series.type !== \"errorbar\" &&\n point.series.type !== \"heatmap\"\n );\n };\n}\n\nfunction getPieChartTargetPlacement(point: Highcharts.Point): Rect {\n // The pie series segments do not provide plotX, plotY to compute the tooltip placement.\n // Instead, there is a `tooltipPos` tuple, which is not covered by TS.\n // See: https://github.com/highcharts/highcharts/issues/23118.\n if (\"tooltipPos\" in point && Array.isArray(point.tooltipPos)) {\n return safeRect({ x: point.tooltipPos[0], y: point.tooltipPos[1], width: 0, height: 0 });\n }\n // We use the alternative, middle, tooltip placement as a fallback, in case the undocumented \"tooltipPos\"\n // is no longer available in the point.\n return getPieMiddlePlacement(point);\n}\n\nfunction getPieMiddlePlacement(point: Highcharts.Point): Rect {\n const chart = point.series.chart;\n const [relativeX, relativeY, relativeDiameter] = point.series.center;\n const plotLeft = chart.plotLeft;\n const plotTop = chart.plotTop;\n const centerX = plotLeft + (typeof relativeX === \"number\" ? relativeX : (relativeX / 100) * chart.plotWidth);\n const centerY = plotTop + (typeof relativeY === \"number\" ? relativeY : (relativeY / 100) * chart.plotHeight);\n const radius =\n (typeof relativeDiameter === \"number\" ? relativeDiameter : (relativeDiameter / 100) * chart.plotWidth) / 2;\n return { x: centerX, y: centerY - radius, width: 1, height: 2 * radius };\n}\n\nfunction getSolidGaugeTargetPlacement(point: Highcharts.Point): Rect {\n const chart = point.series.chart;\n return safeRect({\n x: chart.plotLeft + chart.plotWidth / 2,\n y: chart.plotTop + chart.plotHeight / 2,\n width: 0,\n height: 0,\n });\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  export var PACKAGE_SOURCE = "chart-components";
2
- export var PACKAGE_VERSION = "1.0.0 (7606a25d)";
2
+ export var PACKAGE_VERSION = "1.0.0 (6cb09717)";
3
3
  export var THEME = "open-source-visual-refresh";
4
4
  export var ALWAYS_VISUAL_REFRESH = true;
5
5
  export var SYSTEM = "core";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "PACKAGE_SOURCE": "chart-components",
3
- "PACKAGE_VERSION": "1.0.0 (7606a25d)",
3
+ "PACKAGE_VERSION": "1.0.0 (6cb09717)",
4
4
  "THEME": "open-source-visual-refresh",
5
5
  "ALWAYS_VISUAL_REFRESH": true,
6
6
  "SYSTEM": "core"
@@ -326,6 +326,7 @@ export const colorBackgroundInputDisabled: string;
326
326
  export const colorBackgroundItemSelected: string;
327
327
  export const colorBackgroundLayoutMain: string;
328
328
  export const colorBackgroundDrawer: string;
329
+ export const colorBackgroundDrawerBackdrop: string;
329
330
  export const colorBackgroundLayoutMobilePanel: string;
330
331
  export const colorBackgroundLayoutPanelContent: string;
331
332
  export const colorBackgroundLayoutPanelHover: string;
@@ -627,6 +628,9 @@ export const fontWeightHeadingS: string;
627
628
  export const fontWeightHeadingXs: string;
628
629
  export const fontWeightDisplayL: string;
629
630
  export const fontWeightHeavy: string;
631
+ export const fontWeightNormal: string;
632
+ export const fontWeightBold: string;
633
+ export const fontWeightLighter: string;
630
634
  export const letterSpacingBodyS: string;
631
635
  export const letterSpacingDisplayL: string;
632
636
  export const letterSpacingHeadingXl: string;
@@ -326,6 +326,7 @@ export var colorBackgroundInputDisabled = "var(--color-background-input-disabled
326
326
  export var colorBackgroundItemSelected = "var(--color-background-item-selected-9gppru, #f0fbff)";
327
327
  export var colorBackgroundLayoutMain = "var(--color-background-layout-main-5ilwcb, #ffffff)";
328
328
  export var colorBackgroundDrawer = "var(--color-background-drawer-5hs0eh, #ffffff)";
329
+ export var colorBackgroundDrawerBackdrop = "var(--color-background-drawer-backdrop-ducxi3, rgba(35, 43, 55, 0.7))";
329
330
  export var colorBackgroundLayoutMobilePanel = "var(--color-background-layout-mobile-panel-ed0ava, #0f141a)";
330
331
  export var colorBackgroundLayoutPanelContent = "var(--color-background-layout-panel-content-xto15e, #ffffff)";
331
332
  export var colorBackgroundLayoutPanelHover = "var(--color-background-layout-panel-hover-tguulw, #ebebf0)";
@@ -627,6 +628,9 @@ export var fontWeightHeadingS = "var(--font-weight-heading-s-lcx0ai, 700)";
627
628
  export var fontWeightHeadingXs = "var(--font-weight-heading-xs-wqqpne, 700)";
628
629
  export var fontWeightDisplayL = "var(--font-weight-display-l-h5zsi8, 700)";
629
630
  export var fontWeightHeavy = "var(--font-weight-heavy-6yh4un, 700)";
631
+ export var fontWeightNormal = "var(--font-weight-normal-cxw1m3, 400)";
632
+ export var fontWeightBold = "var(--font-weight-bold-fo1afg, 700)";
633
+ export var fontWeightLighter = "var(--font-weight-lighter-ldkoj5, 300)";
630
634
  export var letterSpacingBodyS = "var(--letter-spacing-body-s-gq78ok, 0.005em)";
631
635
  export var letterSpacingDisplayL = "var(--letter-spacing-display-l-elyyxk, -0.03em)";
632
636
  export var letterSpacingHeadingXl = "var(--letter-spacing-heading-xl-ckkb6u, -0.02em)";
@@ -1351,6 +1351,10 @@ module.exports.preset = {
1351
1351
  "light": "{colorBackgroundLayoutPanelContent}",
1352
1352
  "dark": "{colorBackgroundLayoutPanelContent}"
1353
1353
  },
1354
+ "colorBackgroundDrawerBackdrop": {
1355
+ "light": "{colorGreyOpaque70}",
1356
+ "dark": "{colorGreyOpaque70}"
1357
+ },
1354
1358
  "colorBackgroundLayoutMobilePanel": {
1355
1359
  "light": "{colorNeutral950}",
1356
1360
  "dark": "{colorNeutral950}"
@@ -2435,6 +2439,9 @@ module.exports.preset = {
2435
2439
  "fontWeightHeadingXs": "700",
2436
2440
  "fontWeightDisplayL": "700",
2437
2441
  "fontWeightHeavy": "700",
2442
+ "fontWeightNormal": "400",
2443
+ "fontWeightBold": "700",
2444
+ "fontWeightLighter": "300",
2438
2445
  "letterSpacingBodyS": "0.005em",
2439
2446
  "letterSpacingDisplayL": "-0.03em",
2440
2447
  "letterSpacingHeadingXl": "-0.02em",
@@ -3978,6 +3985,10 @@ module.exports.preset = {
3978
3985
  "light": "{colorBackgroundLayoutPanelContent}",
3979
3986
  "dark": "{colorBackgroundLayoutPanelContent}"
3980
3987
  },
3988
+ "colorBackgroundDrawerBackdrop": {
3989
+ "light": "{colorGreyOpaque70}",
3990
+ "dark": "{colorGreyOpaque70}"
3991
+ },
3981
3992
  "colorBackgroundLayoutMobilePanel": {
3982
3993
  "light": "{colorNeutral950}",
3983
3994
  "dark": "{colorNeutral950}"
@@ -5443,6 +5454,10 @@ module.exports.preset = {
5443
5454
  "light": "{colorBackgroundLayoutPanelContent}",
5444
5455
  "dark": "{colorBackgroundLayoutPanelContent}"
5445
5456
  },
5457
+ "colorBackgroundDrawerBackdrop": {
5458
+ "light": "{colorGreyOpaque70}",
5459
+ "dark": "{colorGreyOpaque70}"
5460
+ },
5446
5461
  "colorBackgroundLayoutMobilePanel": {
5447
5462
  "light": "{colorNeutral950}",
5448
5463
  "dark": "{colorNeutral950}"
@@ -6836,6 +6851,10 @@ module.exports.preset = {
6836
6851
  "light": "{colorBackgroundLayoutPanelContent}",
6837
6852
  "dark": "{colorBackgroundLayoutPanelContent}"
6838
6853
  },
6854
+ "colorBackgroundDrawerBackdrop": {
6855
+ "light": "{colorGreyOpaque70}",
6856
+ "dark": "{colorGreyOpaque70}"
6857
+ },
6839
6858
  "colorBackgroundLayoutMobilePanel": {
6840
6859
  "light": "{colorNeutral950}",
6841
6860
  "dark": "{colorNeutral950}"
@@ -8114,6 +8133,10 @@ module.exports.preset = {
8114
8133
  "light": "{colorBackgroundLayoutPanelContent}",
8115
8134
  "dark": "{colorBackgroundLayoutPanelContent}"
8116
8135
  },
8136
+ "colorBackgroundDrawerBackdrop": {
8137
+ "light": "{colorGreyOpaque70}",
8138
+ "dark": "{colorGreyOpaque70}"
8139
+ },
8117
8140
  "colorBackgroundLayoutMobilePanel": {
8118
8141
  "light": "{colorNeutral950}",
8119
8142
  "dark": "{colorNeutral950}"
@@ -9392,6 +9415,10 @@ module.exports.preset = {
9392
9415
  "light": "{colorBackgroundLayoutPanelContent}",
9393
9416
  "dark": "{colorBackgroundLayoutPanelContent}"
9394
9417
  },
9418
+ "colorBackgroundDrawerBackdrop": {
9419
+ "light": "{colorGreyOpaque70}",
9420
+ "dark": "{colorGreyOpaque70}"
9421
+ },
9395
9422
  "colorBackgroundLayoutMobilePanel": {
9396
9423
  "light": "{colorNeutral950}",
9397
9424
  "dark": "{colorNeutral950}"
@@ -10672,6 +10699,10 @@ module.exports.preset = {
10672
10699
  "light": "{colorBackgroundLayoutPanelContent}",
10673
10700
  "dark": "{colorBackgroundLayoutPanelContent}"
10674
10701
  },
10702
+ "colorBackgroundDrawerBackdrop": {
10703
+ "light": "{colorGreyOpaque70}",
10704
+ "dark": "{colorGreyOpaque70}"
10705
+ },
10675
10706
  "colorBackgroundLayoutMobilePanel": {
10676
10707
  "light": "{colorNeutral950}",
10677
10708
  "dark": "{colorNeutral950}"
@@ -12058,6 +12089,7 @@ module.exports.preset = {
12058
12089
  "colorBackgroundItemSelected": "color",
12059
12090
  "colorBackgroundLayoutMain": "color",
12060
12091
  "colorBackgroundDrawer": "color",
12092
+ "colorBackgroundDrawerBackdrop": "color",
12061
12093
  "colorBackgroundLayoutMobilePanel": "color",
12062
12094
  "colorBackgroundLayoutPanelContent": "color",
12063
12095
  "colorBackgroundLayoutPanelHover": "color",
@@ -12996,6 +13028,10 @@ module.exports.preset = {
12996
13028
  "fontWeightHeadingS",
12997
13029
  "fontWeightHeadingXs",
12998
13030
  "fontWeightDisplayL",
13031
+ "fontWeightHeavy",
13032
+ "fontWeightNormal",
13033
+ "fontWeightBold",
13034
+ "fontWeightLighter",
12999
13035
  "letterSpacingDisplayL",
13000
13036
  "letterSpacingHeadingXl",
13001
13037
  "letterSpacingHeadingL",
@@ -13432,6 +13468,10 @@ module.exports.preset = {
13432
13468
  "fontWeightHeadingS",
13433
13469
  "fontWeightHeadingXs",
13434
13470
  "fontWeightDisplayL",
13471
+ "fontWeightHeavy",
13472
+ "fontWeightNormal",
13473
+ "fontWeightBold",
13474
+ "fontWeightLighter",
13435
13475
  "letterSpacingDisplayL",
13436
13476
  "letterSpacingHeadingXl",
13437
13477
  "letterSpacingHeadingL",
@@ -13865,6 +13905,7 @@ module.exports.preset = {
13865
13905
  "colorBackgroundItemSelected": "color-background-item-selected",
13866
13906
  "colorBackgroundLayoutMain": "color-background-layout-main",
13867
13907
  "colorBackgroundDrawer": "color-background-drawer",
13908
+ "colorBackgroundDrawerBackdrop": "color-background-drawer-backdrop",
13868
13909
  "colorBackgroundLayoutMobilePanel": "color-background-layout-mobile-panel",
13869
13910
  "colorBackgroundLayoutPanelContent": "color-background-layout-panel-content",
13870
13911
  "colorBackgroundLayoutPanelHover": "color-background-layout-panel-hover",
@@ -14166,6 +14207,9 @@ module.exports.preset = {
14166
14207
  "fontWeightHeadingXs": "font-weight-heading-xs",
14167
14208
  "fontWeightDisplayL": "font-weight-display-l",
14168
14209
  "fontWeightHeavy": "font-weight-heavy",
14210
+ "fontWeightNormal": "font-weight-normal",
14211
+ "fontWeightBold": "font-weight-bold",
14212
+ "fontWeightLighter": "font-weight-lighter",
14169
14213
  "letterSpacingBodyS": "letter-spacing-body-s",
14170
14214
  "letterSpacingDisplayL": "letter-spacing-display-l",
14171
14215
  "letterSpacingHeadingXl": "letter-spacing-heading-xl",
@@ -14765,6 +14809,7 @@ module.exports.preset = {
14765
14809
  "colorBackgroundItemSelected": "--color-background-item-selected-9gppru",
14766
14810
  "colorBackgroundLayoutMain": "--color-background-layout-main-5ilwcb",
14767
14811
  "colorBackgroundDrawer": "--color-background-drawer-5hs0eh",
14812
+ "colorBackgroundDrawerBackdrop": "--color-background-drawer-backdrop-ducxi3",
14768
14813
  "colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-ed0ava",
14769
14814
  "colorBackgroundLayoutPanelContent": "--color-background-layout-panel-content-xto15e",
14770
14815
  "colorBackgroundLayoutPanelHover": "--color-background-layout-panel-hover-tguulw",
@@ -15066,6 +15111,9 @@ module.exports.preset = {
15066
15111
  "fontWeightHeadingXs": "--font-weight-heading-xs-wqqpne",
15067
15112
  "fontWeightDisplayL": "--font-weight-display-l-h5zsi8",
15068
15113
  "fontWeightHeavy": "--font-weight-heavy-6yh4un",
15114
+ "fontWeightNormal": "--font-weight-normal-cxw1m3",
15115
+ "fontWeightBold": "--font-weight-bold-fo1afg",
15116
+ "fontWeightLighter": "--font-weight-lighter-ldkoj5",
15069
15117
  "letterSpacingBodyS": "--letter-spacing-body-s-gq78ok",
15070
15118
  "letterSpacingDisplayL": "--letter-spacing-display-l-elyyxk",
15071
15119
  "letterSpacingHeadingXl": "--letter-spacing-heading-xl-ckkb6u",
@@ -274,6 +274,10 @@ export declare interface TypedOverride {
274
274
  fontWeightHeadingS?: GlobalValue;
275
275
  fontWeightHeadingXs?: GlobalValue;
276
276
  fontWeightDisplayL?: GlobalValue;
277
+ fontWeightHeavy?: GlobalValue;
278
+ fontWeightNormal?: GlobalValue;
279
+ fontWeightBold?: GlobalValue;
280
+ fontWeightLighter?: GlobalValue;
277
281
  letterSpacingDisplayL?: GlobalValue;
278
282
  letterSpacingHeadingXl?: GlobalValue;
279
283
  letterSpacingHeadingL?: GlobalValue;
@@ -614,6 +618,10 @@ export declare interface TypedOverride {
614
618
  fontWeightHeadingS?: GlobalValue;
615
619
  fontWeightHeadingXs?: GlobalValue;
616
620
  fontWeightDisplayL?: GlobalValue;
621
+ fontWeightHeavy?: GlobalValue;
622
+ fontWeightNormal?: GlobalValue;
623
+ fontWeightBold?: GlobalValue;
624
+ fontWeightLighter?: GlobalValue;
617
625
  letterSpacingDisplayL?: GlobalValue;
618
626
  letterSpacingHeadingXl?: GlobalValue;
619
627
  letterSpacingHeadingL?: GlobalValue;
@@ -954,6 +962,10 @@ export declare interface TypedOverride {
954
962
  fontWeightHeadingS?: GlobalValue;
955
963
  fontWeightHeadingXs?: GlobalValue;
956
964
  fontWeightDisplayL?: GlobalValue;
965
+ fontWeightHeavy?: GlobalValue;
966
+ fontWeightNormal?: GlobalValue;
967
+ fontWeightBold?: GlobalValue;
968
+ fontWeightLighter?: GlobalValue;
957
969
  letterSpacingDisplayL?: GlobalValue;
958
970
  letterSpacingHeadingXl?: GlobalValue;
959
971
  letterSpacingHeadingL?: GlobalValue;
@@ -1294,6 +1306,10 @@ export declare interface TypedOverride {
1294
1306
  fontWeightHeadingS?: GlobalValue;
1295
1307
  fontWeightHeadingXs?: GlobalValue;
1296
1308
  fontWeightDisplayL?: GlobalValue;
1309
+ fontWeightHeavy?: GlobalValue;
1310
+ fontWeightNormal?: GlobalValue;
1311
+ fontWeightBold?: GlobalValue;
1312
+ fontWeightLighter?: GlobalValue;
1297
1313
  letterSpacingDisplayL?: GlobalValue;
1298
1314
  letterSpacingHeadingXl?: GlobalValue;
1299
1315
  letterSpacingHeadingL?: GlobalValue;
@@ -1634,6 +1650,10 @@ export declare interface TypedOverride {
1634
1650
  fontWeightHeadingS?: GlobalValue;
1635
1651
  fontWeightHeadingXs?: GlobalValue;
1636
1652
  fontWeightDisplayL?: GlobalValue;
1653
+ fontWeightHeavy?: GlobalValue;
1654
+ fontWeightNormal?: GlobalValue;
1655
+ fontWeightBold?: GlobalValue;
1656
+ fontWeightLighter?: GlobalValue;
1637
1657
  letterSpacingDisplayL?: GlobalValue;
1638
1658
  letterSpacingHeadingXl?: GlobalValue;
1639
1659
  letterSpacingHeadingL?: GlobalValue;
@@ -1974,6 +1994,10 @@ export declare interface TypedOverride {
1974
1994
  fontWeightHeadingS?: GlobalValue;
1975
1995
  fontWeightHeadingXs?: GlobalValue;
1976
1996
  fontWeightDisplayL?: GlobalValue;
1997
+ fontWeightHeavy?: GlobalValue;
1998
+ fontWeightNormal?: GlobalValue;
1999
+ fontWeightBold?: GlobalValue;
2000
+ fontWeightLighter?: GlobalValue;
1977
2001
  letterSpacingDisplayL?: GlobalValue;
1978
2002
  letterSpacingHeadingXl?: GlobalValue;
1979
2003
  letterSpacingHeadingL?: GlobalValue;
@@ -2314,6 +2338,10 @@ export declare interface TypedOverride {
2314
2338
  fontWeightHeadingS?: GlobalValue;
2315
2339
  fontWeightHeadingXs?: GlobalValue;
2316
2340
  fontWeightDisplayL?: GlobalValue;
2341
+ fontWeightHeavy?: GlobalValue;
2342
+ fontWeightNormal?: GlobalValue;
2343
+ fontWeightBold?: GlobalValue;
2344
+ fontWeightLighter?: GlobalValue;
2317
2345
  letterSpacingDisplayL?: GlobalValue;
2318
2346
  letterSpacingHeadingXl?: GlobalValue;
2319
2347
  letterSpacingHeadingL?: GlobalValue;
@@ -2654,6 +2682,10 @@ export declare interface TypedOverride {
2654
2682
  fontWeightHeadingS?: GlobalValue;
2655
2683
  fontWeightHeadingXs?: GlobalValue;
2656
2684
  fontWeightDisplayL?: GlobalValue;
2685
+ fontWeightHeavy?: GlobalValue;
2686
+ fontWeightNormal?: GlobalValue;
2687
+ fontWeightBold?: GlobalValue;
2688
+ fontWeightLighter?: GlobalValue;
2657
2689
  letterSpacingDisplayL?: GlobalValue;
2658
2690
  letterSpacingHeadingXl?: GlobalValue;
2659
2691
  letterSpacingHeadingL?: GlobalValue;
@@ -2994,6 +3026,10 @@ export declare interface TypedOverride {
2994
3026
  fontWeightHeadingS?: GlobalValue;
2995
3027
  fontWeightHeadingXs?: GlobalValue;
2996
3028
  fontWeightDisplayL?: GlobalValue;
3029
+ fontWeightHeavy?: GlobalValue;
3030
+ fontWeightNormal?: GlobalValue;
3031
+ fontWeightBold?: GlobalValue;
3032
+ fontWeightLighter?: GlobalValue;
2997
3033
  letterSpacingDisplayL?: GlobalValue;
2998
3034
  letterSpacingHeadingXl?: GlobalValue;
2999
3035
  letterSpacingHeadingL?: GlobalValue;
@@ -274,6 +274,10 @@ export declare interface TypedOverride {
274
274
  fontWeightHeadingS?: GlobalValue;
275
275
  fontWeightHeadingXs?: GlobalValue;
276
276
  fontWeightDisplayL?: GlobalValue;
277
+ fontWeightHeavy?: GlobalValue;
278
+ fontWeightNormal?: GlobalValue;
279
+ fontWeightBold?: GlobalValue;
280
+ fontWeightLighter?: GlobalValue;
277
281
  letterSpacingDisplayL?: GlobalValue;
278
282
  letterSpacingHeadingXl?: GlobalValue;
279
283
  letterSpacingHeadingL?: GlobalValue;
@@ -614,6 +618,10 @@ export declare interface TypedOverride {
614
618
  fontWeightHeadingS?: GlobalValue;
615
619
  fontWeightHeadingXs?: GlobalValue;
616
620
  fontWeightDisplayL?: GlobalValue;
621
+ fontWeightHeavy?: GlobalValue;
622
+ fontWeightNormal?: GlobalValue;
623
+ fontWeightBold?: GlobalValue;
624
+ fontWeightLighter?: GlobalValue;
617
625
  letterSpacingDisplayL?: GlobalValue;
618
626
  letterSpacingHeadingXl?: GlobalValue;
619
627
  letterSpacingHeadingL?: GlobalValue;
@@ -954,6 +962,10 @@ export declare interface TypedOverride {
954
962
  fontWeightHeadingS?: GlobalValue;
955
963
  fontWeightHeadingXs?: GlobalValue;
956
964
  fontWeightDisplayL?: GlobalValue;
965
+ fontWeightHeavy?: GlobalValue;
966
+ fontWeightNormal?: GlobalValue;
967
+ fontWeightBold?: GlobalValue;
968
+ fontWeightLighter?: GlobalValue;
957
969
  letterSpacingDisplayL?: GlobalValue;
958
970
  letterSpacingHeadingXl?: GlobalValue;
959
971
  letterSpacingHeadingL?: GlobalValue;
@@ -1294,6 +1306,10 @@ export declare interface TypedOverride {
1294
1306
  fontWeightHeadingS?: GlobalValue;
1295
1307
  fontWeightHeadingXs?: GlobalValue;
1296
1308
  fontWeightDisplayL?: GlobalValue;
1309
+ fontWeightHeavy?: GlobalValue;
1310
+ fontWeightNormal?: GlobalValue;
1311
+ fontWeightBold?: GlobalValue;
1312
+ fontWeightLighter?: GlobalValue;
1297
1313
  letterSpacingDisplayL?: GlobalValue;
1298
1314
  letterSpacingHeadingXl?: GlobalValue;
1299
1315
  letterSpacingHeadingL?: GlobalValue;
@@ -1634,6 +1650,10 @@ export declare interface TypedOverride {
1634
1650
  fontWeightHeadingS?: GlobalValue;
1635
1651
  fontWeightHeadingXs?: GlobalValue;
1636
1652
  fontWeightDisplayL?: GlobalValue;
1653
+ fontWeightHeavy?: GlobalValue;
1654
+ fontWeightNormal?: GlobalValue;
1655
+ fontWeightBold?: GlobalValue;
1656
+ fontWeightLighter?: GlobalValue;
1637
1657
  letterSpacingDisplayL?: GlobalValue;
1638
1658
  letterSpacingHeadingXl?: GlobalValue;
1639
1659
  letterSpacingHeadingL?: GlobalValue;
@@ -1974,6 +1994,10 @@ export declare interface TypedOverride {
1974
1994
  fontWeightHeadingS?: GlobalValue;
1975
1995
  fontWeightHeadingXs?: GlobalValue;
1976
1996
  fontWeightDisplayL?: GlobalValue;
1997
+ fontWeightHeavy?: GlobalValue;
1998
+ fontWeightNormal?: GlobalValue;
1999
+ fontWeightBold?: GlobalValue;
2000
+ fontWeightLighter?: GlobalValue;
1977
2001
  letterSpacingDisplayL?: GlobalValue;
1978
2002
  letterSpacingHeadingXl?: GlobalValue;
1979
2003
  letterSpacingHeadingL?: GlobalValue;
@@ -2314,6 +2338,10 @@ export declare interface TypedOverride {
2314
2338
  fontWeightHeadingS?: GlobalValue;
2315
2339
  fontWeightHeadingXs?: GlobalValue;
2316
2340
  fontWeightDisplayL?: GlobalValue;
2341
+ fontWeightHeavy?: GlobalValue;
2342
+ fontWeightNormal?: GlobalValue;
2343
+ fontWeightBold?: GlobalValue;
2344
+ fontWeightLighter?: GlobalValue;
2317
2345
  letterSpacingDisplayL?: GlobalValue;
2318
2346
  letterSpacingHeadingXl?: GlobalValue;
2319
2347
  letterSpacingHeadingL?: GlobalValue;
@@ -2654,6 +2682,10 @@ export declare interface TypedOverride {
2654
2682
  fontWeightHeadingS?: GlobalValue;
2655
2683
  fontWeightHeadingXs?: GlobalValue;
2656
2684
  fontWeightDisplayL?: GlobalValue;
2685
+ fontWeightHeavy?: GlobalValue;
2686
+ fontWeightNormal?: GlobalValue;
2687
+ fontWeightBold?: GlobalValue;
2688
+ fontWeightLighter?: GlobalValue;
2657
2689
  letterSpacingDisplayL?: GlobalValue;
2658
2690
  letterSpacingHeadingXl?: GlobalValue;
2659
2691
  letterSpacingHeadingL?: GlobalValue;
@@ -2994,6 +3026,10 @@ export declare interface TypedOverride {
2994
3026
  fontWeightHeadingS?: GlobalValue;
2995
3027
  fontWeightHeadingXs?: GlobalValue;
2996
3028
  fontWeightDisplayL?: GlobalValue;
3029
+ fontWeightHeavy?: GlobalValue;
3030
+ fontWeightNormal?: GlobalValue;
3031
+ fontWeightBold?: GlobalValue;
3032
+ fontWeightLighter?: GlobalValue;
2997
3033
  letterSpacingDisplayL?: GlobalValue;
2998
3034
  letterSpacingHeadingXl?: GlobalValue;
2999
3035
  letterSpacingHeadingL?: GlobalValue;
@@ -1351,6 +1351,10 @@ export var preset = {
1351
1351
  "light": "{colorBackgroundLayoutPanelContent}",
1352
1352
  "dark": "{colorBackgroundLayoutPanelContent}"
1353
1353
  },
1354
+ "colorBackgroundDrawerBackdrop": {
1355
+ "light": "{colorGreyOpaque70}",
1356
+ "dark": "{colorGreyOpaque70}"
1357
+ },
1354
1358
  "colorBackgroundLayoutMobilePanel": {
1355
1359
  "light": "{colorNeutral950}",
1356
1360
  "dark": "{colorNeutral950}"
@@ -2435,6 +2439,9 @@ export var preset = {
2435
2439
  "fontWeightHeadingXs": "700",
2436
2440
  "fontWeightDisplayL": "700",
2437
2441
  "fontWeightHeavy": "700",
2442
+ "fontWeightNormal": "400",
2443
+ "fontWeightBold": "700",
2444
+ "fontWeightLighter": "300",
2438
2445
  "letterSpacingBodyS": "0.005em",
2439
2446
  "letterSpacingDisplayL": "-0.03em",
2440
2447
  "letterSpacingHeadingXl": "-0.02em",
@@ -3978,6 +3985,10 @@ export var preset = {
3978
3985
  "light": "{colorBackgroundLayoutPanelContent}",
3979
3986
  "dark": "{colorBackgroundLayoutPanelContent}"
3980
3987
  },
3988
+ "colorBackgroundDrawerBackdrop": {
3989
+ "light": "{colorGreyOpaque70}",
3990
+ "dark": "{colorGreyOpaque70}"
3991
+ },
3981
3992
  "colorBackgroundLayoutMobilePanel": {
3982
3993
  "light": "{colorNeutral950}",
3983
3994
  "dark": "{colorNeutral950}"
@@ -5443,6 +5454,10 @@ export var preset = {
5443
5454
  "light": "{colorBackgroundLayoutPanelContent}",
5444
5455
  "dark": "{colorBackgroundLayoutPanelContent}"
5445
5456
  },
5457
+ "colorBackgroundDrawerBackdrop": {
5458
+ "light": "{colorGreyOpaque70}",
5459
+ "dark": "{colorGreyOpaque70}"
5460
+ },
5446
5461
  "colorBackgroundLayoutMobilePanel": {
5447
5462
  "light": "{colorNeutral950}",
5448
5463
  "dark": "{colorNeutral950}"
@@ -6836,6 +6851,10 @@ export var preset = {
6836
6851
  "light": "{colorBackgroundLayoutPanelContent}",
6837
6852
  "dark": "{colorBackgroundLayoutPanelContent}"
6838
6853
  },
6854
+ "colorBackgroundDrawerBackdrop": {
6855
+ "light": "{colorGreyOpaque70}",
6856
+ "dark": "{colorGreyOpaque70}"
6857
+ },
6839
6858
  "colorBackgroundLayoutMobilePanel": {
6840
6859
  "light": "{colorNeutral950}",
6841
6860
  "dark": "{colorNeutral950}"
@@ -8114,6 +8133,10 @@ export var preset = {
8114
8133
  "light": "{colorBackgroundLayoutPanelContent}",
8115
8134
  "dark": "{colorBackgroundLayoutPanelContent}"
8116
8135
  },
8136
+ "colorBackgroundDrawerBackdrop": {
8137
+ "light": "{colorGreyOpaque70}",
8138
+ "dark": "{colorGreyOpaque70}"
8139
+ },
8117
8140
  "colorBackgroundLayoutMobilePanel": {
8118
8141
  "light": "{colorNeutral950}",
8119
8142
  "dark": "{colorNeutral950}"
@@ -9392,6 +9415,10 @@ export var preset = {
9392
9415
  "light": "{colorBackgroundLayoutPanelContent}",
9393
9416
  "dark": "{colorBackgroundLayoutPanelContent}"
9394
9417
  },
9418
+ "colorBackgroundDrawerBackdrop": {
9419
+ "light": "{colorGreyOpaque70}",
9420
+ "dark": "{colorGreyOpaque70}"
9421
+ },
9395
9422
  "colorBackgroundLayoutMobilePanel": {
9396
9423
  "light": "{colorNeutral950}",
9397
9424
  "dark": "{colorNeutral950}"
@@ -10672,6 +10699,10 @@ export var preset = {
10672
10699
  "light": "{colorBackgroundLayoutPanelContent}",
10673
10700
  "dark": "{colorBackgroundLayoutPanelContent}"
10674
10701
  },
10702
+ "colorBackgroundDrawerBackdrop": {
10703
+ "light": "{colorGreyOpaque70}",
10704
+ "dark": "{colorGreyOpaque70}"
10705
+ },
10675
10706
  "colorBackgroundLayoutMobilePanel": {
10676
10707
  "light": "{colorNeutral950}",
10677
10708
  "dark": "{colorNeutral950}"
@@ -12058,6 +12089,7 @@ export var preset = {
12058
12089
  "colorBackgroundItemSelected": "color",
12059
12090
  "colorBackgroundLayoutMain": "color",
12060
12091
  "colorBackgroundDrawer": "color",
12092
+ "colorBackgroundDrawerBackdrop": "color",
12061
12093
  "colorBackgroundLayoutMobilePanel": "color",
12062
12094
  "colorBackgroundLayoutPanelContent": "color",
12063
12095
  "colorBackgroundLayoutPanelHover": "color",
@@ -12996,6 +13028,10 @@ export var preset = {
12996
13028
  "fontWeightHeadingS",
12997
13029
  "fontWeightHeadingXs",
12998
13030
  "fontWeightDisplayL",
13031
+ "fontWeightHeavy",
13032
+ "fontWeightNormal",
13033
+ "fontWeightBold",
13034
+ "fontWeightLighter",
12999
13035
  "letterSpacingDisplayL",
13000
13036
  "letterSpacingHeadingXl",
13001
13037
  "letterSpacingHeadingL",
@@ -13432,6 +13468,10 @@ export var preset = {
13432
13468
  "fontWeightHeadingS",
13433
13469
  "fontWeightHeadingXs",
13434
13470
  "fontWeightDisplayL",
13471
+ "fontWeightHeavy",
13472
+ "fontWeightNormal",
13473
+ "fontWeightBold",
13474
+ "fontWeightLighter",
13435
13475
  "letterSpacingDisplayL",
13436
13476
  "letterSpacingHeadingXl",
13437
13477
  "letterSpacingHeadingL",
@@ -13865,6 +13905,7 @@ export var preset = {
13865
13905
  "colorBackgroundItemSelected": "color-background-item-selected",
13866
13906
  "colorBackgroundLayoutMain": "color-background-layout-main",
13867
13907
  "colorBackgroundDrawer": "color-background-drawer",
13908
+ "colorBackgroundDrawerBackdrop": "color-background-drawer-backdrop",
13868
13909
  "colorBackgroundLayoutMobilePanel": "color-background-layout-mobile-panel",
13869
13910
  "colorBackgroundLayoutPanelContent": "color-background-layout-panel-content",
13870
13911
  "colorBackgroundLayoutPanelHover": "color-background-layout-panel-hover",
@@ -14166,6 +14207,9 @@ export var preset = {
14166
14207
  "fontWeightHeadingXs": "font-weight-heading-xs",
14167
14208
  "fontWeightDisplayL": "font-weight-display-l",
14168
14209
  "fontWeightHeavy": "font-weight-heavy",
14210
+ "fontWeightNormal": "font-weight-normal",
14211
+ "fontWeightBold": "font-weight-bold",
14212
+ "fontWeightLighter": "font-weight-lighter",
14169
14213
  "letterSpacingBodyS": "letter-spacing-body-s",
14170
14214
  "letterSpacingDisplayL": "letter-spacing-display-l",
14171
14215
  "letterSpacingHeadingXl": "letter-spacing-heading-xl",
@@ -14765,6 +14809,7 @@ export var preset = {
14765
14809
  "colorBackgroundItemSelected": "--color-background-item-selected-9gppru",
14766
14810
  "colorBackgroundLayoutMain": "--color-background-layout-main-5ilwcb",
14767
14811
  "colorBackgroundDrawer": "--color-background-drawer-5hs0eh",
14812
+ "colorBackgroundDrawerBackdrop": "--color-background-drawer-backdrop-ducxi3",
14768
14813
  "colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-ed0ava",
14769
14814
  "colorBackgroundLayoutPanelContent": "--color-background-layout-panel-content-xto15e",
14770
14815
  "colorBackgroundLayoutPanelHover": "--color-background-layout-panel-hover-tguulw",
@@ -15066,6 +15111,9 @@ export var preset = {
15066
15111
  "fontWeightHeadingXs": "--font-weight-heading-xs-wqqpne",
15067
15112
  "fontWeightDisplayL": "--font-weight-display-l-h5zsi8",
15068
15113
  "fontWeightHeavy": "--font-weight-heavy-6yh4un",
15114
+ "fontWeightNormal": "--font-weight-normal-cxw1m3",
15115
+ "fontWeightBold": "--font-weight-bold-fo1afg",
15116
+ "fontWeightLighter": "--font-weight-lighter-ldkoj5",
15069
15117
  "letterSpacingBodyS": "--letter-spacing-body-s-gq78ok",
15070
15118
  "letterSpacingDisplayL": "--letter-spacing-display-l-elyyxk",
15071
15119
  "letterSpacingHeadingXl": "--letter-spacing-heading-xl-ckkb6u",
@@ -1,3 +1,3 @@
1
1
  {
2
- "commit": "7606a25d1a6d699fc1963e79a21ebd5789636211"
2
+ "commit": "6cb09717ca2c17818bffa1f89437d320ebacf4d3"
3
3
  }
@@ -9,6 +9,7 @@
9
9
  */
10
10
  export function getChartSeries(chart) {
11
11
  var _a, _b;
12
+ // eslint-disable-next-line no-restricted-syntax -- This is the safe wrapper itself.
12
13
  return (_b = (_a = chart.series) === null || _a === void 0 ? void 0 : _a.filter((s) => !s.options.isInternal)) !== null && _b !== void 0 ? _b : [];
13
14
  }
14
15
  /**
@@ -50,6 +51,7 @@ export function isPointVisible(point) {
50
51
  * can cause a crash if accessing point's properties without checking).
51
52
  */
52
53
  export const getSeriesData = (series, options = {}) => {
54
+ // eslint-disable-next-line no-restricted-syntax -- This is the safe wrapper itself.
53
55
  return series.data.filter((p) => (options.includeHiddenPoints ? isPointValid(p) : isPointVisible(p)));
54
56
  };
55
57
  //# sourceMappingURL=highcharts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"highcharts.js","sourceRoot":"","sources":["../../../../src/internal/utils/highcharts.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAoBtC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,KAAgB;;IAC7C,OAAO,MAAA,MAAC,KAAe,CAAC,MAAM,0CAAE,MAAM,CAAC,CAAC,CAAiB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAI,EAAE,CAAC;AAC7F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAY;;IAC1C,MAAM,YAAY,GAAG,MAAA,KAAK,CAAC,MAAM,CAAC,YAAY,mCAAI,KAAK,CAAC,MAAM,CAAC;IAC/D,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAY;IAC1C,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAClE,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,OAAO,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IAC1C,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;AACtE,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAkB,EAAE,UAA6C,EAAE,EAAgB,EAAE;IACjH,OAAQ,MAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpH,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Chart, Point, Series } from \"highcharts\";\n\n// The chart.series array can include internal series, that are unwanted.\n// Use getChartSeries to access chart series instead.\nexport type SafeChart = Omit<Chart, \"series\">;\n\n// The series.data array can include missing or destroyed points.\n// Use getSeriesData to access series data points instead.\nexport type SafeSeries = Omit<Series, \"data\">;\n\n// isInternal is currently not a publicly supported prop\n// https://github.com/highcharts/highcharts/issues/23278\ninterface InternalSeries extends Series {\n options: Series[\"options\"] & {\n isInternal?: boolean;\n };\n}\n\n/**\n * Filters out internal series from chart, e.g., series from navigator, scrollbar, etc.\n * When calling chart.series, the result includes both the main chart series\n * and additional internal series (e.g., navigator series) when using Highstock navigator.\n * We are adding datapoints and doing other calculations and using Highstock version with a\n * navigator is causing duplicated unexpected datapoints and series entries in the chart.\n */\nexport function getChartSeries(chart: SafeChart): SafeSeries[] {\n return (chart as Chart).series?.filter((s: InternalSeries) => !s.options.isInternal) ?? [];\n}\n\n/**\n * Returns point series or series it is linked to.\n */\nexport function getMasterSeries(point: Point): SafeSeries {\n const masterSeries = point.series.linkedParent ?? point.series;\n return masterSeries;\n}\n\n/**\n * Returns point series and all series linked to it.\n */\nexport function getLinkedSeries(point: Point): SafeSeries[] {\n const masterSeries = getMasterSeries(point);\n const linkedSeries = [masterSeries, ...masterSeries.linkedSeries];\n return linkedSeries;\n}\n\n/**\n * This method checks if the point is defined and not destroyed.\n * The point can be undefined when accessing it from series.data array.\n * The point can be destroyed by Highcharts and replaced with { destroyed: true } when\n * the actual point is removed, but a reference to it is still preserved somewhere.\n * See: https://github.com/highcharts/highcharts/issues/23175.\n */\nexport function isPointValid(point?: Point): point is Point {\n return Boolean(point && point.series);\n}\n\n/**\n * This method checks if the point is valid and also visible in the plot.\n */\nexport function isPointVisible(point?: Point) {\n return isPointValid(point) && point.visible && point.series.visible;\n}\n\n/**\n * The series may include undefined points. See: https://api.highcharts.com/class-reference/Highcharts.Series.html#data,\n * and https://github.com/highcharts/highcharts/issues/11116.\n * This can create issues when iterating over the data (using Array.filter() or Array.map() methods is safe, but index access or Array.find()\n * can cause a crash if accessing point's properties without checking).\n */\nexport const getSeriesData = (series: SafeSeries, options: { includeHiddenPoints?: boolean } = {}): Array<Point> => {\n return (series as Series).data.filter((p) => (options.includeHiddenPoints ? isPointValid(p) : isPointVisible(p)));\n};\n"]}
1
+ {"version":3,"file":"highcharts.js","sourceRoot":"","sources":["../../../../src/internal/utils/highcharts.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAoBtC;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,KAAgB;;IAC7C,oFAAoF;IACpF,OAAO,MAAA,MAAC,KAAe,CAAC,MAAM,0CAAE,MAAM,CAAC,CAAC,CAAiB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,mCAAI,EAAE,CAAC;AAC7F,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAY;;IAC1C,MAAM,YAAY,GAAG,MAAA,KAAK,CAAC,MAAM,CAAC,YAAY,mCAAI,KAAK,CAAC,MAAM,CAAC;IAC/D,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,KAAY;IAC1C,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAClE,OAAO,YAAY,CAAC;AACtB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,KAAa;IACxC,OAAO,OAAO,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;AACxC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,KAAa;IAC1C,OAAO,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;AACtE,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,MAAkB,EAAE,UAA6C,EAAE,EAAgB,EAAE;IACjH,oFAAoF;IACpF,OAAQ,MAAiB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpH,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Chart, Point, Series } from \"highcharts\";\n\n// The chart.series array can include internal series, that are unwanted.\n// Use getChartSeries to access chart series instead.\nexport type SafeChart = Omit<Chart, \"series\">;\n\n// The series.data array can include missing or destroyed points.\n// Use getSeriesData to access series data points instead.\nexport type SafeSeries = Omit<Series, \"data\">;\n\n// isInternal is currently not a publicly supported prop\n// https://github.com/highcharts/highcharts/issues/23278\ninterface InternalSeries extends Series {\n options: Series[\"options\"] & {\n isInternal?: boolean;\n };\n}\n\n/**\n * Filters out internal series from chart, e.g., series from navigator, scrollbar, etc.\n * When calling chart.series, the result includes both the main chart series\n * and additional internal series (e.g., navigator series) when using Highstock navigator.\n * We are adding datapoints and doing other calculations and using Highstock version with a\n * navigator is causing duplicated unexpected datapoints and series entries in the chart.\n */\nexport function getChartSeries(chart: SafeChart): SafeSeries[] {\n // eslint-disable-next-line no-restricted-syntax -- This is the safe wrapper itself.\n return (chart as Chart).series?.filter((s: InternalSeries) => !s.options.isInternal) ?? [];\n}\n\n/**\n * Returns point series or series it is linked to.\n */\nexport function getMasterSeries(point: Point): SafeSeries {\n const masterSeries = point.series.linkedParent ?? point.series;\n return masterSeries;\n}\n\n/**\n * Returns point series and all series linked to it.\n */\nexport function getLinkedSeries(point: Point): SafeSeries[] {\n const masterSeries = getMasterSeries(point);\n const linkedSeries = [masterSeries, ...masterSeries.linkedSeries];\n return linkedSeries;\n}\n\n/**\n * This method checks if the point is defined and not destroyed.\n * The point can be undefined when accessing it from series.data array.\n * The point can be destroyed by Highcharts and replaced with { destroyed: true } when\n * the actual point is removed, but a reference to it is still preserved somewhere.\n * See: https://github.com/highcharts/highcharts/issues/23175.\n */\nexport function isPointValid(point?: Point): point is Point {\n return Boolean(point && point.series);\n}\n\n/**\n * This method checks if the point is valid and also visible in the plot.\n */\nexport function isPointVisible(point?: Point) {\n return isPointValid(point) && point.visible && point.series.visible;\n}\n\n/**\n * The series may include undefined points. See: https://api.highcharts.com/class-reference/Highcharts.Series.html#data,\n * and https://github.com/highcharts/highcharts/issues/11116.\n * This can create issues when iterating over the data (using Array.filter() or Array.map() methods is safe, but index access or Array.find()\n * can cause a crash if accessing point's properties without checking).\n */\nexport const getSeriesData = (series: SafeSeries, options: { includeHiddenPoints?: boolean } = {}): Array<Point> => {\n // eslint-disable-next-line no-restricted-syntax -- This is the safe wrapper itself.\n return (series as Series).data.filter((p) => (options.includeHiddenPoints ? isPointValid(p) : isPointVisible(p)));\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudscape-design/chart-components",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cloudscape-design/chart-components.git"