@ktnpm_devops/react-component 0.13.1 → 0.15.0
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/dist/charts/GroupedBarChartCard/GroupedBarChartCard.d.ts +7 -0
- package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts +38 -0
- package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.d.ts +69 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.test.d.ts +2 -0
- package/dist/charts/GroupedBarChartCard/buildGroupedBarOption.test.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts +5 -0
- package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/index.d.ts +3 -0
- package/dist/charts/GroupedBarChartCard/index.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.d.ts +22 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.d.ts.map +1 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.test.d.ts +2 -0
- package/dist/charts/GroupedBarChartCard/pivotGroupedBars.test.d.ts.map +1 -0
- package/dist/constants.d.ts +28 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.cjs +30 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -26
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +8 -32
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +9 -33
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +2 -53
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +3 -54
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +7 -134
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +6 -133
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +64 -40
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +64 -40
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +24 -35
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +23 -34
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +21 -43
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +20 -42
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +132 -23
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +132 -23
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +46 -20
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +45 -19
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +31 -14
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +30 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +32 -53
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +32 -53
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +42 -18
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +42 -18
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +19 -10
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +19 -10
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +2 -20
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +2 -20
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +17 -11
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +17 -11
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +42 -0
- package/dist/index114.cjs.map +1 -0
- package/dist/index114.js +42 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.cjs +42 -0
- package/dist/index115.cjs.map +1 -0
- package/dist/index115.js +42 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.cjs +95 -0
- package/dist/index116.cjs.map +1 -0
- package/dist/index116.js +95 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.cjs +42 -0
- package/dist/index117.cjs.map +1 -0
- package/dist/index117.js +42 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.cjs +118 -0
- package/dist/index118.cjs.map +1 -0
- package/dist/index118.js +118 -0
- package/dist/index118.js.map +1 -0
- package/dist/index119.cjs +45 -0
- package/dist/index119.cjs.map +1 -0
- package/dist/index119.js +45 -0
- package/dist/index119.js.map +1 -0
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +87 -0
- package/dist/index120.cjs.map +1 -0
- package/dist/index120.js +87 -0
- package/dist/index120.js.map +1 -0
- package/dist/index121.cjs +27 -0
- package/dist/index121.cjs.map +1 -0
- package/dist/index121.js +27 -0
- package/dist/index121.js.map +1 -0
- package/dist/index122.cjs +1166 -0
- package/dist/index122.cjs.map +1 -0
- package/dist/index122.js +1167 -0
- package/dist/index122.js.map +1 -0
- package/dist/index123.cjs +1578 -0
- package/dist/index123.cjs.map +1 -0
- package/dist/index123.js +1579 -0
- package/dist/index123.js.map +1 -0
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +2 -2
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +3 -3
- package/dist/index22.js +3 -3
- package/dist/index23.cjs +3 -3
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +3 -3
- package/dist/index24.js +3 -3
- package/dist/index25.cjs +2 -2
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +2 -2
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +3 -3
- package/dist/index29.js +3 -3
- package/dist/index30.cjs +8 -8
- package/dist/index30.js +8 -8
- package/dist/index31.cjs +84 -76
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +86 -78
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +75 -6
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +76 -7
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +7 -130
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +9 -132
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +127 -52
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +129 -54
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +55 -37
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +55 -37
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +17 -223
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +19 -225
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +38 -34
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +39 -35
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +222 -106
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +224 -108
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +30 -64
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +31 -65
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +106 -74
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +108 -76
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +63 -54
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +64 -55
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +69 -144
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +70 -145
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +57 -96
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +59 -98
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +147 -66
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +149 -68
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +97 -7
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +99 -9
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +72 -17
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +73 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +7 -76
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +9 -78
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +17 -143
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +17 -143
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +72 -59
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +74 -61
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +136 -98
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +137 -99
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +49 -32
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +49 -32
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +105 -6
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +106 -7
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +44 -144
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +45 -145
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +6 -8
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +6 -8
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +145 -15
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +147 -17
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +7 -65
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +9 -67
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +19 -16
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +18 -15
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +67 -18
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +66 -17
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +16 -116
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +15 -115
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +4 -7
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +4 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +5 -11
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +5 -11
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +17 -18
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +16 -17
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +2 -23
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +3 -24
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +2 -35
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +3 -36
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +140 -6
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +139 -5
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +17 -2
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +17 -2
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +47 -5
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +48 -6
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +52 -19
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +52 -19
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +28 -19
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +28 -19
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +2 -17
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +3 -18
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +13 -13
- package/dist/index71.js +13 -13
- package/dist/index72.cjs +35 -2
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +36 -3
- package/dist/index72.js.map +1 -1
- package/dist/index74.cjs +15 -36
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +15 -36
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +9 -33
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +10 -34
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +16 -22
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +16 -22
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +5 -2
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +5 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +37 -16
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +38 -17
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +26 -8
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +27 -9
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +16 -64
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +16 -64
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +22 -21
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +21 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +69 -51
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +68 -50
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +7 -57
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +6 -56
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +30 -15
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +31 -16
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +35 -24
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +34 -23
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +43 -84
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +42 -83
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +24 -6
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +23 -5
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +20 -22
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +19 -21
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +14 -34
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +13 -33
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +55 -16
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +55 -16
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +25 -116
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +24 -115
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +13 -37
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +13 -37
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +47 -35
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +47 -35
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +22 -4
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +23 -5
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +15 -18
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +15 -18
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +13 -49
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +13 -49
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +22 -25
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +22 -25
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +21 -39
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +20 -38
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +21 -92
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +20 -91
- package/dist/index99.js.map +1 -1
- package/dist/primitives/MarkdownContent/MarkdownContent.d.ts +4 -0
- package/dist/primitives/MarkdownContent/MarkdownContent.d.ts.map +1 -0
- package/dist/primitives/MarkdownContent/MarkdownContent.types.d.ts +5 -0
- package/dist/primitives/MarkdownContent/MarkdownContent.types.d.ts.map +1 -0
- package/dist/primitives/MarkdownContent/index.d.ts +3 -0
- package/dist/primitives/MarkdownContent/index.d.ts.map +1 -0
- package/dist/style.css +219 -0
- package/dist/types/chart.types.d.ts +14 -0
- package/dist/types/chart.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/markdown.d.ts +3 -0
- package/dist/utils/markdown.d.ts.map +1 -0
- package/dist/utils/markdown.test.d.ts +2 -0
- package/dist/utils/markdown.test.d.ts.map +1 -0
- package/package.json +23 -4
package/dist/index98.cjs
CHANGED
|
@@ -1,42 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
weight: weightOf(existing.point) + weightOf(point)
|
|
17
|
-
};
|
|
18
|
-
});
|
|
19
|
-
return [...byPosition.values()];
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-tsCGC";
|
|
4
|
+
const input = "krc-input--stjU";
|
|
5
|
+
const label = "krc-label-KD6pE";
|
|
6
|
+
const disabled = "krc-disabled-ugpPh";
|
|
7
|
+
const sm = "krc-sm-8drDq";
|
|
8
|
+
const md = "krc-md-IG7oy";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
input,
|
|
12
|
+
label,
|
|
13
|
+
disabled,
|
|
14
|
+
sm,
|
|
15
|
+
md
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const folded = mergeCoincident ? fold(data) : data.map((point, index) => ({ point, index, count: 1 }));
|
|
29
|
-
const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;
|
|
30
|
-
const represented = points.reduce((sum, p) => sum + p.count, 0);
|
|
31
|
-
return {
|
|
32
|
-
points,
|
|
33
|
-
info: {
|
|
34
|
-
total: data.length,
|
|
35
|
-
drawn: points.length,
|
|
36
|
-
merged: represented - points.length,
|
|
37
|
-
dropped: data.length - represented
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
exports.foldPoints = foldPoints;
|
|
17
|
+
exports.default = styles;
|
|
18
|
+
exports.disabled = disabled;
|
|
19
|
+
exports.input = input;
|
|
20
|
+
exports.label = label;
|
|
21
|
+
exports.md = md;
|
|
22
|
+
exports.root = root;
|
|
23
|
+
exports.sm = sm;
|
|
42
24
|
//# sourceMappingURL=index98.cjs.map
|
package/dist/index98.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index98.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index98.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index98.js
CHANGED
|
@@ -1,42 +1,24 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
weight: weightOf(existing.point) + weightOf(point)
|
|
15
|
-
};
|
|
16
|
-
});
|
|
17
|
-
return [...byPosition.values()];
|
|
18
|
-
};
|
|
19
|
-
const sample = (points, cap) => {
|
|
20
|
-
if (cap <= 1) return points.slice(0, Math.max(cap, 0));
|
|
21
|
-
const lastIndex = points.length - 1;
|
|
22
|
-
const step = lastIndex / (cap - 1);
|
|
23
|
-
return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
|
|
24
|
-
};
|
|
25
|
-
const foldPoints = (data, maxPoints, mergeCoincident) => {
|
|
26
|
-
const folded = mergeCoincident ? fold(data) : data.map((point, index) => ({ point, index, count: 1 }));
|
|
27
|
-
const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;
|
|
28
|
-
const represented = points.reduce((sum, p) => sum + p.count, 0);
|
|
29
|
-
return {
|
|
30
|
-
points,
|
|
31
|
-
info: {
|
|
32
|
-
total: data.length,
|
|
33
|
-
drawn: points.length,
|
|
34
|
-
merged: represented - points.length,
|
|
35
|
-
dropped: data.length - represented
|
|
36
|
-
}
|
|
37
|
-
};
|
|
1
|
+
const root = "krc-root-tsCGC";
|
|
2
|
+
const input = "krc-input--stjU";
|
|
3
|
+
const label = "krc-label-KD6pE";
|
|
4
|
+
const disabled = "krc-disabled-ugpPh";
|
|
5
|
+
const sm = "krc-sm-8drDq";
|
|
6
|
+
const md = "krc-md-IG7oy";
|
|
7
|
+
const styles = {
|
|
8
|
+
root,
|
|
9
|
+
input,
|
|
10
|
+
label,
|
|
11
|
+
disabled,
|
|
12
|
+
sm,
|
|
13
|
+
md
|
|
38
14
|
};
|
|
39
15
|
export {
|
|
40
|
-
|
|
16
|
+
styles as default,
|
|
17
|
+
disabled,
|
|
18
|
+
input,
|
|
19
|
+
label,
|
|
20
|
+
md,
|
|
21
|
+
root,
|
|
22
|
+
sm
|
|
41
23
|
};
|
|
42
24
|
//# sourceMappingURL=index98.js.map
|
package/dist/index98.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index98.js","sources":[
|
|
1
|
+
{"version":3,"file":"index98.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/index99.cjs
CHANGED
|
@@ -1,95 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-p3Y59";
|
|
4
|
+
const plain = "krc-plain-VC-9I";
|
|
5
|
+
const icon = "krc-icon-ix2Mi";
|
|
6
|
+
const title = "krc-title--QtUj";
|
|
7
|
+
const description = "krc-description-Qrtj7";
|
|
8
|
+
const action = "krc-action-NBNpI";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
plain,
|
|
12
|
+
icon,
|
|
13
|
+
title,
|
|
14
|
+
description,
|
|
15
|
+
action
|
|
12
16
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
const groupByCategory = (points) => {
|
|
21
|
-
const groups = /* @__PURE__ */ new Map();
|
|
22
|
-
for (const folded of points) {
|
|
23
|
-
const key = folded.point.category ?? UNCATEGORISED_SERIES;
|
|
24
|
-
const group = groups.get(key);
|
|
25
|
-
if (group) group.push(folded);
|
|
26
|
-
else groups.set(key, [folded]);
|
|
27
|
-
}
|
|
28
|
-
return groups;
|
|
29
|
-
};
|
|
30
|
-
const toDataItem = (folded, sizeOf) => ({
|
|
31
|
-
name: folded.point.label,
|
|
32
|
-
value: [folded.point.x, folded.point.y, folded.count, folded.index],
|
|
33
|
-
symbolSize: sizeOf(folded.point.weight)
|
|
34
|
-
});
|
|
35
|
-
const buildTooltipFormatter = (config) => (params) => {
|
|
36
|
-
const { name, seriesName, value, marker } = params;
|
|
37
|
-
const [x, y, count] = value;
|
|
38
|
-
const lines = [`${marker} ${escapeHtml(name)}`];
|
|
39
|
-
lines.push(`${escapeHtml(config.xLabel ?? "x")}: ${x}`);
|
|
40
|
-
lines.push(`${escapeHtml(config.yLabel ?? "y")}: ${y}`);
|
|
41
|
-
if (seriesName !== UNCATEGORISED_SERIES) {
|
|
42
|
-
lines.push(`${escapeHtml(config.categoryLabel ?? "Category")}: ${escapeHtml(seriesName)}`);
|
|
43
|
-
}
|
|
44
|
-
if (count > 1) lines.push(`${count} points here`);
|
|
45
|
-
return lines.join("<br/>");
|
|
46
|
-
};
|
|
47
|
-
const buildScatterOption = (points, config) => {
|
|
48
|
-
const weights = points.map((p) => p.point.weight).filter((w) => w != null);
|
|
49
|
-
const minWeight = weights.length > 0 ? Math.min(...weights) : 0;
|
|
50
|
-
const maxWeight = weights.length > 0 ? Math.max(...weights) : 0;
|
|
51
|
-
const sizeOf = (weight) => weights.length === 0 ? constants.SCATTER.BASE_SYMBOL_SIZE : symbolSizeFor(weight ?? minWeight, minWeight, maxWeight);
|
|
52
|
-
const groups = groupByCategory(points);
|
|
53
|
-
const series = [...groups.entries()].map(([category, group], i) => ({
|
|
54
|
-
name: category,
|
|
55
|
-
type: "scatter",
|
|
56
|
-
data: group.map((folded) => toDataItem(folded, sizeOf)),
|
|
57
|
-
itemStyle: { color: constants.CHART_COLORS[i % constants.CHART_COLORS.length], opacity: 0.85 },
|
|
58
|
-
emphasis: { focus: "series" }
|
|
59
|
-
}));
|
|
60
|
-
return {
|
|
61
|
-
tooltip: { trigger: "item", formatter: buildTooltipFormatter(config) },
|
|
62
|
-
legend: config.showLegend ? { bottom: 0, type: "scroll" } : void 0,
|
|
63
|
-
grid: {
|
|
64
|
-
left: config.yLabel ? GRID_MARGIN.Y_NAME : GRID_MARGIN.BASE,
|
|
65
|
-
right: GRID_MARGIN.RIGHT,
|
|
66
|
-
top: GRID_MARGIN.TOP,
|
|
67
|
-
// Room for the x axis name and the legend, each only when drawn.
|
|
68
|
-
bottom: GRID_MARGIN.BASE + (config.xLabel ? GRID_MARGIN.X_NAME : 0) + (config.showLegend ? GRID_MARGIN.LEGEND : 0),
|
|
69
|
-
containLabel: true
|
|
70
|
-
},
|
|
71
|
-
xAxis: {
|
|
72
|
-
type: "value",
|
|
73
|
-
name: config.xLabel,
|
|
74
|
-
nameLocation: "middle",
|
|
75
|
-
nameGap: AXIS_NAME_GAP.X,
|
|
76
|
-
scale: true
|
|
77
|
-
},
|
|
78
|
-
yAxis: {
|
|
79
|
-
type: "value",
|
|
80
|
-
name: config.yLabel,
|
|
81
|
-
nameLocation: "middle",
|
|
82
|
-
// Without this the y name is drawn horizontally and eats the plot's width.
|
|
83
|
-
nameRotate: 90,
|
|
84
|
-
nameGap: AXIS_NAME_GAP.Y,
|
|
85
|
-
scale: true
|
|
86
|
-
},
|
|
87
|
-
dataZoom: config.enableDataZoom ? [
|
|
88
|
-
{ type: "inside", xAxisIndex: 0 },
|
|
89
|
-
{ type: "inside", yAxisIndex: 0 }
|
|
90
|
-
] : void 0,
|
|
91
|
-
series
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
exports.buildScatterOption = buildScatterOption;
|
|
17
|
+
exports.action = action;
|
|
18
|
+
exports.default = styles;
|
|
19
|
+
exports.description = description;
|
|
20
|
+
exports.icon = icon;
|
|
21
|
+
exports.plain = plain;
|
|
22
|
+
exports.root = root;
|
|
23
|
+
exports.title = title;
|
|
95
24
|
//# sourceMappingURL=index99.cjs.map
|
package/dist/index99.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index99.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index99.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index99.js
CHANGED
|
@@ -1,95 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
if (maxWeight === minWeight) return SCATTER.BASE_SYMBOL_SIZE;
|
|
15
|
-
const ratio = Math.sqrt((weight - minWeight) / (maxWeight - minWeight));
|
|
16
|
-
return SCATTER.MIN_SYMBOL_SIZE + (SCATTER.MAX_SYMBOL_SIZE - SCATTER.MIN_SYMBOL_SIZE) * ratio;
|
|
17
|
-
};
|
|
18
|
-
const groupByCategory = (points) => {
|
|
19
|
-
const groups = /* @__PURE__ */ new Map();
|
|
20
|
-
for (const folded of points) {
|
|
21
|
-
const key = folded.point.category ?? UNCATEGORISED_SERIES;
|
|
22
|
-
const group = groups.get(key);
|
|
23
|
-
if (group) group.push(folded);
|
|
24
|
-
else groups.set(key, [folded]);
|
|
25
|
-
}
|
|
26
|
-
return groups;
|
|
27
|
-
};
|
|
28
|
-
const toDataItem = (folded, sizeOf) => ({
|
|
29
|
-
name: folded.point.label,
|
|
30
|
-
value: [folded.point.x, folded.point.y, folded.count, folded.index],
|
|
31
|
-
symbolSize: sizeOf(folded.point.weight)
|
|
32
|
-
});
|
|
33
|
-
const buildTooltipFormatter = (config) => (params) => {
|
|
34
|
-
const { name, seriesName, value, marker } = params;
|
|
35
|
-
const [x, y, count] = value;
|
|
36
|
-
const lines = [`${marker} ${escapeHtml(name)}`];
|
|
37
|
-
lines.push(`${escapeHtml(config.xLabel ?? "x")}: ${x}`);
|
|
38
|
-
lines.push(`${escapeHtml(config.yLabel ?? "y")}: ${y}`);
|
|
39
|
-
if (seriesName !== UNCATEGORISED_SERIES) {
|
|
40
|
-
lines.push(`${escapeHtml(config.categoryLabel ?? "Category")}: ${escapeHtml(seriesName)}`);
|
|
41
|
-
}
|
|
42
|
-
if (count > 1) lines.push(`${count} points here`);
|
|
43
|
-
return lines.join("<br/>");
|
|
44
|
-
};
|
|
45
|
-
const buildScatterOption = (points, config) => {
|
|
46
|
-
const weights = points.map((p) => p.point.weight).filter((w) => w != null);
|
|
47
|
-
const minWeight = weights.length > 0 ? Math.min(...weights) : 0;
|
|
48
|
-
const maxWeight = weights.length > 0 ? Math.max(...weights) : 0;
|
|
49
|
-
const sizeOf = (weight) => weights.length === 0 ? SCATTER.BASE_SYMBOL_SIZE : symbolSizeFor(weight ?? minWeight, minWeight, maxWeight);
|
|
50
|
-
const groups = groupByCategory(points);
|
|
51
|
-
const series = [...groups.entries()].map(([category, group], i) => ({
|
|
52
|
-
name: category,
|
|
53
|
-
type: "scatter",
|
|
54
|
-
data: group.map((folded) => toDataItem(folded, sizeOf)),
|
|
55
|
-
itemStyle: { color: CHART_COLORS[i % CHART_COLORS.length], opacity: 0.85 },
|
|
56
|
-
emphasis: { focus: "series" }
|
|
57
|
-
}));
|
|
58
|
-
return {
|
|
59
|
-
tooltip: { trigger: "item", formatter: buildTooltipFormatter(config) },
|
|
60
|
-
legend: config.showLegend ? { bottom: 0, type: "scroll" } : void 0,
|
|
61
|
-
grid: {
|
|
62
|
-
left: config.yLabel ? GRID_MARGIN.Y_NAME : GRID_MARGIN.BASE,
|
|
63
|
-
right: GRID_MARGIN.RIGHT,
|
|
64
|
-
top: GRID_MARGIN.TOP,
|
|
65
|
-
// Room for the x axis name and the legend, each only when drawn.
|
|
66
|
-
bottom: GRID_MARGIN.BASE + (config.xLabel ? GRID_MARGIN.X_NAME : 0) + (config.showLegend ? GRID_MARGIN.LEGEND : 0),
|
|
67
|
-
containLabel: true
|
|
68
|
-
},
|
|
69
|
-
xAxis: {
|
|
70
|
-
type: "value",
|
|
71
|
-
name: config.xLabel,
|
|
72
|
-
nameLocation: "middle",
|
|
73
|
-
nameGap: AXIS_NAME_GAP.X,
|
|
74
|
-
scale: true
|
|
75
|
-
},
|
|
76
|
-
yAxis: {
|
|
77
|
-
type: "value",
|
|
78
|
-
name: config.yLabel,
|
|
79
|
-
nameLocation: "middle",
|
|
80
|
-
// Without this the y name is drawn horizontally and eats the plot's width.
|
|
81
|
-
nameRotate: 90,
|
|
82
|
-
nameGap: AXIS_NAME_GAP.Y,
|
|
83
|
-
scale: true
|
|
84
|
-
},
|
|
85
|
-
dataZoom: config.enableDataZoom ? [
|
|
86
|
-
{ type: "inside", xAxisIndex: 0 },
|
|
87
|
-
{ type: "inside", yAxisIndex: 0 }
|
|
88
|
-
] : void 0,
|
|
89
|
-
series
|
|
90
|
-
};
|
|
1
|
+
const root = "krc-root-p3Y59";
|
|
2
|
+
const plain = "krc-plain-VC-9I";
|
|
3
|
+
const icon = "krc-icon-ix2Mi";
|
|
4
|
+
const title = "krc-title--QtUj";
|
|
5
|
+
const description = "krc-description-Qrtj7";
|
|
6
|
+
const action = "krc-action-NBNpI";
|
|
7
|
+
const styles = {
|
|
8
|
+
root,
|
|
9
|
+
plain,
|
|
10
|
+
icon,
|
|
11
|
+
title,
|
|
12
|
+
description,
|
|
13
|
+
action
|
|
91
14
|
};
|
|
92
15
|
export {
|
|
93
|
-
|
|
16
|
+
action,
|
|
17
|
+
styles as default,
|
|
18
|
+
description,
|
|
19
|
+
icon,
|
|
20
|
+
plain,
|
|
21
|
+
root,
|
|
22
|
+
title
|
|
94
23
|
};
|
|
95
24
|
//# sourceMappingURL=index99.js.map
|
package/dist/index99.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index99.js","sources":[
|
|
1
|
+
{"version":3,"file":"index99.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownContent.d.ts","sourceRoot":"","sources":["../../../src/primitives/MarkdownContent/MarkdownContent.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAGpE,eAAO,MAAM,eAAe,iHAa3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownContent.types.d.ts","sourceRoot":"","sources":["../../../src/primitives/MarkdownContent/MarkdownContent.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAqB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAChF,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/primitives/MarkdownContent/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC"}
|