@cloudscape-design/chart-components 1.0.87 → 1.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/chart-api/chart-extra-axis-titles.js +2 -2
- package/core/chart-api/chart-extra-axis-titles.js.map +1 -1
- package/core/chart-api/chart-extra-context.d.ts +5 -4
- package/core/chart-api/chart-extra-context.js +5 -6
- package/core/chart-api/chart-extra-context.js.map +1 -1
- package/core/chart-api/chart-extra-highlight.js +14 -16
- package/core/chart-api/chart-extra-highlight.js.map +1 -1
- package/core/chart-api/chart-extra-legend.js +3 -3
- package/core/chart-api/chart-extra-legend.js.map +1 -1
- package/core/chart-api/chart-extra-navigation.js +1 -1
- package/core/chart-api/chart-extra-navigation.js.map +1 -1
- package/core/chart-api/chart-extra-nodata.js +3 -3
- package/core/chart-api/chart-extra-nodata.js.map +1 -1
- package/core/chart-api/chart-extra-pointer.d.ts +2 -1
- package/core/chart-api/chart-extra-pointer.js +2 -3
- package/core/chart-api/chart-extra-pointer.js.map +1 -1
- package/core/chart-api/chart-extra-tooltip.js +3 -3
- package/core/chart-api/chart-extra-tooltip.js.map +1 -1
- package/core/chart-api/index.js +4 -5
- package/core/chart-api/index.js.map +1 -1
- package/core/components/core-tooltip.js +3 -4
- package/core/components/core-tooltip.js.map +1 -1
- package/core/utils.d.ts +11 -10
- package/core/utils.js +3 -3
- package/core/utils.js.map +1 -1
- package/internal/components/series-marker/render-marker.d.ts +2 -1
- package/internal/components/series-marker/render-marker.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +5 -0
- package/internal/generated/styles/tokens.js +5 -0
- package/internal/generated/theming/index.cjs +145 -0
- package/internal/generated/theming/index.cjs.d.ts +45 -0
- package/internal/generated/theming/index.d.ts +45 -0
- package/internal/generated/theming/index.js +145 -0
- package/internal/manifest.json +1 -1
- package/internal/utils/highcharts.d.ts +40 -0
- package/internal/utils/highcharts.js +55 -0
- package/internal/utils/highcharts.js.map +1 -0
- package/package.json +1 -1
- package/pie-chart/chart-inner-area.js +5 -5
- package/pie-chart/chart-inner-area.js.map +1 -1
- package/internal/utils/chart-series.d.ts +0 -16
- package/internal/utils/chart-series.js +0 -27
- package/internal/utils/chart-series.js.map +0 -1
- package/internal/utils/series-data.d.ts +0 -3
- package/internal/utils/series-data.js +0 -18
- package/internal/utils/series-data.js.map +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
// The method checks if the point is defined and not destroyed.
|
|
4
|
-
// The point can be undefined when accessing it from series.data array.
|
|
5
|
-
// The point can be destroyed by Highcharts and replaced with { destroyed: true } when
|
|
6
|
-
// the actual point is removed, but a reference to it is still preserved somewhere.
|
|
7
|
-
// See: https://github.com/highcharts/highcharts/issues/23175.
|
|
8
|
-
export function isPointVisible(point) {
|
|
9
|
-
return point && point.visible && point.series && point.series.visible;
|
|
10
|
-
}
|
|
11
|
-
// The series.data may include undefined points. See: https://api.highcharts.com/class-reference/Highcharts.Series.html#data,
|
|
12
|
-
// and https://github.com/highcharts/highcharts/issues/11116.
|
|
13
|
-
// This can create issues when iterating over the data (using Array.filter() or Array.map() methods is safe, but index access or Array.find()
|
|
14
|
-
// can cause a crash if accessing point's properties without checking).
|
|
15
|
-
export const getSeriesData = (data) => {
|
|
16
|
-
return data.filter((d) => isPointVisible(d));
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=series-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"series-data.js","sourceRoot":"","sources":["../../../../src/internal/utils/series-data.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAItC,+DAA+D;AAC/D,uEAAuE;AACvE,sFAAsF;AACtF,mFAAmF;AACnF,8DAA8D;AAC9D,MAAM,UAAU,cAAc,CAAC,KAA8B;IAC3D,OAAO,KAAK,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;AACxE,CAAC;AAED,6HAA6H;AAC7H,6DAA6D;AAC7D,6IAA6I;AAC7I,uEAAuE;AACvE,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,IAAkB,EAAgB,EAAE;IAChE,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/C,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { Point } from \"highcharts\";\n\n// The 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.\nexport function isPointVisible(point: null | Highcharts.Point) {\n return point && point.visible && point.series && point.series.visible;\n}\n\n// The series.data 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).\nexport const getSeriesData = (data: Array<Point>): Array<Point> => {\n return data.filter((d) => isPointVisible(d));\n};\n"]}
|