@orangelogic/design-system 2.162.0 → 2.164.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/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
- package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
- package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
- package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
- package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
- package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
- package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
- package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
- package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
- package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
- package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
- package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
- package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
- package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
- package/library/chunks/Slice.BVI8rfHI.js +34 -0
- package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
- package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
- package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
- package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
- package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
- package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
- package/library/chunks/_baseEach.DQk0As2f.js +32 -0
- package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
- package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
- package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
- package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
- package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
- package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
- package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
- package/library/chunks/arc.xqNd6x9S.js +84 -0
- package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
- package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
- package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
- package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
- package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
- package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
- package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
- package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
- package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
- package/library/chunks/channel.s_XjcUYI.js +5 -0
- package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
- package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
- package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
- package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
- package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
- package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
- package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
- package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
- package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
- package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
- package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
- package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
- package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
- package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
- package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
- package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
- package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
- package/library/chunks/constant.BQ4UJ-kW.js +12 -0
- package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
- package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
- package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
- package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
- package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
- package/library/chunks/debounce.Bv1rtE8D.js +55 -0
- package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
- package/library/chunks/descending.AD5n-tFs.js +10 -0
- package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
- package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
- package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
- package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
- package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
- package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
- package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
- package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
- package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
- package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
- package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
- package/library/chunks/flow.aZRVH3p1.js +1304 -0
- package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
- package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
- package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
- package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
- package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
- package/library/chunks/graph.XHMI5hta.js +653 -0
- package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
- package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
- package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
- package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
- package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
- package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
- package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
- package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
- package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
- package/library/chunks/index.BDn1QW8J.js +167 -0
- package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
- package/library/chunks/index.thKLME8E.js +77 -0
- package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
- package/library/chunks/init.DjUOC4st.js +16 -0
- package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
- package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
- package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
- package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
- package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
- package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
- package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
- package/library/chunks/katex.DoRnZ_sp.js +11682 -0
- package/library/chunks/layout.DZcMFKol.js +1446 -0
- package/library/chunks/line.DP-iSN_J.js +157 -0
- package/library/chunks/linear.TNHhsH1m.js +215 -0
- package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
- package/library/chunks/map.DJnohTgl.js +18 -0
- package/library/chunks/markdown.I1AJG75v.js +4180 -0
- package/library/chunks/math.D2lKC7md.js +22 -0
- package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
- package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
- package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
- package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
- package/library/chunks/ordinal.bqVaUip-.js +61 -0
- package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
- package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
- package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
- package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
- package/library/chunks/position-picker.DjnhxIKF.js +4 -0
- package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
- package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
- package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
- package/library/chunks/range.DdOGybNB.js +9 -0
- package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
- package/library/chunks/sankey.BR94A-8L.js +294 -0
- package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
- package/library/chunks/select.C6_sM3Pr.js +7 -0
- package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
- package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
- package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
- package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
- package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
- package/library/chunks/step.almIqwJ6.js +51 -0
- package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
- package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
- package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
- package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
- package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
- package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
- package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
- package/library/chunks/toNumber.MuDz8DgU.js +31 -0
- package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
- package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
- package/library/chunks/transformation.8uLv6uwG.js +264 -0
- package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
- package/library/chunks/value.BXEGBVFV.js +44 -0
- package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
- package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
- package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
- package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
- package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
- package/library/chunks/xy.BO6U5QrZ.js +294 -0
- package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
- package/library/components/alert.js +2 -2
- package/library/components/am-chart.js +3 -3
- package/library/components/animated-image.js +2 -2
- package/library/components/animation.js +2 -2
- package/library/components/array-line-clamp.js +1 -1
- package/library/components/asset-link-format.js +8 -7
- package/library/components/atoms.js +29 -29
- package/library/components/audio.js +3 -3
- package/library/components/avatar.js +2 -2
- package/library/components/border-input-group.js +1 -1
- package/library/components/breadcrumb-item.js +1 -1
- package/library/components/breadcrumb.js +1 -1
- package/library/components/button.js +3 -3
- package/library/components/checkbox.js +195 -18
- package/library/components/color-picker.js +4 -4
- package/library/components/color-swatch-group.js +5 -5
- package/library/components/color-swatch.js +2 -2
- package/library/components/confirm-popover.js +3 -3
- package/library/components/copy-button.js +2 -2
- package/library/components/corner-position-input-group.js +2 -2
- package/library/components/cropper.js +4 -4
- package/library/components/date-calendar.js +1 -1
- package/library/components/details.js +2 -2
- package/library/components/dialog.js +3 -3
- package/library/components/diff.js +1 -1
- package/library/components/divider.js +1 -1
- package/library/components/document-viewer.js +3 -3
- package/library/components/dot-pagination.js +2 -2
- package/library/components/drawer.js +3 -3
- package/library/components/dropdown.js +2 -2
- package/library/components/dynamic-select.js +6 -6
- package/library/components/e-chart.js +1 -1
- package/library/components/element-clamp.js +2 -2
- package/library/components/file-on-demand.js +350 -374
- package/library/components/folder-select.js +5 -5
- package/library/components/format-time.js +2 -2
- package/library/components/grid-item.js +1 -1
- package/library/components/header.js +2 -2
- package/library/components/hub-connection.js +2 -2
- package/library/components/icon-button.js +2 -2
- package/library/components/icon.js +2 -2
- package/library/components/iframe.js +2 -2
- package/library/components/image-comparer.js +2 -2
- package/library/components/image.js +3 -3
- package/library/components/include.js +1 -1
- package/library/components/input.js +3 -3
- package/library/components/line-clamp.js +1 -1
- package/library/components/markdown.js +11 -2704
- package/library/components/masonry.js +76 -73
- package/library/components/menu-item.js +2 -2
- package/library/components/molecules.js +3 -3
- package/library/components/mutation-observer.js +1 -1
- package/library/components/option.js +3 -3
- package/library/components/organisms.js +2 -2
- package/library/components/padding-input-group.js +1 -1
- package/library/components/pagination.js +6 -6
- package/library/components/position-picker.js +25 -25
- package/library/components/qr-code.js +1 -1
- package/library/components/radio-button.js +1 -1
- package/library/components/radio-card.js +1 -1
- package/library/components/radio-group.js +1 -1
- package/library/components/radio.js +2 -2
- package/library/components/range.js +1 -1
- package/library/components/rating.js +2 -2
- package/library/components/resize-observer.js +1 -1
- package/library/components/select.js +3 -3
- package/library/components/shadow-input-group.js +1 -1
- package/library/components/share-option-list.js +2 -2
- package/library/components/sidebar.js +3 -3
- package/library/components/size-input-group.js +3 -3
- package/library/components/split-panel.js +1 -1
- package/library/components/step.js +1 -1
- package/library/components/stepper-wizard.js +1 -1
- package/library/components/stepper.js +1 -1
- package/library/components/switch.js +1 -1
- package/library/components/tab-group.js +4 -4
- package/library/components/tab-panel.js +1 -1
- package/library/components/tab.js +2 -2
- package/library/components/tag.js +1 -1
- package/library/components/textarea.js +1 -1
- package/library/components/timecode.js +1 -1
- package/library/components/tooltip.js +1 -1
- package/library/components/tree-item.js +4 -4
- package/library/components/tree.js +2 -2
- package/library/components/typeface.js +2 -2
- package/library/components/types.js +122327 -120686
- package/library/components/video.js +2 -2
- package/library/package.json +2 -1
- package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
- package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
- package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
- package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
- package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
- package/library/packages/events/src/events.d.ts +1 -0
- package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
- package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
- package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
- package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
- package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
- package/library/packages/molecules/src/index.d.ts +1 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
- package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
- package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
- package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
- package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
- package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
- package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
- package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
- package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
- package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
- package/library/packages/types/src/asset-link-format.d.ts +19 -0
- package/library/packages/types/src/markdown-viewer.d.ts +12 -0
- package/library/packages/types/src/tree-item.d.ts +12 -0
- package/library/react-web-component.d.ts +86 -8
- package/library/utils.js +64 -65
- package/package.json +2 -1
- package/library/chunks/Slice.C5lVu2g_.js +0 -120
- package/library/chunks/_baseXor.VohG8cOH.js +0 -116
- package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
- package/library/chunks/checkbox.3i2j3PHc.js +0 -198
- package/library/chunks/content-builder.BU8X7I6V.js +0 -60
- package/library/chunks/debounce.C_J-9zJi.js +0 -82
- package/library/chunks/flow.hz0UDjCb.js +0 -1594
- package/library/chunks/index.DU0XUO4k.js +0 -176
- package/library/chunks/transformation.D1alV_s4.js +0 -189
- package/library/chunks/xy.BNgyrwGD.js +0 -333
|
@@ -1,32 +1,25 @@
|
|
|
1
|
-
import { D as
|
|
2
|
-
import { N as
|
|
3
|
-
import { C as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { P as
|
|
10
|
-
import { a as
|
|
11
|
-
import { r as
|
|
12
|
-
function
|
|
13
|
-
s.x0 = Math.round(s.x0), s.y0 = Math.round(s.y0), s.x1 = Math.round(s.x1), s.y1 = Math.round(s.y1);
|
|
14
|
-
}
|
|
15
|
-
function Ft(s, t, e, i, n) {
|
|
16
|
-
for (var a = s.children, o, h = -1, r = a.length, l = s.value && (i - t) / s.value; ++h < r; )
|
|
17
|
-
o = a[h], o.y0 = e, o.y1 = n, o.x0 = t, o.x1 = t += o.value * l;
|
|
18
|
-
}
|
|
19
|
-
function Je() {
|
|
1
|
+
import { D as di, F as pi, aj as vi, x as Ut, I as yi, q as E, ak as X, H as Ft, C as yt, L as Z, T as K, b as Ge, R as ae, m as G, J as je, e as P, a0 as xe, ao as mi, a as V, _ as _e, G as Ue, be as xi, a2 as we, an as $t, r as ut, a$ as _i, f as De, h as wi, j as Di, aU as ke } from "./am-chart.Cr-vMjcY.js";
|
|
2
|
+
import { N as ki, h as Ni } from "./index.CZJTjkLp.js";
|
|
3
|
+
import { C as Kt } from "./Circle.6LomW0ej.js";
|
|
4
|
+
import { t as bi, d as Ai } from "./timer.B39XOBYL.js";
|
|
5
|
+
import { i as Pi } from "./index.BDn1QW8J.js";
|
|
6
|
+
import { r as Ci, a as oe, b as $e, t as Ne, s as be } from "./index.thKLME8E.js";
|
|
7
|
+
import { S as Ri } from "./Slice.BVI8rfHI.js";
|
|
8
|
+
import { R as Ti } from "./RadialLabel.7ka6ND-t.js";
|
|
9
|
+
import { P as zi } from "./Polygon.CU2sMltE.js";
|
|
10
|
+
import { a as Li } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
11
|
+
import { r as Si } from "./___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
|
|
12
|
+
function Ke() {
|
|
20
13
|
var s = 1, t = 1, e = 0, i = !1;
|
|
21
14
|
function n(o) {
|
|
22
15
|
var h = o.height + 1;
|
|
23
|
-
return o.x0 = o.y0 = e, o.x1 = s, o.y1 = t / h, o.eachBefore(a(t, h)), i && o.eachBefore(
|
|
16
|
+
return o.x0 = o.y0 = e, o.x1 = s, o.y1 = t / h, o.eachBefore(a(t, h)), i && o.eachBefore(Ci), o;
|
|
24
17
|
}
|
|
25
18
|
function a(o, h) {
|
|
26
19
|
return function(r) {
|
|
27
|
-
r.children &&
|
|
28
|
-
var l = r.x0, u = r.y0,
|
|
29
|
-
|
|
20
|
+
r.children && oe(r, r.x0, o * (r.depth + 1) / h, r.x1, o * (r.depth + 2) / h);
|
|
21
|
+
var l = r.x0, u = r.y0, c = r.x1 - e, f = r.y1 - e;
|
|
22
|
+
c < l && (l = c = (l + c) / 2), f < u && (u = f = (u + f) / 2), r.x0 = l, r.y0 = u, r.x1 = c, r.y1 = f;
|
|
30
23
|
};
|
|
31
24
|
}
|
|
32
25
|
return n.round = function(o) {
|
|
@@ -37,75 +30,75 @@ function Je() {
|
|
|
37
30
|
return arguments.length ? (e = +o, n) : e;
|
|
38
31
|
}, n;
|
|
39
32
|
}
|
|
40
|
-
function
|
|
33
|
+
function Hi(s, t) {
|
|
41
34
|
return s.parent === t.parent ? 1 : 2;
|
|
42
35
|
}
|
|
43
|
-
function
|
|
36
|
+
function Xt(s) {
|
|
44
37
|
var t = s.children;
|
|
45
38
|
return t ? t[0] : s.t;
|
|
46
39
|
}
|
|
47
|
-
function
|
|
40
|
+
function Vt(s) {
|
|
48
41
|
var t = s.children;
|
|
49
42
|
return t ? t[t.length - 1] : s.t;
|
|
50
43
|
}
|
|
51
|
-
function
|
|
44
|
+
function Wi(s, t, e) {
|
|
52
45
|
var i = e / (t.i - s.i);
|
|
53
46
|
t.c -= i, t.s += e, s.c += i, t.z += e, t.m += e;
|
|
54
47
|
}
|
|
55
|
-
function
|
|
48
|
+
function Mi(s) {
|
|
56
49
|
for (var t = 0, e = 0, i = s.children, n = i.length, a; --n >= 0; )
|
|
57
50
|
a = i[n], a.z += t, a.m += t, t += a.s + (e += a.c);
|
|
58
51
|
}
|
|
59
|
-
function
|
|
52
|
+
function Ii(s, t, e) {
|
|
60
53
|
return s.a.parent === t.parent ? s.a : e;
|
|
61
54
|
}
|
|
62
|
-
function
|
|
55
|
+
function Nt(s, t) {
|
|
63
56
|
this._ = s, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
|
|
64
57
|
}
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
for (var t = new
|
|
58
|
+
Nt.prototype = Object.create(ki.prototype);
|
|
59
|
+
function Oi(s) {
|
|
60
|
+
for (var t = new Nt(s, 0), e, i = [t], n, a, o, h; e = i.pop(); )
|
|
68
61
|
if (a = e._.children)
|
|
69
62
|
for (e.children = new Array(h = a.length), o = h - 1; o >= 0; --o)
|
|
70
|
-
i.push(n = e.children[o] = new
|
|
71
|
-
return (t.parent = new
|
|
63
|
+
i.push(n = e.children[o] = new Nt(a[o], o)), n.parent = e;
|
|
64
|
+
return (t.parent = new Nt(null, 0)).children = [t], t;
|
|
72
65
|
}
|
|
73
|
-
function
|
|
74
|
-
var s =
|
|
66
|
+
function Ei() {
|
|
67
|
+
var s = Hi, t = 1, e = 1, i = null;
|
|
75
68
|
function n(l) {
|
|
76
|
-
var u =
|
|
69
|
+
var u = Oi(l);
|
|
77
70
|
if (u.eachAfter(a), u.parent.m = -u.z, u.eachBefore(o), i) l.eachBefore(r);
|
|
78
71
|
else {
|
|
79
|
-
var
|
|
72
|
+
var c = l, f = l, g = l;
|
|
80
73
|
l.eachBefore(function(m) {
|
|
81
|
-
m.x <
|
|
74
|
+
m.x < c.x && (c = m), m.x > f.x && (f = m), m.depth > g.depth && (g = m);
|
|
82
75
|
});
|
|
83
|
-
var
|
|
76
|
+
var p = c === f ? 1 : s(c, f) / 2, d = p - c.x, v = t / (f.x + p + d), y = e / (g.depth || 1);
|
|
84
77
|
l.eachBefore(function(m) {
|
|
85
|
-
m.x = (m.x + d) *
|
|
78
|
+
m.x = (m.x + d) * v, m.y = m.depth * y;
|
|
86
79
|
});
|
|
87
80
|
}
|
|
88
81
|
return l;
|
|
89
82
|
}
|
|
90
83
|
function a(l) {
|
|
91
|
-
var u = l.children,
|
|
84
|
+
var u = l.children, c = l.parent.children, f = l.i ? c[l.i - 1] : null;
|
|
92
85
|
if (u) {
|
|
93
|
-
|
|
86
|
+
Mi(l);
|
|
94
87
|
var g = (u[0].z + u[u.length - 1].z) / 2;
|
|
95
|
-
|
|
96
|
-
} else
|
|
97
|
-
l.parent.A = h(l,
|
|
88
|
+
f ? (l.z = f.z + s(l._, f._), l.m = l.z - g) : l.z = g;
|
|
89
|
+
} else f && (l.z = f.z + s(l._, f._));
|
|
90
|
+
l.parent.A = h(l, f, l.parent.A || c[0]);
|
|
98
91
|
}
|
|
99
92
|
function o(l) {
|
|
100
93
|
l._.x = l.z + l.parent.m, l.m += l.parent.m;
|
|
101
94
|
}
|
|
102
|
-
function h(l, u,
|
|
95
|
+
function h(l, u, c) {
|
|
103
96
|
if (u) {
|
|
104
|
-
for (var
|
|
105
|
-
d =
|
|
106
|
-
|
|
97
|
+
for (var f = l, g = l, p = u, d = f.parent.children[0], v = f.m, y = g.m, m = p.m, _ = d.m, x; p = Vt(p), f = Xt(f), p && f; )
|
|
98
|
+
d = Xt(d), g = Vt(g), g.a = l, x = p.z + m - f.z - v + s(p._, f._), x > 0 && (Wi(Ii(p, l, c), l, x), v += x, y += x), m += p.m, v += f.m, _ += d.m, y += g.m;
|
|
99
|
+
p && !Vt(g) && (g.t = p, g.m += m - y), f && !Xt(d) && (d.t = f, d.m += v - _, c = l);
|
|
107
100
|
}
|
|
108
|
-
return
|
|
101
|
+
return c;
|
|
109
102
|
}
|
|
110
103
|
function r(l) {
|
|
111
104
|
l.x *= t, l.y = l.depth * e;
|
|
@@ -118,122 +111,61 @@ function Vi() {
|
|
|
118
111
|
return arguments.length ? (i = !0, t = +l[0], e = +l[1], n) : i ? [t, e] : null;
|
|
119
112
|
}, n;
|
|
120
113
|
}
|
|
121
|
-
function
|
|
122
|
-
for (var a = s.children, o, h = -1, r = a.length, l = s.value && (n - e) / s.value; ++h < r; )
|
|
123
|
-
o = a[h], o.x0 = t, o.x1 = i, o.y0 = e, o.y1 = e += o.value * l;
|
|
124
|
-
}
|
|
125
|
-
var Xi = (1 + Math.sqrt(5)) / 2;
|
|
126
|
-
function qi(s, t, e, i, n, a) {
|
|
127
|
-
for (var o = [], h = t.children, r, l, u = 0, f = 0, c = h.length, g, v, d = t.value, p, y, m, _, x, w, k; u < c; ) {
|
|
128
|
-
g = n - e, v = a - i;
|
|
129
|
-
do
|
|
130
|
-
p = h[f++].value;
|
|
131
|
-
while (!p && f < c);
|
|
132
|
-
for (y = m = p, w = Math.max(v / g, g / v) / (d * s), k = p * p * w, x = Math.max(m / k, k / y); f < c; ++f) {
|
|
133
|
-
if (p += l = h[f].value, l < y && (y = l), l > m && (m = l), k = p * p * w, _ = Math.max(m / k, k / y), _ > x) {
|
|
134
|
-
p -= l;
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
x = _;
|
|
138
|
-
}
|
|
139
|
-
o.push(r = { value: p, dice: g < v, children: h.slice(u, f) }), r.dice ? Ft(r, e, i, n, d ? i += v * p / d : a) : ue(r, e, i, d ? e += g * p / d : n, a), d -= p, u = f;
|
|
140
|
-
}
|
|
141
|
-
return o;
|
|
142
|
-
}
|
|
143
|
-
const te = function s(t) {
|
|
144
|
-
function e(i, n, a, o, h) {
|
|
145
|
-
qi(t, i, n, a, o, h);
|
|
146
|
-
}
|
|
147
|
-
return e.ratio = function(i) {
|
|
148
|
-
return s((i = +i) > 1 ? i : 1);
|
|
149
|
-
}, e;
|
|
150
|
-
}(Xi);
|
|
151
|
-
function Ce() {
|
|
152
|
-
var s = te, t = !1, e = 1, i = 1, n = [0], a = mt, o = mt, h = mt, r = mt, l = mt;
|
|
153
|
-
function u(c) {
|
|
154
|
-
return c.x0 = c.y0 = 0, c.x1 = e, c.y1 = i, c.eachBefore(f), n = [0], t && c.eachBefore(Qe), c;
|
|
155
|
-
}
|
|
156
|
-
function f(c) {
|
|
157
|
-
var g = n[c.depth], v = c.x0 + g, d = c.y0 + g, p = c.x1 - g, y = c.y1 - g;
|
|
158
|
-
p < v && (v = p = (v + p) / 2), y < d && (d = y = (d + y) / 2), c.x0 = v, c.y0 = d, c.x1 = p, c.y1 = y, c.children && (g = n[c.depth + 1] = a(c) / 2, v += l(c) - g, d += o(c) - g, p -= h(c) - g, y -= r(c) - g, p < v && (v = p = (v + p) / 2), y < d && (d = y = (d + y) / 2), s(c, v, d, p, y));
|
|
159
|
-
}
|
|
160
|
-
return u.round = function(c) {
|
|
161
|
-
return arguments.length ? (t = !!c, u) : t;
|
|
162
|
-
}, u.size = function(c) {
|
|
163
|
-
return arguments.length ? (e = +c[0], i = +c[1], u) : [e, i];
|
|
164
|
-
}, u.tile = function(c) {
|
|
165
|
-
return arguments.length ? (s = Si(c), u) : s;
|
|
166
|
-
}, u.padding = function(c) {
|
|
167
|
-
return arguments.length ? u.paddingInner(c).paddingOuter(c) : u.paddingInner();
|
|
168
|
-
}, u.paddingInner = function(c) {
|
|
169
|
-
return arguments.length ? (a = typeof c == "function" ? c : xt(+c), u) : a;
|
|
170
|
-
}, u.paddingOuter = function(c) {
|
|
171
|
-
return arguments.length ? u.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c) : u.paddingTop();
|
|
172
|
-
}, u.paddingTop = function(c) {
|
|
173
|
-
return arguments.length ? (o = typeof c == "function" ? c : xt(+c), u) : o;
|
|
174
|
-
}, u.paddingRight = function(c) {
|
|
175
|
-
return arguments.length ? (h = typeof c == "function" ? c : xt(+c), u) : h;
|
|
176
|
-
}, u.paddingBottom = function(c) {
|
|
177
|
-
return arguments.length ? (r = typeof c == "function" ? c : xt(+c), u) : r;
|
|
178
|
-
}, u.paddingLeft = function(c) {
|
|
179
|
-
return arguments.length ? (l = typeof c == "function" ? c : xt(+c), u) : l;
|
|
180
|
-
}, u;
|
|
181
|
-
}
|
|
182
|
-
function Yi(s, t, e, i, n) {
|
|
114
|
+
function Bi(s, t, e, i, n) {
|
|
183
115
|
var a = s.children, o, h = a.length, r, l = new Array(h + 1);
|
|
184
116
|
for (l[0] = r = o = 0; o < h; ++o)
|
|
185
117
|
l[o + 1] = r += a[o].value;
|
|
186
118
|
u(0, h, s.value, t, e, i, n);
|
|
187
|
-
function u(
|
|
188
|
-
if (
|
|
189
|
-
var m = a[
|
|
190
|
-
m.x0 =
|
|
119
|
+
function u(c, f, g, p, d, v, y) {
|
|
120
|
+
if (c >= f - 1) {
|
|
121
|
+
var m = a[c];
|
|
122
|
+
m.x0 = p, m.y0 = d, m.x1 = v, m.y1 = y;
|
|
191
123
|
return;
|
|
192
124
|
}
|
|
193
|
-
for (var _ = l[
|
|
194
|
-
var A = w +
|
|
195
|
-
l[A] < x ? w = A + 1 :
|
|
125
|
+
for (var _ = l[c], x = g / 2 + _, w = c + 1, b = f - 1; w < b; ) {
|
|
126
|
+
var A = w + b >>> 1;
|
|
127
|
+
l[A] < x ? w = A + 1 : b = A;
|
|
196
128
|
}
|
|
197
|
-
x - l[w - 1] < l[w] - x &&
|
|
198
|
-
var
|
|
199
|
-
if (
|
|
200
|
-
var
|
|
201
|
-
u(
|
|
129
|
+
x - l[w - 1] < l[w] - x && c + 1 < w && --w;
|
|
130
|
+
var k = l[w] - _, C = g - k;
|
|
131
|
+
if (v - p > y - d) {
|
|
132
|
+
var N = g ? (p * C + v * k) / g : v;
|
|
133
|
+
u(c, w, k, p, d, N, y), u(w, f, C, N, d, v, y);
|
|
202
134
|
} else {
|
|
203
|
-
var S = g ? (d * C + y *
|
|
204
|
-
u(
|
|
135
|
+
var S = g ? (d * C + y * k) / g : y;
|
|
136
|
+
u(c, w, k, p, d, v, S), u(w, f, C, p, S, v, y);
|
|
205
137
|
}
|
|
206
138
|
}
|
|
207
139
|
}
|
|
208
|
-
function
|
|
209
|
-
(s.depth & 1 ?
|
|
140
|
+
function Fi(s, t, e, i, n) {
|
|
141
|
+
(s.depth & 1 ? $e : oe)(s, t, e, i, n);
|
|
210
142
|
}
|
|
211
|
-
function
|
|
143
|
+
function Xi(s) {
|
|
212
144
|
const t = +this._x.call(null, s), e = +this._y.call(null, s);
|
|
213
|
-
return
|
|
145
|
+
return Ze(this.cover(t, e), t, e, s);
|
|
214
146
|
}
|
|
215
|
-
function
|
|
147
|
+
function Ze(s, t, e, i) {
|
|
216
148
|
if (isNaN(t) || isNaN(e)) return s;
|
|
217
|
-
var n, a = s._root, o = { data: i }, h = s._x0, r = s._y0, l = s._x1, u = s._y1,
|
|
149
|
+
var n, a = s._root, o = { data: i }, h = s._x0, r = s._y0, l = s._x1, u = s._y1, c, f, g, p, d, v, y, m;
|
|
218
150
|
if (!a) return s._root = o, s;
|
|
219
151
|
for (; a.length; )
|
|
220
|
-
if ((d = t >= (
|
|
221
|
-
if (g = +s._x.call(null, a.data),
|
|
152
|
+
if ((d = t >= (c = (h + l) / 2)) ? h = c : l = c, (v = e >= (f = (r + u) / 2)) ? r = f : u = f, n = a, !(a = a[y = v << 1 | d])) return n[y] = o, s;
|
|
153
|
+
if (g = +s._x.call(null, a.data), p = +s._y.call(null, a.data), t === g && e === p) return o.next = a, n ? n[y] = o : s._root = o, s;
|
|
222
154
|
do
|
|
223
|
-
n = n ? n[y] = new Array(4) : s._root = new Array(4), (d = t >= (
|
|
224
|
-
while ((y =
|
|
155
|
+
n = n ? n[y] = new Array(4) : s._root = new Array(4), (d = t >= (c = (h + l) / 2)) ? h = c : l = c, (v = e >= (f = (r + u) / 2)) ? r = f : u = f;
|
|
156
|
+
while ((y = v << 1 | d) === (m = (p >= f) << 1 | g >= c));
|
|
225
157
|
return n[m] = a, n[y] = o, s;
|
|
226
158
|
}
|
|
227
|
-
function
|
|
228
|
-
var t, e, i = s.length, n, a, o = new Array(i), h = new Array(i), r = 1 / 0, l = 1 / 0, u = -1 / 0,
|
|
159
|
+
function Vi(s) {
|
|
160
|
+
var t, e, i = s.length, n, a, o = new Array(i), h = new Array(i), r = 1 / 0, l = 1 / 0, u = -1 / 0, c = -1 / 0;
|
|
229
161
|
for (e = 0; e < i; ++e)
|
|
230
|
-
isNaN(n = +this._x.call(null, t = s[e])) || isNaN(a = +this._y.call(null, t)) || (o[e] = n, h[e] = a, n < r && (r = n), n > u && (u = n), a < l && (l = a), a >
|
|
231
|
-
if (r > u || l >
|
|
232
|
-
for (this.cover(r, l).cover(u,
|
|
233
|
-
|
|
162
|
+
isNaN(n = +this._x.call(null, t = s[e])) || isNaN(a = +this._y.call(null, t)) || (o[e] = n, h[e] = a, n < r && (r = n), n > u && (u = n), a < l && (l = a), a > c && (c = a));
|
|
163
|
+
if (r > u || l > c) return this;
|
|
164
|
+
for (this.cover(r, l).cover(u, c), e = 0; e < i; ++e)
|
|
165
|
+
Ze(this, o[e], h[e], s[e]);
|
|
234
166
|
return this;
|
|
235
167
|
}
|
|
236
|
-
function
|
|
168
|
+
function Yi(s, t) {
|
|
237
169
|
if (isNaN(s = +s) || isNaN(t = +t)) return this;
|
|
238
170
|
var e = this._x0, i = this._y0, n = this._x1, a = this._y1;
|
|
239
171
|
if (isNaN(e))
|
|
@@ -258,7 +190,7 @@ function Ui(s, t) {
|
|
|
258
190
|
}
|
|
259
191
|
return this._x0 = e, this._y0 = i, this._x1 = n, this._y1 = a, this;
|
|
260
192
|
}
|
|
261
|
-
function
|
|
193
|
+
function qi() {
|
|
262
194
|
var s = [];
|
|
263
195
|
return this.visit(function(t) {
|
|
264
196
|
if (!t.length) do
|
|
@@ -266,53 +198,53 @@ function Ki() {
|
|
|
266
198
|
while (t = t.next);
|
|
267
199
|
}), s;
|
|
268
200
|
}
|
|
269
|
-
function
|
|
201
|
+
function Gi(s) {
|
|
270
202
|
return arguments.length ? this.cover(+s[0][0], +s[0][1]).cover(+s[1][0], +s[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]];
|
|
271
203
|
}
|
|
272
|
-
function
|
|
204
|
+
function q(s, t, e, i, n) {
|
|
273
205
|
this.node = s, this.x0 = t, this.y0 = e, this.x1 = i, this.y1 = n;
|
|
274
206
|
}
|
|
275
|
-
function
|
|
276
|
-
var i, n = this._x0, a = this._y0, o, h, r, l, u = this._x1,
|
|
277
|
-
for (g &&
|
|
278
|
-
if (!(!(g =
|
|
207
|
+
function ji(s, t, e) {
|
|
208
|
+
var i, n = this._x0, a = this._y0, o, h, r, l, u = this._x1, c = this._y1, f = [], g = this._root, p, d;
|
|
209
|
+
for (g && f.push(new q(g, n, a, u, c)), e == null ? e = 1 / 0 : (n = s - e, a = t - e, u = s + e, c = t + e, e *= e); p = f.pop(); )
|
|
210
|
+
if (!(!(g = p.node) || (o = p.x0) > u || (h = p.y0) > c || (r = p.x1) < n || (l = p.y1) < a))
|
|
279
211
|
if (g.length) {
|
|
280
|
-
var
|
|
281
|
-
|
|
282
|
-
new
|
|
283
|
-
new
|
|
284
|
-
new
|
|
285
|
-
new
|
|
286
|
-
), (d = (t >= y) << 1 | s >=
|
|
212
|
+
var v = (o + r) / 2, y = (h + l) / 2;
|
|
213
|
+
f.push(
|
|
214
|
+
new q(g[3], v, y, r, l),
|
|
215
|
+
new q(g[2], o, y, v, l),
|
|
216
|
+
new q(g[1], v, h, r, y),
|
|
217
|
+
new q(g[0], o, h, v, y)
|
|
218
|
+
), (d = (t >= y) << 1 | s >= v) && (p = f[f.length - 1], f[f.length - 1] = f[f.length - 1 - d], f[f.length - 1 - d] = p);
|
|
287
219
|
} else {
|
|
288
220
|
var m = s - +this._x.call(null, g.data), _ = t - +this._y.call(null, g.data), x = m * m + _ * _;
|
|
289
221
|
if (x < e) {
|
|
290
222
|
var w = Math.sqrt(e = x);
|
|
291
|
-
n = s - w, a = t - w, u = s + w,
|
|
223
|
+
n = s - w, a = t - w, u = s + w, c = t + w, i = g.data;
|
|
292
224
|
}
|
|
293
225
|
}
|
|
294
226
|
return i;
|
|
295
227
|
}
|
|
296
|
-
function
|
|
297
|
-
if (isNaN(u = +this._x.call(null, s)) || isNaN(
|
|
298
|
-
var t, e = this._root, i, n, a, o = this._x0, h = this._y0, r = this._x1, l = this._y1, u,
|
|
228
|
+
function Ui(s) {
|
|
229
|
+
if (isNaN(u = +this._x.call(null, s)) || isNaN(c = +this._y.call(null, s))) return this;
|
|
230
|
+
var t, e = this._root, i, n, a, o = this._x0, h = this._y0, r = this._x1, l = this._y1, u, c, f, g, p, d, v, y;
|
|
299
231
|
if (!e) return this;
|
|
300
232
|
if (e.length) for (; ; ) {
|
|
301
|
-
if ((
|
|
233
|
+
if ((p = u >= (f = (o + r) / 2)) ? o = f : r = f, (d = c >= (g = (h + l) / 2)) ? h = g : l = g, t = e, !(e = e[v = d << 1 | p])) return this;
|
|
302
234
|
if (!e.length) break;
|
|
303
|
-
(t[
|
|
235
|
+
(t[v + 1 & 3] || t[v + 2 & 3] || t[v + 3 & 3]) && (i = t, y = v);
|
|
304
236
|
}
|
|
305
237
|
for (; e.data !== s; ) if (n = e, !(e = e.next)) return this;
|
|
306
|
-
return (a = e.next) && delete e.next, n ? (a ? n.next = a : delete n.next, this) : t ? (a ? t[
|
|
238
|
+
return (a = e.next) && delete e.next, n ? (a ? n.next = a : delete n.next, this) : t ? (a ? t[v] = a : delete t[v], (e = t[0] || t[1] || t[2] || t[3]) && e === (t[3] || t[2] || t[1] || t[0]) && !e.length && (i ? i[y] = e : this._root = e), this) : (this._root = a, this);
|
|
307
239
|
}
|
|
308
|
-
function
|
|
240
|
+
function $i(s) {
|
|
309
241
|
for (var t = 0, e = s.length; t < e; ++t) this.remove(s[t]);
|
|
310
242
|
return this;
|
|
311
243
|
}
|
|
312
|
-
function
|
|
244
|
+
function Ki() {
|
|
313
245
|
return this._root;
|
|
314
246
|
}
|
|
315
|
-
function
|
|
247
|
+
function Zi() {
|
|
316
248
|
var s = 0;
|
|
317
249
|
return this.visit(function(t) {
|
|
318
250
|
if (!t.length) do
|
|
@@ -320,22 +252,22 @@ function nn() {
|
|
|
320
252
|
while (t = t.next);
|
|
321
253
|
}), s;
|
|
322
254
|
}
|
|
323
|
-
function
|
|
255
|
+
function Qi(s) {
|
|
324
256
|
var t = [], e, i = this._root, n, a, o, h, r;
|
|
325
|
-
for (i && t.push(new
|
|
257
|
+
for (i && t.push(new q(i, this._x0, this._y0, this._x1, this._y1)); e = t.pop(); )
|
|
326
258
|
if (!s(i = e.node, a = e.x0, o = e.y0, h = e.x1, r = e.y1) && i.length) {
|
|
327
259
|
var l = (a + h) / 2, u = (o + r) / 2;
|
|
328
|
-
(n = i[3]) && t.push(new
|
|
260
|
+
(n = i[3]) && t.push(new q(n, l, u, h, r)), (n = i[2]) && t.push(new q(n, a, u, l, r)), (n = i[1]) && t.push(new q(n, l, o, h, u)), (n = i[0]) && t.push(new q(n, a, o, l, u));
|
|
329
261
|
}
|
|
330
262
|
return this;
|
|
331
263
|
}
|
|
332
|
-
function
|
|
264
|
+
function Ji(s) {
|
|
333
265
|
var t = [], e = [], i;
|
|
334
|
-
for (this._root && t.push(new
|
|
266
|
+
for (this._root && t.push(new q(this._root, this._x0, this._y0, this._x1, this._y1)); i = t.pop(); ) {
|
|
335
267
|
var n = i.node;
|
|
336
268
|
if (n.length) {
|
|
337
|
-
var a, o = i.x0, h = i.y0, r = i.x1, l = i.y1, u = (o + r) / 2,
|
|
338
|
-
(a = n[0]) && t.push(new
|
|
269
|
+
var a, o = i.x0, h = i.y0, r = i.x1, l = i.y1, u = (o + r) / 2, c = (h + l) / 2;
|
|
270
|
+
(a = n[0]) && t.push(new q(a, o, h, u, c)), (a = n[1]) && t.push(new q(a, u, h, r, c)), (a = n[2]) && t.push(new q(a, o, c, u, l)), (a = n[3]) && t.push(new q(a, u, c, r, l));
|
|
339
271
|
}
|
|
340
272
|
e.push(i);
|
|
341
273
|
}
|
|
@@ -343,53 +275,53 @@ function rn(s) {
|
|
|
343
275
|
s(i.node, i.x0, i.y0, i.x1, i.y1);
|
|
344
276
|
return this;
|
|
345
277
|
}
|
|
346
|
-
function
|
|
278
|
+
function tn(s) {
|
|
347
279
|
return s[0];
|
|
348
280
|
}
|
|
349
|
-
function
|
|
281
|
+
function en(s) {
|
|
350
282
|
return arguments.length ? (this._x = s, this) : this._x;
|
|
351
283
|
}
|
|
352
|
-
function
|
|
284
|
+
function nn(s) {
|
|
353
285
|
return s[1];
|
|
354
286
|
}
|
|
355
|
-
function
|
|
287
|
+
function sn(s) {
|
|
356
288
|
return arguments.length ? (this._y = s, this) : this._y;
|
|
357
289
|
}
|
|
358
|
-
function
|
|
359
|
-
var i = new
|
|
290
|
+
function le(s, t, e) {
|
|
291
|
+
var i = new he(t ?? tn, e ?? nn, NaN, NaN, NaN, NaN);
|
|
360
292
|
return s == null ? i : i.addAll(s);
|
|
361
293
|
}
|
|
362
|
-
function
|
|
294
|
+
function he(s, t, e, i, n, a) {
|
|
363
295
|
this._x = s, this._y = t, this._x0 = e, this._y0 = i, this._x1 = n, this._y1 = a, this._root = void 0;
|
|
364
296
|
}
|
|
365
|
-
function
|
|
297
|
+
function Ae(s) {
|
|
366
298
|
for (var t = { data: s.data }, e = t; s = s.next; ) e = e.next = { data: s.data };
|
|
367
299
|
return t;
|
|
368
300
|
}
|
|
369
|
-
var
|
|
370
|
-
|
|
371
|
-
var s = new
|
|
301
|
+
var $ = le.prototype = he.prototype;
|
|
302
|
+
$.copy = function() {
|
|
303
|
+
var s = new he(this._x, this._y, this._x0, this._y0, this._x1, this._y1), t = this._root, e, i;
|
|
372
304
|
if (!t) return s;
|
|
373
|
-
if (!t.length) return s._root =
|
|
305
|
+
if (!t.length) return s._root = Ae(t), s;
|
|
374
306
|
for (e = [{ source: t, target: s._root = new Array(4) }]; t = e.pop(); )
|
|
375
307
|
for (var n = 0; n < 4; ++n)
|
|
376
|
-
(i = t.source[n]) && (i.length ? e.push({ source: i, target: t.target[n] = new Array(4) }) : t.target[n] =
|
|
308
|
+
(i = t.source[n]) && (i.length ? e.push({ source: i, target: t.target[n] = new Array(4) }) : t.target[n] = Ae(i));
|
|
377
309
|
return s;
|
|
378
310
|
};
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
311
|
+
$.add = Xi;
|
|
312
|
+
$.addAll = Vi;
|
|
313
|
+
$.cover = Yi;
|
|
314
|
+
$.data = qi;
|
|
315
|
+
$.extent = Gi;
|
|
316
|
+
$.find = ji;
|
|
317
|
+
$.remove = Ui;
|
|
318
|
+
$.removeAll = $i;
|
|
319
|
+
$.root = Ki;
|
|
320
|
+
$.size = Zi;
|
|
321
|
+
$.visit = Qi;
|
|
322
|
+
$.visitAfter = Ji;
|
|
323
|
+
$.x = en;
|
|
324
|
+
$.y = sn;
|
|
393
325
|
function j(s) {
|
|
394
326
|
return function() {
|
|
395
327
|
return s;
|
|
@@ -398,29 +330,29 @@ function j(s) {
|
|
|
398
330
|
function st(s) {
|
|
399
331
|
return (s() - 0.5) * 1e-6;
|
|
400
332
|
}
|
|
401
|
-
function
|
|
333
|
+
function rn(s) {
|
|
402
334
|
return s.x + s.vx;
|
|
403
335
|
}
|
|
404
|
-
function
|
|
336
|
+
function an(s) {
|
|
405
337
|
return s.y + s.vy;
|
|
406
338
|
}
|
|
407
|
-
function
|
|
339
|
+
function on(s) {
|
|
408
340
|
var t, e, i, n = 1, a = 1;
|
|
409
341
|
typeof s != "function" && (s = j(s == null ? 1 : +s));
|
|
410
342
|
function o() {
|
|
411
|
-
for (var l, u = t.length,
|
|
412
|
-
for (
|
|
413
|
-
|
|
414
|
-
function m(_, x, w,
|
|
415
|
-
var
|
|
416
|
-
if (
|
|
417
|
-
if (
|
|
418
|
-
var S = g -
|
|
419
|
-
|
|
343
|
+
for (var l, u = t.length, c, f, g, p, d, v, y = 0; y < a; ++y)
|
|
344
|
+
for (c = le(t, rn, an).visitAfter(h), l = 0; l < u; ++l)
|
|
345
|
+
f = t[l], d = e[f.index], v = d * d, g = f.x + f.vx, p = f.y + f.vy, c.visit(m);
|
|
346
|
+
function m(_, x, w, b, A) {
|
|
347
|
+
var k = _.data, C = _.r, N = d + C;
|
|
348
|
+
if (k) {
|
|
349
|
+
if (k.index > f.index) {
|
|
350
|
+
var S = g - k.x - k.vx, M = p - k.y - k.vy, O = S * S + M * M;
|
|
351
|
+
O < N * N && (S === 0 && (S = st(i), O += S * S), M === 0 && (M = st(i), O += M * M), O = (N - (O = Math.sqrt(O))) / O * n, f.vx += (S *= O) * (N = (C *= C) / (v + C)), f.vy += (M *= O) * N, k.vx -= S * (N = 1 - N), k.vy -= M * N);
|
|
420
352
|
}
|
|
421
353
|
return;
|
|
422
354
|
}
|
|
423
|
-
return x > g +
|
|
355
|
+
return x > g + N || b < g - N || w > p + N || A < p - N;
|
|
424
356
|
}
|
|
425
357
|
}
|
|
426
358
|
function h(l) {
|
|
@@ -430,8 +362,8 @@ function fn(s) {
|
|
|
430
362
|
}
|
|
431
363
|
function r() {
|
|
432
364
|
if (t) {
|
|
433
|
-
var l, u = t.length,
|
|
434
|
-
for (e = new Array(u), l = 0; l < u; ++l)
|
|
365
|
+
var l, u = t.length, c;
|
|
366
|
+
for (e = new Array(u), l = 0; l < u; ++l) c = t[l], e[c.index] = +s(c, l, t);
|
|
435
367
|
}
|
|
436
368
|
}
|
|
437
369
|
return o.initialize = function(l, u) {
|
|
@@ -444,109 +376,109 @@ function fn(s) {
|
|
|
444
376
|
return arguments.length ? (s = typeof l == "function" ? l : j(+l), r(), o) : s;
|
|
445
377
|
}, o;
|
|
446
378
|
}
|
|
447
|
-
function
|
|
379
|
+
function ln(s) {
|
|
448
380
|
return s.index;
|
|
449
381
|
}
|
|
450
|
-
function
|
|
382
|
+
function Pe(s, t) {
|
|
451
383
|
var e = s.get(t);
|
|
452
384
|
if (!e) throw new Error("node not found: " + t);
|
|
453
385
|
return e;
|
|
454
386
|
}
|
|
455
|
-
function
|
|
456
|
-
var t =
|
|
387
|
+
function Yt(s) {
|
|
388
|
+
var t = ln, e = c, i, n = j(30), a, o, h, r, l, u = 1;
|
|
457
389
|
s == null && (s = []);
|
|
458
|
-
function
|
|
459
|
-
return 1 / Math.min(h[
|
|
390
|
+
function c(v) {
|
|
391
|
+
return 1 / Math.min(h[v.source.index], h[v.target.index]);
|
|
460
392
|
}
|
|
461
|
-
function
|
|
393
|
+
function f(v) {
|
|
462
394
|
for (var y = 0, m = s.length; y < u; ++y)
|
|
463
|
-
for (var _ = 0, x, w,
|
|
464
|
-
x = s[_], w = x.source,
|
|
395
|
+
for (var _ = 0, x, w, b, A, k, C, N; _ < m; ++_)
|
|
396
|
+
x = s[_], w = x.source, b = x.target, A = b.x + b.vx - w.x - w.vx || st(l), k = b.y + b.vy - w.y - w.vy || st(l), C = Math.sqrt(A * A + k * k), C = (C - a[_]) / C * v * i[_], A *= C, k *= C, b.vx -= A * (N = r[_]), b.vy -= k * N, w.vx += A * (N = 1 - N), w.vy += k * N;
|
|
465
397
|
}
|
|
466
398
|
function g() {
|
|
467
399
|
if (o) {
|
|
468
|
-
var
|
|
469
|
-
for (
|
|
470
|
-
x = s[
|
|
471
|
-
for (
|
|
472
|
-
x = s[
|
|
473
|
-
i = new Array(m),
|
|
400
|
+
var v, y = o.length, m = s.length, _ = new Map(o.map((w, b) => [t(w, b, o), w])), x;
|
|
401
|
+
for (v = 0, h = new Array(y); v < m; ++v)
|
|
402
|
+
x = s[v], x.index = v, typeof x.source != "object" && (x.source = Pe(_, x.source)), typeof x.target != "object" && (x.target = Pe(_, x.target)), h[x.source.index] = (h[x.source.index] || 0) + 1, h[x.target.index] = (h[x.target.index] || 0) + 1;
|
|
403
|
+
for (v = 0, r = new Array(m); v < m; ++v)
|
|
404
|
+
x = s[v], r[v] = h[x.source.index] / (h[x.source.index] + h[x.target.index]);
|
|
405
|
+
i = new Array(m), p(), a = new Array(m), d();
|
|
474
406
|
}
|
|
475
407
|
}
|
|
476
|
-
function
|
|
408
|
+
function p() {
|
|
477
409
|
if (o)
|
|
478
|
-
for (var
|
|
479
|
-
i[
|
|
410
|
+
for (var v = 0, y = s.length; v < y; ++v)
|
|
411
|
+
i[v] = +e(s[v], v, s);
|
|
480
412
|
}
|
|
481
413
|
function d() {
|
|
482
414
|
if (o)
|
|
483
|
-
for (var
|
|
484
|
-
a[
|
|
485
|
-
}
|
|
486
|
-
return
|
|
487
|
-
o =
|
|
488
|
-
},
|
|
489
|
-
return arguments.length ? (s =
|
|
490
|
-
},
|
|
491
|
-
return arguments.length ? (t =
|
|
492
|
-
},
|
|
493
|
-
return arguments.length ? (u = +
|
|
494
|
-
},
|
|
495
|
-
return arguments.length ? (e = typeof
|
|
496
|
-
},
|
|
497
|
-
return arguments.length ? (n = typeof
|
|
498
|
-
},
|
|
499
|
-
}
|
|
500
|
-
const
|
|
501
|
-
function
|
|
415
|
+
for (var v = 0, y = s.length; v < y; ++v)
|
|
416
|
+
a[v] = +n(s[v], v, s);
|
|
417
|
+
}
|
|
418
|
+
return f.initialize = function(v, y) {
|
|
419
|
+
o = v, l = y, g();
|
|
420
|
+
}, f.links = function(v) {
|
|
421
|
+
return arguments.length ? (s = v, g(), f) : s;
|
|
422
|
+
}, f.id = function(v) {
|
|
423
|
+
return arguments.length ? (t = v, f) : t;
|
|
424
|
+
}, f.iterations = function(v) {
|
|
425
|
+
return arguments.length ? (u = +v, f) : u;
|
|
426
|
+
}, f.strength = function(v) {
|
|
427
|
+
return arguments.length ? (e = typeof v == "function" ? v : j(+v), p(), f) : e;
|
|
428
|
+
}, f.distance = function(v) {
|
|
429
|
+
return arguments.length ? (n = typeof v == "function" ? v : j(+v), d(), f) : n;
|
|
430
|
+
}, f;
|
|
431
|
+
}
|
|
432
|
+
const hn = 1664525, cn = 1013904223, Ce = 4294967296;
|
|
433
|
+
function un() {
|
|
502
434
|
let s = 1;
|
|
503
|
-
return () => (s = (
|
|
435
|
+
return () => (s = (hn * s + cn) % Ce) / Ce;
|
|
504
436
|
}
|
|
505
|
-
function
|
|
437
|
+
function fn(s) {
|
|
506
438
|
return s.x;
|
|
507
439
|
}
|
|
508
|
-
function
|
|
440
|
+
function gn(s) {
|
|
509
441
|
return s.y;
|
|
510
442
|
}
|
|
511
|
-
var
|
|
512
|
-
function
|
|
513
|
-
var t, e = 1, i = 1e-3, n = 1 - Math.pow(i, 1 / 300), a = 0, o = 0.6, h = /* @__PURE__ */ new Map(), r =
|
|
443
|
+
var dn = 10, pn = Math.PI * (3 - Math.sqrt(5));
|
|
444
|
+
function vn(s) {
|
|
445
|
+
var t, e = 1, i = 1e-3, n = 1 - Math.pow(i, 1 / 300), a = 0, o = 0.6, h = /* @__PURE__ */ new Map(), r = bi(c), l = Ai("tick", "end"), u = un();
|
|
514
446
|
s == null && (s = []);
|
|
515
|
-
function
|
|
516
|
-
|
|
447
|
+
function c() {
|
|
448
|
+
f(), l.call("tick", t), e < i && (r.stop(), l.call("end", t));
|
|
517
449
|
}
|
|
518
|
-
function
|
|
519
|
-
var
|
|
450
|
+
function f(d) {
|
|
451
|
+
var v, y = s.length, m;
|
|
520
452
|
d === void 0 && (d = 1);
|
|
521
453
|
for (var _ = 0; _ < d; ++_)
|
|
522
454
|
for (e += (a - e) * n, h.forEach(function(x) {
|
|
523
455
|
x(e);
|
|
524
|
-
}),
|
|
525
|
-
m = s[
|
|
456
|
+
}), v = 0; v < y; ++v)
|
|
457
|
+
m = s[v], m.fx == null ? m.x += m.vx *= o : (m.x = m.fx, m.vx = 0), m.fy == null ? m.y += m.vy *= o : (m.y = m.fy, m.vy = 0);
|
|
526
458
|
return t;
|
|
527
459
|
}
|
|
528
460
|
function g() {
|
|
529
|
-
for (var d = 0,
|
|
461
|
+
for (var d = 0, v = s.length, y; d < v; ++d) {
|
|
530
462
|
if (y = s[d], y.index = d, y.fx != null && (y.x = y.fx), y.fy != null && (y.y = y.fy), isNaN(y.x) || isNaN(y.y)) {
|
|
531
|
-
var m =
|
|
463
|
+
var m = dn * Math.sqrt(0.5 + d), _ = d * pn;
|
|
532
464
|
y.x = m * Math.cos(_), y.y = m * Math.sin(_);
|
|
533
465
|
}
|
|
534
466
|
(isNaN(y.vx) || isNaN(y.vy)) && (y.vx = y.vy = 0);
|
|
535
467
|
}
|
|
536
468
|
}
|
|
537
|
-
function
|
|
469
|
+
function p(d) {
|
|
538
470
|
return d.initialize && d.initialize(s, u), d;
|
|
539
471
|
}
|
|
540
472
|
return g(), t = {
|
|
541
|
-
tick:
|
|
473
|
+
tick: f,
|
|
542
474
|
restart: function() {
|
|
543
|
-
return r.restart(
|
|
475
|
+
return r.restart(c), t;
|
|
544
476
|
},
|
|
545
477
|
stop: function() {
|
|
546
478
|
return r.stop(), t;
|
|
547
479
|
},
|
|
548
480
|
nodes: function(d) {
|
|
549
|
-
return arguments.length ? (s = d, g(), h.forEach(
|
|
481
|
+
return arguments.length ? (s = d, g(), h.forEach(p), t) : s;
|
|
550
482
|
},
|
|
551
483
|
alpha: function(d) {
|
|
552
484
|
return arguments.length ? (e = +d, t) : e;
|
|
@@ -564,51 +496,51 @@ function wn(s) {
|
|
|
564
496
|
return arguments.length ? (o = 1 - d, t) : 1 - o;
|
|
565
497
|
},
|
|
566
498
|
randomSource: function(d) {
|
|
567
|
-
return arguments.length ? (u = d, h.forEach(
|
|
499
|
+
return arguments.length ? (u = d, h.forEach(p), t) : u;
|
|
568
500
|
},
|
|
569
|
-
force: function(d,
|
|
570
|
-
return arguments.length > 1 ? (
|
|
501
|
+
force: function(d, v) {
|
|
502
|
+
return arguments.length > 1 ? (v == null ? h.delete(d) : h.set(d, p(v)), t) : h.get(d);
|
|
571
503
|
},
|
|
572
|
-
find: function(d,
|
|
573
|
-
var m = 0, _ = s.length, x, w,
|
|
504
|
+
find: function(d, v, y) {
|
|
505
|
+
var m = 0, _ = s.length, x, w, b, A, k;
|
|
574
506
|
for (y == null ? y = 1 / 0 : y *= y, m = 0; m < _; ++m)
|
|
575
|
-
A = s[m], x = d - A.x, w =
|
|
576
|
-
return
|
|
507
|
+
A = s[m], x = d - A.x, w = v - A.y, b = x * x + w * w, b < y && (k = A, y = b);
|
|
508
|
+
return k;
|
|
577
509
|
},
|
|
578
|
-
on: function(d,
|
|
579
|
-
return arguments.length > 1 ? (l.on(d,
|
|
510
|
+
on: function(d, v) {
|
|
511
|
+
return arguments.length > 1 ? (l.on(d, v), t) : l.on(d);
|
|
580
512
|
}
|
|
581
513
|
};
|
|
582
514
|
}
|
|
583
|
-
function
|
|
515
|
+
function yn() {
|
|
584
516
|
var s, t, e, i, n = j(-30), a, o = 1, h = 1 / 0, r = 0.81;
|
|
585
517
|
function l(g) {
|
|
586
|
-
var
|
|
587
|
-
for (i = g,
|
|
518
|
+
var p, d = s.length, v = le(s, fn, gn).visitAfter(c);
|
|
519
|
+
for (i = g, p = 0; p < d; ++p) t = s[p], v.visit(f);
|
|
588
520
|
}
|
|
589
521
|
function u() {
|
|
590
522
|
if (s) {
|
|
591
|
-
var g,
|
|
592
|
-
for (a = new Array(
|
|
523
|
+
var g, p = s.length, d;
|
|
524
|
+
for (a = new Array(p), g = 0; g < p; ++g) d = s[g], a[d.index] = +n(d, g, s);
|
|
593
525
|
}
|
|
594
526
|
}
|
|
595
|
-
function
|
|
596
|
-
var
|
|
527
|
+
function c(g) {
|
|
528
|
+
var p = 0, d, v, y = 0, m, _, x;
|
|
597
529
|
if (g.length) {
|
|
598
530
|
for (m = _ = x = 0; x < 4; ++x)
|
|
599
|
-
(d = g[x]) && (
|
|
531
|
+
(d = g[x]) && (v = Math.abs(d.value)) && (p += d.value, y += v, m += v * d.x, _ += v * d.y);
|
|
600
532
|
g.x = m / y, g.y = _ / y;
|
|
601
533
|
} else {
|
|
602
534
|
d = g, d.x = d.data.x, d.y = d.data.y;
|
|
603
535
|
do
|
|
604
|
-
|
|
536
|
+
p += a[d.data.index];
|
|
605
537
|
while (d = d.next);
|
|
606
538
|
}
|
|
607
|
-
g.value =
|
|
539
|
+
g.value = p;
|
|
608
540
|
}
|
|
609
|
-
function
|
|
541
|
+
function f(g, p, d, v) {
|
|
610
542
|
if (!g.value) return !0;
|
|
611
|
-
var y = g.x - t.x, m = g.y - t.y, _ =
|
|
543
|
+
var y = g.x - t.x, m = g.y - t.y, _ = v - p, x = y * y + m * m;
|
|
612
544
|
if (_ * _ / r < x)
|
|
613
545
|
return x < h && (y === 0 && (y = st(e), x += y * y), m === 0 && (m = st(e), x += m * m), x < o && (x = Math.sqrt(o * x)), t.vx += y * g.value * i / x, t.vy += m * g.value * i / x), !0;
|
|
614
546
|
if (g.length || x >= h) return;
|
|
@@ -617,8 +549,8 @@ function Dn() {
|
|
|
617
549
|
g.data !== t && (_ = a[g.data.index] * i / x, t.vx += y * _, t.vy += m * _);
|
|
618
550
|
while (g = g.next);
|
|
619
551
|
}
|
|
620
|
-
return l.initialize = function(g,
|
|
621
|
-
s = g, e =
|
|
552
|
+
return l.initialize = function(g, p) {
|
|
553
|
+
s = g, e = p, u();
|
|
622
554
|
}, l.strength = function(g) {
|
|
623
555
|
return arguments.length ? (n = typeof g == "function" ? g : j(+g), u(), l) : n;
|
|
624
556
|
}, l.distanceMin = function(g) {
|
|
@@ -629,7 +561,7 @@ function Dn() {
|
|
|
629
561
|
return arguments.length ? (r = g * g, l) : Math.sqrt(r);
|
|
630
562
|
}, l;
|
|
631
563
|
}
|
|
632
|
-
function
|
|
564
|
+
function mn(s) {
|
|
633
565
|
var t = j(0.1), e, i, n;
|
|
634
566
|
typeof s != "function" && (s = j(s == null ? 0 : +s));
|
|
635
567
|
function a(h) {
|
|
@@ -651,7 +583,7 @@ function kn(s) {
|
|
|
651
583
|
return arguments.length ? (s = typeof h == "function" ? h : j(+h), o(), a) : s;
|
|
652
584
|
}, a;
|
|
653
585
|
}
|
|
654
|
-
function
|
|
586
|
+
function xn(s) {
|
|
655
587
|
var t = j(0.1), e, i, n;
|
|
656
588
|
typeof s != "function" && (s = j(s == null ? 0 : +s));
|
|
657
589
|
function a(h) {
|
|
@@ -673,21 +605,21 @@ function Nn(s) {
|
|
|
673
605
|
return arguments.length ? (s = typeof h == "function" ? h : j(+h), o(), a) : s;
|
|
674
606
|
}, a;
|
|
675
607
|
}
|
|
676
|
-
class
|
|
608
|
+
class Qe extends di {
|
|
677
609
|
setupDefaultRules() {
|
|
678
610
|
super.setupDefaultRules();
|
|
679
611
|
const t = this._root.interfaceColors, e = this._root.gridLayout, i = this.rule.bind(this);
|
|
680
612
|
i("Hierarchy").setAll({
|
|
681
613
|
legendLabelText: "{category}",
|
|
682
614
|
legendValueText: "{sum.formatNumber('#.#')}",
|
|
683
|
-
width:
|
|
684
|
-
height:
|
|
685
|
-
colors:
|
|
615
|
+
width: Ut,
|
|
616
|
+
height: Ut,
|
|
617
|
+
colors: vi.new(this._root, { step: 2 }),
|
|
686
618
|
downDepth: 1,
|
|
687
619
|
initialDepth: 5,
|
|
688
620
|
singleBranchOnly: !0,
|
|
689
621
|
maskContent: !0,
|
|
690
|
-
animationEasing:
|
|
622
|
+
animationEasing: pi(yi)
|
|
691
623
|
}), i("HierarchyNode").setAll({
|
|
692
624
|
toggleKey: "disabled",
|
|
693
625
|
setStateOnChildren: !0,
|
|
@@ -701,8 +633,8 @@ class ei extends yi {
|
|
|
701
633
|
{
|
|
702
634
|
const n = i("Label", ["hierarchy", "node"]);
|
|
703
635
|
n.setAll({
|
|
704
|
-
centerX:
|
|
705
|
-
centerY:
|
|
636
|
+
centerX: E,
|
|
637
|
+
centerY: E,
|
|
706
638
|
position: "absolute",
|
|
707
639
|
paddingBottom: 1,
|
|
708
640
|
paddingTop: 1,
|
|
@@ -712,7 +644,7 @@ class ei extends yi {
|
|
|
712
644
|
populateText: !0,
|
|
713
645
|
oversizedBehavior: "fit",
|
|
714
646
|
minScale: 0.3
|
|
715
|
-
}),
|
|
647
|
+
}), X(n, "fill", t, "alternativeText");
|
|
716
648
|
}
|
|
717
649
|
{
|
|
718
650
|
const n = i("HierarchyLink");
|
|
@@ -723,7 +655,7 @@ class ei extends yi {
|
|
|
723
655
|
strokeOpacity: 1,
|
|
724
656
|
strength: 0.9,
|
|
725
657
|
distance: 1.1
|
|
726
|
-
}),
|
|
658
|
+
}), X(n, "stroke", t, "grid");
|
|
727
659
|
}
|
|
728
660
|
i("Circle", ["linkedhierarchy", "shape"]).setAll({
|
|
729
661
|
position: "absolute",
|
|
@@ -752,15 +684,15 @@ class ei extends yi {
|
|
|
752
684
|
cursorOverStyle: "pointer",
|
|
753
685
|
populateText: !0,
|
|
754
686
|
text: "{category}:"
|
|
755
|
-
}),
|
|
687
|
+
}), X(n, "fill", t, "primaryButton");
|
|
756
688
|
}
|
|
757
689
|
{
|
|
758
690
|
const n = i("Label", ["breadcrumb"]).states.create("hover", {});
|
|
759
|
-
|
|
691
|
+
X(n, "fill", t, "primaryButtonHover");
|
|
760
692
|
}
|
|
761
693
|
{
|
|
762
694
|
const n = i("Label", ["breadcrumb"]).states.create("down", { stateAnimationDuration: 0 });
|
|
763
|
-
|
|
695
|
+
X(n, "fill", t, "primaryButtonDown");
|
|
764
696
|
}
|
|
765
697
|
{
|
|
766
698
|
const n = i("Label", ["breadcrumb", "last"]);
|
|
@@ -769,13 +701,13 @@ class ei extends yi {
|
|
|
769
701
|
text: "{category}",
|
|
770
702
|
fontWeight: "bold",
|
|
771
703
|
cursorOverStyle: "default"
|
|
772
|
-
}),
|
|
704
|
+
}), X(n, "fill", t, "primaryButton");
|
|
773
705
|
}
|
|
774
706
|
{
|
|
775
707
|
const n = i("RoundedRectangle", ["breadcrumb", "label", "background"]);
|
|
776
708
|
n.setAll({
|
|
777
709
|
fillOpacity: 0
|
|
778
|
-
}),
|
|
710
|
+
}), X(n, "fill", t, "background");
|
|
779
711
|
}
|
|
780
712
|
i("Partition").setAll({
|
|
781
713
|
downDepth: 1,
|
|
@@ -790,10 +722,10 @@ class ei extends yi {
|
|
|
790
722
|
{
|
|
791
723
|
const n = i("Label", ["partition", "node"]);
|
|
792
724
|
n.setAll({
|
|
793
|
-
x:
|
|
794
|
-
y:
|
|
795
|
-
centerY:
|
|
796
|
-
centerX:
|
|
725
|
+
x: E,
|
|
726
|
+
y: E,
|
|
727
|
+
centerY: E,
|
|
728
|
+
centerX: E,
|
|
797
729
|
paddingBottom: 1,
|
|
798
730
|
paddingTop: 1,
|
|
799
731
|
paddingLeft: 1,
|
|
@@ -803,7 +735,7 @@ class ei extends yi {
|
|
|
803
735
|
text: "{category}",
|
|
804
736
|
oversizedBehavior: "fit",
|
|
805
737
|
minScale: 0.4
|
|
806
|
-
}),
|
|
738
|
+
}), X(n, "fill", t, "alternativeText");
|
|
807
739
|
}
|
|
808
740
|
i("Label", ["horizontal", "partition", "node"]).setAll({
|
|
809
741
|
rotation: 0
|
|
@@ -817,7 +749,7 @@ class ei extends yi {
|
|
|
817
749
|
cornerRadiusTR: 0,
|
|
818
750
|
cornerRadiusBL: 0,
|
|
819
751
|
cornerRadiusTL: 0
|
|
820
|
-
}),
|
|
752
|
+
}), X(n, "stroke", t, "background");
|
|
821
753
|
}
|
|
822
754
|
i("RoundedRectangle", ["partition", "node", "shape", "last"]).setAll({
|
|
823
755
|
fillOpacity: 0.75
|
|
@@ -835,7 +767,7 @@ class ei extends yi {
|
|
|
835
767
|
strokeOpacity: 1,
|
|
836
768
|
strokeWidth: 1,
|
|
837
769
|
cornerRadius: 0
|
|
838
|
-
}),
|
|
770
|
+
}), X(n, "stroke", t, "background");
|
|
839
771
|
}
|
|
840
772
|
i("Slice", ["sunburst", "node", "shape", "last"]).setAll({
|
|
841
773
|
fillOpacity: 0.75
|
|
@@ -850,18 +782,18 @@ class ei extends yi {
|
|
|
850
782
|
paddingTop: 1,
|
|
851
783
|
paddingLeft: 1,
|
|
852
784
|
paddingRight: 1,
|
|
853
|
-
centerX:
|
|
785
|
+
centerX: E,
|
|
854
786
|
populateText: !0,
|
|
855
787
|
text: "{category}",
|
|
856
788
|
oversizedBehavior: "fit",
|
|
857
789
|
minScale: 0.4,
|
|
858
|
-
baseRadius:
|
|
790
|
+
baseRadius: E,
|
|
859
791
|
rotation: 0
|
|
860
|
-
}),
|
|
792
|
+
}), X(n, "fill", t, "alternativeText");
|
|
861
793
|
}
|
|
862
794
|
i("ForceDirected").setAll({
|
|
863
|
-
minRadius:
|
|
864
|
-
maxRadius:
|
|
795
|
+
minRadius: Ft(1),
|
|
796
|
+
maxRadius: Ft(8),
|
|
865
797
|
initialFrames: 500,
|
|
866
798
|
centerStrength: 0.8,
|
|
867
799
|
manyBodyStrength: -14,
|
|
@@ -894,8 +826,8 @@ class ei extends yi {
|
|
|
894
826
|
{
|
|
895
827
|
const n = i("Label", ["pack", "node"]);
|
|
896
828
|
n.setAll({
|
|
897
|
-
centerY:
|
|
898
|
-
centerX:
|
|
829
|
+
centerY: E,
|
|
830
|
+
centerX: E,
|
|
899
831
|
paddingBottom: 1,
|
|
900
832
|
paddingTop: 1,
|
|
901
833
|
paddingLeft: 1,
|
|
@@ -904,7 +836,7 @@ class ei extends yi {
|
|
|
904
836
|
text: "{category}",
|
|
905
837
|
oversizedBehavior: "fit",
|
|
906
838
|
minScale: 0.4
|
|
907
|
-
}),
|
|
839
|
+
}), X(n, "fill", t, "alternativeText");
|
|
908
840
|
}
|
|
909
841
|
{
|
|
910
842
|
const n = i("Circle", ["pack", "node", "shape"]);
|
|
@@ -912,7 +844,7 @@ class ei extends yi {
|
|
|
912
844
|
strokeOpacity: 0.5,
|
|
913
845
|
fillOpacity: 0.8,
|
|
914
846
|
strokeWidth: 1
|
|
915
|
-
}),
|
|
847
|
+
}), X(n, "stroke", t, "background");
|
|
916
848
|
}
|
|
917
849
|
i("LinkedHierarchyNode").setAll({
|
|
918
850
|
draggable: !0
|
|
@@ -923,10 +855,10 @@ class ei extends yi {
|
|
|
923
855
|
{
|
|
924
856
|
const n = i("Label", ["treemap", "node"]);
|
|
925
857
|
n.setAll({
|
|
926
|
-
x:
|
|
927
|
-
y:
|
|
928
|
-
centerY:
|
|
929
|
-
centerX:
|
|
858
|
+
x: E,
|
|
859
|
+
y: E,
|
|
860
|
+
centerY: E,
|
|
861
|
+
centerX: E,
|
|
930
862
|
paddingBottom: 1,
|
|
931
863
|
paddingTop: 1,
|
|
932
864
|
paddingLeft: 1,
|
|
@@ -935,10 +867,10 @@ class ei extends yi {
|
|
|
935
867
|
text: "{category}",
|
|
936
868
|
oversizedBehavior: "fit",
|
|
937
869
|
minScale: 0.4
|
|
938
|
-
}),
|
|
870
|
+
}), X(n, "fill", t, "alternativeText");
|
|
939
871
|
}
|
|
940
872
|
i("HierarchyNode", ["treemap", "node"]).setAll({
|
|
941
|
-
tooltipY:
|
|
873
|
+
tooltipY: Ft(40),
|
|
942
874
|
isMeasured: !1,
|
|
943
875
|
position: "absolute",
|
|
944
876
|
cursorOverStyle: "pointer"
|
|
@@ -955,7 +887,7 @@ class ei extends yi {
|
|
|
955
887
|
cornerRadiusBL: 0,
|
|
956
888
|
cornerRadiusTL: 0,
|
|
957
889
|
fillOpacity: 1
|
|
958
|
-
}),
|
|
890
|
+
}), X(n, "stroke", t, "background");
|
|
959
891
|
}
|
|
960
892
|
i("VoronoiTreemap").setAll({
|
|
961
893
|
type: "polygon",
|
|
@@ -970,7 +902,7 @@ class ei extends yi {
|
|
|
970
902
|
strokeOpacity: 1,
|
|
971
903
|
strokeWidth: 1,
|
|
972
904
|
fillOpacity: 1
|
|
973
|
-
}),
|
|
905
|
+
}), X(n, "stroke", t, "background");
|
|
974
906
|
}
|
|
975
907
|
i("Polygon", ["hierarchy", "node", "shape", "depth1"]).setAll({
|
|
976
908
|
strokeWidth: 3
|
|
@@ -978,8 +910,8 @@ class ei extends yi {
|
|
|
978
910
|
{
|
|
979
911
|
const n = i("Label", ["voronoitreemap"]);
|
|
980
912
|
n.setAll({
|
|
981
|
-
centerY:
|
|
982
|
-
centerX:
|
|
913
|
+
centerY: E,
|
|
914
|
+
centerX: E,
|
|
983
915
|
paddingBottom: 1,
|
|
984
916
|
paddingTop: 1,
|
|
985
917
|
paddingLeft: 1,
|
|
@@ -989,15 +921,15 @@ class ei extends yi {
|
|
|
989
921
|
oversizedBehavior: "fit",
|
|
990
922
|
minScale: 0.4,
|
|
991
923
|
layer: 30
|
|
992
|
-
}),
|
|
924
|
+
}), X(n, "fill", t, "alternativeText");
|
|
993
925
|
}
|
|
994
926
|
}
|
|
995
927
|
}
|
|
996
|
-
class
|
|
928
|
+
class Zt extends yt {
|
|
997
929
|
constructor() {
|
|
998
|
-
super(...arguments), this.labels = this.addDisposer(new Z(K.new({}), () =>
|
|
930
|
+
super(...arguments), this.labels = this.addDisposer(new Z(K.new({}), () => Ge._new(this._root, {
|
|
999
931
|
themeTags: G(this.labels.template.get("themeTags", []), ["label"]),
|
|
1000
|
-
background:
|
|
932
|
+
background: ae.new(this._root, {
|
|
1001
933
|
themeTags: ["background"]
|
|
1002
934
|
})
|
|
1003
935
|
}, [this.labels.template])));
|
|
@@ -1013,7 +945,7 @@ class ee extends yt {
|
|
|
1013
945
|
}), this.labels.push(e), e;
|
|
1014
946
|
}
|
|
1015
947
|
_afterNew() {
|
|
1016
|
-
this._defaultThemes.push(
|
|
948
|
+
this._defaultThemes.push(Qe.new(this._root)), this._settings.themeTags = G(this._settings.themeTags, ["breadcrumb"]), super._afterNew();
|
|
1017
949
|
}
|
|
1018
950
|
_changed() {
|
|
1019
951
|
if (super._changed(), this.isDirty("series")) {
|
|
@@ -1033,8 +965,8 @@ class ee extends yt {
|
|
|
1033
965
|
}
|
|
1034
966
|
}
|
|
1035
967
|
}
|
|
1036
|
-
|
|
1037
|
-
|
|
968
|
+
Zt.className = "BreadcrumbBar";
|
|
969
|
+
Zt.classNames = yt.classNames.concat([Zt.className]);
|
|
1038
970
|
class dt extends yt {
|
|
1039
971
|
_afterNew() {
|
|
1040
972
|
super._afterNew(), this.states.create("disabled", {}), this.states.create("hover", {}), this.states.create("hoverDisabled", {}), this.on("disabled", () => {
|
|
@@ -1058,11 +990,11 @@ class dt extends yt {
|
|
|
1058
990
|
}
|
|
1059
991
|
dt.className = "HierarchyNode";
|
|
1060
992
|
dt.classNames = yt.classNames.concat([dt.className]);
|
|
1061
|
-
class Q extends
|
|
993
|
+
class Q extends je {
|
|
1062
994
|
constructor() {
|
|
1063
995
|
super(...arguments), this.nodesContainer = this.children.push(yt.new(this._root, { isMeasured: !1 })), this._index = 0, this._tag = "hierarchy", this.nodes = this.addDisposer(new Z(K.new({}), () => dt.new(this._root, {
|
|
1064
996
|
themeTags: G(this.nodes.template.get("themeTags", []), [this._tag, "hierarchy", "node"])
|
|
1065
|
-
}, this.nodes.template))), this.labels = this.addDisposer(new Z(K.new({}), () =>
|
|
997
|
+
}, this.nodes.template))), this.labels = this.addDisposer(new Z(K.new({}), () => Ge.new(this._root, {
|
|
1066
998
|
themeTags: G(this.labels.template.get("themeTags", []), [this._tag])
|
|
1067
999
|
}, this.labels.template)));
|
|
1068
1000
|
}
|
|
@@ -1082,13 +1014,13 @@ class Q extends Ke {
|
|
|
1082
1014
|
return i.addTag("depth" + a), this.nodesContainer.children.push(i), i.children.push(n), i;
|
|
1083
1015
|
}
|
|
1084
1016
|
_afterNew() {
|
|
1085
|
-
this._defaultThemes.push(
|
|
1017
|
+
this._defaultThemes.push(Qe.new(this._root)), this.fields.push("category", "childData", "disabled", "fill"), this.children.push(this.bulletsContainer), super._afterNew();
|
|
1086
1018
|
}
|
|
1087
1019
|
_prepareChildren() {
|
|
1088
1020
|
if (super._prepareChildren(), this._valuesDirty) {
|
|
1089
1021
|
this._treeData = {};
|
|
1090
1022
|
const t = this.dataItems[0];
|
|
1091
|
-
if (t && (this._makeHierarchyData(this._treeData, t), this._index = 0, this._rootNode =
|
|
1023
|
+
if (t && (this._makeHierarchyData(this._treeData, t), this._index = 0, this._rootNode = Ni(this._treeData), this._rootNode)) {
|
|
1092
1024
|
this._rootNode.sum((i) => i.value);
|
|
1093
1025
|
const e = this.get("sort");
|
|
1094
1026
|
e == "descending" ? this._rootNode.sort((i, n) => n.value - i.value) : e == "ascending" && this._rootNode.sort((i, n) => i.value - n.value), this.setPrivateRaw("valueLow", 1 / 0), this.setPrivateRaw("valueHigh", -1 / 0), this.setPrivateRaw("maxDepth", 0), this._updateValues(this._rootNode);
|
|
@@ -1163,8 +1095,8 @@ class Q extends Ke {
|
|
|
1163
1095
|
if (this.makeNode(t), this._processDataItem(t), e) {
|
|
1164
1096
|
const l = [];
|
|
1165
1097
|
t.setRaw("children", l), P(e, (u) => {
|
|
1166
|
-
const
|
|
1167
|
-
l.push(
|
|
1098
|
+
const c = new xe(this, u, this._makeDataItem(u));
|
|
1099
|
+
l.push(c), c.setRaw("parent", t), c.setRaw("depth", o + 1), this.dataItems.length == 1 && o == 0 ? (i && c.get("fill") == null && c.setRaw("fill", i.next()), n && c.get("fillPattern") == null && c.setRaw("fillPattern", n.next())) : (c.get("fill") == null && c.setRaw("fill", t.get("fill")), c.get("fillPattern") == null && c.setRaw("fillPattern", t.get("fillPattern"))), this.processDataItem(c);
|
|
1168
1100
|
});
|
|
1169
1101
|
}
|
|
1170
1102
|
const r = t.get("children");
|
|
@@ -1187,17 +1119,17 @@ class Q extends Ke {
|
|
|
1187
1119
|
let r = t.get("depth");
|
|
1188
1120
|
P(a, (l) => {
|
|
1189
1121
|
let u = !1;
|
|
1190
|
-
if (
|
|
1191
|
-
const
|
|
1192
|
-
if (o.push(
|
|
1193
|
-
let
|
|
1194
|
-
if (
|
|
1122
|
+
if (mi(o, (c) => c.dataContext == l ? (u = !0, !1) : !0), !u) {
|
|
1123
|
+
const c = new xe(this, l, this._makeDataItem(l));
|
|
1124
|
+
if (o.push(c), c.setRaw("parent", t), c.setRaw("depth", r + 1), c.get("fill") == null) {
|
|
1125
|
+
let f = t.get("fill");
|
|
1126
|
+
if (f == null) {
|
|
1195
1127
|
const g = this.get("colors");
|
|
1196
|
-
g && (
|
|
1128
|
+
g && (f = g.next());
|
|
1197
1129
|
}
|
|
1198
|
-
|
|
1130
|
+
c.setRaw("fill", f);
|
|
1199
1131
|
}
|
|
1200
|
-
this.processDataItem(
|
|
1132
|
+
this.processDataItem(c);
|
|
1201
1133
|
}
|
|
1202
1134
|
});
|
|
1203
1135
|
}
|
|
@@ -1210,7 +1142,7 @@ class Q extends Ke {
|
|
|
1210
1142
|
e.get("node").set("disabled", e.get("disabled"));
|
|
1211
1143
|
});
|
|
1212
1144
|
let n = t.data.value, a = t.value;
|
|
1213
|
-
if (n != null && (a = n, t.value = a),
|
|
1145
|
+
if (n != null && (a = n, t.value = a), V(a)) {
|
|
1214
1146
|
e.setRaw("sum", a), e.setRaw("valuePercentTotal", a / this.dataItems[0].get("sum") * 100);
|
|
1215
1147
|
let o = 100;
|
|
1216
1148
|
const h = e.get("parent");
|
|
@@ -1237,10 +1169,10 @@ class Q extends Ke {
|
|
|
1237
1169
|
n.push(h), this._makeHierarchyData(h, o);
|
|
1238
1170
|
});
|
|
1239
1171
|
const a = e.get("valueWorking");
|
|
1240
|
-
|
|
1172
|
+
V(a) && (t.value = a);
|
|
1241
1173
|
} else {
|
|
1242
1174
|
const n = e.get("valueWorking");
|
|
1243
|
-
|
|
1175
|
+
V(n) && (t.value = n);
|
|
1244
1176
|
}
|
|
1245
1177
|
}
|
|
1246
1178
|
/**
|
|
@@ -1268,14 +1200,14 @@ class Q extends Ke {
|
|
|
1268
1200
|
const i = Object.create(null, {
|
|
1269
1201
|
hideDataItem: { get: () => super.hideDataItem }
|
|
1270
1202
|
});
|
|
1271
|
-
return
|
|
1203
|
+
return _e(this, void 0, void 0, function* () {
|
|
1272
1204
|
const n = [i.hideDataItem.call(this, t, e)], a = this.states.create("hidden", {});
|
|
1273
|
-
if (!
|
|
1205
|
+
if (!V(e)) {
|
|
1274
1206
|
const u = "stateAnimationDuration";
|
|
1275
1207
|
e = a.get(u, this.get(u, 0));
|
|
1276
1208
|
}
|
|
1277
1209
|
const o = "stateAnimationEasing", h = a.get(o, this.get(o)), r = t.get("children");
|
|
1278
|
-
(!r || r.length == 0) &&
|
|
1210
|
+
(!r || r.length == 0) && V(t.get("value")) && n.push(t.animate({ key: "valueWorking", to: 0, duration: e, easing: h }).waitForStop());
|
|
1279
1211
|
const l = t.get("node");
|
|
1280
1212
|
l.hide(), l.hideTooltip(), r && P(r, (u) => {
|
|
1281
1213
|
n.push(this.hideDataItem(u));
|
|
@@ -1293,11 +1225,11 @@ class Q extends Ke {
|
|
|
1293
1225
|
const i = Object.create(null, {
|
|
1294
1226
|
showDataItem: { get: () => super.showDataItem }
|
|
1295
1227
|
});
|
|
1296
|
-
return
|
|
1228
|
+
return _e(this, void 0, void 0, function* () {
|
|
1297
1229
|
const n = [i.showDataItem.call(this, t, e)];
|
|
1298
|
-
|
|
1230
|
+
V(e) || (e = this.get("stateAnimationDuration", 0));
|
|
1299
1231
|
const a = this.get("stateAnimationEasing"), o = t.get("children");
|
|
1300
|
-
(!o || o.length == 0) &&
|
|
1232
|
+
(!o || o.length == 0) && V(t.get("value")) && n.push(t.animate({ key: "valueWorking", to: t.get("value"), duration: e, easing: a }).waitForStop()), t.get("node").show(), o && P(o, (r) => {
|
|
1301
1233
|
n.push(this.showDataItem(r));
|
|
1302
1234
|
}), yield Promise.all(n);
|
|
1303
1235
|
});
|
|
@@ -1427,8 +1359,8 @@ class Q extends Ke {
|
|
|
1427
1359
|
}
|
|
1428
1360
|
}
|
|
1429
1361
|
Q.className = "Hierarchy";
|
|
1430
|
-
Q.classNames =
|
|
1431
|
-
class
|
|
1362
|
+
Q.classNames = je.classNames.concat([Q.className]);
|
|
1363
|
+
class Wt extends dt {
|
|
1432
1364
|
_afterNew() {
|
|
1433
1365
|
super._afterNew(), this.states.create("disabled", {}), this.states.create("hover", {}), this.states.create("hoverDisabled", {});
|
|
1434
1366
|
}
|
|
@@ -1452,9 +1384,9 @@ class It extends dt {
|
|
|
1452
1384
|
super._onShow(t), this._updateLinks(t);
|
|
1453
1385
|
}
|
|
1454
1386
|
}
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
class
|
|
1387
|
+
Wt.className = "LinkedHierarchyNode";
|
|
1388
|
+
Wt.classNames = dt.classNames.concat([Wt.className]);
|
|
1389
|
+
class Mt extends Ue {
|
|
1458
1390
|
constructor() {
|
|
1459
1391
|
super(...arguments), this.bullets = [];
|
|
1460
1392
|
}
|
|
@@ -1482,12 +1414,12 @@ class Bt extends Ze {
|
|
|
1482
1414
|
if (i && n) {
|
|
1483
1415
|
const a = i.get("node"), o = n.get("node"), h = a.x(), r = a.y(), l = o.x(), u = o.y();
|
|
1484
1416
|
this._display.moveTo(h, r), this._display.lineTo(l, u);
|
|
1485
|
-
const
|
|
1417
|
+
const c = (t = a.dataItem) === null || t === void 0 ? void 0 : t.get("outerCircle").get("radius", 0), f = (e = o.dataItem) === null || e === void 0 ? void 0 : e.get("outerCircle").get("radius", 0), g = Math.hypot(l - h, u - r), p = g - c - f;
|
|
1486
1418
|
P(this.bullets, (d) => {
|
|
1487
|
-
const
|
|
1488
|
-
if (
|
|
1419
|
+
const v = d.get("sprite");
|
|
1420
|
+
if (v) {
|
|
1489
1421
|
const y = d.get("locationX", 0.5);
|
|
1490
|
-
|
|
1422
|
+
v.set("x", h + c / g * (l - h) + p / g * (l - h) * y), v.set("y", r + c / g * (u - r) + p / g * (u - r) * y), d.get("autoRotate") && v.set("rotation", Math.atan2(u - r, l - h) * 180 / Math.PI + d.get("autoRotateAngle", 0));
|
|
1491
1423
|
}
|
|
1492
1424
|
});
|
|
1493
1425
|
}
|
|
@@ -1529,19 +1461,19 @@ class Bt extends Ze {
|
|
|
1529
1461
|
}), this.bullets = [];
|
|
1530
1462
|
}
|
|
1531
1463
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1464
|
+
Mt.className = "HierarchyLink";
|
|
1465
|
+
Mt.classNames = Ue.classNames.concat([Mt.className]);
|
|
1534
1466
|
class lt extends Q {
|
|
1535
1467
|
constructor() {
|
|
1536
|
-
super(...arguments), this.linkBullets = new
|
|
1468
|
+
super(...arguments), this.linkBullets = new xi(), this.nodes = this.addDisposer(new Z(K.new({}), () => Wt._new(this._root, {
|
|
1537
1469
|
themeTags: G(this.nodes.template.get("themeTags", []), [this._tag, "linkedhierarchy", "hierarchy", "node"]),
|
|
1538
1470
|
x: this.width() / 2,
|
|
1539
1471
|
y: this.height() / 2
|
|
1540
|
-
}, [this.nodes.template]))), this.circles = this.addDisposer(new Z(K.new({}), () =>
|
|
1472
|
+
}, [this.nodes.template]))), this.circles = this.addDisposer(new Z(K.new({}), () => Kt._new(this._root, {
|
|
1541
1473
|
themeTags: G(this.circles.template.get("themeTags", []), [this._tag, "shape"])
|
|
1542
|
-
}, [this.circles.template]))), this.outerCircles = this.addDisposer(new Z(K.new({}), () =>
|
|
1474
|
+
}, [this.circles.template]))), this.outerCircles = this.addDisposer(new Z(K.new({}), () => Kt._new(this._root, {
|
|
1543
1475
|
themeTags: G(this.outerCircles.template.get("themeTags", []), [this._tag, "outer", "shape"])
|
|
1544
|
-
}, [this.outerCircles.template]))), this.links = this.addDisposer(new Z(K.new({}), () =>
|
|
1476
|
+
}, [this.outerCircles.template]))), this.links = this.addDisposer(new Z(K.new({}), () => Mt._new(this._root, {
|
|
1545
1477
|
themeTags: G(this.links.template.get("themeTags", []), [this._tag, "linkedhierarchy", "hierarchy", "link"])
|
|
1546
1478
|
}, [this.links.template]))), this.linksContainer = this.children.moveValue(yt.new(this._root, {}), 0);
|
|
1547
1479
|
}
|
|
@@ -1632,7 +1564,7 @@ class lt extends Q {
|
|
|
1632
1564
|
const o = e.get("links");
|
|
1633
1565
|
return o && P(o, (h) => {
|
|
1634
1566
|
h.get("target") == t && (n = h);
|
|
1635
|
-
}), n || (n = this.links.make(), n.series = this, this.links.push(n), this.linksContainer.children.push(n), n.set("source", t), n.set("target", e), n._setDataItem(t), n._handleBullets(this.linkBullets), n.set("stroke", t.get("fill")), i != null && n.set("strength", i), t.get("childLinks").push(n),
|
|
1567
|
+
}), n || (n = this.links.make(), n.series = this, this.links.push(n), this.linksContainer.children.push(n), n.set("source", t), n.set("target", e), n._setDataItem(t), n._handleBullets(this.linkBullets), n.set("stroke", t.get("fill")), i != null && n.set("strength", i), t.get("childLinks").push(n), we(t.get("links"), n), we(e.get("links"), n), this._processLink(n, t, e)), n;
|
|
1636
1568
|
}
|
|
1637
1569
|
/**
|
|
1638
1570
|
* Unlink two linked data items.
|
|
@@ -1644,11 +1576,11 @@ class lt extends Q {
|
|
|
1644
1576
|
let i;
|
|
1645
1577
|
const n = t.get("links");
|
|
1646
1578
|
n && P(n, (o) => {
|
|
1647
|
-
o && o.get("target") == e && (i = o,
|
|
1579
|
+
o && o.get("target") == e && (i = o, $t(n, i));
|
|
1648
1580
|
});
|
|
1649
1581
|
const a = e.get("links");
|
|
1650
1582
|
a && P(a, (o) => {
|
|
1651
|
-
o && o.get("target") == t && (i = o,
|
|
1583
|
+
o && o.get("target") == t && (i = o, $t(a, i));
|
|
1652
1584
|
}), i && this._disposeLink(i), this._handleUnlink();
|
|
1653
1585
|
}
|
|
1654
1586
|
_handleUnlink() {
|
|
@@ -1699,9 +1631,9 @@ class lt extends Q {
|
|
|
1699
1631
|
}
|
|
1700
1632
|
lt.className = "LinkedHierarchy";
|
|
1701
1633
|
lt.classNames = Q.classNames.concat([lt.className]);
|
|
1702
|
-
class
|
|
1634
|
+
class Qt extends lt {
|
|
1703
1635
|
constructor() {
|
|
1704
|
-
super(...arguments), this._tag = "forcedirected", this.d3forceSimulation =
|
|
1636
|
+
super(...arguments), this._tag = "forcedirected", this.d3forceSimulation = vn(), this.collisionForce = on(20), this.linkForce = Yt(), this._nodes = [], this._links = [], this._tick = 0, this._nodesDirty = !1;
|
|
1705
1637
|
}
|
|
1706
1638
|
_afterNew() {
|
|
1707
1639
|
super._afterNew(), this.d3forceSimulation.on("tick", () => {
|
|
@@ -1738,7 +1670,7 @@ class ie extends lt {
|
|
|
1738
1670
|
_updateValues(t) {
|
|
1739
1671
|
super._updateValues(t), this._nodesDirty = !0;
|
|
1740
1672
|
const e = this.d3forceSimulation;
|
|
1741
|
-
e.force("collision", this.collisionForce), e.nodes(this._nodes), this.linkForce =
|
|
1673
|
+
e.force("collision", this.collisionForce), e.nodes(this._nodes), this.linkForce = Yt(this._links), e.force("link", this.linkForce);
|
|
1742
1674
|
}
|
|
1743
1675
|
_updateVisuals() {
|
|
1744
1676
|
super._updateVisuals(), this.restartSimulation(0.3);
|
|
@@ -1748,12 +1680,12 @@ class ie extends lt {
|
|
|
1748
1680
|
const t = this.d3forceSimulation;
|
|
1749
1681
|
if (this._sizeDirty) {
|
|
1750
1682
|
let e = Math.max(50, this.innerWidth()), i = Math.max(50, this.innerHeight()), n = this.get("paddingTop", 0), a = this.get("paddingLeft", 0), o = this.get("centerStrength", 1);
|
|
1751
|
-
t.force("x",
|
|
1683
|
+
t.force("x", mn().x(e / 2 + a).strength(o * 100 / e)), t.force("y", xn().y(i / 2 + n).strength(o * 100 / i));
|
|
1752
1684
|
}
|
|
1753
1685
|
this._nodesDirty && this._updateForces();
|
|
1754
1686
|
}
|
|
1755
1687
|
_updateForces() {
|
|
1756
|
-
this.d3forceSimulation.force("manybody",
|
|
1688
|
+
this.d3forceSimulation.force("manybody", yn().strength((e) => {
|
|
1757
1689
|
let i = e.dataItem, n = i.get("node"), a = i.get("circle"), o = this.get("manyBodyStrength", -15);
|
|
1758
1690
|
return a ? a.get("radius", 1) * n.get("scale", 1) * o : 0;
|
|
1759
1691
|
})), this.collisionForce.radius((e) => {
|
|
@@ -1828,16 +1760,16 @@ class ie extends lt {
|
|
|
1828
1760
|
_updateRadius(t) {
|
|
1829
1761
|
let e = (this.innerWidth() + this.innerHeight()) / 2, i = ut(this.get("minRadius", 1), e), n = ut(this.get("maxRadius", 5), e), a = t.get("sum"), o = n;
|
|
1830
1762
|
const h = this.getPrivate("valueLow", 0), r = this.getPrivate("valueHigh", 0);
|
|
1831
|
-
r > 0 && (o = i + (a - h) / (r - h) * (n - i)),
|
|
1763
|
+
r > 0 && (o = i + (a - h) / (r - h) * (n - i)), V(o) || (o = i);
|
|
1832
1764
|
const l = this.get("animationDuration", 0), u = this.get("animationEasing");
|
|
1833
1765
|
t.get("circle").animate({ key: "radius", to: o, duration: l, easing: u });
|
|
1834
1766
|
}
|
|
1835
1767
|
_processLink(t, e, i) {
|
|
1836
1768
|
const n = { link: t, source: e.get("d3ForceNode").index, target: i.get("d3ForceNode").index, sourceDataItem: e, targetDataItem: i };
|
|
1837
|
-
this._links.push(n), t.setPrivate("d3Link", n), this.linkForce =
|
|
1769
|
+
this._links.push(n), t.setPrivate("d3Link", n), this.linkForce = Yt(this._links), this.d3forceSimulation.force("link", this.linkForce), this.restartSimulation(0.5);
|
|
1838
1770
|
}
|
|
1839
1771
|
_disposeLink(t) {
|
|
1840
|
-
super._disposeLink(t),
|
|
1772
|
+
super._disposeLink(t), $t(this._links, t.getPrivate("d3Link"));
|
|
1841
1773
|
}
|
|
1842
1774
|
_handleUnlink() {
|
|
1843
1775
|
this.restartSimulation(0.5);
|
|
@@ -1846,11 +1778,11 @@ class ie extends lt {
|
|
|
1846
1778
|
super._onDataClear(), this._nodes = [], this._links = [];
|
|
1847
1779
|
}
|
|
1848
1780
|
}
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
class
|
|
1781
|
+
Qt.className = "ForceDirected";
|
|
1782
|
+
Qt.classNames = lt.classNames.concat([Qt.className]);
|
|
1783
|
+
class Jt extends Q {
|
|
1852
1784
|
constructor() {
|
|
1853
|
-
super(...arguments), this._tag = "pack", this._packLayout =
|
|
1785
|
+
super(...arguments), this._tag = "pack", this._packLayout = Pi(), this.circles = this.addDisposer(new Z(K.new({}), () => Kt._new(this._root, {
|
|
1854
1786
|
themeTags: G(this.circles.template.get("themeTags", []), [this._tag, "shape"])
|
|
1855
1787
|
}, [this.circles.template])));
|
|
1856
1788
|
}
|
|
@@ -1870,8 +1802,8 @@ class ne extends Q {
|
|
|
1870
1802
|
super._updateNode(t);
|
|
1871
1803
|
const e = t.get("node"), i = t.get("circle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleR", 1), o = n.x * a, h = n.y * a, r = n.r * a, l = this.get("animationDuration", 0), u = this.get("animationEasing");
|
|
1872
1804
|
if (e.animate({ key: "x", to: o, duration: l, easing: u }), e.animate({ key: "y", to: h, duration: l, easing: u }), i) {
|
|
1873
|
-
const
|
|
1874
|
-
i.animate({ key: "radius", to: r, duration: l, easing: u }), i._setDefault("fill",
|
|
1805
|
+
const c = t.get("fill"), f = t.get("fillPattern");
|
|
1806
|
+
i.animate({ key: "radius", to: r, duration: l, easing: u }), i._setDefault("fill", c), i._setDefault("fillPattern", f), i._setDefault("stroke", c);
|
|
1875
1807
|
}
|
|
1876
1808
|
}
|
|
1877
1809
|
_updateNodesScale(t) {
|
|
@@ -1907,13 +1839,13 @@ class ne extends Q {
|
|
|
1907
1839
|
l.animate({ key: "x", from: l.x(), to: this.width() / 2 - i * o, duration: r, easing: h }), l.animate({ key: "y", from: l.y(), to: this.height() / 2 - n * o, duration: r, easing: h });
|
|
1908
1840
|
}
|
|
1909
1841
|
}
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
class
|
|
1842
|
+
Jt.className = "Pack";
|
|
1843
|
+
Jt.classNames = Q.classNames.concat([Jt.className]);
|
|
1844
|
+
class wt extends Q {
|
|
1913
1845
|
constructor() {
|
|
1914
|
-
super(...arguments), this._tag = "partition", this.rectangles = this.addDisposer(new Z(K.new({}), () =>
|
|
1846
|
+
super(...arguments), this._tag = "partition", this.rectangles = this.addDisposer(new Z(K.new({}), () => ae._new(this._root, {
|
|
1915
1847
|
themeTags: G(this.rectangles.template.get("themeTags", []), [this._tag, "shape"])
|
|
1916
|
-
}, [this.rectangles.template]))), this._partitionLayout =
|
|
1848
|
+
}, [this.rectangles.template]))), this._partitionLayout = Ke();
|
|
1917
1849
|
}
|
|
1918
1850
|
_afterNew() {
|
|
1919
1851
|
this._settings.themeTags = G(this._settings.themeTags, ["partition", this._settings.orientation || "vertical"]), super._afterNew(), this.setPrivate("scaleX", 1), this.setPrivate("scaleY", 1);
|
|
@@ -1927,7 +1859,7 @@ class kt extends Q {
|
|
|
1927
1859
|
let e = this.innerWidth(), i = this.innerHeight();
|
|
1928
1860
|
this.get("orientation") == "horizontal" && ([e, i] = [i, e]), t.size([e, i]);
|
|
1929
1861
|
const n = this.get("nodePadding");
|
|
1930
|
-
|
|
1862
|
+
V(n) && t.padding(n), t(this._rootNode), this._updateNodes(this._rootNode);
|
|
1931
1863
|
}
|
|
1932
1864
|
}
|
|
1933
1865
|
_updateNode(t) {
|
|
@@ -1935,11 +1867,11 @@ class kt extends Q {
|
|
|
1935
1867
|
const e = t.get("node"), i = t.get("rectangle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1);
|
|
1936
1868
|
let h, r, l, u;
|
|
1937
1869
|
this.get("orientation") == "horizontal" ? (h = n.y0 * a, r = n.y1 * a, l = n.x0 * o, u = n.x1 * o) : (h = n.x0 * a, r = n.x1 * a, l = n.y0 * o, u = n.y1 * o);
|
|
1938
|
-
let
|
|
1939
|
-
const g = this.get("animationDuration", 0),
|
|
1940
|
-
if (e.animate({ key: "x", to: h, duration: g, easing:
|
|
1941
|
-
const d = t.get("fill"),
|
|
1942
|
-
i.animate({ key: "width", to:
|
|
1870
|
+
let c = r - h, f = u - l;
|
|
1871
|
+
const g = this.get("animationDuration", 0), p = this.get("animationEasing");
|
|
1872
|
+
if (e.animate({ key: "x", to: h, duration: g, easing: p }), e.animate({ key: "y", to: l, duration: g, easing: p }), e.animate({ key: "width", to: c, duration: g, easing: p }), e.animate({ key: "height", to: f, duration: g, easing: p }), i) {
|
|
1873
|
+
const d = t.get("fill"), v = t.get("fillPattern");
|
|
1874
|
+
i.animate({ key: "width", to: c, duration: g, easing: p }), i.animate({ key: "height", to: f, duration: g, easing: p }), i._setDefault("fill", d), i._setDefault("fillPattern", v), i._setDefault("stroke", d);
|
|
1943
1875
|
}
|
|
1944
1876
|
}
|
|
1945
1877
|
_updateNodesScale(t) {
|
|
@@ -1948,11 +1880,11 @@ class kt extends Q {
|
|
|
1948
1880
|
const i = e.get("node"), n = e.get("rectangle"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1);
|
|
1949
1881
|
let h, r, l, u;
|
|
1950
1882
|
this.get("orientation") == "horizontal" ? (h = t.y0 * a, r = t.y1 * a, l = t.x0 * o, u = t.x1 * o) : (h = t.x0 * a, r = t.x1 * a, l = t.y0 * o, u = t.y1 * o);
|
|
1951
|
-
const
|
|
1952
|
-
i.setAll({ x: h, y: l, width:
|
|
1883
|
+
const c = r - h, f = u - l;
|
|
1884
|
+
i.setAll({ x: h, y: l, width: c, height: f }), n.setAll({ width: c, height: f });
|
|
1953
1885
|
const g = t.children;
|
|
1954
|
-
g && P(g, (
|
|
1955
|
-
this._updateNodesScale(
|
|
1886
|
+
g && P(g, (p) => {
|
|
1887
|
+
this._updateNodesScale(p);
|
|
1956
1888
|
});
|
|
1957
1889
|
}
|
|
1958
1890
|
}
|
|
@@ -1975,31 +1907,31 @@ class kt extends Q {
|
|
|
1975
1907
|
}
|
|
1976
1908
|
_zoom(t) {
|
|
1977
1909
|
let e = 0, i = 0, n = 0, a = 0;
|
|
1978
|
-
const o = this.get("upDepth", 0) + 1, h = this.get("topDepth", 0), r = this.innerWidth(), l = this.innerHeight(), u = this.getPrivate("maxDepth", 1),
|
|
1979
|
-
let
|
|
1980
|
-
if (
|
|
1910
|
+
const o = this.get("upDepth", 0) + 1, h = this.get("topDepth", 0), r = this.innerWidth(), l = this.innerHeight(), u = this.getPrivate("maxDepth", 1), c = l / (u + 1), f = r / (u + 1), g = Math.min(this.get("initialDepth", 1), u);
|
|
1911
|
+
let p = this._currentDownDepth;
|
|
1912
|
+
if (p == null && (p = this.get("downDepth", 1)), t) {
|
|
1981
1913
|
const _ = t.get("d3HierarchyNode");
|
|
1982
1914
|
let x = _.depth;
|
|
1983
|
-
this.get("orientation") == "horizontal" ? (e = _.y0, i = _.y1, n = _.x0, a = _.x1, e = i -
|
|
1915
|
+
this.get("orientation") == "horizontal" ? (e = _.y0, i = _.y1, n = _.x0, a = _.x1, e = i - f * o, i = e + f * (p + 1), x < h && (n = 0, a = l, e = f * h, i = e + f * g)) : (e = _.x0, i = _.x1, n = _.y0, a = _.y1, n = a - c * o, a = n + c * (p + 1), x < h && (e = 0, i = r, n = c * h, a = n + c * g));
|
|
1984
1916
|
}
|
|
1985
|
-
let d = r / (i - e),
|
|
1917
|
+
let d = r / (i - e), v = l / (a - n);
|
|
1986
1918
|
const y = this.get("animationEasing");
|
|
1987
1919
|
let m = this.get("animationDuration", 0);
|
|
1988
|
-
this.inited || (m = 0), this.animatePrivate({ key: "scaleX", to: d, duration: m, easing: y }), this.animatePrivate({ key: "scaleY", to:
|
|
1920
|
+
this.inited || (m = 0), this.animatePrivate({ key: "scaleX", to: d, duration: m, easing: y }), this.animatePrivate({ key: "scaleY", to: v, duration: m, easing: y }), this.animate({ key: "_d", from: 0, to: 1, duration: m, easing: y }), this.nodesContainer.animate({ key: "x", to: -e * d, duration: m, easing: y }), this.nodesContainer.animate({ key: "y", to: -n * v, duration: m, easing: y });
|
|
1989
1921
|
}
|
|
1990
1922
|
}
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
class
|
|
1923
|
+
wt.className = "Partition";
|
|
1924
|
+
wt.classNames = Q.classNames.concat([wt.className]);
|
|
1925
|
+
class te extends wt {
|
|
1994
1926
|
constructor() {
|
|
1995
|
-
super(...arguments), this._tag = "sunburst", this._partitionLayout =
|
|
1927
|
+
super(...arguments), this._tag = "sunburst", this._partitionLayout = Ke(), this.slices = this.addDisposer(new Z(K.new({}), () => Ri._new(this._root, {
|
|
1996
1928
|
themeTags: G(this.slices.template.get("themeTags", []), [this._tag, "hierarchy", "node", "shape"])
|
|
1997
|
-
}, [this.slices.template]))), this.labels = this.addDisposer(new Z(K.new({}), () =>
|
|
1929
|
+
}, [this.slices.template]))), this.labels = this.addDisposer(new Z(K.new({}), () => Ti._new(this._root, {
|
|
1998
1930
|
themeTags: G(this.labels.template.get("themeTags", []), [this._tag])
|
|
1999
1931
|
}, [this.labels.template])));
|
|
2000
1932
|
}
|
|
2001
1933
|
_afterNew() {
|
|
2002
|
-
super._afterNew(), this.nodesContainer.setAll({ x:
|
|
1934
|
+
super._afterNew(), this.nodesContainer.setAll({ x: E, y: E }), this.setPrivateRaw("dx", 0), this.setPrivateRaw("dr", 0);
|
|
2003
1935
|
}
|
|
2004
1936
|
_prepareChildren() {
|
|
2005
1937
|
super._prepareChildren(), (this.isPrivateDirty("dr") || this.isPrivateDirty("dx")) && this._rootNode && this._updateNodesScale(this._rootNode);
|
|
@@ -2007,41 +1939,41 @@ class se extends kt {
|
|
|
2007
1939
|
_updateVisuals() {
|
|
2008
1940
|
if (this._rootNode) {
|
|
2009
1941
|
const t = this._partitionLayout;
|
|
2010
|
-
let e =
|
|
1942
|
+
let e = _i(0, 0, this.get("startAngle", 0), this.get("endAngle", 360), 1), i = this.innerWidth(), n = this.innerHeight();
|
|
2011
1943
|
const a = i / (e.right - e.left), o = n / (e.bottom - e.top);
|
|
2012
|
-
let h = Math.min(a, o), r = ut(this.get("radius",
|
|
1944
|
+
let h = Math.min(a, o), r = ut(this.get("radius", Ut), h), l = ut(this.get("innerRadius", 0), r);
|
|
2013
1945
|
l < 0 && (l = r + l), h = r - l, this.setPrivateRaw("innerRadius", l), this.setPrivateRaw("hierarchySize", h), t.size([h, h]), this.nodesContainer.setAll({
|
|
2014
1946
|
dy: -r * (e.bottom + e.top) / 2,
|
|
2015
1947
|
dx: -r * (e.right + e.left) / 2
|
|
2016
1948
|
});
|
|
2017
1949
|
const u = this.get("nodePadding");
|
|
2018
|
-
|
|
1950
|
+
V(u) && t.padding(u), t(this._rootNode), this._updateNodes(this._rootNode);
|
|
2019
1951
|
}
|
|
2020
1952
|
}
|
|
2021
1953
|
_updateNode(t) {
|
|
2022
1954
|
super._updateNode(t);
|
|
2023
1955
|
const e = t.get("d3HierarchyNode");
|
|
2024
1956
|
t.get("node").setAll({ x: 0, y: 0 });
|
|
2025
|
-
const n = this.get("animationDuration", 0), a = this.get("animationEasing"), o = this.getPrivate("scaleX", 1), h = this.getPrivate("scaleY", 1), r = this.getPrivate("dr", 0), l = this.getPrivate("dx", 0), u = e.x0 * o + l,
|
|
2026
|
-
if (
|
|
2027
|
-
const y = this.get("startAngle", -90), m = this.get("endAngle", 270), _ = y + u / d * (m - y), x = y +
|
|
2028
|
-
let w =
|
|
2029
|
-
w -= r,
|
|
2030
|
-
const A = t.get("fill"),
|
|
2031
|
-
|
|
1957
|
+
const n = this.get("animationDuration", 0), a = this.get("animationEasing"), o = this.getPrivate("scaleX", 1), h = this.getPrivate("scaleY", 1), r = this.getPrivate("dr", 0), l = this.getPrivate("dx", 0), u = e.x0 * o + l, c = e.x1 * o + l, f = e.y0 * h, g = e.y1 * h, p = this.getPrivate("innerRadius"), d = this.getPrivate("hierarchySize", 0), v = t.get("slice");
|
|
1958
|
+
if (v) {
|
|
1959
|
+
const y = this.get("startAngle", -90), m = this.get("endAngle", 270), _ = y + u / d * (m - y), x = y + c / d * (m - y) - _;
|
|
1960
|
+
let w = p + f, b = p + g;
|
|
1961
|
+
w -= r, b -= r, b = Math.max(0, b), w = Math.max(0, w), v.animate({ key: "radius", to: b, duration: n, easing: a }), v.animate({ key: "innerRadius", to: w, duration: n, easing: a }), v.animate({ key: "startAngle", to: _, duration: n, easing: a }), v.animate({ key: "arc", to: x, duration: n, easing: a });
|
|
1962
|
+
const A = t.get("fill"), k = t.get("fillPattern");
|
|
1963
|
+
v._setDefault("fill", A), v._setDefault("fillPattern", k), v._setDefault("stroke", A);
|
|
2032
1964
|
}
|
|
2033
1965
|
}
|
|
2034
1966
|
_updateNodesScale(t) {
|
|
2035
1967
|
const e = t.data.dataItem;
|
|
2036
1968
|
if (e) {
|
|
2037
|
-
const i = this.getPrivate("scaleX", 1), n = this.getPrivate("scaleY", 1), a = this.getPrivate("dr", 0), o = this.getPrivate("dx", 0), h = t.x0 * i + o, r = t.x1 * i + o, l = t.y0 * n, u = t.y1 * n,
|
|
1969
|
+
const i = this.getPrivate("scaleX", 1), n = this.getPrivate("scaleY", 1), a = this.getPrivate("dr", 0), o = this.getPrivate("dx", 0), h = t.x0 * i + o, r = t.x1 * i + o, l = t.y0 * n, u = t.y1 * n, c = this.getPrivate("innerRadius"), f = this.getPrivate("hierarchySize", 0), g = e.get("slice");
|
|
2038
1970
|
if (g) {
|
|
2039
|
-
const d = this.get("startAngle", -90),
|
|
2040
|
-
let _ =
|
|
1971
|
+
const d = this.get("startAngle", -90), v = this.get("endAngle", 270), y = d + h / f * (v - d), m = d + r / f * (v - d) - y;
|
|
1972
|
+
let _ = c + l, x = c + u;
|
|
2041
1973
|
_ -= a, x -= a, x = Math.max(0, x), _ = Math.max(0, _), g.setAll({ radius: x, innerRadius: _, startAngle: y, arc: m });
|
|
2042
1974
|
}
|
|
2043
|
-
const
|
|
2044
|
-
|
|
1975
|
+
const p = t.children;
|
|
1976
|
+
p && P(p, (d) => {
|
|
2045
1977
|
this._updateNodesScale(d);
|
|
2046
1978
|
});
|
|
2047
1979
|
}
|
|
@@ -2059,9 +1991,9 @@ class se extends kt {
|
|
|
2059
1991
|
_updateLabel(t) {
|
|
2060
1992
|
const e = t.get("slice"), i = t.get("label");
|
|
2061
1993
|
if (e && i) {
|
|
2062
|
-
let n = e.get("innerRadius", 0), a = e.get("radius", 0), o = e.get("startAngle", 0), h = Math.abs(e.get("arc", 0)), r = o + h / 2, l = i.get("textType"), u = a - n,
|
|
2063
|
-
n == 0 && h >= 360 && l == "radial" && (a = 1, r = 0, u *= 2,
|
|
2064
|
-
maxHeight:
|
|
1994
|
+
let n = e.get("innerRadius", 0), a = e.get("radius", 0), o = e.get("startAngle", 0), h = Math.abs(e.get("arc", 0)), r = o + h / 2, l = i.get("textType"), u = a - n, c = a * h * De;
|
|
1995
|
+
n == 0 && h >= 360 && l == "radial" && (a = 1, r = 0, u *= 2, c = u), Math.round(h) >= 360 && l == "radial" && (r = 0), l == "circular" && (u = h * De * (n + (a - n) / 2) - 10), i.setAll({ labelAngle: r }), i.setPrivate("radius", a), i.setPrivate("innerRadius", n), i.setAll({
|
|
1996
|
+
maxHeight: c,
|
|
2065
1997
|
maxWidth: u
|
|
2066
1998
|
});
|
|
2067
1999
|
}
|
|
@@ -2071,16 +2003,16 @@ class se extends kt {
|
|
|
2071
2003
|
const a = t.get("d3HierarchyNode");
|
|
2072
2004
|
let o = this.get("upDepth", 0), h = this.get("topDepth", 0), r = a.depth, l = this.getPrivate("maxDepth", 1), u = this._currentDownDepth;
|
|
2073
2005
|
u == null && (u = this.get("downDepth", 1));
|
|
2074
|
-
const
|
|
2006
|
+
const c = n / (l + 1);
|
|
2075
2007
|
r < h && (r = h), r - o < 0 && (o = r), e = a.x0, i = a.x1;
|
|
2076
|
-
let
|
|
2077
|
-
|
|
2078
|
-
let g = n / (i - e),
|
|
2079
|
-
const
|
|
2008
|
+
let f = u + o + 1;
|
|
2009
|
+
f > l - h + 1 && (f = l - h + 1);
|
|
2010
|
+
let g = n / (i - e), p = n / (c * f), d = Math.max(r - o, h) * c * p;
|
|
2011
|
+
const v = this.get("animationEasing");
|
|
2080
2012
|
let y = this.get("animationDuration", 0);
|
|
2081
2013
|
this.inited || (y = 0);
|
|
2082
2014
|
let m = -e * g;
|
|
2083
|
-
this.animatePrivate({ key: "scaleX", to: g, duration: y, easing:
|
|
2015
|
+
this.animatePrivate({ key: "scaleX", to: g, duration: y, easing: v }), this.animatePrivate({ key: "scaleY", to: p, duration: y, easing: v }), this.animatePrivate({ key: "dr", to: d, duration: y, easing: v }), this.animatePrivate({ key: "dx", to: m, duration: y, easing: v });
|
|
2084
2016
|
}
|
|
2085
2017
|
_handleSingle(t) {
|
|
2086
2018
|
const e = t.get("parent");
|
|
@@ -2095,8 +2027,8 @@ class se extends kt {
|
|
|
2095
2027
|
const e = t.get("sprite");
|
|
2096
2028
|
if (e) {
|
|
2097
2029
|
const i = e.dataItem, n = t.get("locationX", 0.5), a = t.get("locationY", 0.5), o = i.get("slice"), h = o.get("arc", 0), r = o.get("startAngle", 0) + o.get("arc", 0) * n, l = o.get("innerRadius", 0), u = l + (o.get("radius", 0) - l) * a;
|
|
2098
|
-
let
|
|
2099
|
-
|
|
2030
|
+
let c = wi(r) * u, f = Di(r) * u;
|
|
2031
|
+
ke(h, 5) === 360 && ke(l, 2) === 0 && (c = 0, f = 0), e.set("x", c), e.set("y", f);
|
|
2100
2032
|
}
|
|
2101
2033
|
}
|
|
2102
2034
|
_makeBullet(t, e, i) {
|
|
@@ -2111,11 +2043,11 @@ class se extends kt {
|
|
|
2111
2043
|
}
|
|
2112
2044
|
}
|
|
2113
2045
|
}
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
class
|
|
2046
|
+
te.className = "Sunburst";
|
|
2047
|
+
te.classNames = wt.classNames.concat([te.className]);
|
|
2048
|
+
class ee extends lt {
|
|
2117
2049
|
constructor() {
|
|
2118
|
-
super(...arguments), this._tag = "tree", this._hierarchyLayout =
|
|
2050
|
+
super(...arguments), this._tag = "tree", this._hierarchyLayout = Ei();
|
|
2119
2051
|
}
|
|
2120
2052
|
_prepareChildren() {
|
|
2121
2053
|
super._prepareChildren(), (this.isDirty("orientation") || this.isDirty("inversed")) && this._updateVisuals();
|
|
@@ -2132,11 +2064,11 @@ class re extends lt {
|
|
|
2132
2064
|
return this.get("orientation") == "vertical" ? e ? { x: t.x, y: this.innerHeight() - t.y } : { x: t.x, y: t.y } : e ? { x: this.innerWidth() - t.y, y: t.x } : { x: t.y, y: t.x };
|
|
2133
2065
|
}
|
|
2134
2066
|
}
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
class
|
|
2067
|
+
ee.className = "Tree";
|
|
2068
|
+
ee.classNames = lt.classNames.concat([ee.className]);
|
|
2069
|
+
class ie extends Q {
|
|
2138
2070
|
constructor() {
|
|
2139
|
-
super(...arguments), this._tag = "treemap", this.rectangleTemplate = K.new({}), this._treemapLayout =
|
|
2071
|
+
super(...arguments), this._tag = "treemap", this.rectangleTemplate = K.new({}), this._treemapLayout = Ne().tile(be), this.rectangles = this.addDisposer(new Z(K.new({}), () => ae._new(this._root, {
|
|
2140
2072
|
themeTags: G(this.rectangles.template.get("themeTags", []), [this._tag, "shape"])
|
|
2141
2073
|
}, [this.rectangles.template])));
|
|
2142
2074
|
}
|
|
@@ -2148,23 +2080,23 @@ class ae extends Q {
|
|
|
2148
2080
|
let t;
|
|
2149
2081
|
switch (this.get("layoutAlgorithm")) {
|
|
2150
2082
|
case "squarify":
|
|
2151
|
-
t =
|
|
2083
|
+
t = be;
|
|
2152
2084
|
break;
|
|
2153
2085
|
case "binary":
|
|
2154
|
-
t =
|
|
2086
|
+
t = Bi;
|
|
2155
2087
|
break;
|
|
2156
2088
|
case "slice":
|
|
2157
|
-
t =
|
|
2089
|
+
t = $e;
|
|
2158
2090
|
break;
|
|
2159
2091
|
case "dice":
|
|
2160
|
-
t =
|
|
2092
|
+
t = oe;
|
|
2161
2093
|
break;
|
|
2162
2094
|
case "sliceDice":
|
|
2163
|
-
t =
|
|
2095
|
+
t = Fi;
|
|
2164
2096
|
break;
|
|
2165
2097
|
}
|
|
2166
2098
|
if (t) {
|
|
2167
|
-
this._treemapLayout =
|
|
2099
|
+
this._treemapLayout = Ne().tile(t), this._updateVisuals();
|
|
2168
2100
|
const e = this.get("selectedDataItem");
|
|
2169
2101
|
e && this._zoom(e);
|
|
2170
2102
|
}
|
|
@@ -2176,25 +2108,25 @@ class ae extends Q {
|
|
|
2176
2108
|
const t = this._treemapLayout;
|
|
2177
2109
|
t.size([this.innerWidth(), this.innerHeight()]);
|
|
2178
2110
|
const e = this.get("nodePaddingLeft"), i = this.get("nodePaddingRight"), n = this.get("nodePaddingTop"), a = this.get("nodePaddingBottom"), o = this.get("nodePaddingInner"), h = this.get("nodePaddingOuter");
|
|
2179
|
-
|
|
2111
|
+
V(e) && t.paddingLeft(e), V(i) && t.paddingRight(i), V(n) && t.paddingTop(n), V(a) && t.paddingBottom(a), V(o) && t.paddingInner(o), V(h) && t.paddingOuter(h), t(this._rootNode), this._updateNodes(this._rootNode);
|
|
2180
2112
|
}
|
|
2181
2113
|
}
|
|
2182
2114
|
_updateNode(t) {
|
|
2183
2115
|
super._updateNode(t);
|
|
2184
|
-
const e = t.get("node"), i = t.get("rectangle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = n.x0 * a, r = n.x1 * a, l = n.y0 * o, u = n.y1 * o,
|
|
2185
|
-
if (e.animate({ key: "x", to: h, duration: g, easing:
|
|
2186
|
-
const d = t.get("fill"),
|
|
2187
|
-
i.animate({ key: "width", to:
|
|
2116
|
+
const e = t.get("node"), i = t.get("rectangle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = n.x0 * a, r = n.x1 * a, l = n.y0 * o, u = n.y1 * o, c = r - h, f = u - l, g = this.get("animationDuration", 0), p = this.get("animationEasing");
|
|
2117
|
+
if (e.animate({ key: "x", to: h, duration: g, easing: p }), e.animate({ key: "y", to: l, duration: g, easing: p }), e.animate({ key: "width", to: c, duration: g, easing: p }), e.animate({ key: "height", to: f, duration: g, easing: p }), i) {
|
|
2118
|
+
const d = t.get("fill"), v = t.get("fillPattern");
|
|
2119
|
+
i.animate({ key: "width", to: c, duration: g, easing: p }), i.animate({ key: "height", to: f, duration: g, easing: p }), i._setDefault("fill", d), i._setDefault("fillPattern", v), i._setDefault("stroke", d);
|
|
2188
2120
|
}
|
|
2189
2121
|
}
|
|
2190
2122
|
_updateNodesScale(t) {
|
|
2191
2123
|
const e = t.data.dataItem;
|
|
2192
2124
|
if (e) {
|
|
2193
|
-
const i = e.get("node"), n = e.get("rectangle"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = t.x0 * a, r = t.x1 * a, l = t.y0 * o, u = t.y1 * o,
|
|
2194
|
-
i.setAll({ x: h, y: l, width:
|
|
2125
|
+
const i = e.get("node"), n = e.get("rectangle"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = t.x0 * a, r = t.x1 * a, l = t.y0 * o, u = t.y1 * o, c = r - h, f = u - l;
|
|
2126
|
+
i.setAll({ x: h, y: l, width: c, height: f }), n.setAll({ width: c, height: f });
|
|
2195
2127
|
const g = t.children;
|
|
2196
|
-
g && P(g, (
|
|
2197
|
-
this._updateNodesScale(
|
|
2128
|
+
g && P(g, (p) => {
|
|
2129
|
+
this._updateNodesScale(p);
|
|
2198
2130
|
});
|
|
2199
2131
|
}
|
|
2200
2132
|
}
|
|
@@ -2216,8 +2148,8 @@ class ae extends Q {
|
|
|
2216
2148
|
const e = t.get("d3HierarchyNode"), i = this.get("nodePaddingOuter", 0);
|
|
2217
2149
|
let n = e.x0 + i, a = e.x1 - i, o = e.y0 + i, h = e.y1 - i, r = (this.innerWidth() - i * 2) / (a - n), l = (this.innerHeight() - i * 2) / (h - o);
|
|
2218
2150
|
const u = this.get("animationEasing");
|
|
2219
|
-
let
|
|
2220
|
-
this.inited || (
|
|
2151
|
+
let c = this.get("animationDuration", 0);
|
|
2152
|
+
this.inited || (c = 0), this.animatePrivate({ key: "scaleX", to: r, duration: c, easing: u }), this.animatePrivate({ key: "scaleY", to: l, duration: c, easing: u }), this.nodesContainer.animate({ key: "x", to: i - n * r, duration: c, easing: u }), this.nodesContainer.animate({ key: "y", to: i - o * l, duration: c, easing: u });
|
|
2221
2153
|
}
|
|
2222
2154
|
}
|
|
2223
2155
|
_selectDataItem(t, e, i) {
|
|
@@ -2239,116 +2171,116 @@ class ae extends Q {
|
|
|
2239
2171
|
}), n;
|
|
2240
2172
|
}
|
|
2241
2173
|
}
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
function
|
|
2174
|
+
ie.className = "Treemap";
|
|
2175
|
+
ie.classNames = Q.classNames.concat([ie.className]);
|
|
2176
|
+
function bt(s) {
|
|
2245
2177
|
for (var t = -1, e = s.length, i, n = s[e - 1], a = 0; ++t < e; )
|
|
2246
2178
|
i = n, n = s[t], a += i[1] * n[0] - i[0] * n[1];
|
|
2247
2179
|
return a / 2;
|
|
2248
2180
|
}
|
|
2249
|
-
function
|
|
2181
|
+
function _n(s) {
|
|
2250
2182
|
for (var t = -1, e = s.length, i = 0, n = 0, a, o = s[e - 1], h, r = 0; ++t < e; )
|
|
2251
2183
|
a = o, o = s[t], r += h = a[0] * o[1] - o[0] * a[1], i += (a[0] + o[0]) * h, n += (a[1] + o[1]) * h;
|
|
2252
2184
|
return r *= 3, [i / r, n / r];
|
|
2253
2185
|
}
|
|
2254
|
-
function
|
|
2255
|
-
for (var e = s.length, i = s[e - 1], n = t[0], a = t[1], o = i[0], h = i[1], r, l, u = !1,
|
|
2256
|
-
i = s[
|
|
2186
|
+
function Je(s, t) {
|
|
2187
|
+
for (var e = s.length, i = s[e - 1], n = t[0], a = t[1], o = i[0], h = i[1], r, l, u = !1, c = 0; c < e; ++c)
|
|
2188
|
+
i = s[c], r = i[0], l = i[1], l > a != h > a && n < (o - r) * (a - l) / (h - l) + r && (u = !u), o = r, h = l;
|
|
2257
2189
|
return u;
|
|
2258
2190
|
}
|
|
2259
|
-
var pt = 0,
|
|
2191
|
+
var pt = 0, xt = 0, mt = 0, ti = 1e3, It, _t, Ot = 0, ht = 0, Et = 0, Dt = typeof performance == "object" && performance.now ? performance : Date, ei = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(s) {
|
|
2260
2192
|
setTimeout(s, 17);
|
|
2261
2193
|
};
|
|
2262
|
-
function
|
|
2263
|
-
return ht || (
|
|
2194
|
+
function ii() {
|
|
2195
|
+
return ht || (ei(wn), ht = Dt.now() + Et);
|
|
2264
2196
|
}
|
|
2265
|
-
function
|
|
2197
|
+
function wn() {
|
|
2266
2198
|
ht = 0;
|
|
2267
2199
|
}
|
|
2268
|
-
function
|
|
2200
|
+
function ne() {
|
|
2269
2201
|
this._call = this._time = this._next = null;
|
|
2270
2202
|
}
|
|
2271
|
-
|
|
2272
|
-
constructor:
|
|
2203
|
+
ne.prototype = ni.prototype = {
|
|
2204
|
+
constructor: ne,
|
|
2273
2205
|
restart: function(s, t, e) {
|
|
2274
2206
|
if (typeof s != "function") throw new TypeError("callback is not a function");
|
|
2275
|
-
e = (e == null ?
|
|
2207
|
+
e = (e == null ? ii() : +e) + (t == null ? 0 : +t), !this._next && _t !== this && (_t ? _t._next = this : It = this, _t = this), this._call = s, this._time = e, se();
|
|
2276
2208
|
},
|
|
2277
2209
|
stop: function() {
|
|
2278
|
-
this._call && (this._call = null, this._time = 1 / 0,
|
|
2210
|
+
this._call && (this._call = null, this._time = 1 / 0, se());
|
|
2279
2211
|
}
|
|
2280
2212
|
};
|
|
2281
|
-
function
|
|
2282
|
-
var i = new
|
|
2213
|
+
function ni(s, t, e) {
|
|
2214
|
+
var i = new ne();
|
|
2283
2215
|
return i.restart(s, t, e), i;
|
|
2284
2216
|
}
|
|
2285
|
-
function
|
|
2286
|
-
|
|
2287
|
-
for (var s =
|
|
2217
|
+
function Dn() {
|
|
2218
|
+
ii(), ++pt;
|
|
2219
|
+
for (var s = It, t; s; )
|
|
2288
2220
|
(t = ht - s._time) >= 0 && s._call.call(null, t), s = s._next;
|
|
2289
2221
|
--pt;
|
|
2290
2222
|
}
|
|
2291
|
-
function
|
|
2292
|
-
ht = (
|
|
2223
|
+
function Re() {
|
|
2224
|
+
ht = (Ot = Dt.now()) + Et, pt = xt = 0;
|
|
2293
2225
|
try {
|
|
2294
|
-
|
|
2226
|
+
Dn();
|
|
2295
2227
|
} finally {
|
|
2296
|
-
pt = 0,
|
|
2228
|
+
pt = 0, Nn(), ht = 0;
|
|
2297
2229
|
}
|
|
2298
2230
|
}
|
|
2299
|
-
function
|
|
2300
|
-
var s =
|
|
2301
|
-
t >
|
|
2231
|
+
function kn() {
|
|
2232
|
+
var s = Dt.now(), t = s - Ot;
|
|
2233
|
+
t > ti && (Et -= t, Ot = s);
|
|
2302
2234
|
}
|
|
2303
|
-
function
|
|
2304
|
-
for (var s, t =
|
|
2305
|
-
t._call ? (i > t._time && (i = t._time), s = t, t = t._next) : (e = t._next, t._next = null, t = s ? s._next = e :
|
|
2306
|
-
|
|
2235
|
+
function Nn() {
|
|
2236
|
+
for (var s, t = It, e, i = 1 / 0; t; )
|
|
2237
|
+
t._call ? (i > t._time && (i = t._time), s = t, t = t._next) : (e = t._next, t._next = null, t = s ? s._next = e : It = e);
|
|
2238
|
+
_t = s, se(i);
|
|
2307
2239
|
}
|
|
2308
|
-
function
|
|
2240
|
+
function se(s) {
|
|
2309
2241
|
if (!pt) {
|
|
2310
|
-
|
|
2242
|
+
xt && (xt = clearTimeout(xt));
|
|
2311
2243
|
var t = s - ht;
|
|
2312
|
-
t > 24 ? (s < 1 / 0 && (
|
|
2244
|
+
t > 24 ? (s < 1 / 0 && (xt = setTimeout(Re, s - Dt.now() - Et)), mt && (mt = clearInterval(mt))) : (mt || (Ot = Dt.now(), mt = setInterval(kn, ti)), pt = 1, ei(Re));
|
|
2313
2245
|
}
|
|
2314
2246
|
}
|
|
2315
|
-
var
|
|
2247
|
+
var bn = { value: () => {
|
|
2316
2248
|
} };
|
|
2317
|
-
function
|
|
2249
|
+
function si() {
|
|
2318
2250
|
for (var s = 0, t = arguments.length, e = {}, i; s < t; ++s) {
|
|
2319
2251
|
if (!(i = arguments[s] + "") || i in e || /[\s.]/.test(i)) throw new Error("illegal type: " + i);
|
|
2320
2252
|
e[i] = [];
|
|
2321
2253
|
}
|
|
2322
|
-
return new
|
|
2254
|
+
return new At(e);
|
|
2323
2255
|
}
|
|
2324
|
-
function
|
|
2256
|
+
function At(s) {
|
|
2325
2257
|
this._ = s;
|
|
2326
2258
|
}
|
|
2327
|
-
function
|
|
2259
|
+
function An(s, t) {
|
|
2328
2260
|
return s.trim().split(/^|\s+/).map(function(e) {
|
|
2329
2261
|
var i = "", n = e.indexOf(".");
|
|
2330
2262
|
if (n >= 0 && (i = e.slice(n + 1), e = e.slice(0, n)), e && !t.hasOwnProperty(e)) throw new Error("unknown type: " + e);
|
|
2331
2263
|
return { type: e, name: i };
|
|
2332
2264
|
});
|
|
2333
2265
|
}
|
|
2334
|
-
|
|
2335
|
-
constructor:
|
|
2266
|
+
At.prototype = si.prototype = {
|
|
2267
|
+
constructor: At,
|
|
2336
2268
|
on: function(s, t) {
|
|
2337
|
-
var e = this._, i =
|
|
2269
|
+
var e = this._, i = An(s + "", e), n, a = -1, o = i.length;
|
|
2338
2270
|
if (arguments.length < 2) {
|
|
2339
|
-
for (; ++a < o; ) if ((n = (s = i[a]).type) && (n =
|
|
2271
|
+
for (; ++a < o; ) if ((n = (s = i[a]).type) && (n = Pn(e[n], s.name))) return n;
|
|
2340
2272
|
return;
|
|
2341
2273
|
}
|
|
2342
2274
|
if (t != null && typeof t != "function") throw new Error("invalid callback: " + t);
|
|
2343
2275
|
for (; ++a < o; )
|
|
2344
|
-
if (n = (s = i[a]).type) e[n] =
|
|
2345
|
-
else if (t == null) for (n in e) e[n] =
|
|
2276
|
+
if (n = (s = i[a]).type) e[n] = Te(e[n], s.name, t);
|
|
2277
|
+
else if (t == null) for (n in e) e[n] = Te(e[n], s.name, null);
|
|
2346
2278
|
return this;
|
|
2347
2279
|
},
|
|
2348
2280
|
copy: function() {
|
|
2349
2281
|
var s = {}, t = this._;
|
|
2350
2282
|
for (var e in t) s[e] = t[e].slice();
|
|
2351
|
-
return new
|
|
2283
|
+
return new At(s);
|
|
2352
2284
|
},
|
|
2353
2285
|
call: function(s, t) {
|
|
2354
2286
|
if ((n = arguments.length - 2) > 0) for (var e = new Array(n), i = 0, n, a; i < n; ++i) e[i] = arguments[i + 2];
|
|
@@ -2360,81 +2292,81 @@ Ct.prototype = oi.prototype = {
|
|
|
2360
2292
|
for (var i = this._[s], n = 0, a = i.length; n < a; ++n) i[n].value.apply(t, e);
|
|
2361
2293
|
}
|
|
2362
2294
|
};
|
|
2363
|
-
function
|
|
2295
|
+
function Pn(s, t) {
|
|
2364
2296
|
for (var e = 0, i = s.length, n; e < i; ++e)
|
|
2365
2297
|
if ((n = s[e]).name === t)
|
|
2366
2298
|
return n.value;
|
|
2367
2299
|
}
|
|
2368
|
-
function
|
|
2300
|
+
function Te(s, t, e) {
|
|
2369
2301
|
for (var i = 0, n = s.length; i < n; ++i)
|
|
2370
2302
|
if (s[i].name === t) {
|
|
2371
|
-
s[i] =
|
|
2303
|
+
s[i] = bn, s = s.slice(0, i).concat(s.slice(i + 1));
|
|
2372
2304
|
break;
|
|
2373
2305
|
}
|
|
2374
2306
|
return e != null && s.push({ name: t, value: e }), s;
|
|
2375
2307
|
}
|
|
2376
|
-
function
|
|
2308
|
+
function ze(s, t) {
|
|
2377
2309
|
let e, i;
|
|
2378
2310
|
for (const n of s)
|
|
2379
2311
|
n != null && (e === void 0 ? n >= n && (e = i = n) : (e > n && (e = n), i < n && (i = n)));
|
|
2380
2312
|
return [e, i];
|
|
2381
2313
|
}
|
|
2382
|
-
function
|
|
2314
|
+
function Cn(s, t, e) {
|
|
2383
2315
|
return (t[0] - s[0]) * (e[1] - s[1]) - (t[1] - s[1]) * (e[0] - s[0]);
|
|
2384
2316
|
}
|
|
2385
|
-
function
|
|
2317
|
+
function Rn(s, t) {
|
|
2386
2318
|
return s[0] - t[0] || s[1] - t[1];
|
|
2387
2319
|
}
|
|
2388
|
-
function
|
|
2320
|
+
function Le(s) {
|
|
2389
2321
|
const t = s.length, e = [0, 1];
|
|
2390
2322
|
let i = 2, n;
|
|
2391
2323
|
for (n = 2; n < t; ++n) {
|
|
2392
|
-
for (; i > 1 &&
|
|
2324
|
+
for (; i > 1 && Cn(s[e[i - 2]], s[e[i - 1]], s[n]) <= 0; ) --i;
|
|
2393
2325
|
e[i++] = n;
|
|
2394
2326
|
}
|
|
2395
2327
|
return e.slice(0, i);
|
|
2396
2328
|
}
|
|
2397
|
-
function
|
|
2329
|
+
function Tn(s) {
|
|
2398
2330
|
if ((e = s.length) < 3) return null;
|
|
2399
2331
|
var t, e, i = new Array(e), n = new Array(e);
|
|
2400
2332
|
for (t = 0; t < e; ++t) i[t] = [+s[t][0], +s[t][1], t];
|
|
2401
|
-
for (i.sort(
|
|
2402
|
-
var a =
|
|
2333
|
+
for (i.sort(Rn), t = 0; t < e; ++t) n[t] = [i[t][0], -i[t][1]];
|
|
2334
|
+
var a = Le(i), o = Le(n), h = o[0] === a[0], r = o[o.length - 1] === a[a.length - 1], l = [];
|
|
2403
2335
|
for (t = a.length - 1; t >= 0; --t) l.push(s[i[a[t]][2]]);
|
|
2404
2336
|
for (t = +h; t < o.length - r; ++t) l.push(s[i[o[t]][2]]);
|
|
2405
2337
|
return l;
|
|
2406
2338
|
}
|
|
2407
|
-
function
|
|
2339
|
+
function zn(s) {
|
|
2408
2340
|
for (var t = -1, e = s.length, i = s[e - 1], n, a, o = i[0], h = i[1], r = 0; ++t < e; )
|
|
2409
2341
|
n = o, a = h, i = s[t], o = i[0], h = i[1], n -= o, a -= h, r += Math.hypot(n, a);
|
|
2410
2342
|
return r;
|
|
2411
2343
|
}
|
|
2412
2344
|
var rt = 1e-10;
|
|
2413
|
-
function
|
|
2345
|
+
function Pt(s) {
|
|
2414
2346
|
return s <= rt && s >= -rt;
|
|
2415
2347
|
}
|
|
2416
2348
|
function vt(s, t) {
|
|
2417
2349
|
return s.x * t.x + s.y * t.y + s.z * t.z;
|
|
2418
2350
|
}
|
|
2419
|
-
function
|
|
2420
|
-
return
|
|
2351
|
+
function Se(s, t) {
|
|
2352
|
+
return Pt(s.x * t.y - s.y * t.x) && Pt(s.y * t.z - s.z * t.y) && Pt(s.z * t.x - s.x * t.z);
|
|
2421
2353
|
}
|
|
2422
|
-
function
|
|
2354
|
+
function Ln(s) {
|
|
2423
2355
|
var t, e, i, n, a, o, h, r;
|
|
2424
|
-
if (i = s[s.length - 2], n = s[s.length - 1], a = s[0], o =
|
|
2356
|
+
if (i = s[s.length - 2], n = s[s.length - 1], a = s[0], o = kt(i, n), h = kt(n, a), e = qt(o, h), t = Math.sign(e), i = n, n = a, a = s[1], o = h, h = kt(n, a), e = qt(o, h), Math.sign(e) === t) {
|
|
2425
2357
|
for (r = 2; r < s.length - 1; r++)
|
|
2426
|
-
if (i = n, n = a, a = s[r], o = h, h =
|
|
2358
|
+
if (i = n, n = a, a = s[r], o = h, h = kt(n, a), e = qt(o, h), Math.sign(e) !== t)
|
|
2427
2359
|
return;
|
|
2428
2360
|
return t;
|
|
2429
2361
|
}
|
|
2430
2362
|
}
|
|
2431
|
-
function
|
|
2363
|
+
function kt(s, t) {
|
|
2432
2364
|
return [t[0] - s[0], t[1] - s[1]];
|
|
2433
2365
|
}
|
|
2434
|
-
function
|
|
2366
|
+
function qt(s, t) {
|
|
2435
2367
|
return s[0] * t[1] - s[1] * t[0];
|
|
2436
2368
|
}
|
|
2437
|
-
function
|
|
2369
|
+
function Sn(s, t) {
|
|
2438
2370
|
this.face = s, this.vert = t, this.nextf = null, this.prevf = null, this.nextv = null, this.prevv = null;
|
|
2439
2371
|
}
|
|
2440
2372
|
function at(s) {
|
|
@@ -2490,31 +2422,31 @@ et.prototype.crossproduct = function(s) {
|
|
|
2490
2422
|
et.prototype.equals = function(s) {
|
|
2491
2423
|
return this.x === s.x && this.y === s.y && this.z === s.z;
|
|
2492
2424
|
};
|
|
2493
|
-
function
|
|
2425
|
+
function ce(s) {
|
|
2494
2426
|
var t = s.verts[0], e = s.verts[1], i = s.verts[2];
|
|
2495
2427
|
this.a = t.y * (e.z - i.z) + e.y * (i.z - t.z) + i.y * (t.z - e.z), this.b = t.z * (e.x - i.x) + e.z * (i.x - t.x) + i.z * (t.x - e.x), this.c = t.x * (e.y - i.y) + e.x * (i.y - t.y) + i.x * (t.y - e.y), this.d = -1 * (t.x * (e.y * i.z - i.y * e.z) + e.x * (i.y * t.z - t.y * i.z) + i.x * (t.y * e.z - e.y * t.z));
|
|
2496
2428
|
}
|
|
2497
|
-
|
|
2429
|
+
ce.prototype.getNormZPlane = function() {
|
|
2498
2430
|
return [
|
|
2499
2431
|
-1 * (this.a / this.c),
|
|
2500
2432
|
-1 * (this.b / this.c),
|
|
2501
2433
|
-1 * (this.d / this.c)
|
|
2502
2434
|
];
|
|
2503
2435
|
};
|
|
2504
|
-
|
|
2505
|
-
var s = this.getNormZPlane(), t = new
|
|
2436
|
+
ce.prototype.getDualPointMappedToPlane = function() {
|
|
2437
|
+
var s = this.getNormZPlane(), t = new Hn(s[0] / 2, s[1] / 2);
|
|
2506
2438
|
return t;
|
|
2507
2439
|
};
|
|
2508
|
-
function
|
|
2440
|
+
function Hn(s, t) {
|
|
2509
2441
|
this.x = s, this.y = t;
|
|
2510
2442
|
}
|
|
2511
|
-
function
|
|
2443
|
+
function ue(s, t, e) {
|
|
2512
2444
|
this.x = s, this.y = t, this.z = e;
|
|
2513
2445
|
}
|
|
2514
|
-
|
|
2446
|
+
ue.prototype.negate = function() {
|
|
2515
2447
|
this.x *= -1, this.y *= -1, this.z *= -1;
|
|
2516
2448
|
};
|
|
2517
|
-
|
|
2449
|
+
ue.prototype.normalize = function() {
|
|
2518
2450
|
var s = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);
|
|
2519
2451
|
s > 0 && (this.x /= s, this.y /= s, this.z /= s);
|
|
2520
2452
|
};
|
|
@@ -2540,38 +2472,38 @@ function ot(s) {
|
|
|
2540
2472
|
}
|
|
2541
2473
|
ot.prototype.name = "d3WeightedVoronoiError";
|
|
2542
2474
|
ot.prototype = new Error();
|
|
2543
|
-
function
|
|
2475
|
+
function U(s, t, e, i) {
|
|
2544
2476
|
this.conflicts = new at(!0), this.verts = [s, t, e], this.marked = !1;
|
|
2545
2477
|
var n = s.subtract(t).crossproduct(t.subtract(e));
|
|
2546
|
-
this.normal = new
|
|
2478
|
+
this.normal = new ue(-n.x, -n.y, -n.z), this.normal.normalize(), this.createEdges(), this.dualPoint = null, i != null && this.orient(i);
|
|
2547
2479
|
}
|
|
2548
|
-
|
|
2480
|
+
U.prototype.getDualPoint = function() {
|
|
2549
2481
|
if (this.dualPoint == null) {
|
|
2550
|
-
var s = new
|
|
2482
|
+
var s = new ce(this);
|
|
2551
2483
|
this.dualPoint = s.getDualPointMappedToPlane();
|
|
2552
2484
|
}
|
|
2553
2485
|
return this.dualPoint;
|
|
2554
2486
|
};
|
|
2555
|
-
|
|
2487
|
+
U.prototype.isVisibleFromBelow = function() {
|
|
2556
2488
|
return this.normal.z < -14259414393190911e-25;
|
|
2557
2489
|
};
|
|
2558
|
-
|
|
2490
|
+
U.prototype.createEdges = function() {
|
|
2559
2491
|
this.edges = [], this.edges[0] = new gt(this.verts[0], this.verts[1], this), this.edges[1] = new gt(this.verts[1], this.verts[2], this), this.edges[2] = new gt(this.verts[2], this.verts[0], this), this.edges[0].next = this.edges[1], this.edges[0].prev = this.edges[2], this.edges[1].next = this.edges[2], this.edges[1].prev = this.edges[0], this.edges[2].next = this.edges[0], this.edges[2].prev = this.edges[1];
|
|
2560
2492
|
};
|
|
2561
|
-
|
|
2493
|
+
U.prototype.orient = function(s) {
|
|
2562
2494
|
if (!(vt(this.normal, s) < vt(this.normal, this.verts[0]))) {
|
|
2563
2495
|
var t = this.verts[1];
|
|
2564
2496
|
this.verts[1] = this.verts[2], this.verts[2] = t, this.normal.negate(), this.createEdges();
|
|
2565
2497
|
}
|
|
2566
2498
|
};
|
|
2567
|
-
|
|
2499
|
+
U.prototype.getEdge = function(s, t) {
|
|
2568
2500
|
for (var e = 0; e < 3; e++)
|
|
2569
2501
|
if (this.edges[e].isEqual(s, t))
|
|
2570
2502
|
return this.edges[e];
|
|
2571
2503
|
return null;
|
|
2572
2504
|
};
|
|
2573
|
-
|
|
2574
|
-
if (s instanceof
|
|
2505
|
+
U.prototype.link = function(s, t, e) {
|
|
2506
|
+
if (s instanceof U) {
|
|
2575
2507
|
var i = s.getEdge(t, e);
|
|
2576
2508
|
if (i === null)
|
|
2577
2509
|
throw new ot("when linking, twin is null");
|
|
@@ -2584,16 +2516,16 @@ $.prototype.link = function(s, t, e) {
|
|
|
2584
2516
|
i.twin = n, n.twin = i;
|
|
2585
2517
|
}
|
|
2586
2518
|
};
|
|
2587
|
-
|
|
2519
|
+
U.prototype.conflict = function(s) {
|
|
2588
2520
|
return vt(this.normal, s) > vt(this.normal, this.verts[0]) + rt;
|
|
2589
2521
|
};
|
|
2590
|
-
|
|
2522
|
+
U.prototype.getHorizon = function() {
|
|
2591
2523
|
for (var s = 0; s < 3; s++)
|
|
2592
2524
|
if (this.edges[s].twin !== null && this.edges[s].twin.isHorizon())
|
|
2593
2525
|
return this.edges[s];
|
|
2594
2526
|
return null;
|
|
2595
2527
|
};
|
|
2596
|
-
|
|
2528
|
+
U.prototype.removeConflict = function() {
|
|
2597
2529
|
this.conflicts.removeAll();
|
|
2598
2530
|
};
|
|
2599
2531
|
function it() {
|
|
@@ -2621,21 +2553,21 @@ it.prototype.prep = function() {
|
|
|
2621
2553
|
var t, e, i, n, a, o, h, r;
|
|
2622
2554
|
t = this.points[0], e = this.points[1], i = n = null;
|
|
2623
2555
|
for (var s = 2; s < this.points.length; s++)
|
|
2624
|
-
if (!(
|
|
2556
|
+
if (!(Se(t, this.points[s]) && Se(e, this.points[s]))) {
|
|
2625
2557
|
i = this.points[s], i.index = 2, this.points[2].index = s, this.points.splice(s, 1, this.points[2]), this.points.splice(2, 1, i);
|
|
2626
2558
|
break;
|
|
2627
2559
|
}
|
|
2628
2560
|
if (i === null)
|
|
2629
2561
|
throw new ot("Not enough non-planar Points (v2 is null)");
|
|
2630
|
-
r = new
|
|
2562
|
+
r = new U(t, e, i);
|
|
2631
2563
|
for (var s = 3; s < this.points.length; s++)
|
|
2632
|
-
if (!
|
|
2564
|
+
if (!Pt(vt(r.normal, r.verts[0]) - vt(r.normal, this.points[s]))) {
|
|
2633
2565
|
n = this.points[s], n.index = 3, this.points[3].index = s, this.points.splice(s, 1, this.points[3]), this.points.splice(3, 1, n);
|
|
2634
2566
|
break;
|
|
2635
2567
|
}
|
|
2636
2568
|
if (n === null)
|
|
2637
2569
|
throw new ot("Not enough non-planar Points (v3 is null)");
|
|
2638
|
-
r.orient(n), a = new
|
|
2570
|
+
r.orient(n), a = new U(t, i, n, e), o = new U(t, e, n, i), h = new U(e, i, n, t), this.addFacet(r), this.addFacet(a), this.addFacet(o), this.addFacet(h), r.link(a, t, i), r.link(o, t, e), r.link(h, e, i), a.link(o, t, n), a.link(h, i, n), o.link(h, n, e), this.current = 4;
|
|
2639
2571
|
for (var l, s = this.current; s < this.points.length; s++)
|
|
2640
2572
|
l = this.points[s], r.conflict(l) && this.addConflict(r, l), a.conflict(l) && this.addConflict(a, l), o.conflict(l) && this.addConflict(o, l), h.conflict(l) && this.addConflict(h, l);
|
|
2641
2573
|
}, // IN: Faces old1 old2 and fn
|
|
@@ -2647,7 +2579,7 @@ it.prototype.addConflicts = function(s, t, e) {
|
|
|
2647
2579
|
o = a[r], e.conflict(o) && this.addConflict(e, o);
|
|
2648
2580
|
};
|
|
2649
2581
|
it.prototype.addConflict = function(s, t) {
|
|
2650
|
-
var e = new
|
|
2582
|
+
var e = new Sn(s, t);
|
|
2651
2583
|
s.conflicts.add(e), t.conflicts.add(e);
|
|
2652
2584
|
};
|
|
2653
2585
|
it.prototype.removeConflict = function(s) {
|
|
@@ -2679,7 +2611,7 @@ it.prototype.compute = function() {
|
|
|
2679
2611
|
break;
|
|
2680
2612
|
}
|
|
2681
2613
|
for (var i = null, n = null, a = 0; a < this.horizon.length; a++) {
|
|
2682
|
-
var o = this.horizon[a], h = new
|
|
2614
|
+
var o = this.horizon[a], h = new U(s, o.orig, o.dest, o.twin.next.dest);
|
|
2683
2615
|
h.conflicts = new at(!0), this.addFacet(h), this.created.push(h), this.addConflicts(o.iFace, o.twin.iFace, h), h.link(o), i !== null && h.link(i, s, o.orig), i = h, n === null && (n = h);
|
|
2684
2616
|
}
|
|
2685
2617
|
if (n !== null && i !== null && i.link(n, s, this.horizon[0].orig), this.created.length != 0) {
|
|
@@ -2693,26 +2625,26 @@ it.prototype.compute = function() {
|
|
|
2693
2625
|
it.prototype.clear = function() {
|
|
2694
2626
|
this.points = [], this.facets = [], this.created = [], this.horizon = [], this.visible = [], this.current = 0;
|
|
2695
2627
|
};
|
|
2696
|
-
function
|
|
2697
|
-
for (var e, i =
|
|
2628
|
+
function Wn(s, t) {
|
|
2629
|
+
for (var e, i = We(t), n = -1, a = s.length - We(s), o, h, r = s[a - 1], l, u, c, f; ++n < a; ) {
|
|
2698
2630
|
for (e = t.slice(), t.length = 0, l = s[n], u = e[(h = e.length - i) - 1], o = -1; ++o < h; )
|
|
2699
|
-
|
|
2631
|
+
c = e[o], Gt(c, r, l) ? (Gt(u, r, l) || (f = He(u, c, r, l), isFinite(f[0]) && t.push(f)), t.push(c)) : Gt(u, r, l) && (f = He(u, c, r, l), isFinite(f[0]) && t.push(f)), u = c;
|
|
2700
2632
|
i && t.push(t[0]), r = l;
|
|
2701
2633
|
}
|
|
2702
2634
|
return t;
|
|
2703
2635
|
}
|
|
2704
|
-
function
|
|
2636
|
+
function Gt(s, t, e) {
|
|
2705
2637
|
return (e[0] - t[0]) * (s[1] - t[1]) < (e[1] - t[1]) * (s[0] - t[0]);
|
|
2706
2638
|
}
|
|
2707
|
-
function
|
|
2708
|
-
var n = s[0], a = e[0], o = t[0] - n, h = i[0] - a, r = s[1], l = e[1], u = t[1] - r,
|
|
2709
|
-
return [n +
|
|
2639
|
+
function He(s, t, e, i) {
|
|
2640
|
+
var n = s[0], a = e[0], o = t[0] - n, h = i[0] - a, r = s[1], l = e[1], u = t[1] - r, c = i[1] - l, f = (h * (r - l) - c * (n - a)) / (c * o - h * u);
|
|
2641
|
+
return [n + f * o, r + f * u];
|
|
2710
2642
|
}
|
|
2711
|
-
function
|
|
2643
|
+
function We(s) {
|
|
2712
2644
|
var t = s[0], e = s[s.length - 1];
|
|
2713
2645
|
return !(t[0] - e[0] || t[1] - e[1]);
|
|
2714
2646
|
}
|
|
2715
|
-
function
|
|
2647
|
+
function Mn(s) {
|
|
2716
2648
|
var t = [], e = s, i = s.dest, n = i.originalObject, a = [];
|
|
2717
2649
|
do {
|
|
2718
2650
|
e = e.twin.prev;
|
|
@@ -2723,31 +2655,31 @@ function Fn(s) {
|
|
|
2723
2655
|
} while (e !== s);
|
|
2724
2656
|
return n.neighbours = a, t;
|
|
2725
2657
|
}
|
|
2726
|
-
function
|
|
2658
|
+
function In(s, t, e) {
|
|
2727
2659
|
var i = new it();
|
|
2728
2660
|
i.clear(), i.init(t, s);
|
|
2729
2661
|
for (var n = i.compute(s), a = [], o = [], h = n.length, r = 0; r < h; r++) {
|
|
2730
2662
|
var l = n[r];
|
|
2731
2663
|
if (l.isVisibleFromBelow())
|
|
2732
2664
|
for (var u = 0; u < 3; u++) {
|
|
2733
|
-
var
|
|
2734
|
-
if (!o[
|
|
2735
|
-
if (o[
|
|
2665
|
+
var c = l.edges[u], f = c.dest, g = f.originalObject;
|
|
2666
|
+
if (!o[f.index]) {
|
|
2667
|
+
if (o[f.index] = !0, g.isDummy)
|
|
2736
2668
|
continue;
|
|
2737
|
-
for (var
|
|
2738
|
-
var w =
|
|
2739
|
-
|
|
2669
|
+
for (var p = Mn(c), d = [], v = null, y = null, m = 1, _ = 1, x = 0; x < p.length; x++) {
|
|
2670
|
+
var w = p[x].getDualPoint(), b = w.x, A = w.y;
|
|
2671
|
+
v !== null && (m = v - b, _ = y - A, m < 0 && (m = -m), _ < 0 && (_ = -_)), (m > rt || _ > rt) && (d.push([b, A]), v = b, y = A);
|
|
2740
2672
|
}
|
|
2741
|
-
if (g.nonClippedPolygon = d.reverse(), !g.isDummy &&
|
|
2742
|
-
var
|
|
2743
|
-
g.polygon =
|
|
2673
|
+
if (g.nonClippedPolygon = d.reverse(), !g.isDummy && zn(g.nonClippedPolygon) > 0) {
|
|
2674
|
+
var k = Wn(e, g.nonClippedPolygon);
|
|
2675
|
+
g.polygon = k, k.site = g, k.length > 0 && a.push(k);
|
|
2744
2676
|
}
|
|
2745
2677
|
}
|
|
2746
2678
|
}
|
|
2747
2679
|
}
|
|
2748
2680
|
return a;
|
|
2749
2681
|
}
|
|
2750
|
-
function
|
|
2682
|
+
function On() {
|
|
2751
2683
|
var s = function(r) {
|
|
2752
2684
|
return r.x;
|
|
2753
2685
|
}, t = function(r) {
|
|
@@ -2767,7 +2699,7 @@ function Xn() {
|
|
|
2767
2699
|
var l;
|
|
2768
2700
|
return l = r.map(function(u) {
|
|
2769
2701
|
return new et(s(u), t(u), null, e(u), u, !1);
|
|
2770
|
-
}),
|
|
2702
|
+
}), In(l, h(), i);
|
|
2771
2703
|
}
|
|
2772
2704
|
o.x = function(r) {
|
|
2773
2705
|
return arguments.length ? (s = r, o) : s;
|
|
@@ -2776,19 +2708,19 @@ function Xn() {
|
|
|
2776
2708
|
}, o.weight = function(r) {
|
|
2777
2709
|
return arguments.length ? (e = r, o) : e;
|
|
2778
2710
|
}, o.clip = function(r) {
|
|
2779
|
-
var l, u,
|
|
2780
|
-
return arguments.length ? (u =
|
|
2781
|
-
r.map(function(
|
|
2782
|
-
return
|
|
2711
|
+
var l, u, c;
|
|
2712
|
+
return arguments.length ? (u = ze(
|
|
2713
|
+
r.map(function(f) {
|
|
2714
|
+
return f[0];
|
|
2783
2715
|
})
|
|
2784
|
-
),
|
|
2785
|
-
r.map(function(
|
|
2786
|
-
return
|
|
2716
|
+
), c = ze(
|
|
2717
|
+
r.map(function(f) {
|
|
2718
|
+
return f[1];
|
|
2787
2719
|
})
|
|
2788
|
-
), l =
|
|
2789
|
-
[u[0],
|
|
2790
|
-
[u[1],
|
|
2791
|
-
], a = [u[1] - u[0],
|
|
2720
|
+
), l = Ln(r), l === void 0 ? i = Tn(r) : l === 1 ? i = r.reverse() : i = r, n = [
|
|
2721
|
+
[u[0], c[0]],
|
|
2722
|
+
[u[1], c[1]]
|
|
2723
|
+
], a = [u[1] - u[0], c[1] - c[0]], o) : i;
|
|
2792
2724
|
}, o.extent = function(r) {
|
|
2793
2725
|
return arguments.length ? (i = [r[0], [r[0][0], r[1][1]], r[1], [r[1][0], r[0][1]]], n = r, a = [r[1][0] - r[0][0], r[1][1] - r[0][1]], o) : n;
|
|
2794
2726
|
}, o.size = function(r) {
|
|
@@ -2800,8 +2732,8 @@ function Xn() {
|
|
|
2800
2732
|
], n = [[0, 0], r], a = r, o) : a;
|
|
2801
2733
|
};
|
|
2802
2734
|
function h() {
|
|
2803
|
-
var r, l, u,
|
|
2804
|
-
r = n[0][0], l = n[1][0], u = n[0][1],
|
|
2735
|
+
var r, l, u, c, f, g, p, d, v, y, m = [], _ = [];
|
|
2736
|
+
r = n[0][0], l = n[1][0], u = n[0][1], c = n[1][1], f = l - r, g = c - u, p = r - f, d = l + f, v = u - g, y = c + g, m[0] = [p, v], m[1] = [p, y], m[2] = [d, y], m[3] = [d, v];
|
|
2805
2737
|
for (var x = 0; x < 4; x++)
|
|
2806
2738
|
_.push(
|
|
2807
2739
|
new et(
|
|
@@ -2818,37 +2750,37 @@ function Xn() {
|
|
|
2818
2750
|
return o;
|
|
2819
2751
|
}
|
|
2820
2752
|
function ct() {
|
|
2821
|
-
this.growthChangesLength =
|
|
2753
|
+
this.growthChangesLength = ri, this.totalAvailableArea = NaN, this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangeWeights = fe(this.growthChangesLength), this.growthChangeWeightsSum = ge(this.growthChangeWeights);
|
|
2822
2754
|
}
|
|
2823
|
-
var
|
|
2824
|
-
function
|
|
2755
|
+
var ri = 10;
|
|
2756
|
+
function En(s, t) {
|
|
2825
2757
|
return s >= t ? 1 : -1;
|
|
2826
2758
|
}
|
|
2827
|
-
function
|
|
2759
|
+
function fe(s) {
|
|
2828
2760
|
for (var t = 3, e = 1, i = 1, n = t, a = [], o = 0; o < s; o++)
|
|
2829
2761
|
a.push(n), n -= e, n < i && (n = i);
|
|
2830
2762
|
return a;
|
|
2831
2763
|
}
|
|
2832
|
-
function
|
|
2764
|
+
function ge(s) {
|
|
2833
2765
|
for (var t = 0, e = 0; e < s.length; e++)
|
|
2834
2766
|
t += s[e];
|
|
2835
2767
|
return t;
|
|
2836
2768
|
}
|
|
2837
2769
|
ct.prototype.reset = function() {
|
|
2838
|
-
return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangesLength =
|
|
2770
|
+
return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangesLength = ri, this.growthChangeWeights = fe(this.growthChangesLength), this.growthChangeWeightsSum = ge(this.growthChangeWeights), this.totalAvailableArea = NaN, this;
|
|
2839
2771
|
};
|
|
2840
2772
|
ct.prototype.clear = function() {
|
|
2841
2773
|
return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this;
|
|
2842
2774
|
};
|
|
2843
2775
|
ct.prototype.length = function(s) {
|
|
2844
|
-
return arguments.length ? (parseInt(s) > 0 ? (this.growthChangesLength = Math.floor(parseInt(s)), this.growthChangeWeights =
|
|
2776
|
+
return arguments.length ? (parseInt(s) > 0 ? (this.growthChangesLength = Math.floor(parseInt(s)), this.growthChangeWeights = fe(this.growthChangesLength), this.growthChangeWeightsSum = ge(this.growthChangeWeights)) : console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle " + s), this) : this.growthChangesLength;
|
|
2845
2777
|
};
|
|
2846
2778
|
ct.prototype.totalArea = function(s) {
|
|
2847
2779
|
return arguments.length ? (parseFloat(s) > 0 ? this.totalAvailableArea = parseFloat(s) : console.warn("FlickeringMitigation.totalArea() accepts only positive numbers; unable to handle " + s), this) : this.totalAvailableArea;
|
|
2848
2780
|
};
|
|
2849
2781
|
ct.prototype.add = function(s) {
|
|
2850
2782
|
var t, e;
|
|
2851
|
-
return t = this.lastAreaError, this.lastAreaError = s, isNaN(t) || (e = this.lastGrowth, this.lastGrowth =
|
|
2783
|
+
return t = this.lastAreaError, this.lastAreaError = s, isNaN(t) || (e = this.lastGrowth, this.lastGrowth = En(this.lastAreaError, t)), isNaN(e) || this.growthChanges.unshift(this.lastGrowth != e), this.growthChanges.length > this.growthChangesLength && this.growthChanges.pop(), this;
|
|
2852
2784
|
};
|
|
2853
2785
|
ct.prototype.ratio = function() {
|
|
2854
2786
|
var s = 0, t;
|
|
@@ -2858,27 +2790,27 @@ ct.prototype.ratio = function() {
|
|
|
2858
2790
|
this.growthChanges[e] && (s += this.growthChangeWeights[e]);
|
|
2859
2791
|
return t = s / this.growthChangeWeightsSum, t;
|
|
2860
2792
|
};
|
|
2861
|
-
function
|
|
2793
|
+
function Bn() {
|
|
2862
2794
|
var s, t, e, i, n, a, o, h;
|
|
2863
|
-
function r(u,
|
|
2864
|
-
var
|
|
2865
|
-
for (s !== g.clip() && (s = g.clip(), t = g.extent(),
|
|
2866
|
-
d = e + o * g.prng()(),
|
|
2867
|
-
return [d,
|
|
2795
|
+
function r(u, c, f, g) {
|
|
2796
|
+
var p = !1, d, v;
|
|
2797
|
+
for (s !== g.clip() && (s = g.clip(), t = g.extent(), p = !0), p && l(), d = e + o * g.prng()(), v = n + h * g.prng()(); !Je(s, [d, v]); )
|
|
2798
|
+
d = e + o * g.prng()(), v = n + h * g.prng()();
|
|
2799
|
+
return [d, v];
|
|
2868
2800
|
}
|
|
2869
2801
|
function l() {
|
|
2870
2802
|
e = t[0][0], i = t[1][0], n = t[0][1], a = t[1][1], o = i - e, h = a - n;
|
|
2871
2803
|
}
|
|
2872
2804
|
return r;
|
|
2873
2805
|
}
|
|
2874
|
-
function
|
|
2806
|
+
function Fn() {
|
|
2875
2807
|
var s, t, e, i, n;
|
|
2876
2808
|
function a(h, r, l, u) {
|
|
2877
|
-
var
|
|
2878
|
-
return s !== u.clip() && (s = u.clip(),
|
|
2809
|
+
var c = !1;
|
|
2810
|
+
return s !== u.clip() && (s = u.clip(), c |= !0), t !== l && (t = l, c |= !0), c && o(), n;
|
|
2879
2811
|
}
|
|
2880
2812
|
function o() {
|
|
2881
|
-
e = t.length, i =
|
|
2813
|
+
e = t.length, i = bt(s), n = i / e / 2;
|
|
2882
2814
|
}
|
|
2883
2815
|
return a;
|
|
2884
2816
|
}
|
|
@@ -2887,99 +2819,99 @@ function ft(s) {
|
|
|
2887
2819
|
}
|
|
2888
2820
|
ft.prototype.name = "d3VoronoiMapError";
|
|
2889
2821
|
ft.prototype = new Error();
|
|
2890
|
-
function
|
|
2891
|
-
var t = 0.01, e = 50, i = 0.01, n = Math.random, a =
|
|
2822
|
+
function Me(s) {
|
|
2823
|
+
var t = 0.01, e = 50, i = 0.01, n = Math.random, a = Bn(), o = Fn(), h = 1e-10, r = function(D) {
|
|
2892
2824
|
return D.weight;
|
|
2893
|
-
}, l = t, u = e,
|
|
2894
|
-
const
|
|
2825
|
+
}, l = t, u = e, c = i, f = n, g = a, p = o, d = On(), v = new ct(), y = !0, m, _, x, w, b, A, k, C, N, S = ni(pe), M = si("tick", "end");
|
|
2826
|
+
const O = 1, J = 1e3;
|
|
2895
2827
|
var tt;
|
|
2896
2828
|
function nt(D) {
|
|
2897
2829
|
return Math.pow(D, 2);
|
|
2898
2830
|
}
|
|
2899
|
-
function
|
|
2900
|
-
return nt(
|
|
2831
|
+
function de(D, W) {
|
|
2832
|
+
return nt(W.x - D.x) + nt(W.y - D.y);
|
|
2901
2833
|
}
|
|
2902
|
-
|
|
2903
|
-
tick:
|
|
2834
|
+
N = {
|
|
2835
|
+
tick: ve,
|
|
2904
2836
|
restart: function() {
|
|
2905
|
-
return S.restart(
|
|
2837
|
+
return S.restart(pe), N;
|
|
2906
2838
|
},
|
|
2907
2839
|
stop: function() {
|
|
2908
|
-
return S.stop(),
|
|
2840
|
+
return S.stop(), N;
|
|
2909
2841
|
},
|
|
2910
2842
|
weight: function(D) {
|
|
2911
|
-
return arguments.length ? (r = D, y = !0,
|
|
2843
|
+
return arguments.length ? (r = D, y = !0, N) : r;
|
|
2912
2844
|
},
|
|
2913
2845
|
convergenceRatio: function(D) {
|
|
2914
|
-
return arguments.length ? (l = D, y = !0,
|
|
2846
|
+
return arguments.length ? (l = D, y = !0, N) : l;
|
|
2915
2847
|
},
|
|
2916
2848
|
maxIterationCount: function(D) {
|
|
2917
|
-
return arguments.length ? (u = D,
|
|
2849
|
+
return arguments.length ? (u = D, N) : u;
|
|
2918
2850
|
},
|
|
2919
2851
|
minWeightRatio: function(D) {
|
|
2920
|
-
return arguments.length ? (
|
|
2852
|
+
return arguments.length ? (c = D, y = !0, N) : c;
|
|
2921
2853
|
},
|
|
2922
2854
|
clip: function(D) {
|
|
2923
|
-
return arguments.length ? (d.clip(D), y = !0,
|
|
2855
|
+
return arguments.length ? (d.clip(D), y = !0, N) : d.clip();
|
|
2924
2856
|
},
|
|
2925
2857
|
extent: function(D) {
|
|
2926
|
-
return arguments.length ? (d.extent(D), y = !0,
|
|
2858
|
+
return arguments.length ? (d.extent(D), y = !0, N) : d.extent();
|
|
2927
2859
|
},
|
|
2928
2860
|
size: function(D) {
|
|
2929
|
-
return arguments.length ? (d.size(D), y = !0,
|
|
2861
|
+
return arguments.length ? (d.size(D), y = !0, N) : d.size();
|
|
2930
2862
|
},
|
|
2931
2863
|
prng: function(D) {
|
|
2932
|
-
return arguments.length ? (
|
|
2864
|
+
return arguments.length ? (f = D, y = !0, N) : f;
|
|
2933
2865
|
},
|
|
2934
2866
|
initialPosition: function(D) {
|
|
2935
|
-
return arguments.length ? (g = D, y = !0,
|
|
2867
|
+
return arguments.length ? (g = D, y = !0, N) : g;
|
|
2936
2868
|
},
|
|
2937
2869
|
initialWeight: function(D) {
|
|
2938
|
-
return arguments.length ? (
|
|
2870
|
+
return arguments.length ? (p = D, y = !0, N) : p;
|
|
2939
2871
|
},
|
|
2940
2872
|
state: function() {
|
|
2941
|
-
return y &&
|
|
2873
|
+
return y && ye(), {
|
|
2942
2874
|
ended: C,
|
|
2943
2875
|
iterationCount: w,
|
|
2944
2876
|
convergenceRatio: A / _,
|
|
2945
|
-
polygons:
|
|
2877
|
+
polygons: b
|
|
2946
2878
|
};
|
|
2947
2879
|
},
|
|
2948
|
-
on: function(D,
|
|
2949
|
-
return arguments.length === 1 ?
|
|
2880
|
+
on: function(D, W) {
|
|
2881
|
+
return arguments.length === 1 ? M.on(D) : (M.on(D, W), N);
|
|
2950
2882
|
}
|
|
2951
2883
|
};
|
|
2952
|
-
function
|
|
2953
|
-
|
|
2884
|
+
function pe() {
|
|
2885
|
+
ve(), M.call("tick", N), C && (S.stop(), M.call("end", N));
|
|
2954
2886
|
}
|
|
2955
|
-
function
|
|
2956
|
-
C || (y &&
|
|
2887
|
+
function ve() {
|
|
2888
|
+
C || (y && ye(), b = li(b, v.ratio()), w++, A = fi(b), v.add(A), k = A < x, C = k || w >= u);
|
|
2957
2889
|
}
|
|
2958
|
-
function
|
|
2959
|
-
|
|
2890
|
+
function ye() {
|
|
2891
|
+
gi(), m = s.length, _ = Math.abs(bt(d.clip())), x = l * _, v.clear().totalArea(_), w = 0, k = !1, b = ai(s, N), C = !1, y = !1;
|
|
2960
2892
|
}
|
|
2961
|
-
function
|
|
2962
|
-
var
|
|
2893
|
+
function ai(D, W) {
|
|
2894
|
+
var H = D.reduce(function(L, I) {
|
|
2963
2895
|
return Math.max(L, r(I));
|
|
2964
|
-
}, -1 / 0), T =
|
|
2965
|
-
return R = D.map(function(L, I,
|
|
2896
|
+
}, -1 / 0), T = H * c, R, z;
|
|
2897
|
+
return R = D.map(function(L, I, B) {
|
|
2966
2898
|
return {
|
|
2967
2899
|
index: I,
|
|
2968
2900
|
weight: Math.max(r(L), T),
|
|
2969
|
-
initialPosition: g(L, I,
|
|
2970
|
-
initialWeight:
|
|
2901
|
+
initialPosition: g(L, I, B, W),
|
|
2902
|
+
initialWeight: p(L, I, B, W),
|
|
2971
2903
|
originalData: L
|
|
2972
2904
|
};
|
|
2973
|
-
}), z =
|
|
2905
|
+
}), z = oi(R, W), tt(z), d(z);
|
|
2974
2906
|
}
|
|
2975
|
-
function
|
|
2976
|
-
var
|
|
2907
|
+
function oi(D, W) {
|
|
2908
|
+
var H = D.reduce(function(R, z) {
|
|
2977
2909
|
return R += z.weight;
|
|
2978
2910
|
}, 0), T;
|
|
2979
2911
|
return D.map(function(R, z, L) {
|
|
2980
|
-
return T = R.initialPosition,
|
|
2912
|
+
return T = R.initialPosition, Je(d.clip(), T) || (T = a(R, z, L, W)), {
|
|
2981
2913
|
index: R.index,
|
|
2982
|
-
targetedArea: _ * R.weight /
|
|
2914
|
+
targetedArea: _ * R.weight / H,
|
|
2983
2915
|
data: R,
|
|
2984
2916
|
x: T[0],
|
|
2985
2917
|
y: T[1],
|
|
@@ -2988,88 +2920,88 @@ function Oe(s) {
|
|
|
2988
2920
|
};
|
|
2989
2921
|
});
|
|
2990
2922
|
}
|
|
2991
|
-
function
|
|
2992
|
-
var
|
|
2993
|
-
if (
|
|
2923
|
+
function li(D, W) {
|
|
2924
|
+
var H;
|
|
2925
|
+
if (hi(D, W), H = D.map(function(T) {
|
|
2994
2926
|
return T.site.originalObject;
|
|
2995
|
-
}), D = d(
|
|
2927
|
+
}), D = d(H), D.length < m)
|
|
2996
2928
|
throw new ft("at least 1 site has no area, which is not supposed to arise");
|
|
2997
|
-
if (
|
|
2929
|
+
if (ci(D, W), H = D.map(function(T) {
|
|
2998
2930
|
return T.site.originalObject;
|
|
2999
|
-
}), D = d(
|
|
2931
|
+
}), D = d(H), D.length < m)
|
|
3000
2932
|
throw new ft("at least 1 site has no area, which is not supposed to arise");
|
|
3001
2933
|
return D;
|
|
3002
2934
|
}
|
|
3003
|
-
function
|
|
3004
|
-
var
|
|
3005
|
-
R = T *
|
|
3006
|
-
for (var
|
|
3007
|
-
L = D[
|
|
3008
|
-
tt(
|
|
3009
|
-
}
|
|
3010
|
-
function
|
|
3011
|
-
var
|
|
3012
|
-
R = T *
|
|
3013
|
-
for (var
|
|
3014
|
-
z = D[
|
|
3015
|
-
tt(
|
|
3016
|
-
}
|
|
3017
|
-
function
|
|
3018
|
-
var
|
|
2935
|
+
function hi(D, W) {
|
|
2936
|
+
var H = [], T = 0.5, R, z, L, I, B, F, Y;
|
|
2937
|
+
R = T * W, z = 1 - R;
|
|
2938
|
+
for (var Bt = 0; Bt < m; Bt++)
|
|
2939
|
+
L = D[Bt], I = L.site.originalObject, B = _n(L), F = B[0] - I.x, Y = B[1] - I.y, F *= z, Y *= z, I.x += F, I.y += Y, H.push(I);
|
|
2940
|
+
tt(H);
|
|
2941
|
+
}
|
|
2942
|
+
function ci(D, W) {
|
|
2943
|
+
var H = [], T = 0.1, R, z, L, I, B, F;
|
|
2944
|
+
R = T * W;
|
|
2945
|
+
for (var Y = 0; Y < m; Y++)
|
|
2946
|
+
z = D[Y], L = z.site.originalObject, I = bt(z), B = L.targetedArea / I, B = Math.max(B, 1 - T + R), B = Math.min(B, 1 + T - R), F = L.weight * B, F = Math.max(F, h), L.weight = F, H.push(L);
|
|
2947
|
+
tt(H);
|
|
2948
|
+
}
|
|
2949
|
+
function me(D) {
|
|
2950
|
+
var W = 0, H, T, R, z, L, I, B;
|
|
3019
2951
|
do {
|
|
3020
|
-
if (
|
|
2952
|
+
if (W > J)
|
|
3021
2953
|
throw new ft("handleOverweighted0 is looping too much");
|
|
3022
|
-
|
|
2954
|
+
H = !1;
|
|
3023
2955
|
for (var F = 0; F < m; F++) {
|
|
3024
2956
|
T = D[F];
|
|
3025
|
-
for (var
|
|
3026
|
-
if (R = D[
|
|
3027
|
-
|
|
2957
|
+
for (var Y = F + 1; Y < m; Y++)
|
|
2958
|
+
if (R = D[Y], T.weight > R.weight ? (z = T, L = R) : (z = R, L = T), I = de(T, R), I < z.weight - L.weight) {
|
|
2959
|
+
B = I + L.weight / 2, B = Math.max(B, h), z.weight = B, H = !0, W++;
|
|
3028
2960
|
break;
|
|
3029
2961
|
}
|
|
3030
|
-
if (
|
|
2962
|
+
if (H)
|
|
3031
2963
|
break;
|
|
3032
2964
|
}
|
|
3033
|
-
} while (
|
|
2965
|
+
} while (H);
|
|
3034
2966
|
}
|
|
3035
|
-
function
|
|
3036
|
-
var
|
|
2967
|
+
function ui(D) {
|
|
2968
|
+
var W = 0, H, T, R, z, L, I, B;
|
|
3037
2969
|
do {
|
|
3038
|
-
if (
|
|
2970
|
+
if (W > J)
|
|
3039
2971
|
throw new ft("handleOverweighted1 is looping too much");
|
|
3040
|
-
|
|
2972
|
+
H = !1;
|
|
3041
2973
|
for (var F = 0; F < m; F++) {
|
|
3042
2974
|
T = D[F];
|
|
3043
|
-
for (var
|
|
3044
|
-
if (R = D[
|
|
3045
|
-
|
|
2975
|
+
for (var Y = F + 1; Y < m; Y++)
|
|
2976
|
+
if (R = D[Y], T.weight > R.weight ? (z = T, L = R) : (z = R, L = T), I = de(T, R), I < z.weight - L.weight) {
|
|
2977
|
+
B = z.weight - L.weight - I, L.weight += B + h, H = !0, W++;
|
|
3046
2978
|
break;
|
|
3047
2979
|
}
|
|
3048
|
-
if (
|
|
2980
|
+
if (H)
|
|
3049
2981
|
break;
|
|
3050
2982
|
}
|
|
3051
|
-
} while (
|
|
2983
|
+
} while (H);
|
|
3052
2984
|
}
|
|
3053
|
-
function
|
|
3054
|
-
for (var
|
|
3055
|
-
|
|
3056
|
-
return
|
|
2985
|
+
function fi(D) {
|
|
2986
|
+
for (var W = 0, H, T, R, z = 0; z < m; z++)
|
|
2987
|
+
H = D[z], T = H.site.originalObject, R = bt(H), W += Math.abs(T.targetedArea - R);
|
|
2988
|
+
return W;
|
|
3057
2989
|
}
|
|
3058
|
-
function
|
|
3059
|
-
switch (
|
|
2990
|
+
function gi() {
|
|
2991
|
+
switch (O) {
|
|
3060
2992
|
case 0:
|
|
3061
|
-
tt =
|
|
2993
|
+
tt = me;
|
|
3062
2994
|
break;
|
|
3063
2995
|
case 1:
|
|
3064
|
-
tt =
|
|
2996
|
+
tt = ui;
|
|
3065
2997
|
break;
|
|
3066
2998
|
default:
|
|
3067
|
-
console.error("unknown 'handleOverweighted' variant; using variant #1"), tt =
|
|
2999
|
+
console.error("unknown 'handleOverweighted' variant; using variant #1"), tt = me;
|
|
3068
3000
|
}
|
|
3069
3001
|
}
|
|
3070
|
-
return
|
|
3002
|
+
return N;
|
|
3071
3003
|
}
|
|
3072
|
-
function
|
|
3004
|
+
function Xn() {
|
|
3073
3005
|
var s = 0.01, t = 50, e = 0.01, i = Math.random, n = [
|
|
3074
3006
|
[0, 0],
|
|
3075
3007
|
[0, 1],
|
|
@@ -3078,16 +3010,16 @@ function jn() {
|
|
|
3078
3010
|
], a = [
|
|
3079
3011
|
[0, 0],
|
|
3080
3012
|
[1, 1]
|
|
3081
|
-
], o = [1, 1], h = s, r = t, l = e, u = i,
|
|
3013
|
+
], o = [1, 1], h = s, r = t, l = e, u = i, c = [
|
|
3082
3014
|
{
|
|
3083
3015
|
weight: 1
|
|
3084
3016
|
},
|
|
3085
3017
|
{
|
|
3086
3018
|
weight: 1
|
|
3087
3019
|
}
|
|
3088
|
-
],
|
|
3020
|
+
], f = Me(c).stop();
|
|
3089
3021
|
function g(d) {
|
|
3090
|
-
|
|
3022
|
+
p(n, d);
|
|
3091
3023
|
}
|
|
3092
3024
|
g.convergenceRatio = function(d) {
|
|
3093
3025
|
return arguments.length ? (h = d, g) : h;
|
|
@@ -3096,60 +3028,60 @@ function jn() {
|
|
|
3096
3028
|
}, g.minWeightRatio = function(d) {
|
|
3097
3029
|
return arguments.length ? (l = d, g) : l;
|
|
3098
3030
|
}, g.clip = function(d) {
|
|
3099
|
-
return arguments.length ? (
|
|
3031
|
+
return arguments.length ? (f.clip(d), n = f.clip(), a = f.extent(), o = f.size(), g) : n;
|
|
3100
3032
|
}, g.extent = function(d) {
|
|
3101
|
-
return arguments.length ? (
|
|
3033
|
+
return arguments.length ? (f.extent(d), n = f.clip(), a = f.extent(), o = f.size(), g) : a;
|
|
3102
3034
|
}, g.size = function(d) {
|
|
3103
|
-
return arguments.length ? (
|
|
3035
|
+
return arguments.length ? (f.size(d), n = f.clip(), a = f.extent(), o = f.size(), g) : o;
|
|
3104
3036
|
}, g.prng = function(d) {
|
|
3105
3037
|
return arguments.length ? (u = d, g) : u;
|
|
3106
3038
|
};
|
|
3107
|
-
function
|
|
3039
|
+
function p(d, v) {
|
|
3108
3040
|
var y;
|
|
3109
|
-
if (
|
|
3110
|
-
y =
|
|
3041
|
+
if (v.polygon = d, v.height != 0) {
|
|
3042
|
+
y = Me(v.children).clip(d).weight(function(_) {
|
|
3111
3043
|
return _.value;
|
|
3112
3044
|
}).convergenceRatio(h).maxIterationCount(r).minWeightRatio(l).prng(u).stop();
|
|
3113
3045
|
for (var m = y.state(); !m.ended; )
|
|
3114
3046
|
y.tick(), m = y.state();
|
|
3115
3047
|
m.polygons.forEach(function(_) {
|
|
3116
|
-
|
|
3048
|
+
p(_, _.site.originalObject.data.originalData);
|
|
3117
3049
|
});
|
|
3118
3050
|
}
|
|
3119
3051
|
}
|
|
3120
3052
|
return g;
|
|
3121
3053
|
}
|
|
3122
|
-
var
|
|
3123
|
-
function
|
|
3124
|
-
return
|
|
3054
|
+
var Ct = { exports: {} }, Vn = Ct.exports, Ie;
|
|
3055
|
+
function Yn() {
|
|
3056
|
+
return Ie || (Ie = 1, function(s) {
|
|
3125
3057
|
(function(t, e, i) {
|
|
3126
3058
|
function n(r) {
|
|
3127
3059
|
var l = this, u = h();
|
|
3128
3060
|
l.next = function() {
|
|
3129
|
-
var
|
|
3130
|
-
return l.s0 = l.s1, l.s1 = l.s2, l.s2 =
|
|
3061
|
+
var c = 2091639 * l.s0 + l.c * 23283064365386963e-26;
|
|
3062
|
+
return l.s0 = l.s1, l.s1 = l.s2, l.s2 = c - (l.c = c | 0);
|
|
3131
3063
|
}, l.c = 1, l.s0 = u(" "), l.s1 = u(" "), l.s2 = u(" "), l.s0 -= u(r), l.s0 < 0 && (l.s0 += 1), l.s1 -= u(r), l.s1 < 0 && (l.s1 += 1), l.s2 -= u(r), l.s2 < 0 && (l.s2 += 1), u = null;
|
|
3132
3064
|
}
|
|
3133
3065
|
function a(r, l) {
|
|
3134
3066
|
return l.c = r.c, l.s0 = r.s0, l.s1 = r.s1, l.s2 = r.s2, l;
|
|
3135
3067
|
}
|
|
3136
3068
|
function o(r, l) {
|
|
3137
|
-
var u = new n(r),
|
|
3138
|
-
return
|
|
3069
|
+
var u = new n(r), c = l && l.state, f = u.next;
|
|
3070
|
+
return f.int32 = function() {
|
|
3139
3071
|
return u.next() * 4294967296 | 0;
|
|
3140
|
-
},
|
|
3141
|
-
return
|
|
3142
|
-
},
|
|
3072
|
+
}, f.double = function() {
|
|
3073
|
+
return f() + (f() * 2097152 | 0) * 11102230246251565e-32;
|
|
3074
|
+
}, f.quick = f, c && (typeof c == "object" && a(c, u), f.state = function() {
|
|
3143
3075
|
return a(u, {});
|
|
3144
|
-
}),
|
|
3076
|
+
}), f;
|
|
3145
3077
|
}
|
|
3146
3078
|
function h() {
|
|
3147
3079
|
var r = 4022871197, l = function(u) {
|
|
3148
3080
|
u = String(u);
|
|
3149
|
-
for (var
|
|
3150
|
-
r += u.charCodeAt(
|
|
3151
|
-
var
|
|
3152
|
-
r =
|
|
3081
|
+
for (var c = 0; c < u.length; c++) {
|
|
3082
|
+
r += u.charCodeAt(c);
|
|
3083
|
+
var f = 0.02519603282416938 * r;
|
|
3084
|
+
r = f >>> 0, f -= r, f *= r, r = f >>> 0, f -= r, r += f * 4294967296;
|
|
3153
3085
|
}
|
|
3154
3086
|
return (r >>> 0) * 23283064365386963e-26;
|
|
3155
3087
|
};
|
|
@@ -3157,20 +3089,20 @@ function Un() {
|
|
|
3157
3089
|
}
|
|
3158
3090
|
e && e.exports ? e.exports = o : this.alea = o;
|
|
3159
3091
|
})(
|
|
3160
|
-
|
|
3092
|
+
Vn,
|
|
3161
3093
|
s
|
|
3162
3094
|
);
|
|
3163
|
-
}(
|
|
3095
|
+
}(Ct)), Ct.exports;
|
|
3164
3096
|
}
|
|
3165
|
-
var
|
|
3166
|
-
function
|
|
3167
|
-
return
|
|
3097
|
+
var Rt = { exports: {} }, qn = Rt.exports, Oe;
|
|
3098
|
+
function Gn() {
|
|
3099
|
+
return Oe || (Oe = 1, function(s) {
|
|
3168
3100
|
(function(t, e, i) {
|
|
3169
3101
|
function n(h) {
|
|
3170
3102
|
var r = this, l = "";
|
|
3171
3103
|
r.x = 0, r.y = 0, r.z = 0, r.w = 0, r.next = function() {
|
|
3172
|
-
var
|
|
3173
|
-
return r.x = r.y, r.y = r.z, r.z = r.w, r.w ^= r.w >>> 19 ^
|
|
3104
|
+
var c = r.x ^ r.x << 11;
|
|
3105
|
+
return r.x = r.y, r.y = r.z, r.z = r.w, r.w ^= r.w >>> 19 ^ c ^ c >>> 8;
|
|
3174
3106
|
}, h === (h | 0) ? r.x = h : l += h;
|
|
3175
3107
|
for (var u = 0; u < l.length + 64; u++)
|
|
3176
3108
|
r.x ^= l.charCodeAt(u) | 0, r.next();
|
|
@@ -3179,34 +3111,34 @@ function Zn() {
|
|
|
3179
3111
|
return r.x = h.x, r.y = h.y, r.z = h.z, r.w = h.w, r;
|
|
3180
3112
|
}
|
|
3181
3113
|
function o(h, r) {
|
|
3182
|
-
var l = new n(h), u = r && r.state,
|
|
3114
|
+
var l = new n(h), u = r && r.state, c = function() {
|
|
3183
3115
|
return (l.next() >>> 0) / 4294967296;
|
|
3184
3116
|
};
|
|
3185
|
-
return
|
|
3117
|
+
return c.double = function() {
|
|
3186
3118
|
do
|
|
3187
|
-
var
|
|
3188
|
-
while (
|
|
3189
|
-
return
|
|
3190
|
-
},
|
|
3119
|
+
var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
|
|
3120
|
+
while (p === 0);
|
|
3121
|
+
return p;
|
|
3122
|
+
}, c.int32 = l.next, c.quick = c, u && (typeof u == "object" && a(u, l), c.state = function() {
|
|
3191
3123
|
return a(l, {});
|
|
3192
|
-
}),
|
|
3124
|
+
}), c;
|
|
3193
3125
|
}
|
|
3194
3126
|
e && e.exports ? e.exports = o : this.xor128 = o;
|
|
3195
3127
|
})(
|
|
3196
|
-
|
|
3128
|
+
qn,
|
|
3197
3129
|
s
|
|
3198
3130
|
);
|
|
3199
|
-
}(
|
|
3131
|
+
}(Rt)), Rt.exports;
|
|
3200
3132
|
}
|
|
3201
|
-
var
|
|
3202
|
-
function
|
|
3203
|
-
return
|
|
3133
|
+
var Tt = { exports: {} }, jn = Tt.exports, Ee;
|
|
3134
|
+
function Un() {
|
|
3135
|
+
return Ee || (Ee = 1, function(s) {
|
|
3204
3136
|
(function(t, e, i) {
|
|
3205
3137
|
function n(h) {
|
|
3206
3138
|
var r = this, l = "";
|
|
3207
3139
|
r.next = function() {
|
|
3208
|
-
var
|
|
3209
|
-
return r.x = r.y, r.y = r.z, r.z = r.w, r.w = r.v, (r.d = r.d + 362437 | 0) + (r.v = r.v ^ r.v << 4 ^ (
|
|
3140
|
+
var c = r.x ^ r.x >>> 2;
|
|
3141
|
+
return r.x = r.y, r.y = r.z, r.z = r.w, r.w = r.v, (r.d = r.d + 362437 | 0) + (r.v = r.v ^ r.v << 4 ^ (c ^ c << 1)) | 0;
|
|
3210
3142
|
}, r.x = 0, r.y = 0, r.z = 0, r.w = 0, r.v = 0, h === (h | 0) ? r.x = h : l += h;
|
|
3211
3143
|
for (var u = 0; u < l.length + 64; u++)
|
|
3212
3144
|
r.x ^= l.charCodeAt(u) | 0, u == l.length && (r.d = r.x << 10 ^ r.x >>> 4), r.next();
|
|
@@ -3215,45 +3147,45 @@ function Jn() {
|
|
|
3215
3147
|
return r.x = h.x, r.y = h.y, r.z = h.z, r.w = h.w, r.v = h.v, r.d = h.d, r;
|
|
3216
3148
|
}
|
|
3217
3149
|
function o(h, r) {
|
|
3218
|
-
var l = new n(h), u = r && r.state,
|
|
3150
|
+
var l = new n(h), u = r && r.state, c = function() {
|
|
3219
3151
|
return (l.next() >>> 0) / 4294967296;
|
|
3220
3152
|
};
|
|
3221
|
-
return
|
|
3153
|
+
return c.double = function() {
|
|
3222
3154
|
do
|
|
3223
|
-
var
|
|
3224
|
-
while (
|
|
3225
|
-
return
|
|
3226
|
-
},
|
|
3155
|
+
var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
|
|
3156
|
+
while (p === 0);
|
|
3157
|
+
return p;
|
|
3158
|
+
}, c.int32 = l.next, c.quick = c, u && (typeof u == "object" && a(u, l), c.state = function() {
|
|
3227
3159
|
return a(l, {});
|
|
3228
|
-
}),
|
|
3160
|
+
}), c;
|
|
3229
3161
|
}
|
|
3230
3162
|
e && e.exports ? e.exports = o : this.xorwow = o;
|
|
3231
3163
|
})(
|
|
3232
|
-
|
|
3164
|
+
jn,
|
|
3233
3165
|
s
|
|
3234
3166
|
);
|
|
3235
|
-
}(
|
|
3167
|
+
}(Tt)), Tt.exports;
|
|
3236
3168
|
}
|
|
3237
|
-
var
|
|
3238
|
-
function
|
|
3239
|
-
return
|
|
3169
|
+
var zt = { exports: {} }, $n = zt.exports, Be;
|
|
3170
|
+
function Kn() {
|
|
3171
|
+
return Be || (Be = 1, function(s) {
|
|
3240
3172
|
(function(t, e, i) {
|
|
3241
3173
|
function n(h) {
|
|
3242
3174
|
var r = this;
|
|
3243
3175
|
r.next = function() {
|
|
3244
|
-
var u = r.x,
|
|
3245
|
-
return
|
|
3176
|
+
var u = r.x, c = r.i, f, g;
|
|
3177
|
+
return f = u[c], f ^= f >>> 7, g = f ^ f << 24, f = u[c + 1 & 7], g ^= f ^ f >>> 10, f = u[c + 3 & 7], g ^= f ^ f >>> 3, f = u[c + 4 & 7], g ^= f ^ f << 7, f = u[c + 7 & 7], f = f ^ f << 13, g ^= f ^ f << 9, u[c] = g, r.i = c + 1 & 7, g;
|
|
3246
3178
|
};
|
|
3247
|
-
function l(u,
|
|
3248
|
-
var
|
|
3249
|
-
if (
|
|
3250
|
-
g[0] =
|
|
3179
|
+
function l(u, c) {
|
|
3180
|
+
var f, g = [];
|
|
3181
|
+
if (c === (c | 0))
|
|
3182
|
+
g[0] = c;
|
|
3251
3183
|
else
|
|
3252
|
-
for (
|
|
3253
|
-
g[
|
|
3184
|
+
for (c = "" + c, f = 0; f < c.length; ++f)
|
|
3185
|
+
g[f & 7] = g[f & 7] << 15 ^ c.charCodeAt(f) + g[f + 1 & 7] << 13;
|
|
3254
3186
|
for (; g.length < 8; ) g.push(0);
|
|
3255
|
-
for (
|
|
3256
|
-
for (
|
|
3187
|
+
for (f = 0; f < 8 && g[f] === 0; ++f) ;
|
|
3188
|
+
for (f == 8 ? g[7] = -1 : g[f], u.x = g, u.i = 0, f = 256; f > 0; --f)
|
|
3257
3189
|
u.next();
|
|
3258
3190
|
}
|
|
3259
3191
|
l(r, h);
|
|
@@ -3263,42 +3195,42 @@ function es() {
|
|
|
3263
3195
|
}
|
|
3264
3196
|
function o(h, r) {
|
|
3265
3197
|
h == null && (h = +/* @__PURE__ */ new Date());
|
|
3266
|
-
var l = new n(h), u = r && r.state,
|
|
3198
|
+
var l = new n(h), u = r && r.state, c = function() {
|
|
3267
3199
|
return (l.next() >>> 0) / 4294967296;
|
|
3268
3200
|
};
|
|
3269
|
-
return
|
|
3201
|
+
return c.double = function() {
|
|
3270
3202
|
do
|
|
3271
|
-
var
|
|
3272
|
-
while (
|
|
3273
|
-
return
|
|
3274
|
-
},
|
|
3203
|
+
var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
|
|
3204
|
+
while (p === 0);
|
|
3205
|
+
return p;
|
|
3206
|
+
}, c.int32 = l.next, c.quick = c, u && (u.x && a(u, l), c.state = function() {
|
|
3275
3207
|
return a(l, {});
|
|
3276
|
-
}),
|
|
3208
|
+
}), c;
|
|
3277
3209
|
}
|
|
3278
3210
|
e && e.exports ? e.exports = o : this.xorshift7 = o;
|
|
3279
3211
|
})(
|
|
3280
|
-
|
|
3212
|
+
$n,
|
|
3281
3213
|
s
|
|
3282
3214
|
);
|
|
3283
|
-
}(
|
|
3215
|
+
}(zt)), zt.exports;
|
|
3284
3216
|
}
|
|
3285
|
-
var
|
|
3286
|
-
function
|
|
3287
|
-
return
|
|
3217
|
+
var Lt = { exports: {} }, Zn = Lt.exports, Fe;
|
|
3218
|
+
function Qn() {
|
|
3219
|
+
return Fe || (Fe = 1, function(s) {
|
|
3288
3220
|
(function(t, e, i) {
|
|
3289
3221
|
function n(h) {
|
|
3290
3222
|
var r = this;
|
|
3291
3223
|
r.next = function() {
|
|
3292
|
-
var u = r.w,
|
|
3293
|
-
return r.w = u = u + 1640531527 | 0,
|
|
3224
|
+
var u = r.w, c = r.X, f = r.i, g, p;
|
|
3225
|
+
return r.w = u = u + 1640531527 | 0, p = c[f + 34 & 127], g = c[f = f + 1 & 127], p ^= p << 13, g ^= g << 17, p ^= p >>> 15, g ^= g >>> 12, p = c[f] = p ^ g, r.i = f, p + (u ^ u >>> 16) | 0;
|
|
3294
3226
|
};
|
|
3295
|
-
function l(u,
|
|
3296
|
-
var
|
|
3297
|
-
for (
|
|
3298
|
-
|
|
3299
|
-
for (
|
|
3300
|
-
g = y[
|
|
3301
|
-
u.w =
|
|
3227
|
+
function l(u, c) {
|
|
3228
|
+
var f, g, p, d, v, y = [], m = 128;
|
|
3229
|
+
for (c === (c | 0) ? (g = c, c = null) : (c = c + "\0", g = 0, m = Math.max(m, c.length)), p = 0, d = -32; d < m; ++d)
|
|
3230
|
+
c && (g ^= c.charCodeAt((d + 32) % c.length)), d === 0 && (v = g), g ^= g << 10, g ^= g >>> 15, g ^= g << 4, g ^= g >>> 13, d >= 0 && (v = v + 1640531527 | 0, f = y[d & 127] ^= g + v, p = f == 0 ? p + 1 : 0);
|
|
3231
|
+
for (p >= 128 && (y[(c && c.length || 0) & 127] = -1), p = 127, d = 512; d > 0; --d)
|
|
3232
|
+
g = y[p + 34 & 127], f = y[p = p + 1 & 127], g ^= g << 13, f ^= f << 17, g ^= g >>> 15, f ^= f >>> 12, y[p] = g ^ f;
|
|
3233
|
+
u.w = v, u.X = y, u.i = p;
|
|
3302
3234
|
}
|
|
3303
3235
|
l(r, h);
|
|
3304
3236
|
}
|
|
@@ -3307,35 +3239,35 @@ function ns() {
|
|
|
3307
3239
|
}
|
|
3308
3240
|
function o(h, r) {
|
|
3309
3241
|
h == null && (h = +/* @__PURE__ */ new Date());
|
|
3310
|
-
var l = new n(h), u = r && r.state,
|
|
3242
|
+
var l = new n(h), u = r && r.state, c = function() {
|
|
3311
3243
|
return (l.next() >>> 0) / 4294967296;
|
|
3312
3244
|
};
|
|
3313
|
-
return
|
|
3245
|
+
return c.double = function() {
|
|
3314
3246
|
do
|
|
3315
|
-
var
|
|
3316
|
-
while (
|
|
3317
|
-
return
|
|
3318
|
-
},
|
|
3247
|
+
var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
|
|
3248
|
+
while (p === 0);
|
|
3249
|
+
return p;
|
|
3250
|
+
}, c.int32 = l.next, c.quick = c, u && (u.X && a(u, l), c.state = function() {
|
|
3319
3251
|
return a(l, {});
|
|
3320
|
-
}),
|
|
3252
|
+
}), c;
|
|
3321
3253
|
}
|
|
3322
3254
|
e && e.exports ? e.exports = o : this.xor4096 = o;
|
|
3323
3255
|
})(
|
|
3324
|
-
|
|
3256
|
+
Zn,
|
|
3325
3257
|
// window object or global
|
|
3326
3258
|
s
|
|
3327
3259
|
);
|
|
3328
|
-
}(
|
|
3260
|
+
}(Lt)), Lt.exports;
|
|
3329
3261
|
}
|
|
3330
|
-
var
|
|
3331
|
-
function
|
|
3332
|
-
return
|
|
3262
|
+
var St = { exports: {} }, Jn = St.exports, Xe;
|
|
3263
|
+
function ts() {
|
|
3264
|
+
return Xe || (Xe = 1, function(s) {
|
|
3333
3265
|
(function(t, e, i) {
|
|
3334
3266
|
function n(h) {
|
|
3335
3267
|
var r = this, l = "";
|
|
3336
3268
|
r.next = function() {
|
|
3337
|
-
var
|
|
3338
|
-
return
|
|
3269
|
+
var c = r.b, f = r.c, g = r.d, p = r.a;
|
|
3270
|
+
return c = c << 25 ^ c >>> 7 ^ f, f = f - g | 0, g = g << 24 ^ g >>> 8 ^ p, p = p - c | 0, r.b = c = c << 20 ^ c >>> 12 ^ f, r.c = f = f - g | 0, r.d = g << 16 ^ f >>> 16 ^ p, r.a = p - c | 0;
|
|
3339
3271
|
}, r.a = 0, r.b = 0, r.c = -1640531527, r.d = 1367130551, h === Math.floor(h) ? (r.a = h / 4294967296 | 0, r.b = h | 0) : l += h;
|
|
3340
3272
|
for (var u = 0; u < l.length + 20; u++)
|
|
3341
3273
|
r.b ^= l.charCodeAt(u) | 0, r.next();
|
|
@@ -3344,95 +3276,95 @@ function rs() {
|
|
|
3344
3276
|
return r.a = h.a, r.b = h.b, r.c = h.c, r.d = h.d, r;
|
|
3345
3277
|
}
|
|
3346
3278
|
function o(h, r) {
|
|
3347
|
-
var l = new n(h), u = r && r.state,
|
|
3279
|
+
var l = new n(h), u = r && r.state, c = function() {
|
|
3348
3280
|
return (l.next() >>> 0) / 4294967296;
|
|
3349
3281
|
};
|
|
3350
|
-
return
|
|
3282
|
+
return c.double = function() {
|
|
3351
3283
|
do
|
|
3352
|
-
var
|
|
3353
|
-
while (
|
|
3354
|
-
return
|
|
3355
|
-
},
|
|
3284
|
+
var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
|
|
3285
|
+
while (p === 0);
|
|
3286
|
+
return p;
|
|
3287
|
+
}, c.int32 = l.next, c.quick = c, u && (typeof u == "object" && a(u, l), c.state = function() {
|
|
3356
3288
|
return a(l, {});
|
|
3357
|
-
}),
|
|
3289
|
+
}), c;
|
|
3358
3290
|
}
|
|
3359
3291
|
e && e.exports ? e.exports = o : this.tychei = o;
|
|
3360
3292
|
})(
|
|
3361
|
-
|
|
3293
|
+
Jn,
|
|
3362
3294
|
s
|
|
3363
3295
|
);
|
|
3364
|
-
}(
|
|
3296
|
+
}(St)), St.exports;
|
|
3365
3297
|
}
|
|
3366
|
-
var
|
|
3367
|
-
function
|
|
3368
|
-
return
|
|
3298
|
+
var Ht = { exports: {} }, es = Ht.exports, Ve;
|
|
3299
|
+
function is() {
|
|
3300
|
+
return Ve || (Ve = 1, function(s) {
|
|
3369
3301
|
(function(t, e, i) {
|
|
3370
|
-
var n = 256, a = 6, o = 52, h = "random", r = i.pow(n, a), l = i.pow(2, o), u = l * 2,
|
|
3371
|
-
function g(x, w,
|
|
3302
|
+
var n = 256, a = 6, o = 52, h = "random", r = i.pow(n, a), l = i.pow(2, o), u = l * 2, c = n - 1, f;
|
|
3303
|
+
function g(x, w, b) {
|
|
3372
3304
|
var A = [];
|
|
3373
3305
|
w = w == !0 ? { entropy: !0 } : w || {};
|
|
3374
|
-
var
|
|
3306
|
+
var k = y(v(
|
|
3375
3307
|
w.entropy ? [x, _(e)] : x ?? m(),
|
|
3376
3308
|
3
|
|
3377
|
-
), A), C = new
|
|
3378
|
-
for (var S = C.g(a),
|
|
3379
|
-
S = (S +
|
|
3309
|
+
), A), C = new p(A), N = function() {
|
|
3310
|
+
for (var S = C.g(a), M = r, O = 0; S < l; )
|
|
3311
|
+
S = (S + O) * n, M *= n, O = C.g(1);
|
|
3380
3312
|
for (; S >= u; )
|
|
3381
|
-
S /= 2,
|
|
3382
|
-
return (S +
|
|
3313
|
+
S /= 2, M /= 2, O >>>= 1;
|
|
3314
|
+
return (S + O) / M;
|
|
3383
3315
|
};
|
|
3384
|
-
return
|
|
3316
|
+
return N.int32 = function() {
|
|
3385
3317
|
return C.g(4) | 0;
|
|
3386
|
-
},
|
|
3318
|
+
}, N.quick = function() {
|
|
3387
3319
|
return C.g(4) / 4294967296;
|
|
3388
|
-
},
|
|
3320
|
+
}, N.double = N, y(_(C.S), e), (w.pass || b || function(S, M, O, J) {
|
|
3389
3321
|
return J && (J.S && d(J, C), S.state = function() {
|
|
3390
3322
|
return d(C, {});
|
|
3391
|
-
}),
|
|
3323
|
+
}), O ? (i[h] = S, M) : S;
|
|
3392
3324
|
})(
|
|
3393
|
-
b,
|
|
3394
3325
|
N,
|
|
3326
|
+
k,
|
|
3395
3327
|
"global" in w ? w.global : this == i,
|
|
3396
3328
|
w.state
|
|
3397
3329
|
);
|
|
3398
3330
|
}
|
|
3399
|
-
function
|
|
3400
|
-
var w,
|
|
3401
|
-
for (
|
|
3402
|
-
|
|
3403
|
-
for (
|
|
3404
|
-
|
|
3331
|
+
function p(x) {
|
|
3332
|
+
var w, b = x.length, A = this, k = 0, C = A.i = A.j = 0, N = A.S = [];
|
|
3333
|
+
for (b || (x = [b++]); k < n; )
|
|
3334
|
+
N[k] = k++;
|
|
3335
|
+
for (k = 0; k < n; k++)
|
|
3336
|
+
N[k] = N[C = c & C + x[k % b] + (w = N[k])], N[C] = w;
|
|
3405
3337
|
(A.g = function(S) {
|
|
3406
|
-
for (var
|
|
3407
|
-
|
|
3408
|
-
return A.i = J, A.j = tt,
|
|
3338
|
+
for (var M, O = 0, J = A.i, tt = A.j, nt = A.S; S--; )
|
|
3339
|
+
M = nt[J = c & J + 1], O = O * n + nt[c & (nt[J] = nt[tt = c & tt + M]) + (nt[tt] = M)];
|
|
3340
|
+
return A.i = J, A.j = tt, O;
|
|
3409
3341
|
})(n);
|
|
3410
3342
|
}
|
|
3411
3343
|
function d(x, w) {
|
|
3412
3344
|
return w.i = x.i, w.j = x.j, w.S = x.S.slice(), w;
|
|
3413
3345
|
}
|
|
3414
|
-
function
|
|
3415
|
-
var
|
|
3346
|
+
function v(x, w) {
|
|
3347
|
+
var b = [], A = typeof x, k;
|
|
3416
3348
|
if (w && A == "object")
|
|
3417
|
-
for (
|
|
3349
|
+
for (k in x)
|
|
3418
3350
|
try {
|
|
3419
|
-
|
|
3351
|
+
b.push(v(x[k], w - 1));
|
|
3420
3352
|
} catch {
|
|
3421
3353
|
}
|
|
3422
|
-
return
|
|
3354
|
+
return b.length ? b : A == "string" ? x : x + "\0";
|
|
3423
3355
|
}
|
|
3424
3356
|
function y(x, w) {
|
|
3425
|
-
for (var
|
|
3426
|
-
w[
|
|
3357
|
+
for (var b = x + "", A, k = 0; k < b.length; )
|
|
3358
|
+
w[c & k] = c & (A ^= w[c & k] * 19) + b.charCodeAt(k++);
|
|
3427
3359
|
return _(w);
|
|
3428
3360
|
}
|
|
3429
3361
|
function m() {
|
|
3430
3362
|
try {
|
|
3431
3363
|
var x;
|
|
3432
|
-
return
|
|
3364
|
+
return f && (x = f.randomBytes) ? x = x(n) : (x = new Uint8Array(n), (t.crypto || t.msCrypto).getRandomValues(x)), _(x);
|
|
3433
3365
|
} catch {
|
|
3434
|
-
var w = t.navigator,
|
|
3435
|
-
return [+/* @__PURE__ */ new Date(), t,
|
|
3366
|
+
var w = t.navigator, b = w && w.plugins;
|
|
3367
|
+
return [+/* @__PURE__ */ new Date(), t, b, t.screen, _(e)];
|
|
3436
3368
|
}
|
|
3437
3369
|
}
|
|
3438
3370
|
function _(x) {
|
|
@@ -3441,7 +3373,7 @@ function os() {
|
|
|
3441
3373
|
if (y(i.random(), e), s.exports) {
|
|
3442
3374
|
s.exports = g;
|
|
3443
3375
|
try {
|
|
3444
|
-
|
|
3376
|
+
f = Si;
|
|
3445
3377
|
} catch {
|
|
3446
3378
|
}
|
|
3447
3379
|
} else
|
|
@@ -3449,35 +3381,35 @@ function os() {
|
|
|
3449
3381
|
})(
|
|
3450
3382
|
// global: `self` in browsers (including strict mode and web workers),
|
|
3451
3383
|
// otherwise `this` in Node and other environments
|
|
3452
|
-
typeof self < "u" ? self :
|
|
3384
|
+
typeof self < "u" ? self : es,
|
|
3453
3385
|
[],
|
|
3454
3386
|
// pool: entropy pool starts empty
|
|
3455
3387
|
Math
|
|
3456
3388
|
// math: package containing random, pow, and seedrandom
|
|
3457
3389
|
);
|
|
3458
|
-
}(
|
|
3459
|
-
}
|
|
3460
|
-
var
|
|
3461
|
-
function
|
|
3462
|
-
if (
|
|
3463
|
-
|
|
3464
|
-
var s =
|
|
3465
|
-
return o.alea = s, o.xor128 = t, o.xorwow = e, o.xorshift7 = i, o.xor4096 = n, o.tychei = a,
|
|
3466
|
-
}
|
|
3467
|
-
var
|
|
3468
|
-
const
|
|
3469
|
-
class
|
|
3390
|
+
}(Ht)), Ht.exports;
|
|
3391
|
+
}
|
|
3392
|
+
var jt, Ye;
|
|
3393
|
+
function ns() {
|
|
3394
|
+
if (Ye) return jt;
|
|
3395
|
+
Ye = 1;
|
|
3396
|
+
var s = Yn(), t = Gn(), e = Un(), i = Kn(), n = Qn(), a = ts(), o = is();
|
|
3397
|
+
return o.alea = s, o.xor128 = t, o.xorwow = e, o.xorshift7 = i, o.xor4096 = n, o.tychei = a, jt = o, jt;
|
|
3398
|
+
}
|
|
3399
|
+
var ss = ns();
|
|
3400
|
+
const qe = /* @__PURE__ */ Li(ss);
|
|
3401
|
+
class re extends Q {
|
|
3470
3402
|
constructor() {
|
|
3471
|
-
super(...arguments), this._tag = "voronoitreemap", this.polygons = this.addDisposer(new Z(K.new({}), () =>
|
|
3403
|
+
super(...arguments), this._tag = "voronoitreemap", this.polygons = this.addDisposer(new Z(K.new({}), () => zi._new(this._root, {
|
|
3472
3404
|
themeTags: G(this.polygons.template.get("themeTags", []), [this._tag, "shape"])
|
|
3473
|
-
}, [this.polygons.template]))), this.voronoi =
|
|
3405
|
+
}, [this.polygons.template]))), this.voronoi = Xn();
|
|
3474
3406
|
}
|
|
3475
3407
|
_afterNew() {
|
|
3476
3408
|
this.nodesContainer.setAll({
|
|
3477
|
-
x:
|
|
3478
|
-
y:
|
|
3479
|
-
centerX:
|
|
3480
|
-
centerY:
|
|
3409
|
+
x: E,
|
|
3410
|
+
y: E,
|
|
3411
|
+
centerX: E,
|
|
3412
|
+
centerY: E
|
|
3481
3413
|
}), this.nodes.template.setPrivate("trustBounds", !0), super._afterNew();
|
|
3482
3414
|
}
|
|
3483
3415
|
_prepareChildren() {
|
|
@@ -3485,7 +3417,7 @@ class he extends Q {
|
|
|
3485
3417
|
const t = this.innerWidth() / 2, e = this.innerHeight() / 2;
|
|
3486
3418
|
let i = this._rootNode;
|
|
3487
3419
|
const n = this.get("selectedDataItem");
|
|
3488
|
-
n && (i = n.get("d3HierarchyNode")), this.voronoi.convergenceRatio(this.get("convergenceRatio", 5e-3)), this.voronoi.maxIterationCount(this.get("maxIterationCount", 100)), this.voronoi.minWeightRatio(this.get("minWeightRatio", 5e-3)), this.isDirty("type") && this.get("type") == "polygon" && (this.voronoi.clip(this.getCirclePolygon(1)), this._updateVisuals()), this._sizeDirty && this.get("type") == "rectangle" && (this.voronoi.prng(
|
|
3420
|
+
n && (i = n.get("d3HierarchyNode")), this.voronoi.convergenceRatio(this.get("convergenceRatio", 5e-3)), this.voronoi.maxIterationCount(this.get("maxIterationCount", 100)), this.voronoi.minWeightRatio(this.get("minWeightRatio", 5e-3)), this.isDirty("type") && this.get("type") == "polygon" && (this.voronoi.clip(this.getCirclePolygon(1)), this._updateVisuals()), this._sizeDirty && this.get("type") == "rectangle" && (this.voronoi.prng(qe("X")), this.voronoi.clip([[-t, -e], [-t, e], [t, e], [t, -e]])(i), this._updateVisuals()), (this._valuesDirty || this.isDirty("selectedDataItem")) && i && (this.voronoi.prng(qe("X")), this.voronoi(i), this._updateVisuals());
|
|
3489
3421
|
}
|
|
3490
3422
|
_updateNode(t) {
|
|
3491
3423
|
const e = t.get("d3HierarchyNode").polygon, i = t.get("polygon");
|
|
@@ -3493,20 +3425,20 @@ class he extends Q {
|
|
|
3493
3425
|
let n = [], a = 1;
|
|
3494
3426
|
this.get("type") == "polygon" && (a = Math.min(this.innerWidth(), this.innerHeight()) / 2);
|
|
3495
3427
|
let o = 1 / 0, h = -1 / 0;
|
|
3496
|
-
for (let
|
|
3497
|
-
const g = e[
|
|
3498
|
-
let
|
|
3499
|
-
n.push([
|
|
3428
|
+
for (let c = 0, f = e.length; c < f; c++) {
|
|
3429
|
+
const g = e[c];
|
|
3430
|
+
let p = g[0] * a, d = g[1] * a;
|
|
3431
|
+
n.push([p, d]), o = Math.min(o, p), h = Math.max(h, p);
|
|
3500
3432
|
}
|
|
3501
3433
|
i.set("coordinates", n);
|
|
3502
3434
|
const r = t.get("fill"), l = t.get("fillPattern");
|
|
3503
3435
|
i._setDefault("fill", r), i._setDefault("fillPattern", l);
|
|
3504
3436
|
const u = t.get("label");
|
|
3505
3437
|
if (u) {
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3508
|
-
x:
|
|
3509
|
-
y:
|
|
3438
|
+
const c = e.site;
|
|
3439
|
+
c && u.setAll({
|
|
3440
|
+
x: c.x * a,
|
|
3441
|
+
y: c.y * a,
|
|
3510
3442
|
maxWidth: Math.abs(h - o)
|
|
3511
3443
|
});
|
|
3512
3444
|
}
|
|
@@ -3541,21 +3473,21 @@ class he extends Q {
|
|
|
3541
3473
|
return n;
|
|
3542
3474
|
}
|
|
3543
3475
|
}
|
|
3544
|
-
|
|
3545
|
-
|
|
3476
|
+
re.className = "VoronoiTreemap";
|
|
3477
|
+
re.classNames = Q.classNames.concat([re.className]);
|
|
3546
3478
|
export {
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3479
|
+
Zt as BreadcrumbBar,
|
|
3480
|
+
Qe as DefaultTheme,
|
|
3481
|
+
Qt as ForceDirected,
|
|
3550
3482
|
Q as Hierarchy,
|
|
3551
|
-
|
|
3483
|
+
Mt as HierarchyLink,
|
|
3552
3484
|
dt as HierarchyNode,
|
|
3553
3485
|
lt as LinkedHierarchy,
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3486
|
+
Wt as LinkedHierarchyNode,
|
|
3487
|
+
Jt as Pack,
|
|
3488
|
+
wt as Partition,
|
|
3489
|
+
te as Sunburst,
|
|
3490
|
+
ee as Tree,
|
|
3491
|
+
ie as Treemap,
|
|
3492
|
+
re as VoronoiTreemap
|
|
3561
3493
|
};
|