@ktnpm_devops/react-component 0.21.0 → 0.22.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/LICENSE +14 -15
- package/README.md +2 -1
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +1 -1
- package/dist/index100.cjs +6 -10
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +5 -9
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +13 -64
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +13 -64
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +30 -15
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +30 -15
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +28 -22
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +28 -22
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +134 -19
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +133 -18
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +40 -13
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +40 -13
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +1 -1
- package/dist/index107.cjs +16 -19
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +17 -20
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +52 -16
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +52 -16
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +116 -7
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +115 -6
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +37 -19
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +37 -19
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +18 -17
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +17 -16
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +50 -2
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +51 -3
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +35 -15
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +34 -14
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +43 -6
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +42 -5
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +24 -39
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +23 -38
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +39 -21
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +38 -20
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +9 -22
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +8 -21
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +10 -21
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +9 -20
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +20 -19
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +19 -18
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index120.cjs +14 -40
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +13 -39
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +10 -54
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +9 -53
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +70 -48
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +69 -47
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +70 -18
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +69 -17
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +16 -31
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +17 -32
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +22 -33
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +21 -32
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +69 -6
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +68 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +7 -51
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +6 -50
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +34 -10
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +35 -11
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +19 -49
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +18 -48
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.cjs +21 -75
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +20 -74
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +48 -1163
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +47 -1163
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +72 -1572
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +71 -1572
- package/dist/index132.js.map +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +2 -2
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +1 -1
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +2 -2
- package/dist/index23.js +2 -2
- package/dist/index24.cjs +2 -2
- package/dist/index24.js +2 -2
- package/dist/index25.cjs +2 -2
- package/dist/index25.js +2 -2
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +1 -1
- package/dist/index27.cjs +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +3 -3
- package/dist/index29.js +3 -3
- package/dist/index30.cjs +11 -11
- package/dist/index30.js +11 -11
- package/dist/index31.cjs +4 -4
- package/dist/index31.js +4 -4
- package/dist/index32.cjs +3 -3
- package/dist/index32.js +3 -3
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +2 -2
- package/dist/index34.js +2 -2
- package/dist/index35.cjs +2 -2
- package/dist/index35.js +2 -2
- package/dist/index36.cjs +2 -2
- package/dist/index36.js +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +3 -3
- package/dist/index38.js +3 -3
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +2 -2
- package/dist/index40.js +2 -2
- package/dist/index41.cjs +2 -2
- package/dist/index41.js +2 -2
- package/dist/index42.cjs +2 -2
- package/dist/index42.js +2 -2
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +1 -1
- package/dist/index44.cjs +2 -2
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +4 -4
- package/dist/index45.js +4 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +1 -1
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +1 -1
- package/dist/index49.cjs +2 -2
- package/dist/index49.js +2 -2
- package/dist/index50.cjs +3 -3
- package/dist/index50.js +3 -3
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.cjs +3 -3
- package/dist/index52.js +3 -3
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +1 -1
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +1 -1
- package/dist/index55.cjs +3 -3
- package/dist/index55.js +3 -3
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index58.cjs +2 -2
- package/dist/index58.js +2 -2
- package/dist/index60.cjs +21 -18
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +22 -19
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +17 -27
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +16 -26
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +6 -144
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +5 -143
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +5 -17
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +5 -17
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +145 -25
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +143 -23
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +36 -18
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +36 -18
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +20 -17
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +21 -18
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +13 -10
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +13 -10
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +19 -64
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +19 -64
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +11 -2
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +11 -2
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +24 -73
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +23 -72
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +14 -50
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +14 -50
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +2 -80
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +3 -81
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +13 -13
- package/dist/index73.js +13 -13
- package/dist/index74.cjs +19 -34
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +20 -35
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +73 -33
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +72 -32
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +29 -5
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +30 -6
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +2 -5
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +2 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +43 -25
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +44 -26
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +75 -33
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +75 -33
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +25 -134
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +24 -133
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +50 -38
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +50 -38
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +1164 -58
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +1163 -56
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +1570 -34
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +1570 -33
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +15 -92
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +14 -91
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +48 -40
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +47 -39
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +14 -112
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +14 -112
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +31 -37
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +31 -37
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +15 -22
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +14 -21
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +21 -69
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +20 -68
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +9 -7
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +8 -6
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +2 -35
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +3 -36
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +39 -35
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +38 -34
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +21 -43
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +20 -42
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +38 -23
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +38 -23
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +91 -38
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +91 -38
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +40 -9
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +39 -8
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +39 -10
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +38 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +25 -20
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +24 -19
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +43 -14
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +42 -13
- package/dist/index99.js.map +1 -1
- package/package.json +2 -2
package/dist/index91.js
CHANGED
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const header = "krc-header-poY0R";
|
|
3
|
-
const headerText = "krc-headerText-ShzOl";
|
|
4
|
-
const title = "krc-title-H3VpM";
|
|
5
|
-
const subtitle = "krc-subtitle-n6tgG";
|
|
6
|
-
const headerActions = "krc-headerActions-WY-hn";
|
|
7
|
-
const toolbar = "krc-toolbar-lMVmb";
|
|
8
|
-
const chartContainer = "krc-chartContainer-nlbUx";
|
|
9
|
-
const loading = "krc-loading-xub77";
|
|
10
|
-
const empty = "krc-empty-vJ4UM";
|
|
11
|
-
const error = "krc-error-d-7n5";
|
|
12
|
-
const retryButton = "krc-retryButton-LT8qy";
|
|
1
|
+
const root = "krc-root-pJYpn";
|
|
13
2
|
const styles = {
|
|
14
|
-
root
|
|
15
|
-
header,
|
|
16
|
-
headerText,
|
|
17
|
-
title,
|
|
18
|
-
subtitle,
|
|
19
|
-
headerActions,
|
|
20
|
-
toolbar,
|
|
21
|
-
chartContainer,
|
|
22
|
-
loading,
|
|
23
|
-
empty,
|
|
24
|
-
error,
|
|
25
|
-
retryButton
|
|
3
|
+
root
|
|
26
4
|
};
|
|
27
5
|
export {
|
|
28
|
-
chartContainer,
|
|
29
6
|
styles as default,
|
|
30
|
-
|
|
31
|
-
error,
|
|
32
|
-
header,
|
|
33
|
-
headerActions,
|
|
34
|
-
headerText,
|
|
35
|
-
loading,
|
|
36
|
-
retryButton,
|
|
37
|
-
root,
|
|
38
|
-
subtitle,
|
|
39
|
-
title,
|
|
40
|
-
toolbar
|
|
7
|
+
root
|
|
41
8
|
};
|
|
42
9
|
//# sourceMappingURL=index91.js.map
|
package/dist/index91.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index91.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index91.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index92.cjs
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-uKAJr";
|
|
4
|
+
const header = "krc-header-BWJPo";
|
|
5
|
+
const body = "krc-body-LCUxY";
|
|
6
|
+
const footer = "krc-footer-z4n8R";
|
|
7
|
+
const toggle = "krc-toggle-9T9IZ";
|
|
8
|
+
const section = "krc-section-us0Me";
|
|
9
|
+
const sectionTitle = "krc-sectionTitle-On1X-";
|
|
10
|
+
const sectionToggle = "krc-sectionToggle-eriVJ";
|
|
11
|
+
const sectionChevron = "krc-sectionChevron-cgn7M";
|
|
12
|
+
const sectionChevronOpen = "krc-sectionChevronOpen-Ja5Y3";
|
|
13
|
+
const sectionItems = "krc-sectionItems-iwvxo";
|
|
14
|
+
const collapsed = "krc-collapsed-JRXBy";
|
|
15
|
+
const styles = {
|
|
16
|
+
root,
|
|
17
|
+
header,
|
|
18
|
+
body,
|
|
19
|
+
footer,
|
|
20
|
+
toggle,
|
|
21
|
+
section,
|
|
22
|
+
sectionTitle,
|
|
23
|
+
sectionToggle,
|
|
24
|
+
sectionChevron,
|
|
25
|
+
sectionChevronOpen,
|
|
26
|
+
sectionItems,
|
|
27
|
+
collapsed
|
|
10
28
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
});
|
|
25
|
-
const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;
|
|
26
|
-
return {
|
|
27
|
-
drawn,
|
|
28
|
-
bounds: boundsOf(drawn),
|
|
29
|
-
info: {
|
|
30
|
-
total: points.length,
|
|
31
|
-
drawn: drawn.length,
|
|
32
|
-
skipped: points.length - usable.length,
|
|
33
|
-
dropped: usable.length - drawn.length
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
exports.normalizePoints = normalizePoints;
|
|
29
|
+
exports.body = body;
|
|
30
|
+
exports.collapsed = collapsed;
|
|
31
|
+
exports.default = styles;
|
|
32
|
+
exports.footer = footer;
|
|
33
|
+
exports.header = header;
|
|
34
|
+
exports.root = root;
|
|
35
|
+
exports.section = section;
|
|
36
|
+
exports.sectionChevron = sectionChevron;
|
|
37
|
+
exports.sectionChevronOpen = sectionChevronOpen;
|
|
38
|
+
exports.sectionItems = sectionItems;
|
|
39
|
+
exports.sectionTitle = sectionTitle;
|
|
40
|
+
exports.sectionToggle = sectionToggle;
|
|
41
|
+
exports.toggle = toggle;
|
|
38
42
|
//# sourceMappingURL=index92.cjs.map
|
package/dist/index92.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index92.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index92.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index92.js
CHANGED
|
@@ -1,38 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
bounds: boundsOf(drawn),
|
|
27
|
-
info: {
|
|
28
|
-
total: points.length,
|
|
29
|
-
drawn: drawn.length,
|
|
30
|
-
skipped: points.length - usable.length,
|
|
31
|
-
dropped: usable.length - drawn.length
|
|
32
|
-
}
|
|
33
|
-
};
|
|
1
|
+
const root = "krc-root-uKAJr";
|
|
2
|
+
const header = "krc-header-BWJPo";
|
|
3
|
+
const body = "krc-body-LCUxY";
|
|
4
|
+
const footer = "krc-footer-z4n8R";
|
|
5
|
+
const toggle = "krc-toggle-9T9IZ";
|
|
6
|
+
const section = "krc-section-us0Me";
|
|
7
|
+
const sectionTitle = "krc-sectionTitle-On1X-";
|
|
8
|
+
const sectionToggle = "krc-sectionToggle-eriVJ";
|
|
9
|
+
const sectionChevron = "krc-sectionChevron-cgn7M";
|
|
10
|
+
const sectionChevronOpen = "krc-sectionChevronOpen-Ja5Y3";
|
|
11
|
+
const sectionItems = "krc-sectionItems-iwvxo";
|
|
12
|
+
const collapsed = "krc-collapsed-JRXBy";
|
|
13
|
+
const styles = {
|
|
14
|
+
root,
|
|
15
|
+
header,
|
|
16
|
+
body,
|
|
17
|
+
footer,
|
|
18
|
+
toggle,
|
|
19
|
+
section,
|
|
20
|
+
sectionTitle,
|
|
21
|
+
sectionToggle,
|
|
22
|
+
sectionChevron,
|
|
23
|
+
sectionChevronOpen,
|
|
24
|
+
sectionItems,
|
|
25
|
+
collapsed
|
|
34
26
|
};
|
|
35
27
|
export {
|
|
36
|
-
|
|
28
|
+
body,
|
|
29
|
+
collapsed,
|
|
30
|
+
styles as default,
|
|
31
|
+
footer,
|
|
32
|
+
header,
|
|
33
|
+
root,
|
|
34
|
+
section,
|
|
35
|
+
sectionChevron,
|
|
36
|
+
sectionChevronOpen,
|
|
37
|
+
sectionItems,
|
|
38
|
+
sectionTitle,
|
|
39
|
+
sectionToggle,
|
|
40
|
+
toggle
|
|
37
41
|
};
|
|
38
42
|
//# sourceMappingURL=index92.js.map
|
package/dist/index92.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index92.js","sources":[
|
|
1
|
+
{"version":3,"file":"index92.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index93.cjs
CHANGED
|
@@ -1,46 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-rzEDE";
|
|
4
|
+
const sidebar = "krc-sidebar-ediN2";
|
|
5
|
+
const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
|
|
6
|
+
const main = "krc-main-E8utR";
|
|
7
|
+
const filterBar = "krc-filterBar-O8ajX";
|
|
8
|
+
const content = "krc-content-lY5l-";
|
|
9
|
+
const styles = {
|
|
10
|
+
root,
|
|
11
|
+
sidebar,
|
|
12
|
+
sidebarCollapsed,
|
|
13
|
+
main,
|
|
14
|
+
filterBar,
|
|
15
|
+
content
|
|
8
16
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const weights = points.map((p) => p.weight).filter((w) => w != null && Number.isFinite(w));
|
|
17
|
-
if (weights.length === 0) return null;
|
|
18
|
-
const min = Math.min(...weights);
|
|
19
|
-
const max = Math.max(...weights);
|
|
20
|
-
return min === max ? null : { min, max };
|
|
21
|
-
};
|
|
22
|
-
const radiusFor = (weight, scale) => {
|
|
23
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return constants.GEO_MAP.BASE_MARKER_RADIUS;
|
|
24
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
25
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
26
|
-
const minArea = constants.GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
27
|
-
const maxArea = constants.GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
28
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
29
|
-
};
|
|
30
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
31
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
32
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
33
|
-
return {
|
|
34
|
-
radius: selected ? radius + constants.GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
35
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
36
|
-
weight: selected ? constants.GEO_MAP.SELECTED_STROKE_WIDTH : constants.GEO_MAP.MARKER_STROKE_WIDTH,
|
|
37
|
-
fillColor,
|
|
38
|
-
fillOpacity: selected ? 1 : constants.GEO_MAP.MARKER_FILL_OPACITY
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
42
|
-
exports.buildCategoryColors = buildCategoryColors;
|
|
43
|
-
exports.buildLegendItems = buildLegendItems;
|
|
44
|
-
exports.buildMarkerStyle = buildMarkerStyle;
|
|
45
|
-
exports.buildWeightScale = buildWeightScale;
|
|
17
|
+
exports.content = content;
|
|
18
|
+
exports.default = styles;
|
|
19
|
+
exports.filterBar = filterBar;
|
|
20
|
+
exports.main = main;
|
|
21
|
+
exports.root = root;
|
|
22
|
+
exports.sidebar = sidebar;
|
|
23
|
+
exports.sidebarCollapsed = sidebarCollapsed;
|
|
46
24
|
//# sourceMappingURL=index93.cjs.map
|
package/dist/index93.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index93.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index93.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index93.js
CHANGED
|
@@ -1,46 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const root = "krc-root-rzEDE";
|
|
2
|
+
const sidebar = "krc-sidebar-ediN2";
|
|
3
|
+
const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
|
|
4
|
+
const main = "krc-main-E8utR";
|
|
5
|
+
const filterBar = "krc-filterBar-O8ajX";
|
|
6
|
+
const content = "krc-content-lY5l-";
|
|
7
|
+
const styles = {
|
|
8
|
+
root,
|
|
9
|
+
sidebar,
|
|
10
|
+
sidebarCollapsed,
|
|
11
|
+
main,
|
|
12
|
+
filterBar,
|
|
13
|
+
content
|
|
6
14
|
};
|
|
7
|
-
const UNCATEGORISED_COLOR = orbitTokens.brand.orange;
|
|
8
|
-
const buildCategoryColors = (points) => {
|
|
9
|
-
const categories = [...new Set(points.map((p) => p.category).filter((c) => c != null))];
|
|
10
|
-
categories.sort((a, b) => a.localeCompare(b));
|
|
11
|
-
return new Map(categories.map((category, i) => [category, CHART_COLORS[i % CHART_COLORS.length]]));
|
|
12
|
-
};
|
|
13
|
-
const buildWeightScale = (points) => {
|
|
14
|
-
const weights = points.map((p) => p.weight).filter((w) => w != null && Number.isFinite(w));
|
|
15
|
-
if (weights.length === 0) return null;
|
|
16
|
-
const min = Math.min(...weights);
|
|
17
|
-
const max = Math.max(...weights);
|
|
18
|
-
return min === max ? null : { min, max };
|
|
19
|
-
};
|
|
20
|
-
const radiusFor = (weight, scale) => {
|
|
21
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return GEO_MAP.BASE_MARKER_RADIUS;
|
|
22
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
23
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
24
|
-
const minArea = GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
25
|
-
const maxArea = GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
26
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
27
|
-
};
|
|
28
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
29
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
30
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
31
|
-
return {
|
|
32
|
-
radius: selected ? radius + GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
33
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
34
|
-
weight: selected ? GEO_MAP.SELECTED_STROKE_WIDTH : GEO_MAP.MARKER_STROKE_WIDTH,
|
|
35
|
-
fillColor,
|
|
36
|
-
fillOpacity: selected ? 1 : GEO_MAP.MARKER_FILL_OPACITY
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
40
15
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
content,
|
|
17
|
+
styles as default,
|
|
18
|
+
filterBar,
|
|
19
|
+
main,
|
|
20
|
+
root,
|
|
21
|
+
sidebar,
|
|
22
|
+
sidebarCollapsed
|
|
45
23
|
};
|
|
46
24
|
//# sourceMappingURL=index93.js.map
|
package/dist/index93.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index93.js","sources":[
|
|
1
|
+
{"version":3,"file":"index93.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/index94.cjs
CHANGED
|
@@ -1,27 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
maxZoom: constants.GEO_MAP.SINGLE_POINT_ZOOM
|
|
21
|
-
});
|
|
22
|
-
}, [map, bounds, fitBounds]);
|
|
23
|
-
return null;
|
|
3
|
+
const weightOf = (point) => point.weight ?? 1;
|
|
4
|
+
const fold = (data) => {
|
|
5
|
+
const byPosition = /* @__PURE__ */ new Map();
|
|
6
|
+
data.forEach((point, index) => {
|
|
7
|
+
const key = `${point.x}|${point.y}`;
|
|
8
|
+
const existing = byPosition.get(key);
|
|
9
|
+
if (!existing) {
|
|
10
|
+
byPosition.set(key, { point, index, count: 1 });
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
existing.count += 1;
|
|
14
|
+
existing.point = {
|
|
15
|
+
...existing.point,
|
|
16
|
+
weight: weightOf(existing.point) + weightOf(point)
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
return [...byPosition.values()];
|
|
24
20
|
};
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
const sample = (points, cap) => {
|
|
22
|
+
if (cap <= 1) return points.slice(0, Math.max(cap, 0));
|
|
23
|
+
const lastIndex = points.length - 1;
|
|
24
|
+
const step = lastIndex / (cap - 1);
|
|
25
|
+
return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
|
|
26
|
+
};
|
|
27
|
+
const foldPoints = (data, maxPoints, mergeCoincident) => {
|
|
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;
|
|
27
42
|
//# sourceMappingURL=index94.cjs.map
|
package/dist/index94.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index94.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index94.cjs","sources":["../src/charts/ScatterChartCard/foldPoints.ts"],"sourcesContent":["import type { ScatterPoint, ScatterRenderInfo } from '../../types/chart.types';\n\n/** A drawn mark, standing for one or more coincident source points. */\nexport interface FoldedPoint {\n /** Representative point. `weight` is the sum across the folded group. */\n point: ScatterPoint;\n /** Index of the representative in the original `data` array. */\n index: number;\n /** How many source points this mark stands for (1 when nothing folded). */\n count: number;\n}\n\nexport interface FoldResult {\n points: FoldedPoint[];\n info: ScatterRenderInfo;\n}\n\n/** Weight a point contributes when folding; unweighted points count as one. */\nconst weightOf = (point: ScatterPoint) => point.weight ?? 1;\n\n/**\n * Group points sharing the same (x, y) into a single mark, summing their weights.\n * A group of one keeps its original weight — including `undefined`, so a dataset\n * with no weights at all stays unweighted and renders at the base symbol size.\n */\nconst fold = (data: ScatterPoint[]): FoldedPoint[] => {\n const byPosition = new Map<string, FoldedPoint>();\n\n data.forEach((point, index) => {\n const key = `${point.x}|${point.y}`;\n const existing = byPosition.get(key);\n\n if (!existing) {\n byPosition.set(key, { point, index, count: 1 });\n return;\n }\n\n existing.count += 1;\n existing.point = {\n ...existing.point,\n weight: weightOf(existing.point) + weightOf(point),\n };\n });\n\n return [...byPosition.values()];\n};\n\n/**\n * Evenly spread `cap` marks across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same chart.\n */\nconst sample = (points: FoldedPoint[], cap: number): FoldedPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const lastIndex = points.length - 1;\n const step = lastIndex / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\n/**\n * Fold coincident points, then cap the mark count, then report what happened.\n * Folding runs first because it often removes the need to sample at all.\n *\n * The reported counts satisfy `total === drawn + merged + dropped`.\n */\nexport const foldPoints = (\n data: ScatterPoint[],\n maxPoints: number,\n mergeCoincident: boolean,\n): FoldResult => {\n const folded = mergeCoincident\n ? fold(data)\n : data.map((point, index) => ({ point, index, count: 1 }));\n\n const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;\n\n const represented = points.reduce((sum, p) => sum + p.count, 0);\n\n return {\n points,\n info: {\n total: data.length,\n drawn: points.length,\n merged: represented - points.length,\n dropped: data.length - represented,\n },\n };\n};\n"],"names":[],"mappings":";;AAkBA,MAAM,WAAW,CAAC,UAAwB,MAAM,UAAU;AAO1D,MAAM,OAAO,CAAC,SAAwC;AACpD,QAAM,iCAAiB,IAAA;AAEvB,OAAK,QAAQ,CAAC,OAAO,UAAU;AAC7B,UAAM,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC;AACjC,UAAM,WAAW,WAAW,IAAI,GAAG;AAEnC,QAAI,CAAC,UAAU;AACb,iBAAW,IAAI,KAAK,EAAE,OAAO,OAAO,OAAO,GAAG;AAC9C;AAAA,IACF;AAEA,aAAS,SAAS;AAClB,aAAS,QAAQ;AAAA,MACf,GAAG,SAAS;AAAA,MACZ,QAAQ,SAAS,SAAS,KAAK,IAAI,SAAS,KAAK;AAAA,IAAA;AAAA,EAErD,CAAC;AAED,SAAO,CAAC,GAAG,WAAW,QAAQ;AAChC;AAMA,MAAM,SAAS,CAAC,QAAuB,QAA+B;AACpE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,YAAY,OAAO,SAAS;AAClC,QAAM,OAAO,aAAa,MAAM;AAEhC,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAQO,MAAM,aAAa,CACxB,MACA,WACA,oBACe;AACf,QAAM,SAAS,kBACX,KAAK,IAAI,IACT,KAAK,IAAI,CAAC,OAAO,WAAW,EAAE,OAAO,OAAO,OAAO,IAAI;AAE3D,QAAM,SAAS,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEvE,QAAM,cAAc,OAAO,OAAO,CAAC,KAAK,MAAM,MAAM,EAAE,OAAO,CAAC;AAE9D,SAAO;AAAA,IACL;AAAA,IACA,MAAM;AAAA,MACJ,OAAO,KAAK;AAAA,MACZ,OAAO,OAAO;AAAA,MACd,QAAQ,cAAc,OAAO;AAAA,MAC7B,SAAS,KAAK,SAAS;AAAA,IAAA;AAAA,EACzB;AAEJ;;"}
|
package/dist/index94.js
CHANGED
|
@@ -1,27 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
const weightOf = (point) => point.weight ?? 1;
|
|
2
|
+
const fold = (data) => {
|
|
3
|
+
const byPosition = /* @__PURE__ */ new Map();
|
|
4
|
+
data.forEach((point, index) => {
|
|
5
|
+
const key = `${point.x}|${point.y}`;
|
|
6
|
+
const existing = byPosition.get(key);
|
|
7
|
+
if (!existing) {
|
|
8
|
+
byPosition.set(key, { point, index, count: 1 });
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
existing.count += 1;
|
|
12
|
+
existing.point = {
|
|
13
|
+
...existing.point,
|
|
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
|
+
};
|
|
22
38
|
};
|
|
23
|
-
MapViewport.displayName = "MapViewport";
|
|
24
39
|
export {
|
|
25
|
-
|
|
40
|
+
foldPoints
|
|
26
41
|
};
|
|
27
42
|
//# sourceMappingURL=index94.js.map
|
package/dist/index94.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index94.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index94.js","sources":["../src/charts/ScatterChartCard/foldPoints.ts"],"sourcesContent":["import type { ScatterPoint, ScatterRenderInfo } from '../../types/chart.types';\n\n/** A drawn mark, standing for one or more coincident source points. */\nexport interface FoldedPoint {\n /** Representative point. `weight` is the sum across the folded group. */\n point: ScatterPoint;\n /** Index of the representative in the original `data` array. */\n index: number;\n /** How many source points this mark stands for (1 when nothing folded). */\n count: number;\n}\n\nexport interface FoldResult {\n points: FoldedPoint[];\n info: ScatterRenderInfo;\n}\n\n/** Weight a point contributes when folding; unweighted points count as one. */\nconst weightOf = (point: ScatterPoint) => point.weight ?? 1;\n\n/**\n * Group points sharing the same (x, y) into a single mark, summing their weights.\n * A group of one keeps its original weight — including `undefined`, so a dataset\n * with no weights at all stays unweighted and renders at the base symbol size.\n */\nconst fold = (data: ScatterPoint[]): FoldedPoint[] => {\n const byPosition = new Map<string, FoldedPoint>();\n\n data.forEach((point, index) => {\n const key = `${point.x}|${point.y}`;\n const existing = byPosition.get(key);\n\n if (!existing) {\n byPosition.set(key, { point, index, count: 1 });\n return;\n }\n\n existing.count += 1;\n existing.point = {\n ...existing.point,\n weight: weightOf(existing.point) + weightOf(point),\n };\n });\n\n return [...byPosition.values()];\n};\n\n/**\n * Evenly spread `cap` marks across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same chart.\n */\nconst sample = (points: FoldedPoint[], cap: number): FoldedPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const lastIndex = points.length - 1;\n const step = lastIndex / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\n/**\n * Fold coincident points, then cap the mark count, then report what happened.\n * Folding runs first because it often removes the need to sample at all.\n *\n * The reported counts satisfy `total === drawn + merged + dropped`.\n */\nexport const foldPoints = (\n data: ScatterPoint[],\n maxPoints: number,\n mergeCoincident: boolean,\n): FoldResult => {\n const folded = mergeCoincident\n ? fold(data)\n : data.map((point, index) => ({ point, index, count: 1 }));\n\n const points = folded.length > maxPoints ? sample(folded, maxPoints) : folded;\n\n const represented = points.reduce((sum, p) => sum + p.count, 0);\n\n return {\n points,\n info: {\n total: data.length,\n drawn: points.length,\n merged: represented - points.length,\n dropped: data.length - represented,\n },\n };\n};\n"],"names":[],"mappings":"AAkBA,MAAM,WAAW,CAAC,UAAwB,MAAM,UAAU;AAO1D,MAAM,OAAO,CAAC,SAAwC;AACpD,QAAM,iCAAiB,IAAA;AAEvB,OAAK,QAAQ,CAAC,OAAO,UAAU;AAC7B,UAAM,MAAM,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC;AACjC,UAAM,WAAW,WAAW,IAAI,GAAG;AAEnC,QAAI,CAAC,UAAU;AACb,iBAAW,IAAI,KAAK,EAAE,OAAO,OAAO,OAAO,GAAG;AAC9C;AAAA,IACF;AAEA,aAAS,SAAS;AAClB,aAAS,QAAQ;AAAA,MACf,GAAG,SAAS;AAAA,MACZ,QAAQ,SAAS,SAAS,KAAK,IAAI,SAAS,KAAK;AAAA,IAAA;AAAA,EAErD,CAAC;AAED,SAAO,CAAC,GAAG,WAAW,QAAQ;AAChC;AAMA,MAAM,SAAS,CAAC,QAAuB,QAA+B;AACpE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,YAAY,OAAO,SAAS;AAClC,QAAM,OAAO,aAAa,MAAM;AAEhC,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAQO,MAAM,aAAa,CACxB,MACA,WACA,oBACe;AACf,QAAM,SAAS,kBACX,KAAK,IAAI,IACT,KAAK,IAAI,CAAC,OAAO,WAAW,EAAE,OAAO,OAAO,OAAO,IAAI;AAE3D,QAAM,SAAS,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEvE,QAAM,cAAc,OAAO,OAAO,CAAC,KAAK,MAAM,MAAM,EAAE,OAAO,CAAC;AAE9D,SAAO;AAAA,IACL;AAAA,IACA,MAAM;AAAA,MACJ,OAAO,KAAK;AAAA,MACZ,OAAO,OAAO;AAAA,MACd,QAAQ,cAAc,OAAO;AAAA,MAC7B,SAAS,KAAK,SAAS;AAAA,IAAA;AAAA,EACzB;AAEJ;"}
|