@marimo-team/islands 0.16.4 → 0.17.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/{ConnectedDataExplorerComponent-CCjhPKMy.js → ConnectedDataExplorerComponent-DJEUH6Bb.js} +78 -100
- package/dist/{_baseIsEqual-oN7pRNcM.js → _baseIsEqual-CN4oFUZ4.js} +20 -20
- package/dist/{_basePickBy-CYvzhRjy.js → _basePickBy-CzSvE_-f.js} +3 -3
- package/dist/{_baseProperty-DGUdIBuu.js → _baseProperty-DbbUiyUD.js} +5 -5
- package/dist/{_baseUniq-B5gfSl8S.js → _baseUniq-DwoC-LVO.js} +4 -4
- package/dist/any-language-editor-CEXn1vFs.js +156 -0
- package/dist/apl-DuVfHsPc.js +4 -0
- package/dist/architecture-O4VJ6CD3-lp-opOaL.js +21 -0
- package/dist/{architectureDiagram-W76B3OCA-DkEhipkW.js → architectureDiagram-W76B3OCA-CoBORy6u.js} +34 -34
- package/dist/asciiarmor-qIVWsi4F.js +4 -0
- package/dist/asn1-BjPqARr7.js +4 -0
- package/dist/assets/__vite-browser-external-lX-sn9m2.js +1 -0
- package/dist/assets/worker-vPn7gxWj.js +54 -0
- package/dist/{blockDiagram-QIGZ2CNN-DZOqLMYa.js → blockDiagram-QIGZ2CNN-0yzoLIar.js} +75 -86
- package/dist/brainfuck-DPGTVfkE.js +4 -0
- package/dist/{button-CEcjneWG.js → button-DcnBVpVa.js} +11 -14
- package/dist/{c4Diagram-FPNF74CW-DVaR7c9q.js → c4Diagram-FPNF74CW-CKsIA_DD.js} +27 -51
- package/dist/{channel-Uh0KpgGW.js → channel-3LVvQZcD.js} +1 -1
- package/dist/{check-BK9zDfQk.js → check-D7ifz5op.js} +1 -1
- package/dist/{chunk-3AY6CYHV-Dk2R2-S1.js → chunk-3AY6CYHV-B2C-aVc3.js} +35 -35
- package/dist/{chunk-4BX2VUAB-CqO6zUIz.js → chunk-4BX2VUAB-DEd4VI9L.js} +1 -1
- package/dist/{chunk-4KMFLZZN-CloTfTwP.js → chunk-4KMFLZZN-DnvP3O4K.js} +216 -325
- package/dist/{chunk-55IACEB6-I0rmqTua.js → chunk-55IACEB6-BcCzwOOl.js} +1 -1
- package/dist/{chunk-6OXUPJBA-BuROSTmo.js → chunk-6OXUPJBA-eNAAfJ3Q.js} +7 -7
- package/dist/{chunk-7GE3RBXV-B1-tsIPP.js → chunk-7GE3RBXV-CSAeQvLz.js} +1 -1
- package/dist/{chunk-ABZYJK2D-CLlso8tj.js → chunk-ABZYJK2D-CZcb_1iM.js} +16 -20
- package/dist/{chunk-BN7GFLIU-Db2-FjLn.js → chunk-BN7GFLIU-pBc5O5Rh.js} +1 -1
- package/dist/{chunk-CVBHYZKI-BONeiloK.js → chunk-CVBHYZKI-CivHZg9P.js} +3 -3
- package/dist/{chunk-CXMOBAN2-U9GJSP1d.js → chunk-CXMOBAN2-Dd0E6qb0.js} +46 -54
- package/dist/chunk-EXTU4WIE-GQ2ZWfJo.js +10 -0
- package/dist/{chunk-FMBD7UC4-DyV3BR_I.js → chunk-FMBD7UC4-C6YcisV6.js} +1 -1
- package/dist/{chunk-JA3XYJ7Z-C9A1076P.js → chunk-JA3XYJ7Z-DYeQaT57.js} +21 -25
- package/dist/{chunk-JEIROHC2-BGnFkSVq.js → chunk-JEIROHC2-B-EZMP4V.js} +1 -1
- package/dist/{chunk-K7UQS3LO-033LOsjK.js → chunk-K7UQS3LO-DENzlS-M.js} +7 -7
- package/dist/{chunk-KMC2YHZD-DT4Sq4Ld.js → chunk-KMC2YHZD-SckhHdEh.js} +1 -1
- package/dist/{chunk-QN33PNHL-gs44MZla.js → chunk-QN33PNHL-Cjq5b604.js} +2 -2
- package/dist/{chunk-QYVHNE3D-B8BO1AnT.js → chunk-QYVHNE3D-CNUuivie.js} +3 -4
- package/dist/{chunk-QZHKN3VN-CeN_GkU6.js → chunk-QZHKN3VN-DugEU_bA.js} +1 -1
- package/dist/chunk-S3R3BYOJ-itCT6Vif.js +380 -0
- package/dist/{chunk-T44TD3VJ-BwzD6YE0.js → chunk-T44TD3VJ-BLdfTX8J.js} +1 -1
- package/dist/{chunk-TVAH2DTR-Bi6jpQJQ.js → chunk-TVAH2DTR-BOnwF9d8.js} +7 -8
- package/dist/{chunk-TZMSLE5B-D8klz2H_.js → chunk-TZMSLE5B-DGs66AlL.js} +4 -5
- package/dist/{chunk-WFRQ32O7-CzSwSlN0.js → chunk-WFRQ32O7-CPsipkmJ.js} +1 -1
- package/dist/{chunk-WFWHJNB7-DN_cavM6.js → chunk-WFWHJNB7-Cmed18Pk.js} +1 -1
- package/dist/{chunk-XRWGC2XP-Bb5eGNM2.js → chunk-XRWGC2XP-DH5GDaY8.js} +1 -1
- package/dist/{chunk-ZPAFE4SF-S5UYNb0V.js → chunk-ZPAFE4SF-DPDwaqZm.js} +22 -22
- package/dist/classDiagram-KNZD7YFC-azuS_99k.js +39 -0
- package/dist/classDiagram-v2-RKCZMP56-CQpyQQOR.js +39 -0
- package/dist/{click-outside-container-DE4e7p1p.js → click-outside-container-CL_FkgGY.js} +7 -12
- package/dist/{clike-CxAz4p9E.js → clike-DYfRWWXk.js} +1 -1
- package/dist/{clike-Cg_DBrJ0.js → clike-bzZTreP4.js} +1 -1
- package/dist/clojure-ATksAecl.js +4 -0
- package/dist/{clone-Dk4FkKH0.js → clone-Msbhmn2a.js} +1 -1
- package/dist/cmake-CWylaz2C.js +4 -0
- package/dist/cobol-BiLLCZIQ.js +4 -0
- package/dist/coffeescript-Ca4jipi8.js +4 -0
- package/dist/commonlisp-BwFjyEC7.js +4 -0
- package/dist/{constants-Cjd_3kwd.js → constants-BCOEQoEQ.js} +3 -3
- package/dist/{copy-C5RFg7ok.js → copy-BkZ8PkBM.js} +6 -2
- package/dist/{cose-bilkent-S5V4N54A-B3iOTGu5.js → cose-bilkent-S5V4N54A-BZnbwyVD.js} +20 -20
- package/dist/crystal-BhUsQHbh.js +4 -0
- package/dist/css-Cf4wlIyV.js +5 -0
- package/dist/cypher-Dj8Hzgxa.js +4 -0
- package/dist/{cytoscape.esm-DTDV0Nbj.js → cytoscape.esm-BTpRoPd2.js} +586 -661
- package/dist/d-DZI7tbTy.js +4 -0
- package/dist/{dagre-5GWH7T2D-KM4Z11yT.js → dagre-5GWH7T2D-BGaiSZZO.js} +32 -37
- package/dist/{dagre-B0u1urxE.js → dagre-pyfDIOWJ.js} +57 -76
- package/dist/data-grid-overlay-editor-867aBz0Y.js +133 -0
- package/dist/{diagram-N5W7TBWH-CtO7az4G.js → diagram-N5W7TBWH-CzLE0jZB.js} +35 -51
- package/dist/diagram-QEK2KX5R-AGS60xEZ.js +245 -0
- package/dist/{diagram-S2PKOQOG-CiXElLNQ.js → diagram-S2PKOQOG-BxRoG6yW.js} +28 -28
- package/dist/diff-WQISUHG5.js +4 -0
- package/dist/{dist-CdE2C2In.js → dist-2Ne-33Xy.js} +15 -20
- package/dist/{dist-DKFaZRVk.js → dist-B0YD1aXi.js} +2 -2
- package/dist/{dist-DBhzmFyH.js → dist-B1Dv8Sdk.js} +3 -3
- package/dist/{dist-CGIZPq3J.js → dist-BFkr6kAQ.js} +2 -2
- package/dist/{dist-DL_ci7Yc.js → dist-BL2DSY0P.js} +1 -1
- package/dist/dist-BawZu0ix.js +10 -0
- package/dist/{dist-Bar1QnNM.js → dist-BhVFggab.js} +3 -3
- package/dist/{textile-Cy55fYGC.js → dist-BiOF7987.js} +4 -2
- package/dist/{dist-BQmQQqFH.js → dist-BpzZrRd6.js} +1 -1
- package/dist/{dist-CxD5E6Sh.js → dist-C7zhQ7K0.js} +24 -22
- package/dist/{dist-BqgkUnEN.js → dist-CBhnQKQ4.js} +3 -3
- package/dist/{dist-Dzk1C8l5.js → dist-CId4IPXu.js} +10 -13
- package/dist/{dist-CUnh_3Ii.js → dist-CYhQCVru.js} +2 -2
- package/dist/{dist-BBlFk9ki.js → dist-CZq5-ZyD.js} +1 -1
- package/dist/{dist-elblfNXO.js → dist-Cacac5HV.js} +2 -2
- package/dist/{dist-CChOkSUg.js → dist-CfQHSIQC.js} +3 -3
- package/dist/{dist-JCAky9ND.js → dist-CkvGMBAS.js} +17 -22
- package/dist/dist-Cs3McXEj.js +6 -0
- package/dist/{dist-o7fhJC7U.js → dist-CvyfRaIr.js} +3 -3
- package/dist/{dist-CZfRM7pE.js → dist-D-3fICwh.js} +2 -2
- package/dist/dist-D3aaithT.js +6 -0
- package/dist/{dist-CutXTm8t.js → dist-DBhEu3-F.js} +1 -1
- package/dist/dist-DELcMSpJ.js +6 -0
- package/dist/{dist-C7ASiFxI.js → dist-DMxl6Qbu.js} +273 -263
- package/dist/{dist-CLvpViod.js → dist-DS6nuHYK.js} +2 -3
- package/dist/dist-Dgts3WXd.js +6 -0
- package/dist/{dist--I6Htnlv.js → dist-DlHkZUnY.js} +5 -5
- package/dist/dist-Doiq_KIP.js +15 -0
- package/dist/dist-DtpUiDG_.js +6 -0
- package/dist/{dist-DzOpMdwb.js → dist-NUdHX0XE.js} +4 -4
- package/dist/{dist-C3WYsf4K.js → dist-PGgOcwbF.js} +4 -10
- package/dist/{dist-DNnYAdRE.js → dist-RdxOJbBw.js} +2 -2
- package/dist/{dist-BEvIw5Nh.js → dist-RwqAqkpG.js} +1 -1
- package/dist/dist-ZjnJq_jD.js +10 -0
- package/dist/{dist-CbRkrKrP.js → dist-biZ846D9.js} +5 -5
- package/dist/{dist-DW9er3Zq.js → dist-d5NxvX2s.js} +44 -23
- package/dist/{dist-C3QUag__.js → dist-ivwkJchV.js} +3 -3
- package/dist/dist-mof3iuBu.js +12 -0
- package/dist/{dist-Cib4sGDA.js → dist-reo2kYlN.js} +2 -2
- package/dist/{dist-BZBitvuL.js → dist-wHVprCkn.js} +1 -1
- package/dist/{dist-C5zMs_n5.js → dist-y8uoXYaE.js} +3 -3
- package/dist/{dist-DPF5TTUg.js → dist-z_iuDES7.js} +126 -115
- package/dist/{dockerfile-Dum_1b-5.js → dockerfile-sZMPcXVY.js} +1 -1
- package/dist/dtd-B2M8dhfC.js +4 -0
- package/dist/dylan-CU3Vt8SC.js +4 -0
- package/dist/ecl-B8ESAVq4.js +4 -0
- package/dist/eiffel-DDfMIKeA.js +4 -0
- package/dist/elm-Bj6rj8jf.js +4 -0
- package/dist/{erDiagram-AWTI2OKA-ZTIl9iQO.js → erDiagram-AWTI2OKA-CTxzb-U8.js} +20 -20
- package/dist/erlang-BxyshZUq.js +4 -0
- package/dist/{error-banner-OQIGTqFR.js → error-banner-npbEfanI.js} +13 -13
- package/dist/{esm-DxFkg7a6.js → esm-BdiY4QsX.js} +1528 -1492
- package/dist/{esm-d0g2RsOH.js → esm-CAWW9sum.js} +6 -8
- package/dist/{esm-1_Mp6VD2.js → esm-YY5zh7KV.js} +324 -395
- package/dist/{esm-BO9n_s6u.js → esm-svAVli9f.js} +5 -5
- package/dist/{factor-CdgiDGiu.js → factor-CRFTmP_a.js} +1 -1
- package/dist/factor-CYk6XT8r.js +5 -0
- package/dist/{flowDiagram-PVAE7QVJ-DsbofOzu.js → flowDiagram-PVAE7QVJ-Dck2hiJe.js} +22 -22
- package/dist/{formats-D5C6JAJf.js → formats-BnqXUb1V.js} +13 -17
- package/dist/forth-fcoJkd-f.js +4 -0
- package/dist/fortran-IxZHu4wc.js +4 -0
- package/dist/{fullscreen-D1yTiBlu.js → fullscreen-blsKUrtN.js} +741 -744
- package/dist/{ganttDiagram-OWAHRB6G-FnCH1Yj3.js → ganttDiagram-OWAHRB6G-AWzfzpup.js} +9 -9
- package/dist/gas-B8rmKcim.js +4 -0
- package/dist/gherkin-BTm-jIdJ.js +4 -0
- package/dist/gitGraph-ZV4HHKMB-DFg_OLQb.js +21 -0
- package/dist/{gitGraphDiagram-NY62KEGX-B0wvMNqU.js → gitGraphDiagram-NY62KEGX-GyNboWSV.js} +31 -34
- package/dist/{glide-data-editor-CYfKmSNp.js → glide-data-editor-DHuN8kQ8.js} +1701 -1771
- package/dist/{graphlib-BGmr7CYF.js → graphlib-hb3zmtVD.js} +5 -5
- package/dist/groovy-01kRHFMD.js +4 -0
- package/dist/haskell-B3PhE05w.js +4 -0
- package/dist/haxe-DEoAm8oA.js +5 -0
- package/dist/{hotkeys-yFrUwyJK.js → hotkeys-Ct2T3e9O.js} +4 -7
- package/dist/idl-DsDJU9cV.js +4 -0
- package/dist/info-63CPKGFF-D3DZmDBa.js +21 -0
- package/dist/infoDiagram-STP46IZ2-ec08vi_U.js +44 -0
- package/dist/{isArrayLikeObject-DiDsNamC.js → isArrayLikeObject-BlvK28do.js} +3 -5
- package/dist/{isEmpty-BBG-u1GM.js → isEmpty--odfYjh1.js} +2 -2
- package/dist/{isSymbol-BxF-_8BA.js → isSymbol-Cb1f2HgO.js} +1 -1
- package/dist/{javascript-Dfq1qI35.js → javascript-BfCTmOnk.js} +2 -2
- package/dist/javascript-gwczVhuU.js +5 -0
- package/dist/jinja2-AkZRdFk3.js +4 -0
- package/dist/{journeyDiagram-BIP6EPQ6-B3PotfAW.js → journeyDiagram-BIP6EPQ6-TmXYCUbT.js} +23 -24
- package/dist/julia-_s6qe3bf.js +4 -0
- package/dist/{kanban-definition-6OIFK2YF-BTrQZ3LN.js → kanban-definition-6OIFK2YF-B6ozleHo.js} +15 -15
- package/dist/{katex-dN__NFdn.js → katex-mPzRsXEy.js} +1 -1
- package/dist/{katex-BE4xflfm.js → katex-mkWmhPUh.js} +149 -173
- package/dist/{label-BinTsX-u.js → label-VVRKZmrP.js} +21 -24
- package/dist/{linear-DyTdUIqX.js → linear-iebAbJVD.js} +1 -1
- package/dist/livescript-CwPHQdv5.js +4 -0
- package/dist/{loader-Dijti3y4.js → loader-CM0VALo9.js} +19 -26
- package/dist/lua-s7nRxkCP.js +4 -0
- package/dist/main.js +8234 -8633
- package/dist/{marked.esm-3RjvXPoO.js → marked.esm-DJM8la36.js} +5 -5
- package/dist/mathematica-Ci36yd1q.js +4 -0
- package/dist/mbox-DbOYMNCO.js +4 -0
- package/dist/{memoize-Dq87l1O_.js → memoize-DYoRBSLn.js} +1 -1
- package/dist/{merge-BPDCIm8P.js → merge-BjuR6j_w.js} +1 -1
- package/dist/{mermaid-BlJDcO4M.js → mermaid-YPPMBmhk.js} +58 -76
- package/dist/{mermaid-parser.core-CSFx6MQ7.js → mermaid-parser.core-BLkyTSZj.js} +8 -8
- package/dist/{mhchem-DZ68WS0G.js → mhchem-Dw7wvXtr.js} +1 -1
- package/dist/{min-BzhKOmZo.js → min-B_i2ahn4.js} +7 -7
- package/dist/{mindmap-definition-Q6HEUPPD-9hhnrO1k.js → mindmap-definition-Q6HEUPPD-F6-JnXwq.js} +17 -17
- package/dist/mirc-VmNe8AwF.js +4 -0
- package/dist/mllike-BdD7SJEa.js +6 -0
- package/dist/modelica-BA4VqzC3.js +4 -0
- package/dist/mscgen-DF-5WHJm.js +6 -0
- package/dist/mumps-c_Uia_QN.js +4 -0
- package/dist/{node-sql-parser-13oju30e.js → node-sql-parser-BqKV-TpL.js} +14343 -14351
- package/dist/{now-DVBcRCoE.js → now-CwRqw0nS.js} +1 -1
- package/dist/nsis-BAANGODV.js +5 -0
- package/dist/{nsis-BW6_XagK.js → nsis-BWJEeUyS.js} +1 -1
- package/dist/ntriples-Bslqh2Ki.js +4 -0
- package/dist/{number-overlay-editor-D1YdiOrm.js → number-overlay-editor-CeyruAX4.js} +17 -23
- package/dist/octave-DYn5ltia.js +4 -0
- package/dist/oz-B_N-StZq.js +4 -0
- package/dist/packet-HUATNLJX-CkqjFdAv.js +21 -0
- package/dist/pascal-DU4CtAUu.js +4 -0
- package/dist/perl-Bae6k32u.js +4 -0
- package/dist/pie-WTHONI2E-D0rWwX5P.js +21 -0
- package/dist/{pieDiagram-ADFJNKIX-CSBC0ZgF.js → pieDiagram-ADFJNKIX-C5dSQVCn.js} +28 -28
- package/dist/pig-DSIxUEgX.js +4 -0
- package/dist/powershell-31lcPgIF.js +4 -0
- package/dist/powershell-BZx53Ujw.js +236 -0
- package/dist/properties-lmYbntDG.js +4 -0
- package/dist/protobuf-BTYoCEpV.js +4 -0
- package/dist/pug-DMFM7zzO.js +5 -0
- package/dist/{pug-Bmups_z0.js → pug-PJh82u1M.js} +1 -1
- package/dist/puppet-B0ub07d-.js +4 -0
- package/dist/python-C4jT87Nt.js +5 -0
- package/dist/{q-BzWcnVri.js → q-CMoUHJ5Q.js} +3 -2
- package/dist/q-YbPYlqRI.js +4 -0
- package/dist/{quadrantDiagram-LMRXKWRM-h7nHf8xG.js → quadrantDiagram-LMRXKWRM-DlahxNiy.js} +7 -7
- package/dist/r-OfNu6HAI.js +4 -0
- package/dist/radar-NJJJXTRR-Bxqv4O5a.js +21 -0
- package/dist/{range-CgK0-PEw.js → range-DxfkexCE.js} +3 -3
- package/dist/{react-plotly-BZakcxdv.js → react-plotly-D_IAfR8f.js} +4364 -4705
- package/dist/{requirementDiagram-4UW4RH46-BGEurQYq.js → requirementDiagram-4UW4RH46-DTkinyvU.js} +17 -17
- package/dist/rpm-D_3b5peD.js +5 -0
- package/dist/ruby-CehsJy_T.js +4 -0
- package/dist/{sankeyDiagram-GR3RE2ED-CxeJ_jfl.js → sankeyDiagram-GR3RE2ED-CsLnEnnq.js} +3 -3
- package/dist/sas-DwQHzPoF.js +4 -0
- package/dist/scheme-B6ArxiQu.js +4 -0
- package/dist/{sequenceDiagram-C3RYC4MD-CbFxwyr_.js → sequenceDiagram-C3RYC4MD-BdEOR6SC.js} +20 -30
- package/dist/shell-AHmQgDfc.js +4 -0
- package/dist/sieve-CgodKOcx.js +4 -0
- package/dist/{simple-mode-Cgyya8F-.js → simple-mode-BP3Jd4vf.js} +1 -1
- package/dist/{slides-component-BEyG25AH.js → slides-component-2bbal1YJ.js} +24 -46
- package/dist/smalltalk-BeFzDkbo.js +4 -0
- package/dist/sparql-BWxq-Lnx.js +4 -0
- package/dist/{src-BNNJRxz3.js → src-DZkaBUmt.js} +6 -6
- package/dist/{stateDiagram-KXAO66HF-A61bMf29.js → stateDiagram-KXAO66HF-DQLH2jhP.js} +39 -41
- package/dist/stateDiagram-v2-UMBNRL4Z-D9v8fKjF.js +38 -0
- package/dist/stex-Dvaq0qsm.js +5 -0
- package/dist/style.css +1 -1
- package/dist/stylus-Ge0ofWlZ.js +4 -0
- package/dist/swift-CjQfbVxV.js +4 -0
- package/dist/tcl-CAGDF11K.js +4 -0
- package/dist/textile-CrXreJtf.js +4 -0
- package/dist/{time-D3tzCqJ6.js → time-CFkXkVrt.js} +1 -1
- package/dist/{timeline-definition-XQNQX7LJ-BwdsB7CR.js → timeline-definition-XQNQX7LJ-bToVq14i.js} +4 -5
- package/dist/{timer-D3Zlu9ow.js → timer-CzOhIJuk.js} +2 -2
- package/dist/{toNumber-efKT08hh.js → toNumber-EFF1Z9T1.js} +2 -2
- package/dist/{toString-BvCd3yJc.js → toString-C2mCkasT.js} +2 -2
- package/dist/toml-AdLXKwEi.js +4 -0
- package/dist/{toml-CIUkU1CP.js → toml-eSl4PUAH.js} +6 -2
- package/dist/treemap-75Q7IDZK-Da9Jv6a_.js +21 -0
- package/dist/troff-C-LaM2ex.js +4 -0
- package/dist/ttcn-DTclUi6T.js +4 -0
- package/dist/ttcn-cfg-BtBPbmLX.js +4 -0
- package/dist/turtle-BODDDg5O.js +4 -0
- package/dist/{types-Dcb1hf55.js → types-CRXV0KD5.js} +385 -252
- package/dist/{useAsyncData-DAtPzJzP.js → useAsyncData-uMVTsDI9.js} +1 -1
- package/dist/{useDateFormatter-CiUlIu7v.js → useDateFormatter-Dcz7jstn.js} +6 -6
- package/dist/{useTheme-CmsvrO5o.js → useTheme-NbEx-ZNV.js} +14 -10
- package/dist/vb-Cb1HQHii.js +4 -0
- package/dist/vbscript-CpXOP4wZ.js +4 -0
- package/dist/{vega-component-B3LA6qbm.js → vega-component-hegVmfuS.js} +21 -21
- package/dist/{vega-loader.browser.module-Bi3ttvdj.js → vega-loader.browser.module-DcW8jnKp.js} +1 -2
- package/dist/velocity-Dz0rBQIk.js +4 -0
- package/dist/verilog-6Di9aLKw.js +4 -0
- package/dist/vhdl-BRNesXYc.js +4 -0
- package/dist/webidl-BpRNYIYn.js +4 -0
- package/dist/xquery-DXWcJ7b6.js +4 -0
- package/dist/{xychartDiagram-6GGTOJPD-BJRRi5HC.js → xychartDiagram-6GGTOJPD-C7Bhm_yt.js} +12 -13
- package/dist/yacas-DbSARPz4.js +4 -0
- package/dist/z80-DzslPj_l.js +4 -0
- package/dist/{zod-UPQf9SGn.js → zod-ChY6miG5.js} +71 -81
- package/package.json +12 -12
- package/src/__mocks__/requests.ts +2 -0
- package/src/__tests__/chat-history.test.ts +123 -0
- package/src/components/app-config/ai-config.tsx +23 -0
- package/src/components/app-config/mcp-config.tsx +42 -2
- package/src/components/app-config/user-config-form.tsx +29 -49
- package/src/components/chat/acp/__tests__/context-utils.test.ts +1 -1
- package/src/components/chat/acp/agent-panel.tsx +1 -1
- package/src/components/chat/acp/blocks.tsx +46 -53
- package/src/components/chat/acp/common.tsx +1 -1
- package/src/components/chat/acp/context-utils.ts +1 -1
- package/src/components/chat/acp/session-tabs.tsx +1 -1
- package/src/components/chat/chat-history-popover.tsx +125 -0
- package/src/components/chat/chat-history-utils.ts +69 -0
- package/src/components/chat/chat-panel.tsx +9 -57
- package/src/components/chat/chat-utils.ts +11 -4
- package/src/components/data-table/__tests__/header-items.test.tsx +117 -0
- package/src/components/data-table/column-header.tsx +4 -2
- package/src/components/data-table/columns.tsx +2 -1
- package/src/components/data-table/data-table.tsx +7 -2
- package/src/components/data-table/header-items.tsx +63 -10
- package/src/components/dependency-graph/custom-node.tsx +11 -11
- package/src/components/dependency-graph/elements.ts +9 -4
- package/src/components/dependency-graph/panels.tsx +6 -4
- package/src/components/editor/Output.tsx +6 -1
- package/src/components/editor/__tests__/data-attributes.test.tsx +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +2 -4
- package/src/components/editor/ai/__tests__/completion-utils.test.ts +23 -31
- package/src/components/editor/ai/ai-completion-editor.tsx +135 -5
- package/src/components/editor/ai/completion-handlers.tsx +106 -22
- package/src/components/editor/cell/CreateCellButton.tsx +14 -2
- package/src/components/editor/cell/code/cell-editor.tsx +6 -0
- package/src/components/editor/chrome/panels/cache-panel.tsx +216 -0
- package/src/components/editor/chrome/panels/empty-state.tsx +3 -1
- package/src/components/editor/chrome/types.ts +66 -22
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +2 -0
- package/src/components/editor/database/schemas.ts +2 -10
- package/src/components/editor/errors/auto-fix.tsx +138 -32
- package/src/components/editor/errors/fix-mode.ts +15 -0
- package/src/components/editor/navigation/__tests__/clipboard.test.ts +0 -5
- package/src/components/editor/navigation/clipboard.ts +2 -1
- package/src/components/editor/{Cell.tsx → notebook-cell.tsx} +25 -8
- package/src/components/editor/output/ConsoleOutput.tsx +27 -33
- package/src/components/editor/output/JsonOutput.tsx +9 -0
- package/src/components/editor/output/MarimoErrorOutput.tsx +4 -34
- package/src/components/editor/output/MarimoTracebackOutput.tsx +10 -7
- package/src/components/editor/output/__tests__/json-output.test.ts +43 -0
- package/src/components/editor/package-alert.tsx +3 -0
- package/src/components/editor/renderers/{CellArray.tsx → cell-array.tsx} +1 -1
- package/src/components/forms/__tests__/form-utils.test.ts +6 -4
- package/src/components/icons/copy-icon.tsx +11 -5
- package/src/components/mcp/hooks.ts +48 -0
- package/src/components/mcp/mcp-status-indicator.tsx +144 -0
- package/src/components/shortcuts/renderShortcut.tsx +3 -1
- package/src/components/ui/button.tsx +2 -0
- package/src/components/ui/confirmation-button.tsx +85 -0
- package/src/components/ui/number-field.tsx +4 -1
- package/src/components/ui/switch.tsx +2 -0
- package/src/core/ai/context/providers/__tests__/__snapshots__/tables.test.ts.snap +13 -19
- package/src/core/ai/context/providers/__tests__/cell-output.test.ts +0 -1
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +14 -7
- package/src/core/ai/context/providers/__tests__/error.test.ts +24 -15
- package/src/core/ai/context/providers/cell-output.ts +5 -5
- package/src/core/ai/context/providers/common.ts +13 -4
- package/src/core/ai/context/providers/datasource.ts +56 -21
- package/src/core/ai/context/providers/error.ts +3 -4
- package/src/core/ai/context/providers/file.ts +2 -2
- package/src/core/ai/context/providers/tables.ts +36 -8
- package/src/core/ai/context/providers/variable.ts +2 -3
- package/src/core/ai/state.ts +6 -3
- package/src/core/ai/tools/__tests__/registry.test.ts +33 -8
- package/src/core/ai/tools/base.ts +81 -1
- package/src/core/ai/tools/registry.ts +36 -10
- package/src/core/ai/tools/sample-tool.ts +44 -8
- package/src/core/cache/requests.ts +5 -0
- package/src/core/cells/__tests__/cells.test.ts +6 -6
- package/src/core/cells/cells.ts +13 -14
- package/src/core/cells/scrollCellIntoView.ts +1 -1
- package/src/core/codemirror/__tests__/__snapshots__/setup.test.ts.snap +2 -0
- package/src/core/codemirror/__tests__/replace-editor-content.test.ts +336 -0
- package/src/core/codemirror/__tests__/setup.test.ts +1 -0
- package/src/core/codemirror/cm.ts +3 -2
- package/src/core/codemirror/find-replace/navigate.ts +2 -2
- package/src/core/codemirror/format.ts +2 -9
- package/src/core/codemirror/language/__tests__/sql.test.ts +24 -6
- package/src/core/codemirror/language/languages/python.ts +1 -3
- package/src/core/codemirror/language/languages/sql/sql.ts +23 -13
- package/src/core/codemirror/language/panel/panel.tsx +1 -6
- package/src/core/codemirror/language/utils.ts +3 -8
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +21 -14
- package/src/core/codemirror/lsp/federated-lsp.ts +20 -9
- package/src/core/codemirror/lsp/notebook-lsp.ts +35 -29
- package/src/core/codemirror/lsp/types.ts +0 -13
- package/src/core/codemirror/replace-editor-content.ts +87 -0
- package/src/core/config/__tests__/config-schema.test.ts +5 -0
- package/src/core/config/config-schema.ts +10 -0
- package/src/core/config/feature-flag.tsx +2 -6
- package/src/core/edit-app.tsx +1 -1
- package/src/core/errors/__tests__/errors.test.ts +1 -0
- package/src/core/errors/errors.ts +20 -6
- package/src/core/islands/bridge.ts +2 -0
- package/src/core/islands/main.ts +4 -0
- package/src/core/kernel/messages.ts +1 -0
- package/src/core/network/CachingRequestRegistry.ts +2 -2
- package/src/core/network/requests-network.ts +14 -0
- package/src/core/network/requests-static.ts +2 -0
- package/src/core/network/requests-toasting.ts +2 -0
- package/src/core/network/types.ts +5 -0
- package/src/core/saving/save-component.tsx +43 -36
- package/src/core/wasm/bridge.ts +2 -0
- package/src/core/websocket/useMarimoWebSocket.tsx +8 -0
- package/src/css/app/codemirror-completions.css +1 -1
- package/src/custom.d.ts +2 -0
- package/src/plugins/core/registerReactComponent.tsx +5 -1
- package/src/plugins/impl/DataTablePlugin.tsx +19 -19
- package/src/plugins/impl/__tests__/DateTimePickerPlugin.test.tsx +32 -0
- package/src/plugins/impl/chat/ChatPlugin.tsx +1 -1
- package/src/plugins/impl/chat/chat-ui.tsx +17 -2
- package/src/plugins/impl/chat/types.ts +1 -1
- package/src/plugins/impl/data-frames/DataFramePlugin.tsx +7 -2
- package/src/plugins/impl/plotly/__tests__/parse-from-template.test.ts +17 -0
- package/src/plugins/impl/plotly/parse-from-template.ts +2 -1
- package/src/stories/cell.stories.tsx +1 -1
- package/src/stories/layout/vertical/one-column.stories.tsx +1 -1
- package/src/utils/__tests__/formatting.test.ts +107 -0
- package/src/utils/__tests__/json-parser.test.ts +13 -0
- package/src/utils/copy.ts +6 -0
- package/src/utils/formatting.ts +51 -0
- package/src/utils/json/json-parser.ts +28 -3
- package/src/utils/numbers.ts +24 -1
- package/dist/any-language-editor-CVFQlioK.js +0 -156
- package/dist/apl-ChlaBfxB.js +0 -4
- package/dist/architecture-O4VJ6CD3-BVeaxUcM.js +0 -21
- package/dist/asciiarmor-CcJmm3l_.js +0 -4
- package/dist/asn1-ThRYxoBE.js +0 -4
- package/dist/assets/__vite-browser-external-BeNtI_tJ.js +0 -1
- package/dist/assets/worker-DnuXpGWN.js +0 -54
- package/dist/brainfuck-CEM0JgDn.js +0 -4
- package/dist/chunk-EXTU4WIE-DECT9AAK.js +0 -14
- package/dist/chunk-S3R3BYOJ-DMQ1yeyq.js +0 -386
- package/dist/classDiagram-KNZD7YFC-BG53O6Jt.js +0 -39
- package/dist/classDiagram-v2-RKCZMP56-BmKILsGU.js +0 -39
- package/dist/clojure-B7RHyE9t.js +0 -4
- package/dist/cmake-TeTMP4I5.js +0 -4
- package/dist/cobol-DI-mxUER.js +0 -4
- package/dist/coffeescript-DHUFLqWp.js +0 -4
- package/dist/commonlisp-SLiUrh1m.js +0 -4
- package/dist/crystal-B4fY1ZfJ.js +0 -4
- package/dist/css-Bdoq3TzK.js +0 -5
- package/dist/cypher-CBU182fp.js +0 -4
- package/dist/d-D8myDZeH.js +0 -4
- package/dist/data-grid-overlay-editor-qNmJk2x0.js +0 -135
- package/dist/diagram-QEK2KX5R-fu8Noi3H.js +0 -245
- package/dist/diff-DJF_UB7H.js +0 -4
- package/dist/dist-52-_pKoy.js +0 -6
- package/dist/dist-6DOMStFn.js +0 -6
- package/dist/dist-B334aW7p.js +0 -10
- package/dist/dist-BOI9lUz-.js +0 -12
- package/dist/dist-C06uhBzF.js +0 -6
- package/dist/dist-CGkpguCB.js +0 -6
- package/dist/dist-CrApzUED.js +0 -6
- package/dist/dist-Dp2GLdCl.js +0 -14
- package/dist/dist-WHFsbMDr.js +0 -6
- package/dist/dist-hyKcTPG9.js +0 -10
- package/dist/dtd-DY8q65lC.js +0 -4
- package/dist/dylan-CBLcjWCi.js +0 -4
- package/dist/ecl-BSXPNfOw.js +0 -4
- package/dist/eiffel-BJf0PQX-.js +0 -4
- package/dist/elm-DWQwPCZS.js +0 -4
- package/dist/erlang-BWBaGZ5e.js +0 -4
- package/dist/factor-DT1-MBPl.js +0 -5
- package/dist/forth-D9GDt3FB.js +0 -4
- package/dist/fortran-DHkRhDWw.js +0 -4
- package/dist/gas-7lQEOM0H.js +0 -4
- package/dist/gherkin-BLLyroYi.js +0 -4
- package/dist/gitGraph-ZV4HHKMB-z2v_cInC.js +0 -21
- package/dist/groovy-C-wabwj0.js +0 -4
- package/dist/haskell-DaxVQ_d1.js +0 -4
- package/dist/haxe-C2yLoC7h.js +0 -5
- package/dist/idl-DQBP8i7k.js +0 -4
- package/dist/info-63CPKGFF-GS4w6pCB.js +0 -21
- package/dist/infoDiagram-STP46IZ2-DE9YYPFg.js +0 -44
- package/dist/javascript-DRwFV9r5.js +0 -5
- package/dist/jinja2-CNoIpVmN.js +0 -4
- package/dist/julia-DXDf-GhP.js +0 -4
- package/dist/livescript-S2uhJQx7.js +0 -4
- package/dist/lua-Bvgs0y2G.js +0 -4
- package/dist/mathematica-D2zqfwIg.js +0 -4
- package/dist/mbox-SBcPaDuZ.js +0 -4
- package/dist/mirc-hkQc7sVF.js +0 -4
- package/dist/mllike-DRWPBlr9.js +0 -6
- package/dist/modelica-CO2ROGlP.js +0 -4
- package/dist/mscgen-BpX61bO6.js +0 -6
- package/dist/mumps-BCnFeIn6.js +0 -4
- package/dist/nsis-BaTOxlD1.js +0 -5
- package/dist/ntriples-zEo5BWjr.js +0 -4
- package/dist/octave-BE0RnCM9.js +0 -4
- package/dist/oz-C4_2Ttul.js +0 -4
- package/dist/packet-HUATNLJX-CjHqJIqk.js +0 -21
- package/dist/pascal-Q3jJucpw.js +0 -4
- package/dist/perl-DkXZIWHF.js +0 -4
- package/dist/pie-WTHONI2E-D67gLWtR.js +0 -21
- package/dist/pig-DCgEHdsu.js +0 -4
- package/dist/powershell-3rK_nRRJ.js +0 -236
- package/dist/powershell-Eo2-7MoM.js +0 -4
- package/dist/properties-C0IOX8WR.js +0 -4
- package/dist/protobuf--lGQUSRO.js +0 -4
- package/dist/pug-Cf8AQHMJ.js +0 -5
- package/dist/puppet-D7Z3dTJn.js +0 -4
- package/dist/python-FHIx_i8Y.js +0 -5
- package/dist/q-B7UA1feM.js +0 -4
- package/dist/r-Cc9R2A7N.js +0 -4
- package/dist/radar-NJJJXTRR-C-AZP_Te.js +0 -21
- package/dist/rpm-vhJNlrQ6.js +0 -5
- package/dist/ruby-CVluPY0M.js +0 -4
- package/dist/sas-A8DL8oy3.js +0 -4
- package/dist/scheme-6xHHcSXC.js +0 -4
- package/dist/shell-DHN-e5rf.js +0 -4
- package/dist/sieve-BuQwLY02.js +0 -4
- package/dist/smalltalk-BA4HPg2H.js +0 -4
- package/dist/sparql-Bf4yCuy3.js +0 -4
- package/dist/stateDiagram-v2-UMBNRL4Z-C_0FUzzk.js +0 -38
- package/dist/stex-D-I1cYeE.js +0 -5
- package/dist/stylus-BMeped2l.js +0 -4
- package/dist/swift-lwEdlZoC.js +0 -4
- package/dist/tcl-B03ipeqv.js +0 -4
- package/dist/toml-BLgrVtfu.js +0 -4
- package/dist/treemap-75Q7IDZK-DTvwfpWt.js +0 -21
- package/dist/troff-g6EjN2O2.js +0 -4
- package/dist/ttcn-Dzvba8jK.js +0 -4
- package/dist/ttcn-cfg-CadG0p1K.js +0 -4
- package/dist/turtle-DkXAMWo9.js +0 -4
- package/dist/vb-C5dCiel8.js +0 -4
- package/dist/vbscript-I4bDEQln.js +0 -4
- package/dist/velocity-mt0fDwFH.js +0 -4
- package/dist/verilog-Dxq3KJkc.js +0 -4
- package/dist/vhdl-Km0QUlV-.js +0 -4
- package/dist/webidl-B3lJ2MRL.js +0 -4
- package/dist/xquery-CcIxNPEe.js +0 -4
- package/dist/yacas-oMa-f-tN.js +0 -4
- package/dist/z80-D03Nvn6l.js +0 -4
- /package/dist/{apl-DZqo8Elt.js → apl-CEHentF4.js} +0 -0
- /package/dist/{asciiarmor-DTzHAIeX.js → asciiarmor-DURYiCS0.js} +0 -0
- /package/dist/{asn1-DrAXKsZH.js → asn1-ETAiEoXY.js} +0 -0
- /package/dist/{asterisk-oF4U3h48.js → asterisk-DTpbbXPb.js} +0 -0
- /package/dist/{brainfuck-BYgLey30.js → brainfuck-BWQep-SA.js} +0 -0
- /package/dist/{clojure-Bs2M3OUY.js → clojure-BzFapDkA.js} +0 -0
- /package/dist/{cmake-DpI8vxJN.js → cmake-DvlbIC8x.js} +0 -0
- /package/dist/{cobol-BQyrWo72.js → cobol-BrEI4cPR.js} +0 -0
- /package/dist/{coffeescript-9ke9UHmw.js → coffeescript-B6cvu8mO.js} +0 -0
- /package/dist/{common-keywords-BzgeAvH1.js → common-keywords-WqQm7W8t.js} +0 -0
- /package/dist/{commonlisp-DghUdrUH.js → commonlisp-BIT8PQqi.js} +0 -0
- /package/dist/{crystal-DEf_SInh.js → crystal-B_UcPArT.js} +0 -0
- /package/dist/{css-BzTU9lNO.js → css-dHbnt_zl.js} +0 -0
- /package/dist/{cypher-a2v0c11S.js → cypher-Dh3FOpL7.js} +0 -0
- /package/dist/{d-SAswny-M.js → d-CQD1IHee.js} +0 -0
- /package/dist/{diff-OJ-xLXcG.js → diff-CpF_IDx0.js} +0 -0
- /package/dist/{dtd-BsUf-rer.js → dtd-DYoNpy6c.js} +0 -0
- /package/dist/{duckdb-keywords-B0NOra5o.js → duckdb-keywords-CdIsl9L0.js} +0 -0
- /package/dist/{dylan-C0ZYngjn.js → dylan-Bc_2G1E-.js} +0 -0
- /package/dist/{ebnf-DF1xx0b_.js → ebnf-jGVT_YpN.js} +0 -0
- /package/dist/{ecl-Bsuvoouq.js → ecl-UIU-P-Ar.js} +0 -0
- /package/dist/{eiffel-DgfSpLi-.js → eiffel-C90Oyuix.js} +0 -0
- /package/dist/{elm-GNxDj-5E.js → elm-B9fWSySj.js} +0 -0
- /package/dist/{erlang-Ds3uY1kL.js → erlang-Ccff0UAn.js} +0 -0
- /package/dist/{fcl-CqBgSioc.js → fcl-CGR8NxAg.js} +0 -0
- /package/dist/{forth-JCaLysGk.js → forth-U1ROGcBY.js} +0 -0
- /package/dist/{fortran-Dc2AoKAl.js → fortran-3nOkjDmc.js} +0 -0
- /package/dist/{gas-Q4Uz82YW.js → gas-B_4H5FzV.js} +0 -0
- /package/dist/{gherkin-Dpxe49sQ.js → gherkin-B0eru5Uz.js} +0 -0
- /package/dist/{groovy-D8mTRCu6.js → groovy-dqjtZUVf.js} +0 -0
- /package/dist/{haskell-2_8cC4wY.js → haskell-DFzCCQzo.js} +0 -0
- /package/dist/{haxe-Bl9zkZlz.js → haxe-Da8Pj5RT.js} +0 -0
- /package/dist/{http-DKCqY6yS.js → http-1HACL_9s.js} +0 -0
- /package/dist/{idl-Dn-HNfGW.js → idl-D3NXs5iM.js} +0 -0
- /package/dist/{jinja2-JjFiAGKk.js → jinja2-gBHAxUdF.js} +0 -0
- /package/dist/{julia-R5wne8eu.js → julia-bG-6nJ-_.js} +0 -0
- /package/dist/{livescript-DSwokrYj.js → livescript-BlsRC8UJ.js} +0 -0
- /package/dist/{lua-CgXfrp2-.js → lua-BbDC0_5w.js} +0 -0
- /package/dist/{mathematica-BVli92MR.js → mathematica-YZTe3-PF.js} +0 -0
- /package/dist/{mbox-CMFlocdS.js → mbox-CY5idp08.js} +0 -0
- /package/dist/{mirc-BkW04Zpc.js → mirc-CbQuFZKk.js} +0 -0
- /package/dist/{mllike-DEjvHvNV.js → mllike-DsbHMX-5.js} +0 -0
- /package/dist/{modelica-CxDn-oje.js → modelica-CQuvsOQk.js} +0 -0
- /package/dist/{mscgen-D78wmE-w.js → mscgen-LIpBP9VR.js} +0 -0
- /package/dist/{mumps-Bi0IvPOV.js → mumps-Ct5NXoaG.js} +0 -0
- /package/dist/{nginx-DErPZFhX.js → nginx-Dvc62C8z.js} +0 -0
- /package/dist/{ntriples-Btyp6wRL.js → ntriples-jVkxWUuv.js} +0 -0
- /package/dist/{octave-CZA6-2F8.js → octave-jGOImUB0.js} +0 -0
- /package/dist/{oz-Bm6LSNfE.js → oz-Y0FKDMS2.js} +0 -0
- /package/dist/{pascal-B4J6a9BH.js → pascal-BaLtPWWB.js} +0 -0
- /package/dist/{perl-CzVqxS08.js → perl-CjfE0JLo.js} +0 -0
- /package/dist/{pig-Clh03cnn.js → pig-DE4epV99.js} +0 -0
- /package/dist/{properties-D7ch1Wyb.js → properties-CLyCG5C-.js} +0 -0
- /package/dist/{protobuf-DrkdrMPK.js → protobuf-BjBBs_V4.js} +0 -0
- /package/dist/{puppet-BtZG8zdO.js → puppet-ZImLuomA.js} +0 -0
- /package/dist/{python-B6FKOVIv.js → python-C9YN71pR.js} +0 -0
- /package/dist/{r-Dnvo5-96.js → r-DILmKWWW.js} +0 -0
- /package/dist/{rpm-B1DrgfnX.js → rpm-fpIsm1Kr.js} +0 -0
- /package/dist/{ruby-CelfUg17.js → ruby-BuiQI41h.js} +0 -0
- /package/dist/{sas-DfSQFMWG.js → sas-C76sJ1zF.js} +0 -0
- /package/dist/{scheme-BplhaWuO.js → scheme-DHjM-txv.js} +0 -0
- /package/dist/{shell-DqU5OS2c.js → shell--7NmGJ9p.js} +0 -0
- /package/dist/{sieve-BE4_IyGa.js → sieve-DaPvBv1M.js} +0 -0
- /package/dist/{smalltalk-B_WPL8Nx.js → smalltalk-KPvwrjCs.js} +0 -0
- /package/dist/{solr-DlJFg7H5.js → solr-PvZUtEDb.js} +0 -0
- /package/dist/{sparql-7XIlcOgW.js → sparql-CXSUIQer.js} +0 -0
- /package/dist/{spreadsheet-BdZSVwVp.js → spreadsheet-DPJdGPkx.js} +0 -0
- /package/dist/{sql-CCrq7lfJ.js → sql-Dp4ZLSIa.js} +0 -0
- /package/dist/{stex-BiFc8QAu.js → stex-CeXW4zzk.js} +0 -0
- /package/dist/{stylus-DlSH9xpH.js → stylus-BXcmrg9w.js} +0 -0
- /package/dist/{swift-e3tMTZgJ.js → swift-DD8I7hKP.js} +0 -0
- /package/dist/{tcl-DfZMC20G.js → tcl-B9Lp4GtA.js} +0 -0
- /package/dist/{textile-DaSeca5U.js → textile-qdiY0teq.js} +0 -0
- /package/dist/{tiddlywiki-dfoiz8pS.js → tiddlywiki-t32lkubq.js} +0 -0
- /package/dist/{tiki-yJbQzhma.js → tiki-B0qKrSMl.js} +0 -0
- /package/dist/{troff-FN_FrCXR.js → troff-105XJOEu.js} +0 -0
- /package/dist/{ttcn-7_i4HlyB.js → ttcn-1_BxDcM8.js} +0 -0
- /package/dist/{ttcn-cfg-B46AlBUV.js → ttcn-cfg-Cn_XgXiw.js} +0 -0
- /package/dist/{turtle-QQfeFveR.js → turtle-BI6LyfEu.js} +0 -0
- /package/dist/{vb-DToPVnLa.js → vb-BecoBfmr.js} +0 -0
- /package/dist/{vbscript-CtsNaTz4.js → vbscript-De-zpA4i.js} +0 -0
- /package/dist/{velocity-CAoNe6ns.js → velocity-DhlYJTrD.js} +0 -0
- /package/dist/{verilog-DrDOMiJq.js → verilog-BDZgxDOW.js} +0 -0
- /package/dist/{vhdl-DnO0OEPh.js → vhdl-CV0OKTbp.js} +0 -0
- /package/dist/{webidl-Or6d1ZfA.js → webidl-BOM1Fs0O.js} +0 -0
- /package/dist/{xquery-CEp_Mcpr.js → xquery-CltP_CGh.js} +0 -0
- /package/dist/{yacas-DgnYrSlp.js → yacas-Dch4E2Dg.js} +0 -0
- /package/dist/{z80-DlG_kyeB.js → z80-B5Yly27o.js} +0 -0
|
@@ -1213,7 +1213,7 @@ function requireDebounce() {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
return debounce_1 = s, debounce_1;
|
|
1215
1215
|
}
|
|
1216
|
-
var
|
|
1216
|
+
var debounce = /* @__PURE__ */ getDefaultExportFromCjs(requireDebounce()), performance$1 = _window ? _window.performance : null, pnow = performance$1 && performance$1.now ? function() {
|
|
1217
1217
|
return performance$1.now();
|
|
1218
1218
|
} : function() {
|
|
1219
1219
|
return Date.now();
|
|
@@ -1279,10 +1279,10 @@ var debounceExports = requireDebounce(), debounce = /* @__PURE__ */ getDefaultEx
|
|
|
1279
1279
|
return t;
|
|
1280
1280
|
};
|
|
1281
1281
|
function rotatePoint(e, t, n, r, a) {
|
|
1282
|
-
var o = a * Math.PI / 180
|
|
1282
|
+
var o = a * Math.PI / 180;
|
|
1283
1283
|
return {
|
|
1284
|
-
x:
|
|
1285
|
-
y:
|
|
1284
|
+
x: Math.cos(o) * (e - n) - Math.sin(o) * (t - r) + n,
|
|
1285
|
+
y: Math.sin(o) * (e - n) + Math.cos(o) * (t - r) + r
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
1288
|
var movePointByBoxAspect = function(e, t, n, r, a, o) {
|
|
@@ -1672,7 +1672,7 @@ var heap, hasRequiredHeap;
|
|
|
1672
1672
|
function requireHeap() {
|
|
1673
1673
|
return hasRequiredHeap ? heap : (hasRequiredHeap = 1, heap = requireHeap$1(), heap);
|
|
1674
1674
|
}
|
|
1675
|
-
var
|
|
1675
|
+
var Heap = /* @__PURE__ */ getDefaultExportFromCjs(requireHeap()), dijkstraDefaults = defaults$g({
|
|
1676
1676
|
root: null,
|
|
1677
1677
|
weight: function(e) {
|
|
1678
1678
|
return 1;
|
|
@@ -1722,8 +1722,7 @@ var heapExports = requireHeap(), Heap = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
|
1722
1722
|
}
|
|
1723
1723
|
return {
|
|
1724
1724
|
distanceTo: function(e2) {
|
|
1725
|
-
|
|
1726
|
-
return f[t2.id()];
|
|
1725
|
+
return f[(string(e2) ? h.filter(e2)[0] : e2[0]).id()];
|
|
1727
1726
|
},
|
|
1728
1727
|
pathTo: function(e2) {
|
|
1729
1728
|
var t2 = string(e2) ? h.filter(e2)[0] : e2[0], n2 = [], r2 = t2, a2 = r2.id();
|
|
@@ -1901,12 +1900,12 @@ var heapExports = requireHeap(), Heap = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
|
1901
1900
|
Q.push(b(Z).edge);
|
|
1902
1901
|
for (var $ = b(Z).pred; Q.indexOf($) === -1; ) Q.push($), Q.push(b($).edge), $ = b($).pred;
|
|
1903
1902
|
Q = Q.slice(Q.indexOf($));
|
|
1904
|
-
for (var
|
|
1905
|
-
Q = Q.slice(
|
|
1906
|
-
var
|
|
1903
|
+
for (var Dh = Q[0].id(), Oh = 0, kh = 2; kh < Q.length; kh += 2) Q[kh].id() < Dh && (Dh = Q[kh].id(), Oh = kh);
|
|
1904
|
+
Q = Q.slice(Oh).concat(Q.slice(0, Oh)), Q.push(Q[0]);
|
|
1905
|
+
var Ah = Q.map(function(e2) {
|
|
1907
1906
|
return e2.id();
|
|
1908
1907
|
}).join(",");
|
|
1909
|
-
z.indexOf(
|
|
1908
|
+
z.indexOf(Ah) === -1 && (_.push(c.spawn(Q)), z.push(Ah));
|
|
1910
1909
|
}
|
|
1911
1910
|
} else break;
|
|
1912
1911
|
}
|
|
@@ -1929,10 +1928,7 @@ var heapExports = requireHeap(), Heap = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
|
1929
1928
|
for (var _ = 0; _ < t.length; _++) t[_] === c && (t[_] = s);
|
|
1930
1929
|
return l;
|
|
1931
1930
|
}, contractUntil = function(e, t, n, r) {
|
|
1932
|
-
for (; n > r; )
|
|
1933
|
-
var a = Math.floor(Math.random() * t.length);
|
|
1934
|
-
t = collapse(a, e, t), n--;
|
|
1935
|
-
}
|
|
1931
|
+
for (; n > r; ) t = collapse(Math.floor(Math.random() * t.length), e, t), n--;
|
|
1936
1932
|
return t;
|
|
1937
1933
|
}, elesfn$p = { kargerStein: function() {
|
|
1938
1934
|
var e = this, t = this.byGroup(), n = t.nodes, r = t.edges;
|
|
@@ -1974,10 +1970,10 @@ var heapExports = requireHeap(), Heap = /* @__PURE__ */ getDefaultExportFromCjs(
|
|
|
1974
1970
|
e.contains(t4) && !D.contains(t4) && n2.merge(t4);
|
|
1975
1971
|
});
|
|
1976
1972
|
}), n2;
|
|
1977
|
-
}
|
|
1973
|
+
};
|
|
1978
1974
|
return {
|
|
1979
1975
|
cut: D,
|
|
1980
|
-
components:
|
|
1976
|
+
components: [P(O), P(k)],
|
|
1981
1977
|
partition1: O,
|
|
1982
1978
|
partition2: k
|
|
1983
1979
|
};
|
|
@@ -2172,9 +2168,7 @@ function inflatePolygon(e, t) {
|
|
|
2172
2168
|
return t2 / 2;
|
|
2173
2169
|
}, l = function(e2, t2, s2, c2) {
|
|
2174
2170
|
var l2 = r(t2, e2), u2 = r(c2, s2), d2 = o(l2, u2);
|
|
2175
|
-
|
|
2176
|
-
var f2 = o(r(s2, e2), u2) / d2;
|
|
2177
|
-
return n(e2, a(l2, f2));
|
|
2171
|
+
return Math.abs(d2) < 1e-9 ? n(e2, a(l2, 0.5)) : n(e2, a(l2, o(r(s2, e2), u2) / d2));
|
|
2178
2172
|
}, u = e.map(function(e2) {
|
|
2179
2173
|
return {
|
|
2180
2174
|
x: e2.x,
|
|
@@ -2190,10 +2184,9 @@ function inflatePolygon(e, t) {
|
|
|
2190
2184
|
f.push(v);
|
|
2191
2185
|
}
|
|
2192
2186
|
for (var b = f.map(function(e2, r2) {
|
|
2193
|
-
var o2 = n(u[r2], a(e2, t)), s2 = n(u[(r2 + 1) % d], a(e2, t));
|
|
2194
2187
|
return {
|
|
2195
|
-
p1:
|
|
2196
|
-
p2:
|
|
2188
|
+
p1: n(u[r2], a(e2, t)),
|
|
2189
|
+
p2: n(u[(r2 + 1) % d], a(e2, t))
|
|
2197
2190
|
};
|
|
2198
2191
|
}), S = [], C = 0; C < d; C++) {
|
|
2199
2192
|
var w = b[(C - 1 + d) % d], T = b[C], E = l(w.p1, w.p2, T.p1, T.p2);
|
|
@@ -2202,39 +2195,39 @@ function inflatePolygon(e, t) {
|
|
|
2202
2195
|
return S;
|
|
2203
2196
|
}
|
|
2204
2197
|
function miterBox(e, t, n, r, a, o) {
|
|
2205
|
-
var s = transformPoints(e, t, n, r, a),
|
|
2206
|
-
return
|
|
2207
|
-
return expandBoundingBoxByPoint(
|
|
2208
|
-
}),
|
|
2198
|
+
var s = inflatePolygon(transformPoints(e, t, n, r, a), o), c = makeBoundingBox();
|
|
2199
|
+
return s.forEach(function(e2) {
|
|
2200
|
+
return expandBoundingBoxByPoint(c, e2.x, e2.y);
|
|
2201
|
+
}), c;
|
|
2209
2202
|
}
|
|
2210
2203
|
var roundRectangleIntersectLine = function(e, t, n, r, a, o, s) {
|
|
2211
2204
|
var c = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : "auto", l = c === "auto" ? getRoundRectangleRadius(a, o) : c, u = a / 2, d = o / 2;
|
|
2212
2205
|
l = Math.min(l, u, d);
|
|
2213
2206
|
var f = l !== u, m = l !== d, h;
|
|
2214
2207
|
if (f) {
|
|
2215
|
-
var g = n - u + l - s, _ = r - d - s
|
|
2216
|
-
if (h = finiteLinesIntersect(e, t, n, r, g, _,
|
|
2208
|
+
var g = n - u + l - s, _ = r - d - s;
|
|
2209
|
+
if (h = finiteLinesIntersect(e, t, n, r, g, _, n + u - l + s, _, false), h.length > 0) return h;
|
|
2217
2210
|
}
|
|
2218
2211
|
if (m) {
|
|
2219
|
-
var
|
|
2220
|
-
if (h = finiteLinesIntersect(e, t, n, r,
|
|
2212
|
+
var v = n + u + s;
|
|
2213
|
+
if (h = finiteLinesIntersect(e, t, n, r, v, r - d + l - s, v, r + d - l + s, false), h.length > 0) return h;
|
|
2221
2214
|
}
|
|
2222
2215
|
if (f) {
|
|
2223
|
-
var
|
|
2224
|
-
if (h = finiteLinesIntersect(e, t, n, r,
|
|
2216
|
+
var b = n - u + l - s, S = r + d + s;
|
|
2217
|
+
if (h = finiteLinesIntersect(e, t, n, r, b, S, n + u - l + s, S, false), h.length > 0) return h;
|
|
2225
2218
|
}
|
|
2226
2219
|
if (m) {
|
|
2227
|
-
var
|
|
2228
|
-
if (h = finiteLinesIntersect(e, t, n, r,
|
|
2229
|
-
}
|
|
2230
|
-
var
|
|
2231
|
-
if (
|
|
2232
|
-
var
|
|
2233
|
-
if (
|
|
2234
|
-
var
|
|
2235
|
-
if (
|
|
2236
|
-
var
|
|
2237
|
-
return
|
|
2220
|
+
var C = n - u - s;
|
|
2221
|
+
if (h = finiteLinesIntersect(e, t, n, r, C, r - d + l - s, C, r + d - l + s, false), h.length > 0) return h;
|
|
2222
|
+
}
|
|
2223
|
+
var w, T = n - u + l, E = r - d + l;
|
|
2224
|
+
if (w = intersectLineCircle(e, t, n, r, T, E, l + s), w.length > 0 && w[0] <= T && w[1] <= E) return [w[0], w[1]];
|
|
2225
|
+
var D = n + u - l, O = r - d + l;
|
|
2226
|
+
if (w = intersectLineCircle(e, t, n, r, D, O, l + s), w.length > 0 && w[0] >= D && w[1] <= O) return [w[0], w[1]];
|
|
2227
|
+
var k = n + u - l, A = r + d - l;
|
|
2228
|
+
if (w = intersectLineCircle(e, t, n, r, k, A, l + s), w.length > 0 && w[0] >= k && w[1] >= A) return [w[0], w[1]];
|
|
2229
|
+
var j = n - u + l, M = r + d - l;
|
|
2230
|
+
return w = intersectLineCircle(e, t, n, r, j, M, l + s), w.length > 0 && w[0] <= j && w[1] >= M ? [w[0], w[1]] : [];
|
|
2238
2231
|
}, inLineVicinity = function(e, t, n, r, a, o, s) {
|
|
2239
2232
|
var c = s, l = Math.min(n, a), u = Math.max(n, a), d = Math.min(r, o), f = Math.max(r, o);
|
|
2240
2233
|
return l - c <= e && e <= u + c && d - c <= t && t <= f + c;
|
|
@@ -2250,8 +2243,8 @@ var roundRectangleIntersectLine = function(e, t, n, r, a, o, s) {
|
|
|
2250
2243
|
n -= r;
|
|
2251
2244
|
var a = t * t - 4 * e * n;
|
|
2252
2245
|
if (a < 0) return [];
|
|
2253
|
-
var o = Math.sqrt(a), s = 2 * e
|
|
2254
|
-
return [
|
|
2246
|
+
var o = Math.sqrt(a), s = 2 * e;
|
|
2247
|
+
return [(-t + o) / s, (-t - o) / s];
|
|
2255
2248
|
}, solveCubic = function(e, t, n, r, a) {
|
|
2256
2249
|
e === 0 && (e = 1e-5), t /= e, n /= e, r /= e;
|
|
2257
2250
|
var o, s = (3 * n - t * t) / 9, c = -(27 * r) + t * (9 * n - 2 * (t * t)), l, u, d, f, m;
|
|
@@ -2282,12 +2275,7 @@ var roundRectangleIntersectLine = function(e, t, n, r, a, o, s) {
|
|
|
2282
2275
|
var u = Array(n.length), d;
|
|
2283
2276
|
c[0] == null ? d = c : (d = Math.atan(c[1] / c[0]), c[0] < 0 ? d += Math.PI / 2 : d = -d - Math.PI / 2);
|
|
2284
2277
|
for (var f = Math.cos(-d), m = Math.sin(-d), h = 0; h < u.length / 2; h++) u[h * 2] = o / 2 * (n[h * 2] * f - n[h * 2 + 1] * m), u[h * 2 + 1] = s / 2 * (n[h * 2 + 1] * f + n[h * 2] * m), u[h * 2] += r, u[h * 2 + 1] += a;
|
|
2285
|
-
|
|
2286
|
-
if (l > 0) {
|
|
2287
|
-
var _ = expandPolygon(u, -l);
|
|
2288
|
-
g = joinLines(_);
|
|
2289
|
-
} else g = u;
|
|
2290
|
-
return pointInsidePolygonPoints(e, t, g);
|
|
2278
|
+
return pointInsidePolygonPoints(e, t, l > 0 ? joinLines(expandPolygon(u, -l)) : u);
|
|
2291
2279
|
}, pointInsideRoundPolygon = function(e, t, n, r, a, o, s, c) {
|
|
2292
2280
|
for (var l = Array(n.length * 2), u = 0; u < c.length; u++) {
|
|
2293
2281
|
var d = c[u];
|
|
@@ -2323,16 +2311,12 @@ var roundRectangleIntersectLine = function(e, t, n, r, a, o, s) {
|
|
|
2323
2311
|
var h = (-d + Math.sqrt(m)) / (2 * u), g = (-d - Math.sqrt(m)) / (2 * u), _ = Math.min(h, g), v = Math.max(h, g), b = [];
|
|
2324
2312
|
if (_ >= 0 && _ <= 1 && b.push(_), v >= 0 && v <= 1 && b.push(v), b.length === 0) return [];
|
|
2325
2313
|
var S = b[0] * c[0] + e, C = b[0] * c[1] + t;
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
w,
|
|
2333
|
-
T
|
|
2334
|
-
];
|
|
2335
|
-
} else return [S, C];
|
|
2314
|
+
return b.length > 1 ? b[0] == b[1] ? [S, C] : [
|
|
2315
|
+
S,
|
|
2316
|
+
C,
|
|
2317
|
+
b[1] * c[0] + e,
|
|
2318
|
+
b[1] * c[1] + t
|
|
2319
|
+
] : [S, C];
|
|
2336
2320
|
}, midOfThree = function(e, t, n) {
|
|
2337
2321
|
return t <= e && e <= n || n <= e && e <= t ? e : e <= t && t <= n || n <= t && t <= e ? t : n;
|
|
2338
2322
|
}, finiteLinesIntersect = function(e, t, n, r, a, o, s, c, l) {
|
|
@@ -2359,12 +2343,9 @@ var roundRectangleIntersectLine = function(e, t, n, r, a, o, s) {
|
|
|
2359
2343
|
var m;
|
|
2360
2344
|
if (f) {
|
|
2361
2345
|
for (var h = 0; h < d.length / 2; h++) d[h * 2] = n[h * 2] * o + r, d[h * 2 + 1] = n[h * 2 + 1] * s + a;
|
|
2362
|
-
|
|
2363
|
-
var g = expandPolygon(d, -c);
|
|
2364
|
-
m = joinLines(g);
|
|
2365
|
-
} else m = d;
|
|
2346
|
+
m = c > 0 ? joinLines(expandPolygon(d, -c)) : d;
|
|
2366
2347
|
} else m = n;
|
|
2367
|
-
for (var _, v, b, S
|
|
2348
|
+
for (var g, _, v, b, S = 0; S < m.length / 2; S++) g = m[S * 2], _ = m[S * 2 + 1], S < m.length / 2 - 1 ? (v = m[(S + 1) * 2], b = m[(S + 1) * 2 + 1]) : (v = m[0], b = m[1]), u = finiteLinesIntersect(e, t, r, a, g, _, v, b), u.length !== 0 && l.push(u[0], u[1]);
|
|
2368
2349
|
return l;
|
|
2369
2350
|
}, roundPolygonIntersectLine = function(e, t, n, r, a, o, s, c, l) {
|
|
2370
2351
|
var u = [], d, f = Array(n.length * 2);
|
|
@@ -2452,16 +2433,16 @@ function satPolygonIntersection(e, t) {
|
|
|
2452
2433
|
function a(e2, t2) {
|
|
2453
2434
|
return !(e2.max < t2.min || t2.max < e2.min);
|
|
2454
2435
|
}
|
|
2455
|
-
var o = [].concat(_toConsumableArray(n(e)), _toConsumableArray(n(t))), c
|
|
2436
|
+
var o = _createForOfIteratorHelper([].concat(_toConsumableArray(n(e)), _toConsumableArray(n(t)))), c;
|
|
2456
2437
|
try {
|
|
2457
|
-
for (
|
|
2458
|
-
var
|
|
2459
|
-
if (!a(
|
|
2438
|
+
for (o.s(); !(c = o.n()).done; ) {
|
|
2439
|
+
var l = c.value;
|
|
2440
|
+
if (!a(r(e, l), r(t, l))) return false;
|
|
2460
2441
|
}
|
|
2461
2442
|
} catch (e2) {
|
|
2462
|
-
|
|
2443
|
+
o.e(e2);
|
|
2463
2444
|
} finally {
|
|
2464
|
-
|
|
2445
|
+
o.f();
|
|
2465
2446
|
}
|
|
2466
2447
|
return true;
|
|
2467
2448
|
}
|
|
@@ -2704,10 +2685,7 @@ var defaults$c = defaults$g({
|
|
|
2704
2685
|
for (var r = Array(t * t), a = 0; a < t * t; a++) r[a] = e[a] ** +n;
|
|
2705
2686
|
return normalize(r, t), r;
|
|
2706
2687
|
}, hasConverged = function(e, t, n, r) {
|
|
2707
|
-
for (var a = 0; a < n; a++)
|
|
2708
|
-
var o = Math.round(e[a] * 10 ** r) / 10 ** r, s = Math.round(t[a] * 10 ** r) / 10 ** r;
|
|
2709
|
-
if (o !== s) return false;
|
|
2710
|
-
}
|
|
2688
|
+
for (var a = 0; a < n; a++) if (Math.round(e[a] * 10 ** r) / 10 ** r != Math.round(t[a] * 10 ** r) / 10 ** r) return false;
|
|
2711
2689
|
return true;
|
|
2712
2690
|
}, assign$2 = function(e, t, n, r) {
|
|
2713
2691
|
for (var a = [], o = 0; o < t; o++) {
|
|
@@ -3108,11 +3086,11 @@ var defaults$b = defaults$g({
|
|
|
3108
3086
|
}
|
|
3109
3087
|
for (var q = findExemplars(s, d, f), J = assign(s, l, q), Y = {}, X = 0; X < q.length; X++) Y[q[X]] = [];
|
|
3110
3088
|
for (var Z = 0; Z < n.length; Z++) {
|
|
3111
|
-
var Q = a[n[Z].id()]
|
|
3112
|
-
|
|
3089
|
+
var Q = J[a[n[Z].id()]];
|
|
3090
|
+
Q != null && Y[Q].push(n[Z]);
|
|
3113
3091
|
}
|
|
3114
|
-
for (var
|
|
3115
|
-
return
|
|
3092
|
+
for (var $ = Array(q.length), Dh = 0; Dh < q.length; Dh++) $[Dh] = t.collection(Y[q[Dh]]);
|
|
3093
|
+
return $;
|
|
3116
3094
|
}, affinityPropagation$1 = {
|
|
3117
3095
|
affinityPropagation,
|
|
3118
3096
|
ap: affinityPropagation
|
|
@@ -3522,28 +3500,28 @@ var define$3 = {
|
|
|
3522
3500
|
break;
|
|
3523
3501
|
}
|
|
3524
3502
|
if (c && (e.style = l.getPropsList(e.style || e.css), e.css = void 0), c && e.renderedPosition != null) {
|
|
3525
|
-
var u = e.renderedPosition, d = o.pan()
|
|
3526
|
-
e.position = renderedToModelPosition(u,
|
|
3503
|
+
var u = e.renderedPosition, d = o.pan();
|
|
3504
|
+
e.position = renderedToModelPosition(u, o.zoom(), d);
|
|
3527
3505
|
}
|
|
3528
3506
|
if (s && e.panBy != null) {
|
|
3529
|
-
var
|
|
3507
|
+
var f = e.panBy, m = o.pan();
|
|
3530
3508
|
e.pan = {
|
|
3531
|
-
x:
|
|
3532
|
-
y:
|
|
3509
|
+
x: m.x + f.x,
|
|
3510
|
+
y: m.y + f.y
|
|
3533
3511
|
};
|
|
3534
3512
|
}
|
|
3535
|
-
var
|
|
3536
|
-
if (s &&
|
|
3537
|
-
var
|
|
3538
|
-
|
|
3513
|
+
var h = e.center || e.centre;
|
|
3514
|
+
if (s && h != null) {
|
|
3515
|
+
var g = o.getCenterPan(h.eles, e.zoom);
|
|
3516
|
+
g != null && (e.pan = g);
|
|
3539
3517
|
}
|
|
3540
3518
|
if (s && e.fit != null) {
|
|
3541
|
-
var
|
|
3542
|
-
|
|
3519
|
+
var _ = e.fit, v = o.getFitViewport(_.eles || _.boundingBox, _.padding);
|
|
3520
|
+
v != null && (e.pan = v.pan, e.zoom = v.zoom);
|
|
3543
3521
|
}
|
|
3544
3522
|
if (s && plainObject(e.zoom)) {
|
|
3545
|
-
var
|
|
3546
|
-
|
|
3523
|
+
var b = o.getZoomedViewport(e.zoom);
|
|
3524
|
+
b == null ? e.zoom = null : (b.zoomed && (e.zoom = b.zoom), b.panned && (e.pan = b.pan));
|
|
3547
3525
|
}
|
|
3548
3526
|
return new Animation(a[0], e);
|
|
3549
3527
|
};
|
|
@@ -3780,9 +3758,7 @@ function require_listCacheDelete() {
|
|
|
3780
3758
|
var e = require_assocIndexOf(), t = Array.prototype.splice;
|
|
3781
3759
|
function n(n2) {
|
|
3782
3760
|
var r = this.__data__, a = e(r, n2);
|
|
3783
|
-
|
|
3784
|
-
var o = r.length - 1;
|
|
3785
|
-
return a == o ? r.pop() : t.call(r, a, 1), --this.size, true;
|
|
3761
|
+
return a < 0 ? false : (a == r.length - 1 ? r.pop() : t.call(r, a, 1), --this.size, true);
|
|
3786
3762
|
}
|
|
3787
3763
|
return _listCacheDelete = n, _listCacheDelete;
|
|
3788
3764
|
}
|
|
@@ -3834,10 +3810,7 @@ function require_ListCache() {
|
|
|
3834
3810
|
}
|
|
3835
3811
|
var _Map, hasRequired_Map;
|
|
3836
3812
|
function require_Map() {
|
|
3837
|
-
|
|
3838
|
-
hasRequired_Map = 1;
|
|
3839
|
-
var e = require_getNative(), t = require_root();
|
|
3840
|
-
return _Map = e(t, "Map"), _Map;
|
|
3813
|
+
return hasRequired_Map ? _Map : (hasRequired_Map = 1, _Map = require_getNative()(require_root(), "Map"), _Map);
|
|
3841
3814
|
}
|
|
3842
3815
|
var _mapCacheClear, hasRequired_mapCacheClear;
|
|
3843
3816
|
function require_mapCacheClear() {
|
|
@@ -4051,7 +4024,7 @@ function requireGet() {
|
|
|
4051
4024
|
}
|
|
4052
4025
|
return get_1 = t, get_1;
|
|
4053
4026
|
}
|
|
4054
|
-
var
|
|
4027
|
+
var get = /* @__PURE__ */ getDefaultExportFromCjs(requireGet()), _defineProperty, hasRequired_defineProperty;
|
|
4055
4028
|
function require_defineProperty() {
|
|
4056
4029
|
if (hasRequired_defineProperty) return _defineProperty;
|
|
4057
4030
|
hasRequired_defineProperty = 1;
|
|
@@ -4132,7 +4105,7 @@ function requireSet() {
|
|
|
4132
4105
|
}
|
|
4133
4106
|
return set_1 = t, set_1;
|
|
4134
4107
|
}
|
|
4135
|
-
var
|
|
4108
|
+
var set = /* @__PURE__ */ getDefaultExportFromCjs(requireSet()), _copyArray, hasRequired_copyArray;
|
|
4136
4109
|
function require_copyArray() {
|
|
4137
4110
|
if (hasRequired_copyArray) return _copyArray;
|
|
4138
4111
|
hasRequired_copyArray = 1;
|
|
@@ -4153,7 +4126,7 @@ function requireToPath() {
|
|
|
4153
4126
|
}
|
|
4154
4127
|
return toPath_1 = c, toPath_1;
|
|
4155
4128
|
}
|
|
4156
|
-
var
|
|
4129
|
+
var toPath = /* @__PURE__ */ getDefaultExportFromCjs(requireToPath()), define$2 = {
|
|
4157
4130
|
data: function(e) {
|
|
4158
4131
|
return e = extend({}, {
|
|
4159
4132
|
field: "data",
|
|
@@ -5070,8 +5043,8 @@ var elesfn$g = {
|
|
|
5070
5043
|
same: function(e) {
|
|
5071
5044
|
if (this === e) return true;
|
|
5072
5045
|
e = this.cy().collection(e);
|
|
5073
|
-
var t = this.length
|
|
5074
|
-
return t ===
|
|
5046
|
+
var t = this.length;
|
|
5047
|
+
return t === e.length ? t === 1 ? this[0] === e[0] : this.every(function(t2) {
|
|
5075
5048
|
return e.hasElementWithId(t2.id());
|
|
5076
5049
|
}) : false;
|
|
5077
5050
|
},
|
|
@@ -5436,10 +5409,7 @@ fn$4 = elesfn$c = {
|
|
|
5436
5409
|
var u = this[l];
|
|
5437
5410
|
t === void 0 ? s !== void 0 && u.position(renderedToModelPosition(s, a, o)) : u.position(e, (t - o[e]) / a);
|
|
5438
5411
|
}
|
|
5439
|
-
else
|
|
5440
|
-
var d = n.position();
|
|
5441
|
-
return s = modelToRenderedPosition$1(d, a, o), e === void 0 ? s : s[e];
|
|
5442
|
-
}
|
|
5412
|
+
else return s = modelToRenderedPosition$1(n.position(), a, o), e === void 0 ? s : s[e];
|
|
5443
5413
|
else if (!c) return;
|
|
5444
5414
|
return this;
|
|
5445
5415
|
},
|
|
@@ -5646,17 +5616,13 @@ var noninf = function(e) {
|
|
|
5646
5616
|
}
|
|
5647
5617
|
}, updateBoundsFromOutline = function(e, t) {
|
|
5648
5618
|
if (!t.cy().headless()) {
|
|
5649
|
-
var n = t.pstyle("outline-opacity").value, r = t.pstyle("outline-width").value
|
|
5650
|
-
updateBoundsFromMiter(e, t, n,
|
|
5619
|
+
var n = t.pstyle("outline-opacity").value, r = t.pstyle("outline-width").value + t.pstyle("outline-offset").value;
|
|
5620
|
+
updateBoundsFromMiter(e, t, n, r, "outside", r / 2);
|
|
5651
5621
|
}
|
|
5652
5622
|
}, updateBoundsFromMiter = function(e, t, n, r, a, o) {
|
|
5653
5623
|
if (!(n === 0 || r <= 0 || a === "inside")) {
|
|
5654
5624
|
var s = t.cy(), c = t.pstyle("shape").value, l = s.renderer().nodeShapes[c], u = t.position(), d = u.x, f = u.y, m = t.width(), h = t.height();
|
|
5655
|
-
|
|
5656
|
-
a === "center" && (r /= 2);
|
|
5657
|
-
var g = l.miterBounds(d, f, m, h, r);
|
|
5658
|
-
updateBoundsFromBox(e, g);
|
|
5659
|
-
} else o != null && o > 0 && expandBoundingBoxSides(e, [
|
|
5625
|
+
l.hasMiterBounds ? (a === "center" && (r /= 2), updateBoundsFromBox(e, l.miterBounds(d, f, m, h, r))) : o != null && o > 0 && expandBoundingBoxSides(e, [
|
|
5660
5626
|
o,
|
|
5661
5627
|
o,
|
|
5662
5628
|
o,
|
|
@@ -5899,7 +5865,7 @@ var widthHeight = elesfn$a, ifEdge = function(e, t) {
|
|
|
5899
5865
|
} }
|
|
5900
5866
|
}, renderedName = function(e) {
|
|
5901
5867
|
return "rendered" + e[0].toUpperCase() + e.substr(1);
|
|
5902
|
-
},
|
|
5868
|
+
}, dimensions = extend({}, position, bounds, widthHeight, Object.keys(pts).reduce(function(e, t) {
|
|
5903
5869
|
var n = pts[t], r = renderedName(t);
|
|
5904
5870
|
return e[t] = function() {
|
|
5905
5871
|
return ifEdge(this, n.get);
|
|
@@ -5908,7 +5874,7 @@ var widthHeight = elesfn$a, ifEdge = function(e, t) {
|
|
|
5908
5874
|
} : e[r] = function() {
|
|
5909
5875
|
return ifEdgeRenderedPosition(this, n.get);
|
|
5910
5876
|
}, e;
|
|
5911
|
-
}, {})
|
|
5877
|
+
}, {})), Event = function(e, t) {
|
|
5912
5878
|
this.recycle(e, t);
|
|
5913
5879
|
};
|
|
5914
5880
|
function returnFalse() {
|
|
@@ -5986,8 +5952,8 @@ var p = Emitter.prototype, forEachEvent = function(e, t, n, r, a, o, s) {
|
|
|
5986
5952
|
if (!emptyString(u)) {
|
|
5987
5953
|
var d = u.match(eventRegex);
|
|
5988
5954
|
if (d) {
|
|
5989
|
-
var f = d[1]
|
|
5990
|
-
if (t(e, u, f,
|
|
5955
|
+
var f = d[1];
|
|
5956
|
+
if (t(e, u, f, d[2] ? d[2] : null, r, a, o) === false) break;
|
|
5991
5957
|
}
|
|
5992
5958
|
}
|
|
5993
5959
|
}
|
|
@@ -6006,12 +5972,12 @@ var p = Emitter.prototype, forEachEvent = function(e, t, n, r, a, o, s) {
|
|
|
6006
5972
|
if (!emptyString(o)) {
|
|
6007
5973
|
var s = o.match(eventRegex);
|
|
6008
5974
|
if (s) {
|
|
6009
|
-
var c = s[1]
|
|
5975
|
+
var c = s[1];
|
|
5976
|
+
t(e, makeEventObj(e, {
|
|
6010
5977
|
type: c,
|
|
6011
|
-
namespace:
|
|
5978
|
+
namespace: s[2] ? s[2] : null,
|
|
6012
5979
|
target: e.context
|
|
6013
|
-
});
|
|
6014
|
-
t(e, u);
|
|
5980
|
+
}));
|
|
6015
5981
|
}
|
|
6016
5982
|
}
|
|
6017
5983
|
}
|
|
@@ -6491,11 +6457,7 @@ var getLayoutDimensionOptions = defaults$g({ nodeDimensionsIncludeLabels: false
|
|
|
6491
6457
|
return e2;
|
|
6492
6458
|
})(), f = memoize(function(e2, n2) {
|
|
6493
6459
|
var r2 = c(e2, n2);
|
|
6494
|
-
|
|
6495
|
-
var a2 = Math.abs(t.spacingFactor);
|
|
6496
|
-
r2 = l(a2, d, r2);
|
|
6497
|
-
}
|
|
6498
|
-
return t.transform != null && (r2 = t.transform(e2, r2)), r2;
|
|
6460
|
+
return u && (r2 = l(Math.abs(t.spacingFactor), d, r2)), t.transform != null && (r2 = t.transform(e2, r2)), r2;
|
|
6499
6461
|
}, s);
|
|
6500
6462
|
if (t.animate) {
|
|
6501
6463
|
for (var m = 0; m < r.length; m++) {
|
|
@@ -6717,25 +6679,21 @@ function defineDerivedStateFunction(e) {
|
|
|
6717
6679
|
var eleTakesUpSpace = cacheStyleFunction("eleTakesUpSpace", function(e) {
|
|
6718
6680
|
return e.pstyle("display").value === "element" && e.width() !== 0 && (e.isNode() ? e.height() !== 0 : true);
|
|
6719
6681
|
});
|
|
6720
|
-
elesfn$4.takesUpSpace = cachePrototypeStyleFunction("takesUpSpace", defineDerivedStateFunction({ ok: eleTakesUpSpace }))
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
}),
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
ok: eleInteractive,
|
|
6728
|
-
parentOk: parentInteractive,
|
|
6682
|
+
elesfn$4.takesUpSpace = cachePrototypeStyleFunction("takesUpSpace", defineDerivedStateFunction({ ok: eleTakesUpSpace })), elesfn$4.interactive = cachePrototypeStyleFunction("interactive", defineDerivedStateFunction({
|
|
6683
|
+
ok: cacheStyleFunction("eleInteractive", function(e) {
|
|
6684
|
+
return e.pstyle("events").value === "yes" && e.pstyle("visibility").value === "visible" && eleTakesUpSpace(e);
|
|
6685
|
+
}),
|
|
6686
|
+
parentOk: cacheStyleFunction("parentInteractive", function(e) {
|
|
6687
|
+
return e.pstyle("visibility").value === "visible" && eleTakesUpSpace(e);
|
|
6688
|
+
}),
|
|
6729
6689
|
edgeOkViaNode: eleTakesUpSpace
|
|
6730
6690
|
})), elesfn$4.noninteractive = function() {
|
|
6731
6691
|
var e = this[0];
|
|
6732
6692
|
if (e) return !e.interactive();
|
|
6733
|
-
}
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
})
|
|
6737
|
-
elesfn$4.visible = cachePrototypeStyleFunction("visible", defineDerivedStateFunction({
|
|
6738
|
-
ok: eleVisible,
|
|
6693
|
+
}, elesfn$4.visible = cachePrototypeStyleFunction("visible", defineDerivedStateFunction({
|
|
6694
|
+
ok: cacheStyleFunction("eleVisible", function(e) {
|
|
6695
|
+
return e.pstyle("visibility").value === "visible" && e.pstyle("opacity").pfValue !== 0 && eleTakesUpSpace(e);
|
|
6696
|
+
}),
|
|
6739
6697
|
edgeOkViaNode: eleTakesUpSpace
|
|
6740
6698
|
})), elesfn$4.hidden = function() {
|
|
6741
6699
|
var e = this[0];
|
|
@@ -7135,8 +7093,8 @@ elesfn$1.instanceString = function() {
|
|
|
7135
7093
|
return e;
|
|
7136
7094
|
}, elesfn$1.clone = function() {
|
|
7137
7095
|
for (var e = this.cy(), t = [], n = 0; n < this.length; n++) {
|
|
7138
|
-
var r = this[n].json(),
|
|
7139
|
-
t.push(
|
|
7096
|
+
var r = new Element(e, this[n].json(), false);
|
|
7097
|
+
t.push(r);
|
|
7140
7098
|
}
|
|
7141
7099
|
return new Collection(e, t);
|
|
7142
7100
|
}, elesfn$1.copy = elesfn$1.clone, elesfn$1.restore = function() {
|
|
@@ -7706,10 +7664,9 @@ var corefn$6 = { layout: function(e) {
|
|
|
7706
7664
|
error("No such layout `" + n + "` found. Did you forget to import it and `cytoscape.use()` it?");
|
|
7707
7665
|
return;
|
|
7708
7666
|
}
|
|
7709
|
-
var a = string(e.eles) ? t.$(e.eles) : e.eles == null ? t.$() : e.eles;
|
|
7710
7667
|
return new r(extend({}, e, {
|
|
7711
7668
|
cy: t,
|
|
7712
|
-
eles:
|
|
7669
|
+
eles: string(e.eles) ? t.$(e.eles) : e.eles == null ? t.$() : e.eles
|
|
7713
7670
|
}));
|
|
7714
7671
|
} };
|
|
7715
7672
|
corefn$6.createLayout = corefn$6.makeLayout = corefn$6.layout;
|
|
@@ -7974,7 +7931,8 @@ styfn$8.apply = function(e) {
|
|
|
7974
7931
|
t.targetLabelKey = combineHashesArray(z), t.targetLabelStyleKey = combineHashesArray(hashArrays(I.commonLabel, z));
|
|
7975
7932
|
}
|
|
7976
7933
|
if (c) {
|
|
7977
|
-
var B = t.styleKeys, V = B.nodeBody, H = B.nodeBorder, U = B.nodeOutline, W = B.backgroundImage, G = B.compound, q = B.pie, J = B.stripe
|
|
7934
|
+
var B = t.styleKeys, V = B.nodeBody, H = B.nodeBorder, U = B.nodeOutline, W = B.backgroundImage, G = B.compound, q = B.pie, J = B.stripe;
|
|
7935
|
+
t.nodeKey = combineHashesArray([
|
|
7978
7936
|
V,
|
|
7979
7937
|
H,
|
|
7980
7938
|
U,
|
|
@@ -7984,8 +7942,7 @@ styfn$8.apply = function(e) {
|
|
|
7984
7942
|
J
|
|
7985
7943
|
].filter(function(e2) {
|
|
7986
7944
|
return e2 != null;
|
|
7987
|
-
}).reduce(hashArrays, [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT]);
|
|
7988
|
-
t.nodeKey = combineHashesArray(Y), t.hasPie = q != null && q[0] !== DEFAULT_HASH_SEED && q[1] !== DEFAULT_HASH_SEED_ALT, t.hasStripe = J != null && J[0] !== DEFAULT_HASH_SEED && J[1] !== DEFAULT_HASH_SEED_ALT;
|
|
7945
|
+
}).reduce(hashArrays, [DEFAULT_HASH_SEED, DEFAULT_HASH_SEED_ALT])), t.hasPie = q != null && q[0] !== DEFAULT_HASH_SEED && q[1] !== DEFAULT_HASH_SEED_ALT, t.hasStripe = J != null && J[0] !== DEFAULT_HASH_SEED && J[1] !== DEFAULT_HASH_SEED_ALT;
|
|
7989
7946
|
}
|
|
7990
7947
|
return s !== t.styleKey;
|
|
7991
7948
|
}, styfn$8.clearStyleHints = function(e) {
|
|
@@ -10015,8 +9972,8 @@ var styfn$1 = {};
|
|
|
10015
9972
|
styfn$1.parse = function(e, t, n, r) {
|
|
10016
9973
|
var a = this;
|
|
10017
9974
|
if (fn$6(t)) return a.parseImplWarn(e, t, n, r);
|
|
10018
|
-
var o = r === "mapping" || r === true || r === false || r == null ? "dontcare" : r, s = n ? "t" : "f", c = "" + t,
|
|
10019
|
-
return (
|
|
9975
|
+
var o = r === "mapping" || r === true || r === false || r == null ? "dontcare" : r, s = n ? "t" : "f", c = hashStrings(e, "" + t, s, o), l = a.propCache = a.propCache || [], u;
|
|
9976
|
+
return (u = l[c]) || (u = l[c] = a.parseImplWarn(e, t, n, r)), (n || r === "mapping") && (u = copy(u), u && (u.value = copy(u.value))), u;
|
|
10020
9977
|
}, styfn$1.parseImplWarn = function(e, t, n, r) {
|
|
10021
9978
|
var a = this.parseImpl(e, t, n, r);
|
|
10022
9979
|
return !a && t != null && warn(`The style property \`${e}: ${t}\` is invalid`), a && (a.name === "width" || a.name === "height") && t === "label" && warn("The style value of `label` is deprecated for `" + a.name + "`"), a;
|
|
@@ -10396,15 +10353,15 @@ var corefn$2 = {
|
|
|
10396
10353
|
var t = this._private, n = t.pan, r = t.zoom, a, o, s = false;
|
|
10397
10354
|
if (t.zoomingEnabled || (s = true), number$1(e) ? o = e : plainObject(e) && (o = e.level, e.position == null ? e.renderedPosition != null && (a = e.renderedPosition) : a = modelToRenderedPosition$1(e.position, r, n), a != null && !t.panningEnabled && (s = true)), o = o > t.maxZoom ? t.maxZoom : o, o = o < t.minZoom ? t.minZoom : o, s || !number$1(o) || o === r || a != null && (!number$1(a.x) || !number$1(a.y))) return null;
|
|
10398
10355
|
if (a != null) {
|
|
10399
|
-
var c = n, l = r, u = o
|
|
10400
|
-
x: -u / l * (a.x - c.x) + a.x,
|
|
10401
|
-
y: -u / l * (a.y - c.y) + a.y
|
|
10402
|
-
};
|
|
10356
|
+
var c = n, l = r, u = o;
|
|
10403
10357
|
return {
|
|
10404
10358
|
zoomed: true,
|
|
10405
10359
|
panned: true,
|
|
10406
10360
|
zoom: u,
|
|
10407
|
-
pan:
|
|
10361
|
+
pan: {
|
|
10362
|
+
x: -u / l * (a.x - c.x) + a.x,
|
|
10363
|
+
y: -u / l * (a.y - c.y) + a.y
|
|
10364
|
+
}
|
|
10408
10365
|
};
|
|
10409
10366
|
} else return {
|
|
10410
10367
|
zoomed: true,
|
|
@@ -10925,8 +10882,8 @@ BreadthFirstLayout.prototype.run = function() {
|
|
|
10925
10882
|
}
|
|
10926
10883
|
return o2 = Math.max(1, o2), a2 /= o2, o2 === 0 && (a2 = 0), W[e2.id()] = a2, a2;
|
|
10927
10884
|
}, q = function(e2, t2) {
|
|
10928
|
-
var n2 = G(e2)
|
|
10929
|
-
return
|
|
10885
|
+
var n2 = G(e2) - G(t2);
|
|
10886
|
+
return n2 === 0 ? ascending(e2.id(), t2.id()) : n2;
|
|
10930
10887
|
};
|
|
10931
10888
|
e.depthSort !== void 0 && (q = e.depthSort);
|
|
10932
10889
|
for (var J = b.length, Y = 0; Y < J; Y++) b[Y].sort(q), O(Y);
|
|
@@ -10935,10 +10892,10 @@ BreadthFirstLayout.prototype.run = function() {
|
|
|
10935
10892
|
for (var e2 = 0; e2 < J; e2++) O(e2);
|
|
10936
10893
|
})());
|
|
10937
10894
|
for (var Q = 0, $ = 0; $ < J; $++) Q = Math.max(b[$].length, Q);
|
|
10938
|
-
var
|
|
10895
|
+
var Dh = {
|
|
10939
10896
|
x: l.x1 + l.w / 2,
|
|
10940
10897
|
y: l.y1 + l.h / 2
|
|
10941
|
-
},
|
|
10898
|
+
}, Oh = r.reduce(function(t2, n2) {
|
|
10942
10899
|
return (function(e2) {
|
|
10943
10900
|
return {
|
|
10944
10901
|
w: t2.w === -1 ? e2.w : (t2.w + e2.w) / 2,
|
|
@@ -10948,33 +10905,33 @@ BreadthFirstLayout.prototype.run = function() {
|
|
|
10948
10905
|
}, {
|
|
10949
10906
|
w: -1,
|
|
10950
10907
|
h: -1
|
|
10951
|
-
}),
|
|
10908
|
+
}), kh = Math.max(J === 1 ? 0 : c ? (l.h - e.padding * 2 - Oh.h) / (J - 1) : (l.h - e.padding * 2 - Oh.h) / (J + 1), z), Ah = b.reduce(function(e2, t2) {
|
|
10952
10909
|
return Math.max(e2, t2.length);
|
|
10953
|
-
}, 0),
|
|
10910
|
+
}, 0), jh = function(t2) {
|
|
10954
10911
|
var n2 = getInfo(t2), r2 = n2.depth, a2 = n2.index;
|
|
10955
10912
|
if (e.circle) {
|
|
10956
10913
|
var o2 = Math.min(l.w / 2 / J, l.h / 2 / J);
|
|
10957
10914
|
o2 = Math.max(o2, z);
|
|
10958
10915
|
var s2 = o2 * r2 + o2 - (J > 0 && b[0].length <= 3 ? o2 / 2 : 0), u2 = 2 * Math.PI / b[r2].length * a2;
|
|
10959
10916
|
return r2 === 0 && b[0].length === 1 && (s2 = 1), {
|
|
10960
|
-
x:
|
|
10961
|
-
y:
|
|
10917
|
+
x: Dh.x + s2 * Math.cos(u2),
|
|
10918
|
+
y: Dh.y + s2 * Math.sin(u2)
|
|
10962
10919
|
};
|
|
10963
10920
|
} else {
|
|
10964
|
-
var d2 = b[r2].length, f2 = Math.max(d2 === 1 ? 0 : c ? (l.w - e.padding * 2 -
|
|
10921
|
+
var d2 = b[r2].length, f2 = Math.max(d2 === 1 ? 0 : c ? (l.w - e.padding * 2 - Oh.w) / ((e.grid ? Ah : d2) - 1) : (l.w - e.padding * 2 - Oh.w) / ((e.grid ? Ah : d2) + 1), z);
|
|
10965
10922
|
return {
|
|
10966
|
-
x:
|
|
10967
|
-
y:
|
|
10923
|
+
x: Dh.x + (a2 + 1 - (d2 + 1) / 2) * f2,
|
|
10924
|
+
y: Dh.y + (r2 + 1 - (J + 1) / 2) * kh
|
|
10968
10925
|
};
|
|
10969
10926
|
}
|
|
10970
|
-
},
|
|
10927
|
+
}, Mh = {
|
|
10971
10928
|
downward: 0,
|
|
10972
10929
|
leftward: 90,
|
|
10973
10930
|
upward: 180,
|
|
10974
10931
|
rightward: -90
|
|
10975
10932
|
};
|
|
10976
|
-
return Object.keys(
|
|
10977
|
-
return rotatePosAndSkewByBox(
|
|
10933
|
+
return Object.keys(Mh).indexOf(e.direction) === -1 && error(`Invalid direction '${e.direction}' specified for breadthfirst layout. Valid values are: ${Object.keys(Mh).join(", ")}`), n.nodes().layoutPositions(this, e, function(t2) {
|
|
10934
|
+
return rotatePosAndSkewByBox(jh(t2), l, Mh[e.direction]);
|
|
10978
10935
|
}), this;
|
|
10979
10936
|
};
|
|
10980
10937
|
var defaults$6 = {
|
|
@@ -11127,8 +11084,7 @@ ConcentricLayout.prototype.run = function() {
|
|
|
11127
11084
|
B[q.node.id()] = Y;
|
|
11128
11085
|
}
|
|
11129
11086
|
return a.nodes().layoutPositions(this, t, function(e2) {
|
|
11130
|
-
|
|
11131
|
-
return B[t2];
|
|
11087
|
+
return B[e2.id()];
|
|
11132
11088
|
}), this;
|
|
11133
11089
|
};
|
|
11134
11090
|
var DEBUG, defaults$4 = {
|
|
@@ -11262,11 +11218,11 @@ var createLayoutInfo = function(e, t, n) {
|
|
|
11262
11218
|
for (var u = 0; u < s.edgeSize; u++) {
|
|
11263
11219
|
var j = r[u], M = {};
|
|
11264
11220
|
M.id = j.data("id"), M.sourceId = j.data("source"), M.targetId = j.data("target");
|
|
11265
|
-
var N = fn$6(n.idealEdgeLength) ? n.idealEdgeLength(j) : n.idealEdgeLength, P = fn$6(n.edgeElasticity) ? n.edgeElasticity(j) : n.edgeElasticity, F = s.idToIndex[M.sourceId], I = s.idToIndex[M.targetId]
|
|
11266
|
-
if (
|
|
11267
|
-
for (var
|
|
11268
|
-
for (_ = s.layoutNodes[I];
|
|
11269
|
-
N *=
|
|
11221
|
+
var N = fn$6(n.idealEdgeLength) ? n.idealEdgeLength(j) : n.idealEdgeLength, P = fn$6(n.edgeElasticity) ? n.edgeElasticity(j) : n.edgeElasticity, F = s.idToIndex[M.sourceId], I = s.idToIndex[M.targetId];
|
|
11222
|
+
if (s.indexToGraph[F] != s.indexToGraph[I]) {
|
|
11223
|
+
for (var L = findLCA(M.sourceId, M.targetId, s), R = s.graphSet[L], z = 0, _ = s.layoutNodes[F]; R.indexOf(_.id) === -1; ) _ = s.layoutNodes[s.idToIndex[_.parentId]], z++;
|
|
11224
|
+
for (_ = s.layoutNodes[I]; R.indexOf(_.id) === -1; ) _ = s.layoutNodes[s.idToIndex[_.parentId]], z++;
|
|
11225
|
+
N *= z * n.nestingFactor;
|
|
11270
11226
|
}
|
|
11271
11227
|
M.idealLength = N, M.elasticity = P, s.layoutEdges.push(M);
|
|
11272
11228
|
}
|
|
@@ -11337,14 +11293,13 @@ var createLayoutInfo = function(e, t, n) {
|
|
|
11337
11293
|
}, randomDistance = function(e) {
|
|
11338
11294
|
return -1 + 2 * e * Math.random();
|
|
11339
11295
|
}, nodeRepulsion = function(e, t, n, r) {
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
var u =
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
e.isLocked || (e.offsetX -= m, e.offsetY -= h), t.isLocked || (t.offsetX += m, t.offsetY += h);
|
|
11296
|
+
if (!(e.cmptId !== t.cmptId && !n.isCompound)) {
|
|
11297
|
+
var a = t.positionX - e.positionX, o = t.positionY - e.positionY, s = 1;
|
|
11298
|
+
a === 0 && o === 0 && (a = randomDistance(s), o = randomDistance(s));
|
|
11299
|
+
var c = nodesOverlap(e, t, a, o);
|
|
11300
|
+
if (c > 0) var l = r.nodeOverlap * c, u = Math.sqrt(a * a + o * o), d = l * a / u, f = l * o / u;
|
|
11301
|
+
else var m = findClippingPoint(e, a, o), h = findClippingPoint(t, -1 * a, -1 * o), g = h.x - m.x, _ = h.y - m.y, v = g * g + _ * _, u = Math.sqrt(v), l = (e.nodeRepulsion + t.nodeRepulsion) / v, d = l * g / u, f = l * _ / u;
|
|
11302
|
+
e.isLocked || (e.offsetX -= d, e.offsetY -= f), t.isLocked || (t.offsetX += d, t.offsetY += f);
|
|
11348
11303
|
}
|
|
11349
11304
|
}, nodesOverlap = function(e, t, n, r) {
|
|
11350
11305
|
if (n > 0) var a = e.maxX - t.minX;
|
|
@@ -11703,10 +11658,10 @@ BRp$f.arrowShapeWidth = 0.3, BRp$f.registerArrowShapes = function() {
|
|
|
11703
11658
|
var c2 = a2.x - n2 / 2 - s2, l = a2.x + n2 / 2 + s2, u = a2.y - n2 / 2 - s2, d = a2.y + n2 / 2 + s2;
|
|
11704
11659
|
return c2 <= e2 && e2 <= l && u <= t2 && t2 <= d;
|
|
11705
11660
|
}, r = function(e2, t2, n2, r2, a2) {
|
|
11706
|
-
var o2 = e2 * Math.cos(r2) - t2 * Math.sin(r2), s2 = e2 * Math.sin(r2) + t2 * Math.cos(r2), c2 = o2 * n2, l = s2 * n2
|
|
11661
|
+
var o2 = e2 * Math.cos(r2) - t2 * Math.sin(r2), s2 = e2 * Math.sin(r2) + t2 * Math.cos(r2), c2 = o2 * n2, l = s2 * n2;
|
|
11707
11662
|
return {
|
|
11708
|
-
x:
|
|
11709
|
-
y:
|
|
11663
|
+
x: c2 + a2.x,
|
|
11664
|
+
y: l + a2.y
|
|
11710
11665
|
};
|
|
11711
11666
|
}, a = function(e2, t2, n2, a2) {
|
|
11712
11667
|
for (var o2 = [], s2 = 0; s2 < e2.length; s2 += 2) {
|
|
@@ -11736,8 +11691,7 @@ BRp$f.arrowShapeWidth = 0.3, BRp$f.registerArrowShapes = function() {
|
|
|
11736
11691
|
0.3
|
|
11737
11692
|
],
|
|
11738
11693
|
collide: function(e2, t2, n2, r3, s2, c3) {
|
|
11739
|
-
|
|
11740
|
-
return pointInsidePolygonPoints(e2, t2, l);
|
|
11694
|
+
return pointInsidePolygonPoints(e2, t2, o(a(this.points, n2 + 2 * c3, r3, s2)));
|
|
11741
11695
|
},
|
|
11742
11696
|
roughCollide: n,
|
|
11743
11697
|
draw: function(e2, n2, r3, o2) {
|
|
@@ -11816,8 +11770,8 @@ BRp$f.arrowShapeWidth = 0.3, BRp$f.registerArrowShapes = function() {
|
|
|
11816
11770
|
-0.15
|
|
11817
11771
|
],
|
|
11818
11772
|
collide: function(e2, t2, n2, r2, s2, c2, l) {
|
|
11819
|
-
var u = s2, d = (u.x - e2) ** 2 + (u.y - t2) ** 2 <= ((n2 + 2 * l) * this.radius) ** 2
|
|
11820
|
-
return pointInsidePolygonPoints(e2, t2,
|
|
11773
|
+
var u = s2, d = (u.x - e2) ** 2 + (u.y - t2) ** 2 <= ((n2 + 2 * l) * this.radius) ** 2;
|
|
11774
|
+
return pointInsidePolygonPoints(e2, t2, o(a(this.points, n2 + 2 * l, r2, s2))) || d;
|
|
11821
11775
|
},
|
|
11822
11776
|
draw: function(e2, n2, r2, o2, s2) {
|
|
11823
11777
|
var c2 = a(this.pointsTr, n2, r2, o2);
|
|
@@ -11947,8 +11901,8 @@ BRp$f.arrowShapeWidth = 0.3, BRp$f.registerArrowShapes = function() {
|
|
|
11947
11901
|
};
|
|
11948
11902
|
var BRp$e = {};
|
|
11949
11903
|
BRp$e.projectIntoViewport = function(e, t) {
|
|
11950
|
-
var n = this.cy, r = this.findContainerClientCoords(), a = r[0], o = r[1], s = r[4], c = n.pan(), l = n.zoom()
|
|
11951
|
-
return [
|
|
11904
|
+
var n = this.cy, r = this.findContainerClientCoords(), a = r[0], o = r[1], s = r[4], c = n.pan(), l = n.zoom();
|
|
11905
|
+
return [((e - a) / s - c.x) / l, ((t - o) / s - c.y) / l];
|
|
11952
11906
|
}, BRp$e.findContainerClientCoords = function() {
|
|
11953
11907
|
if (this.containerBB) return this.containerBB;
|
|
11954
11908
|
var e = this.container, t = e.getBoundingClientRect(), n = this.cy.window().getComputedStyle(e), r = function(e2) {
|
|
@@ -11963,10 +11917,10 @@ BRp$e.projectIntoViewport = function(e, t) {
|
|
|
11963
11917
|
right: r("border-right-width"),
|
|
11964
11918
|
top: r("border-top-width"),
|
|
11965
11919
|
bottom: r("border-bottom-width")
|
|
11966
|
-
}, s = e.clientWidth, c = e.clientHeight, l = a.left + a.right, u = a.top + a.bottom, d = o.left + o.right, f = t.width / (s + d), m = s - l, h = c - u
|
|
11920
|
+
}, s = e.clientWidth, c = e.clientHeight, l = a.left + a.right, u = a.top + a.bottom, d = o.left + o.right, f = t.width / (s + d), m = s - l, h = c - u;
|
|
11967
11921
|
return this.containerBB = [
|
|
11968
|
-
|
|
11969
|
-
|
|
11922
|
+
t.left + a.left + o.left,
|
|
11923
|
+
t.top + a.top + o.top,
|
|
11970
11924
|
m,
|
|
11971
11925
|
h,
|
|
11972
11926
|
f
|
|
@@ -12055,7 +12009,8 @@ BRp$e.projectIntoViewport = function(e, t) {
|
|
|
12055
12009
|
x: e2 * T2 - t2 * E2 + u2,
|
|
12056
12010
|
y: e2 * E2 + t2 * T2 + d2
|
|
12057
12011
|
};
|
|
12058
|
-
}, O = D(_2, S2), k = D(_2, w2), A = D(b2, S2), j = D(b2, w2)
|
|
12012
|
+
}, O = D(_2, S2), k = D(_2, w2), A = D(b2, S2), j = D(b2, w2);
|
|
12013
|
+
if (pointInsidePolygonPoints(e, t, [
|
|
12059
12014
|
O.x + h2,
|
|
12060
12015
|
O.y + g2,
|
|
12061
12016
|
A.x + h2,
|
|
@@ -12064,8 +12019,7 @@ BRp$e.projectIntoViewport = function(e, t) {
|
|
|
12064
12019
|
j.y + g2,
|
|
12065
12020
|
k.x + h2,
|
|
12066
12021
|
k.y + g2
|
|
12067
|
-
];
|
|
12068
|
-
if (pointInsidePolygonPoints(e, t, M)) return v(n2), true;
|
|
12022
|
+
])) return v(n2), true;
|
|
12069
12023
|
} else if (inBoundingBox(c2, e, t)) return v(n2), true;
|
|
12070
12024
|
}
|
|
12071
12025
|
}
|
|
@@ -12177,7 +12131,8 @@ BRp$e.projectIntoViewport = function(e, t) {
|
|
|
12177
12131
|
includeMainLabels: false,
|
|
12178
12132
|
includeSourceLabels: false,
|
|
12179
12133
|
includeTargetLabels: false
|
|
12180
|
-
})
|
|
12134
|
+
});
|
|
12135
|
+
if (satPolygonIntersection([
|
|
12181
12136
|
{
|
|
12182
12137
|
x: M.x1,
|
|
12183
12138
|
y: M.y1
|
|
@@ -12194,52 +12149,51 @@ BRp$e.projectIntoViewport = function(e, t) {
|
|
|
12194
12149
|
x: M.x1,
|
|
12195
12150
|
y: M.y2
|
|
12196
12151
|
}
|
|
12197
|
-
];
|
|
12198
|
-
if (satPolygonIntersection(N, h)) s.push(w);
|
|
12152
|
+
], h)) s.push(w);
|
|
12199
12153
|
else {
|
|
12200
|
-
var
|
|
12201
|
-
|
|
12154
|
+
var N = v(w);
|
|
12155
|
+
N && satPolygonIntersection(N, h) && s.push(w);
|
|
12202
12156
|
}
|
|
12203
12157
|
}
|
|
12204
12158
|
} else {
|
|
12205
|
-
var
|
|
12206
|
-
if (
|
|
12207
|
-
if (
|
|
12208
|
-
if (
|
|
12209
|
-
if (
|
|
12210
|
-
for (var
|
|
12211
|
-
|
|
12159
|
+
var P = C, F = P._private, I = F.rscratch, L = P.pstyle("box-selection").strValue;
|
|
12160
|
+
if (L === "none") continue;
|
|
12161
|
+
if (L === "contain") {
|
|
12162
|
+
if (I.startX != null && I.startY != null && !inBoundingBox(f, I.startX, I.startY) || I.endX != null && I.endY != null && !inBoundingBox(f, I.endX, I.endY)) continue;
|
|
12163
|
+
if (I.edgeType === "bezier" || I.edgeType === "multibezier" || I.edgeType === "self" || I.edgeType === "compound" || I.edgeType === "segments" || I.edgeType === "haystack") {
|
|
12164
|
+
for (var R = F.rstyle.bezierPts || F.rstyle.linePts || F.rstyle.haystackPts, z = true, B = 0; B < R.length; B++) if (!pointInBoundingBox(f, R[B])) {
|
|
12165
|
+
z = false;
|
|
12212
12166
|
break;
|
|
12213
12167
|
}
|
|
12214
|
-
|
|
12215
|
-
} else
|
|
12216
|
-
} else if (
|
|
12217
|
-
var
|
|
12218
|
-
if (
|
|
12219
|
-
else if (!
|
|
12220
|
-
for (var
|
|
12221
|
-
s.push(
|
|
12168
|
+
z && s.push(P);
|
|
12169
|
+
} else I.edgeType === "straight" && s.push(P);
|
|
12170
|
+
} else if (L === "overlap") {
|
|
12171
|
+
var V = false;
|
|
12172
|
+
if (I.startX != null && I.startY != null && I.endX != null && I.endY != null && (inBoundingBox(f, I.startX, I.startY) || inBoundingBox(f, I.endX, I.endY))) s.push(P), V = true;
|
|
12173
|
+
else if (!V && I.edgeType === "haystack") {
|
|
12174
|
+
for (var H = F.rstyle.haystackPts, U = 0; U < H.length; U++) if (pointInBoundingBox(f, H[U])) {
|
|
12175
|
+
s.push(P), V = true;
|
|
12222
12176
|
break;
|
|
12223
12177
|
}
|
|
12224
12178
|
}
|
|
12225
|
-
if (!
|
|
12226
|
-
var
|
|
12227
|
-
if ((!
|
|
12228
|
-
x:
|
|
12229
|
-
y:
|
|
12179
|
+
if (!V) {
|
|
12180
|
+
var W = F.rstyle.bezierPts || F.rstyle.linePts || F.rstyle.haystackPts;
|
|
12181
|
+
if ((!W || W.length < 2) && I.edgeType === "straight" && I.startX != null && I.startY != null && I.endX != null && I.endY != null && (W = [{
|
|
12182
|
+
x: I.startX,
|
|
12183
|
+
y: I.startY
|
|
12230
12184
|
}, {
|
|
12231
|
-
x:
|
|
12232
|
-
y:
|
|
12233
|
-
}]), !
|
|
12234
|
-
for (var
|
|
12235
|
-
for (var
|
|
12236
|
-
var
|
|
12237
|
-
if (b(J,
|
|
12238
|
-
s.push(
|
|
12185
|
+
x: I.endX,
|
|
12186
|
+
y: I.endY
|
|
12187
|
+
}]), !W || W.length < 2) continue;
|
|
12188
|
+
for (var G = 0; G < W.length - 1; G++) {
|
|
12189
|
+
for (var q = W[G], J = W[G + 1], Y = 0; Y < g.length; Y++) {
|
|
12190
|
+
var X = _slicedToArray(g[Y], 2), Z = X[0], Q = X[1];
|
|
12191
|
+
if (b(q, J, Z, Q)) {
|
|
12192
|
+
s.push(P), V = true;
|
|
12239
12193
|
break;
|
|
12240
12194
|
}
|
|
12241
12195
|
}
|
|
12242
|
-
if (
|
|
12196
|
+
if (V) break;
|
|
12243
12197
|
}
|
|
12244
12198
|
}
|
|
12245
12199
|
}
|
|
@@ -12353,13 +12307,13 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12353
12307
|
break;
|
|
12354
12308
|
case "endpoints":
|
|
12355
12309
|
if (l) {
|
|
12356
|
-
var d = this.manualEndptToPx(e.source()[0], s),
|
|
12357
|
-
x1:
|
|
12358
|
-
y1:
|
|
12359
|
-
x2:
|
|
12360
|
-
y2:
|
|
12310
|
+
var d = _slicedToArray(this.manualEndptToPx(e.source()[0], s), 2), f = d[0], h = d[1], g = _slicedToArray(this.manualEndptToPx(e.target()[0], c), 2), _ = g[0], v = g[1], b = {
|
|
12311
|
+
x1: f,
|
|
12312
|
+
y1: h,
|
|
12313
|
+
x2: _,
|
|
12314
|
+
y2: v
|
|
12361
12315
|
};
|
|
12362
|
-
a = u(
|
|
12316
|
+
a = u(f, h, _, v), o = b;
|
|
12363
12317
|
} else warn(`Edge ${e.id()} has edge-distances:endpoints specified without manual endpoints specified via source-endpoint and target-endpoint. Falling back on edge-distances:intersection (default).`), o = r;
|
|
12364
12318
|
break;
|
|
12365
12319
|
}
|
|
@@ -12460,108 +12414,108 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12460
12414
|
if ((H || U) && !z) if (F) {
|
|
12461
12415
|
var W = Math.abs(L) <= m / 2, G = Math.abs(k) <= h / 2;
|
|
12462
12416
|
if (W) {
|
|
12463
|
-
var q = (d.x1 + d.x2) / 2
|
|
12417
|
+
var q = (d.x1 + d.x2) / 2;
|
|
12464
12418
|
n.segpts = [
|
|
12465
12419
|
q,
|
|
12466
|
-
|
|
12420
|
+
d.y1,
|
|
12467
12421
|
q,
|
|
12468
|
-
|
|
12422
|
+
d.y2
|
|
12469
12423
|
];
|
|
12470
12424
|
} else if (G) {
|
|
12471
|
-
var
|
|
12425
|
+
var J = (d.y1 + d.y2) / 2;
|
|
12472
12426
|
n.segpts = [
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12427
|
+
d.x1,
|
|
12428
|
+
J,
|
|
12429
|
+
d.x2,
|
|
12430
|
+
J
|
|
12477
12431
|
];
|
|
12478
12432
|
} else n.segpts = [d.x1, d.y2];
|
|
12479
12433
|
} else {
|
|
12480
|
-
var
|
|
12481
|
-
if (
|
|
12482
|
-
var
|
|
12434
|
+
var Y = Math.abs(L) <= f / 2, X = Math.abs(A) <= g / 2;
|
|
12435
|
+
if (Y) {
|
|
12436
|
+
var Z = (d.y1 + d.y2) / 2;
|
|
12483
12437
|
n.segpts = [
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12438
|
+
d.x1,
|
|
12439
|
+
Z,
|
|
12440
|
+
d.x2,
|
|
12441
|
+
Z
|
|
12488
12442
|
];
|
|
12489
|
-
} else if (
|
|
12490
|
-
var
|
|
12443
|
+
} else if (X) {
|
|
12444
|
+
var Q = (d.x1 + d.x2) / 2;
|
|
12491
12445
|
n.segpts = [
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12446
|
+
Q,
|
|
12447
|
+
d.y1,
|
|
12448
|
+
Q,
|
|
12449
|
+
d.y2
|
|
12496
12450
|
];
|
|
12497
12451
|
} else n.segpts = [d.x2, d.y1];
|
|
12498
12452
|
}
|
|
12499
12453
|
else if (F) {
|
|
12500
|
-
var
|
|
12454
|
+
var $ = d.y1 + B + (_ ? m / 2 * R : 0);
|
|
12501
12455
|
n.segpts = [
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12456
|
+
d.x1,
|
|
12457
|
+
$,
|
|
12458
|
+
d.x2,
|
|
12459
|
+
$
|
|
12506
12460
|
];
|
|
12507
12461
|
} else {
|
|
12508
|
-
var
|
|
12462
|
+
var Dh = d.x1 + B + (_ ? f / 2 * R : 0);
|
|
12509
12463
|
n.segpts = [
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12464
|
+
Dh,
|
|
12465
|
+
d.y1,
|
|
12466
|
+
Dh,
|
|
12467
|
+
d.y2
|
|
12514
12468
|
];
|
|
12515
12469
|
}
|
|
12516
12470
|
if (n.isRound) {
|
|
12517
|
-
var
|
|
12518
|
-
n.radii = Array(n.segpts.length / 2).fill(
|
|
12471
|
+
var Oh = e.pstyle("taxi-radius").value, kh = e.pstyle("radius-type").value[0] === "arc-radius";
|
|
12472
|
+
n.radii = Array(n.segpts.length / 2).fill(Oh), n.isArcRadius = Array(n.segpts.length / 2).fill(kh);
|
|
12519
12473
|
}
|
|
12520
12474
|
}, BRp$c.tryToCorrectInvalidPoints = function(e, t) {
|
|
12521
12475
|
var n = e._private.rscratch;
|
|
12522
12476
|
if (n.edgeType === "bezier") {
|
|
12523
|
-
var r = t.srcPos, a = t.tgtPos, o = t.srcW, s = t.srcH, c = t.tgtW, l = t.tgtH, u = t.srcShape, d = t.tgtShape, f = t.srcCornerRadius, m = t.tgtCornerRadius, h = t.srcRs, g = t.tgtRs, _ = !number$1(n.startX) || !number$1(n.startY), v = !number$1(n.arrowStartX) || !number$1(n.arrowStartY), b = !number$1(n.endX) || !number$1(n.endY), S = !number$1(n.arrowEndX) || !number$1(n.arrowEndY), C = 3
|
|
12477
|
+
var r = t.srcPos, a = t.tgtPos, o = t.srcW, s = t.srcH, c = t.tgtW, l = t.tgtH, u = t.srcShape, d = t.tgtShape, f = t.srcCornerRadius, m = t.tgtCornerRadius, h = t.srcRs, g = t.tgtRs, _ = !number$1(n.startX) || !number$1(n.startY), v = !number$1(n.arrowStartX) || !number$1(n.arrowStartY), b = !number$1(n.endX) || !number$1(n.endY), S = !number$1(n.arrowEndX) || !number$1(n.arrowEndY), C = 3 * (this.getArrowWidth(e.pstyle("width").pfValue, e.pstyle("arrow-scale").value) * this.arrowShapeWidth), w = dist({
|
|
12524
12478
|
x: n.ctrlpts[0],
|
|
12525
12479
|
y: n.ctrlpts[1]
|
|
12526
12480
|
}, {
|
|
12527
12481
|
x: n.startX,
|
|
12528
12482
|
y: n.startY
|
|
12529
|
-
}),
|
|
12483
|
+
}), T = w < C, E = dist({
|
|
12530
12484
|
x: n.ctrlpts[0],
|
|
12531
12485
|
y: n.ctrlpts[1]
|
|
12532
12486
|
}, {
|
|
12533
12487
|
x: n.endX,
|
|
12534
12488
|
y: n.endY
|
|
12535
|
-
}),
|
|
12536
|
-
if (_ || v ||
|
|
12537
|
-
|
|
12538
|
-
var
|
|
12489
|
+
}), D = E < C, O = false;
|
|
12490
|
+
if (_ || v || T) {
|
|
12491
|
+
O = true;
|
|
12492
|
+
var k = {
|
|
12539
12493
|
x: n.ctrlpts[0] - r.x,
|
|
12540
12494
|
y: n.ctrlpts[1] - r.y
|
|
12541
|
-
},
|
|
12542
|
-
x:
|
|
12543
|
-
y:
|
|
12544
|
-
},
|
|
12545
|
-
x: n.ctrlpts[0] +
|
|
12546
|
-
y: n.ctrlpts[1] +
|
|
12547
|
-
},
|
|
12548
|
-
|
|
12549
|
-
}
|
|
12550
|
-
if (b || S ||
|
|
12551
|
-
|
|
12552
|
-
var
|
|
12495
|
+
}, A = Math.sqrt(k.x * k.x + k.y * k.y), j = {
|
|
12496
|
+
x: k.x / A,
|
|
12497
|
+
y: k.y / A
|
|
12498
|
+
}, M = Math.max(o, s), N = {
|
|
12499
|
+
x: n.ctrlpts[0] + j.x * 2 * M,
|
|
12500
|
+
y: n.ctrlpts[1] + j.y * 2 * M
|
|
12501
|
+
}, F = u.intersectLine(r.x, r.y, o, s, N.x, N.y, 0, f, h);
|
|
12502
|
+
T ? (n.ctrlpts[0] = n.ctrlpts[0] + j.x * (C - w), n.ctrlpts[1] = n.ctrlpts[1] + j.y * (C - w)) : (n.ctrlpts[0] = F[0] + j.x * C, n.ctrlpts[1] = F[1] + j.y * C);
|
|
12503
|
+
}
|
|
12504
|
+
if (b || S || D) {
|
|
12505
|
+
O = true;
|
|
12506
|
+
var I = {
|
|
12553
12507
|
x: n.ctrlpts[0] - a.x,
|
|
12554
12508
|
y: n.ctrlpts[1] - a.y
|
|
12555
|
-
},
|
|
12556
|
-
x:
|
|
12557
|
-
y:
|
|
12558
|
-
},
|
|
12559
|
-
x: n.ctrlpts[0] +
|
|
12560
|
-
y: n.ctrlpts[1] +
|
|
12561
|
-
},
|
|
12562
|
-
|
|
12509
|
+
}, L = Math.sqrt(I.x * I.x + I.y * I.y), R = {
|
|
12510
|
+
x: I.x / L,
|
|
12511
|
+
y: I.y / L
|
|
12512
|
+
}, z = Math.max(o, s), B = {
|
|
12513
|
+
x: n.ctrlpts[0] + R.x * 2 * z,
|
|
12514
|
+
y: n.ctrlpts[1] + R.y * 2 * z
|
|
12515
|
+
}, V = d.intersectLine(a.x, a.y, c, l, B.x, B.y, 0, m, g);
|
|
12516
|
+
D ? (n.ctrlpts[0] = n.ctrlpts[0] + R.x * (C - E), n.ctrlpts[1] = n.ctrlpts[1] + R.y * (C - E)) : (n.ctrlpts[0] = V[0] + R.x * C, n.ctrlpts[1] = V[1] + R.y * C);
|
|
12563
12517
|
}
|
|
12564
|
-
|
|
12518
|
+
O && this.findEndpoints(e);
|
|
12565
12519
|
}
|
|
12566
12520
|
}, BRp$c.storeAllpts = function(e) {
|
|
12567
12521
|
var t = e._private.rscratch;
|
|
@@ -12636,15 +12590,15 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12636
12590
|
c.push(u);
|
|
12637
12591
|
continue;
|
|
12638
12592
|
}
|
|
12639
|
-
var m = f === "unbundled-bezier" || endsWith(f, "segments") || f === "straight" || f === "straight-triangle" || endsWith(f, "taxi"), g = f === "unbundled-bezier" || f === "bezier", _ = d.source, v = d.target, b = _.poolIndex(),
|
|
12640
|
-
|
|
12641
|
-
pairId:
|
|
12593
|
+
var m = f === "unbundled-bezier" || endsWith(f, "segments") || f === "straight" || f === "straight-triangle" || endsWith(f, "taxi"), g = f === "unbundled-bezier" || f === "bezier", _ = d.source, v = d.target, b = [_.poolIndex(), v.poolIndex()].sort(), S = o(b, m), C = a.get(S);
|
|
12594
|
+
C ?? (C = { eles: [] }, s.push({
|
|
12595
|
+
pairId: b,
|
|
12642
12596
|
edgeIsUnbundled: m
|
|
12643
|
-
}), a.set(
|
|
12597
|
+
}), a.set(S, C)), C.eles.push(u), m && (C.hasUnbundled = true), g && (C.hasBezier = true);
|
|
12644
12598
|
}
|
|
12645
12599
|
}
|
|
12646
|
-
for (var
|
|
12647
|
-
var e2 = s[
|
|
12600
|
+
for (var w = function() {
|
|
12601
|
+
var e2 = s[T], c2 = e2.pairId, l2 = e2.edgeIsUnbundled, u2 = o(c2, l2), d2 = a.get(u2), f2;
|
|
12648
12602
|
if (!d2.hasUnbundled) {
|
|
12649
12603
|
var m2 = d2.eles[0].parallelEdges().filter(function(e3) {
|
|
12650
12604
|
return e3.isBundledBezier();
|
|
@@ -12660,7 +12614,7 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12660
12614
|
var v3 = g2;
|
|
12661
12615
|
g2 = _2, _2 = v3;
|
|
12662
12616
|
}
|
|
12663
|
-
var b2 = d2.srcPos = g2.position(), S2 = d2.tgtPos = _2.position(), C2 = d2.srcW = g2.outerWidth(), w2 = d2.srcH = g2.outerHeight(),
|
|
12617
|
+
var b2 = d2.srcPos = g2.position(), S2 = d2.tgtPos = _2.position(), C2 = d2.srcW = g2.outerWidth(), w2 = d2.srcH = g2.outerHeight(), E = d2.tgtW = _2.outerWidth(), D = d2.tgtH = _2.outerHeight(), O = d2.srcShape = n.nodeShapes[t.getNodeShape(g2)], k = d2.tgtShape = n.nodeShapes[t.getNodeShape(_2)], A = d2.srcCornerRadius = g2.pstyle("corner-radius").value === "auto" ? "auto" : g2.pstyle("corner-radius").pfValue, j = d2.tgtCornerRadius = _2.pstyle("corner-radius").value === "auto" ? "auto" : _2.pstyle("corner-radius").pfValue, M = d2.tgtRs = _2._private.rscratch, N = d2.srcRs = g2._private.rscratch;
|
|
12664
12618
|
d2.dirCounts = {
|
|
12665
12619
|
north: 0,
|
|
12666
12620
|
west: 0,
|
|
@@ -12675,7 +12629,7 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12675
12629
|
var I = d2.eles[F], L = I[0]._private.rscratch, R = I.pstyle("curve-style").value, z = R === "unbundled-bezier" || endsWith(R, "segments") || endsWith(R, "taxi"), B = !g2.same(I.source());
|
|
12676
12630
|
if (!d2.calculatedIntersection && g2 !== _2 && (d2.hasBezier || d2.hasUnbundled)) {
|
|
12677
12631
|
d2.calculatedIntersection = true;
|
|
12678
|
-
var V = O.intersectLine(b2.x, b2.y, C2, w2, S2.x, S2.y, 0, A, N), H = d2.srcIntn = V, U = k.intersectLine(S2.x, S2.y,
|
|
12632
|
+
var V = O.intersectLine(b2.x, b2.y, C2, w2, S2.x, S2.y, 0, A, N), H = d2.srcIntn = V, U = k.intersectLine(S2.x, S2.y, E, D, b2.x, b2.y, 0, j, M), W = d2.tgtIntn = U, G = d2.intersectionPts = {
|
|
12679
12633
|
x1: V[0],
|
|
12680
12634
|
x2: U[0],
|
|
12681
12635
|
y1: V[1],
|
|
@@ -12697,7 +12651,7 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12697
12651
|
x: -Q.y,
|
|
12698
12652
|
y: Q.x
|
|
12699
12653
|
};
|
|
12700
|
-
d2.nodesOverlap = !number$1(X) || k.checkPoint(V[0], V[1], 0,
|
|
12654
|
+
d2.nodesOverlap = !number$1(X) || k.checkPoint(V[0], V[1], 0, E, D, S2.x, S2.y, j, M) || O.checkPoint(U[0], U[1], 0, C2, w2, b2.x, b2.y, A, N), d2.vectorNormInverse = $, f2 = {
|
|
12701
12655
|
nodesOverlap: d2.nodesOverlap,
|
|
12702
12656
|
dirCounts: d2.dirCounts,
|
|
12703
12657
|
calculatedIntersection: true,
|
|
@@ -12708,8 +12662,8 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12708
12662
|
srcRs: M,
|
|
12709
12663
|
tgtPos: b2,
|
|
12710
12664
|
tgtRs: N,
|
|
12711
|
-
srcW:
|
|
12712
|
-
srcH:
|
|
12665
|
+
srcW: E,
|
|
12666
|
+
srcH: D,
|
|
12713
12667
|
tgtW: C2,
|
|
12714
12668
|
tgtH: w2,
|
|
12715
12669
|
srcIntn: W,
|
|
@@ -12742,10 +12696,10 @@ BRp$c.findMidptPtsEtc = function(e, t) {
|
|
|
12742
12696
|
}
|
|
12743
12697
|
};
|
|
12744
12698
|
}
|
|
12745
|
-
var
|
|
12746
|
-
L.nodesOverlap =
|
|
12699
|
+
var Oh = B ? f2 : d2;
|
|
12700
|
+
L.nodesOverlap = Oh.nodesOverlap, L.srcIntn = Oh.srcIntn, L.tgtIntn = Oh.tgtIntn, L.isRound = R.startsWith("round"), r && (g2.isParent() || g2.isChild() || _2.isParent() || _2.isChild()) && (g2.parents().anySame(_2) || _2.parents().anySame(g2) || g2.same(_2) && g2.isParent()) ? t.findCompoundLoopPoints(I, Oh, F, z) : g2 === _2 ? t.findLoopPoints(I, Oh, F, z) : R.endsWith("segments") ? t.findSegmentsPoints(I, Oh) : R.endsWith("taxi") ? t.findTaxiPoints(I, Oh) : R === "straight" || !z && d2.eles.length % 2 == 1 && F === Math.floor(d2.eles.length / 2) ? t.findStraightEdgePoints(I) : t.findBezierPoints(I, Oh, F, z, B), t.findEndpoints(I), t.tryToCorrectInvalidPoints(I, Oh), t.checkForInvalidEdgeWarning(I), t.storeAllpts(I), t.storeEdgeProjections(I), t.calculateArrowAngles(I), t.recalculateEdgeLabelProjections(I), t.calculateLabelAngles(I);
|
|
12747
12701
|
}
|
|
12748
|
-
},
|
|
12702
|
+
}, T = 0; T < s.length; T++) w();
|
|
12749
12703
|
this.findHaystackPoints(c);
|
|
12750
12704
|
}
|
|
12751
12705
|
};
|
|
@@ -12806,9 +12760,9 @@ BRp$b.manualEndptToPx = function(e, t) {
|
|
|
12806
12760
|
else if (F === "outside-to-node" || F === "outside-to-node-or-label" ? z = L : (F === "outside-to-line" || F === "outside-to-line-or-label") && (z = [c.x, c.y]), a = r.nodeShapes[this.getNodeShape(s)].intersectLine(l.x, l.y, s.outerWidth(), s.outerHeight(), z[0], z[1], 0, I, g), F === "outside-to-node-or-label" || F === "outside-to-line-or-label") {
|
|
12807
12761
|
var G = s._private.rscratch, q = G.labelWidth, J = G.labelHeight, Y = G.labelX, X = G.labelY, Z = q / 2, Q = J / 2, $ = s.pstyle("text-valign").value;
|
|
12808
12762
|
$ === "top" ? X -= Q : $ === "bottom" && (X += Q);
|
|
12809
|
-
var
|
|
12810
|
-
|
|
12811
|
-
var
|
|
12763
|
+
var Oh = s.pstyle("text-halign").value;
|
|
12764
|
+
Oh === "left" ? Y -= Z : Oh === "right" && (Y += Z);
|
|
12765
|
+
var kh = polygonIntersectLine(z[0], z[1], [
|
|
12812
12766
|
Y - Z,
|
|
12813
12767
|
X - Q,
|
|
12814
12768
|
Y + Z,
|
|
@@ -12818,43 +12772,43 @@ BRp$b.manualEndptToPx = function(e, t) {
|
|
|
12818
12772
|
Y - Z,
|
|
12819
12773
|
X + Q
|
|
12820
12774
|
], l.x, l.y);
|
|
12821
|
-
if (
|
|
12822
|
-
var
|
|
12823
|
-
|
|
12824
|
-
x:
|
|
12825
|
-
y:
|
|
12826
|
-
}) <
|
|
12775
|
+
if (kh.length > 0) {
|
|
12776
|
+
var Ah = c, jh = sqdist(Ah, array2point(a)), Mh = sqdist(Ah, array2point(kh)), Nh = jh;
|
|
12777
|
+
Mh < jh && (a = kh, Nh = Mh), kh.length > 2 && sqdist(Ah, {
|
|
12778
|
+
x: kh[2],
|
|
12779
|
+
y: kh[3]
|
|
12780
|
+
}) < Nh && (a = [kh[2], kh[3]]);
|
|
12827
12781
|
}
|
|
12828
12782
|
}
|
|
12829
|
-
var
|
|
12830
|
-
if (v.endX =
|
|
12783
|
+
var Ph = shortenIntersection(a, L, r.arrowShapes[u].spacing(e) + f), Fh = shortenIntersection(a, L, r.arrowShapes[u].gap(e) + f);
|
|
12784
|
+
if (v.endX = Fh[0], v.endY = Fh[1], v.arrowEndX = Ph[0], v.arrowEndY = Ph[1], j === "inside-to-node") a = [c.x, c.y];
|
|
12831
12785
|
else if (A.units) a = this.manualEndptToPx(o, A);
|
|
12832
12786
|
else if (j === "outside-to-line") a = v.srcIntn;
|
|
12833
12787
|
else if (j === "outside-to-node" || j === "outside-to-node-or-label" ? B = R : (j === "outside-to-line" || j === "outside-to-line-or-label") && (B = [l.x, l.y]), a = r.nodeShapes[this.getNodeShape(o)].intersectLine(c.x, c.y, o.outerWidth(), o.outerHeight(), B[0], B[1], 0, M, h), j === "outside-to-node-or-label" || j === "outside-to-line-or-label") {
|
|
12834
|
-
var
|
|
12835
|
-
|
|
12836
|
-
var
|
|
12837
|
-
|
|
12838
|
-
var
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12788
|
+
var Ih = o._private.rscratch, Lh = Ih.labelWidth, Rh = Ih.labelHeight, zh = Ih.labelX, Bh = Ih.labelY, Vh = Lh / 2, Hh = Rh / 2, Uh = o.pstyle("text-valign").value;
|
|
12789
|
+
Uh === "top" ? Bh -= Hh : Uh === "bottom" && (Bh += Hh);
|
|
12790
|
+
var Wh = o.pstyle("text-halign").value;
|
|
12791
|
+
Wh === "left" ? zh -= Vh : Wh === "right" && (zh += Vh);
|
|
12792
|
+
var Gh = polygonIntersectLine(B[0], B[1], [
|
|
12793
|
+
zh - Vh,
|
|
12794
|
+
Bh - Hh,
|
|
12795
|
+
zh + Vh,
|
|
12796
|
+
Bh - Hh,
|
|
12797
|
+
zh + Vh,
|
|
12798
|
+
Bh + Hh,
|
|
12799
|
+
zh - Vh,
|
|
12800
|
+
Bh + Hh
|
|
12847
12801
|
], c.x, c.y);
|
|
12848
|
-
if (
|
|
12849
|
-
var
|
|
12850
|
-
|
|
12851
|
-
x:
|
|
12852
|
-
y:
|
|
12853
|
-
}) <
|
|
12802
|
+
if (Gh.length > 0) {
|
|
12803
|
+
var Kh = l, qh = sqdist(Kh, array2point(a)), Jh = sqdist(Kh, array2point(Gh)), Yh = qh;
|
|
12804
|
+
Jh < qh && (a = [Gh[0], Gh[1]], Yh = Jh), Gh.length > 2 && sqdist(Kh, {
|
|
12805
|
+
x: Gh[2],
|
|
12806
|
+
y: Gh[3]
|
|
12807
|
+
}) < Yh && (a = [Gh[2], Gh[3]]);
|
|
12854
12808
|
}
|
|
12855
12809
|
}
|
|
12856
|
-
var
|
|
12857
|
-
v.startX =
|
|
12810
|
+
var Xh = shortenIntersection(a, R, r.arrowShapes[d].spacing(e) + m), Zh = shortenIntersection(a, R, r.arrowShapes[d].gap(e) + m);
|
|
12811
|
+
v.startX = Zh[0], v.startY = Zh[1], v.arrowStartX = Xh[0], v.arrowStartY = Xh[1], O && (!number$1(v.startX) || !number$1(v.startY) || !number$1(v.endX) || !number$1(v.endY) ? v.badLine = true : v.badLine = false);
|
|
12858
12812
|
}, BRp$b.getSourceEndpoint = function(e) {
|
|
12859
12813
|
var t = e[0]._private.rscratch;
|
|
12860
12814
|
switch (this.recalculateRenderedStyle(e), t.edgeType) {
|
|
@@ -12951,11 +12905,10 @@ var lineAngleFromDelta = function(e, t) {
|
|
|
12951
12905
|
var n = Math.atan(t / e);
|
|
12952
12906
|
return e === 0 && n < 0 && (n *= -1), n;
|
|
12953
12907
|
}, lineAngle = function(e, t) {
|
|
12954
|
-
|
|
12955
|
-
return lineAngleFromDelta(n, r);
|
|
12908
|
+
return lineAngleFromDelta(t.x - e.x, t.y - e.y);
|
|
12956
12909
|
}, bezierAngle = function(e, t, n, r) {
|
|
12957
|
-
var a = bound(0, r - 1e-3, 1), o = bound(0, r + 1e-3, 1)
|
|
12958
|
-
return lineAngle(
|
|
12910
|
+
var a = bound(0, r - 1e-3, 1), o = bound(0, r + 1e-3, 1);
|
|
12911
|
+
return lineAngle(qbezierPtAt(e, t, n, a), qbezierPtAt(e, t, n, o));
|
|
12959
12912
|
};
|
|
12960
12913
|
BRp$9.recalculateEdgeLabelProjections = function(e) {
|
|
12961
12914
|
var t, n = e._private, r = n.rscratch, a = this, o = {
|
|
@@ -12971,11 +12924,9 @@ BRp$9.recalculateEdgeLabelProjections = function(e) {
|
|
|
12971
12924
|
var s = function(e2, t2, r2) {
|
|
12972
12925
|
setPrefixedProperty(n.rscratch, e2, t2, r2), setPrefixedProperty(n.rstyle, e2, t2, r2);
|
|
12973
12926
|
};
|
|
12974
|
-
s("labelX", null, t.x), s("labelY", null, t.y);
|
|
12975
|
-
var c =
|
|
12976
|
-
|
|
12977
|
-
var l = function() {
|
|
12978
|
-
if (l.cache) return l.cache;
|
|
12927
|
+
s("labelX", null, t.x), s("labelY", null, t.y), s("labelAutoAngle", null, lineAngleFromDelta(r.midDispX, r.midDispY));
|
|
12928
|
+
var c = function() {
|
|
12929
|
+
if (c.cache) return c.cache;
|
|
12979
12930
|
for (var e2 = [], t2 = 0; t2 + 5 < r.allpts.length; t2 += 4) {
|
|
12980
12931
|
var o2 = {
|
|
12981
12932
|
x: r.allpts[t2],
|
|
@@ -12983,22 +12934,22 @@ BRp$9.recalculateEdgeLabelProjections = function(e) {
|
|
|
12983
12934
|
}, s2 = {
|
|
12984
12935
|
x: r.allpts[t2 + 2],
|
|
12985
12936
|
y: r.allpts[t2 + 3]
|
|
12986
|
-
},
|
|
12937
|
+
}, l2 = {
|
|
12987
12938
|
x: r.allpts[t2 + 4],
|
|
12988
12939
|
y: r.allpts[t2 + 5]
|
|
12989
12940
|
};
|
|
12990
12941
|
e2.push({
|
|
12991
12942
|
p0: o2,
|
|
12992
12943
|
p1: s2,
|
|
12993
|
-
p2:
|
|
12944
|
+
p2: l2,
|
|
12994
12945
|
startDist: 0,
|
|
12995
12946
|
length: 0,
|
|
12996
12947
|
segments: []
|
|
12997
12948
|
});
|
|
12998
12949
|
}
|
|
12999
|
-
var
|
|
12950
|
+
var u = n.rstyle.bezierPts, d = a.bezierProjPcts.length;
|
|
13000
12951
|
function f(e3, t3, n2, r2, a2) {
|
|
13001
|
-
var o3 = dist(t3, n2), s3 = e3.segments[e3.segments.length - 1],
|
|
12952
|
+
var o3 = dist(t3, n2), s3 = e3.segments[e3.segments.length - 1], c2 = {
|
|
13002
12953
|
p0: t3,
|
|
13003
12954
|
p1: n2,
|
|
13004
12955
|
t0: r2,
|
|
@@ -13006,28 +12957,28 @@ BRp$9.recalculateEdgeLabelProjections = function(e) {
|
|
|
13006
12957
|
startDist: s3 ? s3.startDist + s3.length : 0,
|
|
13007
12958
|
length: o3
|
|
13008
12959
|
};
|
|
13009
|
-
e3.segments.push(
|
|
12960
|
+
e3.segments.push(c2), e3.length += o3;
|
|
13010
12961
|
}
|
|
13011
12962
|
for (var m = 0; m < e2.length; m++) {
|
|
13012
12963
|
var h = e2[m], g = e2[m - 1];
|
|
13013
|
-
g && (h.startDist = g.startDist + g.length), f(h, h.p0,
|
|
13014
|
-
for (var _ = 0; _ < d - 1; _++) f(h,
|
|
13015
|
-
f(h,
|
|
12964
|
+
g && (h.startDist = g.startDist + g.length), f(h, h.p0, u[m * d], 0, a.bezierProjPcts[0]);
|
|
12965
|
+
for (var _ = 0; _ < d - 1; _++) f(h, u[m * d + _], u[m * d + _ + 1], a.bezierProjPcts[_], a.bezierProjPcts[_ + 1]);
|
|
12966
|
+
f(h, u[m * d + d - 1], h.p2, a.bezierProjPcts[d - 1], 1);
|
|
13016
12967
|
}
|
|
13017
|
-
return
|
|
13018
|
-
},
|
|
13019
|
-
var a2,
|
|
12968
|
+
return c.cache = e2;
|
|
12969
|
+
}, l = function(n2) {
|
|
12970
|
+
var a2, l2 = n2 === "source";
|
|
13020
12971
|
if (o[n2]) {
|
|
13021
|
-
var
|
|
12972
|
+
var u = e.pstyle(n2 + "-text-offset").pfValue;
|
|
13022
12973
|
switch (r.edgeType) {
|
|
13023
12974
|
case "self":
|
|
13024
12975
|
case "compound":
|
|
13025
12976
|
case "bezier":
|
|
13026
12977
|
case "multibezier":
|
|
13027
|
-
for (var d =
|
|
13028
|
-
for (var _ = d[
|
|
13029
|
-
var b = _.segments[
|
|
13030
|
-
if (m = h, h += b.length, h >=
|
|
12978
|
+
for (var d = c(), f, m = 0, h = 0, g = 0; g < d.length; g++) {
|
|
12979
|
+
for (var _ = d[l2 ? g : d.length - 1 - g], v = 0; v < _.segments.length; v++) {
|
|
12980
|
+
var b = _.segments[l2 ? v : _.segments.length - 1 - v], S = g === d.length - 1 && v === _.segments.length - 1;
|
|
12981
|
+
if (m = h, h += b.length, h >= u || S) {
|
|
13031
12982
|
f = {
|
|
13032
12983
|
cp: _,
|
|
13033
12984
|
segment: b
|
|
@@ -13037,13 +12988,13 @@ BRp$9.recalculateEdgeLabelProjections = function(e) {
|
|
|
13037
12988
|
}
|
|
13038
12989
|
if (f) break;
|
|
13039
12990
|
}
|
|
13040
|
-
var C = f.cp, w = f.segment, T = (
|
|
12991
|
+
var C = f.cp, w = f.segment, T = (u - m) / w.length, E = w.t1 - w.t0, D = l2 ? w.t0 + E * T : w.t1 - E * T;
|
|
13041
12992
|
D = bound(0, D, 1), t = qbezierPtAt(C.p0, C.p1, C.p2, D), a2 = bezierAngle(C.p0, C.p1, C.p2, D);
|
|
13042
12993
|
break;
|
|
13043
12994
|
case "straight":
|
|
13044
12995
|
case "segments":
|
|
13045
12996
|
case "haystack":
|
|
13046
|
-
for (var O = 0, k, A, j, M, N = r.allpts.length, P = 0; P + 3 < N && (
|
|
12997
|
+
for (var O = 0, k, A, j, M, N = r.allpts.length, P = 0; P + 3 < N && (l2 ? (j = {
|
|
13047
12998
|
x: r.allpts[P],
|
|
13048
12999
|
y: r.allpts[P + 1]
|
|
13049
13000
|
}, M = {
|
|
@@ -13055,15 +13006,15 @@ BRp$9.recalculateEdgeLabelProjections = function(e) {
|
|
|
13055
13006
|
}, M = {
|
|
13056
13007
|
x: r.allpts[N - 4 - P],
|
|
13057
13008
|
y: r.allpts[N - 3 - P]
|
|
13058
|
-
}), k = dist(j, M), A = O, O += k, !(O >=
|
|
13059
|
-
var F = (
|
|
13009
|
+
}), k = dist(j, M), A = O, O += k, !(O >= u)); P += 2) ;
|
|
13010
|
+
var F = (u - A) / k;
|
|
13060
13011
|
F = bound(0, F, 1), t = lineAt(j, M, F), a2 = lineAngle(j, M);
|
|
13061
13012
|
break;
|
|
13062
13013
|
}
|
|
13063
13014
|
s("labelX", n2, t.x), s("labelY", n2, t.y), s("labelAutoAngle", n2, a2);
|
|
13064
13015
|
}
|
|
13065
13016
|
};
|
|
13066
|
-
|
|
13017
|
+
l("source"), l("target"), this.applyLabelDimensions(e);
|
|
13067
13018
|
}
|
|
13068
13019
|
}, BRp$9.applyLabelDimensions = function(e) {
|
|
13069
13020
|
this.applyPrefixedLabelDimensions(e), e.isEdge() && (this.applyPrefixedLabelDimensions(e, "source"), this.applyPrefixedLabelDimensions(e, "target"));
|
|
@@ -13510,12 +13461,12 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13510
13461
|
!e.hoverData.draggingEles && !e.hoverData.dragging && !e.hoverData.selecting && (h2 = e.findNearestElement(u2[0], u2[1], true, false));
|
|
13511
13462
|
var g2 = e.hoverData.last, v3 = e.hoverData.down, S2 = [u2[0] - m2[2], u2[1] - m2[3]], C2 = e.dragData.possibleDragElements, w2;
|
|
13512
13463
|
if (f2) {
|
|
13513
|
-
var T2 = l2[0] - f2[0], E2 = T2 * T2, D2 = l2[1] - f2[1], O2 = D2 * D2
|
|
13514
|
-
e.hoverData.isOverThresholdDrag = w2 =
|
|
13464
|
+
var T2 = l2[0] - f2[0], E2 = T2 * T2, D2 = l2[1] - f2[1], O2 = E2 + D2 * D2;
|
|
13465
|
+
e.hoverData.isOverThresholdDrag = w2 = O2 >= e.desktopTapThreshold2;
|
|
13515
13466
|
}
|
|
13516
|
-
var
|
|
13467
|
+
var k2 = o(t2);
|
|
13517
13468
|
w2 && (e.hoverData.tapholdCancelled = true);
|
|
13518
|
-
var
|
|
13469
|
+
var j2 = function() {
|
|
13519
13470
|
var t3 = e.hoverData.dragDelta = e.hoverData.dragDelta || [];
|
|
13520
13471
|
t3.length === 0 ? (t3.push(S2[0]), t3.push(S2[1])) : (t3[0] += S2[0], t3[1] += S2[1]);
|
|
13521
13472
|
};
|
|
@@ -13527,7 +13478,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13527
13478
|
x: u2[0],
|
|
13528
13479
|
y: u2[1]
|
|
13529
13480
|
});
|
|
13530
|
-
var
|
|
13481
|
+
var M2 = function(e2) {
|
|
13531
13482
|
return {
|
|
13532
13483
|
originalEvent: t2,
|
|
13533
13484
|
type: e2,
|
|
@@ -13536,31 +13487,31 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13536
13487
|
y: u2[1]
|
|
13537
13488
|
}
|
|
13538
13489
|
};
|
|
13539
|
-
},
|
|
13540
|
-
e.data.bgActivePosistion = void 0, e.hoverData.selecting || r2.emit(
|
|
13490
|
+
}, N2 = function() {
|
|
13491
|
+
e.data.bgActivePosistion = void 0, e.hoverData.selecting || r2.emit(M2("boxstart")), m2[4] = 1, e.hoverData.selecting = true, e.redrawHint("select", true), e.redraw();
|
|
13541
13492
|
};
|
|
13542
13493
|
if (e.hoverData.which === 3) {
|
|
13543
13494
|
if (w2) {
|
|
13544
|
-
var
|
|
13545
|
-
v3 ? v3.emit(
|
|
13495
|
+
var F2 = M2("cxtdrag");
|
|
13496
|
+
v3 ? v3.emit(F2) : r2.emit(F2), e.hoverData.cxtDragged = true, (!e.hoverData.cxtOver || h2 !== e.hoverData.cxtOver) && (e.hoverData.cxtOver && e.hoverData.cxtOver.emit(M2("cxtdragout")), e.hoverData.cxtOver = h2, h2 && h2.emit(M2("cxtdragover")));
|
|
13546
13497
|
}
|
|
13547
13498
|
} else if (e.hoverData.dragging) {
|
|
13548
13499
|
if (n2 = true, r2.panningEnabled() && r2.userPanningEnabled()) {
|
|
13549
|
-
var
|
|
13500
|
+
var I2;
|
|
13550
13501
|
if (e.hoverData.justStartedPan) {
|
|
13551
|
-
var
|
|
13552
|
-
|
|
13553
|
-
x: (u2[0] -
|
|
13554
|
-
y: (u2[1] -
|
|
13502
|
+
var L2 = e.hoverData.mdownPos;
|
|
13503
|
+
I2 = {
|
|
13504
|
+
x: (u2[0] - L2[0]) * c2,
|
|
13505
|
+
y: (u2[1] - L2[1]) * c2
|
|
13555
13506
|
}, e.hoverData.justStartedPan = false;
|
|
13556
|
-
} else
|
|
13507
|
+
} else I2 = {
|
|
13557
13508
|
x: S2[0] * c2,
|
|
13558
13509
|
y: S2[1] * c2
|
|
13559
13510
|
};
|
|
13560
|
-
r2.panBy(
|
|
13511
|
+
r2.panBy(I2), r2.emit(M2("dragpan")), e.hoverData.dragged = true;
|
|
13561
13512
|
}
|
|
13562
13513
|
u2 = e.projectIntoViewport(t2.clientX, t2.clientY);
|
|
13563
|
-
} else if (m2[4] == 1 && (v3 == null || v3.pannable())) w2 && (!e.hoverData.dragging && r2.boxSelectionEnabled() && (
|
|
13514
|
+
} else if (m2[4] == 1 && (v3 == null || v3.pannable())) w2 && (!e.hoverData.dragging && r2.boxSelectionEnabled() && (k2 || !r2.panningEnabled() || !r2.userPanningEnabled()) ? N2() : !e.hoverData.selecting && r2.panningEnabled() && r2.userPanningEnabled() && s(v3, e.hoverData.downs) && (e.hoverData.dragging = true, e.hoverData.justStartedPan = true, m2[4] = 0, e.data.bgActivePosistion = array2point(d2), e.redrawHint("select", true), e.redraw()), v3 && v3.pannable() && v3.active() && v3.unactivate());
|
|
13564
13515
|
else {
|
|
13565
13516
|
if (v3 && v3.pannable() && v3.active() && v3.unactivate(), (!v3 || !v3.grabbed()) && h2 != g2 && (g2 && a(g2, ["mouseout", "tapdragout"], t2, {
|
|
13566
13517
|
x: u2[0],
|
|
@@ -13569,21 +13520,21 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13569
13520
|
x: u2[0],
|
|
13570
13521
|
y: u2[1]
|
|
13571
13522
|
}), e.hoverData.last = h2), v3) if (w2) {
|
|
13572
|
-
if (r2.boxSelectionEnabled() &&
|
|
13523
|
+
if (r2.boxSelectionEnabled() && k2) v3 && v3.grabbed() && (b(C2), v3.emit(M2("freeon")), C2.emit(M2("free")), e.dragData.didDrag && (v3.emit(M2("dragfreeon")), C2.emit(M2("dragfree")))), N2();
|
|
13573
13524
|
else if (v3 && v3.grabbed() && e.nodeIsDraggable(v3)) {
|
|
13574
|
-
var
|
|
13575
|
-
|
|
13576
|
-
var
|
|
13525
|
+
var R2 = !e.dragData.didDrag;
|
|
13526
|
+
R2 && e.redrawHint("eles", true), e.dragData.didDrag = true, e.hoverData.draggingEles || _(C2, { inDragLayer: true });
|
|
13527
|
+
var z2 = {
|
|
13577
13528
|
x: 0,
|
|
13578
13529
|
y: 0
|
|
13579
13530
|
};
|
|
13580
|
-
if (number$1(S2[0]) && number$1(S2[1]) && (
|
|
13581
|
-
var
|
|
13582
|
-
|
|
13531
|
+
if (number$1(S2[0]) && number$1(S2[1]) && (z2.x += S2[0], z2.y += S2[1], R2)) {
|
|
13532
|
+
var B2 = e.hoverData.dragDelta;
|
|
13533
|
+
B2 && number$1(B2[0]) && number$1(B2[1]) && (z2.x += B2[0], z2.y += B2[1]);
|
|
13583
13534
|
}
|
|
13584
|
-
e.hoverData.draggingEles = true, C2.silentShift(
|
|
13535
|
+
e.hoverData.draggingEles = true, C2.silentShift(z2).emit(M2("position")).emit(M2("drag")), e.redrawHint("drag", true), e.redraw();
|
|
13585
13536
|
}
|
|
13586
|
-
} else
|
|
13537
|
+
} else j2();
|
|
13587
13538
|
n2 = true;
|
|
13588
13539
|
}
|
|
13589
13540
|
if (m2[2] = u2[0], m2[3] = u2[1], n2) return t2.stopPropagation && t2.stopPropagation(), t2.preventDefault && t2.preventDefault(), false;
|
|
@@ -13736,12 +13687,12 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13736
13687
|
}
|
|
13737
13688
|
});
|
|
13738
13689
|
}, false);
|
|
13739
|
-
var U, W, G, q, J, Y, X, Z, Q, $,
|
|
13690
|
+
var U, W, G, q, J, Y, X, Z, Q, $, Dh, Oh, kh, Ah = function(e2, t2, n2, r2) {
|
|
13740
13691
|
return Math.sqrt((n2 - e2) * (n2 - e2) + (r2 - t2) * (r2 - t2));
|
|
13741
|
-
},
|
|
13692
|
+
}, jh = function(e2, t2, n2, r2) {
|
|
13742
13693
|
return (n2 - e2) * (n2 - e2) + (r2 - t2) * (r2 - t2);
|
|
13743
|
-
},
|
|
13744
|
-
e.registerBinding(e.container, "touchstart",
|
|
13694
|
+
}, Mh;
|
|
13695
|
+
e.registerBinding(e.container, "touchstart", Mh = function(t2) {
|
|
13745
13696
|
if (e.hasTouchStarted = true, A(t2)) {
|
|
13746
13697
|
C(), e.touchData.capture = true, e.data.bgActivePosistion = void 0;
|
|
13747
13698
|
var n2 = e.cy, r2 = e.touchData.now, o2 = e.touchData.earlier;
|
|
@@ -13770,9 +13721,9 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13770
13721
|
if (t2.touches[1]) {
|
|
13771
13722
|
e.touchData.singleTouchMoved = true, b(e.dragData.touchDragEles);
|
|
13772
13723
|
var l2 = e.findContainerClientCoords();
|
|
13773
|
-
Q = l2[0], $ = l2[1],
|
|
13724
|
+
Q = l2[0], $ = l2[1], Dh = l2[2], Oh = l2[3], U = t2.touches[0].clientX - Q, W = t2.touches[0].clientY - $, G = t2.touches[1].clientX - Q, q = t2.touches[1].clientY - $, kh = 0 <= U && U <= Dh && 0 <= G && G <= Dh && 0 <= W && W <= Oh && 0 <= q && q <= Oh;
|
|
13774
13725
|
var u2 = n2.pan(), d2 = n2.zoom();
|
|
13775
|
-
J =
|
|
13726
|
+
J = Ah(U, W, G, q), Y = jh(U, W, G, q), X = [(U + G) / 2, (W + q) / 2], Z = [(X[0] - u2.x) / d2, (X[1] - u2.y) / d2];
|
|
13776
13727
|
var m2 = 200, h2 = m2 * m2;
|
|
13777
13728
|
if (Y < h2 && !t2.touches[2]) {
|
|
13778
13729
|
var g2 = e.findNearestElement(r2[0], r2[1], true, true), S2 = e.findNearestElement(r2[2], r2[3], true, true);
|
|
@@ -13822,8 +13773,8 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13822
13773
|
}
|
|
13823
13774
|
}
|
|
13824
13775
|
}, false);
|
|
13825
|
-
var
|
|
13826
|
-
e.registerBinding(t, "touchmove",
|
|
13776
|
+
var Nh;
|
|
13777
|
+
e.registerBinding(t, "touchmove", Nh = function(t2) {
|
|
13827
13778
|
var n2 = e.touchData.capture;
|
|
13828
13779
|
if (!(!n2 && !A(t2))) {
|
|
13829
13780
|
var r2 = e.selection, o2 = e.cy, c2 = e.touchData.now, l2 = e.touchData.earlier, u2 = o2.zoom();
|
|
@@ -13851,49 +13802,49 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13851
13802
|
}, m2 = e.touchData.startGPosition, h2;
|
|
13852
13803
|
if (n2 && t2.touches[0] && m2) {
|
|
13853
13804
|
for (var g2 = [], v3 = 0; v3 < c2.length; v3++) g2[v3] = c2[v3] - l2[v3];
|
|
13854
|
-
var S2 = t2.touches[0].clientX - m2[0], C2 = S2 * S2, w2 = t2.touches[0].clientY - m2[1]
|
|
13855
|
-
h2 = C2 +
|
|
13805
|
+
var S2 = t2.touches[0].clientX - m2[0], C2 = S2 * S2, w2 = t2.touches[0].clientY - m2[1];
|
|
13806
|
+
h2 = C2 + w2 * w2 >= e.touchTapThreshold2;
|
|
13856
13807
|
}
|
|
13857
13808
|
if (n2 && e.touchData.cxt) {
|
|
13858
13809
|
t2.preventDefault();
|
|
13859
|
-
var
|
|
13860
|
-
if (
|
|
13810
|
+
var T2 = t2.touches[0].clientX - Q, E2 = t2.touches[0].clientY - $, D2 = t2.touches[1].clientX - Q, O2 = t2.touches[1].clientY - $, k2 = jh(T2, E2, D2, O2), j2 = k2 / Y, M2 = 150, N2 = M2 * M2, F2 = 1.5;
|
|
13811
|
+
if (j2 >= F2 * F2 || k2 >= N2) {
|
|
13861
13812
|
e.touchData.cxt = false, e.data.bgActivePosistion = void 0, e.redrawHint("select", true);
|
|
13862
|
-
var
|
|
13863
|
-
e.touchData.start ? (e.touchData.start.unactivate().emit(
|
|
13813
|
+
var I2 = f2("cxttapend");
|
|
13814
|
+
e.touchData.start ? (e.touchData.start.unactivate().emit(I2), e.touchData.start = null) : o2.emit(I2);
|
|
13864
13815
|
}
|
|
13865
13816
|
}
|
|
13866
13817
|
if (n2 && e.touchData.cxt) {
|
|
13867
|
-
var
|
|
13868
|
-
e.data.bgActivePosistion = void 0, e.redrawHint("select", true), e.touchData.start ? e.touchData.start.emit(
|
|
13869
|
-
var
|
|
13870
|
-
(!e.touchData.cxtOver ||
|
|
13818
|
+
var I2 = f2("cxtdrag");
|
|
13819
|
+
e.data.bgActivePosistion = void 0, e.redrawHint("select", true), e.touchData.start ? e.touchData.start.emit(I2) : o2.emit(I2), e.touchData.start && (e.touchData.start._private.grabbed = false), e.touchData.cxtDragged = true;
|
|
13820
|
+
var L2 = e.findNearestElement(c2[0], c2[1], true, true);
|
|
13821
|
+
(!e.touchData.cxtOver || L2 !== e.touchData.cxtOver) && (e.touchData.cxtOver && e.touchData.cxtOver.emit(f2("cxtdragout")), e.touchData.cxtOver = L2, L2 && L2.emit(f2("cxtdragover")));
|
|
13871
13822
|
} else if (n2 && t2.touches[2] && o2.boxSelectionEnabled()) t2.preventDefault(), e.data.bgActivePosistion = void 0, this.lastThreeTouch = +/* @__PURE__ */ new Date(), e.touchData.selecting || o2.emit(f2("boxstart")), e.touchData.selecting = true, e.touchData.didSelect = true, r2[4] = 1, !r2 || r2.length === 0 || r2[0] === void 0 ? (r2[0] = (c2[0] + c2[2] + c2[4]) / 3, r2[1] = (c2[1] + c2[3] + c2[5]) / 3, r2[2] = (c2[0] + c2[2] + c2[4]) / 3 + 1, r2[3] = (c2[1] + c2[3] + c2[5]) / 3 + 1) : (r2[2] = (c2[0] + c2[2] + c2[4]) / 3, r2[3] = (c2[1] + c2[3] + c2[5]) / 3), e.redrawHint("select", true), e.redraw();
|
|
13872
13823
|
else if (n2 && t2.touches[1] && !e.touchData.didSelect && o2.zoomingEnabled() && o2.panningEnabled() && o2.userZoomingEnabled() && o2.userPanningEnabled()) {
|
|
13873
13824
|
t2.preventDefault(), e.data.bgActivePosistion = void 0, e.redrawHint("select", true);
|
|
13874
|
-
var
|
|
13875
|
-
if (
|
|
13825
|
+
var R2 = e.dragData.touchDragEles;
|
|
13826
|
+
if (R2) {
|
|
13876
13827
|
e.redrawHint("drag", true);
|
|
13877
|
-
for (var
|
|
13878
|
-
var
|
|
13879
|
-
|
|
13828
|
+
for (var z2 = 0; z2 < R2.length; z2++) {
|
|
13829
|
+
var B2 = R2[z2]._private;
|
|
13830
|
+
B2.grabbed = false, B2.rscratch.inDragLayer = false;
|
|
13880
13831
|
}
|
|
13881
13832
|
}
|
|
13882
|
-
var
|
|
13883
|
-
if (
|
|
13884
|
-
var
|
|
13885
|
-
x: -
|
|
13886
|
-
y: -
|
|
13833
|
+
var V2 = e.touchData.start, T2 = t2.touches[0].clientX - Q, E2 = t2.touches[0].clientY - $, D2 = t2.touches[1].clientX - Q, O2 = t2.touches[1].clientY - $, H2 = Ah(T2, E2, D2, O2), X2 = H2 / J;
|
|
13834
|
+
if (kh) {
|
|
13835
|
+
var Dh2 = T2 - U, Oh2 = E2 - W, Mh2 = D2 - G, Nh2 = O2 - q, Ph2 = (Dh2 + Mh2) / 2, Fh2 = (Oh2 + Nh2) / 2, Ih2 = o2.zoom(), Lh2 = Ih2 * X2, Rh2 = o2.pan(), zh2 = Z[0] * Ih2 + Rh2.x, Bh2 = Z[1] * Ih2 + Rh2.y, Vh2 = {
|
|
13836
|
+
x: -Lh2 / Ih2 * (zh2 - Rh2.x - Ph2) + zh2,
|
|
13837
|
+
y: -Lh2 / Ih2 * (Bh2 - Rh2.y - Fh2) + Bh2
|
|
13887
13838
|
};
|
|
13888
|
-
if (
|
|
13889
|
-
var
|
|
13890
|
-
b(
|
|
13839
|
+
if (V2 && V2.active()) {
|
|
13840
|
+
var R2 = e.dragData.touchDragEles;
|
|
13841
|
+
b(R2), e.redrawHint("drag", true), e.redrawHint("eles", true), V2.unactivate().emit(f2("freeon")), R2.emit(f2("free")), e.dragData.didDrag && (V2.emit(f2("dragfreeon")), R2.emit(f2("dragfree")));
|
|
13891
13842
|
}
|
|
13892
13843
|
o2.viewport({
|
|
13893
|
-
zoom:
|
|
13894
|
-
pan:
|
|
13844
|
+
zoom: Lh2,
|
|
13845
|
+
pan: Vh2,
|
|
13895
13846
|
cancelOnFailedZoom: true
|
|
13896
|
-
}), o2.emit(f2("pinchzoom")), J =
|
|
13847
|
+
}), o2.emit(f2("pinchzoom")), J = H2, U = T2, W = E2, G = D2, q = O2, e.pinching = true;
|
|
13897
13848
|
}
|
|
13898
13849
|
if (t2.touches[0]) {
|
|
13899
13850
|
var d2 = e.projectIntoViewport(t2.touches[0].clientX, t2.touches[0].clientY);
|
|
@@ -13908,40 +13859,40 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13908
13859
|
c2[4] = d2[0], c2[5] = d2[1];
|
|
13909
13860
|
}
|
|
13910
13861
|
} else if (t2.touches[0] && !e.touchData.didSelect) {
|
|
13911
|
-
var
|
|
13912
|
-
if (!e.hoverData.draggingEles && !e.swipePanning && (
|
|
13913
|
-
var
|
|
13914
|
-
|
|
13915
|
-
var
|
|
13862
|
+
var Hh2 = e.touchData.start, Uh2 = e.touchData.last, L2;
|
|
13863
|
+
if (!e.hoverData.draggingEles && !e.swipePanning && (L2 = e.findNearestElement(c2[0], c2[1], true, true)), n2 && Hh2 != null && t2.preventDefault(), n2 && Hh2 != null && e.nodeIsDraggable(Hh2)) if (h2) {
|
|
13864
|
+
var R2 = e.dragData.touchDragEles, Wh2 = !e.dragData.didDrag;
|
|
13865
|
+
Wh2 && _(R2, { inDragLayer: true }), e.dragData.didDrag = true;
|
|
13866
|
+
var Gh2 = {
|
|
13916
13867
|
x: 0,
|
|
13917
13868
|
y: 0
|
|
13918
13869
|
};
|
|
13919
|
-
if (number$1(g2[0]) && number$1(g2[1]) && (
|
|
13870
|
+
if (number$1(g2[0]) && number$1(g2[1]) && (Gh2.x += g2[0], Gh2.y += g2[1], Wh2)) {
|
|
13920
13871
|
e.redrawHint("eles", true);
|
|
13921
|
-
var
|
|
13922
|
-
|
|
13872
|
+
var Kh2 = e.touchData.dragDelta;
|
|
13873
|
+
Kh2 && number$1(Kh2[0]) && number$1(Kh2[1]) && (Gh2.x += Kh2[0], Gh2.y += Kh2[1]);
|
|
13923
13874
|
}
|
|
13924
|
-
e.hoverData.draggingEles = true,
|
|
13875
|
+
e.hoverData.draggingEles = true, R2.silentShift(Gh2).emit(f2("position")).emit(f2("drag")), e.redrawHint("drag", true), e.touchData.startPosition[0] == l2[0] && e.touchData.startPosition[1] == l2[1] && e.redrawHint("eles", true), e.redraw();
|
|
13925
13876
|
} else {
|
|
13926
|
-
var
|
|
13927
|
-
|
|
13877
|
+
var Kh2 = e.touchData.dragDelta = e.touchData.dragDelta || [];
|
|
13878
|
+
Kh2.length === 0 ? (Kh2.push(g2[0]), Kh2.push(g2[1])) : (Kh2[0] += g2[0], Kh2[1] += g2[1]);
|
|
13928
13879
|
}
|
|
13929
|
-
if (a(
|
|
13880
|
+
if (a(Hh2 || L2, [
|
|
13930
13881
|
"touchmove",
|
|
13931
13882
|
"tapdrag",
|
|
13932
13883
|
"vmousemove"
|
|
13933
13884
|
], t2, {
|
|
13934
13885
|
x: c2[0],
|
|
13935
13886
|
y: c2[1]
|
|
13936
|
-
}), (!
|
|
13937
|
-
if (n2 && (
|
|
13938
|
-
s(
|
|
13887
|
+
}), (!Hh2 || !Hh2.grabbed()) && L2 != Uh2 && (Uh2 && Uh2.emit(f2("tapdragout")), L2 && L2.emit(f2("tapdragover"))), e.touchData.last = L2, n2) for (var z2 = 0; z2 < c2.length; z2++) c2[z2] && e.touchData.startPosition[z2] && h2 && (e.touchData.singleTouchMoved = true);
|
|
13888
|
+
if (n2 && (Hh2 == null || Hh2.pannable()) && o2.panningEnabled() && o2.userPanningEnabled()) {
|
|
13889
|
+
s(Hh2, e.touchData.starts) && (t2.preventDefault(), e.data.bgActivePosistion || (e.data.bgActivePosistion = array2point(e.touchData.startPosition)), e.swipePanning ? (o2.panBy({
|
|
13939
13890
|
x: g2[0] * u2,
|
|
13940
13891
|
y: g2[1] * u2
|
|
13941
13892
|
}), o2.emit(f2("dragpan"))) : h2 && (e.swipePanning = true, o2.panBy({
|
|
13942
13893
|
x: S2 * u2,
|
|
13943
13894
|
y: w2 * u2
|
|
13944
|
-
}), o2.emit(f2("dragpan")),
|
|
13895
|
+
}), o2.emit(f2("dragpan")), Hh2 && (Hh2.unactivate(), e.redrawHint("select", true), e.touchData.start = null)));
|
|
13945
13896
|
var d2 = e.projectIntoViewport(t2.touches[0].clientX, t2.touches[0].clientY);
|
|
13946
13897
|
c2[0] = d2[0], c2[1] = d2[1];
|
|
13947
13898
|
}
|
|
@@ -13950,13 +13901,13 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
13950
13901
|
n2 && t2.touches.length > 0 && !e.hoverData.draggingEles && !e.swipePanning && e.data.bgActivePosistion != null && (e.data.bgActivePosistion = void 0, e.redrawHint("select", true), e.redraw());
|
|
13951
13902
|
}
|
|
13952
13903
|
}, false);
|
|
13953
|
-
var
|
|
13954
|
-
e.registerBinding(t, "touchcancel",
|
|
13904
|
+
var Ph;
|
|
13905
|
+
e.registerBinding(t, "touchcancel", Ph = function(t2) {
|
|
13955
13906
|
var n2 = e.touchData.start;
|
|
13956
13907
|
e.touchData.capture = false, n2 && n2.unactivate();
|
|
13957
13908
|
});
|
|
13958
|
-
var
|
|
13959
|
-
if (e.registerBinding(t, "touchend",
|
|
13909
|
+
var Fh, Ih, Lh, Rh;
|
|
13910
|
+
if (e.registerBinding(t, "touchend", Fh = function(t2) {
|
|
13960
13911
|
var r2 = e.touchData.start;
|
|
13961
13912
|
if (e.touchData.capture) t2.touches.length === 0 && (e.touchData.capture = false), t2.preventDefault();
|
|
13962
13913
|
else return;
|
|
@@ -14017,33 +13968,30 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
14017
13968
|
x: l2[0],
|
|
14018
13969
|
y: l2[1]
|
|
14019
13970
|
}), r2.unactivate(), e.touchData.start = null;
|
|
14020
|
-
} else
|
|
14021
|
-
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
|
|
14025
|
-
|
|
14026
|
-
|
|
14027
|
-
]
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
});
|
|
14031
|
-
}
|
|
14032
|
-
var C2 = e.touchData.startPosition[0] - l2[0], w2 = C2 * C2, T2 = e.touchData.startPosition[1] - l2[1], E2 = T2 * T2, D2 = (w2 + E2) * c2 * c2;
|
|
13971
|
+
} else a(e.findNearestElement(l2[0], l2[1], true, true), [
|
|
13972
|
+
"touchend",
|
|
13973
|
+
"tapend",
|
|
13974
|
+
"vmouseup",
|
|
13975
|
+
"tapdragout"
|
|
13976
|
+
], t2, {
|
|
13977
|
+
x: l2[0],
|
|
13978
|
+
y: l2[1]
|
|
13979
|
+
});
|
|
13980
|
+
var S2 = e.touchData.startPosition[0] - l2[0], C2 = S2 * S2, w2 = e.touchData.startPosition[1] - l2[1], T2 = (C2 + w2 * w2) * c2 * c2;
|
|
14033
13981
|
e.touchData.singleTouchMoved || (r2 || s2.$(":selected").unselect(["tapunselect"]), a(r2, ["tap", "vclick"], t2, {
|
|
14034
13982
|
x: l2[0],
|
|
14035
13983
|
y: l2[1]
|
|
14036
|
-
}),
|
|
13984
|
+
}), Ih = false, t2.timeStamp - Rh <= s2.multiClickDebounceTime() ? (Lh && clearTimeout(Lh), Ih = true, Rh = null, a(r2, ["dbltap", "vdblclick"], t2, {
|
|
14037
13985
|
x: l2[0],
|
|
14038
13986
|
y: l2[1]
|
|
14039
|
-
})) : (
|
|
14040
|
-
|
|
13987
|
+
})) : (Lh = setTimeout(function() {
|
|
13988
|
+
Ih || a(r2, ["onetap", "voneclick"], t2, {
|
|
14041
13989
|
x: l2[0],
|
|
14042
13990
|
y: l2[1]
|
|
14043
13991
|
});
|
|
14044
|
-
}, s2.multiClickDebounceTime()),
|
|
13992
|
+
}, s2.multiClickDebounceTime()), Rh = t2.timeStamp)), r2 != null && !e.dragData.didDrag && r2._private.selectable && T2 < e.touchTapThreshold2 && !e.pinching && (s2.selectionType() === "single" ? (s2.$(n).unmerge(r2).unselect(["tapunselect"]), r2.select(["tapselect"])) : r2.selected() ? r2.unselect(["tapunselect"]) : r2.select(["tapselect"]), e.redrawHint("eles", true)), e.touchData.singleTouchMoved = true;
|
|
14045
13993
|
}
|
|
14046
|
-
for (var
|
|
13994
|
+
for (var E2 = 0; E2 < l2.length; E2++) u2[E2] = l2[E2];
|
|
14047
13995
|
e.dragData.didDrag = false, t2.touches.length === 0 && (e.touchData.dragDelta = [], e.touchData.startPosition = [
|
|
14048
13996
|
null,
|
|
14049
13997
|
null,
|
|
@@ -14053,7 +14001,7 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
14053
14001
|
null
|
|
14054
14002
|
], e.touchData.startGPosition = null, e.touchData.didSelect = false), t2.touches.length < 2 && (t2.touches.length === 1 && (e.touchData.startGPosition = [t2.touches[0].clientX, t2.touches[0].clientY]), e.pinching = false, e.redrawHint("eles", true), e.redraw());
|
|
14055
14003
|
}, false), typeof TouchEvent > "u") {
|
|
14056
|
-
var
|
|
14004
|
+
var zh = [], Bh = function(e2) {
|
|
14057
14005
|
return {
|
|
14058
14006
|
clientX: e2.clientX,
|
|
14059
14007
|
clientY: e2.clientY,
|
|
@@ -14067,38 +14015,38 @@ BRp$3.registerBinding = function(e, t, n, r) {
|
|
|
14067
14015
|
screenY: e2.screenY,
|
|
14068
14016
|
target: e2.target
|
|
14069
14017
|
};
|
|
14070
|
-
},
|
|
14018
|
+
}, Vh = function(e2) {
|
|
14071
14019
|
return {
|
|
14072
14020
|
event: e2,
|
|
14073
|
-
touch:
|
|
14021
|
+
touch: Bh(e2)
|
|
14074
14022
|
};
|
|
14075
|
-
},
|
|
14076
|
-
|
|
14077
|
-
},
|
|
14078
|
-
for (var t2 = 0; t2 <
|
|
14079
|
-
|
|
14023
|
+
}, Hh = function(e2) {
|
|
14024
|
+
zh.push(Vh(e2));
|
|
14025
|
+
}, Uh = function(e2) {
|
|
14026
|
+
for (var t2 = 0; t2 < zh.length; t2++) if (zh[t2].event.pointerId === e2.pointerId) {
|
|
14027
|
+
zh.splice(t2, 1);
|
|
14080
14028
|
return;
|
|
14081
14029
|
}
|
|
14082
|
-
},
|
|
14083
|
-
var t2 =
|
|
14030
|
+
}, Wh = function(e2) {
|
|
14031
|
+
var t2 = zh.filter(function(t3) {
|
|
14084
14032
|
return t3.event.pointerId === e2.pointerId;
|
|
14085
14033
|
})[0];
|
|
14086
|
-
t2.event = e2, t2.touch =
|
|
14087
|
-
},
|
|
14088
|
-
e2.touches =
|
|
14034
|
+
t2.event = e2, t2.touch = Bh(e2);
|
|
14035
|
+
}, Gh = function(e2) {
|
|
14036
|
+
e2.touches = zh.map(function(e3) {
|
|
14089
14037
|
return e3.touch;
|
|
14090
14038
|
});
|
|
14091
|
-
},
|
|
14039
|
+
}, Kh = function(e2) {
|
|
14092
14040
|
return e2.pointerType === "mouse" || e2.pointerType === 4;
|
|
14093
14041
|
};
|
|
14094
14042
|
e.registerBinding(e.container, "pointerdown", function(e2) {
|
|
14095
|
-
|
|
14043
|
+
Kh(e2) || (e2.preventDefault(), Hh(e2), Gh(e2), Mh(e2));
|
|
14096
14044
|
}), e.registerBinding(e.container, "pointerup", function(e2) {
|
|
14097
|
-
|
|
14045
|
+
Kh(e2) || (Uh(e2), Gh(e2), Fh(e2));
|
|
14098
14046
|
}), e.registerBinding(e.container, "pointercancel", function(e2) {
|
|
14099
|
-
|
|
14047
|
+
Kh(e2) || (Uh(e2), Gh(e2), Ph(e2));
|
|
14100
14048
|
}), e.registerBinding(e.container, "pointermove", function(e2) {
|
|
14101
|
-
|
|
14049
|
+
Kh(e2) || (e2.preventDefault(), Wh(e2), Gh(e2), Nh(e2));
|
|
14102
14050
|
});
|
|
14103
14051
|
}
|
|
14104
14052
|
};
|
|
@@ -14229,13 +14177,13 @@ BRp$2.generatePolygon = function(e, t) {
|
|
|
14229
14177
|
};
|
|
14230
14178
|
},
|
|
14231
14179
|
intersectLine: function(e, t, n, r, a, o, s, c) {
|
|
14232
|
-
var l = this.generateCutTrianglePts(n + 2 * s, r + 2 * s, e, t, c)
|
|
14180
|
+
var l = this.generateCutTrianglePts(n + 2 * s, r + 2 * s, e, t, c);
|
|
14181
|
+
return polygonIntersectLine(a, o, [].concat.apply([], [
|
|
14233
14182
|
l.topLeft.splice(0, 4),
|
|
14234
14183
|
l.topRight.splice(0, 4),
|
|
14235
14184
|
l.bottomRight.splice(0, 4),
|
|
14236
14185
|
l.bottomLeft.splice(0, 4)
|
|
14237
|
-
]);
|
|
14238
|
-
return polygonIntersectLine(a, o, u, e, t);
|
|
14186
|
+
]), e, t);
|
|
14239
14187
|
},
|
|
14240
14188
|
checkPoint: function(e, t, n, r, a, o, s, c) {
|
|
14241
14189
|
var l = c === "auto" ? this.cornerLength : c;
|
|
@@ -14294,8 +14242,8 @@ BRp$2.generatePolygon = function(e, t) {
|
|
|
14294
14242
|
e2[4],
|
|
14295
14243
|
e2[5]
|
|
14296
14244
|
];
|
|
14297
|
-
}
|
|
14298
|
-
return polygonIntersectLine(a, o,
|
|
14245
|
+
};
|
|
14246
|
+
return polygonIntersectLine(a, o, [].concat(m(f.topLeft), m(f.topRight), m(f.bottomRight), m(f.bottomLeft)), e, t);
|
|
14299
14247
|
},
|
|
14300
14248
|
generateBarrelBezierPts: function(e, t, n, r) {
|
|
14301
14249
|
var a = t / 2, o = e / 2, s = n - o, c = n + o, l = r - a, u = r + a, d = getBarrelCurveConstants(e, t), f = d.heightOffset, m = d.widthOffset, h = d.ctrlPtOffsetPct * e, g = {
|
|
@@ -14347,10 +14295,10 @@ BRp$2.generatePolygon = function(e, t) {
|
|
|
14347
14295
|
}
|
|
14348
14296
|
return null;
|
|
14349
14297
|
}, h = Object.keys(f), g = 0; g < h.length; g++) {
|
|
14350
|
-
var _ = h[g], v =
|
|
14351
|
-
if (
|
|
14352
|
-
var
|
|
14353
|
-
if (
|
|
14298
|
+
var _ = f[h[g]], v = m(e, t, _);
|
|
14299
|
+
if (v != null) {
|
|
14300
|
+
var b = _[5], S = _[3], C = _[1], w = qbezierAt(b, S, C, v);
|
|
14301
|
+
if (_.isTop && w <= t || _.isBottom && t <= w) return true;
|
|
14354
14302
|
}
|
|
14355
14303
|
}
|
|
14356
14304
|
return false;
|
|
@@ -14365,14 +14313,15 @@ BRp$2.generatePolygon = function(e, t) {
|
|
|
14365
14313
|
this.renderer.nodeShapeImpl(this.name, e, t, n, r, a, this.points, o);
|
|
14366
14314
|
},
|
|
14367
14315
|
intersectLine: function(e, t, n, r, a, o, s, c) {
|
|
14368
|
-
var l = e - (n / 2 + s), u = t - (r / 2 + s), d = u, f =
|
|
14369
|
-
return
|
|
14316
|
+
var l = e - (n / 2 + s), u = t - (r / 2 + s), d = u, f = finiteLinesIntersect(a, o, e, t, l, u, e + (n / 2 + s), d, false);
|
|
14317
|
+
return f.length > 0 ? f : roundRectangleIntersectLine(a, o, e, t, n, r, s, c);
|
|
14370
14318
|
},
|
|
14371
14319
|
checkPoint: function(e, t, n, r, a, o, s, c) {
|
|
14372
14320
|
c = c === "auto" ? getRoundRectangleRadius(r, a) : c;
|
|
14373
14321
|
var l = 2 * c;
|
|
14374
14322
|
if (pointInsidePolygon(e, t, this.points, o, s, r, a - l, [0, -1], n) || pointInsidePolygon(e, t, this.points, o, s, r - l, a, [0, -1], n)) return true;
|
|
14375
|
-
var u = r / 2 + 2 * n, d = a / 2 + 2 * n
|
|
14323
|
+
var u = r / 2 + 2 * n, d = a / 2 + 2 * n;
|
|
14324
|
+
return !!(pointInsidePolygonPoints(e, t, [
|
|
14376
14325
|
o - u,
|
|
14377
14326
|
s - d,
|
|
14378
14327
|
o - u,
|
|
@@ -14381,8 +14330,7 @@ BRp$2.generatePolygon = function(e, t) {
|
|
|
14381
14330
|
s,
|
|
14382
14331
|
o + u,
|
|
14383
14332
|
s - d
|
|
14384
|
-
];
|
|
14385
|
-
return !!(pointInsidePolygonPoints(e, t, f) || checkInEllipse(e, t, l, l, o + r / 2 - c, s + a / 2 - c, n) || checkInEllipse(e, t, l, l, o - r / 2 + c, s + a / 2 - c, n));
|
|
14333
|
+
]) || checkInEllipse(e, t, l, l, o + r / 2 - c, s + a / 2 - c, n) || checkInEllipse(e, t, l, l, o - r / 2 + c, s + a / 2 - c, n));
|
|
14386
14334
|
}
|
|
14387
14335
|
};
|
|
14388
14336
|
}, BRp$2.registerNodeShapes = function() {
|
|
@@ -14695,8 +14643,8 @@ var fullFpsTime = 1e3 / 60, defs = { setupDequeueing: function(e) {
|
|
|
14695
14643
|
{
|
|
14696
14644
|
key: "keyHasChangedFor",
|
|
14697
14645
|
value: function(e2) {
|
|
14698
|
-
var t = e2.id()
|
|
14699
|
-
return
|
|
14646
|
+
var t = e2.id();
|
|
14647
|
+
return this.keyForId.get(t) !== this.getKey(e2);
|
|
14700
14648
|
}
|
|
14701
14649
|
},
|
|
14702
14650
|
{
|
|
@@ -14958,10 +14906,7 @@ ETCp.reasons = getTxrReasons, ETCp.getTextureQueue = function(e) {
|
|
|
14958
14906
|
}
|
|
14959
14907
|
},
|
|
14960
14908
|
shouldRedraw: function(e, t, n, r) {
|
|
14961
|
-
for (var a = 0; a < t.length; a++) for (var o = t[a].eles, s = 0; s < o.length; s++)
|
|
14962
|
-
var c = o[s].boundingBox();
|
|
14963
|
-
if (boundingBoxesIntersect(c, r)) return true;
|
|
14964
|
-
}
|
|
14909
|
+
for (var a = 0; a < t.length; a++) for (var o = t[a].eles, s = 0; s < o.length; s++) if (boundingBoxesIntersect(o[s].boundingBox(), r)) return true;
|
|
14965
14910
|
return false;
|
|
14966
14911
|
},
|
|
14967
14912
|
priority: function(e) {
|
|
@@ -15318,8 +15263,8 @@ CRp$9.drawEdge = function(e, t, n) {
|
|
|
15318
15263
|
s.drawElementText(e, t, null, r);
|
|
15319
15264
|
};
|
|
15320
15265
|
if (e.lineJoin = "round", t.pstyle("ghost").value === "yes") {
|
|
15321
|
-
var k = t.pstyle("ghost-offset-x").pfValue, A = t.pstyle("ghost-offset-y").pfValue, j = t.pstyle("ghost-opacity").value
|
|
15322
|
-
e.translate(k, A), C(
|
|
15266
|
+
var k = t.pstyle("ghost-offset-x").pfValue, A = t.pstyle("ghost-offset-y").pfValue, j = b * t.pstyle("ghost-opacity").value;
|
|
15267
|
+
e.translate(k, A), C(j), D(j), e.translate(-k, -A);
|
|
15323
15268
|
} else w();
|
|
15324
15269
|
E(), C(), D(), T(), O(), n && e.translate(l.x1, l.y1);
|
|
15325
15270
|
}
|
|
@@ -15460,8 +15405,7 @@ CRp$7.eleTextBiggerThanMin = function(e, t) {
|
|
|
15460
15405
|
var n = e.cy().zoom(), r = this.getPixelRatio();
|
|
15461
15406
|
t = 2 ** Math.ceil(log2(n * r));
|
|
15462
15407
|
}
|
|
15463
|
-
|
|
15464
|
-
return !(a < o);
|
|
15408
|
+
return !(e.pstyle("font-size").pfValue * t < e.pstyle("min-zoomed-font-size").pfValue);
|
|
15465
15409
|
}, CRp$7.drawElementText = function(e, t, n, r, a) {
|
|
15466
15410
|
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : true, s = this;
|
|
15467
15411
|
if (r == null) {
|
|
@@ -15610,10 +15554,10 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15610
15554
|
}, Q = t.pstyle("shape").strValue, $ = t.pstyle("shape-polygon-points").pfValue;
|
|
15611
15555
|
if (h) {
|
|
15612
15556
|
e.translate(f.x, f.y);
|
|
15613
|
-
var
|
|
15614
|
-
g =
|
|
15557
|
+
var Dh = Z(c, l, Q, $);
|
|
15558
|
+
g = Dh.path, _ = Dh.cacheHit;
|
|
15615
15559
|
}
|
|
15616
|
-
var
|
|
15560
|
+
var Oh = function() {
|
|
15617
15561
|
if (!_) {
|
|
15618
15562
|
var n2 = f;
|
|
15619
15563
|
h && (n2 = {
|
|
@@ -15622,7 +15566,7 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15622
15566
|
}), s.nodeShapes[s.getNodeShape(t)].draw(g || e, n2.x, n2.y, c, l, q, d);
|
|
15623
15567
|
}
|
|
15624
15568
|
h ? e.fill(g) : e.fill();
|
|
15625
|
-
},
|
|
15569
|
+
}, kh = function() {
|
|
15626
15570
|
for (var n2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m, r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true, a2 = u.backgrounding, o2 = 0, c2 = 0; c2 < w.length; c2++) {
|
|
15627
15571
|
var l2 = t.cy().style().getIndexedStyle(t, "background-image-containment", "value", c2);
|
|
15628
15572
|
if (r2 && l2 === "over" || !r2 && l2 === "inside") {
|
|
@@ -15632,16 +15576,16 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15632
15576
|
C[c2] && w[c2].complete && !w[c2].error && (o2++, s.drawInscribedImage(e, w[c2], t, c2, n2));
|
|
15633
15577
|
}
|
|
15634
15578
|
u.backgrounding = o2 !== T, a2 !== u.backgrounding && t.updateStyle(false);
|
|
15635
|
-
},
|
|
15579
|
+
}, Ah = function() {
|
|
15636
15580
|
var n2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false, r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m;
|
|
15637
15581
|
s.hasPie(t) && (s.drawPie(e, t, r2), n2 && (h || s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d)));
|
|
15638
|
-
},
|
|
15582
|
+
}, jh = function() {
|
|
15639
15583
|
var n2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false, r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : m;
|
|
15640
15584
|
s.hasStripe(t) && (e.save(), h ? e.clip(d.pathCache) : (s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d), e.clip()), s.drawStripe(e, t, r2), e.restore(), n2 && (h || s.nodeShapes[s.getNodeShape(t)].draw(e, f.x, f.y, c, l, q, d)));
|
|
15641
|
-
},
|
|
15585
|
+
}, Mh = function() {
|
|
15642
15586
|
var t2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : m, n2 = (k > 0 ? k : -k) * t2, r2 = k > 0 ? 0 : 255;
|
|
15643
15587
|
k !== 0 && (s.colorFillStyle(e, r2, r2, r2, n2), h ? e.fill(g) : e.fill());
|
|
15644
|
-
},
|
|
15588
|
+
}, Nh = function() {
|
|
15645
15589
|
if (A > 0) {
|
|
15646
15590
|
if (e.lineWidth = A, e.lineCap = I, e.lineJoin = F, e.setLineDash) switch (N) {
|
|
15647
15591
|
case "dotted":
|
|
@@ -15670,7 +15614,7 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15670
15614
|
}
|
|
15671
15615
|
e.setLineDash && e.setLineDash([]);
|
|
15672
15616
|
}
|
|
15673
|
-
},
|
|
15617
|
+
}, Ph = function() {
|
|
15674
15618
|
if (V > 0) {
|
|
15675
15619
|
if (e.lineWidth = V, e.lineCap = "butt", e.setLineDash) switch (U) {
|
|
15676
15620
|
case "dotted":
|
|
@@ -15736,18 +15680,18 @@ CRp$6.drawNode = function(e, t, n) {
|
|
|
15736
15680
|
}
|
|
15737
15681
|
e.setLineDash && e.setLineDash([]);
|
|
15738
15682
|
}
|
|
15739
|
-
},
|
|
15683
|
+
}, Fh = function() {
|
|
15740
15684
|
a && s.drawNodeOverlay(e, t, f, c, l);
|
|
15741
|
-
},
|
|
15685
|
+
}, Ih = function() {
|
|
15742
15686
|
a && s.drawNodeUnderlay(e, t, f, c, l);
|
|
15743
|
-
},
|
|
15687
|
+
}, Lh = function() {
|
|
15744
15688
|
s.drawElementText(e, t, null, r);
|
|
15745
15689
|
};
|
|
15746
15690
|
if (t.pstyle("ghost").value === "yes") {
|
|
15747
|
-
var
|
|
15748
|
-
e.translate(
|
|
15691
|
+
var Rh = t.pstyle("ghost-offset-x").pfValue, zh = t.pstyle("ghost-offset-y").pfValue, Bh = t.pstyle("ghost-opacity").value, Vh = Bh * m;
|
|
15692
|
+
e.translate(Rh, zh), X(), Ph(), J(Bh * j), Oh(), kh(Vh, true), Y(Bh * B), Nh(), Ah(k !== 0 || A !== 0), jh(k !== 0 || A !== 0), kh(Vh, false), Mh(Vh), e.translate(-Rh, -zh);
|
|
15749
15693
|
}
|
|
15750
|
-
h && e.translate(-f.x, -f.y),
|
|
15694
|
+
h && e.translate(-f.x, -f.y), Ih(), h && e.translate(f.x, f.y), X(), Ph(), J(), Oh(), kh(m, true), Y(), Nh(), Ah(k !== 0 || A !== 0), jh(k !== 0 || A !== 0), kh(m, false), Mh(), h && e.translate(-f.x, -f.y), Lh(), Fh(), n && e.translate(b.x1, b.y1);
|
|
15751
15695
|
}
|
|
15752
15696
|
};
|
|
15753
15697
|
var drawNodeOverlayUnderlay = function(e) {
|
|
@@ -16149,21 +16093,21 @@ function createTypedArrayView(e, t, n, r, a, o) {
|
|
|
16149
16093
|
}
|
|
16150
16094
|
}
|
|
16151
16095
|
function createBufferStaticDraw(e, t, n, r) {
|
|
16152
|
-
var a = getTypeInfo(e, t),
|
|
16153
|
-
return e.bindBuffer(e.ARRAY_BUFFER,
|
|
16096
|
+
var a = _slicedToArray(getTypeInfo(e, t), 2), o = a[0], s = a[1], c = createTypedArray(e, s, r), l = e.createBuffer();
|
|
16097
|
+
return e.bindBuffer(e.ARRAY_BUFFER, l), e.bufferData(e.ARRAY_BUFFER, c, e.STATIC_DRAW), s === e.FLOAT ? e.vertexAttribPointer(n, o, s, false, 0, 0) : s === e.INT && e.vertexAttribIPointer(n, o, s, 0, 0), e.enableVertexAttribArray(n), e.bindBuffer(e.ARRAY_BUFFER, null), l;
|
|
16154
16098
|
}
|
|
16155
16099
|
function createBufferDynamicDraw(e, t, n, r) {
|
|
16156
|
-
var a = getTypeInfo(e, n),
|
|
16157
|
-
e.bindBuffer(e.ARRAY_BUFFER,
|
|
16158
|
-
for (var
|
|
16159
|
-
return
|
|
16160
|
-
return
|
|
16161
|
-
},
|
|
16162
|
-
var r2 =
|
|
16100
|
+
var a = _slicedToArray(getTypeInfo(e, n), 3), o = a[0], s = a[1], c = a[2], l = createTypedArray(e, s, t * o), u = o * c, d = e.createBuffer();
|
|
16101
|
+
e.bindBuffer(e.ARRAY_BUFFER, d), e.bufferData(e.ARRAY_BUFFER, t * u, e.DYNAMIC_DRAW), e.enableVertexAttribArray(r), s === e.FLOAT ? e.vertexAttribPointer(r, o, s, false, u, 0) : s === e.INT && e.vertexAttribIPointer(r, o, s, u, 0), e.vertexAttribDivisor(r, 1), e.bindBuffer(e.ARRAY_BUFFER, null);
|
|
16102
|
+
for (var f = Array(t), h = 0; h < t; h++) f[h] = createTypedArrayView(e, s, l, u, o, h);
|
|
16103
|
+
return d.dataArray = l, d.stride = u, d.size = o, d.getView = function(e2) {
|
|
16104
|
+
return f[e2];
|
|
16105
|
+
}, d.setPoint = function(e2, t2, n2) {
|
|
16106
|
+
var r2 = f[e2];
|
|
16163
16107
|
r2[0] = t2, r2[1] = n2;
|
|
16164
|
-
},
|
|
16165
|
-
e.bindBuffer(e.ARRAY_BUFFER,
|
|
16166
|
-
},
|
|
16108
|
+
}, d.bufferSubData = function(t2) {
|
|
16109
|
+
e.bindBuffer(e.ARRAY_BUFFER, d), t2 ? e.bufferSubData(e.ARRAY_BUFFER, 0, l, 0, t2 * o) : e.bufferSubData(e.ARRAY_BUFFER, 0, l);
|
|
16110
|
+
}, d;
|
|
16167
16111
|
}
|
|
16168
16112
|
function create3x3MatrixBufferDynamicDraw(e, t, n) {
|
|
16169
16113
|
for (var r = 9, a = new Float32Array(t * r), o = Array(t), s = 0; s < t; s++) {
|
|
@@ -16360,8 +16304,8 @@ var Atlas = /* @__PURE__ */ (function() {
|
|
|
16360
16304
|
key: "_getScratchCanvas",
|
|
16361
16305
|
value: function() {
|
|
16362
16306
|
if (!this.scratch) {
|
|
16363
|
-
var e2 = this.r, t = this.texSize, n = this.texRows, r = this.createTextureCanvas
|
|
16364
|
-
this.scratch = r(e2, t,
|
|
16307
|
+
var e2 = this.r, t = this.texSize, n = this.texRows, r = this.createTextureCanvas;
|
|
16308
|
+
this.scratch = r(e2, t, Math.floor(t / n), "scratch");
|
|
16365
16309
|
}
|
|
16366
16310
|
return this.scratch;
|
|
16367
16311
|
}
|
|
@@ -16412,10 +16356,10 @@ var Atlas = /* @__PURE__ */ (function() {
|
|
|
16412
16356
|
for (d.s(); !(f = d.n()).done; ) {
|
|
16413
16357
|
var h = f.value;
|
|
16414
16358
|
if (!u.has(h)) {
|
|
16415
|
-
var g = o2.getOffsets(h),
|
|
16359
|
+
var g = _slicedToArray(o2.getOffsets(h), 2), _ = g[0], v = g[1];
|
|
16416
16360
|
a.canFit({
|
|
16417
|
-
w:
|
|
16418
|
-
h:
|
|
16361
|
+
w: _.w + v.w,
|
|
16362
|
+
h: _.h
|
|
16419
16363
|
}) || (a.lock(), a = e2._createAtlas(), n.push(a)), o2.canvas && (e2._copyTextureToNewAtlas(h, o2, a), r.set(h, a));
|
|
16420
16364
|
}
|
|
16421
16365
|
}
|
|
@@ -16438,19 +16382,19 @@ var Atlas = /* @__PURE__ */ (function() {
|
|
|
16438
16382
|
{
|
|
16439
16383
|
key: "_copyTextureToNewAtlas",
|
|
16440
16384
|
value: function(e2, t, n) {
|
|
16441
|
-
var r = t.getOffsets(e2),
|
|
16442
|
-
if (
|
|
16443
|
-
e3.drawImage(t.canvas,
|
|
16385
|
+
var r = _slicedToArray(t.getOffsets(e2), 2), a = r[0], o = r[1];
|
|
16386
|
+
if (o.w === 0) n.draw(e2, a, function(e3) {
|
|
16387
|
+
e3.drawImage(t.canvas, a.x, a.y, a.w, a.h, 0, 0, a.w, a.h);
|
|
16444
16388
|
});
|
|
16445
16389
|
else {
|
|
16446
|
-
var
|
|
16447
|
-
|
|
16448
|
-
var
|
|
16390
|
+
var s = this._getScratchCanvas();
|
|
16391
|
+
s.clear(), s.context.drawImage(t.canvas, a.x, a.y, a.w, a.h, 0, 0, a.w, a.h), s.context.drawImage(t.canvas, o.x, o.y, o.w, o.h, a.w, 0, o.w, o.h);
|
|
16392
|
+
var c = a.w + o.w, l = a.h;
|
|
16449
16393
|
n.draw(e2, {
|
|
16450
|
-
w:
|
|
16451
|
-
h:
|
|
16394
|
+
w: c,
|
|
16395
|
+
h: l
|
|
16452
16396
|
}, function(e3) {
|
|
16453
|
-
e3.drawImage(
|
|
16397
|
+
e3.drawImage(s, 0, 0, c, l, 0, 0, c, l);
|
|
16454
16398
|
});
|
|
16455
16399
|
}
|
|
16456
16400
|
}
|
|
@@ -16494,11 +16438,11 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
16494
16438
|
value: function(e2, t) {
|
|
16495
16439
|
var n = t.collection;
|
|
16496
16440
|
if (!this.collections.has(n)) throw Error(`invalid atlas collection name '${n}'`);
|
|
16497
|
-
var r =
|
|
16441
|
+
var r = extend({
|
|
16498
16442
|
type: e2,
|
|
16499
|
-
atlasCollection:
|
|
16443
|
+
atlasCollection: this.collections.get(n)
|
|
16500
16444
|
}, t);
|
|
16501
|
-
this.renderTypes.set(e2,
|
|
16445
|
+
this.renderTypes.set(e2, r);
|
|
16502
16446
|
}
|
|
16503
16447
|
},
|
|
16504
16448
|
{
|
|
@@ -16604,12 +16548,12 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
16604
16548
|
value: function(e2, t) {
|
|
16605
16549
|
var n = this, r = this.renderTypes.get(t), a = r.getKey(e2);
|
|
16606
16550
|
return (Array.isArray(a) ? a : [a]).map(function(a2) {
|
|
16607
|
-
var o = r.getBoundingBox(e2, a2), s = n.getOrCreateAtlas(e2, t, o, a2), c = s.getOffsets(a2),
|
|
16551
|
+
var o = r.getBoundingBox(e2, a2), s = n.getOrCreateAtlas(e2, t, o, a2), c = _slicedToArray(s.getOffsets(a2), 2), l = c[0];
|
|
16608
16552
|
return {
|
|
16609
16553
|
atlas: s,
|
|
16610
|
-
tex:
|
|
16611
|
-
tex1:
|
|
16612
|
-
tex2:
|
|
16554
|
+
tex: l,
|
|
16555
|
+
tex1: l,
|
|
16556
|
+
tex2: c[1],
|
|
16613
16557
|
bb: o
|
|
16614
16558
|
};
|
|
16615
16559
|
});
|
|
@@ -16919,7 +16863,7 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
16919
16863
|
vVertType = aVertType;
|
|
16920
16864
|
vIndex = aIndex;
|
|
16921
16865
|
}
|
|
16922
|
-
`, r = this.batchManager.getIndexArray(), a = `#version 300 es
|
|
16866
|
+
`, r = this.batchManager.getIndexArray(), a = createProgram(t, n, `#version 300 es
|
|
16923
16867
|
precision highp float;
|
|
16924
16868
|
|
|
16925
16869
|
// declare texture unit for each texture atlas in the batch
|
|
@@ -17033,10 +16977,10 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
17033
16977
|
|
|
17034
16978
|
${e2.picking ? "if(outColor.a == 0.0) discard;\n else outColor = vIndex;" : ""}
|
|
17035
16979
|
}
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
for (var
|
|
17039
|
-
return
|
|
16980
|
+
`);
|
|
16981
|
+
a.aPosition = t.getAttribLocation(a, "aPosition"), a.aIndex = t.getAttribLocation(a, "aIndex"), a.aVertType = t.getAttribLocation(a, "aVertType"), a.aTransform = t.getAttribLocation(a, "aTransform"), a.aAtlasId = t.getAttribLocation(a, "aAtlasId"), a.aTex = t.getAttribLocation(a, "aTex"), a.aPointAPointB = t.getAttribLocation(a, "aPointAPointB"), a.aPointCPointD = t.getAttribLocation(a, "aPointCPointD"), a.aLineWidth = t.getAttribLocation(a, "aLineWidth"), a.aColor = t.getAttribLocation(a, "aColor"), a.aCornerRadius = t.getAttribLocation(a, "aCornerRadius"), a.aBorderColor = t.getAttribLocation(a, "aBorderColor"), a.uPanZoomMatrix = t.getUniformLocation(a, "uPanZoomMatrix"), a.uAtlasSize = t.getUniformLocation(a, "uAtlasSize"), a.uBGColor = t.getUniformLocation(a, "uBGColor"), a.uZoom = t.getUniformLocation(a, "uZoom"), a.uTextures = [];
|
|
16982
|
+
for (var o = 0; o < this.batchManager.getMaxAtlasesPerBatch(); o++) a.uTextures.push(t.getUniformLocation(a, `uTexture${o}`));
|
|
16983
|
+
return a;
|
|
17040
16984
|
}
|
|
17041
16985
|
},
|
|
17042
16986
|
{
|
|
@@ -17110,31 +17054,29 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
17110
17054
|
return;
|
|
17111
17055
|
}
|
|
17112
17056
|
}
|
|
17113
|
-
var l = r.getAtlasInfo(e2, n), u
|
|
17057
|
+
var l = _createForOfIteratorHelper(r.getAtlasInfo(e2, n)), u;
|
|
17114
17058
|
try {
|
|
17115
|
-
for (
|
|
17116
|
-
var
|
|
17117
|
-
a.canAddToCurrentBatch(
|
|
17118
|
-
for (var
|
|
17119
|
-
var
|
|
17120
|
-
if (
|
|
17121
|
-
var
|
|
17122
|
-
this.vertTypeBuffer.getView(
|
|
17123
|
-
var
|
|
17124
|
-
|
|
17125
|
-
var
|
|
17126
|
-
|
|
17127
|
-
var
|
|
17128
|
-
|
|
17129
|
-
var A = this.transformBuffer.getMatrixView(E);
|
|
17130
|
-
this.setTransformMatrix(e2, A, o, f, T), this.instanceCount++, T || this.wrappedCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17059
|
+
for (l.s(); !(u = l.n()).done; ) {
|
|
17060
|
+
var d = u.value, f = d.atlas, h = d.tex1, g = d.tex2;
|
|
17061
|
+
a.canAddToCurrentBatch(f) || this.endBatch();
|
|
17062
|
+
for (var _ = a.getAtlasIndexForBatch(f), v = 0, b = [[h, true], [g, false]]; v < b.length; v++) {
|
|
17063
|
+
var S = _slicedToArray(b[v], 2), C = S[0], w = S[1];
|
|
17064
|
+
if (C.w != 0) {
|
|
17065
|
+
var T = this.instanceCount;
|
|
17066
|
+
this.vertTypeBuffer.getView(T)[0] = TEXTURE, indexToVec4(t, this.indexBuffer.getView(T));
|
|
17067
|
+
var E = this.atlasIdBuffer.getView(T);
|
|
17068
|
+
E[0] = _;
|
|
17069
|
+
var D = this.texBuffer.getView(T);
|
|
17070
|
+
D[0] = C.x, D[1] = C.y, D[2] = C.w, D[3] = C.h;
|
|
17071
|
+
var O = this.transformBuffer.getMatrixView(T);
|
|
17072
|
+
this.setTransformMatrix(e2, O, o, d, w), this.instanceCount++, w || this.wrappedCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17131
17073
|
}
|
|
17132
17074
|
}
|
|
17133
17075
|
}
|
|
17134
17076
|
} catch (e3) {
|
|
17135
|
-
|
|
17077
|
+
l.e(e3);
|
|
17136
17078
|
} finally {
|
|
17137
|
-
|
|
17079
|
+
l.f();
|
|
17138
17080
|
}
|
|
17139
17081
|
}
|
|
17140
17082
|
}
|
|
@@ -17189,17 +17131,13 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
17189
17131
|
key: "drawPickingRectangle",
|
|
17190
17132
|
value: function(e2, t, n) {
|
|
17191
17133
|
var r = this.atlasManager.getRenderTypeOpts(n), a = this.instanceCount;
|
|
17192
|
-
this.vertTypeBuffer.getView(a)[0] = RECTANGLE
|
|
17193
|
-
var o = this.indexBuffer.getView(a);
|
|
17194
|
-
indexToVec4(t, o);
|
|
17195
|
-
var s = this.colorBuffer.getView(a);
|
|
17196
|
-
toWebGLColor([
|
|
17134
|
+
this.vertTypeBuffer.getView(a)[0] = RECTANGLE, indexToVec4(t, this.indexBuffer.getView(a)), toWebGLColor([
|
|
17197
17135
|
0,
|
|
17198
17136
|
0,
|
|
17199
17137
|
0
|
|
17200
|
-
], 1,
|
|
17201
|
-
var
|
|
17202
|
-
this.setTransformMatrix(e2,
|
|
17138
|
+
], 1, this.colorBuffer.getView(a));
|
|
17139
|
+
var o = this.transformBuffer.getMatrixView(a);
|
|
17140
|
+
this.setTransformMatrix(e2, o, r), this.simpleCount++, this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17203
17141
|
}
|
|
17204
17142
|
},
|
|
17205
17143
|
{
|
|
@@ -17217,27 +17155,26 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
17217
17155
|
var c = r.getBoundingBox(e2), l = this._getCornerRadius(e2, a.radius, c), u = this.cornerRadiusBuffer.getView(s);
|
|
17218
17156
|
u[0] = l, u[1] = l, u[2] = l, u[3] = l, o === BOTTOM_ROUND_RECTANGLE && (u[0] = 0, u[2] = 0);
|
|
17219
17157
|
}
|
|
17220
|
-
|
|
17221
|
-
|
|
17222
|
-
|
|
17223
|
-
|
|
17224
|
-
|
|
17225
|
-
|
|
17226
|
-
|
|
17227
|
-
|
|
17228
|
-
|
|
17229
|
-
|
|
17230
|
-
|
|
17231
|
-
if (
|
|
17232
|
-
else if (C === "outside") g[0] = _, g[1] = 0;
|
|
17158
|
+
indexToVec4(t, this.indexBuffer.getView(s));
|
|
17159
|
+
var d = e2.pstyle(a.color).value, f = e2.pstyle(a.opacity).value;
|
|
17160
|
+
toWebGLColor(d, f, this.colorBuffer.getView(s));
|
|
17161
|
+
var m = this.lineWidthBuffer.getView(s);
|
|
17162
|
+
if (m[0] = 0, m[1] = 0, a.border) {
|
|
17163
|
+
var h = e2.pstyle("border-width").value;
|
|
17164
|
+
if (h > 0) {
|
|
17165
|
+
var g = e2.pstyle("border-color").value, _ = e2.pstyle("border-opacity").value;
|
|
17166
|
+
toWebGLColor(g, _, this.borderColorBuffer.getView(s));
|
|
17167
|
+
var v = e2.pstyle("border-position").value;
|
|
17168
|
+
if (v === "inside") m[0] = 0, m[1] = -h;
|
|
17169
|
+
else if (v === "outside") m[0] = h, m[1] = 0;
|
|
17233
17170
|
else {
|
|
17234
|
-
var
|
|
17235
|
-
|
|
17171
|
+
var b = h / 2;
|
|
17172
|
+
m[0] = b, m[1] = -b;
|
|
17236
17173
|
}
|
|
17237
17174
|
}
|
|
17238
17175
|
}
|
|
17239
|
-
var
|
|
17240
|
-
this.setTransformMatrix(e2,
|
|
17176
|
+
var S = this.transformBuffer.getMatrixView(s);
|
|
17177
|
+
this.setTransformMatrix(e2, S, r), this.simpleCount++, this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17241
17178
|
}
|
|
17242
17179
|
}
|
|
17243
17180
|
},
|
|
@@ -17274,12 +17211,8 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
17274
17211
|
if (e2.visible()) {
|
|
17275
17212
|
var r = e2._private.rscratch, a, o, s;
|
|
17276
17213
|
if (n === "source" ? (a = r.arrowStartX, o = r.arrowStartY, s = r.srcArrowAngle) : (a = r.arrowEndX, o = r.arrowEndY, s = r.tgtArrowAngle), !(isNaN(a) || a == null || isNaN(o) || o == null || isNaN(s) || s == null) && e2.pstyle(n + "-arrow-shape").value !== "none") {
|
|
17277
|
-
var c = e2.pstyle(n + "-arrow-color").value, l = e2.pstyle("opacity").value
|
|
17278
|
-
identity(
|
|
17279
|
-
var v = this.indexBuffer.getView(g);
|
|
17280
|
-
indexToVec4(t, v);
|
|
17281
|
-
var b = this.colorBuffer.getView(g);
|
|
17282
|
-
toWebGLColor(c, d, b), this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17214
|
+
var c = e2.pstyle(n + "-arrow-color").value, l = e2.pstyle("opacity").value * e2.pstyle("line-opacity").value, u = e2.pstyle("width").pfValue, d = e2.pstyle("arrow-scale").value, f = this.r.getArrowWidth(u, d), m = this.instanceCount, h = this.transformBuffer.getMatrixView(m);
|
|
17215
|
+
identity(h), translate(h, h, [a, o]), scale(h, h, [f, f]), rotate(h, h, s), this.vertTypeBuffer.getView(m)[0] = EDGE_ARROW, indexToVec4(t, this.indexBuffer.getView(m)), toWebGLColor(c, l, this.colorBuffer.getView(m)), this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17283
17216
|
}
|
|
17284
17217
|
}
|
|
17285
17218
|
}
|
|
@@ -17293,30 +17226,22 @@ var AtlasManager = /* @__PURE__ */ (function() {
|
|
|
17293
17226
|
var r = e2.pstyle("opacity").value, a = e2.pstyle("line-opacity").value, o = e2.pstyle("width").pfValue, s = e2.pstyle("line-color").value, c = r * a;
|
|
17294
17227
|
if (n.length / 2 + this.instanceCount > this.maxInstances && this.endBatch(), n.length == 4) {
|
|
17295
17228
|
var l = this.instanceCount;
|
|
17296
|
-
this.vertTypeBuffer.getView(l)[0] = EDGE_STRAIGHT;
|
|
17297
|
-
var u = this.
|
|
17298
|
-
|
|
17299
|
-
var d = this.
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
|
|
17306
|
-
var g =
|
|
17307
|
-
|
|
17308
|
-
var
|
|
17309
|
-
|
|
17310
|
-
var
|
|
17311
|
-
|
|
17312
|
-
var b = this.lineWidthBuffer.getView(g);
|
|
17313
|
-
b[0] = o;
|
|
17314
|
-
var S = n[h - 2], C = n[h - 1], w = n[h], T = n[h + 1], E = n[h + 2], D = n[h + 3], O = n[h + 4], k = n[h + 5];
|
|
17315
|
-
h == 0 && (S = 2 * w - E + 1e-3, C = 2 * T - D + 1e-3), h == n.length - 4 && (O = 2 * E - w + 1e-3, k = 2 * D - T + 1e-3);
|
|
17316
|
-
var A = this.pointAPointBBuffer.getView(g);
|
|
17317
|
-
A[0] = S, A[1] = C, A[2] = w, A[3] = T;
|
|
17318
|
-
var j = this.pointCPointDBuffer.getView(g);
|
|
17319
|
-
j[0] = E, j[1] = D, j[2] = O, j[3] = k, this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17229
|
+
this.vertTypeBuffer.getView(l)[0] = EDGE_STRAIGHT, indexToVec4(t, this.indexBuffer.getView(l)), toWebGLColor(s, c, this.colorBuffer.getView(l));
|
|
17230
|
+
var u = this.lineWidthBuffer.getView(l);
|
|
17231
|
+
u[0] = o;
|
|
17232
|
+
var d = this.pointAPointBBuffer.getView(l);
|
|
17233
|
+
d[0] = n[0], d[1] = n[1], d[2] = n[2], d[3] = n[3], this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17234
|
+
} else for (var f = 0; f < n.length - 2; f += 2) {
|
|
17235
|
+
var m = this.instanceCount;
|
|
17236
|
+
this.vertTypeBuffer.getView(m)[0] = EDGE_CURVE_SEGMENT, indexToVec4(t, this.indexBuffer.getView(m)), toWebGLColor(s, c, this.colorBuffer.getView(m));
|
|
17237
|
+
var h = this.lineWidthBuffer.getView(m);
|
|
17238
|
+
h[0] = o;
|
|
17239
|
+
var g = n[f - 2], _ = n[f - 1], v = n[f], b = n[f + 1], S = n[f + 2], C = n[f + 3], w = n[f + 4], T = n[f + 5];
|
|
17240
|
+
f == 0 && (g = 2 * v - S + 1e-3, _ = 2 * b - C + 1e-3), f == n.length - 4 && (w = 2 * S - v + 1e-3, T = 2 * C - b + 1e-3);
|
|
17241
|
+
var E = this.pointAPointBBuffer.getView(m);
|
|
17242
|
+
E[0] = g, E[1] = _, E[2] = v, E[3] = b;
|
|
17243
|
+
var D = this.pointCPointDBuffer.getView(m);
|
|
17244
|
+
D[0] = S, D[1] = C, D[2] = w, D[3] = T, this.instanceCount++, this.instanceCount >= this.maxInstances && this.endBatch();
|
|
17320
17245
|
}
|
|
17321
17246
|
}
|
|
17322
17247
|
}
|
|
@@ -17525,8 +17450,8 @@ CRp$4.initWebgl = function(e, t) {
|
|
|
17525
17450
|
}), overrideCanvasRendererFunctions(n);
|
|
17526
17451
|
};
|
|
17527
17452
|
function getBGColor(e) {
|
|
17528
|
-
var t = e.cy.container()
|
|
17529
|
-
return color2tuple(
|
|
17453
|
+
var t = e.cy.container();
|
|
17454
|
+
return color2tuple(t && t.style && t.style.backgroundColor || "white");
|
|
17530
17455
|
}
|
|
17531
17456
|
function getLabelLines(e, t) {
|
|
17532
17457
|
var n = e._private.rscratch;
|
|
@@ -17624,24 +17549,24 @@ function drawAtlases(e) {
|
|
|
17624
17549
|
t(e.drawing, "node", n++), t(e.drawing, "label", n++);
|
|
17625
17550
|
}
|
|
17626
17551
|
function getPickingIndexes(e, t, n, r, a) {
|
|
17627
|
-
var o, s, c, l, u = getEffectivePanZoom(e), d = u.pan, f = u.zoom, h = modelToRenderedPosition(e, d, f, t, n),
|
|
17628
|
-
if (o =
|
|
17629
|
-
var
|
|
17630
|
-
|
|
17631
|
-
var
|
|
17632
|
-
|
|
17633
|
-
for (var
|
|
17634
|
-
var
|
|
17635
|
-
|
|
17636
|
-
}
|
|
17637
|
-
return
|
|
17552
|
+
var o, s, c, l, u = getEffectivePanZoom(e), d = u.pan, f = u.zoom, h = _slicedToArray(modelToRenderedPosition(e, d, f, t, n), 2), g = h[0], _ = h[1], v = 6;
|
|
17553
|
+
if (o = g - v / 2, s = _ - v / 2, c = v, l = v, c === 0 || l === 0) return [];
|
|
17554
|
+
var b = e.data.contexts[e.WEBGL];
|
|
17555
|
+
b.bindFramebuffer(b.FRAMEBUFFER, e.pickingFrameBuffer), e.pickingFrameBuffer.needsDraw && (b.viewport(0, 0, b.canvas.width, b.canvas.height), renderWebgl(e, null, RENDER_TARGET.PICKING), e.pickingFrameBuffer.needsDraw = false);
|
|
17556
|
+
var S = c * l, C = new Uint8Array(S * 4);
|
|
17557
|
+
b.readPixels(o, s, c, l, b.RGBA, b.UNSIGNED_BYTE, C), b.bindFramebuffer(b.FRAMEBUFFER, null);
|
|
17558
|
+
for (var w = /* @__PURE__ */ new Set(), T = 0; T < S; T++) {
|
|
17559
|
+
var E = vec4ToIndex(C.slice(T * 4, T * 4 + 4)) - 1;
|
|
17560
|
+
E >= 0 && w.add(E);
|
|
17561
|
+
}
|
|
17562
|
+
return w;
|
|
17638
17563
|
}
|
|
17639
17564
|
function findNearestElementsWebgl(e, t, n) {
|
|
17640
17565
|
var r = getPickingIndexes(e, t, n), a = e.getCachedZSortedEles(), o, c, l = _createForOfIteratorHelper(r), u;
|
|
17641
17566
|
try {
|
|
17642
17567
|
for (l.s(); !(u = l.n()).done; ) {
|
|
17643
|
-
var d = u.value
|
|
17644
|
-
if (!o &&
|
|
17568
|
+
var d = a[u.value];
|
|
17569
|
+
if (!o && d.isNode() && (o = d), !c && d.isEdge() && (c = d), o && c) break;
|
|
17645
17570
|
}
|
|
17646
17571
|
} catch (e2) {
|
|
17647
17572
|
l.e(e2);
|