@ktnpm_devops/react-component 0.13.1 → 0.14.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/index.cjs +24 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -22
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +39 -21
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +40 -22
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +14 -50
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +14 -50
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +55 -134
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +54 -133
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +13 -40
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +14 -41
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +9 -35
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +8 -34
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +15 -43
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +14 -42
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +33 -24
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +32 -23
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +58 -20
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +57 -19
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +34 -14
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +33 -13
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +19 -55
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +20 -56
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +16 -28
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +16 -28
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +10 -10
- package/dist/index111.js +11 -11
- package/dist/index112.cjs +16 -19
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +17 -20
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +34 -13
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +35 -14
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +118 -0
- package/dist/index114.cjs.map +1 -0
- package/dist/index114.js +118 -0
- package/dist/index114.js.map +1 -0
- package/dist/index115.cjs +45 -0
- package/dist/index115.cjs.map +1 -0
- package/dist/index115.js +45 -0
- package/dist/index115.js.map +1 -0
- package/dist/index116.cjs +33 -0
- package/dist/index116.cjs.map +1 -0
- package/dist/index116.js +33 -0
- package/dist/index116.js.map +1 -0
- package/dist/index117.cjs +1166 -0
- package/dist/index117.cjs.map +1 -0
- package/dist/index117.js +1167 -0
- package/dist/index117.js.map +1 -0
- package/dist/index118.cjs +1578 -0
- package/dist/index118.cjs.map +1 -0
- package/dist/index118.js +1579 -0
- package/dist/index118.js.map +1 -0
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- 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 +3 -3
- package/dist/index16.js +3 -3
- 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 +2 -2
- package/dist/index31.js +2 -2
- package/dist/index32.cjs +2 -2
- package/dist/index32.js +2 -2
- package/dist/index33.cjs +3 -3
- package/dist/index33.js +3 -3
- package/dist/index34.cjs +4 -4
- package/dist/index34.js +4 -4
- package/dist/index35.cjs +20 -38
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +21 -39
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +36 -224
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +37 -225
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +220 -28
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +222 -30
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +30 -106
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +31 -107
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +100 -58
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +101 -59
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +66 -76
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +67 -77
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +76 -57
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +78 -59
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +56 -150
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +58 -152
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +128 -73
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +123 -68
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +94 -68
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +96 -70
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +71 -7
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +72 -8
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +8 -17
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +9 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +15 -75
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +16 -76
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +68 -134
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +70 -136
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +137 -58
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +138 -59
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +61 -102
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +62 -103
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +102 -44
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +103 -45
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +47 -6
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +48 -7
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +6 -147
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +7 -148
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +146 -7
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +148 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +6 -15
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +6 -15
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +15 -64
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +17 -66
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +67 -15
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +66 -14
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +15 -18
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +15 -18
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +19 -116
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +17 -114
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +16 -10
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +17 -11
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +22 -10
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +23 -11
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +22 -13
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +22 -13
- 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 +17 -2
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +18 -3
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +1 -1
- package/dist/index67.cjs +11 -5
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +12 -6
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +2 -20
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +3 -21
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +17 -24
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +16 -23
- 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 +116 -19
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +114 -17
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +29 -2
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +30 -3
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +18 -30
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +18 -30
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +21 -36
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +21 -36
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +5 -35
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +6 -36
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +2 -23
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +3 -24
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +65 -2
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +66 -3
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +19 -16
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +20 -17
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +13 -10
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +14 -11
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +19 -64
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +20 -65
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +35 -21
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +34 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +43 -51
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +42 -50
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +24 -57
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +23 -56
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +20 -25
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +19 -24
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +14 -25
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +13 -24
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +51 -75
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +51 -75
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +47 -2
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +48 -3
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +34 -16
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +34 -16
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +69 -18
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +70 -19
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +39 -21
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +38 -20
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +83 -106
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +83 -106
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +19 -22
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +20 -23
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +13 -37
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +14 -38
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +36 -6
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +36 -6
- 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 +35 -47
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +35 -47
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +16 -25
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +16 -25
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +129 -35
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +129 -35
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +45 -92
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +44 -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 +108 -0
- 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/index76.js
CHANGED
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const label = "krc-label-WG17f";
|
|
3
|
-
const value = "krc-value-S9SSu";
|
|
4
|
-
const red = "krc-red-stqO-";
|
|
5
|
-
const amber = "krc-amber-lZgsd";
|
|
6
|
-
const sub = "krc-sub-0xfrv";
|
|
7
|
-
const isClick = "krc-isClick-CnKvM";
|
|
8
|
-
const isActive = "krc-isActive-YLCNL";
|
|
1
|
+
const root = "krc-root-0ZI82";
|
|
9
2
|
const styles = {
|
|
10
|
-
root
|
|
11
|
-
label,
|
|
12
|
-
value,
|
|
13
|
-
red,
|
|
14
|
-
amber,
|
|
15
|
-
sub,
|
|
16
|
-
isClick,
|
|
17
|
-
isActive
|
|
3
|
+
root
|
|
18
4
|
};
|
|
19
5
|
export {
|
|
20
|
-
amber,
|
|
21
6
|
styles as default,
|
|
22
|
-
|
|
23
|
-
isClick,
|
|
24
|
-
label,
|
|
25
|
-
red,
|
|
26
|
-
root,
|
|
27
|
-
sub,
|
|
28
|
-
value
|
|
7
|
+
root
|
|
29
8
|
};
|
|
30
9
|
//# sourceMappingURL=index76.js.map
|
package/dist/index76.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index76.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index77.cjs
CHANGED
|
@@ -1,9 +1,72 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
3
|
+
const root = "krc-root-HS837";
|
|
4
|
+
const gapNone = "krc-gapNone-MmCvp";
|
|
5
|
+
const gapXs = "krc-gapXs-Jketq";
|
|
6
|
+
const gapSm = "krc-gapSm-BFLhK";
|
|
7
|
+
const gapMd = "krc-gapMd--7IRg";
|
|
8
|
+
const gapLg = "krc-gapLg-ehuIZ";
|
|
9
|
+
const gapXl = "krc-gapXl-kNEyc";
|
|
10
|
+
const alignStart = "krc-alignStart-q6fMC";
|
|
11
|
+
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
12
|
+
const alignEnd = "krc-alignEnd-ialGn";
|
|
13
|
+
const alignStretch = "krc-alignStretch-J-rq4";
|
|
14
|
+
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
15
|
+
const justifyStart = "krc-justifyStart-tBqbD";
|
|
16
|
+
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
17
|
+
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
18
|
+
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
19
|
+
const justifyAround = "krc-justifyAround-AMU1m";
|
|
20
|
+
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
21
|
+
const wrap = "krc-wrap-Q4txZ";
|
|
22
|
+
const nowrap = "krc-nowrap-BUcfT";
|
|
23
|
+
const dirRow = "krc-dirRow-NBoPO";
|
|
24
|
+
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
4
25
|
const styles = {
|
|
5
|
-
root
|
|
26
|
+
root,
|
|
27
|
+
gapNone,
|
|
28
|
+
gapXs,
|
|
29
|
+
gapSm,
|
|
30
|
+
gapMd,
|
|
31
|
+
gapLg,
|
|
32
|
+
gapXl,
|
|
33
|
+
alignStart,
|
|
34
|
+
alignCenter,
|
|
35
|
+
alignEnd,
|
|
36
|
+
alignStretch,
|
|
37
|
+
alignBaseline,
|
|
38
|
+
justifyStart,
|
|
39
|
+
justifyCenter,
|
|
40
|
+
justifyEnd,
|
|
41
|
+
justifyBetween,
|
|
42
|
+
justifyAround,
|
|
43
|
+
justifyEvenly,
|
|
44
|
+
wrap,
|
|
45
|
+
nowrap,
|
|
46
|
+
dirRow,
|
|
47
|
+
dirColumn
|
|
6
48
|
};
|
|
49
|
+
exports.alignBaseline = alignBaseline;
|
|
50
|
+
exports.alignCenter = alignCenter;
|
|
51
|
+
exports.alignEnd = alignEnd;
|
|
52
|
+
exports.alignStart = alignStart;
|
|
53
|
+
exports.alignStretch = alignStretch;
|
|
7
54
|
exports.default = styles;
|
|
55
|
+
exports.dirColumn = dirColumn;
|
|
56
|
+
exports.dirRow = dirRow;
|
|
57
|
+
exports.gapLg = gapLg;
|
|
58
|
+
exports.gapMd = gapMd;
|
|
59
|
+
exports.gapNone = gapNone;
|
|
60
|
+
exports.gapSm = gapSm;
|
|
61
|
+
exports.gapXl = gapXl;
|
|
62
|
+
exports.gapXs = gapXs;
|
|
63
|
+
exports.justifyAround = justifyAround;
|
|
64
|
+
exports.justifyBetween = justifyBetween;
|
|
65
|
+
exports.justifyCenter = justifyCenter;
|
|
66
|
+
exports.justifyEnd = justifyEnd;
|
|
67
|
+
exports.justifyEvenly = justifyEvenly;
|
|
68
|
+
exports.justifyStart = justifyStart;
|
|
69
|
+
exports.nowrap = nowrap;
|
|
8
70
|
exports.root = root;
|
|
71
|
+
exports.wrap = wrap;
|
|
9
72
|
//# sourceMappingURL=index77.cjs.map
|
package/dist/index77.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index77.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index77.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index77.js
CHANGED
|
@@ -1,9 +1,72 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
1
|
+
const root = "krc-root-HS837";
|
|
2
|
+
const gapNone = "krc-gapNone-MmCvp";
|
|
3
|
+
const gapXs = "krc-gapXs-Jketq";
|
|
4
|
+
const gapSm = "krc-gapSm-BFLhK";
|
|
5
|
+
const gapMd = "krc-gapMd--7IRg";
|
|
6
|
+
const gapLg = "krc-gapLg-ehuIZ";
|
|
7
|
+
const gapXl = "krc-gapXl-kNEyc";
|
|
8
|
+
const alignStart = "krc-alignStart-q6fMC";
|
|
9
|
+
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
10
|
+
const alignEnd = "krc-alignEnd-ialGn";
|
|
11
|
+
const alignStretch = "krc-alignStretch-J-rq4";
|
|
12
|
+
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
13
|
+
const justifyStart = "krc-justifyStart-tBqbD";
|
|
14
|
+
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
15
|
+
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
16
|
+
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
17
|
+
const justifyAround = "krc-justifyAround-AMU1m";
|
|
18
|
+
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
19
|
+
const wrap = "krc-wrap-Q4txZ";
|
|
20
|
+
const nowrap = "krc-nowrap-BUcfT";
|
|
21
|
+
const dirRow = "krc-dirRow-NBoPO";
|
|
22
|
+
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
2
23
|
const styles = {
|
|
3
|
-
root
|
|
24
|
+
root,
|
|
25
|
+
gapNone,
|
|
26
|
+
gapXs,
|
|
27
|
+
gapSm,
|
|
28
|
+
gapMd,
|
|
29
|
+
gapLg,
|
|
30
|
+
gapXl,
|
|
31
|
+
alignStart,
|
|
32
|
+
alignCenter,
|
|
33
|
+
alignEnd,
|
|
34
|
+
alignStretch,
|
|
35
|
+
alignBaseline,
|
|
36
|
+
justifyStart,
|
|
37
|
+
justifyCenter,
|
|
38
|
+
justifyEnd,
|
|
39
|
+
justifyBetween,
|
|
40
|
+
justifyAround,
|
|
41
|
+
justifyEvenly,
|
|
42
|
+
wrap,
|
|
43
|
+
nowrap,
|
|
44
|
+
dirRow,
|
|
45
|
+
dirColumn
|
|
4
46
|
};
|
|
5
47
|
export {
|
|
48
|
+
alignBaseline,
|
|
49
|
+
alignCenter,
|
|
50
|
+
alignEnd,
|
|
51
|
+
alignStart,
|
|
52
|
+
alignStretch,
|
|
6
53
|
styles as default,
|
|
7
|
-
|
|
54
|
+
dirColumn,
|
|
55
|
+
dirRow,
|
|
56
|
+
gapLg,
|
|
57
|
+
gapMd,
|
|
58
|
+
gapNone,
|
|
59
|
+
gapSm,
|
|
60
|
+
gapXl,
|
|
61
|
+
gapXs,
|
|
62
|
+
justifyAround,
|
|
63
|
+
justifyBetween,
|
|
64
|
+
justifyCenter,
|
|
65
|
+
justifyEnd,
|
|
66
|
+
justifyEvenly,
|
|
67
|
+
justifyStart,
|
|
68
|
+
nowrap,
|
|
69
|
+
root,
|
|
70
|
+
wrap
|
|
8
71
|
};
|
|
9
72
|
//# sourceMappingURL=index77.js.map
|
package/dist/index77.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index77.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index77.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index78.cjs
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
3
|
+
const root = "krc-root-1fbld";
|
|
4
|
+
const rail = "krc-rail-S-V5h";
|
|
5
|
+
const fill = "krc-fill-NAEy9";
|
|
6
|
+
const tick = "krc-tick-j75qi";
|
|
7
|
+
const disabled = "krc-disabled-DgBiL";
|
|
8
|
+
const thumb = "krc-thumb-QVYVM";
|
|
9
|
+
const valueTooltip = "krc-valueTooltip-Vuimh";
|
|
9
10
|
const styles = {
|
|
10
11
|
root,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
rail,
|
|
13
|
+
fill,
|
|
14
|
+
tick,
|
|
15
|
+
disabled,
|
|
16
|
+
thumb,
|
|
17
|
+
valueTooltip
|
|
16
18
|
};
|
|
17
|
-
exports.arrow = arrow;
|
|
18
19
|
exports.default = styles;
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.page = page;
|
|
20
|
+
exports.disabled = disabled;
|
|
21
|
+
exports.fill = fill;
|
|
22
|
+
exports.rail = rail;
|
|
23
23
|
exports.root = root;
|
|
24
|
+
exports.thumb = thumb;
|
|
25
|
+
exports.tick = tick;
|
|
26
|
+
exports.valueTooltip = valueTooltip;
|
|
24
27
|
//# sourceMappingURL=index78.cjs.map
|
package/dist/index78.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index78.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index78.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index78.js
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
1
|
+
const root = "krc-root-1fbld";
|
|
2
|
+
const rail = "krc-rail-S-V5h";
|
|
3
|
+
const fill = "krc-fill-NAEy9";
|
|
4
|
+
const tick = "krc-tick-j75qi";
|
|
5
|
+
const disabled = "krc-disabled-DgBiL";
|
|
6
|
+
const thumb = "krc-thumb-QVYVM";
|
|
7
|
+
const valueTooltip = "krc-valueTooltip-Vuimh";
|
|
7
8
|
const styles = {
|
|
8
9
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
rail,
|
|
11
|
+
fill,
|
|
12
|
+
tick,
|
|
13
|
+
disabled,
|
|
14
|
+
thumb,
|
|
15
|
+
valueTooltip
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
arrow,
|
|
17
18
|
styles as default,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
disabled,
|
|
20
|
+
fill,
|
|
21
|
+
rail,
|
|
22
|
+
root,
|
|
23
|
+
thumb,
|
|
24
|
+
tick,
|
|
25
|
+
valueTooltip
|
|
23
26
|
};
|
|
24
27
|
//# sourceMappingURL=index78.js.map
|
package/dist/index78.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index79.cjs
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
const root = "krc-root-oc0XP";
|
|
4
|
+
const success = "krc-success-JzpGX";
|
|
5
|
+
const warning = "krc-warning-lTskX";
|
|
6
|
+
const danger = "krc-danger-zFPHk";
|
|
7
|
+
const info = "krc-info-k9uTn";
|
|
7
8
|
const styles = {
|
|
8
9
|
root,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
success,
|
|
11
|
+
warning,
|
|
12
|
+
danger,
|
|
13
|
+
info
|
|
12
14
|
};
|
|
13
|
-
exports.
|
|
15
|
+
exports.danger = danger;
|
|
14
16
|
exports.default = styles;
|
|
15
|
-
exports.
|
|
16
|
-
exports.header = header;
|
|
17
|
+
exports.info = info;
|
|
17
18
|
exports.root = root;
|
|
19
|
+
exports.success = success;
|
|
20
|
+
exports.warning = warning;
|
|
18
21
|
//# sourceMappingURL=index79.cjs.map
|
package/dist/index79.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index79.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
const root = "krc-root-oc0XP";
|
|
2
|
+
const success = "krc-success-JzpGX";
|
|
3
|
+
const warning = "krc-warning-lTskX";
|
|
4
|
+
const danger = "krc-danger-zFPHk";
|
|
5
|
+
const info = "krc-info-k9uTn";
|
|
5
6
|
const styles = {
|
|
6
7
|
root,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
success,
|
|
9
|
+
warning,
|
|
10
|
+
danger,
|
|
11
|
+
info
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
danger,
|
|
13
15
|
styles as default,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
info,
|
|
17
|
+
root,
|
|
18
|
+
success,
|
|
19
|
+
warning
|
|
17
20
|
};
|
|
18
21
|
//# sourceMappingURL=index79.js.map
|
package/dist/index79.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index79.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/index80.cjs
CHANGED
|
@@ -1,72 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const alignStart = "krc-alignStart-q6fMC";
|
|
11
|
-
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
12
|
-
const alignEnd = "krc-alignEnd-ialGn";
|
|
13
|
-
const alignStretch = "krc-alignStretch-J-rq4";
|
|
14
|
-
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
15
|
-
const justifyStart = "krc-justifyStart-tBqbD";
|
|
16
|
-
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
17
|
-
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
18
|
-
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
19
|
-
const justifyAround = "krc-justifyAround-AMU1m";
|
|
20
|
-
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
21
|
-
const wrap = "krc-wrap-Q4txZ";
|
|
22
|
-
const nowrap = "krc-nowrap-BUcfT";
|
|
23
|
-
const dirRow = "krc-dirRow-NBoPO";
|
|
24
|
-
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
3
|
+
const root = "krc-root-cQSdQ";
|
|
4
|
+
const disabled = "krc-disabled-mXUpZ";
|
|
5
|
+
const active = "krc-active-c6Qv6";
|
|
6
|
+
const collapsed = "krc-collapsed-zZjr3";
|
|
7
|
+
const icon = "krc-icon-dmCQi";
|
|
8
|
+
const label = "krc-label-ohVFC";
|
|
9
|
+
const badge = "krc-badge-D8UnW";
|
|
25
10
|
const styles = {
|
|
26
11
|
root,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
alignStart,
|
|
34
|
-
alignCenter,
|
|
35
|
-
alignEnd,
|
|
36
|
-
alignStretch,
|
|
37
|
-
alignBaseline,
|
|
38
|
-
justifyStart,
|
|
39
|
-
justifyCenter,
|
|
40
|
-
justifyEnd,
|
|
41
|
-
justifyBetween,
|
|
42
|
-
justifyAround,
|
|
43
|
-
justifyEvenly,
|
|
44
|
-
wrap,
|
|
45
|
-
nowrap,
|
|
46
|
-
dirRow,
|
|
47
|
-
dirColumn
|
|
12
|
+
disabled,
|
|
13
|
+
active,
|
|
14
|
+
collapsed,
|
|
15
|
+
icon,
|
|
16
|
+
label,
|
|
17
|
+
badge
|
|
48
18
|
};
|
|
49
|
-
exports.
|
|
50
|
-
exports.
|
|
51
|
-
exports.
|
|
52
|
-
exports.alignStart = alignStart;
|
|
53
|
-
exports.alignStretch = alignStretch;
|
|
19
|
+
exports.active = active;
|
|
20
|
+
exports.badge = badge;
|
|
21
|
+
exports.collapsed = collapsed;
|
|
54
22
|
exports.default = styles;
|
|
55
|
-
exports.
|
|
56
|
-
exports.
|
|
57
|
-
exports.
|
|
58
|
-
exports.gapMd = gapMd;
|
|
59
|
-
exports.gapNone = gapNone;
|
|
60
|
-
exports.gapSm = gapSm;
|
|
61
|
-
exports.gapXl = gapXl;
|
|
62
|
-
exports.gapXs = gapXs;
|
|
63
|
-
exports.justifyAround = justifyAround;
|
|
64
|
-
exports.justifyBetween = justifyBetween;
|
|
65
|
-
exports.justifyCenter = justifyCenter;
|
|
66
|
-
exports.justifyEnd = justifyEnd;
|
|
67
|
-
exports.justifyEvenly = justifyEvenly;
|
|
68
|
-
exports.justifyStart = justifyStart;
|
|
69
|
-
exports.nowrap = nowrap;
|
|
23
|
+
exports.disabled = disabled;
|
|
24
|
+
exports.icon = icon;
|
|
25
|
+
exports.label = label;
|
|
70
26
|
exports.root = root;
|
|
71
|
-
exports.wrap = wrap;
|
|
72
27
|
//# sourceMappingURL=index80.cjs.map
|
package/dist/index80.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index80.js
CHANGED
|
@@ -1,72 +1,27 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const alignStart = "krc-alignStart-q6fMC";
|
|
9
|
-
const alignCenter = "krc-alignCenter-Py2Kt";
|
|
10
|
-
const alignEnd = "krc-alignEnd-ialGn";
|
|
11
|
-
const alignStretch = "krc-alignStretch-J-rq4";
|
|
12
|
-
const alignBaseline = "krc-alignBaseline-Hg-4L";
|
|
13
|
-
const justifyStart = "krc-justifyStart-tBqbD";
|
|
14
|
-
const justifyCenter = "krc-justifyCenter-6QDaO";
|
|
15
|
-
const justifyEnd = "krc-justifyEnd-2tbcB";
|
|
16
|
-
const justifyBetween = "krc-justifyBetween-5W1AJ";
|
|
17
|
-
const justifyAround = "krc-justifyAround-AMU1m";
|
|
18
|
-
const justifyEvenly = "krc-justifyEvenly-Vj3C-";
|
|
19
|
-
const wrap = "krc-wrap-Q4txZ";
|
|
20
|
-
const nowrap = "krc-nowrap-BUcfT";
|
|
21
|
-
const dirRow = "krc-dirRow-NBoPO";
|
|
22
|
-
const dirColumn = "krc-dirColumn-gJ7qS";
|
|
1
|
+
const root = "krc-root-cQSdQ";
|
|
2
|
+
const disabled = "krc-disabled-mXUpZ";
|
|
3
|
+
const active = "krc-active-c6Qv6";
|
|
4
|
+
const collapsed = "krc-collapsed-zZjr3";
|
|
5
|
+
const icon = "krc-icon-dmCQi";
|
|
6
|
+
const label = "krc-label-ohVFC";
|
|
7
|
+
const badge = "krc-badge-D8UnW";
|
|
23
8
|
const styles = {
|
|
24
9
|
root,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
alignStart,
|
|
32
|
-
alignCenter,
|
|
33
|
-
alignEnd,
|
|
34
|
-
alignStretch,
|
|
35
|
-
alignBaseline,
|
|
36
|
-
justifyStart,
|
|
37
|
-
justifyCenter,
|
|
38
|
-
justifyEnd,
|
|
39
|
-
justifyBetween,
|
|
40
|
-
justifyAround,
|
|
41
|
-
justifyEvenly,
|
|
42
|
-
wrap,
|
|
43
|
-
nowrap,
|
|
44
|
-
dirRow,
|
|
45
|
-
dirColumn
|
|
10
|
+
disabled,
|
|
11
|
+
active,
|
|
12
|
+
collapsed,
|
|
13
|
+
icon,
|
|
14
|
+
label,
|
|
15
|
+
badge
|
|
46
16
|
};
|
|
47
17
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
alignStart,
|
|
52
|
-
alignStretch,
|
|
18
|
+
active,
|
|
19
|
+
badge,
|
|
20
|
+
collapsed,
|
|
53
21
|
styles as default,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
gapNone,
|
|
59
|
-
gapSm,
|
|
60
|
-
gapXl,
|
|
61
|
-
gapXs,
|
|
62
|
-
justifyAround,
|
|
63
|
-
justifyBetween,
|
|
64
|
-
justifyCenter,
|
|
65
|
-
justifyEnd,
|
|
66
|
-
justifyEvenly,
|
|
67
|
-
justifyStart,
|
|
68
|
-
nowrap,
|
|
69
|
-
root,
|
|
70
|
-
wrap
|
|
22
|
+
disabled,
|
|
23
|
+
icon,
|
|
24
|
+
label,
|
|
25
|
+
root
|
|
71
26
|
};
|
|
72
27
|
//# sourceMappingURL=index80.js.map
|
package/dist/index80.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index80.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/index81.cjs
CHANGED
|
@@ -1,24 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
root,
|
|
11
|
-
input,
|
|
12
|
-
label,
|
|
13
|
-
disabled,
|
|
14
|
-
sm,
|
|
15
|
-
md
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const MAX_LATITUDE = 90;
|
|
4
|
+
const MAX_LONGITUDE = 180;
|
|
5
|
+
const hasUsableCoordinates = (point) => Number.isFinite(point.latitude) && Number.isFinite(point.longitude) && Math.abs(point.latitude) <= MAX_LATITUDE && Math.abs(point.longitude) <= MAX_LONGITUDE;
|
|
6
|
+
const sample = (points, cap) => {
|
|
7
|
+
if (cap <= 1) return points.slice(0, Math.max(cap, 0));
|
|
8
|
+
const step = (points.length - 1) / (cap - 1);
|
|
9
|
+
return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
const boundsOf = (points) => {
|
|
12
|
+
if (points.length === 0) return null;
|
|
13
|
+
const latitudes = points.map((p) => p.point.latitude);
|
|
14
|
+
const longitudes = points.map((p) => p.point.longitude);
|
|
15
|
+
return [
|
|
16
|
+
[Math.min(...latitudes), Math.min(...longitudes)],
|
|
17
|
+
[Math.max(...latitudes), Math.max(...longitudes)]
|
|
18
|
+
];
|
|
19
|
+
};
|
|
20
|
+
const normalizePoints = (points, maxPoints) => {
|
|
21
|
+
const usable = [];
|
|
22
|
+
points.forEach((point, sourceIndex) => {
|
|
23
|
+
if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });
|
|
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;
|
|
24
38
|
//# sourceMappingURL=index81.cjs.map
|
package/dist/index81.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index81.cjs","sources":["../src/geo/GeoMapCard/normalizePoints.ts"],"sourcesContent":["import type { GeoPoint, GeoRenderInfo } from '../../types/geo.types';\n\n/** A point that survived validation, paired with where it came from. */\nexport interface DrawnPoint {\n point: GeoPoint;\n /** Index in the original `points` array, not in the normalised one. */\n sourceIndex: number;\n}\n\n/** South-west and north-east corners, in Leaflet's `[lat, lng]` order. */\nexport type GeoBounds = [[number, number], [number, number]];\n\nexport interface NormalizeResult {\n drawn: DrawnPoint[];\n bounds: GeoBounds | null;\n info: GeoRenderInfo;\n}\n\nconst MAX_LATITUDE = 90;\nconst MAX_LONGITUDE = 180;\n\n/**\n * Garbage coordinates are the norm in network inventories, not the exception:\n * nulls, empty strings coerced to NaN and swapped lat/lng all show up.\n */\nconst hasUsableCoordinates = (point: GeoPoint): boolean =>\n Number.isFinite(point.latitude) &&\n Number.isFinite(point.longitude) &&\n Math.abs(point.latitude) <= MAX_LATITUDE &&\n Math.abs(point.longitude) <= MAX_LONGITUDE;\n\n/**\n * Evenly spread `cap` markers across `points`, always keeping the first and last.\n * Deterministic on purpose: the same data must always draw the same map.\n */\nconst sample = (points: DrawnPoint[], cap: number): DrawnPoint[] => {\n if (cap <= 1) return points.slice(0, Math.max(cap, 0));\n\n const step = (points.length - 1) / (cap - 1);\n\n return Array.from({ length: cap }, (_, i) => points[Math.round(i * step)]);\n};\n\nconst boundsOf = (points: DrawnPoint[]): GeoBounds | null => {\n if (points.length === 0) return null;\n\n const latitudes = points.map((p) => p.point.latitude);\n const longitudes = points.map((p) => p.point.longitude);\n\n return [\n [Math.min(...latitudes), Math.min(...longitudes)],\n [Math.max(...latitudes), Math.max(...longitudes)],\n ];\n};\n\n/**\n * Drop the unplottable points, cap the marker count, then report what happened.\n *\n * Coincident points are *not* folded the way the scatter chart folds them: on a\n * map two cells at the same site are two cells, and zooming already separates\n * them.\n *\n * The reported counts satisfy `total === drawn + skipped + dropped`.\n */\nexport const normalizePoints = (points: GeoPoint[], maxPoints: number): NormalizeResult => {\n const usable: DrawnPoint[] = [];\n\n points.forEach((point, sourceIndex) => {\n if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });\n });\n\n const drawn = usable.length > maxPoints ? sample(usable, maxPoints) : usable;\n\n return {\n drawn,\n bounds: boundsOf(drawn),\n info: {\n total: points.length,\n drawn: drawn.length,\n skipped: points.length - usable.length,\n dropped: usable.length - drawn.length,\n },\n };\n};\n"],"names":[],"mappings":";;AAkBA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AAMtB,MAAM,uBAAuB,CAAC,UAC5B,OAAO,SAAS,MAAM,QAAQ,KAC9B,OAAO,SAAS,MAAM,SAAS,KAC/B,KAAK,IAAI,MAAM,QAAQ,KAAK,gBAC5B,KAAK,IAAI,MAAM,SAAS,KAAK;AAM/B,MAAM,SAAS,CAAC,QAAsB,QAA8B;AAClE,MAAI,OAAO,EAAG,QAAO,OAAO,MAAM,GAAG,KAAK,IAAI,KAAK,CAAC,CAAC;AAErD,QAAM,QAAQ,OAAO,SAAS,MAAM,MAAM;AAE1C,SAAO,MAAM,KAAK,EAAE,QAAQ,OAAO,CAAC,GAAG,MAAM,OAAO,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC;AAC3E;AAEA,MAAM,WAAW,CAAC,WAA2C;AAC3D,MAAI,OAAO,WAAW,EAAG,QAAO;AAEhC,QAAM,YAAY,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,QAAQ;AACpD,QAAM,aAAa,OAAO,IAAI,CAAC,MAAM,EAAE,MAAM,SAAS;AAEtD,SAAO;AAAA,IACL,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,IAChD,CAAC,KAAK,IAAI,GAAG,SAAS,GAAG,KAAK,IAAI,GAAG,UAAU,CAAC;AAAA,EAAA;AAEpD;AAWO,MAAM,kBAAkB,CAAC,QAAoB,cAAuC;AACzF,QAAM,SAAuB,CAAA;AAE7B,SAAO,QAAQ,CAAC,OAAO,gBAAgB;AACrC,QAAI,qBAAqB,KAAK,EAAG,QAAO,KAAK,EAAE,OAAO,aAAa;AAAA,EACrE,CAAC;AAED,QAAM,QAAQ,OAAO,SAAS,YAAY,OAAO,QAAQ,SAAS,IAAI;AAEtE,SAAO;AAAA,IACL;AAAA,IACA,QAAQ,SAAS,KAAK;AAAA,IACtB,MAAM;AAAA,MACJ,OAAO,OAAO;AAAA,MACd,OAAO,MAAM;AAAA,MACb,SAAS,OAAO,SAAS,OAAO;AAAA,MAChC,SAAS,OAAO,SAAS,MAAM;AAAA,IAAA;AAAA,EACjC;AAEJ;;"}
|