@ktnpm_devops/react-component 0.25.0 → 0.27.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/composites/DayRangePicker/DayRangePicker.d.ts +4 -0
- package/dist/composites/DayRangePicker/DayRangePicker.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/DayRangePicker.types.d.ts +42 -0
- package/dist/composites/DayRangePicker/DayRangePicker.types.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/index.d.ts +3 -0
- package/dist/composites/DayRangePicker/index.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/rangeDays.d.ts +17 -0
- package/dist/composites/DayRangePicker/rangeDays.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/rangeDays.test.d.ts +2 -0
- package/dist/composites/DayRangePicker/rangeDays.test.d.ts.map +1 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrix.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts +12 -0
- package/dist/data/HeatmapMatrix/HeatmapMatrix.types.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts +1 -1
- package/dist/data/HeatmapMatrix/HeatmapMatrixHeader.d.ts.map +1 -1
- package/dist/data/HeatmapMatrix/index.d.ts +1 -1
- package/dist/data/HeatmapMatrix/index.d.ts.map +1 -1
- package/dist/index.cjs +33 -31
- 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 +33 -31
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +50 -6
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +49 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +6 -25
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +5 -24
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +28 -40
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +27 -39
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +80 -23
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +80 -23
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +21 -6
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +20 -5
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +10 -19
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +11 -20
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +13 -16
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +14 -17
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +58 -34
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +58 -34
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +17 -43
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +17 -43
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +39 -24
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +38 -23
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +33 -39
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +32 -38
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +58 -9
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +57 -8
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +51 -10
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +50 -9
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +33 -19
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +33 -19
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +31 -14
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +30 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +16 -9
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +16 -9
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +2 -65
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +3 -66
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +10 -16
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +10 -16
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +39 -70
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +38 -69
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +18 -50
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +17 -49
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +16 -6
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +15 -5
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +19 -28
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +18 -27
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +36 -84
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +36 -84
- package/dist/index122.js.map +1 -1
- package/dist/index124.cjs +19 -16
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +20 -17
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +17 -2
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +17 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +2 -20
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +3 -21
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +19 -28
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +19 -28
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +64 -13
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +65 -14
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +32 -26
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +32 -26
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index130.cjs +19 -34
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +19 -34
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +16 -13
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +17 -14
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +6 -36
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +6 -36
- package/dist/index132.js.map +1 -1
- package/dist/index133.cjs +13 -16
- package/dist/index133.cjs.map +1 -1
- package/dist/index133.js +13 -16
- package/dist/index133.js.map +1 -1
- package/dist/index134.cjs +10 -16
- package/dist/index134.cjs.map +1 -1
- package/dist/index134.js +10 -16
- package/dist/index134.js.map +1 -1
- package/dist/index135.cjs +21 -39
- package/dist/index135.cjs.map +1 -1
- package/dist/index135.js +20 -38
- package/dist/index135.js.map +1 -1
- package/dist/index136.cjs +21 -92
- package/dist/index136.cjs.map +1 -1
- package/dist/index136.js +20 -91
- package/dist/index136.js.map +1 -1
- package/dist/index137.cjs +2 -35
- package/dist/index137.cjs.map +1 -1
- package/dist/index137.js +3 -36
- package/dist/index137.js.map +1 -1
- package/dist/index138.cjs +2 -11
- package/dist/index138.cjs.map +1 -1
- package/dist/index138.js +2 -11
- package/dist/index138.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +11 -2
- package/dist/index140.cjs.map +1 -1
- package/dist/index140.js +12 -3
- package/dist/index140.js.map +1 -1
- package/dist/index141.cjs +36 -45
- package/dist/index141.cjs.map +1 -1
- package/dist/index141.js +36 -45
- package/dist/index141.js.map +1 -1
- package/dist/index142.cjs +88 -71
- package/dist/index142.cjs.map +1 -1
- package/dist/index142.js +88 -71
- package/dist/index142.js.map +1 -1
- package/dist/index143.cjs +40 -1164
- package/dist/index143.cjs.map +1 -1
- package/dist/index143.js +38 -1163
- package/dist/index143.js.map +1 -1
- package/dist/index144.cjs +46 -1573
- package/dist/index144.cjs.map +1 -1
- package/dist/index144.js +45 -1573
- package/dist/index144.js.map +1 -1
- package/dist/index145.cjs +74 -6
- package/dist/index145.cjs.map +1 -1
- package/dist/index145.js +74 -6
- package/dist/index145.js.map +1 -1
- package/dist/index146.cjs +6 -11
- package/dist/index146.cjs.map +1 -1
- package/dist/index146.js +6 -11
- package/dist/index146.js.map +1 -1
- package/dist/index147.cjs +11 -47
- package/dist/index147.cjs.map +1 -1
- package/dist/index147.js +11 -47
- package/dist/index147.js.map +1 -1
- package/dist/index148.cjs +48 -34
- package/dist/index148.cjs.map +1 -1
- package/dist/index148.js +48 -34
- package/dist/index148.js.map +1 -1
- package/dist/index149.cjs +1166 -0
- package/dist/index149.cjs.map +1 -0
- package/dist/index149.js +1167 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index150.cjs +1578 -0
- package/dist/index150.cjs.map +1 -0
- package/dist/index150.js +1579 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.cjs +37 -0
- package/dist/index151.cjs.map +1 -0
- package/dist/index151.js +37 -0
- package/dist/index151.js.map +1 -0
- 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 +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +3 -3
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +4 -4
- package/dist/index24.js +4 -4
- package/dist/index25.cjs +4 -4
- package/dist/index25.js +4 -4
- package/dist/index26.cjs +4 -4
- package/dist/index26.js +4 -4
- package/dist/index27.cjs +6 -0
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +6 -0
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +4 -4
- package/dist/index29.js +4 -4
- package/dist/index30.cjs +5 -5
- package/dist/index30.js +5 -5
- package/dist/index31.cjs +87 -19
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +88 -20
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +20 -143
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +21 -144
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +126 -136
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +127 -137
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +135 -67
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +134 -66
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +83 -98
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +85 -100
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +103 -6
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +104 -7
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +7 -109
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +9 -111
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +108 -54
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +110 -56
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +49 -13
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +51 -15
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +20 -43
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +21 -44
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +39 -304
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +40 -305
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +302 -28
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +304 -30
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +30 -113
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +31 -114
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +107 -58
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +108 -59
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +66 -76
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +67 -77
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +76 -57
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +78 -59
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +56 -150
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +58 -152
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +128 -73
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +123 -68
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +94 -68
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +96 -70
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +71 -7
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +72 -8
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +8 -17
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +9 -18
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +15 -75
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +16 -76
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +66 -181
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +68 -183
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +180 -52
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +181 -53
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +61 -111
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +62 -112
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +111 -44
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +112 -45
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +47 -6
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +48 -7
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +6 -145
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +7 -146
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +144 -7
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +146 -9
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +6 -15
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +6 -15
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +15 -64
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +17 -66
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +66 -2
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +67 -3
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +16 -11
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +15 -10
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +27 -15
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +27 -15
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +4 -28
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +3 -27
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +10 -18
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +9 -17
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +24 -15
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +24 -15
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +25 -151
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +23 -149
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +16 -16
- package/dist/index69.js +16 -16
- package/dist/index70.cjs +19 -13
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +20 -14
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +2 -23
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +3 -24
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +73 -21
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +72 -20
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +153 -25
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +151 -23
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +12 -43
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +11 -42
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +58 -12
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +57 -11
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +4 -52
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +5 -53
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +34 -116
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +33 -115
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +116 -43
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +115 -42
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +42 -73
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +41 -72
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +134 -58
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +133 -57
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +40 -10
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +40 -10
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +19 -130
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +19 -130
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +69 -45
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +68 -44
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +6 -9
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +5 -8
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +23 -17
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +24 -18
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +15 -45
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +16 -46
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +43 -34
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +42 -33
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +35 -15
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +34 -14
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +42 -21
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +42 -21
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +23 -68
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +23 -68
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +38 -5
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +38 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +9 -40
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +8 -39
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +10 -9
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +9 -8
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +18 -46
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +18 -46
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +13 -17
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +13 -17
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +10 -36
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +9 -35
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +65 -2
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +66 -3
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +28 -64
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +28 -64
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +69 -16
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +69 -16
- package/dist/index99.js.map +1 -1
- package/dist/labels/ComponentLabels.types.d.ts +12 -0
- package/dist/labels/ComponentLabels.types.d.ts.map +1 -1
- package/dist/labels/defaults.d.ts.map +1 -1
- package/dist/labels/index.d.ts +1 -1
- package/dist/labels/index.d.ts.map +1 -1
- package/dist/style.css +30 -2
- package/package.json +1 -1
package/dist/index137.cjs
CHANGED
|
@@ -1,42 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const header = "krc-header-npqnm";
|
|
5
|
-
const title = "krc-title-Nho7q";
|
|
6
|
-
const headerActions = "krc-headerActions-ealva";
|
|
7
|
-
const toolbar = "krc-toolbar-JDGNF";
|
|
8
|
-
const warning = "krc-warning-zk0fc";
|
|
9
|
-
const chartContainer = "krc-chartContainer-9YPrR";
|
|
10
|
-
const loading = "krc-loading-kZWgE";
|
|
11
|
-
const empty = "krc-empty-JDNOq";
|
|
12
|
-
const error = "krc-error-IULEe";
|
|
13
|
-
const retryButton = "krc-retryButton-GvyS0";
|
|
14
|
-
const compact = "krc-compact-bzibR";
|
|
3
|
+
const root = "krc-root-FVKOX";
|
|
15
4
|
const styles = {
|
|
16
|
-
root
|
|
17
|
-
header,
|
|
18
|
-
title,
|
|
19
|
-
headerActions,
|
|
20
|
-
toolbar,
|
|
21
|
-
warning,
|
|
22
|
-
chartContainer,
|
|
23
|
-
loading,
|
|
24
|
-
empty,
|
|
25
|
-
error,
|
|
26
|
-
retryButton,
|
|
27
|
-
compact
|
|
5
|
+
root
|
|
28
6
|
};
|
|
29
|
-
exports.chartContainer = chartContainer;
|
|
30
|
-
exports.compact = compact;
|
|
31
7
|
exports.default = styles;
|
|
32
|
-
exports.empty = empty;
|
|
33
|
-
exports.error = error;
|
|
34
|
-
exports.header = header;
|
|
35
|
-
exports.headerActions = headerActions;
|
|
36
|
-
exports.loading = loading;
|
|
37
|
-
exports.retryButton = retryButton;
|
|
38
8
|
exports.root = root;
|
|
39
|
-
exports.title = title;
|
|
40
|
-
exports.toolbar = toolbar;
|
|
41
|
-
exports.warning = warning;
|
|
42
9
|
//# sourceMappingURL=index137.cjs.map
|
package/dist/index137.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index137.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index137.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/index137.js
CHANGED
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const header = "krc-header-npqnm";
|
|
3
|
-
const title = "krc-title-Nho7q";
|
|
4
|
-
const headerActions = "krc-headerActions-ealva";
|
|
5
|
-
const toolbar = "krc-toolbar-JDGNF";
|
|
6
|
-
const warning = "krc-warning-zk0fc";
|
|
7
|
-
const chartContainer = "krc-chartContainer-9YPrR";
|
|
8
|
-
const loading = "krc-loading-kZWgE";
|
|
9
|
-
const empty = "krc-empty-JDNOq";
|
|
10
|
-
const error = "krc-error-IULEe";
|
|
11
|
-
const retryButton = "krc-retryButton-GvyS0";
|
|
12
|
-
const compact = "krc-compact-bzibR";
|
|
1
|
+
const root = "krc-root-FVKOX";
|
|
13
2
|
const styles = {
|
|
14
|
-
root
|
|
15
|
-
header,
|
|
16
|
-
title,
|
|
17
|
-
headerActions,
|
|
18
|
-
toolbar,
|
|
19
|
-
warning,
|
|
20
|
-
chartContainer,
|
|
21
|
-
loading,
|
|
22
|
-
empty,
|
|
23
|
-
error,
|
|
24
|
-
retryButton,
|
|
25
|
-
compact
|
|
3
|
+
root
|
|
26
4
|
};
|
|
27
5
|
export {
|
|
28
|
-
chartContainer,
|
|
29
|
-
compact,
|
|
30
6
|
styles as default,
|
|
31
|
-
|
|
32
|
-
error,
|
|
33
|
-
header,
|
|
34
|
-
headerActions,
|
|
35
|
-
loading,
|
|
36
|
-
retryButton,
|
|
37
|
-
root,
|
|
38
|
-
title,
|
|
39
|
-
toolbar,
|
|
40
|
-
warning
|
|
7
|
+
root
|
|
41
8
|
};
|
|
42
9
|
//# sourceMappingURL=index137.js.map
|
package/dist/index137.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index137.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index137.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index138.cjs
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const logo = "krc-logo-b73UT";
|
|
5
|
-
const card = "krc-card-1ev-q";
|
|
6
|
-
const footer = "krc-footer-E0B15";
|
|
3
|
+
const root = "krc-root-bWynN";
|
|
7
4
|
const styles = {
|
|
8
|
-
root
|
|
9
|
-
logo,
|
|
10
|
-
card,
|
|
11
|
-
footer
|
|
5
|
+
root
|
|
12
6
|
};
|
|
13
|
-
exports.card = card;
|
|
14
7
|
exports.default = styles;
|
|
15
|
-
exports.footer = footer;
|
|
16
|
-
exports.logo = logo;
|
|
17
8
|
exports.root = root;
|
|
18
9
|
//# sourceMappingURL=index138.cjs.map
|
package/dist/index138.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index138.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index138.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/index138.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const logo = "krc-logo-b73UT";
|
|
3
|
-
const card = "krc-card-1ev-q";
|
|
4
|
-
const footer = "krc-footer-E0B15";
|
|
1
|
+
const root = "krc-root-bWynN";
|
|
5
2
|
const styles = {
|
|
6
|
-
root
|
|
7
|
-
logo,
|
|
8
|
-
card,
|
|
9
|
-
footer
|
|
3
|
+
root
|
|
10
4
|
};
|
|
11
5
|
export {
|
|
12
|
-
card,
|
|
13
6
|
styles as default,
|
|
14
|
-
footer,
|
|
15
|
-
logo,
|
|
16
7
|
root
|
|
17
8
|
};
|
|
18
9
|
//# sourceMappingURL=index138.js.map
|
package/dist/index138.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index138.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index138.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index14.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const clsx = require("./
|
|
6
|
-
const Button_module = require("./
|
|
5
|
+
const clsx = require("./index63.cjs");
|
|
6
|
+
const Button_module = require("./index64.cjs");
|
|
7
7
|
const Button = react.forwardRef(
|
|
8
8
|
({ className, variant = "primary", size = "md", type = "button", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
9
|
"button",
|
package/dist/index14.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import styles from "./
|
|
3
|
+
import { clsx } from "./index63.js";
|
|
4
|
+
import styles from "./index64.js";
|
|
5
5
|
const Button = forwardRef(
|
|
6
6
|
({ className, variant = "primary", size = "md", type = "button", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
7
7
|
"button",
|
package/dist/index140.cjs
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
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-GPZXT";
|
|
4
|
+
const sm = "krc-sm-QGnvH";
|
|
5
|
+
const md = "krc-md-rQKlJ";
|
|
6
|
+
const lg = "krc-lg-eC2yT";
|
|
4
7
|
const styles = {
|
|
5
|
-
root
|
|
8
|
+
root,
|
|
9
|
+
sm,
|
|
10
|
+
md,
|
|
11
|
+
lg
|
|
6
12
|
};
|
|
7
13
|
exports.default = styles;
|
|
14
|
+
exports.lg = lg;
|
|
15
|
+
exports.md = md;
|
|
8
16
|
exports.root = root;
|
|
17
|
+
exports.sm = sm;
|
|
9
18
|
//# sourceMappingURL=index140.cjs.map
|
package/dist/index140.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index140.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index140.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/index140.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
1
|
+
const root = "krc-root-GPZXT";
|
|
2
|
+
const sm = "krc-sm-QGnvH";
|
|
3
|
+
const md = "krc-md-rQKlJ";
|
|
4
|
+
const lg = "krc-lg-eC2yT";
|
|
2
5
|
const styles = {
|
|
3
|
-
root
|
|
6
|
+
root,
|
|
7
|
+
sm,
|
|
8
|
+
md,
|
|
9
|
+
lg
|
|
4
10
|
};
|
|
5
11
|
export {
|
|
6
12
|
styles as default,
|
|
7
|
-
|
|
13
|
+
lg,
|
|
14
|
+
md,
|
|
15
|
+
root,
|
|
16
|
+
sm
|
|
8
17
|
};
|
|
9
18
|
//# sourceMappingURL=index140.js.map
|
package/dist/index140.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index140.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index140.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index141.cjs
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
13
|
-
}
|
|
14
|
-
const intersect = (a, b) => ({
|
|
15
|
-
top: Math.max(a.top, b.top),
|
|
16
|
-
bottom: Math.min(a.bottom, b.bottom)
|
|
17
|
-
});
|
|
18
|
-
function getClippingRect(element) {
|
|
19
|
-
const root = document.documentElement;
|
|
20
|
-
const viewport = { top: 0, bottom: root.clientHeight };
|
|
21
|
-
let horizontal = null;
|
|
22
|
-
const clippers = [];
|
|
23
|
-
let trapped = false;
|
|
24
|
-
for (let el = element.parentElement; el; el = el.parentElement) {
|
|
25
|
-
const style = getComputedStyle(el);
|
|
26
|
-
if (!trapped && trapsFixed(style)) trapped = true;
|
|
27
|
-
if (el === document.body || el === root) continue;
|
|
28
|
-
const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
|
|
29
|
-
const clipsY = clipsVertically(style);
|
|
30
|
-
if (!clipsX && !clipsY) continue;
|
|
31
|
-
const rect = el.getBoundingClientRect();
|
|
32
|
-
if (clipsX && !horizontal) {
|
|
33
|
-
const left = rect.left + el.clientLeft;
|
|
34
|
-
horizontal = { left, right: left + el.clientWidth };
|
|
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;
|
|
35
12
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
13
|
+
existing.count += 1;
|
|
14
|
+
existing.point = {
|
|
15
|
+
...existing.point,
|
|
16
|
+
weight: weightOf(existing.point) + weightOf(point)
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
return [...byPosition.values()];
|
|
20
|
+
};
|
|
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);
|
|
43
31
|
return {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
points,
|
|
33
|
+
info: {
|
|
34
|
+
total: data.length,
|
|
35
|
+
drawn: points.length,
|
|
36
|
+
merged: represented - points.length,
|
|
37
|
+
dropped: data.length - represented
|
|
38
|
+
}
|
|
48
39
|
};
|
|
49
|
-
}
|
|
50
|
-
exports.
|
|
40
|
+
};
|
|
41
|
+
exports.foldPoints = foldPoints;
|
|
51
42
|
//# sourceMappingURL=index141.cjs.map
|
package/dist/index141.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index141.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index141.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/index141.js
CHANGED
|
@@ -1,51 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
|
|
11
|
-
}
|
|
12
|
-
const intersect = (a, b) => ({
|
|
13
|
-
top: Math.max(a.top, b.top),
|
|
14
|
-
bottom: Math.min(a.bottom, b.bottom)
|
|
15
|
-
});
|
|
16
|
-
function getClippingRect(element) {
|
|
17
|
-
const root = document.documentElement;
|
|
18
|
-
const viewport = { top: 0, bottom: root.clientHeight };
|
|
19
|
-
let horizontal = null;
|
|
20
|
-
const clippers = [];
|
|
21
|
-
let trapped = false;
|
|
22
|
-
for (let el = element.parentElement; el; el = el.parentElement) {
|
|
23
|
-
const style = getComputedStyle(el);
|
|
24
|
-
if (!trapped && trapsFixed(style)) trapped = true;
|
|
25
|
-
if (el === document.body || el === root) continue;
|
|
26
|
-
const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
|
|
27
|
-
const clipsY = clipsVertically(style);
|
|
28
|
-
if (!clipsX && !clipsY) continue;
|
|
29
|
-
const rect = el.getBoundingClientRect();
|
|
30
|
-
if (clipsX && !horizontal) {
|
|
31
|
-
const left = rect.left + el.clientLeft;
|
|
32
|
-
horizontal = { left, right: left + el.clientWidth };
|
|
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;
|
|
33
10
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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);
|
|
41
29
|
return {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
points,
|
|
31
|
+
info: {
|
|
32
|
+
total: data.length,
|
|
33
|
+
drawn: points.length,
|
|
34
|
+
merged: represented - points.length,
|
|
35
|
+
dropped: data.length - represented
|
|
36
|
+
}
|
|
46
37
|
};
|
|
47
|
-
}
|
|
38
|
+
};
|
|
48
39
|
export {
|
|
49
|
-
|
|
40
|
+
foldPoints
|
|
50
41
|
};
|
|
51
42
|
//# sourceMappingURL=index141.js.map
|
package/dist/index141.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index141.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index141.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;"}
|