@hybridcore/ui 1.6.0 → 1.6.2
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/{Button-CvE2gnly.js → Button-C5yquWAB.js} +120 -133
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-CW0UZv1m.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-BvVjD9z3.js} +127 -124
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-BoGwbvrP.js} +41 -43
- package/dist/InputLabel-Dd8RrneV.js +341 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DwqJqzuM.js} +51 -53
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-CxbneZy_.js → Typography-DgsSLCFC.js} +53 -53
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +39 -91
- package/dist/components/data-security-selectors/security-level/logic.js +28 -0
- package/dist/components/data-security-selectors/security-level/styled.js +53 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -85
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -11
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4294 -0
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -14
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -23
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -309
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-Ch_cT8az.js} +69 -68
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/{dialog-DcwXug9J.js → dialog-BYRnCztH.js} +18 -18
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-syTc6m_V.js → index-e9xTIYWt.js} +87 -87
- package/dist/main.d.ts +1722 -562
- package/dist/main.js +161 -128
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/useMobilePicker-CY8ndYRL.js +8279 -0
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-DgAwVTk8.js +0 -742
- package/dist/Add-DJLrrVHm.js +0 -382
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/ButtonBase-2bPw77UP.js +0 -961
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControl-BLbrq4C7.js +0 -1636
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/InputAdornment-DLxWUE6H.js +0 -157
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/Select-BgYwkZgI.js +0 -2613
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-ciszXJ7R.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -4
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/createSvgIcon-BjpIhJ30.js +0 -71
- package/dist/createTheme-DYxDnE9u.js +0 -612
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-CcdvNlgr.js +0 -503
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/property-list-form-zZQfpR0X.js +0 -386
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/useMobilePicker-BLg3Blg8.js +0 -7589
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
- package/dist/utils-Bq0ye5vf.js +0 -115
|
@@ -585,13 +585,13 @@ function Be(t, e, n) {
|
|
|
585
585
|
if (!f[l.index]) {
|
|
586
586
|
if (f[l.index] = !0, g.isDummy)
|
|
587
587
|
continue;
|
|
588
|
-
for (var
|
|
589
|
-
var
|
|
590
|
-
y !== null && (
|
|
588
|
+
for (var p = $e(a), v = [], y = null, w = null, P = 1, z = 1, x = 0; x < p.length; x++) {
|
|
589
|
+
var m = p[x].getDualPoint(), C = m.x, A = m.y;
|
|
590
|
+
y !== null && (P = y - C, z = w - A, P < 0 && (P = -P), z < 0 && (z = -z)), (P > U || z > U) && (v.push([C, A]), y = C, w = A);
|
|
591
591
|
}
|
|
592
|
-
if (g.nonClippedPolygon =
|
|
593
|
-
var
|
|
594
|
-
g.polygon =
|
|
592
|
+
if (g.nonClippedPolygon = v.reverse(), !g.isDummy && We(g.nonClippedPolygon) > 0) {
|
|
593
|
+
var b = Ue(n, g.nonClippedPolygon);
|
|
594
|
+
g.polygon = b, b.site = g, b.length > 0 && u.push(b);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
597
|
}
|
|
@@ -651,20 +651,20 @@ function Ze() {
|
|
|
651
651
|
], o = [[0, 0], i], u = i, f) : u;
|
|
652
652
|
};
|
|
653
653
|
function h() {
|
|
654
|
-
var i, s, c, a, l, g,
|
|
655
|
-
i = o[0][0], s = o[1][0], c = o[0][1], a = o[1][1], l = s - i, g = a - c,
|
|
654
|
+
var i, s, c, a, l, g, p, v, y, w, P = [], z = [];
|
|
655
|
+
i = o[0][0], s = o[1][0], c = o[0][1], a = o[1][1], l = s - i, g = a - c, p = i - l, v = s + l, y = c - g, w = a + g, P[0] = [p, y], P[1] = [p, w], P[2] = [v, w], P[3] = [v, y];
|
|
656
656
|
for (var x = 0; x < 4; x++)
|
|
657
|
-
|
|
657
|
+
z.push(
|
|
658
658
|
new G(
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
P[x][0],
|
|
660
|
+
P[x][1],
|
|
661
661
|
null,
|
|
662
662
|
U,
|
|
663
|
-
new G(
|
|
663
|
+
new G(P[x][0], P[x][1], null, U, null, !0),
|
|
664
664
|
!0
|
|
665
665
|
)
|
|
666
666
|
);
|
|
667
|
-
return
|
|
667
|
+
return z;
|
|
668
668
|
}
|
|
669
669
|
return f;
|
|
670
670
|
}
|
|
@@ -712,10 +712,10 @@ J.prototype.ratio = function() {
|
|
|
712
712
|
function Je() {
|
|
713
713
|
var t, e, n, r, o, u, f, h;
|
|
714
714
|
function i(c, a, l, g) {
|
|
715
|
-
var
|
|
716
|
-
for (t !== g.clip() && (t = g.clip(), e = g.extent(),
|
|
717
|
-
|
|
718
|
-
return [
|
|
715
|
+
var p = !1, v, y;
|
|
716
|
+
for (t !== g.clip() && (t = g.clip(), e = g.extent(), p = !0), p && s(), v = n + f * g.prng()(), y = o + h * g.prng()(); !Qt(t, [v, y]); )
|
|
717
|
+
v = n + f * g.prng()(), y = o + h * g.prng()();
|
|
718
|
+
return [v, y];
|
|
719
719
|
}
|
|
720
720
|
function s() {
|
|
721
721
|
n = e[0][0], r = e[1][0], o = e[0][1], u = e[1][1], f = r - n, h = u - o;
|
|
@@ -741,7 +741,7 @@ tt.prototype = new Error();
|
|
|
741
741
|
function $t(t) {
|
|
742
742
|
var e = 0.01, n = 50, r = 0.01, o = Math.random, u = Je(), f = Qe(), h = 1e-10, i = function(d) {
|
|
743
743
|
return d.weight;
|
|
744
|
-
}, s = e, c = n, a = r, l = o, g = u,
|
|
744
|
+
}, s = e, c = n, a = r, l = o, g = u, p = f, v = Ze(), y = new J(), w = !0, P, z, x, m, C, A, b, F, D, W = ie(Ft), V = re("tick", "end");
|
|
745
745
|
const X = 1, j = 1e3;
|
|
746
746
|
var S;
|
|
747
747
|
function Y(d) {
|
|
@@ -750,132 +750,132 @@ function $t(t) {
|
|
|
750
750
|
function Ot(d, I) {
|
|
751
751
|
return Y(I.x - d.x) + Y(I.y - d.y);
|
|
752
752
|
}
|
|
753
|
-
|
|
753
|
+
D = {
|
|
754
754
|
tick: Wt,
|
|
755
755
|
restart: function() {
|
|
756
|
-
return
|
|
756
|
+
return W.restart(Ft), D;
|
|
757
757
|
},
|
|
758
758
|
stop: function() {
|
|
759
|
-
return
|
|
759
|
+
return W.stop(), D;
|
|
760
760
|
},
|
|
761
761
|
weight: function(d) {
|
|
762
|
-
return arguments.length ? (i = d,
|
|
762
|
+
return arguments.length ? (i = d, w = !0, D) : i;
|
|
763
763
|
},
|
|
764
764
|
convergenceRatio: function(d) {
|
|
765
|
-
return arguments.length ? (s = d,
|
|
765
|
+
return arguments.length ? (s = d, w = !0, D) : s;
|
|
766
766
|
},
|
|
767
767
|
maxIterationCount: function(d) {
|
|
768
|
-
return arguments.length ? (c = d,
|
|
768
|
+
return arguments.length ? (c = d, D) : c;
|
|
769
769
|
},
|
|
770
770
|
minWeightRatio: function(d) {
|
|
771
|
-
return arguments.length ? (a = d,
|
|
771
|
+
return arguments.length ? (a = d, w = !0, D) : a;
|
|
772
772
|
},
|
|
773
773
|
clip: function(d) {
|
|
774
|
-
return arguments.length ? (
|
|
774
|
+
return arguments.length ? (v.clip(d), w = !0, D) : v.clip();
|
|
775
775
|
},
|
|
776
776
|
extent: function(d) {
|
|
777
|
-
return arguments.length ? (
|
|
777
|
+
return arguments.length ? (v.extent(d), w = !0, D) : v.extent();
|
|
778
778
|
},
|
|
779
779
|
size: function(d) {
|
|
780
|
-
return arguments.length ? (
|
|
780
|
+
return arguments.length ? (v.size(d), w = !0, D) : v.size();
|
|
781
781
|
},
|
|
782
782
|
prng: function(d) {
|
|
783
|
-
return arguments.length ? (l = d,
|
|
783
|
+
return arguments.length ? (l = d, w = !0, D) : l;
|
|
784
784
|
},
|
|
785
785
|
initialPosition: function(d) {
|
|
786
|
-
return arguments.length ? (g = d,
|
|
786
|
+
return arguments.length ? (g = d, w = !0, D) : g;
|
|
787
787
|
},
|
|
788
788
|
initialWeight: function(d) {
|
|
789
|
-
return arguments.length ? (
|
|
789
|
+
return arguments.length ? (p = d, w = !0, D) : p;
|
|
790
790
|
},
|
|
791
791
|
state: function() {
|
|
792
|
-
return
|
|
792
|
+
return w && Rt(), {
|
|
793
793
|
ended: F,
|
|
794
|
-
iterationCount:
|
|
795
|
-
convergenceRatio:
|
|
796
|
-
polygons:
|
|
794
|
+
iterationCount: m,
|
|
795
|
+
convergenceRatio: A / z,
|
|
796
|
+
polygons: C
|
|
797
797
|
};
|
|
798
798
|
},
|
|
799
799
|
on: function(d, I) {
|
|
800
|
-
return arguments.length === 1 ? V.on(d) : (V.on(d, I),
|
|
800
|
+
return arguments.length === 1 ? V.on(d) : (V.on(d, I), D);
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
803
|
function Ft() {
|
|
804
|
-
Wt(), V.call("tick",
|
|
804
|
+
Wt(), V.call("tick", D), F && (W.stop(), V.call("end", D));
|
|
805
805
|
}
|
|
806
806
|
function Wt() {
|
|
807
|
-
F || (
|
|
807
|
+
F || (w && Rt(), C = le(C, y.ratio()), m++, A = ge(C), y.add(A), b = A < x, F = b || m >= c);
|
|
808
808
|
}
|
|
809
809
|
function Rt() {
|
|
810
|
-
pe(),
|
|
810
|
+
pe(), P = t.length, z = Math.abs(ft(v.clip())), x = s * z, y.clear().totalArea(z), m = 0, b = !1, C = ae(t, D), F = !1, w = !1;
|
|
811
811
|
}
|
|
812
812
|
function ae(d, I) {
|
|
813
|
-
var N = d.reduce(function(
|
|
814
|
-
return Math.max(
|
|
815
|
-
}, -1 / 0),
|
|
816
|
-
return
|
|
813
|
+
var N = d.reduce(function(k, M) {
|
|
814
|
+
return Math.max(k, i(M));
|
|
815
|
+
}, -1 / 0), E = N * a, _, T;
|
|
816
|
+
return _ = d.map(function(k, M, O) {
|
|
817
817
|
return {
|
|
818
818
|
index: M,
|
|
819
|
-
weight: Math.max(i(
|
|
820
|
-
initialPosition: g(
|
|
821
|
-
initialWeight:
|
|
822
|
-
originalData:
|
|
819
|
+
weight: Math.max(i(k), E),
|
|
820
|
+
initialPosition: g(k, M, O, I),
|
|
821
|
+
initialWeight: p(k, M, O, I),
|
|
822
|
+
originalData: k
|
|
823
823
|
};
|
|
824
|
-
}),
|
|
824
|
+
}), T = he(_, I), S(T), v(T);
|
|
825
825
|
}
|
|
826
826
|
function he(d, I) {
|
|
827
|
-
var N = d.reduce(function(
|
|
828
|
-
return
|
|
829
|
-
}, 0),
|
|
830
|
-
return d.map(function(
|
|
831
|
-
return
|
|
832
|
-
index:
|
|
833
|
-
targetedArea:
|
|
834
|
-
data:
|
|
835
|
-
x:
|
|
836
|
-
y:
|
|
837
|
-
weight:
|
|
827
|
+
var N = d.reduce(function(_, T) {
|
|
828
|
+
return _ += T.weight;
|
|
829
|
+
}, 0), E;
|
|
830
|
+
return d.map(function(_, T, k) {
|
|
831
|
+
return E = _.initialPosition, Qt(v.clip(), E) || (E = u(_, T, k, I)), {
|
|
832
|
+
index: _.index,
|
|
833
|
+
targetedArea: z * _.weight / N,
|
|
834
|
+
data: _,
|
|
835
|
+
x: E[0],
|
|
836
|
+
y: E[1],
|
|
837
|
+
weight: _.initialWeight
|
|
838
838
|
// ArlindNocaj/Voronoi-Treemap-Library uses an epsilonesque initial weight; using heavier initial weights allows faster weight adjustements, hence faster stabilization
|
|
839
839
|
};
|
|
840
840
|
});
|
|
841
841
|
}
|
|
842
842
|
function le(d, I) {
|
|
843
843
|
var N;
|
|
844
|
-
if (ue(d, I), N = d.map(function(
|
|
845
|
-
return
|
|
846
|
-
}), d =
|
|
844
|
+
if (ue(d, I), N = d.map(function(E) {
|
|
845
|
+
return E.site.originalObject;
|
|
846
|
+
}), d = v(N), d.length < P)
|
|
847
847
|
throw new tt("at least 1 site has no area, which is not supposed to arise");
|
|
848
|
-
if (fe(d, I), N = d.map(function(
|
|
849
|
-
return
|
|
850
|
-
}), d =
|
|
848
|
+
if (fe(d, I), N = d.map(function(E) {
|
|
849
|
+
return E.site.originalObject;
|
|
850
|
+
}), d = v(N), d.length < P)
|
|
851
851
|
throw new tt("at least 1 site has no area, which is not supposed to arise");
|
|
852
852
|
return d;
|
|
853
853
|
}
|
|
854
854
|
function ue(d, I) {
|
|
855
|
-
var N = [],
|
|
856
|
-
|
|
857
|
-
for (var mt = 0; mt <
|
|
858
|
-
|
|
855
|
+
var N = [], E = 0.5, _, T, k, M, O, R, L;
|
|
856
|
+
_ = E * I, T = 1 - _;
|
|
857
|
+
for (var mt = 0; mt < P; mt++)
|
|
858
|
+
k = d[mt], M = k.site.originalObject, O = Ie(k), R = O[0] - M.x, L = O[1] - M.y, R *= T, L *= T, M.x += R, M.y += L, N.push(M);
|
|
859
859
|
S(N);
|
|
860
860
|
}
|
|
861
861
|
function fe(d, I) {
|
|
862
|
-
var N = [],
|
|
863
|
-
|
|
864
|
-
for (var L = 0; L <
|
|
865
|
-
|
|
862
|
+
var N = [], E = 0.1, _, T, k, M, O, R;
|
|
863
|
+
_ = E * I;
|
|
864
|
+
for (var L = 0; L < P; L++)
|
|
865
|
+
T = d[L], k = T.site.originalObject, M = ft(T), O = k.targetedArea / M, O = Math.max(O, 1 - E + _), O = Math.min(O, 1 + E - _), R = k.weight * O, R = Math.max(R, h), k.weight = R, N.push(k);
|
|
866
866
|
S(N);
|
|
867
867
|
}
|
|
868
868
|
function Lt(d) {
|
|
869
|
-
var I = 0, N,
|
|
869
|
+
var I = 0, N, E, _, T, k, M, O;
|
|
870
870
|
do {
|
|
871
871
|
if (I > j)
|
|
872
872
|
throw new tt("handleOverweighted0 is looping too much");
|
|
873
873
|
N = !1;
|
|
874
|
-
for (var
|
|
875
|
-
|
|
876
|
-
for (var L =
|
|
877
|
-
if (
|
|
878
|
-
O = M +
|
|
874
|
+
for (var R = 0; R < P; R++) {
|
|
875
|
+
E = d[R];
|
|
876
|
+
for (var L = R + 1; L < P; L++)
|
|
877
|
+
if (_ = d[L], E.weight > _.weight ? (T = E, k = _) : (T = _, k = E), M = Ot(E, _), M < T.weight - k.weight) {
|
|
878
|
+
O = M + k.weight / 2, O = Math.max(O, h), T.weight = O, N = !0, I++;
|
|
879
879
|
break;
|
|
880
880
|
}
|
|
881
881
|
if (N)
|
|
@@ -884,16 +884,16 @@ function $t(t) {
|
|
|
884
884
|
} while (N);
|
|
885
885
|
}
|
|
886
886
|
function ce(d) {
|
|
887
|
-
var I = 0, N,
|
|
887
|
+
var I = 0, N, E, _, T, k, M, O;
|
|
888
888
|
do {
|
|
889
889
|
if (I > j)
|
|
890
890
|
throw new tt("handleOverweighted1 is looping too much");
|
|
891
891
|
N = !1;
|
|
892
|
-
for (var
|
|
893
|
-
|
|
894
|
-
for (var L =
|
|
895
|
-
if (
|
|
896
|
-
O =
|
|
892
|
+
for (var R = 0; R < P; R++) {
|
|
893
|
+
E = d[R];
|
|
894
|
+
for (var L = R + 1; L < P; L++)
|
|
895
|
+
if (_ = d[L], E.weight > _.weight ? (T = E, k = _) : (T = _, k = E), M = Ot(E, _), M < T.weight - k.weight) {
|
|
896
|
+
O = T.weight - k.weight - M, k.weight += O + h, N = !0, I++;
|
|
897
897
|
break;
|
|
898
898
|
}
|
|
899
899
|
if (N)
|
|
@@ -902,8 +902,8 @@ function $t(t) {
|
|
|
902
902
|
} while (N);
|
|
903
903
|
}
|
|
904
904
|
function ge(d) {
|
|
905
|
-
for (var I = 0, N,
|
|
906
|
-
N = d[
|
|
905
|
+
for (var I = 0, N, E, _, T = 0; T < P; T++)
|
|
906
|
+
N = d[T], E = N.site.originalObject, _ = ft(N), I += Math.abs(E.targetedArea - _);
|
|
907
907
|
return I;
|
|
908
908
|
}
|
|
909
909
|
function pe() {
|
|
@@ -918,7 +918,7 @@ function $t(t) {
|
|
|
918
918
|
console.error("unknown 'handleOverweighted' variant; using variant #1"), S = Lt;
|
|
919
919
|
}
|
|
920
920
|
}
|
|
921
|
-
return
|
|
921
|
+
return D;
|
|
922
922
|
}
|
|
923
923
|
function tn() {
|
|
924
924
|
var t = 0.01, e = 50, n = 0.01, r = Math.random, o = [
|
|
@@ -937,34 +937,34 @@ function tn() {
|
|
|
937
937
|
weight: 1
|
|
938
938
|
}
|
|
939
939
|
], l = $t(a).stop();
|
|
940
|
-
function g(
|
|
941
|
-
|
|
940
|
+
function g(v) {
|
|
941
|
+
p(o, v);
|
|
942
942
|
}
|
|
943
|
-
g.convergenceRatio = function(
|
|
944
|
-
return arguments.length ? (h =
|
|
945
|
-
}, g.maxIterationCount = function(
|
|
946
|
-
return arguments.length ? (i =
|
|
947
|
-
}, g.minWeightRatio = function(
|
|
948
|
-
return arguments.length ? (s =
|
|
949
|
-
}, g.clip = function(
|
|
950
|
-
return arguments.length ? (l.clip(
|
|
951
|
-
}, g.extent = function(
|
|
952
|
-
return arguments.length ? (l.extent(
|
|
953
|
-
}, g.size = function(
|
|
954
|
-
return arguments.length ? (l.size(
|
|
955
|
-
}, g.prng = function(
|
|
956
|
-
return arguments.length ? (c =
|
|
943
|
+
g.convergenceRatio = function(v) {
|
|
944
|
+
return arguments.length ? (h = v, g) : h;
|
|
945
|
+
}, g.maxIterationCount = function(v) {
|
|
946
|
+
return arguments.length ? (i = v, g) : i;
|
|
947
|
+
}, g.minWeightRatio = function(v) {
|
|
948
|
+
return arguments.length ? (s = v, g) : s;
|
|
949
|
+
}, g.clip = function(v) {
|
|
950
|
+
return arguments.length ? (l.clip(v), o = l.clip(), u = l.extent(), f = l.size(), g) : o;
|
|
951
|
+
}, g.extent = function(v) {
|
|
952
|
+
return arguments.length ? (l.extent(v), o = l.clip(), u = l.extent(), f = l.size(), g) : u;
|
|
953
|
+
}, g.size = function(v) {
|
|
954
|
+
return arguments.length ? (l.size(v), o = l.clip(), u = l.extent(), f = l.size(), g) : f;
|
|
955
|
+
}, g.prng = function(v) {
|
|
956
|
+
return arguments.length ? (c = v, g) : c;
|
|
957
957
|
};
|
|
958
|
-
function v
|
|
959
|
-
var
|
|
960
|
-
if (y.polygon =
|
|
961
|
-
|
|
962
|
-
return
|
|
958
|
+
function p(v, y) {
|
|
959
|
+
var w;
|
|
960
|
+
if (y.polygon = v, y.height != 0) {
|
|
961
|
+
w = $t(y.children).clip(v).weight(function(z) {
|
|
962
|
+
return z.value;
|
|
963
963
|
}).convergenceRatio(h).maxIterationCount(i).minWeightRatio(s).prng(c).stop();
|
|
964
|
-
for (var
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
964
|
+
for (var P = w.state(); !P.ended; )
|
|
965
|
+
w.tick(), P = w.state();
|
|
966
|
+
P.polygons.forEach(function(z) {
|
|
967
|
+
p(z, z.site.originalObject.data.originalData);
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
970
|
}
|
|
@@ -1034,9 +1034,9 @@ Tt.exports;
|
|
|
1034
1034
|
};
|
|
1035
1035
|
return a.double = function() {
|
|
1036
1036
|
do
|
|
1037
|
-
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296,
|
|
1038
|
-
while (
|
|
1039
|
-
return
|
|
1037
|
+
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296, p = (l + g) / (1 << 21);
|
|
1038
|
+
while (p === 0);
|
|
1039
|
+
return p;
|
|
1040
1040
|
}, a.int32 = s.next, a.quick = a, c && (typeof c == "object" && u(c, s), a.state = function() {
|
|
1041
1041
|
return u(s, {});
|
|
1042
1042
|
}), a;
|
|
@@ -1069,9 +1069,9 @@ kt.exports;
|
|
|
1069
1069
|
};
|
|
1070
1070
|
return a.double = function() {
|
|
1071
1071
|
do
|
|
1072
|
-
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296,
|
|
1073
|
-
while (
|
|
1074
|
-
return
|
|
1072
|
+
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296, p = (l + g) / (1 << 21);
|
|
1073
|
+
while (p === 0);
|
|
1074
|
+
return p;
|
|
1075
1075
|
}, a.int32 = s.next, a.quick = a, c && (typeof c == "object" && u(c, s), a.state = function() {
|
|
1076
1076
|
return u(s, {});
|
|
1077
1077
|
}), a;
|
|
@@ -1116,9 +1116,9 @@ Nt.exports;
|
|
|
1116
1116
|
};
|
|
1117
1117
|
return a.double = function() {
|
|
1118
1118
|
do
|
|
1119
|
-
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296,
|
|
1120
|
-
while (
|
|
1121
|
-
return
|
|
1119
|
+
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296, p = (l + g) / (1 << 21);
|
|
1120
|
+
while (p === 0);
|
|
1121
|
+
return p;
|
|
1122
1122
|
}, a.int32 = s.next, a.quick = a, c && (c.x && u(c, s), a.state = function() {
|
|
1123
1123
|
return u(s, {});
|
|
1124
1124
|
}), a;
|
|
@@ -1136,16 +1136,16 @@ It.exports;
|
|
|
1136
1136
|
function o(h) {
|
|
1137
1137
|
var i = this;
|
|
1138
1138
|
i.next = function() {
|
|
1139
|
-
var c = i.w, a = i.X, l = i.i, g,
|
|
1140
|
-
return i.w = c = c + 1640531527 | 0,
|
|
1139
|
+
var c = i.w, a = i.X, l = i.i, g, p;
|
|
1140
|
+
return i.w = c = c + 1640531527 | 0, p = a[l + 34 & 127], g = a[l = l + 1 & 127], p ^= p << 13, g ^= g << 17, p ^= p >>> 15, g ^= g >>> 12, p = a[l] = p ^ g, i.i = l, p + (c ^ c >>> 16) | 0;
|
|
1141
1141
|
};
|
|
1142
1142
|
function s(c, a) {
|
|
1143
|
-
var l, g,
|
|
1144
|
-
for (a === (a | 0) ? (g = a, a = null) : (a = a + "\0", g = 0,
|
|
1145
|
-
a && (g ^= a.charCodeAt((
|
|
1146
|
-
for (
|
|
1147
|
-
g =
|
|
1148
|
-
c.w = y, c.X =
|
|
1143
|
+
var l, g, p, v, y, w = [], P = 128;
|
|
1144
|
+
for (a === (a | 0) ? (g = a, a = null) : (a = a + "\0", g = 0, P = Math.max(P, a.length)), p = 0, v = -32; v < P; ++v)
|
|
1145
|
+
a && (g ^= a.charCodeAt((v + 32) % a.length)), v === 0 && (y = g), g ^= g << 10, g ^= g >>> 15, g ^= g << 4, g ^= g >>> 13, v >= 0 && (y = y + 1640531527 | 0, l = w[v & 127] ^= g + y, p = l == 0 ? p + 1 : 0);
|
|
1146
|
+
for (p >= 128 && (w[(a && a.length || 0) & 127] = -1), p = 127, v = 4 * 128; v > 0; --v)
|
|
1147
|
+
g = w[p + 34 & 127], l = w[p = p + 1 & 127], g ^= g << 13, l ^= l << 17, g ^= g >>> 15, l ^= l >>> 12, w[p] = g ^ l;
|
|
1148
|
+
c.w = y, c.X = w, c.i = p;
|
|
1149
1149
|
}
|
|
1150
1150
|
s(i, h);
|
|
1151
1151
|
}
|
|
@@ -1159,9 +1159,9 @@ It.exports;
|
|
|
1159
1159
|
};
|
|
1160
1160
|
return a.double = function() {
|
|
1161
1161
|
do
|
|
1162
|
-
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296,
|
|
1163
|
-
while (
|
|
1164
|
-
return
|
|
1162
|
+
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296, p = (l + g) / (1 << 21);
|
|
1163
|
+
while (p === 0);
|
|
1164
|
+
return p;
|
|
1165
1165
|
}, a.int32 = s.next, a.quick = a, c && (c.X && u(c, s), a.state = function() {
|
|
1166
1166
|
return u(s, {});
|
|
1167
1167
|
}), a;
|
|
@@ -1180,8 +1180,8 @@ Mt.exports;
|
|
|
1180
1180
|
function o(h) {
|
|
1181
1181
|
var i = this, s = "";
|
|
1182
1182
|
i.next = function() {
|
|
1183
|
-
var a = i.b, l = i.c, g = i.d,
|
|
1184
|
-
return a = a << 25 ^ a >>> 7 ^ l, l = l - g | 0, g = g << 24 ^ g >>> 8 ^
|
|
1183
|
+
var a = i.b, l = i.c, g = i.d, p = i.a;
|
|
1184
|
+
return a = a << 25 ^ a >>> 7 ^ l, l = l - g | 0, g = g << 24 ^ g >>> 8 ^ p, p = p - a | 0, i.b = a = a << 20 ^ a >>> 12 ^ l, i.c = l = l - g | 0, i.d = g << 16 ^ l >>> 16 ^ p, i.a = p - a | 0;
|
|
1185
1185
|
}, i.a = 0, i.b = 0, i.c = -1640531527, i.d = 1367130551, h === Math.floor(h) ? (i.a = h / 4294967296 | 0, i.b = h | 0) : s += h;
|
|
1186
1186
|
for (var c = 0; c < s.length + 20; c++)
|
|
1187
1187
|
i.b ^= s.charCodeAt(c) | 0, i.next();
|
|
@@ -1195,9 +1195,9 @@ Mt.exports;
|
|
|
1195
1195
|
};
|
|
1196
1196
|
return a.double = function() {
|
|
1197
1197
|
do
|
|
1198
|
-
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296,
|
|
1199
|
-
while (
|
|
1200
|
-
return
|
|
1198
|
+
var l = s.next() >>> 11, g = (s.next() >>> 0) / 4294967296, p = (l + g) / (1 << 21);
|
|
1199
|
+
while (p === 0);
|
|
1200
|
+
return p;
|
|
1201
1201
|
}, a.int32 = s.next, a.quick = a, c && (typeof c == "object" && u(c, s), a.state = function() {
|
|
1202
1202
|
return u(s, {});
|
|
1203
1203
|
}), a;
|
|
@@ -1216,77 +1216,77 @@ const hn = {}, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1216
1216
|
(function(t) {
|
|
1217
1217
|
(function(e, n, r) {
|
|
1218
1218
|
var o = 256, u = 6, f = 52, h = "random", i = r.pow(o, u), s = r.pow(2, f), c = s * 2, a = o - 1, l;
|
|
1219
|
-
function g(x,
|
|
1220
|
-
var
|
|
1221
|
-
|
|
1222
|
-
var
|
|
1223
|
-
|
|
1219
|
+
function g(x, m, C) {
|
|
1220
|
+
var A = [];
|
|
1221
|
+
m = m == !0 ? { entropy: !0 } : m || {};
|
|
1222
|
+
var b = w(y(
|
|
1223
|
+
m.entropy ? [x, z(n)] : x ?? P(),
|
|
1224
1224
|
3
|
|
1225
|
-
),
|
|
1226
|
-
for (var
|
|
1227
|
-
|
|
1228
|
-
for (;
|
|
1229
|
-
|
|
1230
|
-
return (
|
|
1225
|
+
), A), F = new p(A), D = function() {
|
|
1226
|
+
for (var W = F.g(u), V = i, X = 0; W < s; )
|
|
1227
|
+
W = (W + X) * o, V *= o, X = F.g(1);
|
|
1228
|
+
for (; W >= c; )
|
|
1229
|
+
W /= 2, V /= 2, X >>>= 1;
|
|
1230
|
+
return (W + X) / V;
|
|
1231
1231
|
};
|
|
1232
|
-
return
|
|
1232
|
+
return D.int32 = function() {
|
|
1233
1233
|
return F.g(4) | 0;
|
|
1234
|
-
},
|
|
1234
|
+
}, D.quick = function() {
|
|
1235
1235
|
return F.g(4) / 4294967296;
|
|
1236
|
-
},
|
|
1237
|
-
return j && (j.S &&
|
|
1238
|
-
return
|
|
1239
|
-
}), X ? (r[h] =
|
|
1236
|
+
}, D.double = D, w(z(F.S), n), (m.pass || C || function(W, V, X, j) {
|
|
1237
|
+
return j && (j.S && v(j, F), W.state = function() {
|
|
1238
|
+
return v(F, {});
|
|
1239
|
+
}), X ? (r[h] = W, V) : W;
|
|
1240
1240
|
})(
|
|
1241
|
-
P,
|
|
1242
1241
|
D,
|
|
1243
|
-
|
|
1244
|
-
|
|
1242
|
+
b,
|
|
1243
|
+
"global" in m ? m.global : this == r,
|
|
1244
|
+
m.state
|
|
1245
1245
|
);
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
var
|
|
1249
|
-
for (
|
|
1250
|
-
|
|
1251
|
-
for (
|
|
1252
|
-
|
|
1253
|
-
(
|
|
1254
|
-
for (var V, X = 0, j =
|
|
1247
|
+
function p(x) {
|
|
1248
|
+
var m, C = x.length, A = this, b = 0, F = A.i = A.j = 0, D = A.S = [];
|
|
1249
|
+
for (C || (x = [C++]); b < o; )
|
|
1250
|
+
D[b] = b++;
|
|
1251
|
+
for (b = 0; b < o; b++)
|
|
1252
|
+
D[b] = D[F = a & F + x[b % C] + (m = D[b])], D[F] = m;
|
|
1253
|
+
(A.g = function(W) {
|
|
1254
|
+
for (var V, X = 0, j = A.i, S = A.j, Y = A.S; W--; )
|
|
1255
1255
|
V = Y[j = a & j + 1], X = X * o + Y[a & (Y[j] = Y[S = a & S + V]) + (Y[S] = V)];
|
|
1256
|
-
return
|
|
1256
|
+
return A.i = j, A.j = S, X;
|
|
1257
1257
|
})(o);
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1259
|
+
function v(x, m) {
|
|
1260
|
+
return m.i = x.i, m.j = x.j, m.S = x.S.slice(), m;
|
|
1261
1261
|
}
|
|
1262
|
-
function y(x,
|
|
1263
|
-
var
|
|
1264
|
-
if (
|
|
1265
|
-
for (
|
|
1262
|
+
function y(x, m) {
|
|
1263
|
+
var C = [], A = typeof x, b;
|
|
1264
|
+
if (m && A == "object")
|
|
1265
|
+
for (b in x)
|
|
1266
1266
|
try {
|
|
1267
|
-
|
|
1267
|
+
C.push(y(x[b], m - 1));
|
|
1268
1268
|
} catch {
|
|
1269
1269
|
}
|
|
1270
|
-
return
|
|
1270
|
+
return C.length ? C : A == "string" ? x : x + "\0";
|
|
1271
1271
|
}
|
|
1272
|
-
function
|
|
1273
|
-
for (var
|
|
1274
|
-
|
|
1275
|
-
return
|
|
1272
|
+
function w(x, m) {
|
|
1273
|
+
for (var C = x + "", A, b = 0; b < C.length; )
|
|
1274
|
+
m[a & b] = a & (A ^= m[a & b] * 19) + C.charCodeAt(b++);
|
|
1275
|
+
return z(m);
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function P() {
|
|
1278
1278
|
try {
|
|
1279
1279
|
var x;
|
|
1280
|
-
return l && (x = l.randomBytes) ? x = x(o) : (x = new Uint8Array(o), (e.crypto || e.msCrypto).getRandomValues(x)),
|
|
1280
|
+
return l && (x = l.randomBytes) ? x = x(o) : (x = new Uint8Array(o), (e.crypto || e.msCrypto).getRandomValues(x)), z(x);
|
|
1281
1281
|
} catch {
|
|
1282
|
-
var
|
|
1283
|
-
return [+/* @__PURE__ */ new Date(), e,
|
|
1282
|
+
var m = e.navigator, C = m && m.plugins;
|
|
1283
|
+
return [+/* @__PURE__ */ new Date(), e, C, e.screen, z(n)];
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function z(x) {
|
|
1287
1287
|
return String.fromCharCode.apply(0, x);
|
|
1288
1288
|
}
|
|
1289
|
-
if (
|
|
1289
|
+
if (w(r.random(), n), t.exports) {
|
|
1290
1290
|
t.exports = g;
|
|
1291
1291
|
try {
|
|
1292
1292
|
l = un;
|
|
@@ -1357,8 +1357,8 @@ class xt extends Jt {
|
|
|
1357
1357
|
let f = 1 / 0, h = -1 / 0;
|
|
1358
1358
|
for (let a = 0, l = n.length; a < l; a++) {
|
|
1359
1359
|
const g = n[a];
|
|
1360
|
-
let
|
|
1361
|
-
o.push([
|
|
1360
|
+
let p = g[0] * u, v = g[1] * u;
|
|
1361
|
+
o.push([p, v]), f = Math.min(f, p), h = Math.max(h, p);
|
|
1362
1362
|
}
|
|
1363
1363
|
r.set("coordinates", o);
|
|
1364
1364
|
const i = e.get("fill"), s = e.get("fillPattern");
|
|
@@ -1428,38 +1428,32 @@ const Tn = (t) => {
|
|
|
1428
1428
|
sx: h,
|
|
1429
1429
|
...i
|
|
1430
1430
|
} = e, s = be(), a = `hc-drill-down-voronoi-treemap-${Pe().replace(/:/g, "")}`, l = ze(null);
|
|
1431
|
-
|
|
1431
|
+
let g = null;
|
|
1432
|
+
n.length < 2 ? g = "DrillDownVoronoiTreemap requires at least 2 dimensions" : r.length < 1 && (g = "DrillDownVoronoiTreemap requires at least 1 value"), _e(() => {
|
|
1433
|
+
if (g) return;
|
|
1432
1434
|
let v;
|
|
1433
1435
|
return v = setTimeout(() => {
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
}
|
|
1438
|
-
if (r.length < 1) {
|
|
1439
|
-
console.error("DrillDownVoronoiTreemap requires at least 1 value");
|
|
1440
|
-
return;
|
|
1441
|
-
}
|
|
1442
|
-
const p = xe.new(a);
|
|
1443
|
-
l.current = p;
|
|
1444
|
-
const y = we.new(p);
|
|
1445
|
-
y.rule("Polygon", ["hierarchy", "node", "shape", "depth0"]).setAll({ strokeOpacity: 0, fillOpacity: 0 }), y.rule("Polygon", ["hierarchy", "node", "shape", "depth1"]).setAll({
|
|
1436
|
+
const y = xe.new(a);
|
|
1437
|
+
l.current = y;
|
|
1438
|
+
const w = we.new(y);
|
|
1439
|
+
w.rule("Polygon", ["hierarchy", "node", "shape", "depth0"]).setAll({ strokeOpacity: 0, fillOpacity: 0 }), w.rule("Polygon", ["hierarchy", "node", "shape", "depth1"]).setAll({
|
|
1446
1440
|
strokeWidth: 5,
|
|
1447
1441
|
fillOpacity: 1,
|
|
1448
1442
|
stroke: Ht(0)
|
|
1449
|
-
}),
|
|
1443
|
+
}), w.rule("Polygon", ["hierarchy", "node", "shape", "depth2"]).setAll({
|
|
1450
1444
|
fillOpacity: 0,
|
|
1451
1445
|
strokeWidth: 1,
|
|
1452
1446
|
stroke: Ht(0)
|
|
1453
|
-
}),
|
|
1454
|
-
const
|
|
1455
|
-
Te.new(
|
|
1447
|
+
}), w.rule("HierarchyNode", ["last"]).setAll({ cursorOverStyle: "pointer" }), w.rule("Label", ["node"]).setAll({ fontSize: 11, minScale: 0.7 }), w.rule("Label", ["node", "depth0"]).setAll({ forceHidden: !0 }), w.rule("Label", ["node", "depth1"]).setAll({ forceHidden: !0 }), y.setThemes([me.new(y), w]);
|
|
1448
|
+
const z = y.container.children.push(
|
|
1449
|
+
Te.new(y, {
|
|
1456
1450
|
width: Vt,
|
|
1457
1451
|
height: Vt,
|
|
1458
1452
|
wheelable: !0,
|
|
1459
1453
|
pinchZoom: !0
|
|
1460
1454
|
})
|
|
1461
1455
|
).contents.children.push(
|
|
1462
|
-
xt.new(
|
|
1456
|
+
xt.new(y, {
|
|
1463
1457
|
paddingLeft: 5,
|
|
1464
1458
|
paddingRight: 5,
|
|
1465
1459
|
paddingTop: 5,
|
|
@@ -1476,34 +1470,34 @@ const Tn = (t) => {
|
|
|
1476
1470
|
cornerCount: 120
|
|
1477
1471
|
})
|
|
1478
1472
|
);
|
|
1479
|
-
|
|
1480
|
-
const A =
|
|
1473
|
+
z.set("colors", De(y, f)), z.labels.template.adapters.add("x", function(m, C) {
|
|
1474
|
+
const A = C.dataItem;
|
|
1481
1475
|
if (A) {
|
|
1482
1476
|
const b = A.get("polygon");
|
|
1483
1477
|
if (b) {
|
|
1484
|
-
const
|
|
1485
|
-
|
|
1478
|
+
const F = b.getPrivate("minX", 0), D = b.getPrivate("maxX", 0), W = A.dataContext;
|
|
1479
|
+
W && (D - F < 50 ? C.set("text", W.id) : C.set("text", W.name));
|
|
1486
1480
|
}
|
|
1487
1481
|
}
|
|
1488
|
-
return
|
|
1489
|
-
}),
|
|
1490
|
-
const
|
|
1491
|
-
|
|
1482
|
+
return m;
|
|
1483
|
+
}), z.nodes.template.events.on("click", function(m) {
|
|
1484
|
+
const C = m.target.dataItem;
|
|
1485
|
+
C && (C.get("children") || z.selectDataItem(C.get("parent")));
|
|
1492
1486
|
});
|
|
1493
|
-
const
|
|
1494
|
-
if (
|
|
1487
|
+
const x = (m, C, A) => {
|
|
1488
|
+
if (m === "date") {
|
|
1495
1489
|
let b = "YYYY";
|
|
1496
|
-
return
|
|
1490
|
+
return C.includes("month") ? b = "MMM YYYY" : C.includes("day") && (b = "DD MMM YYYY"), Ce(A).format(b);
|
|
1497
1491
|
}
|
|
1498
1492
|
return A;
|
|
1499
1493
|
};
|
|
1500
1494
|
if (n.length > 1) {
|
|
1501
|
-
const
|
|
1502
|
-
Object.keys(
|
|
1503
|
-
|
|
1504
|
-
name:
|
|
1505
|
-
children:
|
|
1506
|
-
name:
|
|
1495
|
+
const m = Ae.groupBy(o, n[0].value), C = [];
|
|
1496
|
+
Object.keys(m).forEach((A) => {
|
|
1497
|
+
C.push({
|
|
1498
|
+
name: x(n[0].type, n[0].value, A),
|
|
1499
|
+
children: m[A].map((b) => ({
|
|
1500
|
+
name: x(
|
|
1507
1501
|
n[1].type,
|
|
1508
1502
|
n[1].value,
|
|
1509
1503
|
b[n[1].value]
|
|
@@ -1511,16 +1505,16 @@ const Tn = (t) => {
|
|
|
1511
1505
|
[r[0].dataFieldName]: b[r[0].dataFieldName]
|
|
1512
1506
|
}))
|
|
1513
1507
|
});
|
|
1514
|
-
}),
|
|
1508
|
+
}), z.data.setAll([{ children: C }]);
|
|
1515
1509
|
}
|
|
1516
|
-
|
|
1510
|
+
z.set("selectedDataItem", z.dataItems[0]), z.appear(1e3, 100);
|
|
1517
1511
|
}, u), () => {
|
|
1518
|
-
var
|
|
1519
|
-
v && clearTimeout(v), (
|
|
1512
|
+
var y;
|
|
1513
|
+
v && clearTimeout(v), (y = l.current) == null || y.dispose(), l.current = null;
|
|
1520
1514
|
};
|
|
1521
1515
|
}, [o, n, r, s.palette.mode, f]);
|
|
1522
|
-
const
|
|
1523
|
-
return { chartId: a, ownerState:
|
|
1516
|
+
const p = { ...e };
|
|
1517
|
+
return { chartId: a, ownerState: p, sx: h, error: g, other: i };
|
|
1524
1518
|
};
|
|
1525
1519
|
export {
|
|
1526
1520
|
Tn as useDrillDownVoronoiTreemapLogic
|