artideck 0.0.1-alpha.0 → 1.112.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/AGENTS.md +1 -0
- package/LICENSE +4 -0
- package/README.md +203 -5
- package/bin/ryugi.cjs +9 -0
- package/dist/cli.cjs +994 -0
- package/dist/document-engine.cjs +1796 -0
- package/dist/loro_wasm_bg.wasm +0 -0
- package/dist/output-bootstrap.cjs +921 -0
- package/dist/runtime/Figtree-OFL.txt +93 -0
- package/dist/runtime/Geist-Mono-OFL.txt +92 -0
- package/dist/runtime/Goeist-OFL.txt +97 -0
- package/dist/runtime/deck/23I4SOAX-ByvRw0YV.js +263 -0
- package/dist/runtime/deck/26H2HVXD-bLsHUJg0.js +595 -0
- package/dist/runtime/deck/2IZ5MNOH-BMwid8pT.js +161 -0
- package/dist/runtime/deck/2P3CZEXH-CDGTr1B1.js +263 -0
- package/dist/runtime/deck/3E5HRNYT-DWV6YnPn.js +1328 -0
- package/dist/runtime/deck/3JIRLDUO-BxW79znC.js +489 -0
- package/dist/runtime/deck/5MJ3UKSG-CZlIMh9R.js +470 -0
- package/dist/runtime/deck/5THPTBWS-BCdZFhV1.js +32 -0
- package/dist/runtime/deck/7WLXJQOR-CjURryg_.js +22 -0
- package/dist/runtime/deck/A255FCTW-BsKVHooW.js +796 -0
- package/dist/runtime/deck/AM43MQ64-Ctg0tPg5.js +279 -0
- package/dist/runtime/deck/AOZTNTMC-BFmaehsA.js +563 -0
- package/dist/runtime/deck/AQNLM6KG-BaXA1Iyk.js +1264 -0
- package/dist/runtime/deck/BNU2RHQB-xTFbJFq5.js +181 -0
- package/dist/runtime/deck/C5HTQT3I-gSZhc4E5.js +168 -0
- package/dist/runtime/deck/CPKRWH5G-BWHn4GAl.js +1339 -0
- package/dist/runtime/deck/CUVCMPQX-CWb0Dm80.js +1235 -0
- package/dist/runtime/deck/D4V2MWCI-DU3TsZxx.js +24 -0
- package/dist/runtime/deck/DHKBVIA3-D7oUDJiJ.js +39 -0
- package/dist/runtime/deck/DKTLEL5E-CJdweuKi.js +35 -0
- package/dist/runtime/deck/DUZNPW7S-DbhjhetM.js +103 -0
- package/dist/runtime/deck/E3FWOBN4-BtJPMX8M.js +488 -0
- package/dist/runtime/deck/E65FQMJL-Dd_2fyME.js +21 -0
- package/dist/runtime/deck/FTXIJQGB-AHnjjGOa.js +226 -0
- package/dist/runtime/deck/G3MDBVQH-2qSadYZr.js +24 -0
- package/dist/runtime/deck/G3OATVW2-1h3YkBu7.js +1567 -0
- package/dist/runtime/deck/IV52FOAS-Zn4UzH4N.js +1404 -0
- package/dist/runtime/deck/JTJEEBDN-YkCHY8Zf.js +52 -0
- package/dist/runtime/deck/K7FUICZ3-CGPZ7izx.js +795 -0
- package/dist/runtime/deck/LHH2HHRB-B29BDRKn.js +356 -0
- package/dist/runtime/deck/MSPQPZZY-D8T12kEI.js +688 -0
- package/dist/runtime/deck/OB6ZFVKF-BXfQ4FMH.js +242 -0
- package/dist/runtime/deck/PLTZDMI2-Bt_th5t6.js +1 -0
- package/dist/runtime/deck/R7EPXMMD-Biy1Rh6R.js +1079 -0
- package/dist/runtime/deck/RVARI57O-DHZR7iMv.js +9 -0
- package/dist/runtime/deck/SPBWZ4VS-Ce9sEW6_.js +75 -0
- package/dist/runtime/deck/SR7OOV3Q-DnX0KpAd.js +1017 -0
- package/dist/runtime/deck/STAXBNH4-C4TCtjfh.js +22 -0
- package/dist/runtime/deck/SXFARSFO-DO8JeDyL.js +405 -0
- package/dist/runtime/deck/TC77ISAL-ByLfgcrY.js +1135 -0
- package/dist/runtime/deck/TYIQQHVC-TRfAzv7p.js +1859 -0
- package/dist/runtime/deck/TZUXETIT-B8gqbld-.js +776 -0
- package/dist/runtime/deck/U7N72BGE-BuZ4vKTn.js +519 -0
- package/dist/runtime/deck/UFPIB6EZ-4MlZnCrF.js +475 -0
- package/dist/runtime/deck/UO52YEYL-Bq22hG5W.js +146 -0
- package/dist/runtime/deck/VIK3ONSK-D_kEzfgj.js +445 -0
- package/dist/runtime/deck/VVVO4ZVP-CpABiIqr.js +166 -0
- package/dist/runtime/deck/WRGXZO53-UB13aRTu.js +947 -0
- package/dist/runtime/deck/X5SG7MGC-BfmHie-r.js +296 -0
- package/dist/runtime/deck/XLHPVVFU-B_uzIt_G.js +51 -0
- package/dist/runtime/deck/XXYPNCD5-CgyfByXb.js +183 -0
- package/dist/runtime/deck/Z6WRYFJC-Cxt5GIGU.js +416 -0
- package/dist/runtime/deck/ZI2QNEGF-zbLA5j2H.js +1414 -0
- package/dist/runtime/deck/code-Dzzx958k.js +786 -0
- package/dist/runtime/deck/diagram-D4QtUYG0.js +1095 -0
- package/dist/runtime/deck/embed-ByYr4D5y.js +94 -0
- package/dist/runtime/deck/magic-move-QHEhTESo.js +864 -0
- package/dist/runtime/deck/math-CyFe6hk1.js +21956 -0
- package/dist/runtime/deck/open-BwthTmko.js +788 -0
- package/dist/runtime/icons/a.json +1 -0
- package/dist/runtime/icons/b.json +1 -0
- package/dist/runtime/icons/c.json +1 -0
- package/dist/runtime/icons/d.json +1 -0
- package/dist/runtime/icons/e.json +1 -0
- package/dist/runtime/icons/f.json +1 -0
- package/dist/runtime/icons/g.json +1 -0
- package/dist/runtime/icons/h.json +1 -0
- package/dist/runtime/icons/i.json +1 -0
- package/dist/runtime/icons/index.json +1 -0
- package/dist/runtime/icons/j.json +1 -0
- package/dist/runtime/icons/k.json +1 -0
- package/dist/runtime/icons/l.json +1 -0
- package/dist/runtime/icons/m.json +1 -0
- package/dist/runtime/icons/n.json +1 -0
- package/dist/runtime/icons/o.json +1 -0
- package/dist/runtime/icons/p.json +1 -0
- package/dist/runtime/icons/q.json +1 -0
- package/dist/runtime/icons/r.json +1 -0
- package/dist/runtime/icons/s.json +1 -0
- package/dist/runtime/icons/t.json +1 -0
- package/dist/runtime/icons/u.json +1 -0
- package/dist/runtime/icons/v.json +1 -0
- package/dist/runtime/icons/w.json +1 -0
- package/dist/runtime/icons/x.json +1 -0
- package/dist/runtime/icons/z.json +1 -0
- package/dist/runtime/robots.txt +9 -0
- package/dist/runtime/ryugi-deck.js +4097 -0
- package/dist/runtime/ryugi-icons.js +47 -0
- package/dist/runtime/ryugi-mockup.js +558 -0
- package/dist/runtime/ryugi-preview-bridge.js +2 -0
- package/dist/runtime/ryugi-report.js +65827 -0
- package/dist/runtime/ryugi-storyboard.js +55 -0
- package/dist/runtime/ryugi-ui.js +90 -0
- package/dist/runtime/ryugi-whiteboard-embed.js +11904 -0
- package/dist/viewer/AgentDock-DO3wjCT6.js +2 -0
- package/dist/viewer/ArtboardLayout-CWx1_DVU.js +14 -0
- package/dist/viewer/ArtboardLayout-DLyi-yDq.css +1 -0
- package/dist/viewer/ArtifactList-DtgRku6l.js +2 -0
- package/dist/viewer/ArtifactModal-BU_PR8k8.css +1 -0
- package/dist/viewer/ArtifactModal-DfZqI4AY.js +1 -0
- package/dist/viewer/BottomSheet-DHasPJPu.js +1 -0
- package/dist/viewer/Canvas-C5NJh3wF.js +1 -0
- package/dist/viewer/CommentPopover-GqGMqaHP.js +1 -0
- package/dist/viewer/DocumentExportMenu-8sZID_nO.js +1 -0
- package/dist/viewer/DocumentLayout-CJ59MGXp.js +2 -0
- package/dist/viewer/DocumentPage-CcmkTxH-.js +5 -0
- package/dist/viewer/DocumentPage-DGJI3MRN.css +1 -0
- package/dist/viewer/DotGrid-DKKr_PyM.js +1 -0
- package/dist/viewer/DraggablePanel-BuFi6njZ.js +1 -0
- package/dist/viewer/DropdownMenu-CM7q1CMp.js +1 -0
- package/dist/viewer/Figtree-OFL.txt +93 -0
- package/dist/viewer/Geist-Mono-OFL.txt +92 -0
- package/dist/viewer/GeistMono-BoRIzn25.woff2 +0 -0
- package/dist/viewer/Goeist-OFL.txt +97 -0
- package/dist/viewer/GroupVerdict-DeeQUfkG.js +1 -0
- package/dist/viewer/HtmlLayout-vlPq4J9Y.js +1 -0
- package/dist/viewer/Input-CVcfIqt2.js +1 -0
- package/dist/viewer/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/viewer/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/viewer/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/viewer/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/viewer/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/viewer/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/viewer/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/viewer/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/viewer/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/viewer/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/viewer/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/viewer/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/viewer/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/viewer/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/viewer/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/viewer/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/viewer/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/viewer/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/viewer/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/viewer/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/viewer/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/viewer/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/viewer/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/viewer/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/viewer/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/viewer/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/viewer/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/viewer/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/viewer/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/viewer/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/viewer/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/viewer/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/viewer/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/viewer/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/viewer/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/viewer/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/viewer/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/viewer/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/viewer/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/viewer/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/viewer/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/viewer/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/viewer/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/viewer/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/viewer/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/viewer/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/viewer/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/viewer/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/viewer/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/viewer/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/viewer/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/viewer/MenuSubmenuTrigger-BczoxS9k.js +1 -0
- package/dist/viewer/MotionConfigContext-HC2vqcJO.js +1 -0
- package/dist/viewer/PhoneArtboardBar-BK3M_psy.js +1 -0
- package/dist/viewer/PlaybackIcon-D-vfZnSv.js +1 -0
- package/dist/viewer/Popover-O6mMCn1S.js +1 -0
- package/dist/viewer/PreviewArtifactLayout-KGeS-A9y.js +1 -0
- package/dist/viewer/PreviewLayout-C5knCbv-.js +2 -0
- package/dist/viewer/ReportLayout-BD1bNPfi.js +5 -0
- package/dist/viewer/RyugiMark-Dyu4ej9h.js +1 -0
- package/dist/viewer/Segmented-Clhtb1CD.js +1 -0
- package/dist/viewer/SelectScrollUpArrow-CTGOrluu.js +1 -0
- package/dist/viewer/SlidesLayout-8j14xYA-.js +12 -0
- package/dist/viewer/SlidesLayout-Bjds2UXz.css +1 -0
- package/dist/viewer/SnapshotDocument-CnqXgo4y.js +1 -0
- package/dist/viewer/SplitFrame-CQ3lXrch.js +1 -0
- package/dist/viewer/StoryboardLayout-ayS9S6Ff.js +1 -0
- package/dist/viewer/StoryboardRender--NOzkhyN.js +1 -0
- package/dist/viewer/ThreadView-OBDIwTkP.js +1 -0
- package/dist/viewer/Tooltip-DX1QlxEQ.js +1 -0
- package/dist/viewer/VerifyLayout-B9e4RHAZ.css +1 -0
- package/dist/viewer/VerifyLayout-Usn3NkOU.js +1 -0
- package/dist/viewer/VirtualizedEditor-uWe43zaI-C5Sahl_l.js +1 -0
- package/dist/viewer/VirtualizedRenderer-C_d95FXi-BpaHPQz0.js +1 -0
- package/dist/viewer/WarningsBadge-DGnz2zmy.js +1 -0
- package/dist/viewer/WhiteboardEditor-DrHOvXez-JWa5PVHK.js +22 -0
- package/dist/viewer/WhiteboardLayout-Dd8Uh61C.js +4 -0
- package/dist/viewer/WhiteboardLayout-SRFXrlmW.css +1 -0
- package/dist/viewer/WritingCursor-CRzyzaVO.js +1 -0
- package/dist/viewer/agentLook-CU806djA.js +1 -0
- package/dist/viewer/apl-gfMMiTNf.js +1 -0
- package/dist/viewer/app-icon-6WJOuhLx.svg +1 -0
- package/dist/viewer/app-icon-Bm9-i4yr.png +0 -0
- package/dist/viewer/arrow-up-right-0KreI6kY.js +1 -0
- package/dist/viewer/artifact-list-B9KTDzUh.js +1 -0
- package/dist/viewer/asciiarmor-C_eisQCp.js +1 -0
- package/dist/viewer/asn1-DCl_8MCW.js +1 -0
- package/dist/viewer/asterisk-BEn0Cwpx.js +1 -0
- package/dist/viewer/auto-publish-GJrN3H-Y.js +1 -0
- package/dist/viewer/backlinks-C_k8-LL2.js +1 -0
- package/dist/viewer/bem-vbke-3KC.js +1 -0
- package/dist/viewer/brainfuck-D5EjA2JK.js +1 -0
- package/dist/viewer/channel-CF9EHtSL.js +4 -0
- package/dist/viewer/chevron-left-C5itNrp5.js +1 -0
- package/dist/viewer/chevron-right-xNdXLJg6.js +1 -0
- package/dist/viewer/clapperboard-BfpJ7tpa.js +1 -0
- package/dist/viewer/clike-xvONpD0Z.js +1 -0
- package/dist/viewer/clojure-BflJGmDX.js +1 -0
- package/dist/viewer/cloud-upload-D8TpApTr.js +1 -0
- package/dist/viewer/cmake-84nbDH0I.js +1 -0
- package/dist/viewer/cobol-DHLQUbN7.js +1 -0
- package/dist/viewer/code-DnmQyGiF.js +1 -0
- package/dist/viewer/code-xml-c9QCqmhY.js +1 -0
- package/dist/viewer/coffeescript-De_zI4J0.js +1 -0
- package/dist/viewer/comments-DUAz1Q9X.js +1 -0
- package/dist/viewer/commonlisp-DgAKBe0r.js +1 -0
- package/dist/viewer/crop-encode-C1SdKlik.js +1 -0
- package/dist/viewer/crystal-Bl6YKCG_.js +1 -0
- package/dist/viewer/css-CnaYoQib.js +1 -0
- package/dist/viewer/cssVar.stylex-CGbpAC1Y.js +1 -0
- package/dist/viewer/cypher-p9eYesGn.js +1 -0
- package/dist/viewer/d-DWkQyNnU.js +1 -0
- package/dist/viewer/default-Ckb1jcnl.js +4 -0
- package/dist/viewer/diff-ChtP43wD.js +1 -0
- package/dist/viewer/dist-B0qXxOuX.js +1 -0
- package/dist/viewer/dist-B3-vnt93.js +1 -0
- package/dist/viewer/dist-BDGp5lli.js +6 -0
- package/dist/viewer/dist-BHga6o7i.js +1 -0
- package/dist/viewer/dist-BNB-dtd1.js +1 -0
- package/dist/viewer/dist-BWDri6GH.js +1 -0
- package/dist/viewer/dist-B_dCTH8c.js +9 -0
- package/dist/viewer/dist-BaGZx4vf.js +1 -0
- package/dist/viewer/dist-Bgia1wnJ.js +11 -0
- package/dist/viewer/dist-C4H1ECie.js +1 -0
- package/dist/viewer/dist-CJucIoCR.js +1 -0
- package/dist/viewer/dist-CiMWQRhQ.js +1 -0
- package/dist/viewer/dist-Cj74Rdec.js +1 -0
- package/dist/viewer/dist-CsBIrCGx.js +1 -0
- package/dist/viewer/dist-CyHqzrxc.js +1 -0
- package/dist/viewer/dist-CzD--XrY.js +1 -0
- package/dist/viewer/dist-D4as0PD-.js +1 -0
- package/dist/viewer/dist-DTD3yXBi.js +1 -0
- package/dist/viewer/dist-Dfck1z2n.js +23 -0
- package/dist/viewer/dist-Dmr_aVAS.js +1 -0
- package/dist/viewer/dist-Dn_o36dG.js +2 -0
- package/dist/viewer/dist-DxngwfWH.js +1 -0
- package/dist/viewer/dist-_D5xLBBO.js +1 -0
- package/dist/viewer/dist-vsF0cCGK.js +1 -0
- package/dist/viewer/dockerfile-DJkHQgkl.js +1 -0
- package/dist/viewer/dtd-DTF72YNO.js +1 -0
- package/dist/viewer/dylan-S7ucR4pR.js +1 -0
- package/dist/viewer/ebnf-D4c0_ac3.js +1 -0
- package/dist/viewer/ecl-BVIeWmwY.js +1 -0
- package/dist/viewer/editor-DHJQC-c0.js +397 -0
- package/dist/viewer/eiffel-BEjRio4Q.js +1 -0
- package/dist/viewer/elements-CmGVWYag.js +1 -0
- package/dist/viewer/elm-Cshzl8qu.js +1 -0
- package/dist/viewer/embed-src-CmyqZplg.js +1 -0
- package/dist/viewer/erlang-BV0c4Hdn.js +1 -0
- package/dist/viewer/external-link-D382oEvK.js +1 -0
- package/dist/viewer/factor-LKH5gN8L.js +1 -0
- package/dist/viewer/fcl-ClOhbFR7.js +1 -0
- package/dist/viewer/figtree-latin-ext-wght-normal-DCwSJGxG.woff2 +0 -0
- package/dist/viewer/figtree-latin-wght-normal-D_ZTVpCC.woff2 +0 -0
- package/dist/viewer/film-A6SU1RGC.js +1 -0
- package/dist/viewer/fit-BgVy5mbn.js +1 -0
- package/dist/viewer/folder-BViSPo7g.js +1 -0
- package/dist/viewer/forth-D6RzAl64.js +1 -0
- package/dist/viewer/fortran-Bt6PBEDR.js +1 -0
- package/dist/viewer/gas-BHEdbvp9.js +1 -0
- package/dist/viewer/gherkin-oBAE_ms0.js +1 -0
- package/dist/viewer/github-dark-C895GGrm.js +1 -0
- package/dist/viewer/github-light-B4HDwToD.js +1 -0
- package/dist/viewer/groovy-CUrWKPia.js +1 -0
- package/dist/viewer/haskell-BRsoo5mP.js +1 -0
- package/dist/viewer/haxe-DjVOVvNP.js +1 -0
- package/dist/viewer/http-CLVgA2GD.js +1 -0
- package/dist/viewer/icons-BwlHhLMH.js +1 -0
- package/dist/viewer/idl-BUZw3wgd.js +1 -0
- package/dist/viewer/imperative-D1UIq_CR.js +1 -0
- package/dist/viewer/index.css +1 -0
- package/dist/viewer/index.html +75 -0
- package/dist/viewer/index.js +2 -0
- package/dist/viewer/index2.css +1 -0
- package/dist/viewer/index3.css +1 -0
- package/dist/viewer/index4.css +1 -0
- package/dist/viewer/index5.css +6655 -0
- package/dist/viewer/is-html-element-DvgHo_1h.js +1 -0
- package/dist/viewer/javascript-lS2r2ifg.js +1 -0
- package/dist/viewer/jsx-runtime-LKYXHABd.js +1 -0
- package/dist/viewer/julia-CQfgDRfP.js +1 -0
- package/dist/viewer/katex-DuZJ-tFh.js +257 -0
- package/dist/viewer/lib-DJrc3aG3.js +3 -0
- package/dist/viewer/livescript-BXxG0Yva.js +1 -0
- package/dist/viewer/local-CvTEMav_.js +1 -0
- package/dist/viewer/local-split-host-DOfRlsgx.js +1 -0
- package/dist/viewer/lua-DPCEkfD_.js +1 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-100-DLPe7tEt.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-101-d3VsZKWT.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-102-ClzJuLq6.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-103-DuDnQ6K-.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-104-kPGW3Eem.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-105-BzD54h-0.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-106-BQ7fIzlx.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-107-D8tDfFHI.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-108-tGhkpwep.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-109-7SMVSrly.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-110-_uDKrFed.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-111-Bio825RE.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-112-D2ee0i-C.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-113-JPFVDrga.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-114-BcfxYA4w.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-115-B1HeeOsd.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-116-hY12tXpq.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-117-BvuZwmre.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-118-tzvs_H7j.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-119-J2DWuYDN.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-21-pDubCJV5.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-22-ChAPMpqp.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-23-BBx3oNpT.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-24-CYt-Oagk.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-25-Cx3j-ZUv.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-26-B9AfZ3LL.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-27-Bh2s9MNE.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-28-C02JPoKP.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-29-T_tbUGhk.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-30-DMfyNzhz.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-31-DFfdzbkg.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-32-Bs1fz2iW.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-33-cpB96OkZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-34-BhinPYWX.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-35-D_njRQqA.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-36-DqXlLE3t.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-37-j5LbvMph.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-38-oO4jWdKm.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-39-CabsX4rw.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-4-PatS3YHh.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-40-yrLg3C3e.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-41-DBXmCQhc.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-42-Bqij_UiQ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-43-D3kp0Ntc.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-44-B_BNGvK4.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-45-CZc0cQWs.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-46-CHQX5Kd9.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-47-Ci8gLrHA.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-48-run3ugD3.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-49-DgfiUb6u.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-5-B0CtGbX_.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-50-CdCG-POr.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-51-L2okeQZ2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-52-BZAqyGJW.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-53-B0xWqLeU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-54-BZVQX-EA.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-55-093mkIUJ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-56-CbhWG8G-.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-57-pLQuvo6c.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-58-BHhoY50x.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-59-D1_6DuIQ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-6-BnAelmYU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-60-HDBIuLTZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-61-C-c13SeU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-62-kHRVOhZ2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-63-C0MCsvFv.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-64-DZekguCj.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-65-CtP6c3IU.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-66-DLVWoMSf.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-67-BVuOnayH.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-68-DpxQ6Mnx.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-69-qesBxLmC.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-70-BBt1xN7h.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-71-BWqZacwB.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-72-B1wP_Yst.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-73-C99T7jNZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-74-DrUTsWBe.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-75-C4M5XXQe.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-76-Bq8spVWF.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-77-D9vNupE2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-78-D6th7Gnu.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-79-bezM85cS.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-80-DD8pnhG2.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-81-N6jtSyBs.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-82-D6c180bZ.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-83-em17AadM.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-84-CJ8gdrMK.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-85-9PPGO1eB.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-86-CjWPf-u5.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-87-8D_X_yOC.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-88-9vtKFPBx.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-89-BhE5jAKX.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-90-D2Npfm5E.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-91-C6Ft1-Eu.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-97-CaExyQP9.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-98-CPoVbsUd.woff2 +0 -0
- package/dist/viewer/lxgwwenkaiscreen-subset-99-ZUQZGVgH.woff2 +0 -0
- package/dist/viewer/mathematica-u8YMmbU0.js +1 -0
- package/dist/viewer/maximize-2-Bc0lXBg6.js +1 -0
- package/dist/viewer/mbox-BEMVcqjs.js +1 -0
- package/dist/viewer/message-square-Yl8PoPy_.js +1 -0
- package/dist/viewer/mirc-C9zpzAZU.js +1 -0
- package/dist/viewer/mllike-B45xgp2S.js +1 -0
- package/dist/viewer/modelica-CqHI_q-D.js +1 -0
- package/dist/viewer/monitor-DRrnx_H5.js +1 -0
- package/dist/viewer/motion-Cy65kd7X.js +1 -0
- package/dist/viewer/mouse-pointer-2-B-OF_fcG.js +1 -0
- package/dist/viewer/mscgen-qgSLujhx.js +1 -0
- package/dist/viewer/mumps-BSzj6Xyz.js +1 -0
- package/dist/viewer/nginx-C-ORUuei.js +1 -0
- package/dist/viewer/nsis-viPvXFiq.js +1 -0
- package/dist/viewer/ntriples-CzMBulkp.js +1 -0
- package/dist/viewer/octave-D2Q8cUp1.js +1 -0
- package/dist/viewer/oz-BwTct_5T.js +1 -0
- package/dist/viewer/pages-DWkRbog-.js +1 -0
- package/dist/viewer/pascal-Dp_KdFgX.js +1 -0
- package/dist/viewer/pen-tool-BfwjhXQW.js +1 -0
- package/dist/viewer/perl-BkSkiI9m.js +1 -0
- package/dist/viewer/pig-AF4Hwhju.js +1 -0
- package/dist/viewer/play-6FAfeM1L.js +1 -0
- package/dist/viewer/plugin-_bGVeqI0-DZgj9wju.js +2 -0
- package/dist/viewer/plus-DZJ2BVkK.js +1 -0
- package/dist/viewer/powershell-D8WpQPaX.js +1 -0
- package/dist/viewer/preference-oNdcNeml.js +1 -0
- package/dist/viewer/presentation-DXrcAbwM.js +1 -0
- package/dist/viewer/preview.html +28 -0
- package/dist/viewer/preview.js +1 -0
- package/dist/viewer/printDocument-CUNshxwb.js +1 -0
- package/dist/viewer/properties-C357ku5U.js +1 -0
- package/dist/viewer/protobuf-D1ij_kNL.js +1 -0
- package/dist/viewer/pug-BqCHZ5xT.js +1 -0
- package/dist/viewer/puppet-BZyAS7I4.js +1 -0
- package/dist/viewer/python-B_1Jd8HM.js +1 -0
- package/dist/viewer/q-B9NhS7L_.js +1 -0
- package/dist/viewer/r-CxDmU1I4.js +1 -0
- package/dist/viewer/react-DlmbjZJV.js +1 -0
- package/dist/viewer/read-marks-CVVWpIvf.js +1 -0
- package/dist/viewer/ref-Bj5JiHki.js +1 -0
- package/dist/viewer/robots.txt +9 -0
- package/dist/viewer/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/viewer/rounds-BLj-tfMG.js +1 -0
- package/dist/viewer/route-Csi4PU7w.js +64 -0
- package/dist/viewer/route-messages-DeWSMVNI.js +1 -0
- package/dist/viewer/rpm-gpDK5sbt.js +1 -0
- package/dist/viewer/ruby-ChfNwlCY.js +1 -0
- package/dist/viewer/ruler-CYb0HZGT.js +1 -0
- package/dist/viewer/sas-C2OyD2Y6.js +1 -0
- package/dist/viewer/scheme-D9qYN0V5.js +1 -0
- package/dist/viewer/search-DTrfkTpJ.js +1 -0
- package/dist/viewer/selection-BWCQd_Fn.js +1 -0
- package/dist/viewer/settings-Ccw15Eyz.js +1 -0
- package/dist/viewer/shell-DwuoZtxw.js +1 -0
- package/dist/viewer/shims-s-YVfIlz.js +1 -0
- package/dist/viewer/sieve-tLWDfEkZ.js +1 -0
- package/dist/viewer/simple-mode-DXiLM1-G.js +1 -0
- package/dist/viewer/sliders-horizontal-CuS3-UwA.js +1 -0
- package/dist/viewer/smalltalk-BLp5-jwC.js +1 -0
- package/dist/viewer/snap-B7T8Fi-t.js +1 -0
- package/dist/viewer/solr-B78wSQJQ.js +1 -0
- package/dist/viewer/sparql-Dz-mlCAC.js +1 -0
- package/dist/viewer/split-DYwwKqIa.js +2 -0
- package/dist/viewer/spreadsheet-CTIncYxj.js +1 -0
- package/dist/viewer/sql-DuQMFDvy.js +1 -0
- package/dist/viewer/stable-CwENW2fR.js +1 -0
- package/dist/viewer/stex-DNzd62Q_.js +1 -0
- package/dist/viewer/store-D3ROW536.js +1 -0
- package/dist/viewer/stringifyLocale-D0juOOnH.js +1 -0
- package/dist/viewer/styles-clvPUBbJ.js +1 -0
- package/dist/viewer/stylus-BOVgKnng.js +1 -0
- package/dist/viewer/swift-DKB6_1j6.js +1 -0
- package/dist/viewer/table-2-D90vZ04E.js +1 -0
- package/dist/viewer/tcl-BGfruO1u.js +1 -0
- package/dist/viewer/text-align-start-CRhecbJR.js +1 -0
- package/dist/viewer/textile-C4jVoHG1.js +1 -0
- package/dist/viewer/tiddlywiki-VlUiK86J.js +1 -0
- package/dist/viewer/tiki-CvUEFusT.js +1 -0
- package/dist/viewer/toml-BPTmHmyx.js +1 -0
- package/dist/viewer/transport-CSbo3sV6.js +1 -0
- package/dist/viewer/troff-C2dAgh7P.js +1 -0
- package/dist/viewer/ttcn-PPSTk1ow.js +1 -0
- package/dist/viewer/ttcn-cfg-2b4Gb5sE.js +1 -0
- package/dist/viewer/turtle-Cx3rYX2g.js +1 -0
- package/dist/viewer/type-icons-CxYXZlMj.js +1 -0
- package/dist/viewer/types-BCsOeYI6.js +1 -0
- package/dist/viewer/underline-CT_nGhA9.js +1 -0
- package/dist/viewer/undo-2-B-JiyKIl.js +1 -0
- package/dist/viewer/upload-DffL3XsM.js +1 -0
- package/dist/viewer/url-D8qiZRqE.js +29 -0
- package/dist/viewer/useArtifactFeed-1e4jVUAL.js +1 -0
- package/dist/viewer/useArtifactSocket-wqYKSfgz.js +1 -0
- package/dist/viewer/useAssetBase-4Ut9QhBI.js +1 -0
- package/dist/viewer/useLayerZIndex-D4jsmz12.js +1 -0
- package/dist/viewer/useMedia-CFebB4XU.js +1 -0
- package/dist/viewer/useSandboxFrame-CJmSnwgG.js +1 -0
- package/dist/viewer/useStoryboardData-aWqqHGVH.js +1 -0
- package/dist/viewer/useTypeFavicon-yXOsFZBx.js +1 -0
- package/dist/viewer/vb-BthdM_4N.js +1 -0
- package/dist/viewer/vbscript-D9f6rSsU.js +1 -0
- package/dist/viewer/velocity-CqftRsjg.js +1 -0
- package/dist/viewer/verilog-CjI9Y6RI.js +1 -0
- package/dist/viewer/vhdl-kS471soi.js +1 -0
- package/dist/viewer/video-DKoRqEZW.js +1 -0
- package/dist/viewer/view-ClWzCAjM.js +3 -0
- package/dist/viewer/viewport-CFJHn_Y6--n1vZkKz.js +1 -0
- package/dist/viewer/webidl-D5jiJvOU.js +1 -0
- package/dist/viewer/xquery-BKJx4mf9.js +1 -0
- package/dist/viewer/yacas-CXXgtw0p.js +1 -0
- package/dist/viewer/z80-Co3PbHdE.js +1 -0
- package/dist/viewer/zoom-out-DsmGFv1v.js +1 -0
- package/package.json +124 -19
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { n as e, r as t, t as n } from "./UO52YEYL-Bq22hG5W.js";
|
|
2
|
+
import { t as r } from "./E65FQMJL-Dd_2fyME.js";
|
|
3
|
+
import { a as i, i as a, o } from "./A255FCTW-BsKVHooW.js";
|
|
4
|
+
import { r as s, t as c } from "./DKTLEL5E-CJdweuKi.js";
|
|
5
|
+
import { _ as l, b as u, f as ee, i as d, o as f, p, u as m, x as h, y as g } from "./E3FWOBN4-BtJPMX8M.js";
|
|
6
|
+
import { f as _, p as v, u as y } from "./diagram-D4QtUYG0.js";
|
|
7
|
+
// ../../node_modules/.pnpm/pele@1.10.0/node_modules/pele/dist/esm/chunks/RGVCULFG.js
|
|
8
|
+
var b = 11, x = class {
|
|
9
|
+
type = "mindmap";
|
|
10
|
+
title;
|
|
11
|
+
nodes = [];
|
|
12
|
+
getType = n;
|
|
13
|
+
baseLevel = 0;
|
|
14
|
+
open = [];
|
|
15
|
+
addNode(e, t, n, r) {
|
|
16
|
+
let i = this.nodes.length === 0;
|
|
17
|
+
i && (this.baseLevel = e), e -= this.baseLevel;
|
|
18
|
+
let a = this.open, o = a.length;
|
|
19
|
+
for (; o > 0 && a[o - 1].level >= e;) o--;
|
|
20
|
+
let s = a[o - 1];
|
|
21
|
+
if (!s && !i) throw new _(`There can be only one root. No parent could be found for ("${n}")`, "semantic", { type: "mindmap" });
|
|
22
|
+
let c = {
|
|
23
|
+
id: this.nodes.length,
|
|
24
|
+
nodeId: t,
|
|
25
|
+
level: e,
|
|
26
|
+
descr: n,
|
|
27
|
+
type: r,
|
|
28
|
+
children: [],
|
|
29
|
+
isRoot: i
|
|
30
|
+
};
|
|
31
|
+
s && (c.section = s.isRoot ? s.children.length % b : s.section, s.children.push(c)), a.length = o, a.push(c), this.nodes.push(c);
|
|
32
|
+
}
|
|
33
|
+
decorateNode(e) {
|
|
34
|
+
let t = this.nodes[this.nodes.length - 1];
|
|
35
|
+
!e || !t || (e.icon && (t.icon = e.icon), e.class && (t.class = e.class));
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function S(e, n) {
|
|
39
|
+
t(e, n, !1);
|
|
40
|
+
}
|
|
41
|
+
var te = [
|
|
42
|
+
"",
|
|
43
|
+
"rounded",
|
|
44
|
+
"rect",
|
|
45
|
+
"circle",
|
|
46
|
+
"cloud",
|
|
47
|
+
"bang",
|
|
48
|
+
"hex"
|
|
49
|
+
], ne = "stadium", re = 36, ie = 8, ae = 18, oe = 52, se = 28, ce = 6, le = 12, ue = .22, C = 6, w = 28, de = 12, fe = 8, pe = 10;
|
|
50
|
+
function me(e, t, n, r) {
|
|
51
|
+
if (e.lines.length < 2) return f(e, t + e.width / 2, n, " class=\"pele-label\"", r);
|
|
52
|
+
let i = "", a = n - e.height / 2;
|
|
53
|
+
for (let n = 0; n < e.lines.length; n++) i += f(g(e, n), t + e.widths[n] / 2, a + p(e, n), " class=\"pele-label\"", r);
|
|
54
|
+
return i;
|
|
55
|
+
}
|
|
56
|
+
function he(e, t, n) {
|
|
57
|
+
return c(n, (r) => T(e, t, n, r));
|
|
58
|
+
}
|
|
59
|
+
function T(t, n, c, p) {
|
|
60
|
+
let g = c.fontSize ?? 16, _ = c.measurer ?? y(c.fontFamily, c.fontFamilyMono), b = c.padding ?? 8, x = c.icons, S = n.mindmap?.maxNodeWidth, he = typeof S == "number" && S > 0 ? Math.min(S, 2e3) : 200, T = g * 1.25, E = t.nodes, D = E.length, O = new Int32Array(D), k = new Int32Array(D);
|
|
61
|
+
for (let e = 0; e < D; e++) for (let t of E[e].children) O[t.id] = e, k[t.id] = k[e] + 1;
|
|
62
|
+
let ge = p && c.maxWidth !== void 0 && c.maxWidth > 0 ? c.maxWidth - 2 * b : 1 / 0, _e = Array(D), A = Array(D), j = new Float64Array(D), M = new Float64Array(D), N = new Float64Array(D), P = new Float64Array(D), F = new Uint8Array(D);
|
|
63
|
+
for (let e = 0; e < D; e++) {
|
|
64
|
+
let t = E[e];
|
|
65
|
+
F[e] = +(t.icon !== void 0 && v(t.icon) !== "");
|
|
66
|
+
let n = Math.min(he, Math.max(72, ge - k[e] * w - 2 * ce - (F[e] ? T + C : 0))), r = _e[e] = m(t.descr, !0, _, g, n), i = r.width + (F[e] ? T + (r.width > 0 ? C : 0) : 0), o = Math.max(r.height, Math.round(g * 1.5)), s = te[t.type] || (e === 0 ? ne : "");
|
|
67
|
+
if (p && e === 0 && s !== "rect" && s !== "rounded" && (s = ne), A[e] = s, s === "") {
|
|
68
|
+
let n = t.children.length > 0;
|
|
69
|
+
j[e] = i + 2 * (n ? le : ce), M[e] = o + (n ? 6 : 0), P[e] = M[e] / 2;
|
|
70
|
+
} else {
|
|
71
|
+
let t = a(s, i, o);
|
|
72
|
+
j[e] = t.w, M[e] = t.h, N[e] = t.dy, P[e] = t.h / 2;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
let I = new Float64Array(D), L = new Float64Array(D), R = new Float64Array(D), z = new Float64Array(D), ve = 0, ye = (e, t, n, r) => {
|
|
76
|
+
let i = 0, a = 0;
|
|
77
|
+
for (let o = t; o < n; o++) {
|
|
78
|
+
let t = e[o].id;
|
|
79
|
+
L[t] = i, a = e[o].children.length > 0 || o + 1 < n && e[o + 1].children.length > 0 ? Math.max(r, ae) : r, i += I[t] + a;
|
|
80
|
+
}
|
|
81
|
+
ve = i - a;
|
|
82
|
+
let o = e[t].id, s = e[n - 1].id;
|
|
83
|
+
return (L[o] + R[o] + P[o] + L[s] + R[s] + P[s]) / 2;
|
|
84
|
+
};
|
|
85
|
+
for (let e = D - 1; e > 0; e--) {
|
|
86
|
+
let t = E[e].children;
|
|
87
|
+
if (t.length === 0) {
|
|
88
|
+
I[e] = M[e];
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
let n = ye(t, 0, t.length, ie) - P[e], r = Math.min(0, n);
|
|
92
|
+
I[e] = Math.max(ve, n + M[e]) - r, R[e] = n - r, z[e] = -r;
|
|
93
|
+
}
|
|
94
|
+
let B = new Float64Array(D), V = new Float64Array(D), H = new Float64Array(D), U = new Int8Array(D), be = new Float64Array(D);
|
|
95
|
+
if (p) {
|
|
96
|
+
let e = 0;
|
|
97
|
+
for (let t = 0; t < D; t++) t > 0 && O[t] === 0 && (e += pe), B[t] = k[t] * w + j[t] / 2, V[t] = e, e += M[t] + pe;
|
|
98
|
+
} else if (D > 0) {
|
|
99
|
+
let e = E[0].children, t = e.length, n = 0;
|
|
100
|
+
for (let t of e) n += I[t.id];
|
|
101
|
+
let r = t, i = 1 / 0, a = 0;
|
|
102
|
+
for (let o = 1; o < t; o++) {
|
|
103
|
+
a += I[e[o - 1].id];
|
|
104
|
+
let s = Math.abs(2 * a - n + (2 * o - t) * se);
|
|
105
|
+
s < i && (i = s, r = o);
|
|
106
|
+
}
|
|
107
|
+
for (let n = 0, i = r, a = 1; n < t; n = i, i = t, a = -1) {
|
|
108
|
+
let t = ye(e, n, i, se);
|
|
109
|
+
for (let r = n; r < i; r++) {
|
|
110
|
+
let n = e[r].id;
|
|
111
|
+
H[n] = L[n] - t, U[n] = a;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
V[0] = -M[0] / 2;
|
|
115
|
+
for (let e = 0; e < D; e++) {
|
|
116
|
+
e > 0 && (V[e] = H[e] + R[e]);
|
|
117
|
+
for (let t of E[e].children) {
|
|
118
|
+
let n = t.id;
|
|
119
|
+
e > 0 && (U[n] = U[e], H[n] = H[e] + z[e] + L[n]), B[n] = B[e] + U[n] * (j[e] / 2 + (e > 0 ? re : oe) + j[n] / 2);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
let W = 0, G = 0, K = 0, q = 0, J = "", Y = "", X = "", Z = "", xe = (e) => {
|
|
124
|
+
X !== "" && (J += `<g class="pele-branch pele-section-${e ?? 0}"><g class="pele-edges" fill="none" stroke="${Z}" stroke-width="1.5">${Y}</g>${X}</g>`, Y = X = "");
|
|
125
|
+
};
|
|
126
|
+
for (let t = 1; t <= D; t++) {
|
|
127
|
+
let n = t % D, r = E[n], a = A[n], s = _e[n], c = B[n], l = V[n];
|
|
128
|
+
if (W = Math.min(W, c - j[n] / 2), G = Math.max(G, c + j[n] / 2), K = Math.min(K, l), q = Math.max(q, l + M[n]), (n === 0 || O[n] === 0) && xe(E[t - 1].section), n > 0 && p) {
|
|
129
|
+
O[n] === 0 && (Z = ee(r.section ?? 0));
|
|
130
|
+
let e = O[n], t = e === 0 ? Math.min(Math.max(de, M[0] / 2), w - fe) : de, i = B[e] - j[e] / 2 + Math.min(t, j[e] / 2), s = be[e] || V[e] + M[e], u = c - j[n] / 2 + (a ? o(a, j[n], M[n], 3) : 0), d = l + P[n], f = Math.max(0, Math.min(fe, u - i, d - s));
|
|
131
|
+
be[e] = d - f, Y += `<path class="pele-edge" d="M${h(i)},${h(s)}V${h(d - f)}Q${h(i)},${h(d)} ${h(i + f)},${h(d)}H${h(u)}"/>`;
|
|
132
|
+
} else if (n > 0) {
|
|
133
|
+
O[n] === 0 && (Z = ee(r.section ?? 0));
|
|
134
|
+
let e = O[n], t = U[n], i = t > 0 ? 1 : 3, s = B[e] + t * (j[e] / 2 - (A[e] ? o(A[e], j[e], M[e], i) : 0)), u = V[e] + P[e], d = c - t * j[n] / 2 + (a ? t * o(a, j[n], M[n], 4 - i) : 0), f = l + P[n], p = h((s + d) / 2);
|
|
135
|
+
Y += `<path class="pele-edge" d="M${h(s)},${h(u)}C${p},${h(u)} ${p},${h(f)} ${h(d)},${h(f)}"/>`;
|
|
136
|
+
}
|
|
137
|
+
let m = !a && r.children.length > 0, g = ` fill="${Z}" fill-opacity="${ue}" stroke="${Z}"`, _ = "";
|
|
138
|
+
a ? _ = n > 0 ? i(a, j[n], M[n], g, ` stroke="${Z}"`) : i(a, j[n], M[n], " fill=\"var(--_s)\" stroke=\"var(--_b)\"", " stroke=\"var(--_b)\"") : m && (_ = `<rect x="${h(-j[n] / 2)}" y="${h(-M[n] / 2)}" width="${h(j[n])}" height="${h(M[n])}" rx="${h(M[n] / 2)}"${g}/>`);
|
|
139
|
+
let v = 0;
|
|
140
|
+
r.icon && F[n] && (v = (T + (s.width > 0 ? C : 0)) / 2, _ += e(r.icon, -v - s.width / 2, N[n] - T / 2, T, x));
|
|
141
|
+
let y = `<g class="pele-node pele-shape-${a || (m ? "branch" : "text")}${n > 0 ? "" : " pele-root"}${u(r.class ?? "")}" data-id="${d(r.nodeId)}" transform="translate(${h(c)},${h(l + M[n] / 2)})">` + _ + (p && !a ? me(s, v - s.width / 2, N[n], x) : f(s, v, N[n], " class=\"pele-label\"", x)) + "</g>";
|
|
142
|
+
n > 0 ? X += y : J += y;
|
|
143
|
+
}
|
|
144
|
+
let Q = r(t.title, _, g, s(c)), Se = Q.height > 0 ? Q.height + 16 : 0, Ce = Math.max(G - W, Q.width), $ = Math.ceil(Ce + 2 * b), we = Math.ceil(q - K + Se + 2 * b), Te = f(Q, $ / 2, b + Q.height / 2, " class=\"pele-title\" font-weight=\"var(--_tw)\"") + `<g transform="translate(${h(b - W + (Ce - G + W) / 2)},${h(b + Se - K)})">${J}</g>`;
|
|
145
|
+
return {
|
|
146
|
+
svg: l("mindmap", $, we, g, c, {}, Te),
|
|
147
|
+
width: $,
|
|
148
|
+
height: we,
|
|
149
|
+
links: []
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
var E = {
|
|
153
|
+
type: "mindmap",
|
|
154
|
+
math: !0,
|
|
155
|
+
parse(e, t, n) {
|
|
156
|
+
let r = new x();
|
|
157
|
+
return r.title = n, S(e, r), r;
|
|
158
|
+
},
|
|
159
|
+
render: he
|
|
160
|
+
};
|
|
161
|
+
export { E as mindmap };
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { i as e, n as t, t as n } from "./XLHPVVFU-B_uzIt_G.js";
|
|
2
|
+
import { n as r, t as i } from "./STAXBNH4-C4TCtjfh.js";
|
|
3
|
+
import { _ as a, g as o, s, u as c } from "./diagram-D4QtUYG0.js";
|
|
4
|
+
import { t as l } from "./DKTLEL5E-CJdweuKi.js";
|
|
5
|
+
import { _ as u, f as d, i as f, o as p, r as m, x as h } from "./E3FWOBN4-BtJPMX8M.js";
|
|
6
|
+
// ../../node_modules/.pnpm/pele@1.10.0/node_modules/pele/dist/esm/chunks/QFOMM5LR.js
|
|
7
|
+
function g(e) {
|
|
8
|
+
let t = /* @__PURE__ */ new Set();
|
|
9
|
+
for (let n of e) for (let e of n.people) t.add(e);
|
|
10
|
+
return [...t].sort();
|
|
11
|
+
}
|
|
12
|
+
var _ = class {
|
|
13
|
+
type = "journey";
|
|
14
|
+
title;
|
|
15
|
+
accTitle;
|
|
16
|
+
accDescr;
|
|
17
|
+
sections = [];
|
|
18
|
+
tasks = [];
|
|
19
|
+
currentSection = "";
|
|
20
|
+
setDiagramTitle(e) {
|
|
21
|
+
this.title = e;
|
|
22
|
+
}
|
|
23
|
+
setAccTitle(e) {
|
|
24
|
+
this.accTitle = e.replace(/^\s+/g, "");
|
|
25
|
+
}
|
|
26
|
+
setAccDescription(e) {
|
|
27
|
+
this.accDescr = e.replace(/\n\s+/g, "\n");
|
|
28
|
+
}
|
|
29
|
+
addSection(e) {
|
|
30
|
+
this.currentSection = e, this.sections.push(e);
|
|
31
|
+
}
|
|
32
|
+
addTask(e, t) {
|
|
33
|
+
let n = t.substring(1).split(":"), r = n.length === 1 ? [] : n[1].split(",").map((e) => e.trim());
|
|
34
|
+
this.tasks.push({
|
|
35
|
+
task: e,
|
|
36
|
+
score: Number(n[0]),
|
|
37
|
+
people: r,
|
|
38
|
+
section: this.currentSection
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
getActors() {
|
|
42
|
+
return g(this.tasks);
|
|
43
|
+
}
|
|
44
|
+
}, v = [
|
|
45
|
+
"$end",
|
|
46
|
+
"EOF",
|
|
47
|
+
"INVALID",
|
|
48
|
+
"NEWLINE",
|
|
49
|
+
"journey",
|
|
50
|
+
"title",
|
|
51
|
+
"acc_title",
|
|
52
|
+
"acc_title_value",
|
|
53
|
+
"acc_descr",
|
|
54
|
+
"acc_descr_value",
|
|
55
|
+
"acc_descr_multiline_value",
|
|
56
|
+
"section",
|
|
57
|
+
"taskName",
|
|
58
|
+
"taskData",
|
|
59
|
+
":"
|
|
60
|
+
];
|
|
61
|
+
function y(e, t, n) {
|
|
62
|
+
let r = e.length, i = t;
|
|
63
|
+
for (; i < r; i++) {
|
|
64
|
+
let t = e.charCodeAt(i);
|
|
65
|
+
if (t === 35 || t === 10 || t === 59 || n && t === 58) break;
|
|
66
|
+
}
|
|
67
|
+
return i;
|
|
68
|
+
}
|
|
69
|
+
function b(r) {
|
|
70
|
+
let i = r.length, s = [], c = [], l = [], u = {
|
|
71
|
+
types: s,
|
|
72
|
+
texts: c,
|
|
73
|
+
starts: l
|
|
74
|
+
}, d = 0, f = (e, t) => {
|
|
75
|
+
s.push(e), c.push(r.slice(d, t)), l.push(d), d = t;
|
|
76
|
+
};
|
|
77
|
+
for (; d = t(r, d), !(d >= i);) {
|
|
78
|
+
let t = r.charCodeAt(d), s = d + 1;
|
|
79
|
+
if (t === 10) {
|
|
80
|
+
for (; r.charCodeAt(s) === 10;) s++;
|
|
81
|
+
f(3, s);
|
|
82
|
+
} else if (n(r, d, "journey") && !a(r.charCodeAt(d + 7))) f(4, d + 7);
|
|
83
|
+
else {
|
|
84
|
+
if (n(r, d, "title")) {
|
|
85
|
+
for (s = d + 5; r.charCodeAt(s) !== 10 && o(r.charCodeAt(s));) s++;
|
|
86
|
+
if (s === i || r.charCodeAt(s) === 10) {
|
|
87
|
+
d = s;
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
let e = r.charCodeAt(d + 5);
|
|
91
|
+
if (e !== 13 && o(e) && (s = y(r, d + 6, !1), s > d + 6)) {
|
|
92
|
+
f(5, s);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
s = e(r, d, u, 6), s === d ? n(r, d, "section") && o(r.charCodeAt(d + 7)) && (s = y(r, d + 8, !0), s > d + 8) ? f(11, s) : t === 58 ? (s = y(r, d + 1, !1), f(s > d + 1 ? 13 : 14, s > d + 1 ? s : d + 1)) : t === 59 ? f(2, d + 1) : f(12, y(r, d + 1, !0)) : d = s;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return (l.length === 0 || l[l.length - 1] < i) && f(1, i), f(0, i), u;
|
|
100
|
+
}
|
|
101
|
+
var x = "'EOF', 'SPACE', 'NEWLINE', 'title', 'acc_title', 'acc_descr', 'acc_descr_multiline_value', 'section', 'taskName'";
|
|
102
|
+
function S(e, t) {
|
|
103
|
+
let { types: n, texts: r, starts: i } = b(e), a = (t, r) => {
|
|
104
|
+
let a = n[t] === 0 ? "1" : v[n[t]];
|
|
105
|
+
throw s("journey", e, i[t], `Expecting ${r}, got '${a}'`);
|
|
106
|
+
};
|
|
107
|
+
n[0] !== 4 && a(0, "'journey'");
|
|
108
|
+
for (let e = 1;; e++) {
|
|
109
|
+
let i = r[e];
|
|
110
|
+
switch (n[e]) {
|
|
111
|
+
case 3: break;
|
|
112
|
+
case 5:
|
|
113
|
+
t.setDiagramTitle(i.substring(6));
|
|
114
|
+
break;
|
|
115
|
+
case 6:
|
|
116
|
+
t.setAccTitle(r[++e].trim());
|
|
117
|
+
break;
|
|
118
|
+
case 8:
|
|
119
|
+
t.setAccDescription(r[++e].trim());
|
|
120
|
+
break;
|
|
121
|
+
case 10:
|
|
122
|
+
t.setAccDescription(i.trim());
|
|
123
|
+
break;
|
|
124
|
+
case 11:
|
|
125
|
+
t.addSection(i.substring(8));
|
|
126
|
+
break;
|
|
127
|
+
case 12:
|
|
128
|
+
n[++e] !== 13 && a(e, "'taskData'"), t.addTask(i, r[e]);
|
|
129
|
+
break;
|
|
130
|
+
case 1: return;
|
|
131
|
+
default: a(e, x);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
var C = 10, w = 8, T = 124, E = 200, D = 12, ee = 6, O = 24, k = 26, A = 11, j = 5, te = 13, ne = 20, M = "<circle cx=\"-3.6\" cy=\"-2.8\" r=\"1.3\"/><circle cx=\"3.6\" cy=\"-2.8\" r=\"1.3\"/>", N = {
|
|
136
|
+
happy: "M-5,2A6,6 0 0 0 5,2",
|
|
137
|
+
neutral: "M-4.5,4.5H4.5",
|
|
138
|
+
sad: "M-5,6.5A6,6 0 0 1 5,6.5"
|
|
139
|
+
};
|
|
140
|
+
function re(e, t, n) {
|
|
141
|
+
return `<g class="pele-face pele-face-${n}" transform="translate(${h(e)},${h(t)})"><circle r="${A}" fill="var(--_bg)" stroke="var(--_l)"/><g fill="var(--_l)">${M}</g><path d="${N[n]}" fill="none" stroke="var(--_l)" stroke-linecap="round"/></g>`;
|
|
142
|
+
}
|
|
143
|
+
function P(e, t, n) {
|
|
144
|
+
return l(n, (r) => F(e, t, n, r));
|
|
145
|
+
}
|
|
146
|
+
function F(e, t, n, a) {
|
|
147
|
+
let o = n.fontSize ?? 16, s = Math.round(o * .875), l = Math.round(o * .75), _ = n.measurer ?? c(n.fontFamily, n.fontFamilyMono), v = n.padding ?? 8;
|
|
148
|
+
if (a) return ie(e, n);
|
|
149
|
+
let y = e.tasks, b = y.length, x = g(y).filter((e) => e !== ""), S = /* @__PURE__ */ new Map();
|
|
150
|
+
x.forEach((e, t) => S.set(e, t));
|
|
151
|
+
let M = T, N = y.map((e) => r(e.task, _, s, M)), P = 0;
|
|
152
|
+
for (let e of N) P = Math.max(P, e.width);
|
|
153
|
+
P > M && (M = Math.min(Math.ceil(P), E), N = y.map((e) => i(e.task, _, s, M)));
|
|
154
|
+
let F = M + 2 * C, I = F + D, L = b > 0 ? b * I - D : 0, R = Math.round(s * 1.5), ae = Math.max(L, 240), z = [], B = 0, V = 0, H = 0;
|
|
155
|
+
for (let e of x) {
|
|
156
|
+
let t = i(e, _, s, ae - 2 * j - 6), n = 2 * j + 6 + t.width;
|
|
157
|
+
H > 0 && H + n > ae && (H = 0, V += 4);
|
|
158
|
+
let r = H > 0 ? z[z.length - 1].y : V, a = Math.max(t.height, R);
|
|
159
|
+
z.push({
|
|
160
|
+
name: e,
|
|
161
|
+
label: t,
|
|
162
|
+
x: H,
|
|
163
|
+
y: r,
|
|
164
|
+
h: a
|
|
165
|
+
}), H += n, B = Math.max(B, H), V = Math.max(V, r + a), H += ne;
|
|
166
|
+
}
|
|
167
|
+
let oe = b > 0 ? O + L : 0, U = i(e.title, _, o, Math.max(oe, 320), 1), se = U.height > 0 ? U.height + 16 : 0, W = Math.max(oe, U.width, b > 0 ? O + B : 0), G = v + (W - oe) / 2 + O, K = v + se, ce = [], q = 0;
|
|
168
|
+
for (let e = 0; e < b;) {
|
|
169
|
+
let t = e + 1;
|
|
170
|
+
for (; t < b && y[t].section === y[e].section;) t++;
|
|
171
|
+
let n;
|
|
172
|
+
y[e].section !== "" && (n = i(y[e].section, _, s, (t - e) * I - D - 2 * C, 1), q = Math.max(q, Math.max(n.height, R) + 2 * ee)), ce.push({
|
|
173
|
+
start: e,
|
|
174
|
+
count: t - e,
|
|
175
|
+
label: n
|
|
176
|
+
}), e = t;
|
|
177
|
+
}
|
|
178
|
+
let J = R;
|
|
179
|
+
for (let e of N) J = Math.max(J, e.height);
|
|
180
|
+
let le = x.length > 0 ? 2 * j + 6 : 0, Y = J + le + 2 * w, X = K + (q > 0 ? q + ee : 0), Z = X + Y + A + 16, ue = Z + 4 * k, de = G + L, Q = "", $ = K;
|
|
181
|
+
if (b > 0) {
|
|
182
|
+
let e = "", t = "";
|
|
183
|
+
for (let n = 5; n >= 1; n--) {
|
|
184
|
+
let r = Z + (5 - n) * k;
|
|
185
|
+
e += `M${h(G - 6)},${h(r)}H${h(de)}`, t += `<text x="${h(G - 12)}" y="${h(r + l * .35)}">${n}</text>`;
|
|
186
|
+
}
|
|
187
|
+
Q += `<path class="pele-grid" d="${e}" fill="none" stroke="var(--_a)"/><g class="pele-scale" font-size="${l}" text-anchor="end" fill="var(--_m)">${t}</g>`;
|
|
188
|
+
let n = "", r = "", i = "", a = [];
|
|
189
|
+
y.forEach((e, t) => {
|
|
190
|
+
let o = G + t * I, c = o + F / 2, l = e.score, u = Z + (5 - (Number.isNaN(l) ? 3 : Math.min(5, Math.max(1, l)))) * k;
|
|
191
|
+
n += `${t === 0 ? "M" : "L"}${h(c)},${h(u)}`, r += `M${h(c)},${h(X + Y)}V${h(u - A)}`, i += re(c, u, l > 3 ? "happy" : l < 3 ? "sad" : "neutral");
|
|
192
|
+
let g = "", _ = e.people.filter((e) => e !== ""), v = Math.min(te, (F - 2 * C - 2 * j) / Math.max(_.length - 1, 1));
|
|
193
|
+
_.forEach((e, t) => {
|
|
194
|
+
g += `<circle class="pele-actor" cx="${h(c + (t - (_.length - 1) / 2) * v)}" cy="${h(X + Y - w - j)}" r="${j}" fill="${d(S.get(e) ?? 0)}" stroke="var(--_s)"><title>${f(e)}</title></circle>`;
|
|
195
|
+
}), a.push(`<g class="pele-node pele-task" data-id="${f(e.task.trim())}"><rect x="${h(o)}" y="${h(X)}" width="${h(F)}" height="${h(Y)}" fill="var(--_s)" stroke="var(--_b)"${m}/>` + p(N[t], c, X + w + J / 2, ` font-size="${s}"`) + g + "</g>");
|
|
196
|
+
}), Q += `<path class="pele-stems" d="${r}" fill="none" stroke="var(--_b)" stroke-dasharray="2 3"/>` + (b > 1 ? `<path class="pele-edge" d="${n}" fill="none" stroke="var(--_l)" stroke-linejoin="round"/>` : "") + i;
|
|
197
|
+
for (let e of ce) {
|
|
198
|
+
let t = a.slice(e.start, e.start + e.count).join("");
|
|
199
|
+
if (!e.label) {
|
|
200
|
+
Q += t;
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
let n = G + e.start * I, r = e.count * I - D;
|
|
204
|
+
Q += `<g class="pele-cluster pele-section" data-id="${f(y[e.start].section.trim())}"><rect x="${h(n)}" y="${h(K)}" width="${h(r)}" height="${h(q)}" fill="var(--_a)"${m}/>` + p(e.label, n + r / 2, K + q / 2, ` font-size="${s}" font-weight="var(--_hw)"`) + t + "</g>";
|
|
205
|
+
}
|
|
206
|
+
if ($ = ue + A, z.length > 0) {
|
|
207
|
+
let e = G + (L - B) / 2, t = $ + 16, n = "";
|
|
208
|
+
for (let r of z) {
|
|
209
|
+
let i = t + r.y + r.h / 2;
|
|
210
|
+
n += `<g class="pele-legend-item" data-id="${f(r.name)}"><circle cx="${h(e + r.x + j)}" cy="${h(i)}" r="${j}" fill="${d(S.get(r.name) ?? 0)}"/>` + p(r.label, e + r.x + 2 * j + 6 + r.label.width / 2, i, "") + "</g>";
|
|
211
|
+
}
|
|
212
|
+
Q += `<g class="pele-legend" font-size="${s}">${n}</g>`, $ = t + V;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
let fe = Math.ceil(W + 2 * v), pe = Math.ceil(Math.max($, v) + v), me = p(U, v + W / 2, v + U.height / 2, " class=\"pele-title\" font-weight=\"var(--_tw)\"") + Q;
|
|
216
|
+
return {
|
|
217
|
+
svg: u("journey", fe, pe, o, n, e, me),
|
|
218
|
+
width: fe,
|
|
219
|
+
height: pe,
|
|
220
|
+
links: []
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
function ie(e, t) {
|
|
224
|
+
let n = t.fontSize ?? 16, r = Math.round(n * .875), a = t.measurer ?? c(t.fontFamily, t.fontFamilyMono), o = t.padding ?? 8, s = Math.max(140, (t.maxWidth ?? 320) - 2 * o), l = i(e.title, a, n, s, 1), f = g(e.tasks).filter((e) => e !== ""), _ = new Map(f.map((e, t) => [e, t])), v = o + (l.height ? l.height + 16 : 0), y, b = "", x = l.width;
|
|
225
|
+
e.tasks.forEach((t, c) => {
|
|
226
|
+
if (t.section !== y) {
|
|
227
|
+
y = t.section;
|
|
228
|
+
let e = i(y, a, n, s - 16, 1);
|
|
229
|
+
e.height && (b += p(e, o + 8 + e.width / 2, v + e.height / 2, " class=\"pele-cluster-label\" font-weight=\"var(--_hw)\""), x = Math.max(x, e.width + 16), v += e.height + 8);
|
|
230
|
+
}
|
|
231
|
+
let l = i(t.task, a, r, s - 72), u = t.people.filter((e) => e !== "").map((e) => ({
|
|
232
|
+
name: e,
|
|
233
|
+
label: i(e, a, r, s - 44)
|
|
234
|
+
})), f = Math.max(l.height, 42), g = 2 * w + f;
|
|
235
|
+
for (let e of u) g += Math.max(16, e.label.height) + 4;
|
|
236
|
+
let S = Math.max(s, l.width + 72);
|
|
237
|
+
b += `<g class="pele-node pele-journey-step" data-id="${c}"><rect x="${h(o)}" y="${h(v)}" width="${h(S)}" height="${h(g)}" fill="var(--_s)" stroke="var(--_b)"${m}/>`, b += p(l, o + C + l.width / 2, v + w + l.height / 2, " class=\"pele-label\"");
|
|
238
|
+
let T = o + S - 28;
|
|
239
|
+
b += re(T, v + w + A, t.score > 3 ? "happy" : t.score < 3 ? "sad" : "neutral"), Number.isNaN(t.score) || (b += `<text class="pele-journey-score" x="${h(T)}" y="${h(v + w + 2 * A + r)}" font-size="${r}" text-anchor="middle">${h(Math.min(5, Math.max(1, t.score)))}</text>`);
|
|
240
|
+
let E = v + w + f + 4;
|
|
241
|
+
for (let e of u) {
|
|
242
|
+
let t = Math.max(16, e.label.height);
|
|
243
|
+
b += `<circle class="pele-actor" cx="${h(o + 16)}" cy="${h(E + t / 2)}" r="${j}" fill="${d(_.get(e.name))}"/>` + p(e.label, o + 28 + e.label.width / 2, E + t / 2, ` class="pele-journey-actor" font-size="${r}"`), E += t + 4;
|
|
244
|
+
}
|
|
245
|
+
b += "</g>", v += g, c + 1 < e.tasks.length && (b += `<path class="pele-edge" d="M${h(o + S / 2)},${h(v)}v16" fill="none" stroke="var(--_l)"/>`), v += 16, x = Math.max(x, S);
|
|
246
|
+
});
|
|
247
|
+
let S = Math.ceil(x + 2 * o), T = Math.ceil(Math.max(o + l.height, v - (e.tasks.length ? 16 : 0)) + o), E = p(l, S / 2, o + l.height / 2, " class=\"pele-title\" font-weight=\"var(--_tw)\"") + b;
|
|
248
|
+
return {
|
|
249
|
+
svg: u("journey", S, T, n, t, e, E),
|
|
250
|
+
width: S,
|
|
251
|
+
height: T,
|
|
252
|
+
links: []
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
var I = {
|
|
256
|
+
type: "journey",
|
|
257
|
+
parse(e, t, n) {
|
|
258
|
+
let r = new _();
|
|
259
|
+
return r.title = n, S(e, r), r;
|
|
260
|
+
},
|
|
261
|
+
render: P
|
|
262
|
+
};
|
|
263
|
+
export { I as journey };
|