@sjcrh/proteinpaint-client 2.197.0 → 2.198.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/2dmaf-R3PFZNRN.js +1373 -0
- package/dist/AIProjectAdmin-DM3KG6SR.js +958 -0
- package/dist/AppHeader-6DZQ6YZX.js +835 -0
- package/dist/BoxPlot-76NINVX4.js +1217 -0
- package/dist/CorrelationVolcano-U5UMJNH5.js +619 -0
- package/dist/DE-AXNYWIQK.js +95 -0
- package/dist/DEinput-JH6YY6LS.js +301 -0
- package/dist/DifferentialAnalysis-25P4CGIY.js +242 -0
- package/dist/Disco-NVMLF3BK.js +3392 -0
- package/dist/Disco-NVMLF3BK.js.map +7 -0
- package/dist/Disco.UI-C7CZINUQ.js +249 -0
- package/dist/DmrPlot-WROR4ENM.js +642 -0
- package/dist/GB-JUABODPH.js +1394 -0
- package/dist/GB-JUABODPH.js.map +7 -0
- package/dist/GSEA-Y5R2THIJ.js +846 -0
- package/dist/GeneExpInput-JDU6EI7K.js +367 -0
- package/dist/Geomap-J763OK2F.js +89 -0
- package/dist/Geomap-J763OK2F.js.map +7 -0
- package/dist/HicApp-UNIJLH4B.js +2250 -0
- package/dist/IDCViewer-KVPCIUDW.js +10803 -0
- package/dist/IDCViewer-KVPCIUDW.js.map +7 -0
- package/dist/NumBinaryEditor-WMN2GGO4.js +271 -0
- package/dist/NumBinaryEditor.unit.spec-TAMXV6SE.js +286 -0
- package/dist/NumContEditor-XYIOJY4E.js +109 -0
- package/dist/NumContEditor.unit.spec-WDZ75BHO.js +169 -0
- package/dist/NumCustomBinEditor-5SY3C4TY.js +38 -0
- package/dist/NumCustomBinEditor.unit.spec-XHTAIXR3.js +284 -0
- package/dist/NumDiscreteEditor-NRDRX4FD.js +179 -0
- package/dist/NumDiscreteEditor.unit.spec-2CJW7OAT.js +202 -0
- package/dist/NumRegularBinEditor-DUDVTNDC.js +38 -0
- package/dist/NumRegularBinEditor.unit.spec-H3GNQHMN.js +227 -0
- package/dist/NumSplineEditor-7Q4AC7KH.js +198 -0
- package/dist/NumSplineEditor.unit.spec-YRZK5PH5.js +199 -0
- package/dist/NumericDensity-NTNWUESG.js +38 -0
- package/dist/NumericDensity.unit.spec-5I5U6T6P.js +221 -0
- package/dist/NumericHandler-MEW2KMPX.js +39 -0
- package/dist/NumericHandler.unit.spec-JFX4BPRG.js +219 -0
- package/dist/ProteomeInput-K2ZHR2U6.js +395 -0
- package/dist/RunChart2-BEBDU7RC.js +758 -0
- package/dist/SC-XCBFJVUJ.js +1120 -0
- package/dist/Volcano-4Y4TP3UX.js +1385 -0
- package/dist/WSIViewer-ZLQU62PD.js +48562 -0
- package/dist/WsiSamplesPlot-JMBSITOM.js +165 -0
- package/dist/adSandbox-664IRCRL.js +38 -0
- package/dist/animatedBubbleChart-TX7NW34K.js +555 -0
- package/dist/app-63WJ3BMP.js +37 -0
- package/dist/app-77FIZHCG.js +49 -0
- package/dist/app.js +19 -19
- package/dist/bam-IETNVAYD.js +860 -0
- package/dist/barchart-YUVXJNH4.js +47 -0
- package/dist/barchart.data-P4EIQXGE.js +22 -0
- package/dist/barchart.events-JPVCLTIG.js +47 -0
- package/dist/barchart.integration.spec-ZH7DEQI2.js +2196 -0
- package/dist/barchart2-XO2FG76J.js +314 -0
- package/dist/bars.renderer-AUIWUJDH.js +12 -0
- package/dist/block-NBTCOT3H.js +6255 -0
- package/dist/block.init-X7Y2EEVR.js +38 -0
- package/dist/block.mds.expressionrank-BIAOZIZ3.js +359 -0
- package/dist/block.mds.geneboxplot-CNICDVLK.js +828 -0
- package/dist/block.mds.junction-PQXCTSUI.js +1545 -0
- package/dist/block.mds.svcnv-32KMVTCT.js +6801 -0
- package/dist/block.svg-LRTOYQK2.js +164 -0
- package/dist/block.tk.aicheck-HDV7ZIUD.js +283 -0
- package/dist/block.tk.ase-JIDWKMYI.js +365 -0
- package/dist/block.tk.bam-5X3OS5HB.js +1906 -0
- package/dist/block.tk.bedgraphdot-T7JX7YQL.js +384 -0
- package/dist/block.tk.bigwig.ui-OSAYEBAE.js +212 -0
- package/dist/block.tk.hicstraw-DEY3VQFK.js +823 -0
- package/dist/block.tk.junction-7UAFEZSJ.js +2364 -0
- package/dist/block.tk.junction.textmatrixui-27LHS33U.js +199 -0
- package/dist/block.tk.ld-DF2PI7OO.js +99 -0
- package/dist/block.tk.menu-L2D5KBIV.js +1029 -0
- package/dist/block.tk.pgv-QO56SKBV.js +944 -0
- package/dist/brainImaging-NIPQWFWO.js +423 -0
- package/dist/brainRegions-ZNZ2WHSU.js +221 -0
- package/dist/bubbleHeatmap-ERWNEKZB.js +383 -0
- package/dist/chunk-2GYWFQML.js +299 -0
- package/dist/chunk-2HYJ4GDH.js +50 -0
- package/dist/chunk-2MG6XE6R.js +272 -0
- package/dist/chunk-2X6W4E3W.js +1507 -0
- package/dist/chunk-2X6W4E3W.js.map +7 -0
- package/dist/chunk-33K5PA52.js +54 -0
- package/dist/chunk-37XDBPOP.js +26 -0
- package/dist/chunk-3EWB3246.js +58 -0
- package/dist/chunk-3RSKOPIY.js +100 -0
- package/dist/chunk-3XVVN66M.js +4085 -0
- package/dist/chunk-3XVVN66M.js.map +7 -0
- package/dist/chunk-4DPVT4NE.js +1102 -0
- package/dist/chunk-4IH7DORZ.js +98 -0
- package/dist/chunk-4QNBFIIR.js +399 -0
- package/dist/chunk-4STKL6SR.js +217 -0
- package/dist/chunk-4TZIVSL5.js +34 -0
- package/dist/chunk-5ABGFJSP.js +467 -0
- package/dist/chunk-5AZNP47R.js +302 -0
- package/dist/chunk-5RL2OHXX.js +5070 -0
- package/dist/chunk-5VOPABBA.js +20941 -0
- package/dist/chunk-5VOPABBA.js.map +7 -0
- package/dist/chunk-6BB43SIB.js +102 -0
- package/dist/chunk-7OHRR2IE.js +276 -0
- package/dist/chunk-ARBHWDMY.js +226 -0
- package/dist/chunk-ARBHWDMY.js.map +7 -0
- package/dist/chunk-ASATD4T7.js +14 -0
- package/dist/chunk-AZ47Q7BX.js +1223 -0
- package/dist/chunk-B5B3LZB3.js +236 -0
- package/dist/chunk-BHGISFCA.js +2681 -0
- package/dist/chunk-BMBOZ64T.js +2786 -0
- package/dist/chunk-BOZJHPJP.js +216 -0
- package/dist/chunk-CDD7LYJM.js +194 -0
- package/dist/chunk-CTQ3IUCA.js +2327 -0
- package/dist/chunk-D7TID3HR.js +158 -0
- package/dist/chunk-DBKNWR4J.js +1561 -0
- package/dist/chunk-DBKNWR4J.js.map +7 -0
- package/dist/chunk-E55LLYRX.js +55 -0
- package/dist/chunk-ESGXULRH.js +386 -0
- package/dist/chunk-EZ4LZ6ZT.js +117 -0
- package/dist/chunk-F3SJTVP5.js +4284 -0
- package/dist/chunk-F5IXNJO7.js +222 -0
- package/dist/chunk-FJYECRHW.js +448 -0
- package/dist/chunk-FPNRUQOU.js +833 -0
- package/dist/chunk-G5S4R77D.js +1942 -0
- package/dist/chunk-G764NXQN.js +170 -0
- package/dist/chunk-GAPI4MML.js +148 -0
- package/dist/chunk-HLUZOZXJ.js +272 -0
- package/dist/chunk-HOKIK2FR.js +375 -0
- package/dist/chunk-I6WR4CG7.js +323 -0
- package/dist/chunk-I6WR4CG7.js.map +7 -0
- package/dist/chunk-KLGL6XZD.js +129 -0
- package/dist/chunk-L7IRWUKT.js +480 -0
- package/dist/chunk-LFCYMSVA.js +314 -0
- package/dist/chunk-LX6G7HJJ.js +617 -0
- package/dist/chunk-M2G5R4WB.js +142 -0
- package/dist/chunk-M4TTGGT4.js +102 -0
- package/dist/chunk-M6EF3WVV.js +1825 -0
- package/dist/chunk-M6KHT3MM.js +146 -0
- package/dist/chunk-MCZFHWIR.js +230 -0
- package/dist/chunk-MFQACKYU.js +448 -0
- package/dist/chunk-MVGAGTM3.js +343 -0
- package/dist/chunk-NELOT3NJ.js +119 -0
- package/dist/chunk-NRKMXULC.js +54 -0
- package/dist/chunk-NSTL4MY2.js +2110 -0
- package/dist/chunk-NSTL4MY2.js.map +7 -0
- package/dist/chunk-NYRZNRG5.js +177 -0
- package/dist/chunk-ONPKE6DC.js +368 -0
- package/dist/chunk-OXVLWQ6M.js +556 -0
- package/dist/chunk-PFRWS4CR.js +203 -0
- package/dist/chunk-PJKQUXEN.js +1275 -0
- package/dist/chunk-Q2L44HK3.js +6364 -0
- package/dist/chunk-QNHT74XC.js +1245 -0
- package/dist/chunk-RKO6BL5N.js +446 -0
- package/dist/chunk-T25QNZHB.js +254 -0
- package/dist/chunk-U7TBYVIQ.js +31 -0
- package/dist/chunk-UGRQXBL4.js +381 -0
- package/dist/chunk-USFSHSCJ.js +477 -0
- package/dist/chunk-VJ6UFVGC.js +2833 -0
- package/dist/chunk-W3WPPOXH.js +292 -0
- package/dist/chunk-WFCSOTBO.js +263 -0
- package/dist/chunk-WHP4AKDM.js +185 -0
- package/dist/chunk-WZ2L57MB.js +102 -0
- package/dist/chunk-XPY6AWXO.js +787 -0
- package/dist/chunk-Y4UAKFWC.js +37 -0
- package/dist/chunk-YQBS2ZCK.js +514 -0
- package/dist/chunk-Z5U6HOE4.js +190 -0
- package/dist/chunk-Z5U6HOE4.js.map +7 -0
- package/dist/chunk-ZNEJUKJW.js +140 -0
- package/dist/chunk-ZNEJUKJW.js.map +7 -0
- package/dist/chunk-ZTHM2TKP.js +176 -0
- package/dist/condition-2PASYSUC.js +332 -0
- package/dist/controls-5IMJ6K5L.js +41 -0
- package/dist/controls.config-P5PG2DHW.js +39 -0
- package/dist/correlation-U3EDLNHR.js +102 -0
- package/dist/cuminc-2HUFEROK.js +1149 -0
- package/dist/cuminc.integration.spec-WFWAPTDA.js +678 -0
- package/dist/customdata.inputui-ZHWNEPFH.js +289 -0
- package/dist/dataDownload-VBSJBKMP.js +330 -0
- package/dist/dataDownload.integration.spec-LUFSETOP.js +193 -0
- package/dist/databrowser.ui-6H2KMSTJ.js +433 -0
- package/dist/dictionary-V37LXFIP.js +118 -0
- package/dist/dnaMethylation-OIZMHMLK.js +38 -0
- package/dist/dnaMethylation.integration.spec-CWPTJ74H.js +203 -0
- package/dist/dofetch-IWPZQB5N.js +51 -0
- package/dist/e2pca-7SLIAGYW.js +350 -0
- package/dist/ep-7L6KF6K4.js +1256 -0
- package/dist/expclust.gdc.spec-JT452Q3G.js +307 -0
- package/dist/facet-CXOUU5AS.js +521 -0
- package/dist/forms2-VPNCLQOY.js +539 -0
- package/dist/gb-P4VRXRED.js +88 -0
- package/dist/geneExpClustering-FQTCKRJJ.js +249 -0
- package/dist/geneExpression-BHO5326K.js +313 -0
- package/dist/geneExpression-ZMERB64E.js +38 -0
- package/dist/geneExpression.unit.spec-CNVHZWNG.js +102 -0
- package/dist/geneORA-FXVUCXGX.js +278 -0
- package/dist/geneRanking-SFK4UBKQ.js +553 -0
- package/dist/geneVariant-IYEHB4H7.js +41 -0
- package/dist/geneVariant-LIRRLUFR.js +39 -0
- package/dist/geneVariant.integration.spec-Y2NPNTYX.js +198 -0
- package/dist/genefusion.ui-L3HIJM3N.js +309 -0
- package/dist/geneset-A6VUFX63.js +208 -0
- package/dist/genomeBrowser.spec-CB4HHHBN.js +281 -0
- package/dist/grin2-FKBIMH5N.js +75 -0
- package/dist/grin2-V36KLEBU.js +1143 -0
- package/dist/grin2-V36KLEBU.js.map +7 -0
- package/dist/hierCluster-QFPRMHVA.js +63 -0
- package/dist/hierCluster-YWC3XYPV.js +59 -0
- package/dist/hierCluster.config-F7YYZNM3.js +40 -0
- package/dist/hierCluster.integration.spec-AF4L3YT6.js +488 -0
- package/dist/hierCluster.interactivity-RPY74PK6.js +54 -0
- package/dist/hierCluster.renderers-LOKHZ3V2.js +21 -0
- package/dist/imagePlot-BBEXA754.js +163 -0
- package/dist/importPlot-7QGANZGK.js +8 -0
- package/dist/isoformExpression-4SLLCVFD.js +40 -0
- package/dist/isoformExpression.unit.spec-GEL4JJ64.js +208 -0
- package/dist/launch.adhoc-LWLBQJS5.js +42 -0
- package/dist/leftlabel.sample-RTEZOIH2.js +264 -0
- package/dist/legacyDataset-VLD7ZYWI.js +119 -0
- package/dist/lollipop-XKQK5QZU.js +171 -0
- package/dist/maf-AZQPPWDO.js +459 -0
- package/dist/maftimeline-7MSVYKQU.js +593 -0
- package/dist/matrix-BGLWC25D.js +58 -0
- package/dist/matrix-IQR5SRMK.js +63 -0
- package/dist/matrix.cells-5C57NWOY.js +28 -0
- package/dist/matrix.config-2DQXAN2E.js +41 -0
- package/dist/matrix.data-ADCGF5H6.js +25 -0
- package/dist/matrix.groups-V4ITQ5F7.js +27 -0
- package/dist/matrix.integration.spec-IBNOO2WP.js +3072 -0
- package/dist/matrix.interactivity-JNELJFOV.js +42 -0
- package/dist/matrix.layout-WBVIV6GR.js +44 -0
- package/dist/matrix.legend-YHOWPK77.js +22 -0
- package/dist/matrix.renderers-5BGVRR3M.js +38 -0
- package/dist/matrix.serieses-2GZJOASZ.js +21 -0
- package/dist/matrix.sort-WKIWPJKP.js +27 -0
- package/dist/matrix.sort.unit.spec-L2E4D4AS.js +472 -0
- package/dist/matrix.sorterUi-TEJWWJ64.js +18 -0
- package/dist/matrix.sorterUi.unit.spec-SHP7C4P7.js +342 -0
- package/dist/mavb-4MXNYUEO.js +732 -0
- package/dist/mds.fimo-WHIJIBOI.js +518 -0
- package/dist/mds.samplescatterplot-BRJ6NG2D.js +1550 -0
- package/dist/mds.survivalplot-OPCMB5PB.js +483 -0
- package/dist/numericDictTermCluster-7MIFOP2K.js +65 -0
- package/dist/oncomatrix-BGG6BEUI.js +295 -0
- package/dist/oncomatrix.spec-LYQ4L4F3.js +448 -0
- package/dist/plot.2dvaf-6WVCP2ZI.js +377 -0
- package/dist/plot.app-MLBP6WFP.js +41 -0
- package/dist/plot.barplot-JEPRZSCU.js +102 -0
- package/dist/plot.boxplot-GNFW42VM.js +152 -0
- package/dist/plot.brainImaging-5ACNSD45.js +51 -0
- package/dist/plot.disco-Q2V2KKIH.js +102 -0
- package/dist/plot.dzi-KVT6S7K7.js +33 -0
- package/dist/plot.ssgq-4N3KFJQ2.js +139 -0
- package/dist/plot.vaf2cov-ITRG5U43.js +259 -0
- package/dist/plot.wsi-26YZNU4V.js +36 -0
- package/dist/polar2-J7GVUK4X.js +231 -0
- package/dist/profileForms-VXV2JLXU.js +446 -0
- package/dist/profilePlot-ZZYZK4SY.js +54 -0
- package/dist/proteinView-7KN532D3.js +1568 -0
- package/dist/qualitative-MLRVLIAU.js +43 -0
- package/dist/radar2-WM2ZBOH3.js +326 -0
- package/dist/radarFacility2-3SBR2JJ3.js +334 -0
- package/dist/regression-WMRPQJW2.js +56 -0
- package/dist/regression.inputs-VWZKSYNY.js +48 -0
- package/dist/regression.inputs.term-OWE6GWHM.js +48 -0
- package/dist/regression.inputs.values.table-4INNZQI2.js +45 -0
- package/dist/regression.integration.spec-XKQ2JOOT.js +784 -0
- package/dist/regression.results-VZBYMBYC.js +40 -0
- package/dist/regression.spec-DU3UTDCJ.js +708 -0
- package/dist/render-N5FOF247.js +38 -0
- package/dist/report-DW3OHB67.js +222 -0
- package/dist/sampleScatter.spec-REFSK2V4.js +202 -0
- package/dist/sampleView-ICOT2R6O.js +48 -0
- package/dist/samplelst-TJEVASYG.js +111 -0
- package/dist/samplematrix-6DAWCXQ3.js +2198 -0
- package/dist/sc-53LNOB7N.js +86 -0
- package/dist/scatter-DKYSS4DL.js +851 -0
- package/dist/selectGenomeWithTklst-WTX66TV3.js +134 -0
- package/dist/singleCellCellType-D2CN2BHQ.js +38 -0
- package/dist/singleCellCellType.unit.spec-LADUCI4R.js +160 -0
- package/dist/singleCellGeneExpression-YR2ZT34W.js +38 -0
- package/dist/singleCellGeneExpression.unit.spec-BM63M432.js +153 -0
- package/dist/singleCellPlot-3ICIOILE.js +54 -0
- package/dist/singlecell-6ZUFA3BQ.js +86 -0
- package/dist/singlecell-KX7W4U57.js +1572 -0
- package/dist/snp-VIURB7L3.js +38 -0
- package/dist/snp.unit.spec-ACZNZUNS.js +176 -0
- package/dist/snplocus-3LW4ZUZR.js +208 -0
- package/dist/spliceevent.a53ss.diagram-AKTZGWNM.js +151 -0
- package/dist/spliceevent.exonskip.diagram-XZHXB77R.js +283 -0
- package/dist/spliceevent.exonskip.diagram-XZHXB77R.js.map +7 -0
- package/dist/spliceevent.noeventdiagram-YTXWWNTJ.js +460 -0
- package/dist/ssGSEA-THW4WFMI.js +38 -0
- package/dist/ssGSEA.unit.spec-HTRGQI2K.js +88 -0
- package/dist/summarizeCnvGeneexp-RFYC3H2Z.js +163 -0
- package/dist/summarizeGeneexpSurvival-DQBZUTQ6.js +114 -0
- package/dist/summarizeMutationCnv-7AYEMHAI.js +164 -0
- package/dist/summarizeMutationDiagnosis-AKFJDSAF.js +40 -0
- package/dist/summarizeMutationSurvival-QJHZRQBZ.js +99 -0
- package/dist/summary-A5P7AYK4.js +49 -0
- package/dist/summary.integration.spec-HQISXGNL.js +414 -0
- package/dist/summaryInput-HP675QOQ.js +235 -0
- package/dist/sunburst-65LSYRXX.js +284 -0
- package/dist/survival-QNEI6YVK.js +46 -0
- package/dist/survival-UI74VXSM.js +58 -0
- package/dist/survival.integration.spec-X5N3JQXS.js +915 -0
- package/dist/svgraph-PSX2NER3.js +1387 -0
- package/dist/svmr-QDQ33EFX.js +3842 -0
- package/dist/table-LWAI27UO.js +200 -0
- package/dist/termCollection-3JHR74FG.js +179 -0
- package/dist/termCollection-CDF5LYUG.js +38 -0
- package/dist/termCollection.unit.spec-HOJKYWHF.js +208 -0
- package/dist/tk-GL4QCL4K.js +1019 -0
- package/dist/tk-GL4QCL4K.js.map +7 -0
- package/dist/tk-OEQFO73V.js +46 -0
- package/dist/tp.ui-SHNERDGC.js +1459 -0
- package/dist/tvs.dt-CZDC4TSR.js +39 -0
- package/dist/tvs.dtcnv.categorical-OPBDHZGB.js +40 -0
- package/dist/tvs.dtcnv.continuous-AR6P4EP3.js +72 -0
- package/dist/tvs.dtfusion-2YQ7N6FQ.js +40 -0
- package/dist/tvs.dtitd-ATCHW735.js +40 -0
- package/dist/tvs.dtsnvindel-WHHWAATJ.js +40 -0
- package/dist/tvs.dtsv-3UMCW65O.js +40 -0
- package/dist/tvs.numeric-TOEPASWN.js +21 -0
- package/dist/tvs.samplelst-M7XKXRTZ.js +104 -0
- package/dist/tvs.termCollection-WT4WZMYR.js +159 -0
- package/dist/violin-2YGXTBDS.js +46 -0
- package/dist/violin.integration.spec-YWNHVAGS.js +1425 -0
- package/dist/violin.interactivity-J6BE2UQL.js +38 -0
- package/dist/violin.renderer-3GRUWP2U.js +40 -0
- package/dist/vocabulary-2INCVPYJ.js +41 -0
- package/dist/vocabulary-2INCVPYJ.js.map +7 -0
- package/package.json +3 -3
- package/dist/2dmaf-HV22W5N3.js +0 -1373
- package/dist/AIProjectAdmin-7QGTPN3B.js +0 -958
- package/dist/AppHeader-NOKET4YE.js +0 -835
- package/dist/BoxPlot-SPG66F4C.js +0 -1217
- package/dist/CorrelationVolcano-3LEMTFXP.js +0 -619
- package/dist/DE-WCCADMXA.js +0 -95
- package/dist/DEinput-IZNPYPKH.js +0 -301
- package/dist/DifferentialAnalysis-SDZXIUXP.js +0 -242
- package/dist/Disco-M5RNUOWG.js +0 -3297
- package/dist/Disco-M5RNUOWG.js.map +0 -7
- package/dist/Disco.UI-RVUOPT6Y.js +0 -249
- package/dist/DmrPlot-R2N534FS.js +0 -642
- package/dist/GB-DY6XWOJE.js +0 -1356
- package/dist/GB-DY6XWOJE.js.map +0 -7
- package/dist/GSEA-3TB3PYEV.js +0 -846
- package/dist/GeneExpInput-VWCPHOVO.js +0 -367
- package/dist/HicApp-F2MY3NXP.js +0 -2250
- package/dist/IDCViewer-PT7IV6T2.js +0 -10799
- package/dist/IDCViewer-PT7IV6T2.js.map +0 -7
- package/dist/NumBinaryEditor-AL2NWII2.js +0 -271
- package/dist/NumBinaryEditor.unit.spec-NFRJHFNX.js +0 -286
- package/dist/NumContEditor-CTFJVIHU.js +0 -109
- package/dist/NumContEditor.unit.spec-FXGGCMTD.js +0 -169
- package/dist/NumCustomBinEditor-JFIJ2X6E.js +0 -38
- package/dist/NumCustomBinEditor.unit.spec-ZKIZXS53.js +0 -284
- package/dist/NumDiscreteEditor-E7SPHF55.js +0 -179
- package/dist/NumDiscreteEditor.unit.spec-QKKRZJMU.js +0 -202
- package/dist/NumRegularBinEditor-JSLTZIAQ.js +0 -38
- package/dist/NumRegularBinEditor.unit.spec-W73BA6L4.js +0 -227
- package/dist/NumSplineEditor-ZEXYGKKF.js +0 -198
- package/dist/NumSplineEditor.unit.spec-EHKI4CY7.js +0 -199
- package/dist/NumericDensity-ZXM6TB33.js +0 -38
- package/dist/NumericDensity.unit.spec-PUFRE5XA.js +0 -221
- package/dist/NumericHandler-73TUDM3R.js +0 -39
- package/dist/NumericHandler.unit.spec-EITBD47U.js +0 -219
- package/dist/ProteomeInput-QICOUSRW.js +0 -395
- package/dist/RunChart2-4JYV2Z7B.js +0 -758
- package/dist/SC-77HA6SBW.js +0 -1120
- package/dist/Volcano-3546I4MG.js +0 -1385
- package/dist/WSIViewer-DQAXX7QJ.js +0 -48562
- package/dist/WsiSamplesPlot-AGOLPLK3.js +0 -165
- package/dist/adSandbox-ZE5QOTN5.js +0 -38
- package/dist/animatedBubbleChart-ILMDNAVK.js +0 -555
- package/dist/app-JBFRJ5OO.js +0 -49
- package/dist/app-YVNRAZWU.js +0 -37
- package/dist/bam-A2PVAF3J.js +0 -860
- package/dist/barchart-2XQ7F6LT.js +0 -47
- package/dist/barchart.data-6XLK7D63.js +0 -22
- package/dist/barchart.events-DKJDKSPN.js +0 -47
- package/dist/barchart.integration.spec-UTTCQJRL.js +0 -2196
- package/dist/barchart2-2FRVUVJG.js +0 -314
- package/dist/bars.renderer-57KSYAAT.js +0 -12
- package/dist/block-3KOPYQ25.js +0 -6255
- package/dist/block.init-3KLLFGGV.js +0 -38
- package/dist/block.mds.expressionrank-XU3MBIOX.js +0 -359
- package/dist/block.mds.geneboxplot-VQTBL7T4.js +0 -828
- package/dist/block.mds.junction-IYWWRIJD.js +0 -1545
- package/dist/block.mds.svcnv-BMY5DCAM.js +0 -6801
- package/dist/block.svg-AT4GYQHX.js +0 -164
- package/dist/block.tk.aicheck-RANOFGDZ.js +0 -283
- package/dist/block.tk.ase-CBWJA3RN.js +0 -365
- package/dist/block.tk.bam-D7JBRNFQ.js +0 -1906
- package/dist/block.tk.bedgraphdot-IEHNIGVI.js +0 -384
- package/dist/block.tk.bigwig.ui-3SAXUJU4.js +0 -212
- package/dist/block.tk.hicstraw-R5EHQFGM.js +0 -823
- package/dist/block.tk.junction-JFCEXZZC.js +0 -2364
- package/dist/block.tk.junction.textmatrixui-4V7MV6TD.js +0 -199
- package/dist/block.tk.ld-LP4DIHAJ.js +0 -99
- package/dist/block.tk.menu-FTVZU2HA.js +0 -1029
- package/dist/block.tk.pgv-CRAMVKU4.js +0 -944
- package/dist/brainImaging-DXLK5XZ6.js +0 -423
- package/dist/brainRegions-AMSXQT3T.js +0 -221
- package/dist/bubbleHeatmap-SXBARILL.js +0 -383
- package/dist/chunk-23AEAG37.js +0 -314
- package/dist/chunk-2AHDWWQO.js +0 -276
- package/dist/chunk-2OJ577BB.js +0 -299
- package/dist/chunk-433DTQ6C.js +0 -26
- package/dist/chunk-46CPDZSW.js +0 -617
- package/dist/chunk-47EYZQA7.js +0 -98
- package/dist/chunk-4M22UIJQ.js +0 -2327
- package/dist/chunk-4YDERN37.js +0 -194
- package/dist/chunk-5ERYRSVV.js +0 -1825
- package/dist/chunk-6W6UMGAV.js +0 -230
- package/dist/chunk-6Z4XHMZV.js +0 -54
- package/dist/chunk-7P4DUYAQ.js +0 -1245
- package/dist/chunk-7YWPWCHD.js +0 -448
- package/dist/chunk-7Z6E3NA5.js +0 -787
- package/dist/chunk-AC3RAKUI.js +0 -102
- package/dist/chunk-BKPDYW5T.js +0 -177
- package/dist/chunk-BSOB3BVG.js +0 -217
- package/dist/chunk-CJJA6RVM.js +0 -254
- package/dist/chunk-CUXOQIUA.js +0 -1102
- package/dist/chunk-D5ZYSW45.js +0 -216
- package/dist/chunk-DA6RR5IR.js +0 -170
- package/dist/chunk-DD6KDZVR.js +0 -302
- package/dist/chunk-DI5ULDWN.js +0 -54
- package/dist/chunk-DXM5IMGV.js +0 -446
- package/dist/chunk-FYY3T565.js +0 -188
- package/dist/chunk-FYY3T565.js.map +0 -7
- package/dist/chunk-GFETCJ7S.js +0 -176
- package/dist/chunk-H42SJNXA.js +0 -1535
- package/dist/chunk-H42SJNXA.js.map +0 -7
- package/dist/chunk-HCNF7EFT.js +0 -292
- package/dist/chunk-I62GOCNI.js +0 -31
- package/dist/chunk-IBYOP2FV.js +0 -2833
- package/dist/chunk-JD2ECQ3Z.js +0 -2681
- package/dist/chunk-JF47NF5G.js +0 -236
- package/dist/chunk-JHZK6IDA.js +0 -20904
- package/dist/chunk-JHZK6IDA.js.map +0 -7
- package/dist/chunk-JOA4KJTM.js +0 -222
- package/dist/chunk-JT7HC65V.js +0 -556
- package/dist/chunk-K6AW4GFM.js +0 -37
- package/dist/chunk-K7QY24X2.js +0 -1223
- package/dist/chunk-KOLVLBMI.js +0 -100
- package/dist/chunk-KQ6EF3FG.js +0 -448
- package/dist/chunk-LBWKMNVU.js +0 -129
- package/dist/chunk-LFGIMCUD.js +0 -55
- package/dist/chunk-LKB3DITY.js +0 -343
- package/dist/chunk-LQJMCE7G.js +0 -467
- package/dist/chunk-M2PPUO4E.js +0 -315
- package/dist/chunk-M2PPUO4E.js.map +0 -7
- package/dist/chunk-MCXQL4W2.js +0 -226
- package/dist/chunk-MCXQL4W2.js.map +0 -7
- package/dist/chunk-MLYSQG3C.js +0 -833
- package/dist/chunk-MNIBZTQE.js +0 -146
- package/dist/chunk-MYZJUT2H.js +0 -272
- package/dist/chunk-NOCLG6IN.js +0 -5070
- package/dist/chunk-NVRLD4TF.js +0 -2786
- package/dist/chunk-NZCX4A7X.js +0 -14
- package/dist/chunk-OVHCUTQM.js +0 -102
- package/dist/chunk-P3NKHTNT.js +0 -34
- package/dist/chunk-PFOCEOVT.js +0 -477
- package/dist/chunk-PJSOYF5U.js +0 -158
- package/dist/chunk-PK5HXJ3S.js +0 -272
- package/dist/chunk-Q555GFBW.js +0 -1942
- package/dist/chunk-QAVZUWY3.js +0 -399
- package/dist/chunk-QOAUM6UV.js +0 -148
- package/dist/chunk-QOEPKNVD.js +0 -185
- package/dist/chunk-QXPJLSAD.js +0 -4284
- package/dist/chunk-QZLP27O6.js +0 -50
- package/dist/chunk-SENZWOCC.js +0 -203
- package/dist/chunk-SFIX7XVT.js +0 -514
- package/dist/chunk-SJWAMUL5.js +0 -117
- package/dist/chunk-SOTB4FRE.js +0 -2098
- package/dist/chunk-SOTB4FRE.js.map +0 -7
- package/dist/chunk-TJYRBEBK.js +0 -2878
- package/dist/chunk-TJYRBEBK.js.map +0 -7
- package/dist/chunk-U3CMLIGB.js +0 -6364
- package/dist/chunk-UF6ZP6UR.js +0 -381
- package/dist/chunk-UN3O2MNB.js +0 -375
- package/dist/chunk-UVWUP6N7.js +0 -1275
- package/dist/chunk-UYEJ5DEZ.js +0 -142
- package/dist/chunk-V2ET64EJ.js +0 -119
- package/dist/chunk-WQEGWR63.js +0 -102
- package/dist/chunk-WYSEBR5S.js +0 -58
- package/dist/chunk-XB6F5OUB.js +0 -386
- package/dist/chunk-XVYSEXFV.js +0 -368
- package/dist/chunk-YGKVY5IU.js +0 -480
- package/dist/chunk-ZPXSPJV2.js +0 -263
- package/dist/chunk-ZRSJVACE.js +0 -1500
- package/dist/chunk-ZRSJVACE.js.map +0 -7
- package/dist/condition-YCPNILTV.js +0 -332
- package/dist/controls-RW5MWSLN.js +0 -41
- package/dist/controls.config-MP3CSYR4.js +0 -39
- package/dist/correlation-7AQRU4YR.js +0 -102
- package/dist/cuminc-WYLKIOXR.js +0 -1149
- package/dist/cuminc.integration.spec-MSAWDLD7.js +0 -678
- package/dist/customdata.inputui-YU4IQJOV.js +0 -289
- package/dist/dataDownload-72DIPZ45.js +0 -330
- package/dist/dataDownload.integration.spec-HRLMWQN7.js +0 -193
- package/dist/databrowser.ui-3PE25HK4.js +0 -433
- package/dist/dictionary-Y3ICL4AE.js +0 -118
- package/dist/dnaMethylation-SVGDW64U.js +0 -38
- package/dist/dnaMethylation.integration.spec-B7GLAFZI.js +0 -203
- package/dist/dofetch-42KOXNPF.js +0 -51
- package/dist/e2pca-CLFGEFJH.js +0 -350
- package/dist/ep-PUHV2DMO.js +0 -1256
- package/dist/expclust.gdc.spec-N7YDJAOZ.js +0 -307
- package/dist/facet-JFFJJCNT.js +0 -521
- package/dist/forms2-XZAWW3RN.js +0 -539
- package/dist/gb-SQJ5PWOH.js +0 -88
- package/dist/geneExpClustering-EG2BLMQX.js +0 -249
- package/dist/geneExpression-J42BGP3B.js +0 -38
- package/dist/geneExpression-QRK3LNMV.js +0 -313
- package/dist/geneExpression.unit.spec-X7HVIFZA.js +0 -102
- package/dist/geneORA-SVBPO66K.js +0 -278
- package/dist/geneRanking-HNMMLZIX.js +0 -553
- package/dist/geneVariant-RVQKNVQO.js +0 -39
- package/dist/geneVariant-SO5FEJUZ.js +0 -41
- package/dist/geneVariant.integration.spec-DOMX4GMP.js +0 -198
- package/dist/genefusion.ui-QS7AG46F.js +0 -309
- package/dist/geneset-JKOX3VIW.js +0 -208
- package/dist/genomeBrowser.spec-IRSTT2OX.js +0 -281
- package/dist/grin2-G6DA4M7Q.js +0 -1095
- package/dist/grin2-G6DA4M7Q.js.map +0 -7
- package/dist/grin2-VZLCISPM.js +0 -75
- package/dist/hierCluster-6AW23EB5.js +0 -63
- package/dist/hierCluster-REXTCODR.js +0 -59
- package/dist/hierCluster.config-3Z3R66XH.js +0 -40
- package/dist/hierCluster.integration.spec-XE47Q64Z.js +0 -488
- package/dist/hierCluster.interactivity-2YJYYKVK.js +0 -54
- package/dist/hierCluster.renderers-LE7W2AL6.js +0 -21
- package/dist/imagePlot-WMZJJ5CJ.js +0 -163
- package/dist/importPlot-P35EGIJJ.js +0 -8
- package/dist/isoformExpression-3TFPEXB4.js +0 -40
- package/dist/isoformExpression.unit.spec-SPQFK3EA.js +0 -208
- package/dist/launch.adhoc-ZQSJBLMJ.js +0 -42
- package/dist/leftlabel.sample-SJRQ6LJ2.js +0 -264
- package/dist/legacyDataset-TNIIJABK.js +0 -119
- package/dist/lollipop-RXM6UBZ7.js +0 -171
- package/dist/maf-NWXJWBNF.js +0 -459
- package/dist/maftimeline-D7UENAP5.js +0 -593
- package/dist/matrix-77LNADX2.js +0 -63
- package/dist/matrix-YDOLKY6G.js +0 -58
- package/dist/matrix.cells-VEC5LEWV.js +0 -28
- package/dist/matrix.config-GTAAAUGQ.js +0 -41
- package/dist/matrix.data-T4GEX6ZH.js +0 -25
- package/dist/matrix.groups-7NWHHP5Q.js +0 -27
- package/dist/matrix.integration.spec-5GBTFRZA.js +0 -3072
- package/dist/matrix.interactivity-ONT6WCRU.js +0 -42
- package/dist/matrix.layout-LDXHGOHF.js +0 -44
- package/dist/matrix.legend-5MDW65HV.js +0 -22
- package/dist/matrix.renderers-OEPLQG3C.js +0 -38
- package/dist/matrix.serieses-4RX7TUQ7.js +0 -21
- package/dist/matrix.sort-UKMMECBZ.js +0 -27
- package/dist/matrix.sort.unit.spec-VWOXPVRE.js +0 -472
- package/dist/matrix.sorterUi-H64DDQIL.js +0 -18
- package/dist/matrix.sorterUi.unit.spec-DH4434FK.js +0 -342
- package/dist/mavb-ARUWOZES.js +0 -732
- package/dist/mds.fimo-ZEAE5BC3.js +0 -518
- package/dist/mds.samplescatterplot-C5EBKBVF.js +0 -1550
- package/dist/mds.survivalplot-RS7Z3J3Q.js +0 -483
- package/dist/numericDictTermCluster-CSQOV4TM.js +0 -65
- package/dist/oncomatrix-5UVM3KUA.js +0 -295
- package/dist/oncomatrix.spec-CU3EZCMO.js +0 -448
- package/dist/plot.2dvaf-JD27DSDS.js +0 -377
- package/dist/plot.app-NMPMG3S2.js +0 -41
- package/dist/plot.barplot-T4LPKFXW.js +0 -102
- package/dist/plot.boxplot-22ETOHNI.js +0 -152
- package/dist/plot.brainImaging-Q7S7KSHW.js +0 -51
- package/dist/plot.disco-NIPBER5N.js +0 -102
- package/dist/plot.dzi-DAX7GUTF.js +0 -33
- package/dist/plot.ssgq-7J6S35RW.js +0 -139
- package/dist/plot.vaf2cov-7EWFTD72.js +0 -259
- package/dist/plot.wsi-E45KZGKD.js +0 -36
- package/dist/polar2-LPT2XMD2.js +0 -231
- package/dist/profileForms-EYN2KLSY.js +0 -446
- package/dist/profilePlot-I7VQM3CH.js +0 -54
- package/dist/proteinView-JP5TF3ZK.js +0 -1568
- package/dist/qualitative-7X3ECW7Q.js +0 -43
- package/dist/radar2-V3FYBFAG.js +0 -326
- package/dist/radarFacility2-O6GQLBBN.js +0 -334
- package/dist/regression-CLG6NYVF.js +0 -56
- package/dist/regression.inputs-RLOBIRJH.js +0 -48
- package/dist/regression.inputs.term-ZKIP6KDO.js +0 -48
- package/dist/regression.inputs.values.table-2VD4AO5T.js +0 -45
- package/dist/regression.integration.spec-JEIMN7MS.js +0 -784
- package/dist/regression.results-FT6VSWGR.js +0 -40
- package/dist/regression.spec-V4S52JQM.js +0 -708
- package/dist/report-UPQFSI4D.js +0 -222
- package/dist/sampleScatter.spec-QSRF3STG.js +0 -202
- package/dist/sampleView-JIGZ7GTP.js +0 -48
- package/dist/samplelst-VJMYHVXI.js +0 -111
- package/dist/samplematrix-LO4QB37V.js +0 -2198
- package/dist/sc-4VZBGFZP.js +0 -86
- package/dist/scatter-LQECXZLB.js +0 -851
- package/dist/selectGenomeWithTklst-IJTCLRIN.js +0 -134
- package/dist/singleCellCellType-FJ53DRXD.js +0 -38
- package/dist/singleCellCellType.unit.spec-VOE4KY6L.js +0 -160
- package/dist/singleCellGeneExpression-RZE5UVL4.js +0 -38
- package/dist/singleCellGeneExpression.unit.spec-2DASF7PD.js +0 -153
- package/dist/singleCellPlot-Q5UNIW3M.js +0 -54
- package/dist/singlecell-N7F5KVIB.js +0 -1572
- package/dist/singlecell-TX5AQ4WM.js +0 -86
- package/dist/snp-S4O7SVDD.js +0 -38
- package/dist/snp.unit.spec-WSQMZSTE.js +0 -176
- package/dist/snplocus-Y2R5C4ZP.js +0 -208
- package/dist/spliceevent.a53ss.diagram-FGRQR73W.js +0 -151
- package/dist/spliceevent.exonskip.diagram-TVH44RNL.js +0 -277
- package/dist/spliceevent.exonskip.diagram-TVH44RNL.js.map +0 -7
- package/dist/spliceevent.noeventdiagram-G2CMYYE7.js +0 -460
- package/dist/ssGSEA-BH53XGEZ.js +0 -38
- package/dist/ssGSEA.unit.spec-BYIVB7FZ.js +0 -88
- package/dist/summarizeCnvGeneexp-IZNOX4E7.js +0 -163
- package/dist/summarizeGeneexpSurvival-DJZ2R24E.js +0 -114
- package/dist/summarizeMutationCnv-CO2TVWOI.js +0 -164
- package/dist/summarizeMutationDiagnosis-EUZXCSZP.js +0 -40
- package/dist/summarizeMutationSurvival-CXFT3HWL.js +0 -99
- package/dist/summary-JHZCDE35.js +0 -49
- package/dist/summary.integration.spec-WBEYSDCA.js +0 -414
- package/dist/summaryInput-JVH3R54R.js +0 -235
- package/dist/sunburst-CTJTXHSA.js +0 -284
- package/dist/survival-DLLVUG2P.js +0 -46
- package/dist/survival-XFVYNI6S.js +0 -58
- package/dist/survival.integration.spec-KVXHHAA3.js +0 -915
- package/dist/svgraph-ACEBMDIX.js +0 -1387
- package/dist/svmr-IQEDSZ2C.js +0 -3842
- package/dist/table-2IF6UGHR.js +0 -200
- package/dist/termCollection-JOLQJYJ3.js +0 -38
- package/dist/termCollection-PSXFFR32.js +0 -179
- package/dist/termCollection.unit.spec-4SOZP4FY.js +0 -208
- package/dist/tk-AAIHEQO6.js +0 -46
- package/dist/tk-IRXFL5NV.js +0 -997
- package/dist/tk-IRXFL5NV.js.map +0 -7
- package/dist/tp.ui-6STLQEXX.js +0 -1459
- package/dist/tvs.dt-FSA7KPSQ.js +0 -39
- package/dist/tvs.dtcnv.categorical-FSPGH7DP.js +0 -40
- package/dist/tvs.dtcnv.continuous-T4ZMSDB4.js +0 -72
- package/dist/tvs.dtfusion-UL3YENUM.js +0 -40
- package/dist/tvs.dtitd-XJOSZUWG.js +0 -40
- package/dist/tvs.dtsnvindel-5TPUT5RJ.js +0 -40
- package/dist/tvs.dtsv-OTNHXYOJ.js +0 -40
- package/dist/tvs.numeric-KYAU5OV3.js +0 -21
- package/dist/tvs.samplelst-FQKTAQZF.js +0 -104
- package/dist/tvs.termCollection-ZAPCUMUW.js +0 -159
- package/dist/violin-HEFFKPL5.js +0 -46
- package/dist/violin.integration.spec-774N4G5A.js +0 -1425
- package/dist/violin.interactivity-XNYJSK53.js +0 -38
- package/dist/violin.renderer-R74VSGRC.js +0 -40
- package/dist/vocabulary-OHMC6NWL.js +0 -41
- /package/dist/{2dmaf-HV22W5N3.js.map → 2dmaf-R3PFZNRN.js.map} +0 -0
- /package/dist/{AIProjectAdmin-7QGTPN3B.js.map → AIProjectAdmin-DM3KG6SR.js.map} +0 -0
- /package/dist/{AppHeader-NOKET4YE.js.map → AppHeader-6DZQ6YZX.js.map} +0 -0
- /package/dist/{BoxPlot-SPG66F4C.js.map → BoxPlot-76NINVX4.js.map} +0 -0
- /package/dist/{CorrelationVolcano-3LEMTFXP.js.map → CorrelationVolcano-U5UMJNH5.js.map} +0 -0
- /package/dist/{DE-WCCADMXA.js.map → DE-AXNYWIQK.js.map} +0 -0
- /package/dist/{DEinput-IZNPYPKH.js.map → DEinput-JH6YY6LS.js.map} +0 -0
- /package/dist/{DifferentialAnalysis-SDZXIUXP.js.map → DifferentialAnalysis-25P4CGIY.js.map} +0 -0
- /package/dist/{Disco.UI-RVUOPT6Y.js.map → Disco.UI-C7CZINUQ.js.map} +0 -0
- /package/dist/{DmrPlot-R2N534FS.js.map → DmrPlot-WROR4ENM.js.map} +0 -0
- /package/dist/{GSEA-3TB3PYEV.js.map → GSEA-Y5R2THIJ.js.map} +0 -0
- /package/dist/{GeneExpInput-VWCPHOVO.js.map → GeneExpInput-JDU6EI7K.js.map} +0 -0
- /package/dist/{HicApp-F2MY3NXP.js.map → HicApp-UNIJLH4B.js.map} +0 -0
- /package/dist/{NumBinaryEditor-AL2NWII2.js.map → NumBinaryEditor-WMN2GGO4.js.map} +0 -0
- /package/dist/{NumBinaryEditor.unit.spec-NFRJHFNX.js.map → NumBinaryEditor.unit.spec-TAMXV6SE.js.map} +0 -0
- /package/dist/{NumContEditor-CTFJVIHU.js.map → NumContEditor-XYIOJY4E.js.map} +0 -0
- /package/dist/{NumContEditor.unit.spec-FXGGCMTD.js.map → NumContEditor.unit.spec-WDZ75BHO.js.map} +0 -0
- /package/dist/{NumCustomBinEditor-JFIJ2X6E.js.map → NumCustomBinEditor-5SY3C4TY.js.map} +0 -0
- /package/dist/{NumCustomBinEditor.unit.spec-ZKIZXS53.js.map → NumCustomBinEditor.unit.spec-XHTAIXR3.js.map} +0 -0
- /package/dist/{NumDiscreteEditor-E7SPHF55.js.map → NumDiscreteEditor-NRDRX4FD.js.map} +0 -0
- /package/dist/{NumDiscreteEditor.unit.spec-QKKRZJMU.js.map → NumDiscreteEditor.unit.spec-2CJW7OAT.js.map} +0 -0
- /package/dist/{NumRegularBinEditor-JSLTZIAQ.js.map → NumRegularBinEditor-DUDVTNDC.js.map} +0 -0
- /package/dist/{NumRegularBinEditor.unit.spec-W73BA6L4.js.map → NumRegularBinEditor.unit.spec-H3GNQHMN.js.map} +0 -0
- /package/dist/{NumSplineEditor-ZEXYGKKF.js.map → NumSplineEditor-7Q4AC7KH.js.map} +0 -0
- /package/dist/{NumSplineEditor.unit.spec-EHKI4CY7.js.map → NumSplineEditor.unit.spec-YRZK5PH5.js.map} +0 -0
- /package/dist/{NumericDensity-ZXM6TB33.js.map → NumericDensity-NTNWUESG.js.map} +0 -0
- /package/dist/{NumericDensity.unit.spec-PUFRE5XA.js.map → NumericDensity.unit.spec-5I5U6T6P.js.map} +0 -0
- /package/dist/{NumericHandler-73TUDM3R.js.map → NumericHandler-MEW2KMPX.js.map} +0 -0
- /package/dist/{NumericHandler.unit.spec-EITBD47U.js.map → NumericHandler.unit.spec-JFX4BPRG.js.map} +0 -0
- /package/dist/{ProteomeInput-QICOUSRW.js.map → ProteomeInput-K2ZHR2U6.js.map} +0 -0
- /package/dist/{RunChart2-4JYV2Z7B.js.map → RunChart2-BEBDU7RC.js.map} +0 -0
- /package/dist/{SC-77HA6SBW.js.map → SC-XCBFJVUJ.js.map} +0 -0
- /package/dist/{Volcano-3546I4MG.js.map → Volcano-4Y4TP3UX.js.map} +0 -0
- /package/dist/{WSIViewer-DQAXX7QJ.js.map → WSIViewer-ZLQU62PD.js.map} +0 -0
- /package/dist/{WsiSamplesPlot-AGOLPLK3.js.map → WsiSamplesPlot-JMBSITOM.js.map} +0 -0
- /package/dist/{adSandbox-ZE5QOTN5.js.map → adSandbox-664IRCRL.js.map} +0 -0
- /package/dist/{animatedBubbleChart-ILMDNAVK.js.map → animatedBubbleChart-TX7NW34K.js.map} +0 -0
- /package/dist/{app-JBFRJ5OO.js.map → app-63WJ3BMP.js.map} +0 -0
- /package/dist/{app-YVNRAZWU.js.map → app-77FIZHCG.js.map} +0 -0
- /package/dist/{bam-A2PVAF3J.js.map → bam-IETNVAYD.js.map} +0 -0
- /package/dist/{barchart-2XQ7F6LT.js.map → barchart-YUVXJNH4.js.map} +0 -0
- /package/dist/{barchart.data-6XLK7D63.js.map → barchart.data-P4EIQXGE.js.map} +0 -0
- /package/dist/{barchart.events-DKJDKSPN.js.map → barchart.events-JPVCLTIG.js.map} +0 -0
- /package/dist/{barchart.integration.spec-UTTCQJRL.js.map → barchart.integration.spec-ZH7DEQI2.js.map} +0 -0
- /package/dist/{barchart2-2FRVUVJG.js.map → barchart2-XO2FG76J.js.map} +0 -0
- /package/dist/{bars.renderer-57KSYAAT.js.map → bars.renderer-AUIWUJDH.js.map} +0 -0
- /package/dist/{block-3KOPYQ25.js.map → block-NBTCOT3H.js.map} +0 -0
- /package/dist/{block.init-3KLLFGGV.js.map → block.init-X7Y2EEVR.js.map} +0 -0
- /package/dist/{block.mds.expressionrank-XU3MBIOX.js.map → block.mds.expressionrank-BIAOZIZ3.js.map} +0 -0
- /package/dist/{block.mds.geneboxplot-VQTBL7T4.js.map → block.mds.geneboxplot-CNICDVLK.js.map} +0 -0
- /package/dist/{block.mds.junction-IYWWRIJD.js.map → block.mds.junction-PQXCTSUI.js.map} +0 -0
- /package/dist/{block.mds.svcnv-BMY5DCAM.js.map → block.mds.svcnv-32KMVTCT.js.map} +0 -0
- /package/dist/{block.svg-AT4GYQHX.js.map → block.svg-LRTOYQK2.js.map} +0 -0
- /package/dist/{block.tk.aicheck-RANOFGDZ.js.map → block.tk.aicheck-HDV7ZIUD.js.map} +0 -0
- /package/dist/{block.tk.ase-CBWJA3RN.js.map → block.tk.ase-JIDWKMYI.js.map} +0 -0
- /package/dist/{block.tk.bam-D7JBRNFQ.js.map → block.tk.bam-5X3OS5HB.js.map} +0 -0
- /package/dist/{block.tk.bedgraphdot-IEHNIGVI.js.map → block.tk.bedgraphdot-T7JX7YQL.js.map} +0 -0
- /package/dist/{block.tk.bigwig.ui-3SAXUJU4.js.map → block.tk.bigwig.ui-OSAYEBAE.js.map} +0 -0
- /package/dist/{block.tk.hicstraw-R5EHQFGM.js.map → block.tk.hicstraw-DEY3VQFK.js.map} +0 -0
- /package/dist/{block.tk.junction-JFCEXZZC.js.map → block.tk.junction-7UAFEZSJ.js.map} +0 -0
- /package/dist/{block.tk.junction.textmatrixui-4V7MV6TD.js.map → block.tk.junction.textmatrixui-27LHS33U.js.map} +0 -0
- /package/dist/{block.tk.ld-LP4DIHAJ.js.map → block.tk.ld-DF2PI7OO.js.map} +0 -0
- /package/dist/{block.tk.menu-FTVZU2HA.js.map → block.tk.menu-L2D5KBIV.js.map} +0 -0
- /package/dist/{block.tk.pgv-CRAMVKU4.js.map → block.tk.pgv-QO56SKBV.js.map} +0 -0
- /package/dist/{brainImaging-DXLK5XZ6.js.map → brainImaging-NIPQWFWO.js.map} +0 -0
- /package/dist/{brainRegions-AMSXQT3T.js.map → brainRegions-ZNZ2WHSU.js.map} +0 -0
- /package/dist/{bubbleHeatmap-SXBARILL.js.map → bubbleHeatmap-ERWNEKZB.js.map} +0 -0
- /package/dist/{chunk-2OJ577BB.js.map → chunk-2GYWFQML.js.map} +0 -0
- /package/dist/{chunk-QZLP27O6.js.map → chunk-2HYJ4GDH.js.map} +0 -0
- /package/dist/{chunk-MYZJUT2H.js.map → chunk-2MG6XE6R.js.map} +0 -0
- /package/dist/{chunk-DI5ULDWN.js.map → chunk-33K5PA52.js.map} +0 -0
- /package/dist/{chunk-433DTQ6C.js.map → chunk-37XDBPOP.js.map} +0 -0
- /package/dist/{chunk-WYSEBR5S.js.map → chunk-3EWB3246.js.map} +0 -0
- /package/dist/{chunk-KOLVLBMI.js.map → chunk-3RSKOPIY.js.map} +0 -0
- /package/dist/{chunk-CUXOQIUA.js.map → chunk-4DPVT4NE.js.map} +0 -0
- /package/dist/{chunk-47EYZQA7.js.map → chunk-4IH7DORZ.js.map} +0 -0
- /package/dist/{chunk-QAVZUWY3.js.map → chunk-4QNBFIIR.js.map} +0 -0
- /package/dist/{chunk-BSOB3BVG.js.map → chunk-4STKL6SR.js.map} +0 -0
- /package/dist/{chunk-P3NKHTNT.js.map → chunk-4TZIVSL5.js.map} +0 -0
- /package/dist/{chunk-LQJMCE7G.js.map → chunk-5ABGFJSP.js.map} +0 -0
- /package/dist/{chunk-DD6KDZVR.js.map → chunk-5AZNP47R.js.map} +0 -0
- /package/dist/{chunk-NOCLG6IN.js.map → chunk-5RL2OHXX.js.map} +0 -0
- /package/dist/{chunk-WQEGWR63.js.map → chunk-6BB43SIB.js.map} +0 -0
- /package/dist/{chunk-2AHDWWQO.js.map → chunk-7OHRR2IE.js.map} +0 -0
- /package/dist/{chunk-NZCX4A7X.js.map → chunk-ASATD4T7.js.map} +0 -0
- /package/dist/{chunk-K7QY24X2.js.map → chunk-AZ47Q7BX.js.map} +0 -0
- /package/dist/{chunk-JF47NF5G.js.map → chunk-B5B3LZB3.js.map} +0 -0
- /package/dist/{chunk-JD2ECQ3Z.js.map → chunk-BHGISFCA.js.map} +0 -0
- /package/dist/{chunk-NVRLD4TF.js.map → chunk-BMBOZ64T.js.map} +0 -0
- /package/dist/{chunk-D5ZYSW45.js.map → chunk-BOZJHPJP.js.map} +0 -0
- /package/dist/{chunk-4YDERN37.js.map → chunk-CDD7LYJM.js.map} +0 -0
- /package/dist/{chunk-4M22UIJQ.js.map → chunk-CTQ3IUCA.js.map} +0 -0
- /package/dist/{chunk-PJSOYF5U.js.map → chunk-D7TID3HR.js.map} +0 -0
- /package/dist/{chunk-LFGIMCUD.js.map → chunk-E55LLYRX.js.map} +0 -0
- /package/dist/{chunk-XB6F5OUB.js.map → chunk-ESGXULRH.js.map} +0 -0
- /package/dist/{chunk-SJWAMUL5.js.map → chunk-EZ4LZ6ZT.js.map} +0 -0
- /package/dist/{chunk-QXPJLSAD.js.map → chunk-F3SJTVP5.js.map} +0 -0
- /package/dist/{chunk-JOA4KJTM.js.map → chunk-F5IXNJO7.js.map} +0 -0
- /package/dist/{chunk-KQ6EF3FG.js.map → chunk-FJYECRHW.js.map} +0 -0
- /package/dist/{chunk-MLYSQG3C.js.map → chunk-FPNRUQOU.js.map} +0 -0
- /package/dist/{chunk-Q555GFBW.js.map → chunk-G5S4R77D.js.map} +0 -0
- /package/dist/{chunk-DA6RR5IR.js.map → chunk-G764NXQN.js.map} +0 -0
- /package/dist/{chunk-QOAUM6UV.js.map → chunk-GAPI4MML.js.map} +0 -0
- /package/dist/{chunk-PK5HXJ3S.js.map → chunk-HLUZOZXJ.js.map} +0 -0
- /package/dist/{chunk-UN3O2MNB.js.map → chunk-HOKIK2FR.js.map} +0 -0
- /package/dist/{chunk-LBWKMNVU.js.map → chunk-KLGL6XZD.js.map} +0 -0
- /package/dist/{chunk-YGKVY5IU.js.map → chunk-L7IRWUKT.js.map} +0 -0
- /package/dist/{chunk-23AEAG37.js.map → chunk-LFCYMSVA.js.map} +0 -0
- /package/dist/{chunk-46CPDZSW.js.map → chunk-LX6G7HJJ.js.map} +0 -0
- /package/dist/{chunk-UYEJ5DEZ.js.map → chunk-M2G5R4WB.js.map} +0 -0
- /package/dist/{chunk-AC3RAKUI.js.map → chunk-M4TTGGT4.js.map} +0 -0
- /package/dist/{chunk-5ERYRSVV.js.map → chunk-M6EF3WVV.js.map} +0 -0
- /package/dist/{chunk-MNIBZTQE.js.map → chunk-M6KHT3MM.js.map} +0 -0
- /package/dist/{chunk-6W6UMGAV.js.map → chunk-MCZFHWIR.js.map} +0 -0
- /package/dist/{chunk-7YWPWCHD.js.map → chunk-MFQACKYU.js.map} +0 -0
- /package/dist/{chunk-LKB3DITY.js.map → chunk-MVGAGTM3.js.map} +0 -0
- /package/dist/{chunk-V2ET64EJ.js.map → chunk-NELOT3NJ.js.map} +0 -0
- /package/dist/{chunk-6Z4XHMZV.js.map → chunk-NRKMXULC.js.map} +0 -0
- /package/dist/{chunk-BKPDYW5T.js.map → chunk-NYRZNRG5.js.map} +0 -0
- /package/dist/{chunk-XVYSEXFV.js.map → chunk-ONPKE6DC.js.map} +0 -0
- /package/dist/{chunk-JT7HC65V.js.map → chunk-OXVLWQ6M.js.map} +0 -0
- /package/dist/{chunk-SENZWOCC.js.map → chunk-PFRWS4CR.js.map} +0 -0
- /package/dist/{chunk-UVWUP6N7.js.map → chunk-PJKQUXEN.js.map} +0 -0
- /package/dist/{chunk-U3CMLIGB.js.map → chunk-Q2L44HK3.js.map} +0 -0
- /package/dist/{chunk-7P4DUYAQ.js.map → chunk-QNHT74XC.js.map} +0 -0
- /package/dist/{chunk-DXM5IMGV.js.map → chunk-RKO6BL5N.js.map} +0 -0
- /package/dist/{chunk-CJJA6RVM.js.map → chunk-T25QNZHB.js.map} +0 -0
- /package/dist/{chunk-I62GOCNI.js.map → chunk-U7TBYVIQ.js.map} +0 -0
- /package/dist/{chunk-UF6ZP6UR.js.map → chunk-UGRQXBL4.js.map} +0 -0
- /package/dist/{chunk-PFOCEOVT.js.map → chunk-USFSHSCJ.js.map} +0 -0
- /package/dist/{chunk-IBYOP2FV.js.map → chunk-VJ6UFVGC.js.map} +0 -0
- /package/dist/{chunk-HCNF7EFT.js.map → chunk-W3WPPOXH.js.map} +0 -0
- /package/dist/{chunk-ZPXSPJV2.js.map → chunk-WFCSOTBO.js.map} +0 -0
- /package/dist/{chunk-QOEPKNVD.js.map → chunk-WHP4AKDM.js.map} +0 -0
- /package/dist/{chunk-OVHCUTQM.js.map → chunk-WZ2L57MB.js.map} +0 -0
- /package/dist/{chunk-7Z6E3NA5.js.map → chunk-XPY6AWXO.js.map} +0 -0
- /package/dist/{chunk-K6AW4GFM.js.map → chunk-Y4UAKFWC.js.map} +0 -0
- /package/dist/{chunk-SFIX7XVT.js.map → chunk-YQBS2ZCK.js.map} +0 -0
- /package/dist/{chunk-GFETCJ7S.js.map → chunk-ZTHM2TKP.js.map} +0 -0
- /package/dist/{condition-YCPNILTV.js.map → condition-2PASYSUC.js.map} +0 -0
- /package/dist/{controls-RW5MWSLN.js.map → controls-5IMJ6K5L.js.map} +0 -0
- /package/dist/{controls.config-MP3CSYR4.js.map → controls.config-P5PG2DHW.js.map} +0 -0
- /package/dist/{correlation-7AQRU4YR.js.map → correlation-U3EDLNHR.js.map} +0 -0
- /package/dist/{cuminc-WYLKIOXR.js.map → cuminc-2HUFEROK.js.map} +0 -0
- /package/dist/{cuminc.integration.spec-MSAWDLD7.js.map → cuminc.integration.spec-WFWAPTDA.js.map} +0 -0
- /package/dist/{customdata.inputui-YU4IQJOV.js.map → customdata.inputui-ZHWNEPFH.js.map} +0 -0
- /package/dist/{dataDownload-72DIPZ45.js.map → dataDownload-VBSJBKMP.js.map} +0 -0
- /package/dist/{dataDownload.integration.spec-HRLMWQN7.js.map → dataDownload.integration.spec-LUFSETOP.js.map} +0 -0
- /package/dist/{databrowser.ui-3PE25HK4.js.map → databrowser.ui-6H2KMSTJ.js.map} +0 -0
- /package/dist/{dictionary-Y3ICL4AE.js.map → dictionary-V37LXFIP.js.map} +0 -0
- /package/dist/{dnaMethylation-SVGDW64U.js.map → dnaMethylation-OIZMHMLK.js.map} +0 -0
- /package/dist/{dnaMethylation.integration.spec-B7GLAFZI.js.map → dnaMethylation.integration.spec-CWPTJ74H.js.map} +0 -0
- /package/dist/{dofetch-42KOXNPF.js.map → dofetch-IWPZQB5N.js.map} +0 -0
- /package/dist/{e2pca-CLFGEFJH.js.map → e2pca-7SLIAGYW.js.map} +0 -0
- /package/dist/{ep-PUHV2DMO.js.map → ep-7L6KF6K4.js.map} +0 -0
- /package/dist/{expclust.gdc.spec-N7YDJAOZ.js.map → expclust.gdc.spec-JT452Q3G.js.map} +0 -0
- /package/dist/{facet-JFFJJCNT.js.map → facet-CXOUU5AS.js.map} +0 -0
- /package/dist/{forms2-XZAWW3RN.js.map → forms2-VPNCLQOY.js.map} +0 -0
- /package/dist/{gb-SQJ5PWOH.js.map → gb-P4VRXRED.js.map} +0 -0
- /package/dist/{geneExpClustering-EG2BLMQX.js.map → geneExpClustering-FQTCKRJJ.js.map} +0 -0
- /package/dist/{geneExpression-QRK3LNMV.js.map → geneExpression-BHO5326K.js.map} +0 -0
- /package/dist/{geneExpression-J42BGP3B.js.map → geneExpression-ZMERB64E.js.map} +0 -0
- /package/dist/{geneExpression.unit.spec-X7HVIFZA.js.map → geneExpression.unit.spec-CNVHZWNG.js.map} +0 -0
- /package/dist/{geneORA-SVBPO66K.js.map → geneORA-FXVUCXGX.js.map} +0 -0
- /package/dist/{geneRanking-HNMMLZIX.js.map → geneRanking-SFK4UBKQ.js.map} +0 -0
- /package/dist/{geneVariant-RVQKNVQO.js.map → geneVariant-IYEHB4H7.js.map} +0 -0
- /package/dist/{geneVariant-SO5FEJUZ.js.map → geneVariant-LIRRLUFR.js.map} +0 -0
- /package/dist/{geneVariant.integration.spec-DOMX4GMP.js.map → geneVariant.integration.spec-Y2NPNTYX.js.map} +0 -0
- /package/dist/{genefusion.ui-QS7AG46F.js.map → genefusion.ui-L3HIJM3N.js.map} +0 -0
- /package/dist/{geneset-JKOX3VIW.js.map → geneset-A6VUFX63.js.map} +0 -0
- /package/dist/{genomeBrowser.spec-IRSTT2OX.js.map → genomeBrowser.spec-CB4HHHBN.js.map} +0 -0
- /package/dist/{grin2-VZLCISPM.js.map → grin2-FKBIMH5N.js.map} +0 -0
- /package/dist/{hierCluster-6AW23EB5.js.map → hierCluster-QFPRMHVA.js.map} +0 -0
- /package/dist/{hierCluster-REXTCODR.js.map → hierCluster-YWC3XYPV.js.map} +0 -0
- /package/dist/{hierCluster.config-3Z3R66XH.js.map → hierCluster.config-F7YYZNM3.js.map} +0 -0
- /package/dist/{hierCluster.integration.spec-XE47Q64Z.js.map → hierCluster.integration.spec-AF4L3YT6.js.map} +0 -0
- /package/dist/{hierCluster.interactivity-2YJYYKVK.js.map → hierCluster.interactivity-RPY74PK6.js.map} +0 -0
- /package/dist/{hierCluster.renderers-LE7W2AL6.js.map → hierCluster.renderers-LOKHZ3V2.js.map} +0 -0
- /package/dist/{imagePlot-WMZJJ5CJ.js.map → imagePlot-BBEXA754.js.map} +0 -0
- /package/dist/{importPlot-P35EGIJJ.js.map → importPlot-7QGANZGK.js.map} +0 -0
- /package/dist/{isoformExpression-3TFPEXB4.js.map → isoformExpression-4SLLCVFD.js.map} +0 -0
- /package/dist/{isoformExpression.unit.spec-SPQFK3EA.js.map → isoformExpression.unit.spec-GEL4JJ64.js.map} +0 -0
- /package/dist/{launch.adhoc-ZQSJBLMJ.js.map → launch.adhoc-LWLBQJS5.js.map} +0 -0
- /package/dist/{leftlabel.sample-SJRQ6LJ2.js.map → leftlabel.sample-RTEZOIH2.js.map} +0 -0
- /package/dist/{legacyDataset-TNIIJABK.js.map → legacyDataset-VLD7ZYWI.js.map} +0 -0
- /package/dist/{lollipop-RXM6UBZ7.js.map → lollipop-XKQK5QZU.js.map} +0 -0
- /package/dist/{maf-NWXJWBNF.js.map → maf-AZQPPWDO.js.map} +0 -0
- /package/dist/{maftimeline-D7UENAP5.js.map → maftimeline-7MSVYKQU.js.map} +0 -0
- /package/dist/{matrix-77LNADX2.js.map → matrix-BGLWC25D.js.map} +0 -0
- /package/dist/{matrix-YDOLKY6G.js.map → matrix-IQR5SRMK.js.map} +0 -0
- /package/dist/{matrix.cells-VEC5LEWV.js.map → matrix.cells-5C57NWOY.js.map} +0 -0
- /package/dist/{matrix.config-GTAAAUGQ.js.map → matrix.config-2DQXAN2E.js.map} +0 -0
- /package/dist/{matrix.data-T4GEX6ZH.js.map → matrix.data-ADCGF5H6.js.map} +0 -0
- /package/dist/{matrix.groups-7NWHHP5Q.js.map → matrix.groups-V4ITQ5F7.js.map} +0 -0
- /package/dist/{matrix.integration.spec-5GBTFRZA.js.map → matrix.integration.spec-IBNOO2WP.js.map} +0 -0
- /package/dist/{matrix.interactivity-ONT6WCRU.js.map → matrix.interactivity-JNELJFOV.js.map} +0 -0
- /package/dist/{matrix.layout-LDXHGOHF.js.map → matrix.layout-WBVIV6GR.js.map} +0 -0
- /package/dist/{matrix.legend-5MDW65HV.js.map → matrix.legend-YHOWPK77.js.map} +0 -0
- /package/dist/{matrix.renderers-OEPLQG3C.js.map → matrix.renderers-5BGVRR3M.js.map} +0 -0
- /package/dist/{matrix.serieses-4RX7TUQ7.js.map → matrix.serieses-2GZJOASZ.js.map} +0 -0
- /package/dist/{matrix.sort-UKMMECBZ.js.map → matrix.sort-WKIWPJKP.js.map} +0 -0
- /package/dist/{matrix.sort.unit.spec-VWOXPVRE.js.map → matrix.sort.unit.spec-L2E4D4AS.js.map} +0 -0
- /package/dist/{matrix.sorterUi-H64DDQIL.js.map → matrix.sorterUi-TEJWWJ64.js.map} +0 -0
- /package/dist/{matrix.sorterUi.unit.spec-DH4434FK.js.map → matrix.sorterUi.unit.spec-SHP7C4P7.js.map} +0 -0
- /package/dist/{mavb-ARUWOZES.js.map → mavb-4MXNYUEO.js.map} +0 -0
- /package/dist/{mds.fimo-ZEAE5BC3.js.map → mds.fimo-WHIJIBOI.js.map} +0 -0
- /package/dist/{mds.samplescatterplot-C5EBKBVF.js.map → mds.samplescatterplot-BRJ6NG2D.js.map} +0 -0
- /package/dist/{mds.survivalplot-RS7Z3J3Q.js.map → mds.survivalplot-OPCMB5PB.js.map} +0 -0
- /package/dist/{numericDictTermCluster-CSQOV4TM.js.map → numericDictTermCluster-7MIFOP2K.js.map} +0 -0
- /package/dist/{oncomatrix-5UVM3KUA.js.map → oncomatrix-BGG6BEUI.js.map} +0 -0
- /package/dist/{oncomatrix.spec-CU3EZCMO.js.map → oncomatrix.spec-LYQ4L4F3.js.map} +0 -0
- /package/dist/{plot.2dvaf-JD27DSDS.js.map → plot.2dvaf-6WVCP2ZI.js.map} +0 -0
- /package/dist/{plot.app-NMPMG3S2.js.map → plot.app-MLBP6WFP.js.map} +0 -0
- /package/dist/{plot.barplot-T4LPKFXW.js.map → plot.barplot-JEPRZSCU.js.map} +0 -0
- /package/dist/{plot.boxplot-22ETOHNI.js.map → plot.boxplot-GNFW42VM.js.map} +0 -0
- /package/dist/{plot.brainImaging-Q7S7KSHW.js.map → plot.brainImaging-5ACNSD45.js.map} +0 -0
- /package/dist/{plot.disco-NIPBER5N.js.map → plot.disco-Q2V2KKIH.js.map} +0 -0
- /package/dist/{plot.dzi-DAX7GUTF.js.map → plot.dzi-KVT6S7K7.js.map} +0 -0
- /package/dist/{plot.ssgq-7J6S35RW.js.map → plot.ssgq-4N3KFJQ2.js.map} +0 -0
- /package/dist/{plot.vaf2cov-7EWFTD72.js.map → plot.vaf2cov-ITRG5U43.js.map} +0 -0
- /package/dist/{plot.wsi-E45KZGKD.js.map → plot.wsi-26YZNU4V.js.map} +0 -0
- /package/dist/{polar2-LPT2XMD2.js.map → polar2-J7GVUK4X.js.map} +0 -0
- /package/dist/{profileForms-EYN2KLSY.js.map → profileForms-VXV2JLXU.js.map} +0 -0
- /package/dist/{profilePlot-I7VQM3CH.js.map → profilePlot-ZZYZK4SY.js.map} +0 -0
- /package/dist/{proteinView-JP5TF3ZK.js.map → proteinView-7KN532D3.js.map} +0 -0
- /package/dist/{qualitative-7X3ECW7Q.js.map → qualitative-MLRVLIAU.js.map} +0 -0
- /package/dist/{radar2-V3FYBFAG.js.map → radar2-WM2ZBOH3.js.map} +0 -0
- /package/dist/{radarFacility2-O6GQLBBN.js.map → radarFacility2-3SBR2JJ3.js.map} +0 -0
- /package/dist/{regression-CLG6NYVF.js.map → regression-WMRPQJW2.js.map} +0 -0
- /package/dist/{regression.inputs-RLOBIRJH.js.map → regression.inputs-VWZKSYNY.js.map} +0 -0
- /package/dist/{regression.inputs.term-ZKIP6KDO.js.map → regression.inputs.term-OWE6GWHM.js.map} +0 -0
- /package/dist/{regression.inputs.values.table-2VD4AO5T.js.map → regression.inputs.values.table-4INNZQI2.js.map} +0 -0
- /package/dist/{regression.integration.spec-JEIMN7MS.js.map → regression.integration.spec-XKQ2JOOT.js.map} +0 -0
- /package/dist/{regression.results-FT6VSWGR.js.map → regression.results-VZBYMBYC.js.map} +0 -0
- /package/dist/{regression.spec-V4S52JQM.js.map → regression.spec-DU3UTDCJ.js.map} +0 -0
- /package/dist/{sampleView-JIGZ7GTP.js.map → render-N5FOF247.js.map} +0 -0
- /package/dist/{report-UPQFSI4D.js.map → report-DW3OHB67.js.map} +0 -0
- /package/dist/{sampleScatter.spec-QSRF3STG.js.map → sampleScatter.spec-REFSK2V4.js.map} +0 -0
- /package/dist/{singleCellCellType-FJ53DRXD.js.map → sampleView-ICOT2R6O.js.map} +0 -0
- /package/dist/{samplelst-VJMYHVXI.js.map → samplelst-TJEVASYG.js.map} +0 -0
- /package/dist/{samplematrix-LO4QB37V.js.map → samplematrix-6DAWCXQ3.js.map} +0 -0
- /package/dist/{sc-4VZBGFZP.js.map → sc-53LNOB7N.js.map} +0 -0
- /package/dist/{scatter-LQECXZLB.js.map → scatter-DKYSS4DL.js.map} +0 -0
- /package/dist/{selectGenomeWithTklst-IJTCLRIN.js.map → selectGenomeWithTklst-WTX66TV3.js.map} +0 -0
- /package/dist/{singleCellGeneExpression-RZE5UVL4.js.map → singleCellCellType-D2CN2BHQ.js.map} +0 -0
- /package/dist/{singleCellCellType.unit.spec-VOE4KY6L.js.map → singleCellCellType.unit.spec-LADUCI4R.js.map} +0 -0
- /package/dist/{singleCellPlot-Q5UNIW3M.js.map → singleCellGeneExpression-YR2ZT34W.js.map} +0 -0
- /package/dist/{singleCellGeneExpression.unit.spec-2DASF7PD.js.map → singleCellGeneExpression.unit.spec-BM63M432.js.map} +0 -0
- /package/dist/{snp-S4O7SVDD.js.map → singleCellPlot-3ICIOILE.js.map} +0 -0
- /package/dist/{singlecell-TX5AQ4WM.js.map → singlecell-6ZUFA3BQ.js.map} +0 -0
- /package/dist/{singlecell-N7F5KVIB.js.map → singlecell-KX7W4U57.js.map} +0 -0
- /package/dist/{ssGSEA-BH53XGEZ.js.map → snp-VIURB7L3.js.map} +0 -0
- /package/dist/{snp.unit.spec-WSQMZSTE.js.map → snp.unit.spec-ACZNZUNS.js.map} +0 -0
- /package/dist/{snplocus-Y2R5C4ZP.js.map → snplocus-3LW4ZUZR.js.map} +0 -0
- /package/dist/{spliceevent.a53ss.diagram-FGRQR73W.js.map → spliceevent.a53ss.diagram-AKTZGWNM.js.map} +0 -0
- /package/dist/{spliceevent.noeventdiagram-G2CMYYE7.js.map → spliceevent.noeventdiagram-YTXWWNTJ.js.map} +0 -0
- /package/dist/{summarizeMutationDiagnosis-EUZXCSZP.js.map → ssGSEA-THW4WFMI.js.map} +0 -0
- /package/dist/{ssGSEA.unit.spec-BYIVB7FZ.js.map → ssGSEA.unit.spec-HTRGQI2K.js.map} +0 -0
- /package/dist/{summarizeCnvGeneexp-IZNOX4E7.js.map → summarizeCnvGeneexp-RFYC3H2Z.js.map} +0 -0
- /package/dist/{summarizeGeneexpSurvival-DJZ2R24E.js.map → summarizeGeneexpSurvival-DQBZUTQ6.js.map} +0 -0
- /package/dist/{summarizeMutationCnv-CO2TVWOI.js.map → summarizeMutationCnv-7AYEMHAI.js.map} +0 -0
- /package/dist/{summary-JHZCDE35.js.map → summarizeMutationDiagnosis-AKFJDSAF.js.map} +0 -0
- /package/dist/{summarizeMutationSurvival-CXFT3HWL.js.map → summarizeMutationSurvival-QJHZRQBZ.js.map} +0 -0
- /package/dist/{survival-DLLVUG2P.js.map → summary-A5P7AYK4.js.map} +0 -0
- /package/dist/{summary.integration.spec-WBEYSDCA.js.map → summary.integration.spec-HQISXGNL.js.map} +0 -0
- /package/dist/{summaryInput-JVH3R54R.js.map → summaryInput-HP675QOQ.js.map} +0 -0
- /package/dist/{sunburst-CTJTXHSA.js.map → sunburst-65LSYRXX.js.map} +0 -0
- /package/dist/{termCollection-JOLQJYJ3.js.map → survival-QNEI6YVK.js.map} +0 -0
- /package/dist/{survival-XFVYNI6S.js.map → survival-UI74VXSM.js.map} +0 -0
- /package/dist/{survival.integration.spec-KVXHHAA3.js.map → survival.integration.spec-X5N3JQXS.js.map} +0 -0
- /package/dist/{svgraph-ACEBMDIX.js.map → svgraph-PSX2NER3.js.map} +0 -0
- /package/dist/{svmr-IQEDSZ2C.js.map → svmr-QDQ33EFX.js.map} +0 -0
- /package/dist/{table-2IF6UGHR.js.map → table-LWAI27UO.js.map} +0 -0
- /package/dist/{termCollection-PSXFFR32.js.map → termCollection-3JHR74FG.js.map} +0 -0
- /package/dist/{tk-AAIHEQO6.js.map → termCollection-CDF5LYUG.js.map} +0 -0
- /package/dist/{termCollection.unit.spec-4SOZP4FY.js.map → termCollection.unit.spec-HOJKYWHF.js.map} +0 -0
- /package/dist/{tvs.dt-FSA7KPSQ.js.map → tk-OEQFO73V.js.map} +0 -0
- /package/dist/{tp.ui-6STLQEXX.js.map → tp.ui-SHNERDGC.js.map} +0 -0
- /package/dist/{tvs.numeric-KYAU5OV3.js.map → tvs.dt-CZDC4TSR.js.map} +0 -0
- /package/dist/{tvs.dtcnv.categorical-FSPGH7DP.js.map → tvs.dtcnv.categorical-OPBDHZGB.js.map} +0 -0
- /package/dist/{tvs.dtcnv.continuous-T4ZMSDB4.js.map → tvs.dtcnv.continuous-AR6P4EP3.js.map} +0 -0
- /package/dist/{tvs.dtfusion-UL3YENUM.js.map → tvs.dtfusion-2YQ7N6FQ.js.map} +0 -0
- /package/dist/{tvs.dtitd-XJOSZUWG.js.map → tvs.dtitd-ATCHW735.js.map} +0 -0
- /package/dist/{tvs.dtsnvindel-5TPUT5RJ.js.map → tvs.dtsnvindel-WHHWAATJ.js.map} +0 -0
- /package/dist/{tvs.dtsv-OTNHXYOJ.js.map → tvs.dtsv-3UMCW65O.js.map} +0 -0
- /package/dist/{violin-HEFFKPL5.js.map → tvs.numeric-TOEPASWN.js.map} +0 -0
- /package/dist/{tvs.samplelst-FQKTAQZF.js.map → tvs.samplelst-M7XKXRTZ.js.map} +0 -0
- /package/dist/{tvs.termCollection-ZAPCUMUW.js.map → tvs.termCollection-WT4WZMYR.js.map} +0 -0
- /package/dist/{violin.interactivity-XNYJSK53.js.map → violin-2YGXTBDS.js.map} +0 -0
- /package/dist/{violin.integration.spec-774N4G5A.js.map → violin.integration.spec-YWNHVAGS.js.map} +0 -0
- /package/dist/{violin.renderer-R74VSGRC.js.map → violin.interactivity-J6BE2UQL.js.map} +0 -0
- /package/dist/{vocabulary-OHMC6NWL.js.map → violin.renderer-3GRUWP2U.js.map} +0 -0
|
@@ -0,0 +1,4085 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Adder,
|
|
3
|
+
blur2,
|
|
4
|
+
extent,
|
|
5
|
+
max,
|
|
6
|
+
merge,
|
|
7
|
+
nice,
|
|
8
|
+
range,
|
|
9
|
+
thresholdSturges,
|
|
10
|
+
ticks
|
|
11
|
+
} from "./chunk-NSTL4MY2.js";
|
|
12
|
+
import {
|
|
13
|
+
dispatch_default,
|
|
14
|
+
interrupt_default,
|
|
15
|
+
nodrag_default,
|
|
16
|
+
timer,
|
|
17
|
+
yesdrag
|
|
18
|
+
} from "./chunk-KYBIQBXE.js";
|
|
19
|
+
import {
|
|
20
|
+
pointer_default,
|
|
21
|
+
select_default
|
|
22
|
+
} from "./chunk-I6Y4O3RR.js";
|
|
23
|
+
import {
|
|
24
|
+
cubehelix,
|
|
25
|
+
cubehelixLong,
|
|
26
|
+
rgbBasis,
|
|
27
|
+
zoom_default
|
|
28
|
+
} from "./chunk-OMR2DT66.js";
|
|
29
|
+
|
|
30
|
+
// ../node_modules/d3-fetch/src/json.js
|
|
31
|
+
function responseJson(response) {
|
|
32
|
+
if (!response.ok) throw new Error(response.status + " " + response.statusText);
|
|
33
|
+
if (response.status === 204 || response.status === 205) return;
|
|
34
|
+
return response.json();
|
|
35
|
+
}
|
|
36
|
+
function json_default(input, init) {
|
|
37
|
+
return fetch(input, init).then(responseJson);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// ../node_modules/d3-quadtree/src/add.js
|
|
41
|
+
function add_default(d) {
|
|
42
|
+
const x3 = +this._x.call(null, d), y3 = +this._y.call(null, d);
|
|
43
|
+
return add(this.cover(x3, y3), x3, y3, d);
|
|
44
|
+
}
|
|
45
|
+
function add(tree, x3, y3, d) {
|
|
46
|
+
if (isNaN(x3) || isNaN(y3)) return tree;
|
|
47
|
+
var parent, node = tree._root, leaf = { data: d }, x05 = tree._x0, y05 = tree._y0, x12 = tree._x1, y12 = tree._y1, xm, ym, xp, yp, right, bottom, i, j;
|
|
48
|
+
if (!node) return tree._root = leaf, tree;
|
|
49
|
+
while (node.length) {
|
|
50
|
+
if (right = x3 >= (xm = (x05 + x12) / 2)) x05 = xm;
|
|
51
|
+
else x12 = xm;
|
|
52
|
+
if (bottom = y3 >= (ym = (y05 + y12) / 2)) y05 = ym;
|
|
53
|
+
else y12 = ym;
|
|
54
|
+
if (parent = node, !(node = node[i = bottom << 1 | right])) return parent[i] = leaf, tree;
|
|
55
|
+
}
|
|
56
|
+
xp = +tree._x.call(null, node.data);
|
|
57
|
+
yp = +tree._y.call(null, node.data);
|
|
58
|
+
if (x3 === xp && y3 === yp) return leaf.next = node, parent ? parent[i] = leaf : tree._root = leaf, tree;
|
|
59
|
+
do {
|
|
60
|
+
parent = parent ? parent[i] = new Array(4) : tree._root = new Array(4);
|
|
61
|
+
if (right = x3 >= (xm = (x05 + x12) / 2)) x05 = xm;
|
|
62
|
+
else x12 = xm;
|
|
63
|
+
if (bottom = y3 >= (ym = (y05 + y12) / 2)) y05 = ym;
|
|
64
|
+
else y12 = ym;
|
|
65
|
+
} while ((i = bottom << 1 | right) === (j = (yp >= ym) << 1 | xp >= xm));
|
|
66
|
+
return parent[j] = node, parent[i] = leaf, tree;
|
|
67
|
+
}
|
|
68
|
+
function addAll(data) {
|
|
69
|
+
var d, i, n = data.length, x3, y3, xz = new Array(n), yz = new Array(n), x05 = Infinity, y05 = Infinity, x12 = -Infinity, y12 = -Infinity;
|
|
70
|
+
for (i = 0; i < n; ++i) {
|
|
71
|
+
if (isNaN(x3 = +this._x.call(null, d = data[i])) || isNaN(y3 = +this._y.call(null, d))) continue;
|
|
72
|
+
xz[i] = x3;
|
|
73
|
+
yz[i] = y3;
|
|
74
|
+
if (x3 < x05) x05 = x3;
|
|
75
|
+
if (x3 > x12) x12 = x3;
|
|
76
|
+
if (y3 < y05) y05 = y3;
|
|
77
|
+
if (y3 > y12) y12 = y3;
|
|
78
|
+
}
|
|
79
|
+
if (x05 > x12 || y05 > y12) return this;
|
|
80
|
+
this.cover(x05, y05).cover(x12, y12);
|
|
81
|
+
for (i = 0; i < n; ++i) {
|
|
82
|
+
add(this, xz[i], yz[i], data[i]);
|
|
83
|
+
}
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// ../node_modules/d3-quadtree/src/cover.js
|
|
88
|
+
function cover_default(x3, y3) {
|
|
89
|
+
if (isNaN(x3 = +x3) || isNaN(y3 = +y3)) return this;
|
|
90
|
+
var x05 = this._x0, y05 = this._y0, x12 = this._x1, y12 = this._y1;
|
|
91
|
+
if (isNaN(x05)) {
|
|
92
|
+
x12 = (x05 = Math.floor(x3)) + 1;
|
|
93
|
+
y12 = (y05 = Math.floor(y3)) + 1;
|
|
94
|
+
} else {
|
|
95
|
+
var z = x12 - x05 || 1, node = this._root, parent, i;
|
|
96
|
+
while (x05 > x3 || x3 >= x12 || y05 > y3 || y3 >= y12) {
|
|
97
|
+
i = (y3 < y05) << 1 | x3 < x05;
|
|
98
|
+
parent = new Array(4), parent[i] = node, node = parent, z *= 2;
|
|
99
|
+
switch (i) {
|
|
100
|
+
case 0:
|
|
101
|
+
x12 = x05 + z, y12 = y05 + z;
|
|
102
|
+
break;
|
|
103
|
+
case 1:
|
|
104
|
+
x05 = x12 - z, y12 = y05 + z;
|
|
105
|
+
break;
|
|
106
|
+
case 2:
|
|
107
|
+
x12 = x05 + z, y05 = y12 - z;
|
|
108
|
+
break;
|
|
109
|
+
case 3:
|
|
110
|
+
x05 = x12 - z, y05 = y12 - z;
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (this._root && this._root.length) this._root = node;
|
|
115
|
+
}
|
|
116
|
+
this._x0 = x05;
|
|
117
|
+
this._y0 = y05;
|
|
118
|
+
this._x1 = x12;
|
|
119
|
+
this._y1 = y12;
|
|
120
|
+
return this;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// ../node_modules/d3-quadtree/src/data.js
|
|
124
|
+
function data_default() {
|
|
125
|
+
var data = [];
|
|
126
|
+
this.visit(function(node) {
|
|
127
|
+
if (!node.length) do
|
|
128
|
+
data.push(node.data);
|
|
129
|
+
while (node = node.next);
|
|
130
|
+
});
|
|
131
|
+
return data;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// ../node_modules/d3-quadtree/src/extent.js
|
|
135
|
+
function extent_default(_) {
|
|
136
|
+
return arguments.length ? this.cover(+_[0][0], +_[0][1]).cover(+_[1][0], +_[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]];
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// ../node_modules/d3-quadtree/src/quad.js
|
|
140
|
+
function quad_default(node, x05, y05, x12, y12) {
|
|
141
|
+
this.node = node;
|
|
142
|
+
this.x0 = x05;
|
|
143
|
+
this.y0 = y05;
|
|
144
|
+
this.x1 = x12;
|
|
145
|
+
this.y1 = y12;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// ../node_modules/d3-quadtree/src/find.js
|
|
149
|
+
function find_default(x3, y3, radius) {
|
|
150
|
+
var data, x05 = this._x0, y05 = this._y0, x12, y12, x22, y22, x32 = this._x1, y32 = this._y1, quads = [], node = this._root, q, i;
|
|
151
|
+
if (node) quads.push(new quad_default(node, x05, y05, x32, y32));
|
|
152
|
+
if (radius == null) radius = Infinity;
|
|
153
|
+
else {
|
|
154
|
+
x05 = x3 - radius, y05 = y3 - radius;
|
|
155
|
+
x32 = x3 + radius, y32 = y3 + radius;
|
|
156
|
+
radius *= radius;
|
|
157
|
+
}
|
|
158
|
+
while (q = quads.pop()) {
|
|
159
|
+
if (!(node = q.node) || (x12 = q.x0) > x32 || (y12 = q.y0) > y32 || (x22 = q.x1) < x05 || (y22 = q.y1) < y05) continue;
|
|
160
|
+
if (node.length) {
|
|
161
|
+
var xm = (x12 + x22) / 2, ym = (y12 + y22) / 2;
|
|
162
|
+
quads.push(
|
|
163
|
+
new quad_default(node[3], xm, ym, x22, y22),
|
|
164
|
+
new quad_default(node[2], x12, ym, xm, y22),
|
|
165
|
+
new quad_default(node[1], xm, y12, x22, ym),
|
|
166
|
+
new quad_default(node[0], x12, y12, xm, ym)
|
|
167
|
+
);
|
|
168
|
+
if (i = (y3 >= ym) << 1 | x3 >= xm) {
|
|
169
|
+
q = quads[quads.length - 1];
|
|
170
|
+
quads[quads.length - 1] = quads[quads.length - 1 - i];
|
|
171
|
+
quads[quads.length - 1 - i] = q;
|
|
172
|
+
}
|
|
173
|
+
} else {
|
|
174
|
+
var dx = x3 - +this._x.call(null, node.data), dy = y3 - +this._y.call(null, node.data), d2 = dx * dx + dy * dy;
|
|
175
|
+
if (d2 < radius) {
|
|
176
|
+
var d = Math.sqrt(radius = d2);
|
|
177
|
+
x05 = x3 - d, y05 = y3 - d;
|
|
178
|
+
x32 = x3 + d, y32 = y3 + d;
|
|
179
|
+
data = node.data;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return data;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// ../node_modules/d3-quadtree/src/remove.js
|
|
187
|
+
function remove_default(d) {
|
|
188
|
+
if (isNaN(x3 = +this._x.call(null, d)) || isNaN(y3 = +this._y.call(null, d))) return this;
|
|
189
|
+
var parent, node = this._root, retainer, previous, next, x05 = this._x0, y05 = this._y0, x12 = this._x1, y12 = this._y1, x3, y3, xm, ym, right, bottom, i, j;
|
|
190
|
+
if (!node) return this;
|
|
191
|
+
if (node.length) while (true) {
|
|
192
|
+
if (right = x3 >= (xm = (x05 + x12) / 2)) x05 = xm;
|
|
193
|
+
else x12 = xm;
|
|
194
|
+
if (bottom = y3 >= (ym = (y05 + y12) / 2)) y05 = ym;
|
|
195
|
+
else y12 = ym;
|
|
196
|
+
if (!(parent = node, node = node[i = bottom << 1 | right])) return this;
|
|
197
|
+
if (!node.length) break;
|
|
198
|
+
if (parent[i + 1 & 3] || parent[i + 2 & 3] || parent[i + 3 & 3]) retainer = parent, j = i;
|
|
199
|
+
}
|
|
200
|
+
while (node.data !== d) if (!(previous = node, node = node.next)) return this;
|
|
201
|
+
if (next = node.next) delete node.next;
|
|
202
|
+
if (previous) return next ? previous.next = next : delete previous.next, this;
|
|
203
|
+
if (!parent) return this._root = next, this;
|
|
204
|
+
next ? parent[i] = next : delete parent[i];
|
|
205
|
+
if ((node = parent[0] || parent[1] || parent[2] || parent[3]) && node === (parent[3] || parent[2] || parent[1] || parent[0]) && !node.length) {
|
|
206
|
+
if (retainer) retainer[j] = node;
|
|
207
|
+
else this._root = node;
|
|
208
|
+
}
|
|
209
|
+
return this;
|
|
210
|
+
}
|
|
211
|
+
function removeAll(data) {
|
|
212
|
+
for (var i = 0, n = data.length; i < n; ++i) this.remove(data[i]);
|
|
213
|
+
return this;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// ../node_modules/d3-quadtree/src/root.js
|
|
217
|
+
function root_default() {
|
|
218
|
+
return this._root;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// ../node_modules/d3-quadtree/src/size.js
|
|
222
|
+
function size_default() {
|
|
223
|
+
var size = 0;
|
|
224
|
+
this.visit(function(node) {
|
|
225
|
+
if (!node.length) do
|
|
226
|
+
++size;
|
|
227
|
+
while (node = node.next);
|
|
228
|
+
});
|
|
229
|
+
return size;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// ../node_modules/d3-quadtree/src/visit.js
|
|
233
|
+
function visit_default(callback) {
|
|
234
|
+
var quads = [], q, node = this._root, child, x05, y05, x12, y12;
|
|
235
|
+
if (node) quads.push(new quad_default(node, this._x0, this._y0, this._x1, this._y1));
|
|
236
|
+
while (q = quads.pop()) {
|
|
237
|
+
if (!callback(node = q.node, x05 = q.x0, y05 = q.y0, x12 = q.x1, y12 = q.y1) && node.length) {
|
|
238
|
+
var xm = (x05 + x12) / 2, ym = (y05 + y12) / 2;
|
|
239
|
+
if (child = node[3]) quads.push(new quad_default(child, xm, ym, x12, y12));
|
|
240
|
+
if (child = node[2]) quads.push(new quad_default(child, x05, ym, xm, y12));
|
|
241
|
+
if (child = node[1]) quads.push(new quad_default(child, xm, y05, x12, ym));
|
|
242
|
+
if (child = node[0]) quads.push(new quad_default(child, x05, y05, xm, ym));
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return this;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// ../node_modules/d3-quadtree/src/visitAfter.js
|
|
249
|
+
function visitAfter_default(callback) {
|
|
250
|
+
var quads = [], next = [], q;
|
|
251
|
+
if (this._root) quads.push(new quad_default(this._root, this._x0, this._y0, this._x1, this._y1));
|
|
252
|
+
while (q = quads.pop()) {
|
|
253
|
+
var node = q.node;
|
|
254
|
+
if (node.length) {
|
|
255
|
+
var child, x05 = q.x0, y05 = q.y0, x12 = q.x1, y12 = q.y1, xm = (x05 + x12) / 2, ym = (y05 + y12) / 2;
|
|
256
|
+
if (child = node[0]) quads.push(new quad_default(child, x05, y05, xm, ym));
|
|
257
|
+
if (child = node[1]) quads.push(new quad_default(child, xm, y05, x12, ym));
|
|
258
|
+
if (child = node[2]) quads.push(new quad_default(child, x05, ym, xm, y12));
|
|
259
|
+
if (child = node[3]) quads.push(new quad_default(child, xm, ym, x12, y12));
|
|
260
|
+
}
|
|
261
|
+
next.push(q);
|
|
262
|
+
}
|
|
263
|
+
while (q = next.pop()) {
|
|
264
|
+
callback(q.node, q.x0, q.y0, q.x1, q.y1);
|
|
265
|
+
}
|
|
266
|
+
return this;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// ../node_modules/d3-quadtree/src/x.js
|
|
270
|
+
function defaultX(d) {
|
|
271
|
+
return d[0];
|
|
272
|
+
}
|
|
273
|
+
function x_default(_) {
|
|
274
|
+
return arguments.length ? (this._x = _, this) : this._x;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// ../node_modules/d3-quadtree/src/y.js
|
|
278
|
+
function defaultY(d) {
|
|
279
|
+
return d[1];
|
|
280
|
+
}
|
|
281
|
+
function y_default(_) {
|
|
282
|
+
return arguments.length ? (this._y = _, this) : this._y;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// ../node_modules/d3-quadtree/src/quadtree.js
|
|
286
|
+
function quadtree(nodes, x3, y3) {
|
|
287
|
+
var tree = new Quadtree(x3 == null ? defaultX : x3, y3 == null ? defaultY : y3, NaN, NaN, NaN, NaN);
|
|
288
|
+
return nodes == null ? tree : tree.addAll(nodes);
|
|
289
|
+
}
|
|
290
|
+
function Quadtree(x3, y3, x05, y05, x12, y12) {
|
|
291
|
+
this._x = x3;
|
|
292
|
+
this._y = y3;
|
|
293
|
+
this._x0 = x05;
|
|
294
|
+
this._y0 = y05;
|
|
295
|
+
this._x1 = x12;
|
|
296
|
+
this._y1 = y12;
|
|
297
|
+
this._root = void 0;
|
|
298
|
+
}
|
|
299
|
+
function leaf_copy(leaf) {
|
|
300
|
+
var copy = { data: leaf.data }, next = copy;
|
|
301
|
+
while (leaf = leaf.next) next = next.next = { data: leaf.data };
|
|
302
|
+
return copy;
|
|
303
|
+
}
|
|
304
|
+
var treeProto = quadtree.prototype = Quadtree.prototype;
|
|
305
|
+
treeProto.copy = function() {
|
|
306
|
+
var copy = new Quadtree(this._x, this._y, this._x0, this._y0, this._x1, this._y1), node = this._root, nodes, child;
|
|
307
|
+
if (!node) return copy;
|
|
308
|
+
if (!node.length) return copy._root = leaf_copy(node), copy;
|
|
309
|
+
nodes = [{ source: node, target: copy._root = new Array(4) }];
|
|
310
|
+
while (node = nodes.pop()) {
|
|
311
|
+
for (var i = 0; i < 4; ++i) {
|
|
312
|
+
if (child = node.source[i]) {
|
|
313
|
+
if (child.length) nodes.push({ source: child, target: node.target[i] = new Array(4) });
|
|
314
|
+
else node.target[i] = leaf_copy(child);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
return copy;
|
|
319
|
+
};
|
|
320
|
+
treeProto.add = add_default;
|
|
321
|
+
treeProto.addAll = addAll;
|
|
322
|
+
treeProto.cover = cover_default;
|
|
323
|
+
treeProto.data = data_default;
|
|
324
|
+
treeProto.extent = extent_default;
|
|
325
|
+
treeProto.find = find_default;
|
|
326
|
+
treeProto.remove = remove_default;
|
|
327
|
+
treeProto.removeAll = removeAll;
|
|
328
|
+
treeProto.root = root_default;
|
|
329
|
+
treeProto.size = size_default;
|
|
330
|
+
treeProto.visit = visit_default;
|
|
331
|
+
treeProto.visitAfter = visitAfter_default;
|
|
332
|
+
treeProto.x = x_default;
|
|
333
|
+
treeProto.y = y_default;
|
|
334
|
+
|
|
335
|
+
// ../node_modules/d3-force/src/constant.js
|
|
336
|
+
function constant_default(x3) {
|
|
337
|
+
return function() {
|
|
338
|
+
return x3;
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// ../node_modules/d3-force/src/jiggle.js
|
|
343
|
+
function jiggle_default(random) {
|
|
344
|
+
return (random() - 0.5) * 1e-6;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// ../node_modules/d3-force/src/collide.js
|
|
348
|
+
function x(d) {
|
|
349
|
+
return d.x + d.vx;
|
|
350
|
+
}
|
|
351
|
+
function y(d) {
|
|
352
|
+
return d.y + d.vy;
|
|
353
|
+
}
|
|
354
|
+
function collide_default(radius) {
|
|
355
|
+
var nodes, radii, random, strength = 1, iterations = 1;
|
|
356
|
+
if (typeof radius !== "function") radius = constant_default(radius == null ? 1 : +radius);
|
|
357
|
+
function force() {
|
|
358
|
+
var i, n = nodes.length, tree, node, xi, yi, ri, ri2;
|
|
359
|
+
for (var k2 = 0; k2 < iterations; ++k2) {
|
|
360
|
+
tree = quadtree(nodes, x, y).visitAfter(prepare);
|
|
361
|
+
for (i = 0; i < n; ++i) {
|
|
362
|
+
node = nodes[i];
|
|
363
|
+
ri = radii[node.index], ri2 = ri * ri;
|
|
364
|
+
xi = node.x + node.vx;
|
|
365
|
+
yi = node.y + node.vy;
|
|
366
|
+
tree.visit(apply);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function apply(quad, x05, y05, x12, y12) {
|
|
370
|
+
var data = quad.data, rj = quad.r, r = ri + rj;
|
|
371
|
+
if (data) {
|
|
372
|
+
if (data.index > node.index) {
|
|
373
|
+
var x3 = xi - data.x - data.vx, y3 = yi - data.y - data.vy, l = x3 * x3 + y3 * y3;
|
|
374
|
+
if (l < r * r) {
|
|
375
|
+
if (x3 === 0) x3 = jiggle_default(random), l += x3 * x3;
|
|
376
|
+
if (y3 === 0) y3 = jiggle_default(random), l += y3 * y3;
|
|
377
|
+
l = (r - (l = Math.sqrt(l))) / l * strength;
|
|
378
|
+
node.vx += (x3 *= l) * (r = (rj *= rj) / (ri2 + rj));
|
|
379
|
+
node.vy += (y3 *= l) * r;
|
|
380
|
+
data.vx -= x3 * (r = 1 - r);
|
|
381
|
+
data.vy -= y3 * r;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
return x05 > xi + r || x12 < xi - r || y05 > yi + r || y12 < yi - r;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function prepare(quad) {
|
|
390
|
+
if (quad.data) return quad.r = radii[quad.data.index];
|
|
391
|
+
for (var i = quad.r = 0; i < 4; ++i) {
|
|
392
|
+
if (quad[i] && quad[i].r > quad.r) {
|
|
393
|
+
quad.r = quad[i].r;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
function initialize() {
|
|
398
|
+
if (!nodes) return;
|
|
399
|
+
var i, n = nodes.length, node;
|
|
400
|
+
radii = new Array(n);
|
|
401
|
+
for (i = 0; i < n; ++i) node = nodes[i], radii[node.index] = +radius(node, i, nodes);
|
|
402
|
+
}
|
|
403
|
+
force.initialize = function(_nodes, _random) {
|
|
404
|
+
nodes = _nodes;
|
|
405
|
+
random = _random;
|
|
406
|
+
initialize();
|
|
407
|
+
};
|
|
408
|
+
force.iterations = function(_) {
|
|
409
|
+
return arguments.length ? (iterations = +_, force) : iterations;
|
|
410
|
+
};
|
|
411
|
+
force.strength = function(_) {
|
|
412
|
+
return arguments.length ? (strength = +_, force) : strength;
|
|
413
|
+
};
|
|
414
|
+
force.radius = function(_) {
|
|
415
|
+
return arguments.length ? (radius = typeof _ === "function" ? _ : constant_default(+_), initialize(), force) : radius;
|
|
416
|
+
};
|
|
417
|
+
return force;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
// ../node_modules/d3-force/src/link.js
|
|
421
|
+
function index(d) {
|
|
422
|
+
return d.index;
|
|
423
|
+
}
|
|
424
|
+
function find(nodeById, nodeId) {
|
|
425
|
+
var node = nodeById.get(nodeId);
|
|
426
|
+
if (!node) throw new Error("node not found: " + nodeId);
|
|
427
|
+
return node;
|
|
428
|
+
}
|
|
429
|
+
function link_default(links) {
|
|
430
|
+
var id = index, strength = defaultStrength, strengths, distance = constant_default(30), distances, nodes, count, bias, random, iterations = 1;
|
|
431
|
+
if (links == null) links = [];
|
|
432
|
+
function defaultStrength(link2) {
|
|
433
|
+
return 1 / Math.min(count[link2.source.index], count[link2.target.index]);
|
|
434
|
+
}
|
|
435
|
+
function force(alpha) {
|
|
436
|
+
for (var k2 = 0, n = links.length; k2 < iterations; ++k2) {
|
|
437
|
+
for (var i = 0, link2, source, target, x3, y3, l, b; i < n; ++i) {
|
|
438
|
+
link2 = links[i], source = link2.source, target = link2.target;
|
|
439
|
+
x3 = target.x + target.vx - source.x - source.vx || jiggle_default(random);
|
|
440
|
+
y3 = target.y + target.vy - source.y - source.vy || jiggle_default(random);
|
|
441
|
+
l = Math.sqrt(x3 * x3 + y3 * y3);
|
|
442
|
+
l = (l - distances[i]) / l * alpha * strengths[i];
|
|
443
|
+
x3 *= l, y3 *= l;
|
|
444
|
+
target.vx -= x3 * (b = bias[i]);
|
|
445
|
+
target.vy -= y3 * b;
|
|
446
|
+
source.vx += x3 * (b = 1 - b);
|
|
447
|
+
source.vy += y3 * b;
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
function initialize() {
|
|
452
|
+
if (!nodes) return;
|
|
453
|
+
var i, n = nodes.length, m2 = links.length, nodeById = new Map(nodes.map((d, i2) => [id(d, i2, nodes), d])), link2;
|
|
454
|
+
for (i = 0, count = new Array(n); i < m2; ++i) {
|
|
455
|
+
link2 = links[i], link2.index = i;
|
|
456
|
+
if (typeof link2.source !== "object") link2.source = find(nodeById, link2.source);
|
|
457
|
+
if (typeof link2.target !== "object") link2.target = find(nodeById, link2.target);
|
|
458
|
+
count[link2.source.index] = (count[link2.source.index] || 0) + 1;
|
|
459
|
+
count[link2.target.index] = (count[link2.target.index] || 0) + 1;
|
|
460
|
+
}
|
|
461
|
+
for (i = 0, bias = new Array(m2); i < m2; ++i) {
|
|
462
|
+
link2 = links[i], bias[i] = count[link2.source.index] / (count[link2.source.index] + count[link2.target.index]);
|
|
463
|
+
}
|
|
464
|
+
strengths = new Array(m2), initializeStrength();
|
|
465
|
+
distances = new Array(m2), initializeDistance();
|
|
466
|
+
}
|
|
467
|
+
function initializeStrength() {
|
|
468
|
+
if (!nodes) return;
|
|
469
|
+
for (var i = 0, n = links.length; i < n; ++i) {
|
|
470
|
+
strengths[i] = +strength(links[i], i, links);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
function initializeDistance() {
|
|
474
|
+
if (!nodes) return;
|
|
475
|
+
for (var i = 0, n = links.length; i < n; ++i) {
|
|
476
|
+
distances[i] = +distance(links[i], i, links);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
force.initialize = function(_nodes, _random) {
|
|
480
|
+
nodes = _nodes;
|
|
481
|
+
random = _random;
|
|
482
|
+
initialize();
|
|
483
|
+
};
|
|
484
|
+
force.links = function(_) {
|
|
485
|
+
return arguments.length ? (links = _, initialize(), force) : links;
|
|
486
|
+
};
|
|
487
|
+
force.id = function(_) {
|
|
488
|
+
return arguments.length ? (id = _, force) : id;
|
|
489
|
+
};
|
|
490
|
+
force.iterations = function(_) {
|
|
491
|
+
return arguments.length ? (iterations = +_, force) : iterations;
|
|
492
|
+
};
|
|
493
|
+
force.strength = function(_) {
|
|
494
|
+
return arguments.length ? (strength = typeof _ === "function" ? _ : constant_default(+_), initializeStrength(), force) : strength;
|
|
495
|
+
};
|
|
496
|
+
force.distance = function(_) {
|
|
497
|
+
return arguments.length ? (distance = typeof _ === "function" ? _ : constant_default(+_), initializeDistance(), force) : distance;
|
|
498
|
+
};
|
|
499
|
+
return force;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// ../node_modules/d3-force/src/lcg.js
|
|
503
|
+
var a = 1664525;
|
|
504
|
+
var c = 1013904223;
|
|
505
|
+
var m = 4294967296;
|
|
506
|
+
function lcg_default() {
|
|
507
|
+
let s2 = 1;
|
|
508
|
+
return () => (s2 = (a * s2 + c) % m) / m;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
// ../node_modules/d3-force/src/simulation.js
|
|
512
|
+
var initialRadius = 10;
|
|
513
|
+
var initialAngle = Math.PI * (3 - Math.sqrt(5));
|
|
514
|
+
function simulation_default(nodes) {
|
|
515
|
+
var simulation, alpha = 1, alphaMin = 1e-3, alphaDecay = 1 - Math.pow(alphaMin, 1 / 300), alphaTarget = 0, velocityDecay = 0.6, forces = /* @__PURE__ */ new Map(), stepper = timer(step), event = dispatch_default("tick", "end"), random = lcg_default();
|
|
516
|
+
if (nodes == null) nodes = [];
|
|
517
|
+
function step() {
|
|
518
|
+
tick();
|
|
519
|
+
event.call("tick", simulation);
|
|
520
|
+
if (alpha < alphaMin) {
|
|
521
|
+
stepper.stop();
|
|
522
|
+
event.call("end", simulation);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
function tick(iterations) {
|
|
526
|
+
var i, n = nodes.length, node;
|
|
527
|
+
if (iterations === void 0) iterations = 1;
|
|
528
|
+
for (var k2 = 0; k2 < iterations; ++k2) {
|
|
529
|
+
alpha += (alphaTarget - alpha) * alphaDecay;
|
|
530
|
+
forces.forEach(function(force) {
|
|
531
|
+
force(alpha);
|
|
532
|
+
});
|
|
533
|
+
for (i = 0; i < n; ++i) {
|
|
534
|
+
node = nodes[i];
|
|
535
|
+
if (node.fx == null) node.x += node.vx *= velocityDecay;
|
|
536
|
+
else node.x = node.fx, node.vx = 0;
|
|
537
|
+
if (node.fy == null) node.y += node.vy *= velocityDecay;
|
|
538
|
+
else node.y = node.fy, node.vy = 0;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
return simulation;
|
|
542
|
+
}
|
|
543
|
+
function initializeNodes() {
|
|
544
|
+
for (var i = 0, n = nodes.length, node; i < n; ++i) {
|
|
545
|
+
node = nodes[i], node.index = i;
|
|
546
|
+
if (node.fx != null) node.x = node.fx;
|
|
547
|
+
if (node.fy != null) node.y = node.fy;
|
|
548
|
+
if (isNaN(node.x) || isNaN(node.y)) {
|
|
549
|
+
var radius = initialRadius * Math.sqrt(0.5 + i), angle = i * initialAngle;
|
|
550
|
+
node.x = radius * Math.cos(angle);
|
|
551
|
+
node.y = radius * Math.sin(angle);
|
|
552
|
+
}
|
|
553
|
+
if (isNaN(node.vx) || isNaN(node.vy)) {
|
|
554
|
+
node.vx = node.vy = 0;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
function initializeForce(force) {
|
|
559
|
+
if (force.initialize) force.initialize(nodes, random);
|
|
560
|
+
return force;
|
|
561
|
+
}
|
|
562
|
+
initializeNodes();
|
|
563
|
+
return simulation = {
|
|
564
|
+
tick,
|
|
565
|
+
restart: function() {
|
|
566
|
+
return stepper.restart(step), simulation;
|
|
567
|
+
},
|
|
568
|
+
stop: function() {
|
|
569
|
+
return stepper.stop(), simulation;
|
|
570
|
+
},
|
|
571
|
+
nodes: function(_) {
|
|
572
|
+
return arguments.length ? (nodes = _, initializeNodes(), forces.forEach(initializeForce), simulation) : nodes;
|
|
573
|
+
},
|
|
574
|
+
alpha: function(_) {
|
|
575
|
+
return arguments.length ? (alpha = +_, simulation) : alpha;
|
|
576
|
+
},
|
|
577
|
+
alphaMin: function(_) {
|
|
578
|
+
return arguments.length ? (alphaMin = +_, simulation) : alphaMin;
|
|
579
|
+
},
|
|
580
|
+
alphaDecay: function(_) {
|
|
581
|
+
return arguments.length ? (alphaDecay = +_, simulation) : +alphaDecay;
|
|
582
|
+
},
|
|
583
|
+
alphaTarget: function(_) {
|
|
584
|
+
return arguments.length ? (alphaTarget = +_, simulation) : alphaTarget;
|
|
585
|
+
},
|
|
586
|
+
velocityDecay: function(_) {
|
|
587
|
+
return arguments.length ? (velocityDecay = 1 - _, simulation) : 1 - velocityDecay;
|
|
588
|
+
},
|
|
589
|
+
randomSource: function(_) {
|
|
590
|
+
return arguments.length ? (random = _, forces.forEach(initializeForce), simulation) : random;
|
|
591
|
+
},
|
|
592
|
+
force: function(name, _) {
|
|
593
|
+
return arguments.length > 1 ? (_ == null ? forces.delete(name) : forces.set(name, initializeForce(_)), simulation) : forces.get(name);
|
|
594
|
+
},
|
|
595
|
+
find: function(x3, y3, radius) {
|
|
596
|
+
var i = 0, n = nodes.length, dx, dy, d2, node, closest;
|
|
597
|
+
if (radius == null) radius = Infinity;
|
|
598
|
+
else radius *= radius;
|
|
599
|
+
for (i = 0; i < n; ++i) {
|
|
600
|
+
node = nodes[i];
|
|
601
|
+
dx = x3 - node.x;
|
|
602
|
+
dy = y3 - node.y;
|
|
603
|
+
d2 = dx * dx + dy * dy;
|
|
604
|
+
if (d2 < radius) closest = node, radius = d2;
|
|
605
|
+
}
|
|
606
|
+
return closest;
|
|
607
|
+
},
|
|
608
|
+
on: function(name, _) {
|
|
609
|
+
return arguments.length > 1 ? (event.on(name, _), simulation) : event.on(name);
|
|
610
|
+
}
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// ../node_modules/d3-force/src/x.js
|
|
615
|
+
function x_default2(x3) {
|
|
616
|
+
var strength = constant_default(0.1), nodes, strengths, xz;
|
|
617
|
+
if (typeof x3 !== "function") x3 = constant_default(x3 == null ? 0 : +x3);
|
|
618
|
+
function force(alpha) {
|
|
619
|
+
for (var i = 0, n = nodes.length, node; i < n; ++i) {
|
|
620
|
+
node = nodes[i], node.vx += (xz[i] - node.x) * strengths[i] * alpha;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
function initialize() {
|
|
624
|
+
if (!nodes) return;
|
|
625
|
+
var i, n = nodes.length;
|
|
626
|
+
strengths = new Array(n);
|
|
627
|
+
xz = new Array(n);
|
|
628
|
+
for (i = 0; i < n; ++i) {
|
|
629
|
+
strengths[i] = isNaN(xz[i] = +x3(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
force.initialize = function(_) {
|
|
633
|
+
nodes = _;
|
|
634
|
+
initialize();
|
|
635
|
+
};
|
|
636
|
+
force.strength = function(_) {
|
|
637
|
+
return arguments.length ? (strength = typeof _ === "function" ? _ : constant_default(+_), initialize(), force) : strength;
|
|
638
|
+
};
|
|
639
|
+
force.x = function(_) {
|
|
640
|
+
return arguments.length ? (x3 = typeof _ === "function" ? _ : constant_default(+_), initialize(), force) : x3;
|
|
641
|
+
};
|
|
642
|
+
return force;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
// ../node_modules/d3-force/src/y.js
|
|
646
|
+
function y_default2(y3) {
|
|
647
|
+
var strength = constant_default(0.1), nodes, strengths, yz;
|
|
648
|
+
if (typeof y3 !== "function") y3 = constant_default(y3 == null ? 0 : +y3);
|
|
649
|
+
function force(alpha) {
|
|
650
|
+
for (var i = 0, n = nodes.length, node; i < n; ++i) {
|
|
651
|
+
node = nodes[i], node.vy += (yz[i] - node.y) * strengths[i] * alpha;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
function initialize() {
|
|
655
|
+
if (!nodes) return;
|
|
656
|
+
var i, n = nodes.length;
|
|
657
|
+
strengths = new Array(n);
|
|
658
|
+
yz = new Array(n);
|
|
659
|
+
for (i = 0; i < n; ++i) {
|
|
660
|
+
strengths[i] = isNaN(yz[i] = +y3(nodes[i], i, nodes)) ? 0 : +strength(nodes[i], i, nodes);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
force.initialize = function(_) {
|
|
664
|
+
nodes = _;
|
|
665
|
+
initialize();
|
|
666
|
+
};
|
|
667
|
+
force.strength = function(_) {
|
|
668
|
+
return arguments.length ? (strength = typeof _ === "function" ? _ : constant_default(+_), initialize(), force) : strength;
|
|
669
|
+
};
|
|
670
|
+
force.y = function(_) {
|
|
671
|
+
return arguments.length ? (y3 = typeof _ === "function" ? _ : constant_default(+_), initialize(), force) : y3;
|
|
672
|
+
};
|
|
673
|
+
return force;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
// ../node_modules/d3-geo/src/math.js
|
|
677
|
+
var epsilon = 1e-6;
|
|
678
|
+
var epsilon2 = 1e-12;
|
|
679
|
+
var pi = Math.PI;
|
|
680
|
+
var halfPi = pi / 2;
|
|
681
|
+
var quarterPi = pi / 4;
|
|
682
|
+
var tau = pi * 2;
|
|
683
|
+
var degrees = 180 / pi;
|
|
684
|
+
var radians = pi / 180;
|
|
685
|
+
var abs = Math.abs;
|
|
686
|
+
var atan = Math.atan;
|
|
687
|
+
var atan2 = Math.atan2;
|
|
688
|
+
var cos = Math.cos;
|
|
689
|
+
var ceil = Math.ceil;
|
|
690
|
+
var sin = Math.sin;
|
|
691
|
+
var sign = Math.sign || function(x3) {
|
|
692
|
+
return x3 > 0 ? 1 : x3 < 0 ? -1 : 0;
|
|
693
|
+
};
|
|
694
|
+
var sqrt = Math.sqrt;
|
|
695
|
+
function acos(x3) {
|
|
696
|
+
return x3 > 1 ? 0 : x3 < -1 ? pi : Math.acos(x3);
|
|
697
|
+
}
|
|
698
|
+
function asin(x3) {
|
|
699
|
+
return x3 > 1 ? halfPi : x3 < -1 ? -halfPi : Math.asin(x3);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
// ../node_modules/d3-geo/src/graticule.js
|
|
703
|
+
function graticuleX(y05, y12, dy) {
|
|
704
|
+
var y3 = range(y05, y12 - epsilon, dy).concat(y12);
|
|
705
|
+
return function(x3) {
|
|
706
|
+
return y3.map(function(y4) {
|
|
707
|
+
return [x3, y4];
|
|
708
|
+
});
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
function graticuleY(x05, x12, dx) {
|
|
712
|
+
var x3 = range(x05, x12 - epsilon, dx).concat(x12);
|
|
713
|
+
return function(y3) {
|
|
714
|
+
return x3.map(function(x4) {
|
|
715
|
+
return [x4, y3];
|
|
716
|
+
});
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
function graticule() {
|
|
720
|
+
var x12, x05, X12, X02, y12, y05, Y12, Y02, dx = 10, dy = dx, DX = 90, DY = 360, x3, y3, X, Y, precision = 2.5;
|
|
721
|
+
function graticule2() {
|
|
722
|
+
return { type: "MultiLineString", coordinates: lines() };
|
|
723
|
+
}
|
|
724
|
+
function lines() {
|
|
725
|
+
return range(ceil(X02 / DX) * DX, X12, DX).map(X).concat(range(ceil(Y02 / DY) * DY, Y12, DY).map(Y)).concat(range(ceil(x05 / dx) * dx, x12, dx).filter(function(x4) {
|
|
726
|
+
return abs(x4 % DX) > epsilon;
|
|
727
|
+
}).map(x3)).concat(range(ceil(y05 / dy) * dy, y12, dy).filter(function(y4) {
|
|
728
|
+
return abs(y4 % DY) > epsilon;
|
|
729
|
+
}).map(y3));
|
|
730
|
+
}
|
|
731
|
+
graticule2.lines = function() {
|
|
732
|
+
return lines().map(function(coordinates2) {
|
|
733
|
+
return { type: "LineString", coordinates: coordinates2 };
|
|
734
|
+
});
|
|
735
|
+
};
|
|
736
|
+
graticule2.outline = function() {
|
|
737
|
+
return {
|
|
738
|
+
type: "Polygon",
|
|
739
|
+
coordinates: [
|
|
740
|
+
X(X02).concat(
|
|
741
|
+
Y(Y12).slice(1),
|
|
742
|
+
X(X12).reverse().slice(1),
|
|
743
|
+
Y(Y02).reverse().slice(1)
|
|
744
|
+
)
|
|
745
|
+
]
|
|
746
|
+
};
|
|
747
|
+
};
|
|
748
|
+
graticule2.extent = function(_) {
|
|
749
|
+
if (!arguments.length) return graticule2.extentMinor();
|
|
750
|
+
return graticule2.extentMajor(_).extentMinor(_);
|
|
751
|
+
};
|
|
752
|
+
graticule2.extentMajor = function(_) {
|
|
753
|
+
if (!arguments.length) return [[X02, Y02], [X12, Y12]];
|
|
754
|
+
X02 = +_[0][0], X12 = +_[1][0];
|
|
755
|
+
Y02 = +_[0][1], Y12 = +_[1][1];
|
|
756
|
+
if (X02 > X12) _ = X02, X02 = X12, X12 = _;
|
|
757
|
+
if (Y02 > Y12) _ = Y02, Y02 = Y12, Y12 = _;
|
|
758
|
+
return graticule2.precision(precision);
|
|
759
|
+
};
|
|
760
|
+
graticule2.extentMinor = function(_) {
|
|
761
|
+
if (!arguments.length) return [[x05, y05], [x12, y12]];
|
|
762
|
+
x05 = +_[0][0], x12 = +_[1][0];
|
|
763
|
+
y05 = +_[0][1], y12 = +_[1][1];
|
|
764
|
+
if (x05 > x12) _ = x05, x05 = x12, x12 = _;
|
|
765
|
+
if (y05 > y12) _ = y05, y05 = y12, y12 = _;
|
|
766
|
+
return graticule2.precision(precision);
|
|
767
|
+
};
|
|
768
|
+
graticule2.step = function(_) {
|
|
769
|
+
if (!arguments.length) return graticule2.stepMinor();
|
|
770
|
+
return graticule2.stepMajor(_).stepMinor(_);
|
|
771
|
+
};
|
|
772
|
+
graticule2.stepMajor = function(_) {
|
|
773
|
+
if (!arguments.length) return [DX, DY];
|
|
774
|
+
DX = +_[0], DY = +_[1];
|
|
775
|
+
return graticule2;
|
|
776
|
+
};
|
|
777
|
+
graticule2.stepMinor = function(_) {
|
|
778
|
+
if (!arguments.length) return [dx, dy];
|
|
779
|
+
dx = +_[0], dy = +_[1];
|
|
780
|
+
return graticule2;
|
|
781
|
+
};
|
|
782
|
+
graticule2.precision = function(_) {
|
|
783
|
+
if (!arguments.length) return precision;
|
|
784
|
+
precision = +_;
|
|
785
|
+
x3 = graticuleX(y05, y12, 90);
|
|
786
|
+
y3 = graticuleY(x05, x12, precision);
|
|
787
|
+
X = graticuleX(Y02, Y12, 90);
|
|
788
|
+
Y = graticuleY(X02, X12, precision);
|
|
789
|
+
return graticule2;
|
|
790
|
+
};
|
|
791
|
+
return graticule2.extentMajor([[-180, -90 + epsilon], [180, 90 - epsilon]]).extentMinor([[-180, -80 - epsilon], [180, 80 + epsilon]]);
|
|
792
|
+
}
|
|
793
|
+
function graticule10() {
|
|
794
|
+
return graticule()();
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
// ../node_modules/d3-geo/src/identity.js
|
|
798
|
+
var identity_default = (x3) => x3;
|
|
799
|
+
|
|
800
|
+
// ../node_modules/d3-geo/src/stream.js
|
|
801
|
+
function streamGeometry(geometry, stream) {
|
|
802
|
+
if (geometry && streamGeometryType.hasOwnProperty(geometry.type)) {
|
|
803
|
+
streamGeometryType[geometry.type](geometry, stream);
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
var streamObjectType = {
|
|
807
|
+
Feature: function(object2, stream) {
|
|
808
|
+
streamGeometry(object2.geometry, stream);
|
|
809
|
+
},
|
|
810
|
+
FeatureCollection: function(object2, stream) {
|
|
811
|
+
var features = object2.features, i = -1, n = features.length;
|
|
812
|
+
while (++i < n) streamGeometry(features[i].geometry, stream);
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
var streamGeometryType = {
|
|
816
|
+
Sphere: function(object2, stream) {
|
|
817
|
+
stream.sphere();
|
|
818
|
+
},
|
|
819
|
+
Point: function(object2, stream) {
|
|
820
|
+
object2 = object2.coordinates;
|
|
821
|
+
stream.point(object2[0], object2[1], object2[2]);
|
|
822
|
+
},
|
|
823
|
+
MultiPoint: function(object2, stream) {
|
|
824
|
+
var coordinates2 = object2.coordinates, i = -1, n = coordinates2.length;
|
|
825
|
+
while (++i < n) object2 = coordinates2[i], stream.point(object2[0], object2[1], object2[2]);
|
|
826
|
+
},
|
|
827
|
+
LineString: function(object2, stream) {
|
|
828
|
+
streamLine(object2.coordinates, stream, 0);
|
|
829
|
+
},
|
|
830
|
+
MultiLineString: function(object2, stream) {
|
|
831
|
+
var coordinates2 = object2.coordinates, i = -1, n = coordinates2.length;
|
|
832
|
+
while (++i < n) streamLine(coordinates2[i], stream, 0);
|
|
833
|
+
},
|
|
834
|
+
Polygon: function(object2, stream) {
|
|
835
|
+
streamPolygon(object2.coordinates, stream);
|
|
836
|
+
},
|
|
837
|
+
MultiPolygon: function(object2, stream) {
|
|
838
|
+
var coordinates2 = object2.coordinates, i = -1, n = coordinates2.length;
|
|
839
|
+
while (++i < n) streamPolygon(coordinates2[i], stream);
|
|
840
|
+
},
|
|
841
|
+
GeometryCollection: function(object2, stream) {
|
|
842
|
+
var geometries = object2.geometries, i = -1, n = geometries.length;
|
|
843
|
+
while (++i < n) streamGeometry(geometries[i], stream);
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
function streamLine(coordinates2, stream, closed) {
|
|
847
|
+
var i = -1, n = coordinates2.length - closed, coordinate;
|
|
848
|
+
stream.lineStart();
|
|
849
|
+
while (++i < n) coordinate = coordinates2[i], stream.point(coordinate[0], coordinate[1], coordinate[2]);
|
|
850
|
+
stream.lineEnd();
|
|
851
|
+
}
|
|
852
|
+
function streamPolygon(coordinates2, stream) {
|
|
853
|
+
var i = -1, n = coordinates2.length;
|
|
854
|
+
stream.polygonStart();
|
|
855
|
+
while (++i < n) streamLine(coordinates2[i], stream, 1);
|
|
856
|
+
stream.polygonEnd();
|
|
857
|
+
}
|
|
858
|
+
function stream_default(object2, stream) {
|
|
859
|
+
if (object2 && streamObjectType.hasOwnProperty(object2.type)) {
|
|
860
|
+
streamObjectType[object2.type](object2, stream);
|
|
861
|
+
} else {
|
|
862
|
+
streamGeometry(object2, stream);
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
866
|
+
// ../node_modules/d3-geo/src/noop.js
|
|
867
|
+
function noop() {
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
// ../node_modules/d3-geo/src/path/area.js
|
|
871
|
+
var areaSum = new Adder();
|
|
872
|
+
var areaRingSum = new Adder();
|
|
873
|
+
var x00;
|
|
874
|
+
var y00;
|
|
875
|
+
var x0;
|
|
876
|
+
var y0;
|
|
877
|
+
var areaStream = {
|
|
878
|
+
point: noop,
|
|
879
|
+
lineStart: noop,
|
|
880
|
+
lineEnd: noop,
|
|
881
|
+
polygonStart: function() {
|
|
882
|
+
areaStream.lineStart = areaRingStart;
|
|
883
|
+
areaStream.lineEnd = areaRingEnd;
|
|
884
|
+
},
|
|
885
|
+
polygonEnd: function() {
|
|
886
|
+
areaStream.lineStart = areaStream.lineEnd = areaStream.point = noop;
|
|
887
|
+
areaSum.add(abs(areaRingSum));
|
|
888
|
+
areaRingSum = new Adder();
|
|
889
|
+
},
|
|
890
|
+
result: function() {
|
|
891
|
+
var area = areaSum / 2;
|
|
892
|
+
areaSum = new Adder();
|
|
893
|
+
return area;
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
function areaRingStart() {
|
|
897
|
+
areaStream.point = areaPointFirst;
|
|
898
|
+
}
|
|
899
|
+
function areaPointFirst(x3, y3) {
|
|
900
|
+
areaStream.point = areaPoint;
|
|
901
|
+
x00 = x0 = x3, y00 = y0 = y3;
|
|
902
|
+
}
|
|
903
|
+
function areaPoint(x3, y3) {
|
|
904
|
+
areaRingSum.add(y0 * x3 - x0 * y3);
|
|
905
|
+
x0 = x3, y0 = y3;
|
|
906
|
+
}
|
|
907
|
+
function areaRingEnd() {
|
|
908
|
+
areaPoint(x00, y00);
|
|
909
|
+
}
|
|
910
|
+
var area_default = areaStream;
|
|
911
|
+
|
|
912
|
+
// ../node_modules/d3-geo/src/path/bounds.js
|
|
913
|
+
var x02 = Infinity;
|
|
914
|
+
var y02 = x02;
|
|
915
|
+
var x1 = -x02;
|
|
916
|
+
var y1 = x1;
|
|
917
|
+
var boundsStream = {
|
|
918
|
+
point: boundsPoint,
|
|
919
|
+
lineStart: noop,
|
|
920
|
+
lineEnd: noop,
|
|
921
|
+
polygonStart: noop,
|
|
922
|
+
polygonEnd: noop,
|
|
923
|
+
result: function() {
|
|
924
|
+
var bounds = [[x02, y02], [x1, y1]];
|
|
925
|
+
x1 = y1 = -(y02 = x02 = Infinity);
|
|
926
|
+
return bounds;
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
function boundsPoint(x3, y3) {
|
|
930
|
+
if (x3 < x02) x02 = x3;
|
|
931
|
+
if (x3 > x1) x1 = x3;
|
|
932
|
+
if (y3 < y02) y02 = y3;
|
|
933
|
+
if (y3 > y1) y1 = y3;
|
|
934
|
+
}
|
|
935
|
+
var bounds_default = boundsStream;
|
|
936
|
+
|
|
937
|
+
// ../node_modules/d3-geo/src/path/centroid.js
|
|
938
|
+
var X0 = 0;
|
|
939
|
+
var Y0 = 0;
|
|
940
|
+
var Z0 = 0;
|
|
941
|
+
var X1 = 0;
|
|
942
|
+
var Y1 = 0;
|
|
943
|
+
var Z1 = 0;
|
|
944
|
+
var X2 = 0;
|
|
945
|
+
var Y2 = 0;
|
|
946
|
+
var Z2 = 0;
|
|
947
|
+
var x002;
|
|
948
|
+
var y002;
|
|
949
|
+
var x03;
|
|
950
|
+
var y03;
|
|
951
|
+
var centroidStream = {
|
|
952
|
+
point: centroidPoint,
|
|
953
|
+
lineStart: centroidLineStart,
|
|
954
|
+
lineEnd: centroidLineEnd,
|
|
955
|
+
polygonStart: function() {
|
|
956
|
+
centroidStream.lineStart = centroidRingStart;
|
|
957
|
+
centroidStream.lineEnd = centroidRingEnd;
|
|
958
|
+
},
|
|
959
|
+
polygonEnd: function() {
|
|
960
|
+
centroidStream.point = centroidPoint;
|
|
961
|
+
centroidStream.lineStart = centroidLineStart;
|
|
962
|
+
centroidStream.lineEnd = centroidLineEnd;
|
|
963
|
+
},
|
|
964
|
+
result: function() {
|
|
965
|
+
var centroid = Z2 ? [X2 / Z2, Y2 / Z2] : Z1 ? [X1 / Z1, Y1 / Z1] : Z0 ? [X0 / Z0, Y0 / Z0] : [NaN, NaN];
|
|
966
|
+
X0 = Y0 = Z0 = X1 = Y1 = Z1 = X2 = Y2 = Z2 = 0;
|
|
967
|
+
return centroid;
|
|
968
|
+
}
|
|
969
|
+
};
|
|
970
|
+
function centroidPoint(x3, y3) {
|
|
971
|
+
X0 += x3;
|
|
972
|
+
Y0 += y3;
|
|
973
|
+
++Z0;
|
|
974
|
+
}
|
|
975
|
+
function centroidLineStart() {
|
|
976
|
+
centroidStream.point = centroidPointFirstLine;
|
|
977
|
+
}
|
|
978
|
+
function centroidPointFirstLine(x3, y3) {
|
|
979
|
+
centroidStream.point = centroidPointLine;
|
|
980
|
+
centroidPoint(x03 = x3, y03 = y3);
|
|
981
|
+
}
|
|
982
|
+
function centroidPointLine(x3, y3) {
|
|
983
|
+
var dx = x3 - x03, dy = y3 - y03, z = sqrt(dx * dx + dy * dy);
|
|
984
|
+
X1 += z * (x03 + x3) / 2;
|
|
985
|
+
Y1 += z * (y03 + y3) / 2;
|
|
986
|
+
Z1 += z;
|
|
987
|
+
centroidPoint(x03 = x3, y03 = y3);
|
|
988
|
+
}
|
|
989
|
+
function centroidLineEnd() {
|
|
990
|
+
centroidStream.point = centroidPoint;
|
|
991
|
+
}
|
|
992
|
+
function centroidRingStart() {
|
|
993
|
+
centroidStream.point = centroidPointFirstRing;
|
|
994
|
+
}
|
|
995
|
+
function centroidRingEnd() {
|
|
996
|
+
centroidPointRing(x002, y002);
|
|
997
|
+
}
|
|
998
|
+
function centroidPointFirstRing(x3, y3) {
|
|
999
|
+
centroidStream.point = centroidPointRing;
|
|
1000
|
+
centroidPoint(x002 = x03 = x3, y002 = y03 = y3);
|
|
1001
|
+
}
|
|
1002
|
+
function centroidPointRing(x3, y3) {
|
|
1003
|
+
var dx = x3 - x03, dy = y3 - y03, z = sqrt(dx * dx + dy * dy);
|
|
1004
|
+
X1 += z * (x03 + x3) / 2;
|
|
1005
|
+
Y1 += z * (y03 + y3) / 2;
|
|
1006
|
+
Z1 += z;
|
|
1007
|
+
z = y03 * x3 - x03 * y3;
|
|
1008
|
+
X2 += z * (x03 + x3);
|
|
1009
|
+
Y2 += z * (y03 + y3);
|
|
1010
|
+
Z2 += z * 3;
|
|
1011
|
+
centroidPoint(x03 = x3, y03 = y3);
|
|
1012
|
+
}
|
|
1013
|
+
var centroid_default = centroidStream;
|
|
1014
|
+
|
|
1015
|
+
// ../node_modules/d3-geo/src/path/context.js
|
|
1016
|
+
function PathContext(context) {
|
|
1017
|
+
this._context = context;
|
|
1018
|
+
}
|
|
1019
|
+
PathContext.prototype = {
|
|
1020
|
+
_radius: 4.5,
|
|
1021
|
+
pointRadius: function(_) {
|
|
1022
|
+
return this._radius = _, this;
|
|
1023
|
+
},
|
|
1024
|
+
polygonStart: function() {
|
|
1025
|
+
this._line = 0;
|
|
1026
|
+
},
|
|
1027
|
+
polygonEnd: function() {
|
|
1028
|
+
this._line = NaN;
|
|
1029
|
+
},
|
|
1030
|
+
lineStart: function() {
|
|
1031
|
+
this._point = 0;
|
|
1032
|
+
},
|
|
1033
|
+
lineEnd: function() {
|
|
1034
|
+
if (this._line === 0) this._context.closePath();
|
|
1035
|
+
this._point = NaN;
|
|
1036
|
+
},
|
|
1037
|
+
point: function(x3, y3) {
|
|
1038
|
+
switch (this._point) {
|
|
1039
|
+
case 0: {
|
|
1040
|
+
this._context.moveTo(x3, y3);
|
|
1041
|
+
this._point = 1;
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
case 1: {
|
|
1045
|
+
this._context.lineTo(x3, y3);
|
|
1046
|
+
break;
|
|
1047
|
+
}
|
|
1048
|
+
default: {
|
|
1049
|
+
this._context.moveTo(x3 + this._radius, y3);
|
|
1050
|
+
this._context.arc(x3, y3, this._radius, 0, tau);
|
|
1051
|
+
break;
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
},
|
|
1055
|
+
result: noop
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
// ../node_modules/d3-geo/src/path/measure.js
|
|
1059
|
+
var lengthSum = new Adder();
|
|
1060
|
+
var lengthRing;
|
|
1061
|
+
var x003;
|
|
1062
|
+
var y003;
|
|
1063
|
+
var x04;
|
|
1064
|
+
var y04;
|
|
1065
|
+
var lengthStream = {
|
|
1066
|
+
point: noop,
|
|
1067
|
+
lineStart: function() {
|
|
1068
|
+
lengthStream.point = lengthPointFirst;
|
|
1069
|
+
},
|
|
1070
|
+
lineEnd: function() {
|
|
1071
|
+
if (lengthRing) lengthPoint(x003, y003);
|
|
1072
|
+
lengthStream.point = noop;
|
|
1073
|
+
},
|
|
1074
|
+
polygonStart: function() {
|
|
1075
|
+
lengthRing = true;
|
|
1076
|
+
},
|
|
1077
|
+
polygonEnd: function() {
|
|
1078
|
+
lengthRing = null;
|
|
1079
|
+
},
|
|
1080
|
+
result: function() {
|
|
1081
|
+
var length = +lengthSum;
|
|
1082
|
+
lengthSum = new Adder();
|
|
1083
|
+
return length;
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
function lengthPointFirst(x3, y3) {
|
|
1087
|
+
lengthStream.point = lengthPoint;
|
|
1088
|
+
x003 = x04 = x3, y003 = y04 = y3;
|
|
1089
|
+
}
|
|
1090
|
+
function lengthPoint(x3, y3) {
|
|
1091
|
+
x04 -= x3, y04 -= y3;
|
|
1092
|
+
lengthSum.add(sqrt(x04 * x04 + y04 * y04));
|
|
1093
|
+
x04 = x3, y04 = y3;
|
|
1094
|
+
}
|
|
1095
|
+
var measure_default = lengthStream;
|
|
1096
|
+
|
|
1097
|
+
// ../node_modules/d3-geo/src/path/string.js
|
|
1098
|
+
var cacheDigits;
|
|
1099
|
+
var cacheAppend;
|
|
1100
|
+
var cacheRadius;
|
|
1101
|
+
var cacheCircle;
|
|
1102
|
+
var PathString = class {
|
|
1103
|
+
constructor(digits) {
|
|
1104
|
+
this._append = digits == null ? append : appendRound(digits);
|
|
1105
|
+
this._radius = 4.5;
|
|
1106
|
+
this._ = "";
|
|
1107
|
+
}
|
|
1108
|
+
pointRadius(_) {
|
|
1109
|
+
this._radius = +_;
|
|
1110
|
+
return this;
|
|
1111
|
+
}
|
|
1112
|
+
polygonStart() {
|
|
1113
|
+
this._line = 0;
|
|
1114
|
+
}
|
|
1115
|
+
polygonEnd() {
|
|
1116
|
+
this._line = NaN;
|
|
1117
|
+
}
|
|
1118
|
+
lineStart() {
|
|
1119
|
+
this._point = 0;
|
|
1120
|
+
}
|
|
1121
|
+
lineEnd() {
|
|
1122
|
+
if (this._line === 0) this._ += "Z";
|
|
1123
|
+
this._point = NaN;
|
|
1124
|
+
}
|
|
1125
|
+
point(x3, y3) {
|
|
1126
|
+
switch (this._point) {
|
|
1127
|
+
case 0: {
|
|
1128
|
+
this._append`M${x3},${y3}`;
|
|
1129
|
+
this._point = 1;
|
|
1130
|
+
break;
|
|
1131
|
+
}
|
|
1132
|
+
case 1: {
|
|
1133
|
+
this._append`L${x3},${y3}`;
|
|
1134
|
+
break;
|
|
1135
|
+
}
|
|
1136
|
+
default: {
|
|
1137
|
+
this._append`M${x3},${y3}`;
|
|
1138
|
+
if (this._radius !== cacheRadius || this._append !== cacheAppend) {
|
|
1139
|
+
const r = this._radius;
|
|
1140
|
+
const s2 = this._;
|
|
1141
|
+
this._ = "";
|
|
1142
|
+
this._append`m0,${r}a${r},${r} 0 1,1 0,${-2 * r}a${r},${r} 0 1,1 0,${2 * r}z`;
|
|
1143
|
+
cacheRadius = r;
|
|
1144
|
+
cacheAppend = this._append;
|
|
1145
|
+
cacheCircle = this._;
|
|
1146
|
+
this._ = s2;
|
|
1147
|
+
}
|
|
1148
|
+
this._ += cacheCircle;
|
|
1149
|
+
break;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
result() {
|
|
1154
|
+
const result = this._;
|
|
1155
|
+
this._ = "";
|
|
1156
|
+
return result.length ? result : null;
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
function append(strings) {
|
|
1160
|
+
let i = 1;
|
|
1161
|
+
this._ += strings[0];
|
|
1162
|
+
for (const j = strings.length; i < j; ++i) {
|
|
1163
|
+
this._ += arguments[i] + strings[i];
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
function appendRound(digits) {
|
|
1167
|
+
const d = Math.floor(digits);
|
|
1168
|
+
if (!(d >= 0)) throw new RangeError(`invalid digits: ${digits}`);
|
|
1169
|
+
if (d > 15) return append;
|
|
1170
|
+
if (d !== cacheDigits) {
|
|
1171
|
+
const k2 = 10 ** d;
|
|
1172
|
+
cacheDigits = d;
|
|
1173
|
+
cacheAppend = function append3(strings) {
|
|
1174
|
+
let i = 1;
|
|
1175
|
+
this._ += strings[0];
|
|
1176
|
+
for (const j = strings.length; i < j; ++i) {
|
|
1177
|
+
this._ += Math.round(arguments[i] * k2) / k2 + strings[i];
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
}
|
|
1181
|
+
return cacheAppend;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
// ../node_modules/d3-geo/src/path/index.js
|
|
1185
|
+
function path_default(projection2, context) {
|
|
1186
|
+
let digits = 3, pointRadius = 4.5, projectionStream, contextStream;
|
|
1187
|
+
function path2(object2) {
|
|
1188
|
+
if (object2) {
|
|
1189
|
+
if (typeof pointRadius === "function") contextStream.pointRadius(+pointRadius.apply(this, arguments));
|
|
1190
|
+
stream_default(object2, projectionStream(contextStream));
|
|
1191
|
+
}
|
|
1192
|
+
return contextStream.result();
|
|
1193
|
+
}
|
|
1194
|
+
path2.area = function(object2) {
|
|
1195
|
+
stream_default(object2, projectionStream(area_default));
|
|
1196
|
+
return area_default.result();
|
|
1197
|
+
};
|
|
1198
|
+
path2.measure = function(object2) {
|
|
1199
|
+
stream_default(object2, projectionStream(measure_default));
|
|
1200
|
+
return measure_default.result();
|
|
1201
|
+
};
|
|
1202
|
+
path2.bounds = function(object2) {
|
|
1203
|
+
stream_default(object2, projectionStream(bounds_default));
|
|
1204
|
+
return bounds_default.result();
|
|
1205
|
+
};
|
|
1206
|
+
path2.centroid = function(object2) {
|
|
1207
|
+
stream_default(object2, projectionStream(centroid_default));
|
|
1208
|
+
return centroid_default.result();
|
|
1209
|
+
};
|
|
1210
|
+
path2.projection = function(_) {
|
|
1211
|
+
if (!arguments.length) return projection2;
|
|
1212
|
+
projectionStream = _ == null ? (projection2 = null, identity_default) : (projection2 = _).stream;
|
|
1213
|
+
return path2;
|
|
1214
|
+
};
|
|
1215
|
+
path2.context = function(_) {
|
|
1216
|
+
if (!arguments.length) return context;
|
|
1217
|
+
contextStream = _ == null ? (context = null, new PathString(digits)) : new PathContext(context = _);
|
|
1218
|
+
if (typeof pointRadius !== "function") contextStream.pointRadius(pointRadius);
|
|
1219
|
+
return path2;
|
|
1220
|
+
};
|
|
1221
|
+
path2.pointRadius = function(_) {
|
|
1222
|
+
if (!arguments.length) return pointRadius;
|
|
1223
|
+
pointRadius = typeof _ === "function" ? _ : (contextStream.pointRadius(+_), +_);
|
|
1224
|
+
return path2;
|
|
1225
|
+
};
|
|
1226
|
+
path2.digits = function(_) {
|
|
1227
|
+
if (!arguments.length) return digits;
|
|
1228
|
+
if (_ == null) digits = null;
|
|
1229
|
+
else {
|
|
1230
|
+
const d = Math.floor(_);
|
|
1231
|
+
if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
|
|
1232
|
+
digits = d;
|
|
1233
|
+
}
|
|
1234
|
+
if (context === null) contextStream = new PathString(digits);
|
|
1235
|
+
return path2;
|
|
1236
|
+
};
|
|
1237
|
+
return path2.projection(projection2).digits(digits).context(context);
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
// ../node_modules/d3-geo/src/cartesian.js
|
|
1241
|
+
function spherical(cartesian2) {
|
|
1242
|
+
return [atan2(cartesian2[1], cartesian2[0]), asin(cartesian2[2])];
|
|
1243
|
+
}
|
|
1244
|
+
function cartesian(spherical2) {
|
|
1245
|
+
var lambda = spherical2[0], phi = spherical2[1], cosPhi = cos(phi);
|
|
1246
|
+
return [cosPhi * cos(lambda), cosPhi * sin(lambda), sin(phi)];
|
|
1247
|
+
}
|
|
1248
|
+
function cartesianDot(a3, b) {
|
|
1249
|
+
return a3[0] * b[0] + a3[1] * b[1] + a3[2] * b[2];
|
|
1250
|
+
}
|
|
1251
|
+
function cartesianCross(a3, b) {
|
|
1252
|
+
return [a3[1] * b[2] - a3[2] * b[1], a3[2] * b[0] - a3[0] * b[2], a3[0] * b[1] - a3[1] * b[0]];
|
|
1253
|
+
}
|
|
1254
|
+
function cartesianAddInPlace(a3, b) {
|
|
1255
|
+
a3[0] += b[0], a3[1] += b[1], a3[2] += b[2];
|
|
1256
|
+
}
|
|
1257
|
+
function cartesianScale(vector, k2) {
|
|
1258
|
+
return [vector[0] * k2, vector[1] * k2, vector[2] * k2];
|
|
1259
|
+
}
|
|
1260
|
+
function cartesianNormalizeInPlace(d) {
|
|
1261
|
+
var l = sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
|
|
1262
|
+
d[0] /= l, d[1] /= l, d[2] /= l;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
// ../node_modules/d3-geo/src/compose.js
|
|
1266
|
+
function compose_default(a3, b) {
|
|
1267
|
+
function compose(x3, y3) {
|
|
1268
|
+
return x3 = a3(x3, y3), b(x3[0], x3[1]);
|
|
1269
|
+
}
|
|
1270
|
+
if (a3.invert && b.invert) compose.invert = function(x3, y3) {
|
|
1271
|
+
return x3 = b.invert(x3, y3), x3 && a3.invert(x3[0], x3[1]);
|
|
1272
|
+
};
|
|
1273
|
+
return compose;
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
// ../node_modules/d3-geo/src/rotation.js
|
|
1277
|
+
function rotationIdentity(lambda, phi) {
|
|
1278
|
+
if (abs(lambda) > pi) lambda -= Math.round(lambda / tau) * tau;
|
|
1279
|
+
return [lambda, phi];
|
|
1280
|
+
}
|
|
1281
|
+
rotationIdentity.invert = rotationIdentity;
|
|
1282
|
+
function rotateRadians(deltaLambda, deltaPhi, deltaGamma) {
|
|
1283
|
+
return (deltaLambda %= tau) ? deltaPhi || deltaGamma ? compose_default(rotationLambda(deltaLambda), rotationPhiGamma(deltaPhi, deltaGamma)) : rotationLambda(deltaLambda) : deltaPhi || deltaGamma ? rotationPhiGamma(deltaPhi, deltaGamma) : rotationIdentity;
|
|
1284
|
+
}
|
|
1285
|
+
function forwardRotationLambda(deltaLambda) {
|
|
1286
|
+
return function(lambda, phi) {
|
|
1287
|
+
lambda += deltaLambda;
|
|
1288
|
+
if (abs(lambda) > pi) lambda -= Math.round(lambda / tau) * tau;
|
|
1289
|
+
return [lambda, phi];
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function rotationLambda(deltaLambda) {
|
|
1293
|
+
var rotation = forwardRotationLambda(deltaLambda);
|
|
1294
|
+
rotation.invert = forwardRotationLambda(-deltaLambda);
|
|
1295
|
+
return rotation;
|
|
1296
|
+
}
|
|
1297
|
+
function rotationPhiGamma(deltaPhi, deltaGamma) {
|
|
1298
|
+
var cosDeltaPhi = cos(deltaPhi), sinDeltaPhi = sin(deltaPhi), cosDeltaGamma = cos(deltaGamma), sinDeltaGamma = sin(deltaGamma);
|
|
1299
|
+
function rotation(lambda, phi) {
|
|
1300
|
+
var cosPhi = cos(phi), x3 = cos(lambda) * cosPhi, y3 = sin(lambda) * cosPhi, z = sin(phi), k2 = z * cosDeltaPhi + x3 * sinDeltaPhi;
|
|
1301
|
+
return [
|
|
1302
|
+
atan2(y3 * cosDeltaGamma - k2 * sinDeltaGamma, x3 * cosDeltaPhi - z * sinDeltaPhi),
|
|
1303
|
+
asin(k2 * cosDeltaGamma + y3 * sinDeltaGamma)
|
|
1304
|
+
];
|
|
1305
|
+
}
|
|
1306
|
+
rotation.invert = function(lambda, phi) {
|
|
1307
|
+
var cosPhi = cos(phi), x3 = cos(lambda) * cosPhi, y3 = sin(lambda) * cosPhi, z = sin(phi), k2 = z * cosDeltaGamma - y3 * sinDeltaGamma;
|
|
1308
|
+
return [
|
|
1309
|
+
atan2(y3 * cosDeltaGamma + z * sinDeltaGamma, x3 * cosDeltaPhi + k2 * sinDeltaPhi),
|
|
1310
|
+
asin(k2 * cosDeltaPhi - x3 * sinDeltaPhi)
|
|
1311
|
+
];
|
|
1312
|
+
};
|
|
1313
|
+
return rotation;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
// ../node_modules/d3-geo/src/circle.js
|
|
1317
|
+
function circleStream(stream, radius, delta, direction, t0, t1) {
|
|
1318
|
+
if (!delta) return;
|
|
1319
|
+
var cosRadius = cos(radius), sinRadius = sin(radius), step = direction * delta;
|
|
1320
|
+
if (t0 == null) {
|
|
1321
|
+
t0 = radius + direction * tau;
|
|
1322
|
+
t1 = radius - step / 2;
|
|
1323
|
+
} else {
|
|
1324
|
+
t0 = circleRadius(cosRadius, t0);
|
|
1325
|
+
t1 = circleRadius(cosRadius, t1);
|
|
1326
|
+
if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;
|
|
1327
|
+
}
|
|
1328
|
+
for (var point3, t = t0; direction > 0 ? t > t1 : t < t1; t -= step) {
|
|
1329
|
+
point3 = spherical([cosRadius, -sinRadius * cos(t), -sinRadius * sin(t)]);
|
|
1330
|
+
stream.point(point3[0], point3[1]);
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
function circleRadius(cosRadius, point3) {
|
|
1334
|
+
point3 = cartesian(point3), point3[0] -= cosRadius;
|
|
1335
|
+
cartesianNormalizeInPlace(point3);
|
|
1336
|
+
var radius = acos(-point3[1]);
|
|
1337
|
+
return ((-point3[2] < 0 ? -radius : radius) + tau - epsilon) % tau;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
// ../node_modules/d3-geo/src/clip/buffer.js
|
|
1341
|
+
function buffer_default() {
|
|
1342
|
+
var lines = [], line;
|
|
1343
|
+
return {
|
|
1344
|
+
point: function(x3, y3, m2) {
|
|
1345
|
+
line.push([x3, y3, m2]);
|
|
1346
|
+
},
|
|
1347
|
+
lineStart: function() {
|
|
1348
|
+
lines.push(line = []);
|
|
1349
|
+
},
|
|
1350
|
+
lineEnd: noop,
|
|
1351
|
+
rejoin: function() {
|
|
1352
|
+
if (lines.length > 1) lines.push(lines.pop().concat(lines.shift()));
|
|
1353
|
+
},
|
|
1354
|
+
result: function() {
|
|
1355
|
+
var result = lines;
|
|
1356
|
+
lines = [];
|
|
1357
|
+
line = null;
|
|
1358
|
+
return result;
|
|
1359
|
+
}
|
|
1360
|
+
};
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
// ../node_modules/d3-geo/src/pointEqual.js
|
|
1364
|
+
function pointEqual_default(a3, b) {
|
|
1365
|
+
return abs(a3[0] - b[0]) < epsilon && abs(a3[1] - b[1]) < epsilon;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
// ../node_modules/d3-geo/src/clip/rejoin.js
|
|
1369
|
+
function Intersection(point3, points, other, entry) {
|
|
1370
|
+
this.x = point3;
|
|
1371
|
+
this.z = points;
|
|
1372
|
+
this.o = other;
|
|
1373
|
+
this.e = entry;
|
|
1374
|
+
this.v = false;
|
|
1375
|
+
this.n = this.p = null;
|
|
1376
|
+
}
|
|
1377
|
+
function rejoin_default(segments, compareIntersection2, startInside, interpolate, stream) {
|
|
1378
|
+
var subject = [], clip = [], i, n;
|
|
1379
|
+
segments.forEach(function(segment) {
|
|
1380
|
+
if ((n2 = segment.length - 1) <= 0) return;
|
|
1381
|
+
var n2, p0 = segment[0], p1 = segment[n2], x3;
|
|
1382
|
+
if (pointEqual_default(p0, p1)) {
|
|
1383
|
+
if (!p0[2] && !p1[2]) {
|
|
1384
|
+
stream.lineStart();
|
|
1385
|
+
for (i = 0; i < n2; ++i) stream.point((p0 = segment[i])[0], p0[1]);
|
|
1386
|
+
stream.lineEnd();
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1389
|
+
p1[0] += 2 * epsilon;
|
|
1390
|
+
}
|
|
1391
|
+
subject.push(x3 = new Intersection(p0, segment, null, true));
|
|
1392
|
+
clip.push(x3.o = new Intersection(p0, null, x3, false));
|
|
1393
|
+
subject.push(x3 = new Intersection(p1, segment, null, false));
|
|
1394
|
+
clip.push(x3.o = new Intersection(p1, null, x3, true));
|
|
1395
|
+
});
|
|
1396
|
+
if (!subject.length) return;
|
|
1397
|
+
clip.sort(compareIntersection2);
|
|
1398
|
+
link(subject);
|
|
1399
|
+
link(clip);
|
|
1400
|
+
for (i = 0, n = clip.length; i < n; ++i) {
|
|
1401
|
+
clip[i].e = startInside = !startInside;
|
|
1402
|
+
}
|
|
1403
|
+
var start = subject[0], points, point3;
|
|
1404
|
+
while (1) {
|
|
1405
|
+
var current = start, isSubject = true;
|
|
1406
|
+
while (current.v) if ((current = current.n) === start) return;
|
|
1407
|
+
points = current.z;
|
|
1408
|
+
stream.lineStart();
|
|
1409
|
+
do {
|
|
1410
|
+
current.v = current.o.v = true;
|
|
1411
|
+
if (current.e) {
|
|
1412
|
+
if (isSubject) {
|
|
1413
|
+
for (i = 0, n = points.length; i < n; ++i) stream.point((point3 = points[i])[0], point3[1]);
|
|
1414
|
+
} else {
|
|
1415
|
+
interpolate(current.x, current.n.x, 1, stream);
|
|
1416
|
+
}
|
|
1417
|
+
current = current.n;
|
|
1418
|
+
} else {
|
|
1419
|
+
if (isSubject) {
|
|
1420
|
+
points = current.p.z;
|
|
1421
|
+
for (i = points.length - 1; i >= 0; --i) stream.point((point3 = points[i])[0], point3[1]);
|
|
1422
|
+
} else {
|
|
1423
|
+
interpolate(current.x, current.p.x, -1, stream);
|
|
1424
|
+
}
|
|
1425
|
+
current = current.p;
|
|
1426
|
+
}
|
|
1427
|
+
current = current.o;
|
|
1428
|
+
points = current.z;
|
|
1429
|
+
isSubject = !isSubject;
|
|
1430
|
+
} while (!current.v);
|
|
1431
|
+
stream.lineEnd();
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
function link(array2) {
|
|
1435
|
+
if (!(n = array2.length)) return;
|
|
1436
|
+
var n, i = 0, a3 = array2[0], b;
|
|
1437
|
+
while (++i < n) {
|
|
1438
|
+
a3.n = b = array2[i];
|
|
1439
|
+
b.p = a3;
|
|
1440
|
+
a3 = b;
|
|
1441
|
+
}
|
|
1442
|
+
a3.n = b = array2[0];
|
|
1443
|
+
b.p = a3;
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
// ../node_modules/d3-geo/src/polygonContains.js
|
|
1447
|
+
function longitude(point3) {
|
|
1448
|
+
return abs(point3[0]) <= pi ? point3[0] : sign(point3[0]) * ((abs(point3[0]) + pi) % tau - pi);
|
|
1449
|
+
}
|
|
1450
|
+
function polygonContains_default(polygon, point3) {
|
|
1451
|
+
var lambda = longitude(point3), phi = point3[1], sinPhi = sin(phi), normal = [sin(lambda), -cos(lambda), 0], angle = 0, winding = 0;
|
|
1452
|
+
var sum = new Adder();
|
|
1453
|
+
if (sinPhi === 1) phi = halfPi + epsilon;
|
|
1454
|
+
else if (sinPhi === -1) phi = -halfPi - epsilon;
|
|
1455
|
+
for (var i = 0, n = polygon.length; i < n; ++i) {
|
|
1456
|
+
if (!(m2 = (ring = polygon[i]).length)) continue;
|
|
1457
|
+
var ring, m2, point0 = ring[m2 - 1], lambda02 = longitude(point0), phi0 = point0[1] / 2 + quarterPi, sinPhi02 = sin(phi0), cosPhi02 = cos(phi0);
|
|
1458
|
+
for (var j = 0; j < m2; ++j, lambda02 = lambda1, sinPhi02 = sinPhi1, cosPhi02 = cosPhi1, point0 = point1) {
|
|
1459
|
+
var point1 = ring[j], lambda1 = longitude(point1), phi1 = point1[1] / 2 + quarterPi, sinPhi1 = sin(phi1), cosPhi1 = cos(phi1), delta = lambda1 - lambda02, sign3 = delta >= 0 ? 1 : -1, absDelta = sign3 * delta, antimeridian = absDelta > pi, k2 = sinPhi02 * sinPhi1;
|
|
1460
|
+
sum.add(atan2(k2 * sign3 * sin(absDelta), cosPhi02 * cosPhi1 + k2 * cos(absDelta)));
|
|
1461
|
+
angle += antimeridian ? delta + sign3 * tau : delta;
|
|
1462
|
+
if (antimeridian ^ lambda02 >= lambda ^ lambda1 >= lambda) {
|
|
1463
|
+
var arc = cartesianCross(cartesian(point0), cartesian(point1));
|
|
1464
|
+
cartesianNormalizeInPlace(arc);
|
|
1465
|
+
var intersection = cartesianCross(normal, arc);
|
|
1466
|
+
cartesianNormalizeInPlace(intersection);
|
|
1467
|
+
var phiArc = (antimeridian ^ delta >= 0 ? -1 : 1) * asin(intersection[2]);
|
|
1468
|
+
if (phi > phiArc || phi === phiArc && (arc[0] || arc[1])) {
|
|
1469
|
+
winding += antimeridian ^ delta >= 0 ? 1 : -1;
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
return (angle < -epsilon || angle < epsilon && sum < -epsilon2) ^ winding & 1;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
// ../node_modules/d3-geo/src/clip/index.js
|
|
1478
|
+
function clip_default(pointVisible, clipLine, interpolate, start) {
|
|
1479
|
+
return function(sink) {
|
|
1480
|
+
var line = clipLine(sink), ringBuffer = buffer_default(), ringSink = clipLine(ringBuffer), polygonStarted = false, polygon, segments, ring;
|
|
1481
|
+
var clip = {
|
|
1482
|
+
point: point3,
|
|
1483
|
+
lineStart,
|
|
1484
|
+
lineEnd,
|
|
1485
|
+
polygonStart: function() {
|
|
1486
|
+
clip.point = pointRing;
|
|
1487
|
+
clip.lineStart = ringStart;
|
|
1488
|
+
clip.lineEnd = ringEnd;
|
|
1489
|
+
segments = [];
|
|
1490
|
+
polygon = [];
|
|
1491
|
+
},
|
|
1492
|
+
polygonEnd: function() {
|
|
1493
|
+
clip.point = point3;
|
|
1494
|
+
clip.lineStart = lineStart;
|
|
1495
|
+
clip.lineEnd = lineEnd;
|
|
1496
|
+
segments = merge(segments);
|
|
1497
|
+
var startInside = polygonContains_default(polygon, start);
|
|
1498
|
+
if (segments.length) {
|
|
1499
|
+
if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
|
|
1500
|
+
rejoin_default(segments, compareIntersection, startInside, interpolate, sink);
|
|
1501
|
+
} else if (startInside) {
|
|
1502
|
+
if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
|
|
1503
|
+
sink.lineStart();
|
|
1504
|
+
interpolate(null, null, 1, sink);
|
|
1505
|
+
sink.lineEnd();
|
|
1506
|
+
}
|
|
1507
|
+
if (polygonStarted) sink.polygonEnd(), polygonStarted = false;
|
|
1508
|
+
segments = polygon = null;
|
|
1509
|
+
},
|
|
1510
|
+
sphere: function() {
|
|
1511
|
+
sink.polygonStart();
|
|
1512
|
+
sink.lineStart();
|
|
1513
|
+
interpolate(null, null, 1, sink);
|
|
1514
|
+
sink.lineEnd();
|
|
1515
|
+
sink.polygonEnd();
|
|
1516
|
+
}
|
|
1517
|
+
};
|
|
1518
|
+
function point3(lambda, phi) {
|
|
1519
|
+
if (pointVisible(lambda, phi)) sink.point(lambda, phi);
|
|
1520
|
+
}
|
|
1521
|
+
function pointLine(lambda, phi) {
|
|
1522
|
+
line.point(lambda, phi);
|
|
1523
|
+
}
|
|
1524
|
+
function lineStart() {
|
|
1525
|
+
clip.point = pointLine;
|
|
1526
|
+
line.lineStart();
|
|
1527
|
+
}
|
|
1528
|
+
function lineEnd() {
|
|
1529
|
+
clip.point = point3;
|
|
1530
|
+
line.lineEnd();
|
|
1531
|
+
}
|
|
1532
|
+
function pointRing(lambda, phi) {
|
|
1533
|
+
ring.push([lambda, phi]);
|
|
1534
|
+
ringSink.point(lambda, phi);
|
|
1535
|
+
}
|
|
1536
|
+
function ringStart() {
|
|
1537
|
+
ringSink.lineStart();
|
|
1538
|
+
ring = [];
|
|
1539
|
+
}
|
|
1540
|
+
function ringEnd() {
|
|
1541
|
+
pointRing(ring[0][0], ring[0][1]);
|
|
1542
|
+
ringSink.lineEnd();
|
|
1543
|
+
var clean = ringSink.clean(), ringSegments = ringBuffer.result(), i, n = ringSegments.length, m2, segment, point4;
|
|
1544
|
+
ring.pop();
|
|
1545
|
+
polygon.push(ring);
|
|
1546
|
+
ring = null;
|
|
1547
|
+
if (!n) return;
|
|
1548
|
+
if (clean & 1) {
|
|
1549
|
+
segment = ringSegments[0];
|
|
1550
|
+
if ((m2 = segment.length - 1) > 0) {
|
|
1551
|
+
if (!polygonStarted) sink.polygonStart(), polygonStarted = true;
|
|
1552
|
+
sink.lineStart();
|
|
1553
|
+
for (i = 0; i < m2; ++i) sink.point((point4 = segment[i])[0], point4[1]);
|
|
1554
|
+
sink.lineEnd();
|
|
1555
|
+
}
|
|
1556
|
+
return;
|
|
1557
|
+
}
|
|
1558
|
+
if (n > 1 && clean & 2) ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
|
|
1559
|
+
segments.push(ringSegments.filter(validSegment));
|
|
1560
|
+
}
|
|
1561
|
+
return clip;
|
|
1562
|
+
};
|
|
1563
|
+
}
|
|
1564
|
+
function validSegment(segment) {
|
|
1565
|
+
return segment.length > 1;
|
|
1566
|
+
}
|
|
1567
|
+
function compareIntersection(a3, b) {
|
|
1568
|
+
return ((a3 = a3.x)[0] < 0 ? a3[1] - halfPi - epsilon : halfPi - a3[1]) - ((b = b.x)[0] < 0 ? b[1] - halfPi - epsilon : halfPi - b[1]);
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
// ../node_modules/d3-geo/src/clip/antimeridian.js
|
|
1572
|
+
var antimeridian_default = clip_default(
|
|
1573
|
+
function() {
|
|
1574
|
+
return true;
|
|
1575
|
+
},
|
|
1576
|
+
clipAntimeridianLine,
|
|
1577
|
+
clipAntimeridianInterpolate,
|
|
1578
|
+
[-pi, -halfPi]
|
|
1579
|
+
);
|
|
1580
|
+
function clipAntimeridianLine(stream) {
|
|
1581
|
+
var lambda02 = NaN, phi0 = NaN, sign0 = NaN, clean;
|
|
1582
|
+
return {
|
|
1583
|
+
lineStart: function() {
|
|
1584
|
+
stream.lineStart();
|
|
1585
|
+
clean = 1;
|
|
1586
|
+
},
|
|
1587
|
+
point: function(lambda1, phi1) {
|
|
1588
|
+
var sign1 = lambda1 > 0 ? pi : -pi, delta = abs(lambda1 - lambda02);
|
|
1589
|
+
if (abs(delta - pi) < epsilon) {
|
|
1590
|
+
stream.point(lambda02, phi0 = (phi0 + phi1) / 2 > 0 ? halfPi : -halfPi);
|
|
1591
|
+
stream.point(sign0, phi0);
|
|
1592
|
+
stream.lineEnd();
|
|
1593
|
+
stream.lineStart();
|
|
1594
|
+
stream.point(sign1, phi0);
|
|
1595
|
+
stream.point(lambda1, phi0);
|
|
1596
|
+
clean = 0;
|
|
1597
|
+
} else if (sign0 !== sign1 && delta >= pi) {
|
|
1598
|
+
if (abs(lambda02 - sign0) < epsilon) lambda02 -= sign0 * epsilon;
|
|
1599
|
+
if (abs(lambda1 - sign1) < epsilon) lambda1 -= sign1 * epsilon;
|
|
1600
|
+
phi0 = clipAntimeridianIntersect(lambda02, phi0, lambda1, phi1);
|
|
1601
|
+
stream.point(sign0, phi0);
|
|
1602
|
+
stream.lineEnd();
|
|
1603
|
+
stream.lineStart();
|
|
1604
|
+
stream.point(sign1, phi0);
|
|
1605
|
+
clean = 0;
|
|
1606
|
+
}
|
|
1607
|
+
stream.point(lambda02 = lambda1, phi0 = phi1);
|
|
1608
|
+
sign0 = sign1;
|
|
1609
|
+
},
|
|
1610
|
+
lineEnd: function() {
|
|
1611
|
+
stream.lineEnd();
|
|
1612
|
+
lambda02 = phi0 = NaN;
|
|
1613
|
+
},
|
|
1614
|
+
clean: function() {
|
|
1615
|
+
return 2 - clean;
|
|
1616
|
+
}
|
|
1617
|
+
};
|
|
1618
|
+
}
|
|
1619
|
+
function clipAntimeridianIntersect(lambda02, phi0, lambda1, phi1) {
|
|
1620
|
+
var cosPhi02, cosPhi1, sinLambda0Lambda1 = sin(lambda02 - lambda1);
|
|
1621
|
+
return abs(sinLambda0Lambda1) > epsilon ? atan((sin(phi0) * (cosPhi1 = cos(phi1)) * sin(lambda1) - sin(phi1) * (cosPhi02 = cos(phi0)) * sin(lambda02)) / (cosPhi02 * cosPhi1 * sinLambda0Lambda1)) : (phi0 + phi1) / 2;
|
|
1622
|
+
}
|
|
1623
|
+
function clipAntimeridianInterpolate(from, to, direction, stream) {
|
|
1624
|
+
var phi;
|
|
1625
|
+
if (from == null) {
|
|
1626
|
+
phi = direction * halfPi;
|
|
1627
|
+
stream.point(-pi, phi);
|
|
1628
|
+
stream.point(0, phi);
|
|
1629
|
+
stream.point(pi, phi);
|
|
1630
|
+
stream.point(pi, 0);
|
|
1631
|
+
stream.point(pi, -phi);
|
|
1632
|
+
stream.point(0, -phi);
|
|
1633
|
+
stream.point(-pi, -phi);
|
|
1634
|
+
stream.point(-pi, 0);
|
|
1635
|
+
stream.point(-pi, phi);
|
|
1636
|
+
} else if (abs(from[0] - to[0]) > epsilon) {
|
|
1637
|
+
var lambda = from[0] < to[0] ? pi : -pi;
|
|
1638
|
+
phi = direction * lambda / 2;
|
|
1639
|
+
stream.point(-lambda, phi);
|
|
1640
|
+
stream.point(0, phi);
|
|
1641
|
+
stream.point(lambda, phi);
|
|
1642
|
+
} else {
|
|
1643
|
+
stream.point(to[0], to[1]);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
// ../node_modules/d3-geo/src/clip/circle.js
|
|
1648
|
+
function circle_default(radius) {
|
|
1649
|
+
var cr = cos(radius), delta = 2 * radians, smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon;
|
|
1650
|
+
function interpolate(from, to, direction, stream) {
|
|
1651
|
+
circleStream(stream, radius, delta, direction, from, to);
|
|
1652
|
+
}
|
|
1653
|
+
function visible(lambda, phi) {
|
|
1654
|
+
return cos(lambda) * cos(phi) > cr;
|
|
1655
|
+
}
|
|
1656
|
+
function clipLine(stream) {
|
|
1657
|
+
var point0, c0, v0, v00, clean;
|
|
1658
|
+
return {
|
|
1659
|
+
lineStart: function() {
|
|
1660
|
+
v00 = v0 = false;
|
|
1661
|
+
clean = 1;
|
|
1662
|
+
},
|
|
1663
|
+
point: function(lambda, phi) {
|
|
1664
|
+
var point1 = [lambda, phi], point22, v = visible(lambda, phi), c4 = smallRadius ? v ? 0 : code(lambda, phi) : v ? code(lambda + (lambda < 0 ? pi : -pi), phi) : 0;
|
|
1665
|
+
if (!point0 && (v00 = v0 = v)) stream.lineStart();
|
|
1666
|
+
if (v !== v0) {
|
|
1667
|
+
point22 = intersect2(point0, point1);
|
|
1668
|
+
if (!point22 || pointEqual_default(point0, point22) || pointEqual_default(point1, point22))
|
|
1669
|
+
point1[2] = 1;
|
|
1670
|
+
}
|
|
1671
|
+
if (v !== v0) {
|
|
1672
|
+
clean = 0;
|
|
1673
|
+
if (v) {
|
|
1674
|
+
stream.lineStart();
|
|
1675
|
+
point22 = intersect2(point1, point0);
|
|
1676
|
+
stream.point(point22[0], point22[1]);
|
|
1677
|
+
} else {
|
|
1678
|
+
point22 = intersect2(point0, point1);
|
|
1679
|
+
stream.point(point22[0], point22[1], 2);
|
|
1680
|
+
stream.lineEnd();
|
|
1681
|
+
}
|
|
1682
|
+
point0 = point22;
|
|
1683
|
+
} else if (notHemisphere && point0 && smallRadius ^ v) {
|
|
1684
|
+
var t;
|
|
1685
|
+
if (!(c4 & c0) && (t = intersect2(point1, point0, true))) {
|
|
1686
|
+
clean = 0;
|
|
1687
|
+
if (smallRadius) {
|
|
1688
|
+
stream.lineStart();
|
|
1689
|
+
stream.point(t[0][0], t[0][1]);
|
|
1690
|
+
stream.point(t[1][0], t[1][1]);
|
|
1691
|
+
stream.lineEnd();
|
|
1692
|
+
} else {
|
|
1693
|
+
stream.point(t[1][0], t[1][1]);
|
|
1694
|
+
stream.lineEnd();
|
|
1695
|
+
stream.lineStart();
|
|
1696
|
+
stream.point(t[0][0], t[0][1], 3);
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
if (v && (!point0 || !pointEqual_default(point0, point1))) {
|
|
1701
|
+
stream.point(point1[0], point1[1]);
|
|
1702
|
+
}
|
|
1703
|
+
point0 = point1, v0 = v, c0 = c4;
|
|
1704
|
+
},
|
|
1705
|
+
lineEnd: function() {
|
|
1706
|
+
if (v0) stream.lineEnd();
|
|
1707
|
+
point0 = null;
|
|
1708
|
+
},
|
|
1709
|
+
// Rejoin first and last segments if there were intersections and the first
|
|
1710
|
+
// and last points were visible.
|
|
1711
|
+
clean: function() {
|
|
1712
|
+
return clean | (v00 && v0) << 1;
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
}
|
|
1716
|
+
function intersect2(a3, b, two) {
|
|
1717
|
+
var pa = cartesian(a3), pb = cartesian(b);
|
|
1718
|
+
var n1 = [1, 0, 0], n2 = cartesianCross(pa, pb), n2n2 = cartesianDot(n2, n2), n1n2 = n2[0], determinant = n2n2 - n1n2 * n1n2;
|
|
1719
|
+
if (!determinant) return !two && a3;
|
|
1720
|
+
var c1 = cr * n2n2 / determinant, c22 = -cr * n1n2 / determinant, n1xn2 = cartesianCross(n1, n2), A = cartesianScale(n1, c1), B = cartesianScale(n2, c22);
|
|
1721
|
+
cartesianAddInPlace(A, B);
|
|
1722
|
+
var u = n1xn2, w = cartesianDot(A, u), uu = cartesianDot(u, u), t2 = w * w - uu * (cartesianDot(A, A) - 1);
|
|
1723
|
+
if (t2 < 0) return;
|
|
1724
|
+
var t = sqrt(t2), q = cartesianScale(u, (-w - t) / uu);
|
|
1725
|
+
cartesianAddInPlace(q, A);
|
|
1726
|
+
q = spherical(q);
|
|
1727
|
+
if (!two) return q;
|
|
1728
|
+
var lambda02 = a3[0], lambda1 = b[0], phi0 = a3[1], phi1 = b[1], z;
|
|
1729
|
+
if (lambda1 < lambda02) z = lambda02, lambda02 = lambda1, lambda1 = z;
|
|
1730
|
+
var delta2 = lambda1 - lambda02, polar = abs(delta2 - pi) < epsilon, meridian = polar || delta2 < epsilon;
|
|
1731
|
+
if (!polar && phi1 < phi0) z = phi0, phi0 = phi1, phi1 = z;
|
|
1732
|
+
if (meridian ? polar ? phi0 + phi1 > 0 ^ q[1] < (abs(q[0] - lambda02) < epsilon ? phi0 : phi1) : phi0 <= q[1] && q[1] <= phi1 : delta2 > pi ^ (lambda02 <= q[0] && q[0] <= lambda1)) {
|
|
1733
|
+
var q1 = cartesianScale(u, (-w + t) / uu);
|
|
1734
|
+
cartesianAddInPlace(q1, A);
|
|
1735
|
+
return [q, spherical(q1)];
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
function code(lambda, phi) {
|
|
1739
|
+
var r = smallRadius ? radius : pi - radius, code2 = 0;
|
|
1740
|
+
if (lambda < -r) code2 |= 1;
|
|
1741
|
+
else if (lambda > r) code2 |= 2;
|
|
1742
|
+
if (phi < -r) code2 |= 4;
|
|
1743
|
+
else if (phi > r) code2 |= 8;
|
|
1744
|
+
return code2;
|
|
1745
|
+
}
|
|
1746
|
+
return clip_default(visible, clipLine, interpolate, smallRadius ? [0, -radius] : [-pi, radius - pi]);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
// ../node_modules/d3-geo/src/clip/line.js
|
|
1750
|
+
function line_default(a3, b, x05, y05, x12, y12) {
|
|
1751
|
+
var ax = a3[0], ay = a3[1], bx = b[0], by = b[1], t0 = 0, t1 = 1, dx = bx - ax, dy = by - ay, r;
|
|
1752
|
+
r = x05 - ax;
|
|
1753
|
+
if (!dx && r > 0) return;
|
|
1754
|
+
r /= dx;
|
|
1755
|
+
if (dx < 0) {
|
|
1756
|
+
if (r < t0) return;
|
|
1757
|
+
if (r < t1) t1 = r;
|
|
1758
|
+
} else if (dx > 0) {
|
|
1759
|
+
if (r > t1) return;
|
|
1760
|
+
if (r > t0) t0 = r;
|
|
1761
|
+
}
|
|
1762
|
+
r = x12 - ax;
|
|
1763
|
+
if (!dx && r < 0) return;
|
|
1764
|
+
r /= dx;
|
|
1765
|
+
if (dx < 0) {
|
|
1766
|
+
if (r > t1) return;
|
|
1767
|
+
if (r > t0) t0 = r;
|
|
1768
|
+
} else if (dx > 0) {
|
|
1769
|
+
if (r < t0) return;
|
|
1770
|
+
if (r < t1) t1 = r;
|
|
1771
|
+
}
|
|
1772
|
+
r = y05 - ay;
|
|
1773
|
+
if (!dy && r > 0) return;
|
|
1774
|
+
r /= dy;
|
|
1775
|
+
if (dy < 0) {
|
|
1776
|
+
if (r < t0) return;
|
|
1777
|
+
if (r < t1) t1 = r;
|
|
1778
|
+
} else if (dy > 0) {
|
|
1779
|
+
if (r > t1) return;
|
|
1780
|
+
if (r > t0) t0 = r;
|
|
1781
|
+
}
|
|
1782
|
+
r = y12 - ay;
|
|
1783
|
+
if (!dy && r < 0) return;
|
|
1784
|
+
r /= dy;
|
|
1785
|
+
if (dy < 0) {
|
|
1786
|
+
if (r > t1) return;
|
|
1787
|
+
if (r > t0) t0 = r;
|
|
1788
|
+
} else if (dy > 0) {
|
|
1789
|
+
if (r < t0) return;
|
|
1790
|
+
if (r < t1) t1 = r;
|
|
1791
|
+
}
|
|
1792
|
+
if (t0 > 0) a3[0] = ax + t0 * dx, a3[1] = ay + t0 * dy;
|
|
1793
|
+
if (t1 < 1) b[0] = ax + t1 * dx, b[1] = ay + t1 * dy;
|
|
1794
|
+
return true;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
// ../node_modules/d3-geo/src/clip/rectangle.js
|
|
1798
|
+
var clipMax = 1e9;
|
|
1799
|
+
var clipMin = -clipMax;
|
|
1800
|
+
function clipRectangle(x05, y05, x12, y12) {
|
|
1801
|
+
function visible(x3, y3) {
|
|
1802
|
+
return x05 <= x3 && x3 <= x12 && y05 <= y3 && y3 <= y12;
|
|
1803
|
+
}
|
|
1804
|
+
function interpolate(from, to, direction, stream) {
|
|
1805
|
+
var a3 = 0, a1 = 0;
|
|
1806
|
+
if (from == null || (a3 = corner(from, direction)) !== (a1 = corner(to, direction)) || comparePoint(from, to) < 0 ^ direction > 0) {
|
|
1807
|
+
do
|
|
1808
|
+
stream.point(a3 === 0 || a3 === 3 ? x05 : x12, a3 > 1 ? y12 : y05);
|
|
1809
|
+
while ((a3 = (a3 + direction + 4) % 4) !== a1);
|
|
1810
|
+
} else {
|
|
1811
|
+
stream.point(to[0], to[1]);
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
function corner(p, direction) {
|
|
1815
|
+
return abs(p[0] - x05) < epsilon ? direction > 0 ? 0 : 3 : abs(p[0] - x12) < epsilon ? direction > 0 ? 2 : 1 : abs(p[1] - y05) < epsilon ? direction > 0 ? 1 : 0 : direction > 0 ? 3 : 2;
|
|
1816
|
+
}
|
|
1817
|
+
function compareIntersection2(a3, b) {
|
|
1818
|
+
return comparePoint(a3.x, b.x);
|
|
1819
|
+
}
|
|
1820
|
+
function comparePoint(a3, b) {
|
|
1821
|
+
var ca = corner(a3, 1), cb = corner(b, 1);
|
|
1822
|
+
return ca !== cb ? ca - cb : ca === 0 ? b[1] - a3[1] : ca === 1 ? a3[0] - b[0] : ca === 2 ? a3[1] - b[1] : b[0] - a3[0];
|
|
1823
|
+
}
|
|
1824
|
+
return function(stream) {
|
|
1825
|
+
var activeStream = stream, bufferStream = buffer_default(), segments, polygon, ring, x__, y__, v__, x_, y_, v_, first, clean;
|
|
1826
|
+
var clipStream = {
|
|
1827
|
+
point: point3,
|
|
1828
|
+
lineStart,
|
|
1829
|
+
lineEnd,
|
|
1830
|
+
polygonStart,
|
|
1831
|
+
polygonEnd
|
|
1832
|
+
};
|
|
1833
|
+
function point3(x3, y3) {
|
|
1834
|
+
if (visible(x3, y3)) activeStream.point(x3, y3);
|
|
1835
|
+
}
|
|
1836
|
+
function polygonInside() {
|
|
1837
|
+
var winding = 0;
|
|
1838
|
+
for (var i = 0, n = polygon.length; i < n; ++i) {
|
|
1839
|
+
for (var ring2 = polygon[i], j = 1, m2 = ring2.length, point4 = ring2[0], a0, a1, b0 = point4[0], b1 = point4[1]; j < m2; ++j) {
|
|
1840
|
+
a0 = b0, a1 = b1, point4 = ring2[j], b0 = point4[0], b1 = point4[1];
|
|
1841
|
+
if (a1 <= y12) {
|
|
1842
|
+
if (b1 > y12 && (b0 - a0) * (y12 - a1) > (b1 - a1) * (x05 - a0)) ++winding;
|
|
1843
|
+
} else {
|
|
1844
|
+
if (b1 <= y12 && (b0 - a0) * (y12 - a1) < (b1 - a1) * (x05 - a0)) --winding;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
return winding;
|
|
1849
|
+
}
|
|
1850
|
+
function polygonStart() {
|
|
1851
|
+
activeStream = bufferStream, segments = [], polygon = [], clean = true;
|
|
1852
|
+
}
|
|
1853
|
+
function polygonEnd() {
|
|
1854
|
+
var startInside = polygonInside(), cleanInside = clean && startInside, visible2 = (segments = merge(segments)).length;
|
|
1855
|
+
if (cleanInside || visible2) {
|
|
1856
|
+
stream.polygonStart();
|
|
1857
|
+
if (cleanInside) {
|
|
1858
|
+
stream.lineStart();
|
|
1859
|
+
interpolate(null, null, 1, stream);
|
|
1860
|
+
stream.lineEnd();
|
|
1861
|
+
}
|
|
1862
|
+
if (visible2) {
|
|
1863
|
+
rejoin_default(segments, compareIntersection2, startInside, interpolate, stream);
|
|
1864
|
+
}
|
|
1865
|
+
stream.polygonEnd();
|
|
1866
|
+
}
|
|
1867
|
+
activeStream = stream, segments = polygon = ring = null;
|
|
1868
|
+
}
|
|
1869
|
+
function lineStart() {
|
|
1870
|
+
clipStream.point = linePoint;
|
|
1871
|
+
if (polygon) polygon.push(ring = []);
|
|
1872
|
+
first = true;
|
|
1873
|
+
v_ = false;
|
|
1874
|
+
x_ = y_ = NaN;
|
|
1875
|
+
}
|
|
1876
|
+
function lineEnd() {
|
|
1877
|
+
if (segments) {
|
|
1878
|
+
linePoint(x__, y__);
|
|
1879
|
+
if (v__ && v_) bufferStream.rejoin();
|
|
1880
|
+
segments.push(bufferStream.result());
|
|
1881
|
+
}
|
|
1882
|
+
clipStream.point = point3;
|
|
1883
|
+
if (v_) activeStream.lineEnd();
|
|
1884
|
+
}
|
|
1885
|
+
function linePoint(x3, y3) {
|
|
1886
|
+
var v = visible(x3, y3);
|
|
1887
|
+
if (polygon) ring.push([x3, y3]);
|
|
1888
|
+
if (first) {
|
|
1889
|
+
x__ = x3, y__ = y3, v__ = v;
|
|
1890
|
+
first = false;
|
|
1891
|
+
if (v) {
|
|
1892
|
+
activeStream.lineStart();
|
|
1893
|
+
activeStream.point(x3, y3);
|
|
1894
|
+
}
|
|
1895
|
+
} else {
|
|
1896
|
+
if (v && v_) activeStream.point(x3, y3);
|
|
1897
|
+
else {
|
|
1898
|
+
var a3 = [x_ = Math.max(clipMin, Math.min(clipMax, x_)), y_ = Math.max(clipMin, Math.min(clipMax, y_))], b = [x3 = Math.max(clipMin, Math.min(clipMax, x3)), y3 = Math.max(clipMin, Math.min(clipMax, y3))];
|
|
1899
|
+
if (line_default(a3, b, x05, y05, x12, y12)) {
|
|
1900
|
+
if (!v_) {
|
|
1901
|
+
activeStream.lineStart();
|
|
1902
|
+
activeStream.point(a3[0], a3[1]);
|
|
1903
|
+
}
|
|
1904
|
+
activeStream.point(b[0], b[1]);
|
|
1905
|
+
if (!v) activeStream.lineEnd();
|
|
1906
|
+
clean = false;
|
|
1907
|
+
} else if (v) {
|
|
1908
|
+
activeStream.lineStart();
|
|
1909
|
+
activeStream.point(x3, y3);
|
|
1910
|
+
clean = false;
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
x_ = x3, y_ = y3, v_ = v;
|
|
1915
|
+
}
|
|
1916
|
+
return clipStream;
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
// ../node_modules/d3-geo/src/length.js
|
|
1921
|
+
var lengthSum2;
|
|
1922
|
+
var lambda0;
|
|
1923
|
+
var sinPhi0;
|
|
1924
|
+
var cosPhi0;
|
|
1925
|
+
var lengthStream2 = {
|
|
1926
|
+
sphere: noop,
|
|
1927
|
+
point: noop,
|
|
1928
|
+
lineStart: lengthLineStart,
|
|
1929
|
+
lineEnd: noop,
|
|
1930
|
+
polygonStart: noop,
|
|
1931
|
+
polygonEnd: noop
|
|
1932
|
+
};
|
|
1933
|
+
function lengthLineStart() {
|
|
1934
|
+
lengthStream2.point = lengthPointFirst2;
|
|
1935
|
+
lengthStream2.lineEnd = lengthLineEnd;
|
|
1936
|
+
}
|
|
1937
|
+
function lengthLineEnd() {
|
|
1938
|
+
lengthStream2.point = lengthStream2.lineEnd = noop;
|
|
1939
|
+
}
|
|
1940
|
+
function lengthPointFirst2(lambda, phi) {
|
|
1941
|
+
lambda *= radians, phi *= radians;
|
|
1942
|
+
lambda0 = lambda, sinPhi0 = sin(phi), cosPhi0 = cos(phi);
|
|
1943
|
+
lengthStream2.point = lengthPoint2;
|
|
1944
|
+
}
|
|
1945
|
+
function lengthPoint2(lambda, phi) {
|
|
1946
|
+
lambda *= radians, phi *= radians;
|
|
1947
|
+
var sinPhi = sin(phi), cosPhi = cos(phi), delta = abs(lambda - lambda0), cosDelta = cos(delta), sinDelta = sin(delta), x3 = cosPhi * sinDelta, y3 = cosPhi0 * sinPhi - sinPhi0 * cosPhi * cosDelta, z = sinPhi0 * sinPhi + cosPhi0 * cosPhi * cosDelta;
|
|
1948
|
+
lengthSum2.add(atan2(sqrt(x3 * x3 + y3 * y3), z));
|
|
1949
|
+
lambda0 = lambda, sinPhi0 = sinPhi, cosPhi0 = cosPhi;
|
|
1950
|
+
}
|
|
1951
|
+
function length_default(object2) {
|
|
1952
|
+
lengthSum2 = new Adder();
|
|
1953
|
+
stream_default(object2, lengthStream2);
|
|
1954
|
+
return +lengthSum2;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
// ../node_modules/d3-geo/src/distance.js
|
|
1958
|
+
var coordinates = [null, null];
|
|
1959
|
+
var object = { type: "LineString", coordinates };
|
|
1960
|
+
function distance_default(a3, b) {
|
|
1961
|
+
coordinates[0] = a3;
|
|
1962
|
+
coordinates[1] = b;
|
|
1963
|
+
return length_default(object);
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
// ../node_modules/d3-geo/src/contains.js
|
|
1967
|
+
var containsObjectType = {
|
|
1968
|
+
Feature: function(object2, point3) {
|
|
1969
|
+
return containsGeometry(object2.geometry, point3);
|
|
1970
|
+
},
|
|
1971
|
+
FeatureCollection: function(object2, point3) {
|
|
1972
|
+
var features = object2.features, i = -1, n = features.length;
|
|
1973
|
+
while (++i < n) if (containsGeometry(features[i].geometry, point3)) return true;
|
|
1974
|
+
return false;
|
|
1975
|
+
}
|
|
1976
|
+
};
|
|
1977
|
+
var containsGeometryType = {
|
|
1978
|
+
Sphere: function() {
|
|
1979
|
+
return true;
|
|
1980
|
+
},
|
|
1981
|
+
Point: function(object2, point3) {
|
|
1982
|
+
return containsPoint(object2.coordinates, point3);
|
|
1983
|
+
},
|
|
1984
|
+
MultiPoint: function(object2, point3) {
|
|
1985
|
+
var coordinates2 = object2.coordinates, i = -1, n = coordinates2.length;
|
|
1986
|
+
while (++i < n) if (containsPoint(coordinates2[i], point3)) return true;
|
|
1987
|
+
return false;
|
|
1988
|
+
},
|
|
1989
|
+
LineString: function(object2, point3) {
|
|
1990
|
+
return containsLine(object2.coordinates, point3);
|
|
1991
|
+
},
|
|
1992
|
+
MultiLineString: function(object2, point3) {
|
|
1993
|
+
var coordinates2 = object2.coordinates, i = -1, n = coordinates2.length;
|
|
1994
|
+
while (++i < n) if (containsLine(coordinates2[i], point3)) return true;
|
|
1995
|
+
return false;
|
|
1996
|
+
},
|
|
1997
|
+
Polygon: function(object2, point3) {
|
|
1998
|
+
return containsPolygon(object2.coordinates, point3);
|
|
1999
|
+
},
|
|
2000
|
+
MultiPolygon: function(object2, point3) {
|
|
2001
|
+
var coordinates2 = object2.coordinates, i = -1, n = coordinates2.length;
|
|
2002
|
+
while (++i < n) if (containsPolygon(coordinates2[i], point3)) return true;
|
|
2003
|
+
return false;
|
|
2004
|
+
},
|
|
2005
|
+
GeometryCollection: function(object2, point3) {
|
|
2006
|
+
var geometries = object2.geometries, i = -1, n = geometries.length;
|
|
2007
|
+
while (++i < n) if (containsGeometry(geometries[i], point3)) return true;
|
|
2008
|
+
return false;
|
|
2009
|
+
}
|
|
2010
|
+
};
|
|
2011
|
+
function containsGeometry(geometry, point3) {
|
|
2012
|
+
return geometry && containsGeometryType.hasOwnProperty(geometry.type) ? containsGeometryType[geometry.type](geometry, point3) : false;
|
|
2013
|
+
}
|
|
2014
|
+
function containsPoint(coordinates2, point3) {
|
|
2015
|
+
return distance_default(coordinates2, point3) === 0;
|
|
2016
|
+
}
|
|
2017
|
+
function containsLine(coordinates2, point3) {
|
|
2018
|
+
var ao, bo, ab;
|
|
2019
|
+
for (var i = 0, n = coordinates2.length; i < n; i++) {
|
|
2020
|
+
bo = distance_default(coordinates2[i], point3);
|
|
2021
|
+
if (bo === 0) return true;
|
|
2022
|
+
if (i > 0) {
|
|
2023
|
+
ab = distance_default(coordinates2[i], coordinates2[i - 1]);
|
|
2024
|
+
if (ab > 0 && ao <= ab && bo <= ab && (ao + bo - ab) * (1 - Math.pow((ao - bo) / ab, 2)) < epsilon2 * ab)
|
|
2025
|
+
return true;
|
|
2026
|
+
}
|
|
2027
|
+
ao = bo;
|
|
2028
|
+
}
|
|
2029
|
+
return false;
|
|
2030
|
+
}
|
|
2031
|
+
function containsPolygon(coordinates2, point3) {
|
|
2032
|
+
return !!polygonContains_default(coordinates2.map(ringRadians), pointRadians(point3));
|
|
2033
|
+
}
|
|
2034
|
+
function ringRadians(ring) {
|
|
2035
|
+
return ring = ring.map(pointRadians), ring.pop(), ring;
|
|
2036
|
+
}
|
|
2037
|
+
function pointRadians(point3) {
|
|
2038
|
+
return [point3[0] * radians, point3[1] * radians];
|
|
2039
|
+
}
|
|
2040
|
+
function contains_default(object2, point3) {
|
|
2041
|
+
return (object2 && containsObjectType.hasOwnProperty(object2.type) ? containsObjectType[object2.type] : containsGeometry)(object2, point3);
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
// ../node_modules/d3-geo/src/transform.js
|
|
2045
|
+
function transformer(methods) {
|
|
2046
|
+
return function(stream) {
|
|
2047
|
+
var s2 = new TransformStream();
|
|
2048
|
+
for (var key in methods) s2[key] = methods[key];
|
|
2049
|
+
s2.stream = stream;
|
|
2050
|
+
return s2;
|
|
2051
|
+
};
|
|
2052
|
+
}
|
|
2053
|
+
function TransformStream() {
|
|
2054
|
+
}
|
|
2055
|
+
TransformStream.prototype = {
|
|
2056
|
+
constructor: TransformStream,
|
|
2057
|
+
point: function(x3, y3) {
|
|
2058
|
+
this.stream.point(x3, y3);
|
|
2059
|
+
},
|
|
2060
|
+
sphere: function() {
|
|
2061
|
+
this.stream.sphere();
|
|
2062
|
+
},
|
|
2063
|
+
lineStart: function() {
|
|
2064
|
+
this.stream.lineStart();
|
|
2065
|
+
},
|
|
2066
|
+
lineEnd: function() {
|
|
2067
|
+
this.stream.lineEnd();
|
|
2068
|
+
},
|
|
2069
|
+
polygonStart: function() {
|
|
2070
|
+
this.stream.polygonStart();
|
|
2071
|
+
},
|
|
2072
|
+
polygonEnd: function() {
|
|
2073
|
+
this.stream.polygonEnd();
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
|
|
2077
|
+
// ../node_modules/d3-geo/src/projection/fit.js
|
|
2078
|
+
function fit(projection2, fitBounds, object2) {
|
|
2079
|
+
var clip = projection2.clipExtent && projection2.clipExtent();
|
|
2080
|
+
projection2.scale(150).translate([0, 0]);
|
|
2081
|
+
if (clip != null) projection2.clipExtent(null);
|
|
2082
|
+
stream_default(object2, projection2.stream(bounds_default));
|
|
2083
|
+
fitBounds(bounds_default.result());
|
|
2084
|
+
if (clip != null) projection2.clipExtent(clip);
|
|
2085
|
+
return projection2;
|
|
2086
|
+
}
|
|
2087
|
+
function fitExtent(projection2, extent2, object2) {
|
|
2088
|
+
return fit(projection2, function(b) {
|
|
2089
|
+
var w = extent2[1][0] - extent2[0][0], h = extent2[1][1] - extent2[0][1], k2 = Math.min(w / (b[1][0] - b[0][0]), h / (b[1][1] - b[0][1])), x3 = +extent2[0][0] + (w - k2 * (b[1][0] + b[0][0])) / 2, y3 = +extent2[0][1] + (h - k2 * (b[1][1] + b[0][1])) / 2;
|
|
2090
|
+
projection2.scale(150 * k2).translate([x3, y3]);
|
|
2091
|
+
}, object2);
|
|
2092
|
+
}
|
|
2093
|
+
function fitSize(projection2, size, object2) {
|
|
2094
|
+
return fitExtent(projection2, [[0, 0], size], object2);
|
|
2095
|
+
}
|
|
2096
|
+
function fitWidth(projection2, width, object2) {
|
|
2097
|
+
return fit(projection2, function(b) {
|
|
2098
|
+
var w = +width, k2 = w / (b[1][0] - b[0][0]), x3 = (w - k2 * (b[1][0] + b[0][0])) / 2, y3 = -k2 * b[0][1];
|
|
2099
|
+
projection2.scale(150 * k2).translate([x3, y3]);
|
|
2100
|
+
}, object2);
|
|
2101
|
+
}
|
|
2102
|
+
function fitHeight(projection2, height, object2) {
|
|
2103
|
+
return fit(projection2, function(b) {
|
|
2104
|
+
var h = +height, k2 = h / (b[1][1] - b[0][1]), x3 = -k2 * b[0][0], y3 = (h - k2 * (b[1][1] + b[0][1])) / 2;
|
|
2105
|
+
projection2.scale(150 * k2).translate([x3, y3]);
|
|
2106
|
+
}, object2);
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
// ../node_modules/d3-geo/src/projection/resample.js
|
|
2110
|
+
var maxDepth = 16;
|
|
2111
|
+
var cosMinDistance = cos(30 * radians);
|
|
2112
|
+
function resample_default(project, delta2) {
|
|
2113
|
+
return +delta2 ? resample(project, delta2) : resampleNone(project);
|
|
2114
|
+
}
|
|
2115
|
+
function resampleNone(project) {
|
|
2116
|
+
return transformer({
|
|
2117
|
+
point: function(x3, y3) {
|
|
2118
|
+
x3 = project(x3, y3);
|
|
2119
|
+
this.stream.point(x3[0], x3[1]);
|
|
2120
|
+
}
|
|
2121
|
+
});
|
|
2122
|
+
}
|
|
2123
|
+
function resample(project, delta2) {
|
|
2124
|
+
function resampleLineTo(x05, y05, lambda02, a0, b0, c0, x12, y12, lambda1, a1, b1, c1, depth, stream) {
|
|
2125
|
+
var dx = x12 - x05, dy = y12 - y05, d2 = dx * dx + dy * dy;
|
|
2126
|
+
if (d2 > 4 * delta2 && depth--) {
|
|
2127
|
+
var a3 = a0 + a1, b = b0 + b1, c4 = c0 + c1, m2 = sqrt(a3 * a3 + b * b + c4 * c4), phi2 = asin(c4 /= m2), lambda2 = abs(abs(c4) - 1) < epsilon || abs(lambda02 - lambda1) < epsilon ? (lambda02 + lambda1) / 2 : atan2(b, a3), p = project(lambda2, phi2), x22 = p[0], y22 = p[1], dx2 = x22 - x05, dy2 = y22 - y05, dz = dy * dx2 - dx * dy2;
|
|
2128
|
+
if (dz * dz / d2 > delta2 || abs((dx * dx2 + dy * dy2) / d2 - 0.5) > 0.3 || a0 * a1 + b0 * b1 + c0 * c1 < cosMinDistance) {
|
|
2129
|
+
resampleLineTo(x05, y05, lambda02, a0, b0, c0, x22, y22, lambda2, a3 /= m2, b /= m2, c4, depth, stream);
|
|
2130
|
+
stream.point(x22, y22);
|
|
2131
|
+
resampleLineTo(x22, y22, lambda2, a3, b, c4, x12, y12, lambda1, a1, b1, c1, depth, stream);
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
return function(stream) {
|
|
2136
|
+
var lambda00, x004, y004, a00, b00, c00, lambda02, x05, y05, a0, b0, c0;
|
|
2137
|
+
var resampleStream = {
|
|
2138
|
+
point: point3,
|
|
2139
|
+
lineStart,
|
|
2140
|
+
lineEnd,
|
|
2141
|
+
polygonStart: function() {
|
|
2142
|
+
stream.polygonStart();
|
|
2143
|
+
resampleStream.lineStart = ringStart;
|
|
2144
|
+
},
|
|
2145
|
+
polygonEnd: function() {
|
|
2146
|
+
stream.polygonEnd();
|
|
2147
|
+
resampleStream.lineStart = lineStart;
|
|
2148
|
+
}
|
|
2149
|
+
};
|
|
2150
|
+
function point3(x3, y3) {
|
|
2151
|
+
x3 = project(x3, y3);
|
|
2152
|
+
stream.point(x3[0], x3[1]);
|
|
2153
|
+
}
|
|
2154
|
+
function lineStart() {
|
|
2155
|
+
x05 = NaN;
|
|
2156
|
+
resampleStream.point = linePoint;
|
|
2157
|
+
stream.lineStart();
|
|
2158
|
+
}
|
|
2159
|
+
function linePoint(lambda, phi) {
|
|
2160
|
+
var c4 = cartesian([lambda, phi]), p = project(lambda, phi);
|
|
2161
|
+
resampleLineTo(x05, y05, lambda02, a0, b0, c0, x05 = p[0], y05 = p[1], lambda02 = lambda, a0 = c4[0], b0 = c4[1], c0 = c4[2], maxDepth, stream);
|
|
2162
|
+
stream.point(x05, y05);
|
|
2163
|
+
}
|
|
2164
|
+
function lineEnd() {
|
|
2165
|
+
resampleStream.point = point3;
|
|
2166
|
+
stream.lineEnd();
|
|
2167
|
+
}
|
|
2168
|
+
function ringStart() {
|
|
2169
|
+
lineStart();
|
|
2170
|
+
resampleStream.point = ringPoint;
|
|
2171
|
+
resampleStream.lineEnd = ringEnd;
|
|
2172
|
+
}
|
|
2173
|
+
function ringPoint(lambda, phi) {
|
|
2174
|
+
linePoint(lambda00 = lambda, phi), x004 = x05, y004 = y05, a00 = a0, b00 = b0, c00 = c0;
|
|
2175
|
+
resampleStream.point = linePoint;
|
|
2176
|
+
}
|
|
2177
|
+
function ringEnd() {
|
|
2178
|
+
resampleLineTo(x05, y05, lambda02, a0, b0, c0, x004, y004, lambda00, a00, b00, c00, maxDepth, stream);
|
|
2179
|
+
resampleStream.lineEnd = lineEnd;
|
|
2180
|
+
lineEnd();
|
|
2181
|
+
}
|
|
2182
|
+
return resampleStream;
|
|
2183
|
+
};
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
// ../node_modules/d3-geo/src/projection/index.js
|
|
2187
|
+
var transformRadians = transformer({
|
|
2188
|
+
point: function(x3, y3) {
|
|
2189
|
+
this.stream.point(x3 * radians, y3 * radians);
|
|
2190
|
+
}
|
|
2191
|
+
});
|
|
2192
|
+
function transformRotate(rotate) {
|
|
2193
|
+
return transformer({
|
|
2194
|
+
point: function(x3, y3) {
|
|
2195
|
+
var r = rotate(x3, y3);
|
|
2196
|
+
return this.stream.point(r[0], r[1]);
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
}
|
|
2200
|
+
function scaleTranslate(k2, dx, dy, sx, sy) {
|
|
2201
|
+
function transform2(x3, y3) {
|
|
2202
|
+
x3 *= sx;
|
|
2203
|
+
y3 *= sy;
|
|
2204
|
+
return [dx + k2 * x3, dy - k2 * y3];
|
|
2205
|
+
}
|
|
2206
|
+
transform2.invert = function(x3, y3) {
|
|
2207
|
+
return [(x3 - dx) / k2 * sx, (dy - y3) / k2 * sy];
|
|
2208
|
+
};
|
|
2209
|
+
return transform2;
|
|
2210
|
+
}
|
|
2211
|
+
function scaleTranslateRotate(k2, dx, dy, sx, sy, alpha) {
|
|
2212
|
+
if (!alpha) return scaleTranslate(k2, dx, dy, sx, sy);
|
|
2213
|
+
var cosAlpha = cos(alpha), sinAlpha = sin(alpha), a3 = cosAlpha * k2, b = sinAlpha * k2, ai = cosAlpha / k2, bi = sinAlpha / k2, ci = (sinAlpha * dy - cosAlpha * dx) / k2, fi = (sinAlpha * dx + cosAlpha * dy) / k2;
|
|
2214
|
+
function transform2(x3, y3) {
|
|
2215
|
+
x3 *= sx;
|
|
2216
|
+
y3 *= sy;
|
|
2217
|
+
return [a3 * x3 - b * y3 + dx, dy - b * x3 - a3 * y3];
|
|
2218
|
+
}
|
|
2219
|
+
transform2.invert = function(x3, y3) {
|
|
2220
|
+
return [sx * (ai * x3 - bi * y3 + ci), sy * (fi - bi * x3 - ai * y3)];
|
|
2221
|
+
};
|
|
2222
|
+
return transform2;
|
|
2223
|
+
}
|
|
2224
|
+
function projection(project) {
|
|
2225
|
+
return projectionMutator(function() {
|
|
2226
|
+
return project;
|
|
2227
|
+
})();
|
|
2228
|
+
}
|
|
2229
|
+
function projectionMutator(projectAt) {
|
|
2230
|
+
var project, k2 = 150, x3 = 480, y3 = 250, lambda = 0, phi = 0, deltaLambda = 0, deltaPhi = 0, deltaGamma = 0, rotate, alpha = 0, sx = 1, sy = 1, theta = null, preclip = antimeridian_default, x05 = null, y05, x12, y12, postclip = identity_default, delta2 = 0.5, projectResample, projectTransform, projectRotateTransform, cache, cacheStream;
|
|
2231
|
+
function projection2(point3) {
|
|
2232
|
+
return projectRotateTransform(point3[0] * radians, point3[1] * radians);
|
|
2233
|
+
}
|
|
2234
|
+
function invert(point3) {
|
|
2235
|
+
point3 = projectRotateTransform.invert(point3[0], point3[1]);
|
|
2236
|
+
return point3 && [point3[0] * degrees, point3[1] * degrees];
|
|
2237
|
+
}
|
|
2238
|
+
projection2.stream = function(stream) {
|
|
2239
|
+
return cache && cacheStream === stream ? cache : cache = transformRadians(transformRotate(rotate)(preclip(projectResample(postclip(cacheStream = stream)))));
|
|
2240
|
+
};
|
|
2241
|
+
projection2.preclip = function(_) {
|
|
2242
|
+
return arguments.length ? (preclip = _, theta = void 0, reset()) : preclip;
|
|
2243
|
+
};
|
|
2244
|
+
projection2.postclip = function(_) {
|
|
2245
|
+
return arguments.length ? (postclip = _, x05 = y05 = x12 = y12 = null, reset()) : postclip;
|
|
2246
|
+
};
|
|
2247
|
+
projection2.clipAngle = function(_) {
|
|
2248
|
+
return arguments.length ? (preclip = +_ ? circle_default(theta = _ * radians) : (theta = null, antimeridian_default), reset()) : theta * degrees;
|
|
2249
|
+
};
|
|
2250
|
+
projection2.clipExtent = function(_) {
|
|
2251
|
+
return arguments.length ? (postclip = _ == null ? (x05 = y05 = x12 = y12 = null, identity_default) : clipRectangle(x05 = +_[0][0], y05 = +_[0][1], x12 = +_[1][0], y12 = +_[1][1]), reset()) : x05 == null ? null : [[x05, y05], [x12, y12]];
|
|
2252
|
+
};
|
|
2253
|
+
projection2.scale = function(_) {
|
|
2254
|
+
return arguments.length ? (k2 = +_, recenter()) : k2;
|
|
2255
|
+
};
|
|
2256
|
+
projection2.translate = function(_) {
|
|
2257
|
+
return arguments.length ? (x3 = +_[0], y3 = +_[1], recenter()) : [x3, y3];
|
|
2258
|
+
};
|
|
2259
|
+
projection2.center = function(_) {
|
|
2260
|
+
return arguments.length ? (lambda = _[0] % 360 * radians, phi = _[1] % 360 * radians, recenter()) : [lambda * degrees, phi * degrees];
|
|
2261
|
+
};
|
|
2262
|
+
projection2.rotate = function(_) {
|
|
2263
|
+
return arguments.length ? (deltaLambda = _[0] % 360 * radians, deltaPhi = _[1] % 360 * radians, deltaGamma = _.length > 2 ? _[2] % 360 * radians : 0, recenter()) : [deltaLambda * degrees, deltaPhi * degrees, deltaGamma * degrees];
|
|
2264
|
+
};
|
|
2265
|
+
projection2.angle = function(_) {
|
|
2266
|
+
return arguments.length ? (alpha = _ % 360 * radians, recenter()) : alpha * degrees;
|
|
2267
|
+
};
|
|
2268
|
+
projection2.reflectX = function(_) {
|
|
2269
|
+
return arguments.length ? (sx = _ ? -1 : 1, recenter()) : sx < 0;
|
|
2270
|
+
};
|
|
2271
|
+
projection2.reflectY = function(_) {
|
|
2272
|
+
return arguments.length ? (sy = _ ? -1 : 1, recenter()) : sy < 0;
|
|
2273
|
+
};
|
|
2274
|
+
projection2.precision = function(_) {
|
|
2275
|
+
return arguments.length ? (projectResample = resample_default(projectTransform, delta2 = _ * _), reset()) : sqrt(delta2);
|
|
2276
|
+
};
|
|
2277
|
+
projection2.fitExtent = function(extent2, object2) {
|
|
2278
|
+
return fitExtent(projection2, extent2, object2);
|
|
2279
|
+
};
|
|
2280
|
+
projection2.fitSize = function(size, object2) {
|
|
2281
|
+
return fitSize(projection2, size, object2);
|
|
2282
|
+
};
|
|
2283
|
+
projection2.fitWidth = function(width, object2) {
|
|
2284
|
+
return fitWidth(projection2, width, object2);
|
|
2285
|
+
};
|
|
2286
|
+
projection2.fitHeight = function(height, object2) {
|
|
2287
|
+
return fitHeight(projection2, height, object2);
|
|
2288
|
+
};
|
|
2289
|
+
function recenter() {
|
|
2290
|
+
var center = scaleTranslateRotate(k2, 0, 0, sx, sy, alpha).apply(null, project(lambda, phi)), transform2 = scaleTranslateRotate(k2, x3 - center[0], y3 - center[1], sx, sy, alpha);
|
|
2291
|
+
rotate = rotateRadians(deltaLambda, deltaPhi, deltaGamma);
|
|
2292
|
+
projectTransform = compose_default(project, transform2);
|
|
2293
|
+
projectRotateTransform = compose_default(rotate, projectTransform);
|
|
2294
|
+
projectResample = resample_default(projectTransform, delta2);
|
|
2295
|
+
return reset();
|
|
2296
|
+
}
|
|
2297
|
+
function reset() {
|
|
2298
|
+
cache = cacheStream = null;
|
|
2299
|
+
return projection2;
|
|
2300
|
+
}
|
|
2301
|
+
return function() {
|
|
2302
|
+
project = projectAt.apply(this, arguments);
|
|
2303
|
+
projection2.invert = project.invert && invert;
|
|
2304
|
+
return recenter();
|
|
2305
|
+
};
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
// ../node_modules/d3-geo/src/projection/naturalEarth1.js
|
|
2309
|
+
function naturalEarth1Raw(lambda, phi) {
|
|
2310
|
+
var phi2 = phi * phi, phi4 = phi2 * phi2;
|
|
2311
|
+
return [
|
|
2312
|
+
lambda * (0.8707 - 0.131979 * phi2 + phi4 * (-0.013791 + phi4 * (3971e-6 * phi2 - 1529e-6 * phi4))),
|
|
2313
|
+
phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 5916e-6 * phi4)))
|
|
2314
|
+
];
|
|
2315
|
+
}
|
|
2316
|
+
naturalEarth1Raw.invert = function(x3, y3) {
|
|
2317
|
+
var phi = y3, i = 25, delta;
|
|
2318
|
+
do {
|
|
2319
|
+
var phi2 = phi * phi, phi4 = phi2 * phi2;
|
|
2320
|
+
phi -= delta = (phi * (1.007226 + phi2 * (0.015085 + phi4 * (-0.044475 + 0.028874 * phi2 - 5916e-6 * phi4))) - y3) / (1.007226 + phi2 * (0.015085 * 3 + phi4 * (-0.044475 * 7 + 0.028874 * 9 * phi2 - 5916e-6 * 11 * phi4)));
|
|
2321
|
+
} while (abs(delta) > epsilon && --i > 0);
|
|
2322
|
+
return [
|
|
2323
|
+
x3 / (0.8707 + (phi2 = phi * phi) * (-0.131979 + phi2 * (-0.013791 + phi2 * phi2 * phi2 * (3971e-6 - 1529e-6 * phi2)))),
|
|
2324
|
+
phi
|
|
2325
|
+
];
|
|
2326
|
+
};
|
|
2327
|
+
function naturalEarth1_default() {
|
|
2328
|
+
return projection(naturalEarth1Raw).scale(175.295);
|
|
2329
|
+
}
|
|
2330
|
+
|
|
2331
|
+
// ../node_modules/d3-scale-chromatic/src/colors.js
|
|
2332
|
+
function colors_default(specifier) {
|
|
2333
|
+
var n = specifier.length / 6 | 0, colors = new Array(n), i = 0;
|
|
2334
|
+
while (i < n) colors[i] = "#" + specifier.slice(i * 6, ++i * 6);
|
|
2335
|
+
return colors;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
// ../node_modules/d3-scale-chromatic/src/categorical/category10.js
|
|
2339
|
+
var category10_default = colors_default("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
|
|
2340
|
+
|
|
2341
|
+
// ../node_modules/d3-scale-chromatic/src/ramp.js
|
|
2342
|
+
var ramp_default = (scheme4) => rgbBasis(scheme4[scheme4.length - 1]);
|
|
2343
|
+
|
|
2344
|
+
// ../node_modules/d3-scale-chromatic/src/sequential-single/Blues.js
|
|
2345
|
+
var scheme = new Array(3).concat(
|
|
2346
|
+
"deebf79ecae13182bd",
|
|
2347
|
+
"eff3ffbdd7e76baed62171b5",
|
|
2348
|
+
"eff3ffbdd7e76baed63182bd08519c",
|
|
2349
|
+
"eff3ffc6dbef9ecae16baed63182bd08519c",
|
|
2350
|
+
"eff3ffc6dbef9ecae16baed64292c62171b5084594",
|
|
2351
|
+
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
|
|
2352
|
+
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b"
|
|
2353
|
+
).map(colors_default);
|
|
2354
|
+
var Blues_default = ramp_default(scheme);
|
|
2355
|
+
|
|
2356
|
+
// ../node_modules/d3-scale-chromatic/src/sequential-single/Reds.js
|
|
2357
|
+
var scheme2 = new Array(3).concat(
|
|
2358
|
+
"fee0d2fc9272de2d26",
|
|
2359
|
+
"fee5d9fcae91fb6a4acb181d",
|
|
2360
|
+
"fee5d9fcae91fb6a4ade2d26a50f15",
|
|
2361
|
+
"fee5d9fcbba1fc9272fb6a4ade2d26a50f15",
|
|
2362
|
+
"fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d",
|
|
2363
|
+
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d",
|
|
2364
|
+
"fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d"
|
|
2365
|
+
).map(colors_default);
|
|
2366
|
+
var Reds_default = ramp_default(scheme2);
|
|
2367
|
+
|
|
2368
|
+
// ../node_modules/d3-scale-chromatic/src/sequential-multi/viridis.js
|
|
2369
|
+
function ramp(range2) {
|
|
2370
|
+
var n = range2.length;
|
|
2371
|
+
return function(t) {
|
|
2372
|
+
return range2[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
|
|
2373
|
+
};
|
|
2374
|
+
}
|
|
2375
|
+
var viridis_default = ramp(colors_default("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
|
|
2376
|
+
var magma = ramp(colors_default("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
|
|
2377
|
+
var inferno = ramp(colors_default("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
|
|
2378
|
+
var plasma = ramp(colors_default("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
|
|
2379
|
+
|
|
2380
|
+
// ../node_modules/d3-scale-chromatic/src/categorical/Dark2.js
|
|
2381
|
+
var Dark2_default = colors_default("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");
|
|
2382
|
+
|
|
2383
|
+
// ../node_modules/d3-scale-chromatic/src/categorical/Paired.js
|
|
2384
|
+
var Paired_default = colors_default("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
|
|
2385
|
+
|
|
2386
|
+
// ../node_modules/d3-scale-chromatic/src/sequential-single/Greys.js
|
|
2387
|
+
var scheme3 = new Array(3).concat(
|
|
2388
|
+
"f0f0f0bdbdbd636363",
|
|
2389
|
+
"f7f7f7cccccc969696525252",
|
|
2390
|
+
"f7f7f7cccccc969696636363252525",
|
|
2391
|
+
"f7f7f7d9d9d9bdbdbd969696636363252525",
|
|
2392
|
+
"f7f7f7d9d9d9bdbdbd969696737373525252252525",
|
|
2393
|
+
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525",
|
|
2394
|
+
"fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000"
|
|
2395
|
+
).map(colors_default);
|
|
2396
|
+
var Greys_default = ramp_default(scheme3);
|
|
2397
|
+
|
|
2398
|
+
// ../node_modules/d3-scale-chromatic/src/sequential-multi/rainbow.js
|
|
2399
|
+
var warm = cubehelixLong(cubehelix(-100, 0.75, 0.35), cubehelix(80, 1.5, 0.8));
|
|
2400
|
+
var cool = cubehelixLong(cubehelix(260, 0.75, 0.35), cubehelix(80, 1.5, 0.8));
|
|
2401
|
+
var c2 = cubehelix();
|
|
2402
|
+
function rainbow_default(t) {
|
|
2403
|
+
if (t < 0 || t > 1) t -= Math.floor(t);
|
|
2404
|
+
var ts = Math.abs(t - 0.5);
|
|
2405
|
+
c2.h = 360 * t - 100;
|
|
2406
|
+
c2.s = 1.5 - 1.5 * ts;
|
|
2407
|
+
c2.l = 0.8 - 0.9 * ts;
|
|
2408
|
+
return c2 + "";
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
// ../node_modules/d3-shape/src/constant.js
|
|
2412
|
+
function constant_default2(x3) {
|
|
2413
|
+
return function constant() {
|
|
2414
|
+
return x3;
|
|
2415
|
+
};
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
// ../node_modules/d3-shape/src/math.js
|
|
2419
|
+
var abs2 = Math.abs;
|
|
2420
|
+
var atan22 = Math.atan2;
|
|
2421
|
+
var cos2 = Math.cos;
|
|
2422
|
+
var max2 = Math.max;
|
|
2423
|
+
var min = Math.min;
|
|
2424
|
+
var sin2 = Math.sin;
|
|
2425
|
+
var sqrt2 = Math.sqrt;
|
|
2426
|
+
var epsilon3 = 1e-12;
|
|
2427
|
+
var pi2 = Math.PI;
|
|
2428
|
+
var halfPi2 = pi2 / 2;
|
|
2429
|
+
var tau2 = 2 * pi2;
|
|
2430
|
+
function acos2(x3) {
|
|
2431
|
+
return x3 > 1 ? 0 : x3 < -1 ? pi2 : Math.acos(x3);
|
|
2432
|
+
}
|
|
2433
|
+
function asin2(x3) {
|
|
2434
|
+
return x3 >= 1 ? halfPi2 : x3 <= -1 ? -halfPi2 : Math.asin(x3);
|
|
2435
|
+
}
|
|
2436
|
+
|
|
2437
|
+
// ../node_modules/d3-path/src/path.js
|
|
2438
|
+
var pi3 = Math.PI;
|
|
2439
|
+
var tau3 = 2 * pi3;
|
|
2440
|
+
var epsilon4 = 1e-6;
|
|
2441
|
+
var tauEpsilon = tau3 - epsilon4;
|
|
2442
|
+
function append2(strings) {
|
|
2443
|
+
this._ += strings[0];
|
|
2444
|
+
for (let i = 1, n = strings.length; i < n; ++i) {
|
|
2445
|
+
this._ += arguments[i] + strings[i];
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
function appendRound2(digits) {
|
|
2449
|
+
let d = Math.floor(digits);
|
|
2450
|
+
if (!(d >= 0)) throw new Error(`invalid digits: ${digits}`);
|
|
2451
|
+
if (d > 15) return append2;
|
|
2452
|
+
const k2 = 10 ** d;
|
|
2453
|
+
return function(strings) {
|
|
2454
|
+
this._ += strings[0];
|
|
2455
|
+
for (let i = 1, n = strings.length; i < n; ++i) {
|
|
2456
|
+
this._ += Math.round(arguments[i] * k2) / k2 + strings[i];
|
|
2457
|
+
}
|
|
2458
|
+
};
|
|
2459
|
+
}
|
|
2460
|
+
var Path = class {
|
|
2461
|
+
constructor(digits) {
|
|
2462
|
+
this._x0 = this._y0 = // start of current subpath
|
|
2463
|
+
this._x1 = this._y1 = null;
|
|
2464
|
+
this._ = "";
|
|
2465
|
+
this._append = digits == null ? append2 : appendRound2(digits);
|
|
2466
|
+
}
|
|
2467
|
+
moveTo(x3, y3) {
|
|
2468
|
+
this._append`M${this._x0 = this._x1 = +x3},${this._y0 = this._y1 = +y3}`;
|
|
2469
|
+
}
|
|
2470
|
+
closePath() {
|
|
2471
|
+
if (this._x1 !== null) {
|
|
2472
|
+
this._x1 = this._x0, this._y1 = this._y0;
|
|
2473
|
+
this._append`Z`;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
lineTo(x3, y3) {
|
|
2477
|
+
this._append`L${this._x1 = +x3},${this._y1 = +y3}`;
|
|
2478
|
+
}
|
|
2479
|
+
quadraticCurveTo(x12, y12, x3, y3) {
|
|
2480
|
+
this._append`Q${+x12},${+y12},${this._x1 = +x3},${this._y1 = +y3}`;
|
|
2481
|
+
}
|
|
2482
|
+
bezierCurveTo(x12, y12, x22, y22, x3, y3) {
|
|
2483
|
+
this._append`C${+x12},${+y12},${+x22},${+y22},${this._x1 = +x3},${this._y1 = +y3}`;
|
|
2484
|
+
}
|
|
2485
|
+
arcTo(x12, y12, x22, y22, r) {
|
|
2486
|
+
x12 = +x12, y12 = +y12, x22 = +x22, y22 = +y22, r = +r;
|
|
2487
|
+
if (r < 0) throw new Error(`negative radius: ${r}`);
|
|
2488
|
+
let x05 = this._x1, y05 = this._y1, x21 = x22 - x12, y21 = y22 - y12, x01 = x05 - x12, y01 = y05 - y12, l01_2 = x01 * x01 + y01 * y01;
|
|
2489
|
+
if (this._x1 === null) {
|
|
2490
|
+
this._append`M${this._x1 = x12},${this._y1 = y12}`;
|
|
2491
|
+
} else if (!(l01_2 > epsilon4)) ;
|
|
2492
|
+
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon4) || !r) {
|
|
2493
|
+
this._append`L${this._x1 = x12},${this._y1 = y12}`;
|
|
2494
|
+
} else {
|
|
2495
|
+
let x20 = x22 - x05, y20 = y22 - y05, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l = r * Math.tan((pi3 - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l / l01, t21 = l / l21;
|
|
2496
|
+
if (Math.abs(t01 - 1) > epsilon4) {
|
|
2497
|
+
this._append`L${x12 + t01 * x01},${y12 + t01 * y01}`;
|
|
2498
|
+
}
|
|
2499
|
+
this._append`A${r},${r},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x12 + t21 * x21},${this._y1 = y12 + t21 * y21}`;
|
|
2500
|
+
}
|
|
2501
|
+
}
|
|
2502
|
+
arc(x3, y3, r, a0, a1, ccw) {
|
|
2503
|
+
x3 = +x3, y3 = +y3, r = +r, ccw = !!ccw;
|
|
2504
|
+
if (r < 0) throw new Error(`negative radius: ${r}`);
|
|
2505
|
+
let dx = r * Math.cos(a0), dy = r * Math.sin(a0), x05 = x3 + dx, y05 = y3 + dy, cw = 1 ^ ccw, da = ccw ? a0 - a1 : a1 - a0;
|
|
2506
|
+
if (this._x1 === null) {
|
|
2507
|
+
this._append`M${x05},${y05}`;
|
|
2508
|
+
} else if (Math.abs(this._x1 - x05) > epsilon4 || Math.abs(this._y1 - y05) > epsilon4) {
|
|
2509
|
+
this._append`L${x05},${y05}`;
|
|
2510
|
+
}
|
|
2511
|
+
if (!r) return;
|
|
2512
|
+
if (da < 0) da = da % tau3 + tau3;
|
|
2513
|
+
if (da > tauEpsilon) {
|
|
2514
|
+
this._append`A${r},${r},0,1,${cw},${x3 - dx},${y3 - dy}A${r},${r},0,1,${cw},${this._x1 = x05},${this._y1 = y05}`;
|
|
2515
|
+
} else if (da > epsilon4) {
|
|
2516
|
+
this._append`A${r},${r},0,${+(da >= pi3)},${cw},${this._x1 = x3 + r * Math.cos(a1)},${this._y1 = y3 + r * Math.sin(a1)}`;
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
rect(x3, y3, w, h) {
|
|
2520
|
+
this._append`M${this._x0 = this._x1 = +x3},${this._y0 = this._y1 = +y3}h${w = +w}v${+h}h${-w}Z`;
|
|
2521
|
+
}
|
|
2522
|
+
toString() {
|
|
2523
|
+
return this._;
|
|
2524
|
+
}
|
|
2525
|
+
};
|
|
2526
|
+
function path() {
|
|
2527
|
+
return new Path();
|
|
2528
|
+
}
|
|
2529
|
+
path.prototype = Path.prototype;
|
|
2530
|
+
|
|
2531
|
+
// ../node_modules/d3-shape/src/path.js
|
|
2532
|
+
function withPath(shape) {
|
|
2533
|
+
let digits = 3;
|
|
2534
|
+
shape.digits = function(_) {
|
|
2535
|
+
if (!arguments.length) return digits;
|
|
2536
|
+
if (_ == null) {
|
|
2537
|
+
digits = null;
|
|
2538
|
+
} else {
|
|
2539
|
+
const d = Math.floor(_);
|
|
2540
|
+
if (!(d >= 0)) throw new RangeError(`invalid digits: ${_}`);
|
|
2541
|
+
digits = d;
|
|
2542
|
+
}
|
|
2543
|
+
return shape;
|
|
2544
|
+
};
|
|
2545
|
+
return () => new Path(digits);
|
|
2546
|
+
}
|
|
2547
|
+
|
|
2548
|
+
// ../node_modules/d3-shape/src/arc.js
|
|
2549
|
+
function arcInnerRadius(d) {
|
|
2550
|
+
return d.innerRadius;
|
|
2551
|
+
}
|
|
2552
|
+
function arcOuterRadius(d) {
|
|
2553
|
+
return d.outerRadius;
|
|
2554
|
+
}
|
|
2555
|
+
function arcStartAngle(d) {
|
|
2556
|
+
return d.startAngle;
|
|
2557
|
+
}
|
|
2558
|
+
function arcEndAngle(d) {
|
|
2559
|
+
return d.endAngle;
|
|
2560
|
+
}
|
|
2561
|
+
function arcPadAngle(d) {
|
|
2562
|
+
return d && d.padAngle;
|
|
2563
|
+
}
|
|
2564
|
+
function intersect(x05, y05, x12, y12, x22, y22, x3, y3) {
|
|
2565
|
+
var x10 = x12 - x05, y10 = y12 - y05, x32 = x3 - x22, y32 = y3 - y22, t = y32 * x10 - x32 * y10;
|
|
2566
|
+
if (t * t < epsilon3) return;
|
|
2567
|
+
t = (x32 * (y05 - y22) - y32 * (x05 - x22)) / t;
|
|
2568
|
+
return [x05 + t * x10, y05 + t * y10];
|
|
2569
|
+
}
|
|
2570
|
+
function cornerTangents(x05, y05, x12, y12, r1, rc, cw) {
|
|
2571
|
+
var x01 = x05 - x12, y01 = y05 - y12, lo = (cw ? rc : -rc) / sqrt2(x01 * x01 + y01 * y01), ox = lo * y01, oy = -lo * x01, x11 = x05 + ox, y11 = y05 + oy, x10 = x12 + ox, y10 = y12 + oy, x004 = (x11 + x10) / 2, y004 = (y11 + y10) / 2, dx = x10 - x11, dy = y10 - y11, d2 = dx * dx + dy * dy, r = r1 - rc, D = x11 * y10 - x10 * y11, d = (dy < 0 ? -1 : 1) * sqrt2(max2(0, r * r * d2 - D * D)), cx0 = (D * dy - dx * d) / d2, cy0 = (-D * dx - dy * d) / d2, cx1 = (D * dy + dx * d) / d2, cy1 = (-D * dx + dy * d) / d2, dx0 = cx0 - x004, dy0 = cy0 - y004, dx1 = cx1 - x004, dy1 = cy1 - y004;
|
|
2572
|
+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
|
|
2573
|
+
return {
|
|
2574
|
+
cx: cx0,
|
|
2575
|
+
cy: cy0,
|
|
2576
|
+
x01: -ox,
|
|
2577
|
+
y01: -oy,
|
|
2578
|
+
x11: cx0 * (r1 / r - 1),
|
|
2579
|
+
y11: cy0 * (r1 / r - 1)
|
|
2580
|
+
};
|
|
2581
|
+
}
|
|
2582
|
+
function arc_default() {
|
|
2583
|
+
var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = constant_default2(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context = null, path2 = withPath(arc);
|
|
2584
|
+
function arc() {
|
|
2585
|
+
var buffer, r, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - halfPi2, a1 = endAngle.apply(this, arguments) - halfPi2, da = abs2(a1 - a0), cw = a1 > a0;
|
|
2586
|
+
if (!context) context = buffer = path2();
|
|
2587
|
+
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
2588
|
+
if (!(r1 > epsilon3)) context.moveTo(0, 0);
|
|
2589
|
+
else if (da > tau2 - epsilon3) {
|
|
2590
|
+
context.moveTo(r1 * cos2(a0), r1 * sin2(a0));
|
|
2591
|
+
context.arc(0, 0, r1, a0, a1, !cw);
|
|
2592
|
+
if (r0 > epsilon3) {
|
|
2593
|
+
context.moveTo(r0 * cos2(a1), r0 * sin2(a1));
|
|
2594
|
+
context.arc(0, 0, r0, a1, a0, cw);
|
|
2595
|
+
}
|
|
2596
|
+
} else {
|
|
2597
|
+
var a01 = a0, a11 = a1, a00 = a0, a10 = a1, da0 = da, da1 = da, ap = padAngle.apply(this, arguments) / 2, rp = ap > epsilon3 && (padRadius ? +padRadius.apply(this, arguments) : sqrt2(r0 * r0 + r1 * r1)), rc = min(abs2(r1 - r0) / 2, +cornerRadius.apply(this, arguments)), rc0 = rc, rc1 = rc, t0, t1;
|
|
2598
|
+
if (rp > epsilon3) {
|
|
2599
|
+
var p0 = asin2(rp / r0 * sin2(ap)), p1 = asin2(rp / r1 * sin2(ap));
|
|
2600
|
+
if ((da0 -= p0 * 2) > epsilon3) p0 *= cw ? 1 : -1, a00 += p0, a10 -= p0;
|
|
2601
|
+
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
2602
|
+
if ((da1 -= p1 * 2) > epsilon3) p1 *= cw ? 1 : -1, a01 += p1, a11 -= p1;
|
|
2603
|
+
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
2604
|
+
}
|
|
2605
|
+
var x01 = r1 * cos2(a01), y01 = r1 * sin2(a01), x10 = r0 * cos2(a10), y10 = r0 * sin2(a10);
|
|
2606
|
+
if (rc > epsilon3) {
|
|
2607
|
+
var x11 = r1 * cos2(a11), y11 = r1 * sin2(a11), x004 = r0 * cos2(a00), y004 = r0 * sin2(a00), oc;
|
|
2608
|
+
if (da < pi2) {
|
|
2609
|
+
if (oc = intersect(x01, y01, x004, y004, x11, y11, x10, y10)) {
|
|
2610
|
+
var ax = x01 - oc[0], ay = y01 - oc[1], bx = x11 - oc[0], by = y11 - oc[1], kc = 1 / sin2(acos2((ax * bx + ay * by) / (sqrt2(ax * ax + ay * ay) * sqrt2(bx * bx + by * by))) / 2), lc = sqrt2(oc[0] * oc[0] + oc[1] * oc[1]);
|
|
2611
|
+
rc0 = min(rc, (r0 - lc) / (kc - 1));
|
|
2612
|
+
rc1 = min(rc, (r1 - lc) / (kc + 1));
|
|
2613
|
+
} else {
|
|
2614
|
+
rc0 = rc1 = 0;
|
|
2615
|
+
}
|
|
2616
|
+
}
|
|
2617
|
+
}
|
|
2618
|
+
if (!(da1 > epsilon3)) context.moveTo(x01, y01);
|
|
2619
|
+
else if (rc1 > epsilon3) {
|
|
2620
|
+
t0 = cornerTangents(x004, y004, x01, y01, r1, rc1, cw);
|
|
2621
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
2622
|
+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
2623
|
+
if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, atan22(t0.y01, t0.x01), atan22(t1.y01, t1.x01), !cw);
|
|
2624
|
+
else {
|
|
2625
|
+
context.arc(t0.cx, t0.cy, rc1, atan22(t0.y01, t0.x01), atan22(t0.y11, t0.x11), !cw);
|
|
2626
|
+
context.arc(0, 0, r1, atan22(t0.cy + t0.y11, t0.cx + t0.x11), atan22(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
|
|
2627
|
+
context.arc(t1.cx, t1.cy, rc1, atan22(t1.y11, t1.x11), atan22(t1.y01, t1.x01), !cw);
|
|
2628
|
+
}
|
|
2629
|
+
} else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
|
|
2630
|
+
if (!(r0 > epsilon3) || !(da0 > epsilon3)) context.lineTo(x10, y10);
|
|
2631
|
+
else if (rc0 > epsilon3) {
|
|
2632
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
2633
|
+
t1 = cornerTangents(x01, y01, x004, y004, r0, -rc0, cw);
|
|
2634
|
+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
2635
|
+
if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, atan22(t0.y01, t0.x01), atan22(t1.y01, t1.x01), !cw);
|
|
2636
|
+
else {
|
|
2637
|
+
context.arc(t0.cx, t0.cy, rc0, atan22(t0.y01, t0.x01), atan22(t0.y11, t0.x11), !cw);
|
|
2638
|
+
context.arc(0, 0, r0, atan22(t0.cy + t0.y11, t0.cx + t0.x11), atan22(t1.cy + t1.y11, t1.cx + t1.x11), cw);
|
|
2639
|
+
context.arc(t1.cx, t1.cy, rc0, atan22(t1.y11, t1.x11), atan22(t1.y01, t1.x01), !cw);
|
|
2640
|
+
}
|
|
2641
|
+
} else context.arc(0, 0, r0, a10, a00, cw);
|
|
2642
|
+
}
|
|
2643
|
+
context.closePath();
|
|
2644
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
2645
|
+
}
|
|
2646
|
+
arc.centroid = function() {
|
|
2647
|
+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2, a3 = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - pi2 / 2;
|
|
2648
|
+
return [cos2(a3) * r, sin2(a3) * r];
|
|
2649
|
+
};
|
|
2650
|
+
arc.innerRadius = function(_) {
|
|
2651
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant_default2(+_), arc) : innerRadius;
|
|
2652
|
+
};
|
|
2653
|
+
arc.outerRadius = function(_) {
|
|
2654
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant_default2(+_), arc) : outerRadius;
|
|
2655
|
+
};
|
|
2656
|
+
arc.cornerRadius = function(_) {
|
|
2657
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant_default2(+_), arc) : cornerRadius;
|
|
2658
|
+
};
|
|
2659
|
+
arc.padRadius = function(_) {
|
|
2660
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant_default2(+_), arc) : padRadius;
|
|
2661
|
+
};
|
|
2662
|
+
arc.startAngle = function(_) {
|
|
2663
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant_default2(+_), arc) : startAngle;
|
|
2664
|
+
};
|
|
2665
|
+
arc.endAngle = function(_) {
|
|
2666
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant_default2(+_), arc) : endAngle;
|
|
2667
|
+
};
|
|
2668
|
+
arc.padAngle = function(_) {
|
|
2669
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant_default2(+_), arc) : padAngle;
|
|
2670
|
+
};
|
|
2671
|
+
arc.context = function(_) {
|
|
2672
|
+
return arguments.length ? (context = _ == null ? null : _, arc) : context;
|
|
2673
|
+
};
|
|
2674
|
+
return arc;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
// ../node_modules/d3-shape/src/array.js
|
|
2678
|
+
var slice = Array.prototype.slice;
|
|
2679
|
+
function array_default(x3) {
|
|
2680
|
+
return typeof x3 === "object" && "length" in x3 ? x3 : Array.from(x3);
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2683
|
+
// ../node_modules/d3-shape/src/curve/linear.js
|
|
2684
|
+
function Linear(context) {
|
|
2685
|
+
this._context = context;
|
|
2686
|
+
}
|
|
2687
|
+
Linear.prototype = {
|
|
2688
|
+
areaStart: function() {
|
|
2689
|
+
this._line = 0;
|
|
2690
|
+
},
|
|
2691
|
+
areaEnd: function() {
|
|
2692
|
+
this._line = NaN;
|
|
2693
|
+
},
|
|
2694
|
+
lineStart: function() {
|
|
2695
|
+
this._point = 0;
|
|
2696
|
+
},
|
|
2697
|
+
lineEnd: function() {
|
|
2698
|
+
if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
|
|
2699
|
+
this._line = 1 - this._line;
|
|
2700
|
+
},
|
|
2701
|
+
point: function(x3, y3) {
|
|
2702
|
+
x3 = +x3, y3 = +y3;
|
|
2703
|
+
switch (this._point) {
|
|
2704
|
+
case 0:
|
|
2705
|
+
this._point = 1;
|
|
2706
|
+
this._line ? this._context.lineTo(x3, y3) : this._context.moveTo(x3, y3);
|
|
2707
|
+
break;
|
|
2708
|
+
case 1:
|
|
2709
|
+
this._point = 2;
|
|
2710
|
+
// falls through
|
|
2711
|
+
default:
|
|
2712
|
+
this._context.lineTo(x3, y3);
|
|
2713
|
+
break;
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2717
|
+
function linear_default(context) {
|
|
2718
|
+
return new Linear(context);
|
|
2719
|
+
}
|
|
2720
|
+
|
|
2721
|
+
// ../node_modules/d3-shape/src/point.js
|
|
2722
|
+
function x2(p) {
|
|
2723
|
+
return p[0];
|
|
2724
|
+
}
|
|
2725
|
+
function y2(p) {
|
|
2726
|
+
return p[1];
|
|
2727
|
+
}
|
|
2728
|
+
|
|
2729
|
+
// ../node_modules/d3-shape/src/line.js
|
|
2730
|
+
function line_default2(x3, y3) {
|
|
2731
|
+
var defined = constant_default2(true), context = null, curve = linear_default, output = null, path2 = withPath(line);
|
|
2732
|
+
x3 = typeof x3 === "function" ? x3 : x3 === void 0 ? x2 : constant_default2(x3);
|
|
2733
|
+
y3 = typeof y3 === "function" ? y3 : y3 === void 0 ? y2 : constant_default2(y3);
|
|
2734
|
+
function line(data) {
|
|
2735
|
+
var i, n = (data = array_default(data)).length, d, defined0 = false, buffer;
|
|
2736
|
+
if (context == null) output = curve(buffer = path2());
|
|
2737
|
+
for (i = 0; i <= n; ++i) {
|
|
2738
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
|
2739
|
+
if (defined0 = !defined0) output.lineStart();
|
|
2740
|
+
else output.lineEnd();
|
|
2741
|
+
}
|
|
2742
|
+
if (defined0) output.point(+x3(d, i, data), +y3(d, i, data));
|
|
2743
|
+
}
|
|
2744
|
+
if (buffer) return output = null, buffer + "" || null;
|
|
2745
|
+
}
|
|
2746
|
+
line.x = function(_) {
|
|
2747
|
+
return arguments.length ? (x3 = typeof _ === "function" ? _ : constant_default2(+_), line) : x3;
|
|
2748
|
+
};
|
|
2749
|
+
line.y = function(_) {
|
|
2750
|
+
return arguments.length ? (y3 = typeof _ === "function" ? _ : constant_default2(+_), line) : y3;
|
|
2751
|
+
};
|
|
2752
|
+
line.defined = function(_) {
|
|
2753
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default2(!!_), line) : defined;
|
|
2754
|
+
};
|
|
2755
|
+
line.curve = function(_) {
|
|
2756
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
|
|
2757
|
+
};
|
|
2758
|
+
line.context = function(_) {
|
|
2759
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
|
|
2760
|
+
};
|
|
2761
|
+
return line;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
// ../node_modules/d3-shape/src/area.js
|
|
2765
|
+
function area_default2(x05, y05, y12) {
|
|
2766
|
+
var x12 = null, defined = constant_default2(true), context = null, curve = linear_default, output = null, path2 = withPath(area);
|
|
2767
|
+
x05 = typeof x05 === "function" ? x05 : x05 === void 0 ? x2 : constant_default2(+x05);
|
|
2768
|
+
y05 = typeof y05 === "function" ? y05 : y05 === void 0 ? constant_default2(0) : constant_default2(+y05);
|
|
2769
|
+
y12 = typeof y12 === "function" ? y12 : y12 === void 0 ? y2 : constant_default2(+y12);
|
|
2770
|
+
function area(data) {
|
|
2771
|
+
var i, j, k2, n = (data = array_default(data)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n);
|
|
2772
|
+
if (context == null) output = curve(buffer = path2());
|
|
2773
|
+
for (i = 0; i <= n; ++i) {
|
|
2774
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
|
2775
|
+
if (defined0 = !defined0) {
|
|
2776
|
+
j = i;
|
|
2777
|
+
output.areaStart();
|
|
2778
|
+
output.lineStart();
|
|
2779
|
+
} else {
|
|
2780
|
+
output.lineEnd();
|
|
2781
|
+
output.lineStart();
|
|
2782
|
+
for (k2 = i - 1; k2 >= j; --k2) {
|
|
2783
|
+
output.point(x0z[k2], y0z[k2]);
|
|
2784
|
+
}
|
|
2785
|
+
output.lineEnd();
|
|
2786
|
+
output.areaEnd();
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
if (defined0) {
|
|
2790
|
+
x0z[i] = +x05(d, i, data), y0z[i] = +y05(d, i, data);
|
|
2791
|
+
output.point(x12 ? +x12(d, i, data) : x0z[i], y12 ? +y12(d, i, data) : y0z[i]);
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
if (buffer) return output = null, buffer + "" || null;
|
|
2795
|
+
}
|
|
2796
|
+
function arealine() {
|
|
2797
|
+
return line_default2().defined(defined).curve(curve).context(context);
|
|
2798
|
+
}
|
|
2799
|
+
area.x = function(_) {
|
|
2800
|
+
return arguments.length ? (x05 = typeof _ === "function" ? _ : constant_default2(+_), x12 = null, area) : x05;
|
|
2801
|
+
};
|
|
2802
|
+
area.x0 = function(_) {
|
|
2803
|
+
return arguments.length ? (x05 = typeof _ === "function" ? _ : constant_default2(+_), area) : x05;
|
|
2804
|
+
};
|
|
2805
|
+
area.x1 = function(_) {
|
|
2806
|
+
return arguments.length ? (x12 = _ == null ? null : typeof _ === "function" ? _ : constant_default2(+_), area) : x12;
|
|
2807
|
+
};
|
|
2808
|
+
area.y = function(_) {
|
|
2809
|
+
return arguments.length ? (y05 = typeof _ === "function" ? _ : constant_default2(+_), y12 = null, area) : y05;
|
|
2810
|
+
};
|
|
2811
|
+
area.y0 = function(_) {
|
|
2812
|
+
return arguments.length ? (y05 = typeof _ === "function" ? _ : constant_default2(+_), area) : y05;
|
|
2813
|
+
};
|
|
2814
|
+
area.y1 = function(_) {
|
|
2815
|
+
return arguments.length ? (y12 = _ == null ? null : typeof _ === "function" ? _ : constant_default2(+_), area) : y12;
|
|
2816
|
+
};
|
|
2817
|
+
area.lineX0 = area.lineY0 = function() {
|
|
2818
|
+
return arealine().x(x05).y(y05);
|
|
2819
|
+
};
|
|
2820
|
+
area.lineY1 = function() {
|
|
2821
|
+
return arealine().x(x05).y(y12);
|
|
2822
|
+
};
|
|
2823
|
+
area.lineX1 = function() {
|
|
2824
|
+
return arealine().x(x12).y(y05);
|
|
2825
|
+
};
|
|
2826
|
+
area.defined = function(_) {
|
|
2827
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : constant_default2(!!_), area) : defined;
|
|
2828
|
+
};
|
|
2829
|
+
area.curve = function(_) {
|
|
2830
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
|
|
2831
|
+
};
|
|
2832
|
+
area.context = function(_) {
|
|
2833
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
|
|
2834
|
+
};
|
|
2835
|
+
return area;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2838
|
+
// ../node_modules/d3-shape/src/symbol/circle.js
|
|
2839
|
+
var circle_default2 = {
|
|
2840
|
+
draw(context, size) {
|
|
2841
|
+
const r = sqrt2(size / pi2);
|
|
2842
|
+
context.moveTo(r, 0);
|
|
2843
|
+
context.arc(0, 0, r, 0, tau2);
|
|
2844
|
+
}
|
|
2845
|
+
};
|
|
2846
|
+
|
|
2847
|
+
// ../node_modules/d3-shape/src/symbol/cross.js
|
|
2848
|
+
var cross_default = {
|
|
2849
|
+
draw(context, size) {
|
|
2850
|
+
const r = sqrt2(size / 5) / 2;
|
|
2851
|
+
context.moveTo(-3 * r, -r);
|
|
2852
|
+
context.lineTo(-r, -r);
|
|
2853
|
+
context.lineTo(-r, -3 * r);
|
|
2854
|
+
context.lineTo(r, -3 * r);
|
|
2855
|
+
context.lineTo(r, -r);
|
|
2856
|
+
context.lineTo(3 * r, -r);
|
|
2857
|
+
context.lineTo(3 * r, r);
|
|
2858
|
+
context.lineTo(r, r);
|
|
2859
|
+
context.lineTo(r, 3 * r);
|
|
2860
|
+
context.lineTo(-r, 3 * r);
|
|
2861
|
+
context.lineTo(-r, r);
|
|
2862
|
+
context.lineTo(-3 * r, r);
|
|
2863
|
+
context.closePath();
|
|
2864
|
+
}
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
// ../node_modules/d3-shape/src/symbol/diamond.js
|
|
2868
|
+
var tan30 = sqrt2(1 / 3);
|
|
2869
|
+
var tan30_2 = tan30 * 2;
|
|
2870
|
+
var diamond_default = {
|
|
2871
|
+
draw(context, size) {
|
|
2872
|
+
const y3 = sqrt2(size / tan30_2);
|
|
2873
|
+
const x3 = y3 * tan30;
|
|
2874
|
+
context.moveTo(0, -y3);
|
|
2875
|
+
context.lineTo(x3, 0);
|
|
2876
|
+
context.lineTo(0, y3);
|
|
2877
|
+
context.lineTo(-x3, 0);
|
|
2878
|
+
context.closePath();
|
|
2879
|
+
}
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2882
|
+
// ../node_modules/d3-shape/src/symbol/square.js
|
|
2883
|
+
var square_default = {
|
|
2884
|
+
draw(context, size) {
|
|
2885
|
+
const w = sqrt2(size);
|
|
2886
|
+
const x3 = -w / 2;
|
|
2887
|
+
context.rect(x3, x3, w, w);
|
|
2888
|
+
}
|
|
2889
|
+
};
|
|
2890
|
+
|
|
2891
|
+
// ../node_modules/d3-shape/src/symbol/star.js
|
|
2892
|
+
var ka = 0.8908130915292852;
|
|
2893
|
+
var kr = sin2(pi2 / 10) / sin2(7 * pi2 / 10);
|
|
2894
|
+
var kx = sin2(tau2 / 10) * kr;
|
|
2895
|
+
var ky = -cos2(tau2 / 10) * kr;
|
|
2896
|
+
var star_default = {
|
|
2897
|
+
draw(context, size) {
|
|
2898
|
+
const r = sqrt2(size * ka);
|
|
2899
|
+
const x3 = kx * r;
|
|
2900
|
+
const y3 = ky * r;
|
|
2901
|
+
context.moveTo(0, -r);
|
|
2902
|
+
context.lineTo(x3, y3);
|
|
2903
|
+
for (let i = 1; i < 5; ++i) {
|
|
2904
|
+
const a3 = tau2 * i / 5;
|
|
2905
|
+
const c4 = cos2(a3);
|
|
2906
|
+
const s2 = sin2(a3);
|
|
2907
|
+
context.lineTo(s2 * r, -c4 * r);
|
|
2908
|
+
context.lineTo(c4 * x3 - s2 * y3, s2 * x3 + c4 * y3);
|
|
2909
|
+
}
|
|
2910
|
+
context.closePath();
|
|
2911
|
+
}
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
// ../node_modules/d3-shape/src/symbol/triangle.js
|
|
2915
|
+
var sqrt3 = sqrt2(3);
|
|
2916
|
+
var triangle_default = {
|
|
2917
|
+
draw(context, size) {
|
|
2918
|
+
const y3 = -sqrt2(size / (sqrt3 * 3));
|
|
2919
|
+
context.moveTo(0, y3 * 2);
|
|
2920
|
+
context.lineTo(-sqrt3 * y3, -y3);
|
|
2921
|
+
context.lineTo(sqrt3 * y3, -y3);
|
|
2922
|
+
context.closePath();
|
|
2923
|
+
}
|
|
2924
|
+
};
|
|
2925
|
+
|
|
2926
|
+
// ../node_modules/d3-shape/src/symbol/wye.js
|
|
2927
|
+
var c3 = -0.5;
|
|
2928
|
+
var s = sqrt2(3) / 2;
|
|
2929
|
+
var k = 1 / sqrt2(12);
|
|
2930
|
+
var a2 = (k / 2 + 1) * 3;
|
|
2931
|
+
var wye_default = {
|
|
2932
|
+
draw(context, size) {
|
|
2933
|
+
const r = sqrt2(size / a2);
|
|
2934
|
+
const x05 = r / 2, y05 = r * k;
|
|
2935
|
+
const x12 = x05, y12 = r * k + r;
|
|
2936
|
+
const x22 = -x12, y22 = y12;
|
|
2937
|
+
context.moveTo(x05, y05);
|
|
2938
|
+
context.lineTo(x12, y12);
|
|
2939
|
+
context.lineTo(x22, y22);
|
|
2940
|
+
context.lineTo(c3 * x05 - s * y05, s * x05 + c3 * y05);
|
|
2941
|
+
context.lineTo(c3 * x12 - s * y12, s * x12 + c3 * y12);
|
|
2942
|
+
context.lineTo(c3 * x22 - s * y22, s * x22 + c3 * y22);
|
|
2943
|
+
context.lineTo(c3 * x05 + s * y05, c3 * y05 - s * x05);
|
|
2944
|
+
context.lineTo(c3 * x12 + s * y12, c3 * y12 - s * x12);
|
|
2945
|
+
context.lineTo(c3 * x22 + s * y22, c3 * y22 - s * x22);
|
|
2946
|
+
context.closePath();
|
|
2947
|
+
}
|
|
2948
|
+
};
|
|
2949
|
+
|
|
2950
|
+
// ../node_modules/d3-shape/src/symbol.js
|
|
2951
|
+
function Symbol(type, size) {
|
|
2952
|
+
let context = null, path2 = withPath(symbol);
|
|
2953
|
+
type = typeof type === "function" ? type : constant_default2(type || circle_default2);
|
|
2954
|
+
size = typeof size === "function" ? size : constant_default2(size === void 0 ? 64 : +size);
|
|
2955
|
+
function symbol() {
|
|
2956
|
+
let buffer;
|
|
2957
|
+
if (!context) context = buffer = path2();
|
|
2958
|
+
type.apply(this, arguments).draw(context, +size.apply(this, arguments));
|
|
2959
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
2960
|
+
}
|
|
2961
|
+
symbol.type = function(_) {
|
|
2962
|
+
return arguments.length ? (type = typeof _ === "function" ? _ : constant_default2(_), symbol) : type;
|
|
2963
|
+
};
|
|
2964
|
+
symbol.size = function(_) {
|
|
2965
|
+
return arguments.length ? (size = typeof _ === "function" ? _ : constant_default2(+_), symbol) : size;
|
|
2966
|
+
};
|
|
2967
|
+
symbol.context = function(_) {
|
|
2968
|
+
return arguments.length ? (context = _ == null ? null : _, symbol) : context;
|
|
2969
|
+
};
|
|
2970
|
+
return symbol;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
// ../node_modules/d3-shape/src/curve/basis.js
|
|
2974
|
+
function point(that, x3, y3) {
|
|
2975
|
+
that._context.bezierCurveTo(
|
|
2976
|
+
(2 * that._x0 + that._x1) / 3,
|
|
2977
|
+
(2 * that._y0 + that._y1) / 3,
|
|
2978
|
+
(that._x0 + 2 * that._x1) / 3,
|
|
2979
|
+
(that._y0 + 2 * that._y1) / 3,
|
|
2980
|
+
(that._x0 + 4 * that._x1 + x3) / 6,
|
|
2981
|
+
(that._y0 + 4 * that._y1 + y3) / 6
|
|
2982
|
+
);
|
|
2983
|
+
}
|
|
2984
|
+
function Basis(context) {
|
|
2985
|
+
this._context = context;
|
|
2986
|
+
}
|
|
2987
|
+
Basis.prototype = {
|
|
2988
|
+
areaStart: function() {
|
|
2989
|
+
this._line = 0;
|
|
2990
|
+
},
|
|
2991
|
+
areaEnd: function() {
|
|
2992
|
+
this._line = NaN;
|
|
2993
|
+
},
|
|
2994
|
+
lineStart: function() {
|
|
2995
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN;
|
|
2996
|
+
this._point = 0;
|
|
2997
|
+
},
|
|
2998
|
+
lineEnd: function() {
|
|
2999
|
+
switch (this._point) {
|
|
3000
|
+
case 3:
|
|
3001
|
+
point(this, this._x1, this._y1);
|
|
3002
|
+
// falls through
|
|
3003
|
+
case 2:
|
|
3004
|
+
this._context.lineTo(this._x1, this._y1);
|
|
3005
|
+
break;
|
|
3006
|
+
}
|
|
3007
|
+
if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
|
|
3008
|
+
this._line = 1 - this._line;
|
|
3009
|
+
},
|
|
3010
|
+
point: function(x3, y3) {
|
|
3011
|
+
x3 = +x3, y3 = +y3;
|
|
3012
|
+
switch (this._point) {
|
|
3013
|
+
case 0:
|
|
3014
|
+
this._point = 1;
|
|
3015
|
+
this._line ? this._context.lineTo(x3, y3) : this._context.moveTo(x3, y3);
|
|
3016
|
+
break;
|
|
3017
|
+
case 1:
|
|
3018
|
+
this._point = 2;
|
|
3019
|
+
break;
|
|
3020
|
+
case 2:
|
|
3021
|
+
this._point = 3;
|
|
3022
|
+
this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
|
|
3023
|
+
// falls through
|
|
3024
|
+
default:
|
|
3025
|
+
point(this, x3, y3);
|
|
3026
|
+
break;
|
|
3027
|
+
}
|
|
3028
|
+
this._x0 = this._x1, this._x1 = x3;
|
|
3029
|
+
this._y0 = this._y1, this._y1 = y3;
|
|
3030
|
+
}
|
|
3031
|
+
};
|
|
3032
|
+
function basis_default(context) {
|
|
3033
|
+
return new Basis(context);
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3036
|
+
// ../node_modules/d3-shape/src/curve/monotone.js
|
|
3037
|
+
function sign2(x3) {
|
|
3038
|
+
return x3 < 0 ? -1 : 1;
|
|
3039
|
+
}
|
|
3040
|
+
function slope3(that, x22, y22) {
|
|
3041
|
+
var h0 = that._x1 - that._x0, h1 = x22 - that._x1, s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0), s1 = (y22 - that._y1) / (h1 || h0 < 0 && -0), p = (s0 * h1 + s1 * h0) / (h0 + h1);
|
|
3042
|
+
return (sign2(s0) + sign2(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
3043
|
+
}
|
|
3044
|
+
function slope2(that, t) {
|
|
3045
|
+
var h = that._x1 - that._x0;
|
|
3046
|
+
return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
|
|
3047
|
+
}
|
|
3048
|
+
function point2(that, t0, t1) {
|
|
3049
|
+
var x05 = that._x0, y05 = that._y0, x12 = that._x1, y12 = that._y1, dx = (x12 - x05) / 3;
|
|
3050
|
+
that._context.bezierCurveTo(x05 + dx, y05 + dx * t0, x12 - dx, y12 - dx * t1, x12, y12);
|
|
3051
|
+
}
|
|
3052
|
+
function MonotoneX(context) {
|
|
3053
|
+
this._context = context;
|
|
3054
|
+
}
|
|
3055
|
+
MonotoneX.prototype = {
|
|
3056
|
+
areaStart: function() {
|
|
3057
|
+
this._line = 0;
|
|
3058
|
+
},
|
|
3059
|
+
areaEnd: function() {
|
|
3060
|
+
this._line = NaN;
|
|
3061
|
+
},
|
|
3062
|
+
lineStart: function() {
|
|
3063
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN;
|
|
3064
|
+
this._point = 0;
|
|
3065
|
+
},
|
|
3066
|
+
lineEnd: function() {
|
|
3067
|
+
switch (this._point) {
|
|
3068
|
+
case 2:
|
|
3069
|
+
this._context.lineTo(this._x1, this._y1);
|
|
3070
|
+
break;
|
|
3071
|
+
case 3:
|
|
3072
|
+
point2(this, this._t0, slope2(this, this._t0));
|
|
3073
|
+
break;
|
|
3074
|
+
}
|
|
3075
|
+
if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
|
|
3076
|
+
this._line = 1 - this._line;
|
|
3077
|
+
},
|
|
3078
|
+
point: function(x3, y3) {
|
|
3079
|
+
var t1 = NaN;
|
|
3080
|
+
x3 = +x3, y3 = +y3;
|
|
3081
|
+
if (x3 === this._x1 && y3 === this._y1) return;
|
|
3082
|
+
switch (this._point) {
|
|
3083
|
+
case 0:
|
|
3084
|
+
this._point = 1;
|
|
3085
|
+
this._line ? this._context.lineTo(x3, y3) : this._context.moveTo(x3, y3);
|
|
3086
|
+
break;
|
|
3087
|
+
case 1:
|
|
3088
|
+
this._point = 2;
|
|
3089
|
+
break;
|
|
3090
|
+
case 2:
|
|
3091
|
+
this._point = 3;
|
|
3092
|
+
point2(this, slope2(this, t1 = slope3(this, x3, y3)), t1);
|
|
3093
|
+
break;
|
|
3094
|
+
default:
|
|
3095
|
+
point2(this, this._t0, t1 = slope3(this, x3, y3));
|
|
3096
|
+
break;
|
|
3097
|
+
}
|
|
3098
|
+
this._x0 = this._x1, this._x1 = x3;
|
|
3099
|
+
this._y0 = this._y1, this._y1 = y3;
|
|
3100
|
+
this._t0 = t1;
|
|
3101
|
+
}
|
|
3102
|
+
};
|
|
3103
|
+
function MonotoneY(context) {
|
|
3104
|
+
this._context = new ReflectContext(context);
|
|
3105
|
+
}
|
|
3106
|
+
(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x3, y3) {
|
|
3107
|
+
MonotoneX.prototype.point.call(this, y3, x3);
|
|
3108
|
+
};
|
|
3109
|
+
function ReflectContext(context) {
|
|
3110
|
+
this._context = context;
|
|
3111
|
+
}
|
|
3112
|
+
ReflectContext.prototype = {
|
|
3113
|
+
moveTo: function(x3, y3) {
|
|
3114
|
+
this._context.moveTo(y3, x3);
|
|
3115
|
+
},
|
|
3116
|
+
closePath: function() {
|
|
3117
|
+
this._context.closePath();
|
|
3118
|
+
},
|
|
3119
|
+
lineTo: function(x3, y3) {
|
|
3120
|
+
this._context.lineTo(y3, x3);
|
|
3121
|
+
},
|
|
3122
|
+
bezierCurveTo: function(x12, y12, x22, y22, x3, y3) {
|
|
3123
|
+
this._context.bezierCurveTo(y12, x12, y22, x22, y3, x3);
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
function monotoneX(context) {
|
|
3127
|
+
return new MonotoneX(context);
|
|
3128
|
+
}
|
|
3129
|
+
|
|
3130
|
+
// ../node_modules/d3-shape/src/curve/step.js
|
|
3131
|
+
function Step(context, t) {
|
|
3132
|
+
this._context = context;
|
|
3133
|
+
this._t = t;
|
|
3134
|
+
}
|
|
3135
|
+
Step.prototype = {
|
|
3136
|
+
areaStart: function() {
|
|
3137
|
+
this._line = 0;
|
|
3138
|
+
},
|
|
3139
|
+
areaEnd: function() {
|
|
3140
|
+
this._line = NaN;
|
|
3141
|
+
},
|
|
3142
|
+
lineStart: function() {
|
|
3143
|
+
this._x = this._y = NaN;
|
|
3144
|
+
this._point = 0;
|
|
3145
|
+
},
|
|
3146
|
+
lineEnd: function() {
|
|
3147
|
+
if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
|
|
3148
|
+
if (this._line || this._line !== 0 && this._point === 1) this._context.closePath();
|
|
3149
|
+
if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
|
|
3150
|
+
},
|
|
3151
|
+
point: function(x3, y3) {
|
|
3152
|
+
x3 = +x3, y3 = +y3;
|
|
3153
|
+
switch (this._point) {
|
|
3154
|
+
case 0:
|
|
3155
|
+
this._point = 1;
|
|
3156
|
+
this._line ? this._context.lineTo(x3, y3) : this._context.moveTo(x3, y3);
|
|
3157
|
+
break;
|
|
3158
|
+
case 1:
|
|
3159
|
+
this._point = 2;
|
|
3160
|
+
// falls through
|
|
3161
|
+
default: {
|
|
3162
|
+
if (this._t <= 0) {
|
|
3163
|
+
this._context.lineTo(this._x, y3);
|
|
3164
|
+
this._context.lineTo(x3, y3);
|
|
3165
|
+
} else {
|
|
3166
|
+
var x12 = this._x * (1 - this._t) + x3 * this._t;
|
|
3167
|
+
this._context.lineTo(x12, this._y);
|
|
3168
|
+
this._context.lineTo(x12, y3);
|
|
3169
|
+
}
|
|
3170
|
+
break;
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
this._x = x3, this._y = y3;
|
|
3174
|
+
}
|
|
3175
|
+
};
|
|
3176
|
+
function stepAfter(context) {
|
|
3177
|
+
return new Step(context, 1);
|
|
3178
|
+
}
|
|
3179
|
+
|
|
3180
|
+
// ../node_modules/d3-shape/src/descending.js
|
|
3181
|
+
function descending_default(a3, b) {
|
|
3182
|
+
return b < a3 ? -1 : b > a3 ? 1 : b >= a3 ? 0 : NaN;
|
|
3183
|
+
}
|
|
3184
|
+
|
|
3185
|
+
// ../node_modules/d3-shape/src/identity.js
|
|
3186
|
+
function identity_default2(d) {
|
|
3187
|
+
return d;
|
|
3188
|
+
}
|
|
3189
|
+
|
|
3190
|
+
// ../node_modules/d3-shape/src/pie.js
|
|
3191
|
+
function pie_default() {
|
|
3192
|
+
var value = identity_default2, sortValues = descending_default, sort = null, startAngle = constant_default2(0), endAngle = constant_default2(tau2), padAngle = constant_default2(0);
|
|
3193
|
+
function pie(data) {
|
|
3194
|
+
var i, n = (data = array_default(data)).length, j, k2, sum = 0, index2 = new Array(n), arcs = new Array(n), a0 = +startAngle.apply(this, arguments), da = Math.min(tau2, Math.max(-tau2, endAngle.apply(this, arguments) - a0)), a1, p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)), pa = p * (da < 0 ? -1 : 1), v;
|
|
3195
|
+
for (i = 0; i < n; ++i) {
|
|
3196
|
+
if ((v = arcs[index2[i] = i] = +value(data[i], i, data)) > 0) {
|
|
3197
|
+
sum += v;
|
|
3198
|
+
}
|
|
3199
|
+
}
|
|
3200
|
+
if (sortValues != null) index2.sort(function(i2, j2) {
|
|
3201
|
+
return sortValues(arcs[i2], arcs[j2]);
|
|
3202
|
+
});
|
|
3203
|
+
else if (sort != null) index2.sort(function(i2, j2) {
|
|
3204
|
+
return sort(data[i2], data[j2]);
|
|
3205
|
+
});
|
|
3206
|
+
for (i = 0, k2 = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
|
|
3207
|
+
j = index2[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k2 : 0) + pa, arcs[j] = {
|
|
3208
|
+
data: data[j],
|
|
3209
|
+
index: i,
|
|
3210
|
+
value: v,
|
|
3211
|
+
startAngle: a0,
|
|
3212
|
+
endAngle: a1,
|
|
3213
|
+
padAngle: p
|
|
3214
|
+
};
|
|
3215
|
+
}
|
|
3216
|
+
return arcs;
|
|
3217
|
+
}
|
|
3218
|
+
pie.value = function(_) {
|
|
3219
|
+
return arguments.length ? (value = typeof _ === "function" ? _ : constant_default2(+_), pie) : value;
|
|
3220
|
+
};
|
|
3221
|
+
pie.sortValues = function(_) {
|
|
3222
|
+
return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
|
|
3223
|
+
};
|
|
3224
|
+
pie.sort = function(_) {
|
|
3225
|
+
return arguments.length ? (sort = _, sortValues = null, pie) : sort;
|
|
3226
|
+
};
|
|
3227
|
+
pie.startAngle = function(_) {
|
|
3228
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant_default2(+_), pie) : startAngle;
|
|
3229
|
+
};
|
|
3230
|
+
pie.endAngle = function(_) {
|
|
3231
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant_default2(+_), pie) : endAngle;
|
|
3232
|
+
};
|
|
3233
|
+
pie.padAngle = function(_) {
|
|
3234
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant_default2(+_), pie) : padAngle;
|
|
3235
|
+
};
|
|
3236
|
+
return pie;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
// ../node_modules/d3-zoom/src/transform.js
|
|
3240
|
+
function Transform(k2, x3, y3) {
|
|
3241
|
+
this.k = k2;
|
|
3242
|
+
this.x = x3;
|
|
3243
|
+
this.y = y3;
|
|
3244
|
+
}
|
|
3245
|
+
Transform.prototype = {
|
|
3246
|
+
constructor: Transform,
|
|
3247
|
+
scale: function(k2) {
|
|
3248
|
+
return k2 === 1 ? this : new Transform(this.k * k2, this.x, this.y);
|
|
3249
|
+
},
|
|
3250
|
+
translate: function(x3, y3) {
|
|
3251
|
+
return x3 === 0 & y3 === 0 ? this : new Transform(this.k, this.x + this.k * x3, this.y + this.k * y3);
|
|
3252
|
+
},
|
|
3253
|
+
apply: function(point3) {
|
|
3254
|
+
return [point3[0] * this.k + this.x, point3[1] * this.k + this.y];
|
|
3255
|
+
},
|
|
3256
|
+
applyX: function(x3) {
|
|
3257
|
+
return x3 * this.k + this.x;
|
|
3258
|
+
},
|
|
3259
|
+
applyY: function(y3) {
|
|
3260
|
+
return y3 * this.k + this.y;
|
|
3261
|
+
},
|
|
3262
|
+
invert: function(location) {
|
|
3263
|
+
return [(location[0] - this.x) / this.k, (location[1] - this.y) / this.k];
|
|
3264
|
+
},
|
|
3265
|
+
invertX: function(x3) {
|
|
3266
|
+
return (x3 - this.x) / this.k;
|
|
3267
|
+
},
|
|
3268
|
+
invertY: function(y3) {
|
|
3269
|
+
return (y3 - this.y) / this.k;
|
|
3270
|
+
},
|
|
3271
|
+
rescaleX: function(x3) {
|
|
3272
|
+
return x3.copy().domain(x3.range().map(this.invertX, this).map(x3.invert, x3));
|
|
3273
|
+
},
|
|
3274
|
+
rescaleY: function(y3) {
|
|
3275
|
+
return y3.copy().domain(y3.range().map(this.invertY, this).map(y3.invert, y3));
|
|
3276
|
+
},
|
|
3277
|
+
toString: function() {
|
|
3278
|
+
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
3279
|
+
}
|
|
3280
|
+
};
|
|
3281
|
+
var identity = new Transform(1, 0, 0);
|
|
3282
|
+
transform.prototype = Transform.prototype;
|
|
3283
|
+
function transform(node) {
|
|
3284
|
+
while (!node.__zoom) if (!(node = node.parentNode)) return identity;
|
|
3285
|
+
return node.__zoom;
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
// ../node_modules/d3-zoom/src/constant.js
|
|
3289
|
+
var constant_default3 = (x3) => () => x3;
|
|
3290
|
+
|
|
3291
|
+
// ../node_modules/d3-zoom/src/event.js
|
|
3292
|
+
function ZoomEvent(type, {
|
|
3293
|
+
sourceEvent,
|
|
3294
|
+
target,
|
|
3295
|
+
transform: transform2,
|
|
3296
|
+
dispatch
|
|
3297
|
+
}) {
|
|
3298
|
+
Object.defineProperties(this, {
|
|
3299
|
+
type: { value: type, enumerable: true, configurable: true },
|
|
3300
|
+
sourceEvent: { value: sourceEvent, enumerable: true, configurable: true },
|
|
3301
|
+
target: { value: target, enumerable: true, configurable: true },
|
|
3302
|
+
transform: { value: transform2, enumerable: true, configurable: true },
|
|
3303
|
+
_: { value: dispatch }
|
|
3304
|
+
});
|
|
3305
|
+
}
|
|
3306
|
+
|
|
3307
|
+
// ../node_modules/d3-zoom/src/noevent.js
|
|
3308
|
+
function nopropagation(event) {
|
|
3309
|
+
event.stopImmediatePropagation();
|
|
3310
|
+
}
|
|
3311
|
+
function noevent_default(event) {
|
|
3312
|
+
event.preventDefault();
|
|
3313
|
+
event.stopImmediatePropagation();
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
// ../node_modules/d3-zoom/src/zoom.js
|
|
3317
|
+
function defaultFilter(event) {
|
|
3318
|
+
return (!event.ctrlKey || event.type === "wheel") && !event.button;
|
|
3319
|
+
}
|
|
3320
|
+
function defaultExtent() {
|
|
3321
|
+
var e = this;
|
|
3322
|
+
if (e instanceof SVGElement) {
|
|
3323
|
+
e = e.ownerSVGElement || e;
|
|
3324
|
+
if (e.hasAttribute("viewBox")) {
|
|
3325
|
+
e = e.viewBox.baseVal;
|
|
3326
|
+
return [[e.x, e.y], [e.x + e.width, e.y + e.height]];
|
|
3327
|
+
}
|
|
3328
|
+
return [[0, 0], [e.width.baseVal.value, e.height.baseVal.value]];
|
|
3329
|
+
}
|
|
3330
|
+
return [[0, 0], [e.clientWidth, e.clientHeight]];
|
|
3331
|
+
}
|
|
3332
|
+
function defaultTransform() {
|
|
3333
|
+
return this.__zoom || identity;
|
|
3334
|
+
}
|
|
3335
|
+
function defaultWheelDelta(event) {
|
|
3336
|
+
return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 2e-3) * (event.ctrlKey ? 10 : 1);
|
|
3337
|
+
}
|
|
3338
|
+
function defaultTouchable() {
|
|
3339
|
+
return navigator.maxTouchPoints || "ontouchstart" in this;
|
|
3340
|
+
}
|
|
3341
|
+
function defaultConstrain(transform2, extent2, translateExtent) {
|
|
3342
|
+
var dx0 = transform2.invertX(extent2[0][0]) - translateExtent[0][0], dx1 = transform2.invertX(extent2[1][0]) - translateExtent[1][0], dy0 = transform2.invertY(extent2[0][1]) - translateExtent[0][1], dy1 = transform2.invertY(extent2[1][1]) - translateExtent[1][1];
|
|
3343
|
+
return transform2.translate(
|
|
3344
|
+
dx1 > dx0 ? (dx0 + dx1) / 2 : Math.min(0, dx0) || Math.max(0, dx1),
|
|
3345
|
+
dy1 > dy0 ? (dy0 + dy1) / 2 : Math.min(0, dy0) || Math.max(0, dy1)
|
|
3346
|
+
);
|
|
3347
|
+
}
|
|
3348
|
+
function zoom_default2() {
|
|
3349
|
+
var filter = defaultFilter, extent2 = defaultExtent, constrain = defaultConstrain, wheelDelta = defaultWheelDelta, touchable = defaultTouchable, scaleExtent = [0, Infinity], translateExtent = [[-Infinity, -Infinity], [Infinity, Infinity]], duration = 250, interpolate = zoom_default, listeners = dispatch_default("start", "zoom", "end"), touchstarting, touchfirst, touchending, touchDelay = 500, wheelDelay = 150, clickDistance2 = 0, tapDistance = 10;
|
|
3350
|
+
function zoom(selection) {
|
|
3351
|
+
selection.property("__zoom", defaultTransform).on("wheel.zoom", wheeled, { passive: false }).on("mousedown.zoom", mousedowned).on("dblclick.zoom", dblclicked).filter(touchable).on("touchstart.zoom", touchstarted).on("touchmove.zoom", touchmoved).on("touchend.zoom touchcancel.zoom", touchended).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
3352
|
+
}
|
|
3353
|
+
zoom.transform = function(collection, transform2, point3, event) {
|
|
3354
|
+
var selection = collection.selection ? collection.selection() : collection;
|
|
3355
|
+
selection.property("__zoom", defaultTransform);
|
|
3356
|
+
if (collection !== selection) {
|
|
3357
|
+
schedule(collection, transform2, point3, event);
|
|
3358
|
+
} else {
|
|
3359
|
+
selection.interrupt().each(function() {
|
|
3360
|
+
gesture(this, arguments).event(event).start().zoom(null, typeof transform2 === "function" ? transform2.apply(this, arguments) : transform2).end();
|
|
3361
|
+
});
|
|
3362
|
+
}
|
|
3363
|
+
};
|
|
3364
|
+
zoom.scaleBy = function(selection, k2, p, event) {
|
|
3365
|
+
zoom.scaleTo(selection, function() {
|
|
3366
|
+
var k0 = this.__zoom.k, k1 = typeof k2 === "function" ? k2.apply(this, arguments) : k2;
|
|
3367
|
+
return k0 * k1;
|
|
3368
|
+
}, p, event);
|
|
3369
|
+
};
|
|
3370
|
+
zoom.scaleTo = function(selection, k2, p, event) {
|
|
3371
|
+
zoom.transform(selection, function() {
|
|
3372
|
+
var e = extent2.apply(this, arguments), t0 = this.__zoom, p0 = p == null ? centroid(e) : typeof p === "function" ? p.apply(this, arguments) : p, p1 = t0.invert(p0), k1 = typeof k2 === "function" ? k2.apply(this, arguments) : k2;
|
|
3373
|
+
return constrain(translate(scale(t0, k1), p0, p1), e, translateExtent);
|
|
3374
|
+
}, p, event);
|
|
3375
|
+
};
|
|
3376
|
+
zoom.translateBy = function(selection, x3, y3, event) {
|
|
3377
|
+
zoom.transform(selection, function() {
|
|
3378
|
+
return constrain(this.__zoom.translate(
|
|
3379
|
+
typeof x3 === "function" ? x3.apply(this, arguments) : x3,
|
|
3380
|
+
typeof y3 === "function" ? y3.apply(this, arguments) : y3
|
|
3381
|
+
), extent2.apply(this, arguments), translateExtent);
|
|
3382
|
+
}, null, event);
|
|
3383
|
+
};
|
|
3384
|
+
zoom.translateTo = function(selection, x3, y3, p, event) {
|
|
3385
|
+
zoom.transform(selection, function() {
|
|
3386
|
+
var e = extent2.apply(this, arguments), t = this.__zoom, p0 = p == null ? centroid(e) : typeof p === "function" ? p.apply(this, arguments) : p;
|
|
3387
|
+
return constrain(identity.translate(p0[0], p0[1]).scale(t.k).translate(
|
|
3388
|
+
typeof x3 === "function" ? -x3.apply(this, arguments) : -x3,
|
|
3389
|
+
typeof y3 === "function" ? -y3.apply(this, arguments) : -y3
|
|
3390
|
+
), e, translateExtent);
|
|
3391
|
+
}, p, event);
|
|
3392
|
+
};
|
|
3393
|
+
function scale(transform2, k2) {
|
|
3394
|
+
k2 = Math.max(scaleExtent[0], Math.min(scaleExtent[1], k2));
|
|
3395
|
+
return k2 === transform2.k ? transform2 : new Transform(k2, transform2.x, transform2.y);
|
|
3396
|
+
}
|
|
3397
|
+
function translate(transform2, p0, p1) {
|
|
3398
|
+
var x3 = p0[0] - p1[0] * transform2.k, y3 = p0[1] - p1[1] * transform2.k;
|
|
3399
|
+
return x3 === transform2.x && y3 === transform2.y ? transform2 : new Transform(transform2.k, x3, y3);
|
|
3400
|
+
}
|
|
3401
|
+
function centroid(extent3) {
|
|
3402
|
+
return [(+extent3[0][0] + +extent3[1][0]) / 2, (+extent3[0][1] + +extent3[1][1]) / 2];
|
|
3403
|
+
}
|
|
3404
|
+
function schedule(transition, transform2, point3, event) {
|
|
3405
|
+
transition.on("start.zoom", function() {
|
|
3406
|
+
gesture(this, arguments).event(event).start();
|
|
3407
|
+
}).on("interrupt.zoom end.zoom", function() {
|
|
3408
|
+
gesture(this, arguments).event(event).end();
|
|
3409
|
+
}).tween("zoom", function() {
|
|
3410
|
+
var that = this, args = arguments, g = gesture(that, args).event(event), e = extent2.apply(that, args), p = point3 == null ? centroid(e) : typeof point3 === "function" ? point3.apply(that, args) : point3, w = Math.max(e[1][0] - e[0][0], e[1][1] - e[0][1]), a3 = that.__zoom, b = typeof transform2 === "function" ? transform2.apply(that, args) : transform2, i = interpolate(a3.invert(p).concat(w / a3.k), b.invert(p).concat(w / b.k));
|
|
3411
|
+
return function(t) {
|
|
3412
|
+
if (t === 1) t = b;
|
|
3413
|
+
else {
|
|
3414
|
+
var l = i(t), k2 = w / l[2];
|
|
3415
|
+
t = new Transform(k2, p[0] - l[0] * k2, p[1] - l[1] * k2);
|
|
3416
|
+
}
|
|
3417
|
+
g.zoom(null, t);
|
|
3418
|
+
};
|
|
3419
|
+
});
|
|
3420
|
+
}
|
|
3421
|
+
function gesture(that, args, clean) {
|
|
3422
|
+
return !clean && that.__zooming || new Gesture(that, args);
|
|
3423
|
+
}
|
|
3424
|
+
function Gesture(that, args) {
|
|
3425
|
+
this.that = that;
|
|
3426
|
+
this.args = args;
|
|
3427
|
+
this.active = 0;
|
|
3428
|
+
this.sourceEvent = null;
|
|
3429
|
+
this.extent = extent2.apply(that, args);
|
|
3430
|
+
this.taps = 0;
|
|
3431
|
+
}
|
|
3432
|
+
Gesture.prototype = {
|
|
3433
|
+
event: function(event) {
|
|
3434
|
+
if (event) this.sourceEvent = event;
|
|
3435
|
+
return this;
|
|
3436
|
+
},
|
|
3437
|
+
start: function() {
|
|
3438
|
+
if (++this.active === 1) {
|
|
3439
|
+
this.that.__zooming = this;
|
|
3440
|
+
this.emit("start");
|
|
3441
|
+
}
|
|
3442
|
+
return this;
|
|
3443
|
+
},
|
|
3444
|
+
zoom: function(key, transform2) {
|
|
3445
|
+
if (this.mouse && key !== "mouse") this.mouse[1] = transform2.invert(this.mouse[0]);
|
|
3446
|
+
if (this.touch0 && key !== "touch") this.touch0[1] = transform2.invert(this.touch0[0]);
|
|
3447
|
+
if (this.touch1 && key !== "touch") this.touch1[1] = transform2.invert(this.touch1[0]);
|
|
3448
|
+
this.that.__zoom = transform2;
|
|
3449
|
+
this.emit("zoom");
|
|
3450
|
+
return this;
|
|
3451
|
+
},
|
|
3452
|
+
end: function() {
|
|
3453
|
+
if (--this.active === 0) {
|
|
3454
|
+
delete this.that.__zooming;
|
|
3455
|
+
this.emit("end");
|
|
3456
|
+
}
|
|
3457
|
+
return this;
|
|
3458
|
+
},
|
|
3459
|
+
emit: function(type) {
|
|
3460
|
+
var d = select_default(this.that).datum();
|
|
3461
|
+
listeners.call(
|
|
3462
|
+
type,
|
|
3463
|
+
this.that,
|
|
3464
|
+
new ZoomEvent(type, {
|
|
3465
|
+
sourceEvent: this.sourceEvent,
|
|
3466
|
+
target: zoom,
|
|
3467
|
+
type,
|
|
3468
|
+
transform: this.that.__zoom,
|
|
3469
|
+
dispatch: listeners
|
|
3470
|
+
}),
|
|
3471
|
+
d
|
|
3472
|
+
);
|
|
3473
|
+
}
|
|
3474
|
+
};
|
|
3475
|
+
function wheeled(event, ...args) {
|
|
3476
|
+
if (!filter.apply(this, arguments)) return;
|
|
3477
|
+
var g = gesture(this, args).event(event), t = this.__zoom, k2 = Math.max(scaleExtent[0], Math.min(scaleExtent[1], t.k * Math.pow(2, wheelDelta.apply(this, arguments)))), p = pointer_default(event);
|
|
3478
|
+
if (g.wheel) {
|
|
3479
|
+
if (g.mouse[0][0] !== p[0] || g.mouse[0][1] !== p[1]) {
|
|
3480
|
+
g.mouse[1] = t.invert(g.mouse[0] = p);
|
|
3481
|
+
}
|
|
3482
|
+
clearTimeout(g.wheel);
|
|
3483
|
+
} else if (t.k === k2) return;
|
|
3484
|
+
else {
|
|
3485
|
+
g.mouse = [p, t.invert(p)];
|
|
3486
|
+
interrupt_default(this);
|
|
3487
|
+
g.start();
|
|
3488
|
+
}
|
|
3489
|
+
noevent_default(event);
|
|
3490
|
+
g.wheel = setTimeout(wheelidled, wheelDelay);
|
|
3491
|
+
g.zoom("mouse", constrain(translate(scale(t, k2), g.mouse[0], g.mouse[1]), g.extent, translateExtent));
|
|
3492
|
+
function wheelidled() {
|
|
3493
|
+
g.wheel = null;
|
|
3494
|
+
g.end();
|
|
3495
|
+
}
|
|
3496
|
+
}
|
|
3497
|
+
function mousedowned(event, ...args) {
|
|
3498
|
+
if (touchending || !filter.apply(this, arguments)) return;
|
|
3499
|
+
var currentTarget = event.currentTarget, g = gesture(this, args, true).event(event), v = select_default(event.view).on("mousemove.zoom", mousemoved, true).on("mouseup.zoom", mouseupped, true), p = pointer_default(event, currentTarget), x05 = event.clientX, y05 = event.clientY;
|
|
3500
|
+
nodrag_default(event.view);
|
|
3501
|
+
nopropagation(event);
|
|
3502
|
+
g.mouse = [p, this.__zoom.invert(p)];
|
|
3503
|
+
interrupt_default(this);
|
|
3504
|
+
g.start();
|
|
3505
|
+
function mousemoved(event2) {
|
|
3506
|
+
noevent_default(event2);
|
|
3507
|
+
if (!g.moved) {
|
|
3508
|
+
var dx = event2.clientX - x05, dy = event2.clientY - y05;
|
|
3509
|
+
g.moved = dx * dx + dy * dy > clickDistance2;
|
|
3510
|
+
}
|
|
3511
|
+
g.event(event2).zoom("mouse", constrain(translate(g.that.__zoom, g.mouse[0] = pointer_default(event2, currentTarget), g.mouse[1]), g.extent, translateExtent));
|
|
3512
|
+
}
|
|
3513
|
+
function mouseupped(event2) {
|
|
3514
|
+
v.on("mousemove.zoom mouseup.zoom", null);
|
|
3515
|
+
yesdrag(event2.view, g.moved);
|
|
3516
|
+
noevent_default(event2);
|
|
3517
|
+
g.event(event2).end();
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
function dblclicked(event, ...args) {
|
|
3521
|
+
if (!filter.apply(this, arguments)) return;
|
|
3522
|
+
var t0 = this.__zoom, p0 = pointer_default(event.changedTouches ? event.changedTouches[0] : event, this), p1 = t0.invert(p0), k1 = t0.k * (event.shiftKey ? 0.5 : 2), t1 = constrain(translate(scale(t0, k1), p0, p1), extent2.apply(this, args), translateExtent);
|
|
3523
|
+
noevent_default(event);
|
|
3524
|
+
if (duration > 0) select_default(this).transition().duration(duration).call(schedule, t1, p0, event);
|
|
3525
|
+
else select_default(this).call(zoom.transform, t1, p0, event);
|
|
3526
|
+
}
|
|
3527
|
+
function touchstarted(event, ...args) {
|
|
3528
|
+
if (!filter.apply(this, arguments)) return;
|
|
3529
|
+
var touches = event.touches, n = touches.length, g = gesture(this, args, event.changedTouches.length === n).event(event), started, i, t, p;
|
|
3530
|
+
nopropagation(event);
|
|
3531
|
+
for (i = 0; i < n; ++i) {
|
|
3532
|
+
t = touches[i], p = pointer_default(t, this);
|
|
3533
|
+
p = [p, this.__zoom.invert(p), t.identifier];
|
|
3534
|
+
if (!g.touch0) g.touch0 = p, started = true, g.taps = 1 + !!touchstarting;
|
|
3535
|
+
else if (!g.touch1 && g.touch0[2] !== p[2]) g.touch1 = p, g.taps = 0;
|
|
3536
|
+
}
|
|
3537
|
+
if (touchstarting) touchstarting = clearTimeout(touchstarting);
|
|
3538
|
+
if (started) {
|
|
3539
|
+
if (g.taps < 2) touchfirst = p[0], touchstarting = setTimeout(function() {
|
|
3540
|
+
touchstarting = null;
|
|
3541
|
+
}, touchDelay);
|
|
3542
|
+
interrupt_default(this);
|
|
3543
|
+
g.start();
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
function touchmoved(event, ...args) {
|
|
3547
|
+
if (!this.__zooming) return;
|
|
3548
|
+
var g = gesture(this, args).event(event), touches = event.changedTouches, n = touches.length, i, t, p, l;
|
|
3549
|
+
noevent_default(event);
|
|
3550
|
+
for (i = 0; i < n; ++i) {
|
|
3551
|
+
t = touches[i], p = pointer_default(t, this);
|
|
3552
|
+
if (g.touch0 && g.touch0[2] === t.identifier) g.touch0[0] = p;
|
|
3553
|
+
else if (g.touch1 && g.touch1[2] === t.identifier) g.touch1[0] = p;
|
|
3554
|
+
}
|
|
3555
|
+
t = g.that.__zoom;
|
|
3556
|
+
if (g.touch1) {
|
|
3557
|
+
var p0 = g.touch0[0], l0 = g.touch0[1], p1 = g.touch1[0], l1 = g.touch1[1], dp = (dp = p1[0] - p0[0]) * dp + (dp = p1[1] - p0[1]) * dp, dl = (dl = l1[0] - l0[0]) * dl + (dl = l1[1] - l0[1]) * dl;
|
|
3558
|
+
t = scale(t, Math.sqrt(dp / dl));
|
|
3559
|
+
p = [(p0[0] + p1[0]) / 2, (p0[1] + p1[1]) / 2];
|
|
3560
|
+
l = [(l0[0] + l1[0]) / 2, (l0[1] + l1[1]) / 2];
|
|
3561
|
+
} else if (g.touch0) p = g.touch0[0], l = g.touch0[1];
|
|
3562
|
+
else return;
|
|
3563
|
+
g.zoom("touch", constrain(translate(t, p, l), g.extent, translateExtent));
|
|
3564
|
+
}
|
|
3565
|
+
function touchended(event, ...args) {
|
|
3566
|
+
if (!this.__zooming) return;
|
|
3567
|
+
var g = gesture(this, args).event(event), touches = event.changedTouches, n = touches.length, i, t;
|
|
3568
|
+
nopropagation(event);
|
|
3569
|
+
if (touchending) clearTimeout(touchending);
|
|
3570
|
+
touchending = setTimeout(function() {
|
|
3571
|
+
touchending = null;
|
|
3572
|
+
}, touchDelay);
|
|
3573
|
+
for (i = 0; i < n; ++i) {
|
|
3574
|
+
t = touches[i];
|
|
3575
|
+
if (g.touch0 && g.touch0[2] === t.identifier) delete g.touch0;
|
|
3576
|
+
else if (g.touch1 && g.touch1[2] === t.identifier) delete g.touch1;
|
|
3577
|
+
}
|
|
3578
|
+
if (g.touch1 && !g.touch0) g.touch0 = g.touch1, delete g.touch1;
|
|
3579
|
+
if (g.touch0) g.touch0[1] = this.__zoom.invert(g.touch0[0]);
|
|
3580
|
+
else {
|
|
3581
|
+
g.end();
|
|
3582
|
+
if (g.taps === 2) {
|
|
3583
|
+
t = pointer_default(t, this);
|
|
3584
|
+
if (Math.hypot(touchfirst[0] - t[0], touchfirst[1] - t[1]) < tapDistance) {
|
|
3585
|
+
var p = select_default(this).on("dblclick.zoom");
|
|
3586
|
+
if (p) p.apply(this, arguments);
|
|
3587
|
+
}
|
|
3588
|
+
}
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
zoom.wheelDelta = function(_) {
|
|
3592
|
+
return arguments.length ? (wheelDelta = typeof _ === "function" ? _ : constant_default3(+_), zoom) : wheelDelta;
|
|
3593
|
+
};
|
|
3594
|
+
zoom.filter = function(_) {
|
|
3595
|
+
return arguments.length ? (filter = typeof _ === "function" ? _ : constant_default3(!!_), zoom) : filter;
|
|
3596
|
+
};
|
|
3597
|
+
zoom.touchable = function(_) {
|
|
3598
|
+
return arguments.length ? (touchable = typeof _ === "function" ? _ : constant_default3(!!_), zoom) : touchable;
|
|
3599
|
+
};
|
|
3600
|
+
zoom.extent = function(_) {
|
|
3601
|
+
return arguments.length ? (extent2 = typeof _ === "function" ? _ : constant_default3([[+_[0][0], +_[0][1]], [+_[1][0], +_[1][1]]]), zoom) : extent2;
|
|
3602
|
+
};
|
|
3603
|
+
zoom.scaleExtent = function(_) {
|
|
3604
|
+
return arguments.length ? (scaleExtent[0] = +_[0], scaleExtent[1] = +_[1], zoom) : [scaleExtent[0], scaleExtent[1]];
|
|
3605
|
+
};
|
|
3606
|
+
zoom.translateExtent = function(_) {
|
|
3607
|
+
return arguments.length ? (translateExtent[0][0] = +_[0][0], translateExtent[1][0] = +_[1][0], translateExtent[0][1] = +_[0][1], translateExtent[1][1] = +_[1][1], zoom) : [[translateExtent[0][0], translateExtent[0][1]], [translateExtent[1][0], translateExtent[1][1]]];
|
|
3608
|
+
};
|
|
3609
|
+
zoom.constrain = function(_) {
|
|
3610
|
+
return arguments.length ? (constrain = _, zoom) : constrain;
|
|
3611
|
+
};
|
|
3612
|
+
zoom.duration = function(_) {
|
|
3613
|
+
return arguments.length ? (duration = +_, zoom) : duration;
|
|
3614
|
+
};
|
|
3615
|
+
zoom.interpolate = function(_) {
|
|
3616
|
+
return arguments.length ? (interpolate = _, zoom) : interpolate;
|
|
3617
|
+
};
|
|
3618
|
+
zoom.on = function() {
|
|
3619
|
+
var value = listeners.on.apply(listeners, arguments);
|
|
3620
|
+
return value === listeners ? zoom : value;
|
|
3621
|
+
};
|
|
3622
|
+
zoom.clickDistance = function(_) {
|
|
3623
|
+
return arguments.length ? (clickDistance2 = (_ = +_) * _, zoom) : Math.sqrt(clickDistance2);
|
|
3624
|
+
};
|
|
3625
|
+
zoom.tapDistance = function(_) {
|
|
3626
|
+
return arguments.length ? (tapDistance = +_, zoom) : tapDistance;
|
|
3627
|
+
};
|
|
3628
|
+
return zoom;
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
// ../node_modules/d3-chord/src/math.js
|
|
3632
|
+
var abs3 = Math.abs;
|
|
3633
|
+
var cos3 = Math.cos;
|
|
3634
|
+
var sin3 = Math.sin;
|
|
3635
|
+
var pi4 = Math.PI;
|
|
3636
|
+
var halfPi3 = pi4 / 2;
|
|
3637
|
+
var tau4 = pi4 * 2;
|
|
3638
|
+
var epsilon5 = 1e-12;
|
|
3639
|
+
|
|
3640
|
+
// ../node_modules/d3-chord/src/array.js
|
|
3641
|
+
var slice2 = Array.prototype.slice;
|
|
3642
|
+
|
|
3643
|
+
// ../node_modules/d3-chord/src/constant.js
|
|
3644
|
+
function constant_default4(x3) {
|
|
3645
|
+
return function() {
|
|
3646
|
+
return x3;
|
|
3647
|
+
};
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
// ../node_modules/d3-chord/src/ribbon.js
|
|
3651
|
+
function defaultSource(d) {
|
|
3652
|
+
return d.source;
|
|
3653
|
+
}
|
|
3654
|
+
function defaultTarget(d) {
|
|
3655
|
+
return d.target;
|
|
3656
|
+
}
|
|
3657
|
+
function defaultRadius(d) {
|
|
3658
|
+
return d.radius;
|
|
3659
|
+
}
|
|
3660
|
+
function defaultStartAngle(d) {
|
|
3661
|
+
return d.startAngle;
|
|
3662
|
+
}
|
|
3663
|
+
function defaultEndAngle(d) {
|
|
3664
|
+
return d.endAngle;
|
|
3665
|
+
}
|
|
3666
|
+
function defaultPadAngle() {
|
|
3667
|
+
return 0;
|
|
3668
|
+
}
|
|
3669
|
+
function ribbon(headRadius) {
|
|
3670
|
+
var source = defaultSource, target = defaultTarget, sourceRadius = defaultRadius, targetRadius = defaultRadius, startAngle = defaultStartAngle, endAngle = defaultEndAngle, padAngle = defaultPadAngle, context = null;
|
|
3671
|
+
function ribbon2() {
|
|
3672
|
+
var buffer, s2 = source.apply(this, arguments), t = target.apply(this, arguments), ap = padAngle.apply(this, arguments) / 2, argv = slice2.call(arguments), sr = +sourceRadius.apply(this, (argv[0] = s2, argv)), sa0 = startAngle.apply(this, argv) - halfPi3, sa1 = endAngle.apply(this, argv) - halfPi3, tr = +targetRadius.apply(this, (argv[0] = t, argv)), ta0 = startAngle.apply(this, argv) - halfPi3, ta1 = endAngle.apply(this, argv) - halfPi3;
|
|
3673
|
+
if (!context) context = buffer = path();
|
|
3674
|
+
if (ap > epsilon5) {
|
|
3675
|
+
if (abs3(sa1 - sa0) > ap * 2 + epsilon5) sa1 > sa0 ? (sa0 += ap, sa1 -= ap) : (sa0 -= ap, sa1 += ap);
|
|
3676
|
+
else sa0 = sa1 = (sa0 + sa1) / 2;
|
|
3677
|
+
if (abs3(ta1 - ta0) > ap * 2 + epsilon5) ta1 > ta0 ? (ta0 += ap, ta1 -= ap) : (ta0 -= ap, ta1 += ap);
|
|
3678
|
+
else ta0 = ta1 = (ta0 + ta1) / 2;
|
|
3679
|
+
}
|
|
3680
|
+
context.moveTo(sr * cos3(sa0), sr * sin3(sa0));
|
|
3681
|
+
context.arc(0, 0, sr, sa0, sa1);
|
|
3682
|
+
if (sa0 !== ta0 || sa1 !== ta1) {
|
|
3683
|
+
if (headRadius) {
|
|
3684
|
+
var hr = +headRadius.apply(this, arguments), tr2 = tr - hr, ta2 = (ta0 + ta1) / 2;
|
|
3685
|
+
context.quadraticCurveTo(0, 0, tr2 * cos3(ta0), tr2 * sin3(ta0));
|
|
3686
|
+
context.lineTo(tr * cos3(ta2), tr * sin3(ta2));
|
|
3687
|
+
context.lineTo(tr2 * cos3(ta1), tr2 * sin3(ta1));
|
|
3688
|
+
} else {
|
|
3689
|
+
context.quadraticCurveTo(0, 0, tr * cos3(ta0), tr * sin3(ta0));
|
|
3690
|
+
context.arc(0, 0, tr, ta0, ta1);
|
|
3691
|
+
}
|
|
3692
|
+
}
|
|
3693
|
+
context.quadraticCurveTo(0, 0, sr * cos3(sa0), sr * sin3(sa0));
|
|
3694
|
+
context.closePath();
|
|
3695
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
3696
|
+
}
|
|
3697
|
+
if (headRadius) ribbon2.headRadius = function(_) {
|
|
3698
|
+
return arguments.length ? (headRadius = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : headRadius;
|
|
3699
|
+
};
|
|
3700
|
+
ribbon2.radius = function(_) {
|
|
3701
|
+
return arguments.length ? (sourceRadius = targetRadius = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : sourceRadius;
|
|
3702
|
+
};
|
|
3703
|
+
ribbon2.sourceRadius = function(_) {
|
|
3704
|
+
return arguments.length ? (sourceRadius = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : sourceRadius;
|
|
3705
|
+
};
|
|
3706
|
+
ribbon2.targetRadius = function(_) {
|
|
3707
|
+
return arguments.length ? (targetRadius = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : targetRadius;
|
|
3708
|
+
};
|
|
3709
|
+
ribbon2.startAngle = function(_) {
|
|
3710
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : startAngle;
|
|
3711
|
+
};
|
|
3712
|
+
ribbon2.endAngle = function(_) {
|
|
3713
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : endAngle;
|
|
3714
|
+
};
|
|
3715
|
+
ribbon2.padAngle = function(_) {
|
|
3716
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant_default4(+_), ribbon2) : padAngle;
|
|
3717
|
+
};
|
|
3718
|
+
ribbon2.source = function(_) {
|
|
3719
|
+
return arguments.length ? (source = _, ribbon2) : source;
|
|
3720
|
+
};
|
|
3721
|
+
ribbon2.target = function(_) {
|
|
3722
|
+
return arguments.length ? (target = _, ribbon2) : target;
|
|
3723
|
+
};
|
|
3724
|
+
ribbon2.context = function(_) {
|
|
3725
|
+
return arguments.length ? (context = _ == null ? null : _, ribbon2) : context;
|
|
3726
|
+
};
|
|
3727
|
+
return ribbon2;
|
|
3728
|
+
}
|
|
3729
|
+
function ribbon_default() {
|
|
3730
|
+
return ribbon();
|
|
3731
|
+
}
|
|
3732
|
+
|
|
3733
|
+
// ../node_modules/d3-contour/src/array.js
|
|
3734
|
+
var array = Array.prototype;
|
|
3735
|
+
var slice3 = array.slice;
|
|
3736
|
+
|
|
3737
|
+
// ../node_modules/d3-contour/src/ascending.js
|
|
3738
|
+
function ascending_default(a3, b) {
|
|
3739
|
+
return a3 - b;
|
|
3740
|
+
}
|
|
3741
|
+
|
|
3742
|
+
// ../node_modules/d3-contour/src/area.js
|
|
3743
|
+
function area_default3(ring) {
|
|
3744
|
+
var i = 0, n = ring.length, area = ring[n - 1][1] * ring[0][0] - ring[n - 1][0] * ring[0][1];
|
|
3745
|
+
while (++i < n) area += ring[i - 1][1] * ring[i][0] - ring[i - 1][0] * ring[i][1];
|
|
3746
|
+
return area;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
// ../node_modules/d3-contour/src/constant.js
|
|
3750
|
+
var constant_default5 = (x3) => () => x3;
|
|
3751
|
+
|
|
3752
|
+
// ../node_modules/d3-contour/src/contains.js
|
|
3753
|
+
function contains_default2(ring, hole) {
|
|
3754
|
+
var i = -1, n = hole.length, c4;
|
|
3755
|
+
while (++i < n) if (c4 = ringContains(ring, hole[i])) return c4;
|
|
3756
|
+
return 0;
|
|
3757
|
+
}
|
|
3758
|
+
function ringContains(ring, point3) {
|
|
3759
|
+
var x3 = point3[0], y3 = point3[1], contains = -1;
|
|
3760
|
+
for (var i = 0, n = ring.length, j = n - 1; i < n; j = i++) {
|
|
3761
|
+
var pi5 = ring[i], xi = pi5[0], yi = pi5[1], pj = ring[j], xj = pj[0], yj = pj[1];
|
|
3762
|
+
if (segmentContains(pi5, pj, point3)) return 0;
|
|
3763
|
+
if (yi > y3 !== yj > y3 && x3 < (xj - xi) * (y3 - yi) / (yj - yi) + xi) contains = -contains;
|
|
3764
|
+
}
|
|
3765
|
+
return contains;
|
|
3766
|
+
}
|
|
3767
|
+
function segmentContains(a3, b, c4) {
|
|
3768
|
+
var i;
|
|
3769
|
+
return collinear(a3, b, c4) && within(a3[i = +(a3[0] === b[0])], c4[i], b[i]);
|
|
3770
|
+
}
|
|
3771
|
+
function collinear(a3, b, c4) {
|
|
3772
|
+
return (b[0] - a3[0]) * (c4[1] - a3[1]) === (c4[0] - a3[0]) * (b[1] - a3[1]);
|
|
3773
|
+
}
|
|
3774
|
+
function within(p, q, r) {
|
|
3775
|
+
return p <= q && q <= r || r <= q && q <= p;
|
|
3776
|
+
}
|
|
3777
|
+
|
|
3778
|
+
// ../node_modules/d3-contour/src/noop.js
|
|
3779
|
+
function noop_default() {
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
// ../node_modules/d3-contour/src/contours.js
|
|
3783
|
+
var cases = [
|
|
3784
|
+
[],
|
|
3785
|
+
[[[1, 1.5], [0.5, 1]]],
|
|
3786
|
+
[[[1.5, 1], [1, 1.5]]],
|
|
3787
|
+
[[[1.5, 1], [0.5, 1]]],
|
|
3788
|
+
[[[1, 0.5], [1.5, 1]]],
|
|
3789
|
+
[[[1, 1.5], [0.5, 1]], [[1, 0.5], [1.5, 1]]],
|
|
3790
|
+
[[[1, 0.5], [1, 1.5]]],
|
|
3791
|
+
[[[1, 0.5], [0.5, 1]]],
|
|
3792
|
+
[[[0.5, 1], [1, 0.5]]],
|
|
3793
|
+
[[[1, 1.5], [1, 0.5]]],
|
|
3794
|
+
[[[0.5, 1], [1, 0.5]], [[1.5, 1], [1, 1.5]]],
|
|
3795
|
+
[[[1.5, 1], [1, 0.5]]],
|
|
3796
|
+
[[[0.5, 1], [1.5, 1]]],
|
|
3797
|
+
[[[1, 1.5], [1.5, 1]]],
|
|
3798
|
+
[[[0.5, 1], [1, 1.5]]],
|
|
3799
|
+
[]
|
|
3800
|
+
];
|
|
3801
|
+
function contours_default() {
|
|
3802
|
+
var dx = 1, dy = 1, threshold = thresholdSturges, smooth = smoothLinear;
|
|
3803
|
+
function contours(values) {
|
|
3804
|
+
var tz = threshold(values);
|
|
3805
|
+
if (!Array.isArray(tz)) {
|
|
3806
|
+
const e = extent(values, finite);
|
|
3807
|
+
tz = ticks(...nice(e[0], e[1], tz), tz);
|
|
3808
|
+
while (tz[tz.length - 1] >= e[1]) tz.pop();
|
|
3809
|
+
while (tz[1] < e[0]) tz.shift();
|
|
3810
|
+
} else {
|
|
3811
|
+
tz = tz.slice().sort(ascending_default);
|
|
3812
|
+
}
|
|
3813
|
+
return tz.map((value) => contour(values, value));
|
|
3814
|
+
}
|
|
3815
|
+
function contour(values, value) {
|
|
3816
|
+
const v = value == null ? NaN : +value;
|
|
3817
|
+
if (isNaN(v)) throw new Error(`invalid value: ${value}`);
|
|
3818
|
+
var polygons = [], holes = [];
|
|
3819
|
+
isorings(values, v, function(ring) {
|
|
3820
|
+
smooth(ring, values, v);
|
|
3821
|
+
if (area_default3(ring) > 0) polygons.push([ring]);
|
|
3822
|
+
else holes.push(ring);
|
|
3823
|
+
});
|
|
3824
|
+
holes.forEach(function(hole) {
|
|
3825
|
+
for (var i = 0, n = polygons.length, polygon; i < n; ++i) {
|
|
3826
|
+
if (contains_default2((polygon = polygons[i])[0], hole) !== -1) {
|
|
3827
|
+
polygon.push(hole);
|
|
3828
|
+
return;
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
});
|
|
3832
|
+
return {
|
|
3833
|
+
type: "MultiPolygon",
|
|
3834
|
+
value,
|
|
3835
|
+
coordinates: polygons
|
|
3836
|
+
};
|
|
3837
|
+
}
|
|
3838
|
+
function isorings(values, value, callback) {
|
|
3839
|
+
var fragmentByStart = new Array(), fragmentByEnd = new Array(), x3, y3, t0, t1, t2, t3;
|
|
3840
|
+
x3 = y3 = -1;
|
|
3841
|
+
t1 = above(values[0], value);
|
|
3842
|
+
cases[t1 << 1].forEach(stitch);
|
|
3843
|
+
while (++x3 < dx - 1) {
|
|
3844
|
+
t0 = t1, t1 = above(values[x3 + 1], value);
|
|
3845
|
+
cases[t0 | t1 << 1].forEach(stitch);
|
|
3846
|
+
}
|
|
3847
|
+
cases[t1 << 0].forEach(stitch);
|
|
3848
|
+
while (++y3 < dy - 1) {
|
|
3849
|
+
x3 = -1;
|
|
3850
|
+
t1 = above(values[y3 * dx + dx], value);
|
|
3851
|
+
t2 = above(values[y3 * dx], value);
|
|
3852
|
+
cases[t1 << 1 | t2 << 2].forEach(stitch);
|
|
3853
|
+
while (++x3 < dx - 1) {
|
|
3854
|
+
t0 = t1, t1 = above(values[y3 * dx + dx + x3 + 1], value);
|
|
3855
|
+
t3 = t2, t2 = above(values[y3 * dx + x3 + 1], value);
|
|
3856
|
+
cases[t0 | t1 << 1 | t2 << 2 | t3 << 3].forEach(stitch);
|
|
3857
|
+
}
|
|
3858
|
+
cases[t1 | t2 << 3].forEach(stitch);
|
|
3859
|
+
}
|
|
3860
|
+
x3 = -1;
|
|
3861
|
+
t2 = values[y3 * dx] >= value;
|
|
3862
|
+
cases[t2 << 2].forEach(stitch);
|
|
3863
|
+
while (++x3 < dx - 1) {
|
|
3864
|
+
t3 = t2, t2 = above(values[y3 * dx + x3 + 1], value);
|
|
3865
|
+
cases[t2 << 2 | t3 << 3].forEach(stitch);
|
|
3866
|
+
}
|
|
3867
|
+
cases[t2 << 3].forEach(stitch);
|
|
3868
|
+
function stitch(line) {
|
|
3869
|
+
var start = [line[0][0] + x3, line[0][1] + y3], end = [line[1][0] + x3, line[1][1] + y3], startIndex = index2(start), endIndex = index2(end), f, g;
|
|
3870
|
+
if (f = fragmentByEnd[startIndex]) {
|
|
3871
|
+
if (g = fragmentByStart[endIndex]) {
|
|
3872
|
+
delete fragmentByEnd[f.end];
|
|
3873
|
+
delete fragmentByStart[g.start];
|
|
3874
|
+
if (f === g) {
|
|
3875
|
+
f.ring.push(end);
|
|
3876
|
+
callback(f.ring);
|
|
3877
|
+
} else {
|
|
3878
|
+
fragmentByStart[f.start] = fragmentByEnd[g.end] = { start: f.start, end: g.end, ring: f.ring.concat(g.ring) };
|
|
3879
|
+
}
|
|
3880
|
+
} else {
|
|
3881
|
+
delete fragmentByEnd[f.end];
|
|
3882
|
+
f.ring.push(end);
|
|
3883
|
+
fragmentByEnd[f.end = endIndex] = f;
|
|
3884
|
+
}
|
|
3885
|
+
} else if (f = fragmentByStart[endIndex]) {
|
|
3886
|
+
if (g = fragmentByEnd[startIndex]) {
|
|
3887
|
+
delete fragmentByStart[f.start];
|
|
3888
|
+
delete fragmentByEnd[g.end];
|
|
3889
|
+
if (f === g) {
|
|
3890
|
+
f.ring.push(end);
|
|
3891
|
+
callback(f.ring);
|
|
3892
|
+
} else {
|
|
3893
|
+
fragmentByStart[g.start] = fragmentByEnd[f.end] = { start: g.start, end: f.end, ring: g.ring.concat(f.ring) };
|
|
3894
|
+
}
|
|
3895
|
+
} else {
|
|
3896
|
+
delete fragmentByStart[f.start];
|
|
3897
|
+
f.ring.unshift(start);
|
|
3898
|
+
fragmentByStart[f.start = startIndex] = f;
|
|
3899
|
+
}
|
|
3900
|
+
} else {
|
|
3901
|
+
fragmentByStart[startIndex] = fragmentByEnd[endIndex] = { start: startIndex, end: endIndex, ring: [start, end] };
|
|
3902
|
+
}
|
|
3903
|
+
}
|
|
3904
|
+
}
|
|
3905
|
+
function index2(point3) {
|
|
3906
|
+
return point3[0] * 2 + point3[1] * (dx + 1) * 4;
|
|
3907
|
+
}
|
|
3908
|
+
function smoothLinear(ring, values, value) {
|
|
3909
|
+
ring.forEach(function(point3) {
|
|
3910
|
+
var x3 = point3[0], y3 = point3[1], xt = x3 | 0, yt = y3 | 0, v1 = valid(values[yt * dx + xt]);
|
|
3911
|
+
if (x3 > 0 && x3 < dx && xt === x3) {
|
|
3912
|
+
point3[0] = smooth1(x3, valid(values[yt * dx + xt - 1]), v1, value);
|
|
3913
|
+
}
|
|
3914
|
+
if (y3 > 0 && y3 < dy && yt === y3) {
|
|
3915
|
+
point3[1] = smooth1(y3, valid(values[(yt - 1) * dx + xt]), v1, value);
|
|
3916
|
+
}
|
|
3917
|
+
});
|
|
3918
|
+
}
|
|
3919
|
+
contours.contour = contour;
|
|
3920
|
+
contours.size = function(_) {
|
|
3921
|
+
if (!arguments.length) return [dx, dy];
|
|
3922
|
+
var _0 = Math.floor(_[0]), _1 = Math.floor(_[1]);
|
|
3923
|
+
if (!(_0 >= 0 && _1 >= 0)) throw new Error("invalid size");
|
|
3924
|
+
return dx = _0, dy = _1, contours;
|
|
3925
|
+
};
|
|
3926
|
+
contours.thresholds = function(_) {
|
|
3927
|
+
return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant_default5(slice3.call(_)) : constant_default5(_), contours) : threshold;
|
|
3928
|
+
};
|
|
3929
|
+
contours.smooth = function(_) {
|
|
3930
|
+
return arguments.length ? (smooth = _ ? smoothLinear : noop_default, contours) : smooth === smoothLinear;
|
|
3931
|
+
};
|
|
3932
|
+
return contours;
|
|
3933
|
+
}
|
|
3934
|
+
function finite(x3) {
|
|
3935
|
+
return isFinite(x3) ? x3 : NaN;
|
|
3936
|
+
}
|
|
3937
|
+
function above(x3, value) {
|
|
3938
|
+
return x3 == null ? false : +x3 >= value;
|
|
3939
|
+
}
|
|
3940
|
+
function valid(v) {
|
|
3941
|
+
return v == null || isNaN(v = +v) ? -Infinity : v;
|
|
3942
|
+
}
|
|
3943
|
+
function smooth1(x3, v0, v1, value) {
|
|
3944
|
+
const a3 = value - v0;
|
|
3945
|
+
const b = v1 - v0;
|
|
3946
|
+
const d = isFinite(a3) || isFinite(b) ? a3 / b : Math.sign(a3) / Math.sign(b);
|
|
3947
|
+
return isNaN(d) ? x3 : x3 + d - 0.5;
|
|
3948
|
+
}
|
|
3949
|
+
|
|
3950
|
+
// ../node_modules/d3-contour/src/density.js
|
|
3951
|
+
function defaultX2(d) {
|
|
3952
|
+
return d[0];
|
|
3953
|
+
}
|
|
3954
|
+
function defaultY2(d) {
|
|
3955
|
+
return d[1];
|
|
3956
|
+
}
|
|
3957
|
+
function defaultWeight() {
|
|
3958
|
+
return 1;
|
|
3959
|
+
}
|
|
3960
|
+
function density_default() {
|
|
3961
|
+
var x3 = defaultX2, y3 = defaultY2, weight = defaultWeight, dx = 960, dy = 500, r = 20, k2 = 2, o = r * 3, n = dx + o * 2 >> k2, m2 = dy + o * 2 >> k2, threshold = constant_default5(20);
|
|
3962
|
+
function grid(data) {
|
|
3963
|
+
var values = new Float32Array(n * m2), pow2k = Math.pow(2, -k2), i = -1;
|
|
3964
|
+
for (const d of data) {
|
|
3965
|
+
var xi = (x3(d, ++i, data) + o) * pow2k, yi = (y3(d, i, data) + o) * pow2k, wi = +weight(d, i, data);
|
|
3966
|
+
if (wi && xi >= 0 && xi < n && yi >= 0 && yi < m2) {
|
|
3967
|
+
var x05 = Math.floor(xi), y05 = Math.floor(yi), xt = xi - x05 - 0.5, yt = yi - y05 - 0.5;
|
|
3968
|
+
values[x05 + y05 * n] += (1 - xt) * (1 - yt) * wi;
|
|
3969
|
+
values[x05 + 1 + y05 * n] += xt * (1 - yt) * wi;
|
|
3970
|
+
values[x05 + 1 + (y05 + 1) * n] += xt * yt * wi;
|
|
3971
|
+
values[x05 + (y05 + 1) * n] += (1 - xt) * yt * wi;
|
|
3972
|
+
}
|
|
3973
|
+
}
|
|
3974
|
+
blur2({ data: values, width: n, height: m2 }, r * pow2k);
|
|
3975
|
+
return values;
|
|
3976
|
+
}
|
|
3977
|
+
function density(data) {
|
|
3978
|
+
var values = grid(data), tz = threshold(values), pow4k = Math.pow(2, 2 * k2);
|
|
3979
|
+
if (!Array.isArray(tz)) {
|
|
3980
|
+
tz = ticks(Number.MIN_VALUE, max(values) / pow4k, tz);
|
|
3981
|
+
}
|
|
3982
|
+
return contours_default().size([n, m2]).thresholds(tz.map((d) => d * pow4k))(values).map((c4, i) => (c4.value = +tz[i], transform2(c4)));
|
|
3983
|
+
}
|
|
3984
|
+
density.contours = function(data) {
|
|
3985
|
+
var values = grid(data), contours = contours_default().size([n, m2]), pow4k = Math.pow(2, 2 * k2), contour = (value) => {
|
|
3986
|
+
value = +value;
|
|
3987
|
+
var c4 = transform2(contours.contour(values, value * pow4k));
|
|
3988
|
+
c4.value = value;
|
|
3989
|
+
return c4;
|
|
3990
|
+
};
|
|
3991
|
+
Object.defineProperty(contour, "max", { get: () => max(values) / pow4k });
|
|
3992
|
+
return contour;
|
|
3993
|
+
};
|
|
3994
|
+
function transform2(geometry) {
|
|
3995
|
+
geometry.coordinates.forEach(transformPolygon);
|
|
3996
|
+
return geometry;
|
|
3997
|
+
}
|
|
3998
|
+
function transformPolygon(coordinates2) {
|
|
3999
|
+
coordinates2.forEach(transformRing);
|
|
4000
|
+
}
|
|
4001
|
+
function transformRing(coordinates2) {
|
|
4002
|
+
coordinates2.forEach(transformPoint);
|
|
4003
|
+
}
|
|
4004
|
+
function transformPoint(coordinates2) {
|
|
4005
|
+
coordinates2[0] = coordinates2[0] * Math.pow(2, k2) - o;
|
|
4006
|
+
coordinates2[1] = coordinates2[1] * Math.pow(2, k2) - o;
|
|
4007
|
+
}
|
|
4008
|
+
function resize() {
|
|
4009
|
+
o = r * 3;
|
|
4010
|
+
n = dx + o * 2 >> k2;
|
|
4011
|
+
m2 = dy + o * 2 >> k2;
|
|
4012
|
+
return density;
|
|
4013
|
+
}
|
|
4014
|
+
density.x = function(_) {
|
|
4015
|
+
return arguments.length ? (x3 = typeof _ === "function" ? _ : constant_default5(+_), density) : x3;
|
|
4016
|
+
};
|
|
4017
|
+
density.y = function(_) {
|
|
4018
|
+
return arguments.length ? (y3 = typeof _ === "function" ? _ : constant_default5(+_), density) : y3;
|
|
4019
|
+
};
|
|
4020
|
+
density.weight = function(_) {
|
|
4021
|
+
return arguments.length ? (weight = typeof _ === "function" ? _ : constant_default5(+_), density) : weight;
|
|
4022
|
+
};
|
|
4023
|
+
density.size = function(_) {
|
|
4024
|
+
if (!arguments.length) return [dx, dy];
|
|
4025
|
+
var _0 = +_[0], _1 = +_[1];
|
|
4026
|
+
if (!(_0 >= 0 && _1 >= 0)) throw new Error("invalid size");
|
|
4027
|
+
return dx = _0, dy = _1, resize();
|
|
4028
|
+
};
|
|
4029
|
+
density.cellSize = function(_) {
|
|
4030
|
+
if (!arguments.length) return 1 << k2;
|
|
4031
|
+
if (!((_ = +_) >= 1)) throw new Error("invalid cell size");
|
|
4032
|
+
return k2 = Math.floor(Math.log(_) / Math.LN2), resize();
|
|
4033
|
+
};
|
|
4034
|
+
density.thresholds = function(_) {
|
|
4035
|
+
return arguments.length ? (threshold = typeof _ === "function" ? _ : Array.isArray(_) ? constant_default5(slice3.call(_)) : constant_default5(_), density) : threshold;
|
|
4036
|
+
};
|
|
4037
|
+
density.bandwidth = function(_) {
|
|
4038
|
+
if (!arguments.length) return Math.sqrt(r * (r + 1));
|
|
4039
|
+
if (!((_ = +_) >= 0)) throw new Error("invalid bandwidth");
|
|
4040
|
+
return r = (Math.sqrt(4 * _ * _ + 1) - 1) / 2, resize();
|
|
4041
|
+
};
|
|
4042
|
+
return density;
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
export {
|
|
4046
|
+
ribbon_default,
|
|
4047
|
+
density_default,
|
|
4048
|
+
json_default,
|
|
4049
|
+
quadtree,
|
|
4050
|
+
collide_default,
|
|
4051
|
+
link_default,
|
|
4052
|
+
simulation_default,
|
|
4053
|
+
x_default2 as x_default,
|
|
4054
|
+
y_default2 as y_default,
|
|
4055
|
+
contains_default,
|
|
4056
|
+
graticule10,
|
|
4057
|
+
path_default,
|
|
4058
|
+
naturalEarth1_default,
|
|
4059
|
+
category10_default,
|
|
4060
|
+
Dark2_default,
|
|
4061
|
+
Paired_default,
|
|
4062
|
+
Blues_default,
|
|
4063
|
+
Greys_default,
|
|
4064
|
+
Reds_default,
|
|
4065
|
+
rainbow_default,
|
|
4066
|
+
plasma,
|
|
4067
|
+
arc_default,
|
|
4068
|
+
line_default2 as line_default,
|
|
4069
|
+
area_default2 as area_default,
|
|
4070
|
+
pie_default,
|
|
4071
|
+
circle_default2 as circle_default,
|
|
4072
|
+
cross_default,
|
|
4073
|
+
diamond_default,
|
|
4074
|
+
square_default,
|
|
4075
|
+
star_default,
|
|
4076
|
+
triangle_default,
|
|
4077
|
+
wye_default,
|
|
4078
|
+
Symbol,
|
|
4079
|
+
basis_default,
|
|
4080
|
+
monotoneX,
|
|
4081
|
+
stepAfter,
|
|
4082
|
+
identity,
|
|
4083
|
+
zoom_default2 as zoom_default
|
|
4084
|
+
};
|
|
4085
|
+
//# sourceMappingURL=chunk-3XVVN66M.js.map
|