@locus-forge/locus-map 0.0.0-stage → 0.1.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/.locus-pi/workflows/locus-map-compact/locus-map-compact.workflow.mjs +925 -0
- package/CONTRIBUTING.md +194 -0
- package/LICENSE +21 -0
- package/README.md +151 -2
- package/SECURITY.md +58 -0
- package/THIRD_PARTY_NOTICES.md +63 -0
- package/dist/assets/Assistant-Bold-gm-uSS1B.woff2 +0 -0
- package/dist/assets/Assistant-Medium-DrcxCXg3.woff2 +0 -0
- package/dist/assets/Assistant-Regular-DVxZuzxb.woff2 +0 -0
- package/dist/assets/Assistant-SemiBold-SCI4bEL9.woff2 +0 -0
- package/dist/assets/abnfDiagram-VCTEODGH-tB0FidS0.js +1 -0
- package/dist/assets/ar-SA-G6X2FPQ2-BQNIWg05.js +10 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-D1SjeTh7.js +36 -0
- package/dist/assets/az-AZ-76LH7QW2-BAQK4UQr.js +1 -0
- package/dist/assets/bg-BG-XCXSNQG7-BDvRwwoU.js +5 -0
- package/dist/assets/blockDiagram-I7D4REHJ-xOWzl6z3.js +129 -0
- package/dist/assets/bn-BD-2XOGV67Q-B-osMrPA.js +5 -0
- package/dist/assets/c4Diagram-7LVT6UL2-D5e6bidF.js +38 -0
- package/dist/assets/ca-ES-6MX7JW3Y-BqurRCRN.js +8 -0
- package/dist/assets/channel-DP1yLO71.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-CQmSUQUU.js +1 -0
- package/dist/assets/chunk-5VM5RSS4-iLXee7yJ.js +15 -0
- package/dist/assets/chunk-F27PBJKO-BSQMcINP.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-l-2241K-.js +231 -0
- package/dist/assets/chunk-JWPE2WC7-Cu7ldP_G.js +1 -0
- package/dist/assets/chunk-POPQ4Y6H-BkgM8HKl.js +1 -0
- package/dist/assets/chunk-SVP7TREG-BR7R6F9G.js +88 -0
- package/dist/assets/chunk-TICWLB2K-DzFEizqD.js +206 -0
- package/dist/assets/chunk-XXDRQBXY-B3V5ae8Q.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-DKQje2st.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-C3KVT455.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-BSUyEU78.js +1 -0
- package/dist/assets/cs-CZ-2BRQDIVT-BtaYa8qS.js +11 -0
- package/dist/assets/cynefin-OW5HDTMX-BQ6G1FGd.js +166 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-BmH3cQU1.js +62 -0
- package/dist/assets/cytoscape.esm-BHa1VTXv.js +321 -0
- package/dist/assets/d3-scale-6PaX2_v-.js +1 -0
- package/dist/assets/da-DK-5WZEPLOC-Dk88jbcE.js +5 -0
- package/dist/assets/dagre-GXQ25YYZ-DzqDTRYR.js +4 -0
- package/dist/assets/de-DE-XR44H4JA-BtkAzckW.js +8 -0
- package/dist/assets/diagram-S7CK7UJ4-CKkad9LS.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-HnH6kGvY.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-BGbiUlE1.js +3 -0
- package/dist/assets/diagram-VX7I27RA-MPt2qzsq.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-hcUL0DLm.js +24 -0
- package/dist/assets/directory-open-01563666-DWU9wJ6I.js +1 -0
- package/dist/assets/directory-open-4ed118d0-CunoC1EB.js +1 -0
- package/dist/assets/dist-5XZJcZMV.js +21 -0
- package/dist/assets/dist-YE-j8nFO.js +3 -0
- package/dist/assets/ebnfDiagram-PWID7BFC-hUZUNK__.js +1 -0
- package/dist/assets/el-GR-BZB4AONW-DOnEE5fq.js +10 -0
- package/dist/assets/engines-C6k3bUFA.js +1 -0
- package/dist/assets/erDiagram-RLTQ6QDP-DoHgp3nM.js +99 -0
- package/dist/assets/es-ES-U4NZUMDT-VFRkCKl6.js +9 -0
- package/dist/assets/eu-ES-A7QVB2H4-CWlqsMWd.js +11 -0
- package/dist/assets/fa-IR-HGAKTJCU-CxtwUetE.js +8 -0
- package/dist/assets/fi-FI-Z5N7JZ37-Djl1mow5.js +6 -0
- package/dist/assets/file-open-002ab408-DIuFHtCF.js +1 -0
- package/dist/assets/file-open-7c801643-684qeFg4.js +1 -0
- package/dist/assets/file-save-3189631c-C1wFhQhH.js +1 -0
- package/dist/assets/file-save-745eba88-Bb9F9Kg7.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-CCs8KCI7.js +168 -0
- package/dist/assets/fr-FR-RHASNOE6-CTSI58QE.js +9 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-V39NrnLQ.js +292 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-DsfCYVRX.js +106 -0
- package/dist/assets/gl-ES-HMX3MZ6V-9X19A7Co.js +10 -0
- package/dist/assets/he-IL-6SHJWFNN-CCWn0aTE.js +10 -0
- package/dist/assets/hi-IN-IWLTKZ5I-Czvn3Cqk.js +4 -0
- package/dist/assets/hu-HU-A5ZG7DT2-CSA0xyZy.js +7 -0
- package/dist/assets/icon-0-B1nVfAeC.js +6 -0
- package/dist/assets/icon-1-BB6AG9gM.js +6 -0
- package/dist/assets/icon-10-DZFK3YST.js +7 -0
- package/dist/assets/icon-100-DJkcDXhn.js +7 -0
- package/dist/assets/icon-101-DBSse9CM.js +6 -0
- package/dist/assets/icon-102-BnxZHFIv.js +6 -0
- package/dist/assets/icon-103-sLc3eQWO.js +6 -0
- package/dist/assets/icon-104-BQazFUnn.js +6 -0
- package/dist/assets/icon-105-Cc1dCVZY.js +7 -0
- package/dist/assets/icon-106-Dsm26VMI.js +7 -0
- package/dist/assets/icon-107-CTfHlA3r.js +8 -0
- package/dist/assets/icon-108-BV3_gTwL.js +7 -0
- package/dist/assets/icon-109-LcWd-DPG.js +7 -0
- package/dist/assets/icon-11-Ck94EqLX.js +7 -0
- package/dist/assets/icon-110-CzMtvC4E.js +7 -0
- package/dist/assets/icon-111-RhOOYnYs.js +6 -0
- package/dist/assets/icon-112-Brjphob9.js +6 -0
- package/dist/assets/icon-113-D6o90w8p.js +8 -0
- package/dist/assets/icon-114-B3PtrOAM.js +7 -0
- package/dist/assets/icon-115-BHWSQi73.js +6 -0
- package/dist/assets/icon-116-CjjTDutA.js +6 -0
- package/dist/assets/icon-117-CiyDBQRd.js +6 -0
- package/dist/assets/icon-118-BKghplP7.js +6 -0
- package/dist/assets/icon-119-C66U0X2Z.js +6 -0
- package/dist/assets/icon-12-BIIzektY.js +7 -0
- package/dist/assets/icon-120-DOWuZwny.js +6 -0
- package/dist/assets/icon-121-CFpHliq-.js +6 -0
- package/dist/assets/icon-122-CDbFwKzd.js +8 -0
- package/dist/assets/icon-123-C4_ZzJKx.js +8 -0
- package/dist/assets/icon-124-CSrE5xMq.js +8 -0
- package/dist/assets/icon-125-CViMXo6M.js +7 -0
- package/dist/assets/icon-126-LvH7ZIUN.js +7 -0
- package/dist/assets/icon-127-D4rZyYvV.js +10 -0
- package/dist/assets/icon-128-C60_2TSj.js +7 -0
- package/dist/assets/icon-129-BTKaVLyI.js +6 -0
- package/dist/assets/icon-13-MmHg-aVB.js +7 -0
- package/dist/assets/icon-130-C1nmEjwm.js +7 -0
- package/dist/assets/icon-131-CFanGaiN.js +7 -0
- package/dist/assets/icon-132-DvDvP_mz.js +7 -0
- package/dist/assets/icon-133-BbNiBiYQ.js +7 -0
- package/dist/assets/icon-134-Rdo3VLsE.js +6 -0
- package/dist/assets/icon-135-dIyCdAnR.js +6 -0
- package/dist/assets/icon-136-DXeBKuFV.js +7 -0
- package/dist/assets/icon-137-DTQC1STd.js +7 -0
- package/dist/assets/icon-138-CieKkHSA.js +9 -0
- package/dist/assets/icon-139-yCDfoHA7.js +7 -0
- package/dist/assets/icon-14-_iYhOAxf.js +7 -0
- package/dist/assets/icon-15-CIkC0bSy.js +7 -0
- package/dist/assets/icon-16-Dz0Hwmvs.js +6 -0
- package/dist/assets/icon-17-Cf1jKmJ9.js +6 -0
- package/dist/assets/icon-18-C_cVw5ru.js +6 -0
- package/dist/assets/icon-19-De7tySRe.js +6 -0
- package/dist/assets/icon-2-BiezH_JN.js +7 -0
- package/dist/assets/icon-20-CjL7S_wd.js +6 -0
- package/dist/assets/icon-21-C0q-1bpH.js +6 -0
- package/dist/assets/icon-22-D2-vd2Vo.js +6 -0
- package/dist/assets/icon-23-CedJLXKG.js +7 -0
- package/dist/assets/icon-24-C58mciGE.js +6 -0
- package/dist/assets/icon-25-DSHXW9L-.js +6 -0
- package/dist/assets/icon-26-DXutjT6y.js +6 -0
- package/dist/assets/icon-27--BoADDsQ.js +6 -0
- package/dist/assets/icon-28-CheZrtz1.js +8 -0
- package/dist/assets/icon-29-CrZdz1I2.js +7 -0
- package/dist/assets/icon-3-sYhuFSG7.js +7 -0
- package/dist/assets/icon-30-C7Kyjm57.js +6 -0
- package/dist/assets/icon-31-DtcvlpTq.js +6 -0
- package/dist/assets/icon-32-CphWtCb4.js +6 -0
- package/dist/assets/icon-33-CQT4KEni.js +6 -0
- package/dist/assets/icon-34-pe2lPRPi.js +6 -0
- package/dist/assets/icon-35-BVtSZw3c.js +6 -0
- package/dist/assets/icon-36-xRhJ8mZt.js +6 -0
- package/dist/assets/icon-37-Uq6qYn82.js +7 -0
- package/dist/assets/icon-38-BpFeeALu.js +7 -0
- package/dist/assets/icon-39-Dx9zYq-y.js +7 -0
- package/dist/assets/icon-4-BeiqVGT3.js +7 -0
- package/dist/assets/icon-40-D0wxO99E.js +7 -0
- package/dist/assets/icon-41-5eBMQB2n.js +8 -0
- package/dist/assets/icon-42-BSElyGDo.js +7 -0
- package/dist/assets/icon-43-BSOGyJdE.js +8 -0
- package/dist/assets/icon-44-DAYRrZIq.js +7 -0
- package/dist/assets/icon-45-DXY5ZNNW.js +7 -0
- package/dist/assets/icon-46-BGV7Hq6C.js +7 -0
- package/dist/assets/icon-47-ZrOn6gh_.js +7 -0
- package/dist/assets/icon-48-CsZTQMYV.js +7 -0
- package/dist/assets/icon-49-B8BaY0Mp.js +7 -0
- package/dist/assets/icon-5-CpedJNNw.js +7 -0
- package/dist/assets/icon-50-B7IWOCKA.js +7 -0
- package/dist/assets/icon-51-2Rn1eZ4M.js +7 -0
- package/dist/assets/icon-52-D4HDdcUX.js +8 -0
- package/dist/assets/icon-53-DNszwqSR.js +6 -0
- package/dist/assets/icon-54-Xp8wC9Mn.js +6 -0
- package/dist/assets/icon-55-DvKPtWtc.js +6 -0
- package/dist/assets/icon-56-qdaDYO-c.js +6 -0
- package/dist/assets/icon-57-C3jBnpDY.js +6 -0
- package/dist/assets/icon-58-CHVPbimu.js +6 -0
- package/dist/assets/icon-59-BxYpVoLi.js +6 -0
- package/dist/assets/icon-6-DGMnODWY.js +7 -0
- package/dist/assets/icon-60-nT25Jfot.js +6 -0
- package/dist/assets/icon-61-TWCIas0q.js +6 -0
- package/dist/assets/icon-62-B2rpCbSK.js +6 -0
- package/dist/assets/icon-63-xnsp2xo2.js +6 -0
- package/dist/assets/icon-64-PMlrHZZa.js +6 -0
- package/dist/assets/icon-65-BmQAifhj.js +6 -0
- package/dist/assets/icon-66-DeV16I8-.js +6 -0
- package/dist/assets/icon-67-B8HsO_gP.js +6 -0
- package/dist/assets/icon-68-ComCfpKF.js +6 -0
- package/dist/assets/icon-69-CG4uEyXD.js +5 -0
- package/dist/assets/icon-7-D7QV8iDt.js +7 -0
- package/dist/assets/icon-70-DhuszGqg.js +5 -0
- package/dist/assets/icon-71-CECea36R.js +8 -0
- package/dist/assets/icon-72-D6Cilerx.js +5 -0
- package/dist/assets/icon-73-BcXKN0_Q.js +6 -0
- package/dist/assets/icon-74-x-WCCw7Y.js +6 -0
- package/dist/assets/icon-75-DwYg3aAl.js +6 -0
- package/dist/assets/icon-76-Dmh1yl_o.js +6 -0
- package/dist/assets/icon-77-BWpZprdZ.js +6 -0
- package/dist/assets/icon-78--zVbx8yc.js +6 -0
- package/dist/assets/icon-79-CEUXlPh-.js +6 -0
- package/dist/assets/icon-8-BdsnITTH.js +7 -0
- package/dist/assets/icon-80-Bg-ZZRLP.js +7 -0
- package/dist/assets/icon-81-cD-KNOoy.js +6 -0
- package/dist/assets/icon-82-16FU2TZ-.js +6 -0
- package/dist/assets/icon-83-CvL4wS1h.js +6 -0
- package/dist/assets/icon-84-BfiboSwi.js +6 -0
- package/dist/assets/icon-85-LB0Ura8Y.js +6 -0
- package/dist/assets/icon-86-DWja1qqa.js +6 -0
- package/dist/assets/icon-87-GQ4vkWov.js +6 -0
- package/dist/assets/icon-88-Bjb3oyjh.js +6 -0
- package/dist/assets/icon-89-CS3JNCxI.js +6 -0
- package/dist/assets/icon-9-aGq56hE7.js +6 -0
- package/dist/assets/icon-90-B0_E4np7.js +6 -0
- package/dist/assets/icon-91-D_7zfU7y.js +8 -0
- package/dist/assets/icon-92-DMMH9vOM.js +6 -0
- package/dist/assets/icon-93-wLckB8wM.js +6 -0
- package/dist/assets/icon-94-CjD59yDM.js +6 -0
- package/dist/assets/icon-95-CipgPXt3.js +7 -0
- package/dist/assets/icon-96-DeADzXz2.js +8 -0
- package/dist/assets/icon-97-BNxSQhrs.js +7 -0
- package/dist/assets/icon-98-CZW2Twh8.js +6 -0
- package/dist/assets/icon-99-CIA1GOq3.js +6 -0
- package/dist/assets/id-ID-SAP4L64H-C8Y8IY1j.js +10 -0
- package/dist/assets/image-blob-reduce.esm-BZtWH-rr.js +2 -0
- package/dist/assets/index-0Kge4otW.js +328 -0
- package/dist/assets/index-BaHpjra6.js +362 -0
- package/dist/assets/index-C_ek_ppO.css +1 -0
- package/dist/assets/infoDiagram-27XIBGKW-C0Ivywz2.js +2 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-CMmE4k9T.js +70 -0
- package/dist/assets/it-IT-JPQ66NNP-gVSFrMB6.js +11 -0
- package/dist/assets/ja-JP-DBVTYXUO-HnD6OZRp.js +8 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-CpkEKmSl.js +139 -0
- package/dist/assets/kaa-6HZHGXH3-C29qXHap.js +1 -0
- package/dist/assets/kab-KAB-ZGHBKWFO-CLNG0bT_.js +8 -0
- package/dist/assets/kanban-definition-UXKFOSKX-hOCBBBFh.js +89 -0
- package/dist/assets/katex-HP8lGamR.js +257 -0
- package/dist/assets/kk-KZ-P5N5QNE5-DNoNNWtH.js +1 -0
- package/dist/assets/km-KH-HSX4SM5Z-eQMwEzV_.js +11 -0
- package/dist/assets/ko-KR-MTYHY66A-DP3yaFyg.js +9 -0
- package/dist/assets/ku-TR-6OUDTVRD-B2GUIkso.js +9 -0
- package/dist/assets/layout-D_xIMZTq.js +1 -0
- package/dist/assets/libavoid-BRQRZjmQ.wasm +0 -0
- package/dist/assets/lt-LT-XHIRWOB4-CuDegLO4.js +3 -0
- package/dist/assets/lv-LV-5QDEKY6T-DOjbM5AK.js +7 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-DL4r3hzu.js +96 -0
- package/dist/assets/mr-IN-CRQNXWMA-C0vzd3Vl.js +13 -0
- package/dist/assets/my-MM-5M5IBNSE-Dirjg8Yf.js +1 -0
- package/dist/assets/nb-NO-T6EIAALU-IpjtB42R.js +10 -0
- package/dist/assets/nl-NL-IS3SIHDZ-BiVBDlHI.js +8 -0
- package/dist/assets/nn-NO-6E72VCQL-kbUyKFiJ.js +8 -0
- package/dist/assets/oc-FR-POXYY2M6-C-zRRb5B.js +8 -0
- package/dist/assets/pa-IN-N4M65BXN-Dhh3bH7-.js +4 -0
- package/dist/assets/pegDiagram-XKGWAZYB-CtbYRYVR.js +1 -0
- package/dist/assets/pica-HSHSc6s6.js +2 -0
- package/dist/assets/pieDiagram-E7YTZNPT-Cwv0hsvK.js +39 -0
- package/dist/assets/pl-PL-T2D74RX3-CuDP0Pq6.js +9 -0
- package/dist/assets/pt-BR-5N22H2LF-BlvJqOgZ.js +9 -0
- package/dist/assets/pt-PT-UZXXM6DQ-C3RUoC5C.js +9 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-C_u4_Oxh.js +7 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-FHKPLH9r.js +1 -0
- package/dist/assets/requirementDiagram-BXWQKSXE-B_8MbGxf.js +84 -0
- package/dist/assets/ro-RO-JPDTUUEW-QUZCSbcA.js +11 -0
- package/dist/assets/roundRect-mAH3dD0p.js +1 -0
- package/dist/assets/ru-RU-B4JR7IUQ-BCk_AmNC.js +9 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-DsfunxYA.js +40 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-cRf71lBb.js +162 -0
- package/dist/assets/si-LK-N5RQ5JYF-jo1qm6JU.js +1 -0
- package/dist/assets/sizeCapture-INFHLROL-COrYinZO.js +1 -0
- package/dist/assets/sk-SK-C5VTKIMK-BnMkvGRK.js +6 -0
- package/dist/assets/sl-SI-NN7IZMDC-DIkgazuw.js +6 -0
- package/dist/assets/stateDiagram-D77RDMKH-BvBlef2E.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-jeUVI-Q4.js +1 -0
- package/dist/assets/subset-shared.chunk-Cp0oS3tn.js +22 -0
- package/dist/assets/subset-worker.chunk-BEbN9HM2.js +1 -0
- package/dist/assets/sv-SE-XGPEYMSR-CxQiCAkW.js +10 -0
- package/dist/assets/swimlanes-42K2YHIH-BjR8lfsn.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-Dp8eikhA.js +8 -0
- package/dist/assets/ta-IN-2NMHFXQM-e_HiIsgP.js +9 -0
- package/dist/assets/th-TH-HPSO5L25-DTp8x86q.js +2 -0
- package/dist/assets/timeline-definition-24CTP7MA-B0uf0zYu.js +120 -0
- package/dist/assets/tr-TR-DEFEU3FU-BfTQG1sR.js +7 -0
- package/dist/assets/uk-UA-QMV73CPH-DMHmllj-.js +6 -0
- package/dist/assets/vennDiagram-4TSXK5OY-AxXlA6VW.js +34 -0
- package/dist/assets/vi-VN-M7AON7JQ-BtoynmIl.js +5 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-BiKqKrb1.js +78 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-DKJ6ufCR.js +7 -0
- package/dist/assets/zh-CN-LNUGB5OW-BiSoyhtF.js +10 -0
- package/dist/assets/zh-HK-E62DVLB3-C6DC7GXY.js +1 -0
- package/dist/assets/zh-TW-RAJ6MFWO-D1A1a-SQ.js +9 -0
- package/dist/fonts/Assistant/Assistant-Bold.woff2 +0 -0
- package/dist/fonts/Assistant/Assistant-Medium.woff2 +0 -0
- package/dist/fonts/Assistant/Assistant-Regular.woff2 +0 -0
- package/dist/fonts/Assistant/Assistant-SemiBold.woff2 +0 -0
- package/dist/fonts/Cascadia/CascadiaCode-Regular.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-279a7b317d12eb88de06167bd672b4b4.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-6e066e8de2ac57ea9283adb9c24d7f0c.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-dc6a8806fa96795d7b3be5026f989a17.woff2 +0 -0
- package/dist/fonts/ComicShanns/ComicShanns-Regular-fcb0fc02dcbee4c9846b3e2508668039.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-349fac6ca4700ffec595a7150a0d1e1d.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-3f2c5db56cc93c5a6873b1361d730c16.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-41b173a47b57366892116a575a43e2b6.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-623ccf21b21ef6b3a0d87738f77eb071.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-a88b72a24fb54c9f94e3b5fdaa7481c9.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-b9dcf9d2e50a1eaf42fc664b50a3fd0d.woff2 +0 -0
- package/dist/fonts/Excalifont/Excalifont-Regular-be310b9bcd4f1a43f571c46df7809174.woff2 +0 -0
- package/dist/fonts/Liberation/LiberationSans-Regular.woff2 +0 -0
- package/dist/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYE98RXi4EwSsbg.woff2 +0 -0
- package/dist/fonts/Lilita/Lilita-Regular-i7dPIFZ9Zz-WBtRtedDbYEF8RXi4EwQ.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTA3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTQ3j6zbXWjgeg.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTk3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTo3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Nunito/Nunito-Regular-XRXI3I6Li01BKofiOc5wtlZ2di8HDIkhdTs3j6zbXWjgevT5.woff2 +0 -0
- package/dist/fonts/Virgil/Virgil-Regular.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-019d66dcad46dc156b162d267f981c20.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-04b718e5623574919c8b0dea5f301444.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-069e77aac84590e2e991d0a0176d34f2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-06c77b8c66e51ed6c63ccb502dd8b8af.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-08e0dc436ad0ad61ba5558db0674d762.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-093b9ef39a46ceae95a1df18a0a3a326.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-095c169f3314805276f603a362766abd.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-09850c4077f3fffe707905872e0e2460.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0986d134c05864f5025962eef9f994a0.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0b5d723fdc4e249c140f0909e87d03b4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0f626226ba1272e832aea87bafd9720e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0f7fb1e0d5015bb1371343153ecf7ce3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0fa55a080fcd0f9dc2e0b0058b793df8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-0facdf1ea213ba40261022f5d5ed4493.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-10a7ae9a371830a80c3d844acf1c02d7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-112c051027b2d766c19a519f6ee1f4f7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-11c345711937f0ba4b8f7b6b919c8440.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-12b52b58eb3df36804b9a654ec9ee194.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-13ae07ed2e272d26d59bc0691cd7117a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-13d2887ec8ee73c43acdabc52a05af7b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-145aa02cdd91946e67dc934e1acffe75.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-15dc6d811c9cd078f9086a740d5a1038.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-173945821411c09f70c95f98d590e697.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1b611157cd46bb184d4fa4dae2d6a2b8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1e6fd68f1f3902ce48ce8c69df385622.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1ee544f0f1dac422545c505baa788992.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-1fdc0c67ed57263a80fd108c1f6ccf24.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-203b0e569e3b14aac86a003dc3fa523e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-20cc1bbf50e7efb442756cb605672c1f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-20e7bf72fa05de9adf7dbcc7bf51dde6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-21430ee05a1248901da8d0de08744d47.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-23686f7f29da6e8008c36dd3a80c83d6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-23ad2d71b280f00b1363b95b7bea94eb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-23f228f3999c01983860012330e4be08.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-24476a126f129212beb33f66853ea151.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-24a21c1e4449222e8d1898d69ff3a404.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-25b7f38e18f035f96cb5e547bd2bd08c.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-29cec36cd205b211da97acabaa62f055.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2a26d20a23b00898ce82f09d2ee47c3f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2adbc89c11e65905393d3dfc468b9d5b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2b7441d46298788ac94e610ffcc709b6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2b77e8ebfb2367ab2662396a60e7d320.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2cf96d082d35ea3d8106851223ad0d16.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2d43040e86ff03ba677f6f9c04cd0805.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-2e33e8dc771ef5e1d9127d60a6b73679.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-33432927cd87d40cfe393c7482bf221f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-353f33792a8f60dc69323ddf635a269e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-36925dfe329a45086cbb7fc5c20d45ac.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3717077e38f98d89eae729b6c14e56dc.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3756e81d3e149cf6099163ee79944fec.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-395c35dd584b56b0789f58a0559beaf1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3c9de2ae0ea4bc91a510942dfa4be8d2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3cc70dbb64df5b21f1326cc24dee2195.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3e1f8f654357353bf0e04ba5c34b5f7f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3e63ed8162808a9e425ed80a8bc79114.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-3eaa538115d76932653c21d8dc28f207.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4095eb84ef3874e2600247bee0b04026.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-41521fade99856108931b4768b1b2648.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-450da755d5bcb70906e1295e559b9602.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-452225341522a7942f0f6aab1a5c91a3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4535823663ad81405188a528d8f2b1a2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4806e761d750087c2d734fc64596eaff.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4a0fdb40036e87b40aa08dd30584cb85.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4a38cc3e9cf104e69ba246d37f8cf135.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4aca6a43e59aceee2166b0c7e4e85ef1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4bfaa8ffa64c5ee560aa2daba7c9cbd3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4dc6d5f188d5c96d44815cd1e81aa885.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4ddc14ed3eb0c3e46364317dfc0144a3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4ee10ae43505e2e0bc62656ced49c0fa.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-4f50e5136e136527280bc902c5817561.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-51502f1206be09c565f1547c406e9558.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-51a0e808bbc8361236ac521a119758a3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-52a84a22fd1369bffeaf21da2d6158dc.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5330a2119a716e4e7224ed108b085dac.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-543fa46ace099a7099dad69123399400.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-544fc28abe2c5c30e62383fd4dac255f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-54acdfc2166ad7fcbd074f75fd4a56ba.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5572b3513ba8df57a3d5d7303ee6b11b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-56467a5c8840c4d23a60b2f935114848.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-56a32a7689abd0326e57c10c6c069bb4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-57862b464a55b18c7bf234ce22907d73.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-583d166e56ba0de4b77eabb47ef67839.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5882ffa04f32584d26109137e2da4352.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-58fd02350d0bc52cf1ca3bb32ce9766e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5935a5775af3d5c6307ac667bd9ae74e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-59e9ff77b0efaf684bc09274fb6908c9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5a1ce3117cfe90c48e8fb4a9a00f694d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5a45d991244d4c7140217e1e5f5ca4f4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5a7fac4b8b23a6e4e5ba0c9bf1756c91.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5b0ed6971aaab9c8ad563230bd5471a7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-5d2898fbc097a7e24c6f38d80587621e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-603aefd23e350ba7eb124273e3c9bcf1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-60a3089806700d379f11827ee9843b6b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-60a41c7e1c68f22424e6d22df544bc82.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-642b26e2e5f5fb780b51b593dbc8c851.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-66493ba5a8367f2928812f446f47b56a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-670ba603758d94268e8606f240a42e12.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-671a2c20b1eb9e4ef8a192833940e319.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-684d65f1793cac449dde5d59cb3c47fb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-69c09cc5fa3e55c74fc4821f76909cc3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6ae5b42180ad70b971c91e7eefb8eba2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6e092f71c1e634059ada0e52abadce67.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6f3256af8454371776bc46670d33cc65.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-6fe5c5973cc06f74b2387a631ea36b88.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-70c2eb8d64e71a42a834eb857ea9df51.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-70e811fd7994e61f408c923de6ddd078.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7197d6fda6cba7c3874c53d6381ca239.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-72252d73220fa3cd856677888cee1635.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-72536a3d71b694a0d53dd90ddceae41e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-726303e0774b4e678bff8c2deb6ca603.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-733171b4ffcd17ea1fe1c0ba627173bf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-739bc1a567439c7cffcd1614644593d2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-73e309718fd16cea44b4d54a33581811.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7494dc504ae00ee9cd0505f990f88c5d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-74e2263a91439c25b91d5132ce9f4d62.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-761d05e3cd968cf574166867998ef06a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7718fe60986d8b42b1be9c5ace5ccf25.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-774d4f764a1299da5d28ec2f2ffe0d69.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-79d494361ae093b69e74ee9dbe65bfd4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-79f007c1c6d07557120982951ea67998.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7a07ddc0f0c0f5f4a9bad6ee3dda66b5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7ab2bed91166a9dca83a5ebfbe2a7f38.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7ccce86603f80a099ddb0cb21d4ae3e3.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7e4bde7e9c7f84cd34d8a845e384c746.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7e929f262f30c8ee78bf398150b1a7cd.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7eb9fffd1aa890d07d0f88cc82e6cfe4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-7f855356ab893b0d2b9c1c83b8116f0e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-829615148e6357d826b9242eb7fbbd1e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-866fa7613df6b3fd272bcfd4530c0bb9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-87599f94b6cc129d505b375798d0d751.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8c2f33cee3993174f7e87c28e4bf42ee.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8d3bcabb847b56243b16afe62adaaf21.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8de5b863cb50dfefdd07cb11c774d579.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8e9f97f01034820170065b2921b4fb5e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-8f476c4c99813d57cbe6eca4727388ad.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-903bb6865f3452e2fda42e3a25547bc5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-91ddb2969bf2d31ba02ad82998d1314c.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-938d90c10ff8c20386af7f242c05d6b0.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-93fc8f28a33234bcadf1527cafabd502.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-95429962233afd82db1c27df1500a28c.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9544732d2e62d1a429674f8ee41b5d3a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9592bfc861f07bcb8d75c196b370e548.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-95bfd249da4902577b4b7d76ebdd0b44.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-968cffdc8ee679da094e77ebf50f58ef.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-97f7f48ce90c9429bf32ae51469db74d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-982b630266d87db93d2539affb1275c6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-98f2ad84457de7f3740d9920b8fa8667.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-99a16ef6a64934d5781933dbd9c46b2e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9cfb2a77a4e45025105ad29a1748b90d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9d81066dd2b337c938df6e90380a00dc.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-9eb5a99df4e76ac3363453ac9ca288b1.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a004ddfcb26e67bd6e678c8ed19e25ce.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a0ca5df4258213d7fc9fce80f65ce760.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a1f916d6039285c4ffb900cd654e418f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a203b91dad570bf05a58c3c3ddb529bf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a365e82ed54697a52f27adcea1315fe8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a4c34be6d42152e64b0df90bc4607f64.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-a7accba310e821da5505f71c03b76bdb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-aa0d470430e6391eca720c7cfa44446f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-aa5c9ca6cf4fba00433b7aa3fa10671a.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ac9ceb44437becc3e9c4dbfebab7fc2d.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b1220a3c61f85cc0408deedb4c5f57a2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b358f7a51ece39a3247942b1feabdb29.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b57aaedfd8ebdf3931f25119dc6a5eb2.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b5c1596551c256e0e9cf02028595b092.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b6d128682ee29e471486354d486a1b90.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b6fd38ca30869792244804b04bc058da.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b7d203b051eff504ff59ddca7576b6a9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-b96d9226ce77ec94ceca043d712182e6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ba3de316d63c7e339987b16f41a0b879.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-bafff7a14c27403dcc6cf1432e8ea836.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-bd77e3c7f9e0b072d96af37f73d1aa32.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-be549ab72f0719d606a5c01e2c0219b6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c16ed9740b85badf16e86ea782a3062f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c1f94158256bb1f3bf665b053d895af9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c40533fdf4cc57177b12803598af7e59.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c4a687ac4f0c2766eefc9f77ed99cddf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c69f61a4ab18d0488c8d1fc12e7028e8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c8b71798409ccc126ee264a00aadcf21.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-c99eda15fc26a2941579560f76c3a5cf.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cb17fc3db95f6d139afc9d31a8e93293.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cbaaefaaf326668277aa24dfa93c4d28.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cd145ce4a0ea18469358df53c207bc1b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cdbce89e82cc1ab53a2decbf5819278f.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ce4884f96f11589608b76b726a755803.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cf2cc71752631e579e35b0e423bf2638.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cf6ff4e0f491ca0cf3038187a997b9b4.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-cfb211578629b7e8153b37240de6a9d5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-d0cf73942fea1c74edbdf0b3011f4656.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-d2666cbed13462c5dc36fa2f15c202ca.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-d3716376641d615e2995605b29bca7b6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-dac48066b5883d8b4551fc584f0c2a3e.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-dbea1af6dcd9860be40c3d18254338f5.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e11567fd2accf9957cd0d3c2be937d87.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e2ead7ea7da0437f085f42ffc05f8d13.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e3fcf5180fd466c8915c4e8069491054.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e480d9c614742d05f0e78f274f1e69e6.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e4bca6cfa53e499cae0a6be4894a90e9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e51ef413167c6e14e0c0fdcc585f2fc9.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e5f453bb04da18eed01675eeebd88bf8.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-e656f091b9dc4709722c9f4b84d3c797.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ec181b795ac1fb5a50d700b6e996d745.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-ee8bae97908d5147b423f77ad0d3c1bb.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f0f13b5c60e0af5553bd359f5513be1b.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f2b54d4e7be0eaefe1c2c56836fa5368.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f56414bf9bced67990def8660e306759.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f5d079153c99a25b9be5b8583c4cc8a7.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f6032fc06eb20480f096199713f70885.woff2 +0 -0
- package/dist/fonts/Xiaolai/Xiaolai-Regular-f8ee5d36068a42b51d0e4a1116cfcec1.woff2 +0 -0
- package/dist/index.html +3 -0
- package/dist/layout-runtime/libavoid-js-LICENSE.txt +505 -0
- package/dist/layout-runtime/libavoid.wasm +0 -0
- package/dist/layout-runtime/wasm-graphviz-LICENSE.txt +201 -0
- package/dist/licenses/commonmark-BSD-2-Clause.txt +89 -0
- package/dist/licenses/entities-BSD-2-Clause.txt +11 -0
- package/dist/licenses/libavoid-js-LGPL-2.1.txt +505 -0
- package/dist/licenses/locus-draw-MIT.txt +21 -0
- package/dist/licenses/markdown-reading-notices.txt +488 -0
- package/dist/licenses/mdurl-MIT.txt +45 -0
- package/dist/licenses/wasm-graphviz-Apache-2.0.txt +201 -0
- package/docs/AGENTS.md +78 -0
- package/docs/BUNDLE-FORMAT.md +212 -0
- package/docs/C4-AUTO-LAYOUT.md +170 -0
- package/docs/DIAGRAM-COMMUNICATION.md +273 -0
- package/docs/DIAGRAM-SOURCE.md +398 -0
- package/docs/DSL-AUTHORING.md +360 -0
- package/docs/EXPLICIT-LAYOUT.md +161 -0
- package/docs/FRESHNESS.md +160 -0
- package/docs/LANGUAGE-COMPATIBILITY.md +87 -0
- package/docs/LOCAL-DOCUMENT.md +255 -0
- package/docs/MODEL-CONTRACT.md +490 -0
- package/docs/PI-WORKFLOW.md +597 -0
- package/docs/PLANTUML-SOURCE.md +78 -0
- package/docs/SCENE-ADAPTER.md +213 -0
- package/docs/VIEW-CHAIN.md +129 -0
- package/docs/VIEWER-LAUNCH.md +123 -0
- package/docs/VIEWER.md +363 -0
- package/docs/adr/ADR-001-2026-12-03-inspector-original-document-first/ADR-001-2026-12-03-inspector-original-document-first.md +26 -0
- package/docs/adr/ADR-002-2026-12-03-project-selector/ADR-002-2026-12-03-project-selector.md +26 -0
- package/docs/adr/ADR-003-2026-12-03-project-authored-task-maps/ADR-003-2026-12-03-project-authored-task-maps.md +32 -0
- package/docs/adr/ADR-004-2026-12-03-shared-map-build-and-open/ADR-004-2026-12-03-shared-map-build-and-open.md +28 -0
- package/docs/adr/ADR-005-2026-12-04-named-libraries/ADR-005-2026-12-04-named-libraries.md +26 -0
- package/docs/assets/locus-map-repository.locus-map.json +1 -0
- package/docs/assets/locus-map-repository.mjs +327 -0
- package/docs/assets/locus-map-repository.png +0 -0
- package/docs/capabilities.json +742 -0
- package/docs/compact-component-cards.md +43 -0
- package/docs/decisions.md +21 -0
- package/docs/index.md +69 -0
- package/index.html +1 -0
- package/licenses/commonmark-BSD-2-Clause.txt +89 -0
- package/licenses/entities-BSD-2-Clause.txt +11 -0
- package/licenses/excalidraw-LICENSE +21 -0
- package/licenses/libavoid-js-LGPL-2.1.txt +505 -0
- package/licenses/locus-draw-MIT.txt +21 -0
- package/licenses/markdown-reading-notices.txt +488 -0
- package/licenses/mdurl-MIT.txt +45 -0
- package/licenses/parse5-MIT.txt +19 -0
- package/licenses/react-LICENSE +21 -0
- package/licenses/react-dom-LICENSE +21 -0
- package/licenses/vendor/@antfu__install-pkg__LICENSE +21 -0
- package/licenses/vendor/@babel__runtime__LICENSE +22 -0
- package/licenses/vendor/@braintree__sanitize-url__LICENSE +21 -0
- package/licenses/vendor/@chevrotain__cst-dts-gen__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__gast__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__regexp-to-ast__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__types__LICENSE.txt +202 -0
- package/licenses/vendor/@chevrotain__utils__LICENSE.txt +202 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__chokidar__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__immutable__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__picomatch__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__readdirp__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__excalidraw__node_modules__sass__LICENSE +1532 -0
- package/licenses/vendor/@excalidraw__laser-pointer__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__markdown-to-text__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__mermaid-to-excalidraw__LICENSE +21 -0
- package/licenses/vendor/@excalidraw__mermaid-to-excalidraw__node_modules__nanoid__LICENSE +20 -0
- package/licenses/vendor/@excalidraw__random-username__LICENSE +21 -0
- package/licenses/vendor/@floating-ui__core__LICENSE +20 -0
- package/licenses/vendor/@floating-ui__dom__LICENSE +20 -0
- package/licenses/vendor/@floating-ui__react-dom__LICENSE +20 -0
- package/licenses/vendor/@floating-ui__utils__LICENSE +20 -0
- package/licenses/vendor/@iconify__types__license.txt +21 -0
- package/licenses/vendor/@iconify__utils__license.txt +21 -0
- package/licenses/vendor/@mermaid-js__parser__LICENSE +21 -0
- package/licenses/vendor/@parcel__watcher-linux-x64-glibc__LICENSE +21 -0
- package/licenses/vendor/@parcel__watcher__LICENSE +21 -0
- package/licenses/vendor/@types__d3-array__LICENSE +21 -0
- package/licenses/vendor/@types__d3-axis__LICENSE +21 -0
- package/licenses/vendor/@types__d3-brush__LICENSE +21 -0
- package/licenses/vendor/@types__d3-chord__LICENSE +21 -0
- package/licenses/vendor/@types__d3-color__LICENSE +21 -0
- package/licenses/vendor/@types__d3-contour__LICENSE +21 -0
- package/licenses/vendor/@types__d3-delaunay__LICENSE +21 -0
- package/licenses/vendor/@types__d3-dispatch__LICENSE +21 -0
- package/licenses/vendor/@types__d3-drag__LICENSE +21 -0
- package/licenses/vendor/@types__d3-dsv__LICENSE +21 -0
- package/licenses/vendor/@types__d3-ease__LICENSE +21 -0
- package/licenses/vendor/@types__d3-fetch__LICENSE +21 -0
- package/licenses/vendor/@types__d3-force__LICENSE +21 -0
- package/licenses/vendor/@types__d3-format__LICENSE +21 -0
- package/licenses/vendor/@types__d3-geo__LICENSE +21 -0
- package/licenses/vendor/@types__d3-hierarchy__LICENSE +21 -0
- package/licenses/vendor/@types__d3-interpolate__LICENSE +21 -0
- package/licenses/vendor/@types__d3-path__LICENSE +21 -0
- package/licenses/vendor/@types__d3-polygon__LICENSE +21 -0
- package/licenses/vendor/@types__d3-quadtree__LICENSE +21 -0
- package/licenses/vendor/@types__d3-random__LICENSE +21 -0
- package/licenses/vendor/@types__d3-scale-chromatic__LICENSE +21 -0
- package/licenses/vendor/@types__d3-scale__LICENSE +21 -0
- package/licenses/vendor/@types__d3-selection__LICENSE +21 -0
- package/licenses/vendor/@types__d3-shape__LICENSE +21 -0
- package/licenses/vendor/@types__d3-time-format__LICENSE +21 -0
- package/licenses/vendor/@types__d3-time__LICENSE +21 -0
- package/licenses/vendor/@types__d3-timer__LICENSE +21 -0
- package/licenses/vendor/@types__d3-transition__LICENSE +21 -0
- package/licenses/vendor/@types__d3-zoom__LICENSE +21 -0
- package/licenses/vendor/@types__d3__LICENSE +21 -0
- package/licenses/vendor/@types__estree__LICENSE +21 -0
- package/licenses/vendor/@types__geojson__LICENSE +21 -0
- package/licenses/vendor/@types__trusted-types__LICENSE +21 -0
- package/licenses/vendor/@upsetjs__venn.js__LICENSE +22 -0
- package/licenses/vendor/anymatch__LICENSE +15 -0
- package/licenses/vendor/anymatch__node_modules__picomatch__LICENSE +21 -0
- package/licenses/vendor/aria-hidden__LICENSE +21 -0
- package/licenses/vendor/binary-extensions__license +10 -0
- package/licenses/vendor/braces__LICENSE +21 -0
- package/licenses/vendor/browser-fs-access__LICENSE +201 -0
- package/licenses/vendor/canvas-roundrect-polyfill__LICENSE +21 -0
- package/licenses/vendor/chevrotain-allstar__LICENSE +16 -0
- package/licenses/vendor/chevrotain__LICENSE.txt +202 -0
- package/licenses/vendor/chokidar__LICENSE +21 -0
- package/licenses/vendor/clsx__license +9 -0
- package/licenses/vendor/commander__LICENSE +22 -0
- package/licenses/vendor/cose-base__LICENSE +21 -0
- package/licenses/vendor/crc-32__LICENSE +14 -0
- package/licenses/vendor/cross-env__LICENSE +20 -0
- package/licenses/vendor/cross-spawn__LICENSE +21 -0
- package/licenses/vendor/cytoscape-cose-bilkent__LICENSE +21 -0
- package/licenses/vendor/cytoscape-fcose__LICENSE +19 -0
- package/licenses/vendor/cytoscape-fcose__node_modules__cose-base__LICENSE +21 -0
- package/licenses/vendor/cytoscape-fcose__node_modules__layout-base__LICENSE +21 -0
- package/licenses/vendor/cytoscape__LICENSE +19 -0
- package/licenses/vendor/d3-array__LICENSE +13 -0
- package/licenses/vendor/d3-axis__LICENSE +13 -0
- package/licenses/vendor/d3-brush__LICENSE +13 -0
- package/licenses/vendor/d3-chord__LICENSE +13 -0
- package/licenses/vendor/d3-color__LICENSE +13 -0
- package/licenses/vendor/d3-contour__LICENSE +13 -0
- package/licenses/vendor/d3-delaunay__LICENSE +14 -0
- package/licenses/vendor/d3-dispatch__LICENSE +13 -0
- package/licenses/vendor/d3-drag__LICENSE +13 -0
- package/licenses/vendor/d3-dsv__LICENSE +13 -0
- package/licenses/vendor/d3-ease__LICENSE +28 -0
- package/licenses/vendor/d3-fetch__LICENSE +13 -0
- package/licenses/vendor/d3-force__LICENSE +13 -0
- package/licenses/vendor/d3-format__LICENSE +13 -0
- package/licenses/vendor/d3-geo__LICENSE +34 -0
- package/licenses/vendor/d3-hierarchy__LICENSE +13 -0
- package/licenses/vendor/d3-interpolate__LICENSE +13 -0
- package/licenses/vendor/d3-path__LICENSE +13 -0
- package/licenses/vendor/d3-polygon__LICENSE +13 -0
- package/licenses/vendor/d3-quadtree__LICENSE +13 -0
- package/licenses/vendor/d3-random__LICENSE +13 -0
- package/licenses/vendor/d3-sankey__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__d3-array__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__d3-path__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__d3-shape__LICENSE +27 -0
- package/licenses/vendor/d3-sankey__node_modules__internmap__LICENSE +13 -0
- package/licenses/vendor/d3-scale-chromatic__LICENSE +28 -0
- package/licenses/vendor/d3-scale__LICENSE +13 -0
- package/licenses/vendor/d3-selection__LICENSE +13 -0
- package/licenses/vendor/d3-shape__LICENSE +13 -0
- package/licenses/vendor/d3-time-format__LICENSE +13 -0
- package/licenses/vendor/d3-time__LICENSE +13 -0
- package/licenses/vendor/d3-timer__LICENSE +13 -0
- package/licenses/vendor/d3-transition__LICENSE +13 -0
- package/licenses/vendor/d3-zoom__LICENSE +13 -0
- package/licenses/vendor/d3__LICENSE +13 -0
- package/licenses/vendor/dagre-d3-es__LICENSE.md +23 -0
- package/licenses/vendor/dayjs__LICENSE +21 -0
- package/licenses/vendor/delaunator__LICENSE +15 -0
- package/licenses/vendor/detect-libc__LICENSE +201 -0
- package/licenses/vendor/detect-node-es__LICENSE +21 -0
- package/licenses/vendor/dompurify__LICENSE +202 -0
- package/licenses/vendor/es-toolkit__LICENSE +21 -0
- package/licenses/vendor/es-toolkit__NOTICE +39 -0
- package/licenses/vendor/es6-promise-pool__LICENSE +19 -0
- package/licenses/vendor/esbuild__LICENSE.md +21 -0
- package/licenses/vendor/fdir__LICENSE +7 -0
- package/licenses/vendor/fill-range__LICENSE +21 -0
- package/licenses/vendor/fractional-indexing__LICENSE +121 -0
- package/licenses/vendor/get-nonce__LICENSE +21 -0
- package/licenses/vendor/glob-parent__LICENSE +15 -0
- package/licenses/vendor/glur__LICENSE +22 -0
- package/licenses/vendor/hachure-fill__LICENSE +21 -0
- package/licenses/vendor/iconv-lite__LICENSE +21 -0
- package/licenses/vendor/image-blob-reduce__LICENSE +21 -0
- package/licenses/vendor/immutable__LICENSE +21 -0
- package/licenses/vendor/import-meta-resolve__license +74 -0
- package/licenses/vendor/inherits__LICENSE +16 -0
- package/licenses/vendor/internmap__LICENSE +13 -0
- package/licenses/vendor/is-binary-path__license +9 -0
- package/licenses/vendor/is-extglob__LICENSE +21 -0
- package/licenses/vendor/is-glob__LICENSE +21 -0
- package/licenses/vendor/is-number__LICENSE +21 -0
- package/licenses/vendor/isexe__LICENSE +15 -0
- package/licenses/vendor/jotai-scope__LICENSE +21 -0
- package/licenses/vendor/jotai__LICENSE +21 -0
- package/licenses/vendor/js-tokens__LICENSE +21 -0
- package/licenses/vendor/katex__LICENSE +21 -0
- package/licenses/vendor/katex__node_modules__commander__LICENSE +22 -0
- package/licenses/vendor/khroma__license +21 -0
- package/licenses/vendor/langium__LICENSE +16 -0
- package/licenses/vendor/layout-base__LICENSE +21 -0
- package/licenses/vendor/lodash-es__LICENSE +47 -0
- package/licenses/vendor/lodash.debounce__LICENSE +47 -0
- package/licenses/vendor/lodash.throttle__LICENSE +47 -0
- package/licenses/vendor/loose-envify__LICENSE +21 -0
- package/licenses/vendor/marked__LICENSE.md +44 -0
- package/licenses/vendor/mermaid__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__@braintree__sanitize-url__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__@chevrotain__types__LICENSE.txt +202 -0
- package/licenses/vendor/mermaid__node_modules__@mermaid-js__parser__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__points-on-curve__LICENSE +21 -0
- package/licenses/vendor/mermaid__node_modules__roughjs__LICENSE +21 -0
- package/licenses/vendor/multimath__LICENSE +21 -0
- package/licenses/vendor/nanoid__LICENSE +20 -0
- package/licenses/vendor/node-addon-api__LICENSE.md +9 -0
- package/licenses/vendor/normalize-path__LICENSE +21 -0
- package/licenses/vendor/object-assign__license +21 -0
- package/licenses/vendor/open-color__LICENSE +21 -0
- package/licenses/vendor/package-manager-detector__LICENSE +21 -0
- package/licenses/vendor/pako__LICENSE +21 -0
- package/licenses/vendor/path-data-parser__LICENSE +21 -0
- package/licenses/vendor/path-key__license +9 -0
- package/licenses/vendor/perfect-freehand__LICENSE +21 -0
- package/licenses/vendor/pica__LICENSE +21 -0
- package/licenses/vendor/picocolors__LICENSE +15 -0
- package/licenses/vendor/picomatch__LICENSE +21 -0
- package/licenses/vendor/png-chunk-text__LICENSE.md +21 -0
- package/licenses/vendor/png-chunks-encode__LICENSE.md +21 -0
- package/licenses/vendor/png-chunks-extract__LICENSE.md +21 -0
- package/licenses/vendor/points-on-curve__LICENSE +21 -0
- package/licenses/vendor/points-on-path__LICENSE +21 -0
- package/licenses/vendor/points-on-path__node_modules__points-on-curve__LICENSE +21 -0
- package/licenses/vendor/postcss__LICENSE +20 -0
- package/licenses/vendor/postcss__node_modules__nanoid__LICENSE +20 -0
- package/licenses/vendor/pwacompat__LICENSE +201 -0
- package/licenses/vendor/react-dom__LICENSE +21 -0
- package/licenses/vendor/react-remove-scroll__LICENSE +21 -0
- package/licenses/vendor/react-style-singleton__LICENSE +21 -0
- package/licenses/vendor/react__LICENSE +21 -0
- package/licenses/vendor/readdirp__LICENSE +21 -0
- package/licenses/vendor/robust-predicates__LICENSE +24 -0
- package/licenses/vendor/rollup__LICENSE.md +679 -0
- package/licenses/vendor/roughjs__LICENSE +21 -0
- package/licenses/vendor/roughjs__node_modules__points-on-curve__LICENSE +21 -0
- package/licenses/vendor/rw__LICENSE +26 -0
- package/licenses/vendor/safer-buffer__LICENSE +21 -0
- package/licenses/vendor/sass__LICENSE +1692 -0
- package/licenses/vendor/scheduler__LICENSE +21 -0
- package/licenses/vendor/shebang-command__license +9 -0
- package/licenses/vendor/shebang-regex__license +9 -0
- package/licenses/vendor/sliced__LICENSE +22 -0
- package/licenses/vendor/source-map-js__LICENSE +28 -0
- package/licenses/vendor/stylis__LICENSE +21 -0
- package/licenses/vendor/tinyexec__LICENSE +21 -0
- package/licenses/vendor/tinyglobby__LICENSE +21 -0
- package/licenses/vendor/to-regex-range__LICENSE +21 -0
- package/licenses/vendor/ts-dedent__LICENSE +21 -0
- package/licenses/vendor/tslib__LICENSE.txt +12 -0
- package/licenses/vendor/tunnel-rat__LICENSE +21 -0
- package/licenses/vendor/use-callback-ref__LICENSE +21 -0
- package/licenses/vendor/use-sidecar__LICENSE +21 -0
- package/licenses/vendor/use-sync-external-store__LICENSE +21 -0
- package/licenses/vendor/uuid__LICENSE.md +9 -0
- package/licenses/vendor/vite__LICENSE.md +2144 -0
- package/licenses/vendor/vscode-jsonrpc__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver-protocol__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver-textdocument__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver-types__License.txt +11 -0
- package/licenses/vendor/vscode-languageserver__License.txt +11 -0
- package/licenses/vendor/vscode-uri__LICENSE.md +9 -0
- package/licenses/vendor/webworkify__LICENSE +18 -0
- package/licenses/vendor/which__LICENSE +15 -0
- package/licenses/vendor/zustand__LICENSE +21 -0
- package/licenses/wasm-graphviz-Apache-2.0.txt +201 -0
- package/package.json +91 -4
- package/scripts/build-locus-map-workflow.mjs +29 -0
- package/scripts/build-map.mjs +138 -0
- package/scripts/check-installed-draw.mjs +13 -0
- package/scripts/check-locus-map-workflow-pi.mjs +39 -0
- package/scripts/convert-map-source.mjs +34 -0
- package/scripts/lib/library-directory.mjs +73 -0
- package/scripts/lib/map-build-invocation.mjs +50 -0
- package/scripts/lib/map-viewer-server.mjs +322 -0
- package/scripts/lib/original-materials.mjs +70 -0
- package/scripts/lib/original-report-server.mjs +52 -0
- package/scripts/lib/project-catalog.mjs +484 -0
- package/scripts/lib/project-map-inputs.mjs +161 -0
- package/scripts/lib/project-registry.mjs +180 -0
- package/scripts/lib/project-tasks.mjs +100 -0
- package/scripts/lib/sketch-publication.mjs +72 -0
- package/scripts/lib/task-map-build.mjs +110 -0
- package/scripts/lib/task-map-worker.mjs +20 -0
- package/scripts/lib/workflow/build-native-map.mjs +134 -0
- package/scripts/lib/workflow/compact-access.mjs +167 -0
- package/scripts/lib/workflow/compact-admission.mjs +410 -0
- package/scripts/lib/workflow/compact-builds.mjs +153 -0
- package/scripts/lib/workflow/compact-final.mjs +77 -0
- package/scripts/lib/workflow/compact-handoff.mjs +679 -0
- package/scripts/lib/workflow/compact-instructions.mjs +81 -0
- package/scripts/lib/workflow/compact-methods.mjs +203 -0
- package/scripts/lib/workflow/compact-native-evidence.mjs +423 -0
- package/scripts/lib/workflow/compact-native.mjs +92 -0
- package/scripts/lib/workflow/compact-prefix.mjs +470 -0
- package/scripts/lib/workflow/compact-prompts.mjs +108 -0
- package/scripts/lib/workflow/compact-reader.mjs +170 -0
- package/scripts/lib/workflow/compact-report.mjs +106 -0
- package/scripts/lib/workflow/compact-reuse.mjs +422 -0
- package/scripts/lib/workflow/compact-route.mjs +380 -0
- package/scripts/lib/workflow/compact-source.mjs +69 -0
- package/scripts/lib/workflow/input-body.js +152 -0
- package/scripts/lib/workflow/native-artifacts.mjs +53 -0
- package/scripts/lib/workflow/native-calls.mjs +609 -0
- package/scripts/lib/workflow/native-output.mjs +204 -0
- package/scripts/lib/workflow/policy.json +27 -0
- package/scripts/lib/workflow/reader-surface.mjs +183 -0
- package/scripts/lib/workflow/route-body.js +182 -0
- package/scripts/lib/workflow/route.mjs +342 -0
- package/scripts/lib/workflow/schemas.mjs +244 -0
- package/scripts/lib/workflow/source-bindings.mjs +16 -0
- package/scripts/lib/workflow/source-bodies.mjs +33 -0
- package/scripts/lib/zed.mjs +20 -0
- package/scripts/locus-map.mjs +150 -0
- package/scripts/measure-traceability.mjs +160 -0
- package/scripts/open-map.mjs +59 -0
- package/scripts/prepare-assets.mjs +114 -0
- package/scripts/prepare-locus-map-run.mjs +102 -0
- package/scripts/traceability/authoring.mjs +294 -0
- package/scripts/traceability/built-scene.mjs +220 -0
- package/scripts/traceability/geometry.mjs +185 -0
- package/scripts/traceability/journal.mjs +77 -0
- package/scripts/traceability/metrics.mjs +362 -0
- package/scripts/traceability/run.mjs +316 -0
- package/scripts/traceability/static-delivery.mjs +59 -0
- package/scripts/traceability/view.mjs +245 -0
- package/scripts/verify-locus-map-workflow-run.mjs +347 -0
- package/scripts/vite-browser-dependencies.mjs +14 -0
- package/scripts/vite-cache.mjs +48 -0
- package/skills/README.md +17 -0
- package/skills/locus-map/SKILL.md +116 -0
- package/skills/locus-map/assets/artifact-handoff.md +45 -0
- package/skills/locus-map/assets/examples/README.md +26 -0
- package/skills/locus-map/assets/examples/library-c4.puml +18 -0
- package/skills/locus-map/assets/examples/library-flow.puml +16 -0
- package/skills/locus-map/assets/examples/prepare.mjs +13 -0
- package/skills/locus-map/assets/task-map.mjs +160 -0
- package/skills/locus-map/references/authoring-order.md +354 -0
- package/skills/locus-map/references/build-environment.md +99 -0
- package/skills/locus-map/references/checks.md +181 -0
- package/skills/locus-map/references/connected-diagram.md +17 -0
- package/skills/locus-map/references/draw-skill.md +47 -0
- package/skills/locus-map/references/folder.md +82 -0
- package/skills/locus-map/references/pi-handoff.md +51 -0
- package/skills/locus-map/references/revise.md +56 -0
- package/skills/locus-map/references/selection.md +67 -0
- package/skills/locus-map/references/task-maps.md +16 -0
- package/skills/locus-map-primitives/SKILL.md +57 -0
- package/skills/locus-map-primitives/assets/batch/README.md +21 -0
- package/skills/locus-map-primitives/assets/batch/accept-batch.mjs +9 -0
- package/skills/locus-map-primitives/assets/batch/build.mjs +43 -0
- package/skills/locus-map-primitives/assets/batch/intake.puml +21 -0
- package/skills/locus-map-primitives/assets/batch/materials.json +18 -0
- package/skills/locus-map-primitives/assets/batch/project.json +58 -0
- package/skills/locus-map-primitives/assets/batch/protocol.md +14 -0
- package/skills/locus-map-primitives/assets/batch/results.html +10 -0
- package/skills/locus-map-primitives/assets/batch/run-batch.mjs +9 -0
- package/skills/locus-map-primitives/assets/batch/sources.mjs +39 -0
- package/skills/locus-map-primitives/references/card-presentation.md +9 -0
- package/skills/locus-map-primitives/references/reading-files.md +21 -0
- package/skills/locus-map-research/SKILL.md +103 -0
- package/skills/locus-map-research/assets/examples/README.md +41 -0
- package/skills/locus-map-research/assets/examples/cases.mjs +57 -0
- package/skills/locus-map-research/assets/examples/prepare.mjs +66 -0
- package/skills/locus-map-research/references/explanation-design.md +244 -0
- package/skills/locus-map-research/references/stages.json +113 -0
- package/src/adapter/annotationPolicy.js +493 -0
- package/src/adapter/archimatePresentation.js +9 -0
- package/src/adapter/areas.js +82 -0
- package/src/adapter/autoLayout/engines.js +15 -0
- package/src/adapter/autoLayout/metrics.js +32 -0
- package/src/adapter/autoLayout/shared.js +68 -0
- package/src/adapter/cards/README.md +14 -0
- package/src/adapter/cards/geometry.js +2 -0
- package/src/adapter/cards/glyphs.js +2 -0
- package/src/adapter/cards/labels.js +2 -0
- package/src/adapter/cards/taskStatus.js +28 -0
- package/src/adapter/cards/template.js +14 -0
- package/src/adapter/cards/templates/archimate.js +2 -0
- package/src/adapter/cards/templates/c4-2b.js +3 -0
- package/src/adapter/cards/templates/c4-reference.js +2 -0
- package/src/adapter/cards/templates/compact-b.js +2 -0
- package/src/adapter/cards/templates/e2.js +3 -0
- package/src/adapter/cards/templates/editorial.js +2 -0
- package/src/adapter/cards/templates/legacy.js +2 -0
- package/src/adapter/cards/text.js +2 -0
- package/src/adapter/chain.js +24 -0
- package/src/adapter/conversion.js +14 -0
- package/src/adapter/drawProjection.js +280 -0
- package/src/adapter/drawingStyle.js +20 -0
- package/src/adapter/drift.js +13 -0
- package/src/adapter/edgeCues.js +138 -0
- package/src/adapter/editGeometry.js +116 -0
- package/src/adapter/glyphDrift.js +1 -0
- package/src/adapter/identity.js +10 -0
- package/src/adapter/index.js +36 -0
- package/src/adapter/layout.js +91 -0
- package/src/adapter/layoutDiagnostics.js +87 -0
- package/src/adapter/nativePresentation.js +53 -0
- package/src/adapter/page.js +108 -0
- package/src/adapter/presentation.js +82 -0
- package/src/adapter/relationLabels.js +21 -0
- package/src/adapter/routeGeometry.js +1 -0
- package/src/adapter/semanticAdmission.js +901 -0
- package/src/adapter/skeleton.js +83 -0
- package/src/adapter/staticDelivery.js +211 -0
- package/src/app.css +13 -0
- package/src/authoring/author-worker.mjs +46 -0
- package/src/authoring/automaticLayout.js +24 -0
- package/src/authoring/boundedProcess.mjs +92 -0
- package/src/authoring/browser-build-worker.mjs +139 -0
- package/src/authoring/browserBuild.mjs +151 -0
- package/src/authoring/browserBuildClient.js +220 -0
- package/src/authoring/browserExecutable.mjs +83 -0
- package/src/authoring/browserSession.mjs +38 -0
- package/src/authoring/buildDelivery.mjs +127 -0
- package/src/authoring/buildDiagram.mjs +247 -0
- package/src/authoring/buildMap.mjs +165 -0
- package/src/authoring/citationChecks.mjs +80 -0
- package/src/authoring/diagramChecks.js +215 -0
- package/src/authoring/diagramLayoutChecks.js +47 -0
- package/src/authoring/diagramSource.js +125 -0
- package/src/authoring/diagramText.js +5 -0
- package/src/authoring/excalidrawDsl.js +83 -0
- package/src/authoring/gridLayout.js +2 -0
- package/src/authoring/mapAuthoring.js +234 -0
- package/src/authoring/moduleRunner.mjs +24 -0
- package/src/authoring/plantumlSource.js +4 -0
- package/src/authoring/plantumlSyntax.js +1 -0
- package/src/authoring/printPlantumlSource.js +4 -0
- package/src/authoring/readDetailsFiles.mjs +215 -0
- package/src/authoring/regenerationArtifacts.mjs +91 -0
- package/src/authoring/runtimeIdentity.mjs +171 -0
- package/src/authoring/sceneComparison.mjs +182 -0
- package/src/authoring/selectAutomaticLayout.mjs +115 -0
- package/src/authoring/sourceEvidence.mjs +219 -0
- package/src/authoring/sourceView.js +22 -0
- package/src/authoring/staticExport.js +63 -0
- package/src/authoring/viewTree.js +46 -0
- package/src/authoring/viewportSettle.js +19 -0
- package/src/bundle/assets.js +163 -0
- package/src/bundle/browser.js +73 -0
- package/src/bundle/catalogFiles.js +53 -0
- package/src/bundle/chain.js +289 -0
- package/src/bundle/chainBrowser.js +59 -0
- package/src/bundle/index.js +133 -0
- package/src/bundle/localDocument.mjs +366 -0
- package/src/bundle/localDocumentClient.js +115 -0
- package/src/bundle/projectClient.js +173 -0
- package/src/bundle/safety.js +178 -0
- package/src/bundle/scene.js +213 -0
- package/src/bundle/sketch.js +111 -0
- package/src/chain/index.js +1 -0
- package/src/chain/projection.js +28 -0
- package/src/chain/validation.js +268 -0
- package/src/contract/archimateNotation.js +47 -0
- package/src/contract/c4Presentation.js +50 -0
- package/src/contract/citations.js +1 -0
- package/src/contract/cli.mjs +20 -0
- package/src/contract/diagramPresentation.js +140 -0
- package/src/contract/documentVersions.js +20 -0
- package/src/contract/index.js +92 -0
- package/src/contract/layoutAreas.js +62 -0
- package/src/contract/layoutHints.js +2 -0
- package/src/contract/page.js +142 -0
- package/src/contract/presentationProfile.js +36 -0
- package/src/contract/readingMarkdown.js +80 -0
- package/src/contract/readingMaterials.js +102 -0
- package/src/contract/relationshipBody.js +1 -0
- package/src/contract/safety.js +35 -0
- package/src/contract/validation.js +499 -0
- package/src/freshness/cli.mjs +21 -0
- package/src/freshness/git.js +119 -0
- package/src/freshness/index.js +155 -0
- package/src/freshness/local.js +107 -0
- package/src/main.jsx +88 -0
- package/src/research/admission-body.js +1059 -0
- package/src/research/cli.mjs +83 -0
- package/src/research/contract.js +1169 -0
- package/src/research/generate-pi-admission.mjs +49 -0
- package/src/research/schemas.mjs +13 -0
- package/src/tasks/locus.mjs +119 -0
- package/src/tasks/taskIndex.js +47 -0
- package/src/viewer/ControlIcon.jsx +28 -0
- package/src/viewer/DiagramGuide.jsx +72 -0
- package/src/viewer/DiagramViewer.jsx +704 -0
- package/src/viewer/EditorialKey.jsx +69 -0
- package/src/viewer/FoldButtons.jsx +38 -0
- package/src/viewer/HighlightOverlay.jsx +72 -0
- package/src/viewer/Inspector.jsx +121 -0
- package/src/viewer/MapInputNotice.jsx +42 -0
- package/src/viewer/Minimap.jsx +140 -0
- package/src/viewer/ProjectLocation.jsx +34 -0
- package/src/viewer/ProjectRail.jsx +122 -0
- package/src/viewer/ProjectTabs.jsx +20 -0
- package/src/viewer/ProjectTasks.jsx +158 -0
- package/src/viewer/ProjectViewChainViewer.jsx +684 -0
- package/src/viewer/RegenerationComparison.jsx +213 -0
- package/src/viewer/SavedDiagramLink.jsx +34 -0
- package/src/viewer/SceneEditPrompt.jsx +56 -0
- package/src/viewer/SketchCanvas.jsx +294 -0
- package/src/viewer/ViewChainViewer.jsx +329 -0
- package/src/viewer/camera.js +119 -0
- package/src/viewer/chainEditorSession.js +109 -0
- package/src/viewer/chainInstallation.js +28 -0
- package/src/viewer/details/CommonMarkBody.jsx +92 -0
- package/src/viewer/details/InspectorReadingSettings.jsx +67 -0
- package/src/viewer/details/MeaningFirst.jsx +79 -0
- package/src/viewer/details/PhraseAndCondition.jsx +34 -0
- package/src/viewer/details/ReadingFiles.jsx +111 -0
- package/src/viewer/details/ReadingMarkdown.jsx +65 -0
- package/src/viewer/details/RelationshipBody.jsx +45 -0
- package/src/viewer/details/SourceEvidence.jsx +104 -0
- package/src/viewer/details/TaskDocument.jsx +41 -0
- package/src/viewer/details/details.css +186 -0
- package/src/viewer/diagramControls.css +58 -0
- package/src/viewer/diagramGuide.css +25 -0
- package/src/viewer/directedPath.js +36 -0
- package/src/viewer/fit.js +11 -0
- package/src/viewer/geometry.js +62 -0
- package/src/viewer/highlight.js +145 -0
- package/src/viewer/inspectorPosition.js +50 -0
- package/src/viewer/interaction.js +94 -0
- package/src/viewer/minimapGeometry.js +21 -0
- package/src/viewer/projectContents.js +93 -0
- package/src/viewer/projectNavigation.js +227 -0
- package/src/viewer/projectTasks.css +34 -0
- package/src/viewer/readingTree.js +120 -0
- package/src/viewer/sceneEditPrompt.js +94 -0
- package/src/viewer/sceneState.js +27 -0
- package/src/viewer/sceneWarnings.js +12 -0
- package/src/viewer/theme.css +20 -0
- package/src/viewer/useInspectorPosition.js +149 -0
- package/src/viewer/viewChain.css +186 -0
- package/src/viewer/viewChainState.js +86 -0
- package/src/viewer/viewer.css +76 -0
- package/vite.config.js +42 -0
|
@@ -0,0 +1,704 @@
|
|
|
1
|
+
import { installCatalogFiles } from '../bundle/catalogFiles.js';
|
|
2
|
+
import { ControlIcon } from './ControlIcon.jsx';
|
|
3
|
+
import { cameraFromAppState } from './viewChainState.js';
|
|
4
|
+
import { ARCHIMATE_PROFILE } from '../contract/archimateNotation.js';
|
|
5
|
+
import { loadSceneFonts } from '@locus-forge/locus-draw/scene/browser';
|
|
6
|
+
import { sceneCardTemplate } from '../adapter/cards/template.js';
|
|
7
|
+
import { createPortal, flushSync } from 'react-dom';
|
|
8
|
+
import React, { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
9
|
+
import { CaptureUpdateAction, Excalidraw, newElementWith, viewportCoordsToSceneCoords, sceneCoordsToViewportCoords } from '@excalidraw/excalidraw';
|
|
10
|
+
import '@excalidraw/excalidraw/index.css';
|
|
11
|
+
import { indexModel } from '../contract/index.js';
|
|
12
|
+
import { inspectSemanticDrift, resolveSemanticSelection, semanticElementId, isGuideElement, admitCueModel, boundTextBox } from '../adapter/index.js';
|
|
13
|
+
import { createGestureTracker, resolveHit, singleSelection } from './interaction.js';
|
|
14
|
+
import { currentScene, documentDraftElements, sameInstallation, selectionKey } from './sceneState.js';
|
|
15
|
+
import { MIN_ZOOM, MAX_ZOOM, ZOOM_STEP, fitCamera, revealCamera, readableFrame, sceneBounds, zoomAtCenter } from './camera.js';
|
|
16
|
+
import { HighlightOverlay, DrilldownOverlay } from './HighlightOverlay.jsx';
|
|
17
|
+
import { Inspector } from './Inspector.jsx';
|
|
18
|
+
import { DiagramGuide } from './DiagramGuide.jsx';
|
|
19
|
+
import { sketchState, setSketch } from '../adapter/drawingStyle.js';
|
|
20
|
+
import { legendReferencedNodeIds } from '../adapter/page.js';
|
|
21
|
+
import { personPickerLabel } from '../adapter/nativePresentation.js';
|
|
22
|
+
import { inspectAreaLayout } from '../adapter/areas.js';
|
|
23
|
+
import { reconcileMapPresentation } from '../adapter/editGeometry.js';
|
|
24
|
+
import { sceneWarningMessages } from './sceneWarnings.js';
|
|
25
|
+
import { directedPath } from './directedPath.js';
|
|
26
|
+
import { pathBadgeCircle, pathPanelCorner, pathPrimitives } from './highlight.js';
|
|
27
|
+
import './theme.css';
|
|
28
|
+
import './viewer.css';
|
|
29
|
+
import { SceneEditPrompt } from './SceneEditPrompt.jsx';
|
|
30
|
+
import { Minimap } from './Minimap.jsx';
|
|
31
|
+
import { FoldButtons } from './FoldButtons.jsx';
|
|
32
|
+
import { prepareReadingTree } from './readingTree.js';
|
|
33
|
+
import './diagramControls.css';
|
|
34
|
+
|
|
35
|
+
const EMPTY_URLS = new Map();
|
|
36
|
+
const UI_OPTIONS = { canvasActions: { loadScene: false, saveToActiveFile: false, export: false, saveAsImage: false, toggleTheme: true }, tools: { image: false } };
|
|
37
|
+
|
|
38
|
+
function frameReadableGraph(api, graph, firstNodeId) {
|
|
39
|
+
const viewport = api.getAppState();
|
|
40
|
+
const first = firstNodeId && graph.find(el => el.id === semanticElementId('node', firstNodeId));
|
|
41
|
+
const frame = readableFrame(graph, viewport, first);
|
|
42
|
+
const camera = frame.mode === 'fit'
|
|
43
|
+
? fitCamera(graph, viewport, { minZoom: frame.floor, maxZoom: Math.max(1, frame.floor) })
|
|
44
|
+
: frame.camera;
|
|
45
|
+
api.updateScene({ appState: camera, captureUpdate: CaptureUpdateAction.NEVER });
|
|
46
|
+
return camera;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function frameFittedGraph(api, graph) {
|
|
50
|
+
const camera = fitCamera(graph, api.getAppState());
|
|
51
|
+
api.updateScene({ appState: camera, captureUpdate: CaptureUpdateAction.NEVER });
|
|
52
|
+
return camera;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function PathResultPanel({ api, path, message, indexes, onClear }) {
|
|
56
|
+
const panelRef = useRef(null), stepsId = useId();
|
|
57
|
+
const [corner, setCorner] = useState('top-left'), [expanded, setExpanded] = useState(true);
|
|
58
|
+
const hasSteps = path?.status === 'found' && path.edgeIds.length > 0;
|
|
59
|
+
useLayoutEffect(() => {
|
|
60
|
+
if (path?.status !== 'found' || !api) { setCorner('top-left'); return; }
|
|
61
|
+
const panel = panelRef.current, state = api.getAppState();
|
|
62
|
+
const rect = box => ({ x: box.left, y: box.top, width: box.width, height: box.height });
|
|
63
|
+
const candidates = {};
|
|
64
|
+
for (const value of ['top-left', 'top-right', 'bottom-right']) {
|
|
65
|
+
panel.dataset.corner = value;
|
|
66
|
+
candidates[value] = rect(panel.getBoundingClientRect());
|
|
67
|
+
}
|
|
68
|
+
const nodeRects = pathPrimitives(api.getSceneElements(), path).filter(item => item.badge !== undefined).flatMap(item => {
|
|
69
|
+
const box = sceneBounds([item]), circle = pathBadgeCircle(item, state.zoom.value);
|
|
70
|
+
const start = sceneCoordsToViewportCoords({ sceneX: box.minX, sceneY: box.minY }, state);
|
|
71
|
+
const end = sceneCoordsToViewportCoords({ sceneX: box.maxX, sceneY: box.maxY }, state);
|
|
72
|
+
const badge = sceneCoordsToViewportCoords({ sceneX: circle.x, sceneY: circle.y }, state);
|
|
73
|
+
const radius = circle.radius * state.zoom.value + 1;
|
|
74
|
+
return [{ x: start.x, y: start.y, width: end.x - start.x, height: end.y - start.y },
|
|
75
|
+
{ x: badge.x - radius, y: badge.y - radius, width: radius * 2, height: radius * 2 }];
|
|
76
|
+
});
|
|
77
|
+
const chosen = pathPanelCorner(candidates, nodeRects);
|
|
78
|
+
panel.dataset.corner = chosen;
|
|
79
|
+
setCorner(chosen);
|
|
80
|
+
// Reconsider only a changed result, never camera movement or step toggling.
|
|
81
|
+
}, [api, path]);
|
|
82
|
+
return <section ref={panelRef} className="lm-path-result" data-corner={corner} role="region" aria-label="Directed path">
|
|
83
|
+
<p>{message}</p>
|
|
84
|
+
{hasSteps && <button type="button" aria-expanded={expanded} aria-controls={stepsId} onClick={() => setExpanded(value => !value)}>{expanded ? 'Hide steps' : 'Show steps'}</button>}
|
|
85
|
+
<div id={stepsId} hidden={!expanded}>
|
|
86
|
+
{path?.status === 'found' && <ol>{path.nodeIds.flatMap((id, index) => {
|
|
87
|
+
const edge = indexes.edgesById.get(path.edgeIds[index]);
|
|
88
|
+
return [<li key={`node:${id}`}><strong>{index + 1}. {indexes.nodesById.get(id).label}</strong></li>,
|
|
89
|
+
...(edge ? [<li key={`edge:${edge.id}`}><span>{edge.label}{edge.kind.trim().toLowerCase() !== edge.label.trim().toLowerCase() ? ` · ${edge.kind}` : ''}{edge.kind === 'sequence' ? ` · Message ${edge.order}` : ''}</span>
|
|
90
|
+
{edge.condition && <p className="lm-path-condition">Condition: <span>{edge.condition}</span></p>}</li>] : [])];
|
|
91
|
+
})}</ol>}
|
|
92
|
+
<p className="lm-path-caveat">Follows relation direction only; conditions and message order are not checked.</p>
|
|
93
|
+
</div>
|
|
94
|
+
<button type="button" onClick={onClear}>Clear</button>
|
|
95
|
+
</section>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Generic official editor host. Scene is an installation input, NOT a controlled
|
|
99
|
+
* onChange value. Keep its reference stable until deliberately installing again. */
|
|
100
|
+
export function DiagramViewer({ model, scene, viewOnly = false, initialFraming = 'fit', editSource, originalBinding, readingTree, sourceDescription, initialCamera = null, assetUrls = EMPTY_URLS, toolbarTarget, statusTarget, inspectActionTarget, detailTargets, onOpenDetails,
|
|
101
|
+
inspectScene = inspectSemanticDrift, resolveSelection = resolveSemanticSelection, onSceneChange, onReady, onInstalled, onInstallError, restoreDraft = false }) {
|
|
102
|
+
const [installed, setInstalled] = useState(null), [error, setError] = useState(null);
|
|
103
|
+
const retained = useRef(null);
|
|
104
|
+
const callbacks = useRef({ onSceneChange, onReady, onInstalled, onInstallError, detailTargets, onOpenDetails, toolbarTarget, statusTarget, inspectActionTarget });
|
|
105
|
+
callbacks.current = { onSceneChange, onReady, onInstalled, onInstallError, detailTargets, onOpenDetails, toolbarTarget, statusTarget, inspectActionTarget };
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
let cancelled = false;
|
|
108
|
+
async function stage() {
|
|
109
|
+
try {
|
|
110
|
+
const stagedScene = structuredClone(scene); // Snapshot before async approval hashing.
|
|
111
|
+
const admitted = await admitCueModel(model);
|
|
112
|
+
const result = inspectScene(admitted, stagedScene);
|
|
113
|
+
if (!result.valid && !restoreDraft) throw Object.assign(new Error('The incoming scene differs from its model.'), { diagnostics: result.diagnostics });
|
|
114
|
+
await loadSceneFonts(stagedScene.elements);
|
|
115
|
+
if (!cancelled) { setInstalled({ inputModel: model, inputScene: scene, inputCamera: initialCamera, readingTree, sourceDescription, inspectScene, resolveSelection, restoreDraft, draftDrift: !result.valid, model: admitted, scene: stagedScene, initialCamera, callbacks: callbacks.current }); setError(null); }
|
|
116
|
+
} catch (failure) {
|
|
117
|
+
if (!cancelled) {
|
|
118
|
+
setError(failure);
|
|
119
|
+
callbacks.current.onInstallError?.(failure);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
stage();
|
|
124
|
+
return () => { cancelled = true; };
|
|
125
|
+
}, [model, scene, readingTree, initialCamera, sourceDescription, inspectScene, resolveSelection, restoreDraft]);
|
|
126
|
+
// A pending/failed replacement keeps every installed input and callback. URL
|
|
127
|
+
// and callback-only changes on the same document do not reinstall the editor.
|
|
128
|
+
const sameInput = installed?.inputModel === model && installed?.inputScene === scene && installed?.readingTree === readingTree && installed?.inputCamera === initialCamera && installed?.sourceDescription === sourceDescription
|
|
129
|
+
&& installed?.inspectScene === inspectScene && installed?.resolveSelection === resolveSelection && installed?.restoreDraft === restoreDraft;
|
|
130
|
+
if (sameInput) retained.current = { ...installed, editSource, originalBinding, assetUrls, callbacks: callbacks.current };
|
|
131
|
+
const current = sameInput ? retained.current : retained.current ?? installed;
|
|
132
|
+
return <div style={{ height: '100%', width: '100%', position: 'relative' }}>
|
|
133
|
+
{error && !current && <div className="lm-open-error" role="alert" style={{ position: 'absolute', top: 0, right: 0, zIndex: 6, maxWidth: '30rem', padding: 8, background: '#fff', border: '1px solid #b42318' }}>Open failed. {error.code || error.diagnostics?.[0]?.code}: {error.message} <button type="button" onClick={() => setError(null)}>Dismiss</button></div>}
|
|
134
|
+
{current ? <InstalledViewer viewOnly={viewOnly} initialFraming={initialFraming} editSource={current.editSource} originalBinding={current.originalBinding} sourceDescription={current.sourceDescription} model={current.model} scene={current.scene} readingTree={current.readingTree} initialCamera={current.initialCamera} assetUrls={current.assetUrls ?? EMPTY_URLS}
|
|
135
|
+
inspectScene={current.inspectScene} draftDrift={current.draftDrift} resolveSelection={current.resolveSelection} replacementError={!sameInput ? error : null} onDismissReplacementError={() => setError(null)} {...current.callbacks} /> : <div className="lm-empty">Preparing diagram…</div>}
|
|
136
|
+
</div>;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function InstalledViewer({ model, scene, viewOnly, initialFraming, editSource, originalBinding, readingTree, sourceDescription, initialCamera, assetUrls = EMPTY_URLS, toolbarTarget, statusTarget, inspectActionTarget, detailTargets, replacementError, onOpenDetails,
|
|
140
|
+
inspectScene, resolveSelection, draftDrift, onDismissReplacementError, onSceneChange, onReady, onInstalled, onInstallError }) {
|
|
141
|
+
const editTarget = useMemo(() => editSource?.target ?? { modelId: model.id, viewId: model.id, title: model.title }, [editSource, model]);
|
|
142
|
+
const legendNodes = useMemo(() => legendReferencedNodeIds(model), [model]);
|
|
143
|
+
const [drawingStyle, setDrawingStyle] = useState(() => sketchState(scene?.elements, legendNodes));
|
|
144
|
+
const [theme, setTheme] = useState('light');
|
|
145
|
+
const [zoom, setZoom] = useState(1);
|
|
146
|
+
const [api, setApi] = useState(null), [mode, setMode] = useState('view');
|
|
147
|
+
const [inspection, setInspectionState] = useState({ focus: null, history: [], restore: null });
|
|
148
|
+
const [pathEndpoints, setPathEndpoints] = useState({ startId: '', endId: '' });
|
|
149
|
+
const focus = inspection.focus;
|
|
150
|
+
const [locatedNode, setLocatedNode] = useState(null);
|
|
151
|
+
const [drift, setDrift] = useState(null), [loading, setLoading] = useState(true);
|
|
152
|
+
const [areaWarnings, setAreaWarnings] = useState([]);
|
|
153
|
+
const [sceneWarnings, setSceneWarnings] = useState([]);
|
|
154
|
+
const stageRef = useRef(null), returnFocusRef = useRef(null);
|
|
155
|
+
const installedRef = useRef(null), latestRef = useRef(null), lastEmissionRef = useRef(''), nativeElementsRef = useRef(structuredClone(scene?.elements ?? []));
|
|
156
|
+
const lastSelectionRef = useRef(''), spaceRef = useRef(false), gestureRef = useRef(createGestureTracker());
|
|
157
|
+
const readyApiRef = useRef(null), driftKeyRef = useRef('');
|
|
158
|
+
const routeHistoryRef = useRef(new Map());
|
|
159
|
+
const treeRef = useRef(null), [tree, setTree] = useState(null);
|
|
160
|
+
const openedElements = editSource?.elements ?? scene.elements;
|
|
161
|
+
const openedIds = useMemo(() => new Set(openedElements.map(element => element.id)), [openedElements]);
|
|
162
|
+
const draftElements = useCallback(elements => documentDraftElements(elements, openedIds), [openedIds]);
|
|
163
|
+
const readDraftElements = useCallback(() =>
|
|
164
|
+
sameInstallation(installedRef.current, model, scene) && !treeRef.current && api ? draftElements(api.getSceneElementsIncludingDeleted()) : null,
|
|
165
|
+
[model, scene, api, draftElements]);
|
|
166
|
+
const showTree = useCallback((prepared, state) => {
|
|
167
|
+
const current = { prepared, state };
|
|
168
|
+
treeRef.current = current;
|
|
169
|
+
setTree(current);
|
|
170
|
+
api.updateScene({ elements: state.elements.map(el => newElementWith(el, {}, true)), captureUpdate: CaptureUpdateAction.NEVER });
|
|
171
|
+
}, [api]);
|
|
172
|
+
const startTree = useCallback((elements) => {
|
|
173
|
+
const prepared = prepareReadingTree(model, readingTree, elements);
|
|
174
|
+
if (prepared) showTree(prepared, prepared.project());
|
|
175
|
+
}, [model, readingTree, showTree]);
|
|
176
|
+
latestRef.current = { model, scene, mode, focus, draftElements, inspectScene, resolveSelection, onSceneChange, onReady, onInstalled, onInstallError, replacementError, onOpenDetails };
|
|
177
|
+
const indexed = useMemo(() => {
|
|
178
|
+
try { return { indexes: indexModel(model), error: null }; }
|
|
179
|
+
catch (error) { return { indexes: null, error }; }
|
|
180
|
+
}, [model]);
|
|
181
|
+
|
|
182
|
+
const refreshCanvasOffsets = useCallback(() => {
|
|
183
|
+
if (!api || !stageRef.current) return;
|
|
184
|
+
const bounds = stageRef.current.getBoundingClientRect(), state = api.getAppState();
|
|
185
|
+
if (state.offsetLeft !== bounds.left || state.offsetTop !== bounds.top) api.refresh();
|
|
186
|
+
}, [api]);
|
|
187
|
+
// Linked-view chrome can move the canvas without resizing it. Keep the
|
|
188
|
+
// official coordinate owner current for native editing, hits and overlays.
|
|
189
|
+
useLayoutEffect(refreshCanvasOffsets);
|
|
190
|
+
useEffect(() => {
|
|
191
|
+
window.addEventListener('scroll', refreshCanvasOffsets, true);
|
|
192
|
+
return () => window.removeEventListener('scroll', refreshCanvasOffsets, true);
|
|
193
|
+
}, [refreshCanvasOffsets]);
|
|
194
|
+
|
|
195
|
+
const clearInspection = useCallback(() => setInspectionState(previous => previous.focus || previous.history.length || previous.restore
|
|
196
|
+
? { focus: null, history: [], restore: null } : previous), []);
|
|
197
|
+
const clearPathState = useCallback(() => setPathEndpoints(previous => previous.startId || previous.endId
|
|
198
|
+
? { startId: '', endId: '' } : previous), []);
|
|
199
|
+
const clearPath = () => {
|
|
200
|
+
clearPathState();
|
|
201
|
+
stageRef.current?.focus({ preventScroll: true });
|
|
202
|
+
};
|
|
203
|
+
const restoreOpener = useCallback(() => {
|
|
204
|
+
const target = returnFocusRef.current;
|
|
205
|
+
if (target instanceof HTMLElement && target.isConnected && target !== document.body && !target.matches(':disabled')) {
|
|
206
|
+
target.focus({ preventScroll: true });
|
|
207
|
+
if (document.activeElement === target) return;
|
|
208
|
+
}
|
|
209
|
+
stageRef.current?.focus({ preventScroll: true });
|
|
210
|
+
}, []);
|
|
211
|
+
const close = useCallback(() => { clearInspection(); restoreOpener(); }, [clearInspection, restoreOpener]);
|
|
212
|
+
const refusalFocusRef = useRef(false);
|
|
213
|
+
if (replacementError && stageRef.current?.querySelector('.lm-inspector:focus-within, .lm-inspector-return:focus')) refusalFocusRef.current = true;
|
|
214
|
+
useLayoutEffect(() => {
|
|
215
|
+
if (!replacementError) { refusalFocusRef.current = false; return; }
|
|
216
|
+
const shouldRestore = refusalFocusRef.current || (latestRef.current.focus && document.activeElement === document.body);
|
|
217
|
+
refusalFocusRef.current = false;
|
|
218
|
+
clearInspection();
|
|
219
|
+
clearPathState();
|
|
220
|
+
if (shouldRestore && document.activeElement === document.body) restoreOpener();
|
|
221
|
+
}, [replacementError, clearInspection, clearPathState, restoreOpener]);
|
|
222
|
+
|
|
223
|
+
const setInspection = useCallback(result => {
|
|
224
|
+
const key = JSON.stringify([result.valid, result.diagnostics]);
|
|
225
|
+
if (key !== driftKeyRef.current) {
|
|
226
|
+
driftKeyRef.current = key;
|
|
227
|
+
setDrift(result.valid ? null : result);
|
|
228
|
+
setSceneWarnings(sceneWarningMessages(result));
|
|
229
|
+
}
|
|
230
|
+
if (!result.valid) { clearInspection(); clearPathState(); }
|
|
231
|
+
}, [clearInspection, clearPathState]);
|
|
232
|
+
|
|
233
|
+
const emitScene = useCallback((elements, appState, files) => {
|
|
234
|
+
const latest = latestRef.current;
|
|
235
|
+
if (!sameInstallation(installedRef.current, latest.model, latest.scene)) return;
|
|
236
|
+
const snapshot = currentScene(latest.draftElements(elements), appState, files);
|
|
237
|
+
const fingerprint = JSON.stringify(snapshot);
|
|
238
|
+
if (fingerprint !== lastEmissionRef.current) {
|
|
239
|
+
lastEmissionRef.current = fingerprint;
|
|
240
|
+
latest.onSceneChange?.(snapshot);
|
|
241
|
+
}
|
|
242
|
+
}, []);
|
|
243
|
+
|
|
244
|
+
const choose = useCallback((next, inspectorState, opener = document.activeElement) => {
|
|
245
|
+
const latest = latestRef.current;
|
|
246
|
+
if (!api || latest.replacementError || !sameInstallation(installedRef.current, latest.model, latest.scene)) return;
|
|
247
|
+
const id = semanticElementId(next.kind, next.id);
|
|
248
|
+
const result = latest.resolveSelection(latest.model, treeRef.current ? nativeElementsRef.current : api.getSceneElements(), [id]);
|
|
249
|
+
setInspection(result);
|
|
250
|
+
const resolved = singleSelection(result);
|
|
251
|
+
if (resolved) {
|
|
252
|
+
if (!inspectorState) returnFocusRef.current = opener;
|
|
253
|
+
setInspectionState(previous => inspectorState && previous.focus?.kind === resolved.kind && previous.focus.id === resolved.id ? previous : ({ focus: resolved,
|
|
254
|
+
history: inspectorState && previous.focus ? [...previous.history, { focus: previous.focus, state: inspectorState }] : [],
|
|
255
|
+
restore: null,
|
|
256
|
+
}));
|
|
257
|
+
return true;
|
|
258
|
+
}
|
|
259
|
+
return false;
|
|
260
|
+
}, [api, setInspection]);
|
|
261
|
+
|
|
262
|
+
const back = useCallback(() => setInspectionState(previous => {
|
|
263
|
+
const entry = previous.history.at(-1);
|
|
264
|
+
return entry ? { focus: entry.focus, history: previous.history.slice(0, -1), restore: entry.state } : previous;
|
|
265
|
+
}), []);
|
|
266
|
+
|
|
267
|
+
const onChange = useCallback((elements, appState, files) => {
|
|
268
|
+
const latest = latestRef.current;
|
|
269
|
+
if (!sameInstallation(installedRef.current, latest.model, latest.scene)) return;
|
|
270
|
+
if (treeRef.current) {
|
|
271
|
+
setTheme(appState.theme === 'dark' ? 'dark' : 'light');
|
|
272
|
+
setZoom(appState.zoom.value);
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
const incoming = latest.inspectScene(latest.model, latest.draftElements(elements));
|
|
276
|
+
const restoreBoundEndpoints = !appState.selectedLinearElement && !appState.editingLinearElement
|
|
277
|
+
&& !elements.some(element => element.type === 'arrow' && appState.selectedElementIds?.[element.id]);
|
|
278
|
+
const pageNotes = reconcileMapPresentation(latest.model,nativeElementsRef.current,elements,newElementWith,{
|
|
279
|
+
restoreBoundEndpoints,routeHistory:routeHistoryRef.current,
|
|
280
|
+
gestureActive:Boolean(appState.selectedElementsAreBeingDragged || appState.resizingElement),
|
|
281
|
+
});
|
|
282
|
+
const repaired = pageNotes !== elements;
|
|
283
|
+
if (repaired) {
|
|
284
|
+
nativeElementsRef.current = structuredClone(pageNotes);
|
|
285
|
+
api?.updateScene({ elements: pageNotes, captureUpdate: CaptureUpdateAction.NEVER });
|
|
286
|
+
elements = pageNotes;
|
|
287
|
+
} else nativeElementsRef.current = structuredClone(elements);
|
|
288
|
+
setDrawingStyle(sketchState(elements, legendNodes));
|
|
289
|
+
setTheme(appState.theme === 'dark' ? 'dark' : 'light');
|
|
290
|
+
setZoom(appState.zoom.value);
|
|
291
|
+
const result = repaired ? latest.inspectScene(latest.model, latest.draftElements(elements)) : incoming;
|
|
292
|
+
const warnings = inspectAreaLayout(latest.model, elements);
|
|
293
|
+
setAreaWarnings(previous => JSON.stringify(previous) === JSON.stringify(warnings) ? previous : warnings);
|
|
294
|
+
setInspection(result);
|
|
295
|
+
emitScene(elements, appState, files); // Drifted edits must reach the parent's export gate.
|
|
296
|
+
if (appState.openDialog || appState.openMenu || (latest.mode === 'edit' && appState.activeTool?.type !== 'selection')) clearInspection();
|
|
297
|
+
const key = selectionKey(appState.selectedElementIds);
|
|
298
|
+
if (key !== lastSelectionRef.current) {
|
|
299
|
+
lastSelectionRef.current = key;
|
|
300
|
+
if (latest.mode === 'edit' && appState.activeTool?.type === 'selection' && !gestureRef.current.isActive()) {
|
|
301
|
+
const selected = singleSelection(latest.resolveSelection(latest.model, latest.draftElements(elements), appState.selectedElementIds));
|
|
302
|
+
// Keep the relationship's native arrow handles accessible in Edit.
|
|
303
|
+
const inspected = selected?.kind === 'node' ? selected : null;
|
|
304
|
+
if (inspected && !stageRef.current?.querySelector('.lm-inspector:focus-within, .lm-inspector-return:focus')) returnFocusRef.current = document.activeElement;
|
|
305
|
+
setInspectionState({ focus: inspected, history: [], restore: null });
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}, [api, emitScene, setInspection, clearInspection, legendNodes]);
|
|
309
|
+
|
|
310
|
+
useEffect(() => {
|
|
311
|
+
installedRef.current = null;
|
|
312
|
+
lastEmissionRef.current = ''; lastSelectionRef.current = ''; driftKeyRef.current = '';
|
|
313
|
+
// A replacement hides the old inspector during render, before this effect.
|
|
314
|
+
// A focused removed control leaves body active; return to its opener then.
|
|
315
|
+
const shouldRestoreFocus = stageRef.current?.querySelector('.lm-inspector:focus-within, .lm-inspector-return:focus')
|
|
316
|
+
|| (latestRef.current.focus && document.activeElement === document.body);
|
|
317
|
+
treeRef.current = null; setTree(null);
|
|
318
|
+
clearInspection(); setLocatedNode(null); clearPathState(); setDrift(null); setSceneWarnings([]); setLoading(true); setMode('view'); gestureRef.current.reset();
|
|
319
|
+
if (!api) return;
|
|
320
|
+
let cancelled = false, frame;
|
|
321
|
+
const restoreFocusAfterRender = () => {
|
|
322
|
+
if (!shouldRestoreFocus) return;
|
|
323
|
+
frame = requestAnimationFrame(() => {
|
|
324
|
+
const latest = latestRef.current;
|
|
325
|
+
if (!cancelled && latest.model === model && latest.scene === scene && document.activeElement === document.body) restoreOpener();
|
|
326
|
+
});
|
|
327
|
+
};
|
|
328
|
+
const fail = failure => {
|
|
329
|
+
installedRef.current = null;
|
|
330
|
+
setLoading(false);
|
|
331
|
+
setDrift({ valid: false, diagnostics: failure.diagnostics?.length ? failure.diagnostics
|
|
332
|
+
: [{ code: 'INSTALL_FAILED', message: failure.message }] });
|
|
333
|
+
latestRef.current.onInstallError?.(failure);
|
|
334
|
+
restoreFocusAfterRender();
|
|
335
|
+
};
|
|
336
|
+
const hasUnfinishedEdit = () => {
|
|
337
|
+
const state = api.getAppState();
|
|
338
|
+
return Boolean(state.editingTextElement || state.editingFrame || state.newElement || state.multiElement
|
|
339
|
+
|| state.isResizing || state.isRotating || state.selectedElementsAreBeingDragged);
|
|
340
|
+
};
|
|
341
|
+
const capture = () => {
|
|
342
|
+
if (cancelled || hasUnfinishedEdit()) return false;
|
|
343
|
+
if (treeRef.current) return true; // The full draft was captured before projection.
|
|
344
|
+
emitScene(api.getSceneElementsIncludingDeleted(), api.getAppState(), api.getFiles());
|
|
345
|
+
return true;
|
|
346
|
+
};
|
|
347
|
+
const flush = async () => {
|
|
348
|
+
const input = stageRef.current?.querySelector('.excalidraw-wysiwyg');
|
|
349
|
+
if (input && document.activeElement === input) {
|
|
350
|
+
input.blur();
|
|
351
|
+
await new Promise(resolve => requestAnimationFrame(resolve));
|
|
352
|
+
}
|
|
353
|
+
return capture();
|
|
354
|
+
};
|
|
355
|
+
let entryCamera;
|
|
356
|
+
const currentViewport = () => {
|
|
357
|
+
const { width, height } = stageRef.current.getBoundingClientRect();
|
|
358
|
+
const { zoom, scrollX, scrollY } = api.getAppState();
|
|
359
|
+
return { width, height, zoom, scrollX, scrollY };
|
|
360
|
+
};
|
|
361
|
+
let entryNode, fitOnResize;
|
|
362
|
+
const frameVisit = (camera, fit) => {
|
|
363
|
+
const viewport = currentViewport(), elements = api.getSceneElements();
|
|
364
|
+
const graph = elements.filter(element => !isGuideElement(model, element));
|
|
365
|
+
const base = fit ? fitCamera(graph, viewport) : camera;
|
|
366
|
+
const shape = entryNode && elements.find(element => element.id === semanticElementId('node', entryNode));
|
|
367
|
+
return shape ? revealCamera(sceneBounds([shape]), base, viewport) : base;
|
|
368
|
+
};
|
|
369
|
+
const matchesEntry = state => entryCamera && state.scrollX === entryCamera.scrollX
|
|
370
|
+
&& state.scrollY === entryCamera.scrollY && state.zoom.value === entryCamera.zoom.value;
|
|
371
|
+
// Fit is a viewport-relative preference. Only manual cameras have fixed coordinates.
|
|
372
|
+
const cameraForVisit = () => {
|
|
373
|
+
const state = api.getAppState();
|
|
374
|
+
return fitOnResize && matchesEntry(state) ? null : cameraFromAppState(state);
|
|
375
|
+
};
|
|
376
|
+
const fitVisit = () => {
|
|
377
|
+
entryNode = null;
|
|
378
|
+
fitOnResize = true;
|
|
379
|
+
entryCamera = frameVisit(null, true);
|
|
380
|
+
flushSync(() => api.updateScene({ appState: entryCamera, captureUpdate: CaptureUpdateAction.NEVER }));
|
|
381
|
+
};
|
|
382
|
+
const resizeVisit = () => {
|
|
383
|
+
if (!entryCamera || cancelled) return;
|
|
384
|
+
const state = api.getAppState();
|
|
385
|
+
if (!matchesEntry(state)) {
|
|
386
|
+
entryCamera = null;
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
const next = frameVisit(entryCamera, fitOnResize);
|
|
390
|
+
if (next.scrollX === entryCamera.scrollX && next.scrollY === entryCamera.scrollY && next.zoom.value === entryCamera.zoom.value) return;
|
|
391
|
+
entryCamera = next;
|
|
392
|
+
flushSync(() => api.updateScene({ appState: next, captureUpdate: CaptureUpdateAction.NEVER }));
|
|
393
|
+
};
|
|
394
|
+
const resizePage = new ResizeObserver(resizeVisit);
|
|
395
|
+
resizePage.observe(stageRef.current);
|
|
396
|
+
const prepareLocation = (id, camera = cameraForVisit()) => {
|
|
397
|
+
const tree = treeRef.current;
|
|
398
|
+
if (id) {
|
|
399
|
+
const elements = tree ? nativeElementsRef.current : api.getSceneElements();
|
|
400
|
+
const result = latestRef.current.resolveSelection(model, draftElements(elements), [semanticElementId('node', id)]);
|
|
401
|
+
if (singleSelection(result)?.id !== id) throw new Error('The selected card is unavailable in this diagram.');
|
|
402
|
+
}
|
|
403
|
+
const revealed = id && tree && !tree.state.boxes.has(id) ? tree.prepared.reveal(tree.state, id) : null;
|
|
404
|
+
const elements = revealed?.elements ?? api.getSceneElements();
|
|
405
|
+
if (id && !elements.some(element => !element.isDeleted && element.id === semanticElementId('node', id))) {
|
|
406
|
+
throw new Error('The selected card is unavailable in this diagram.');
|
|
407
|
+
}
|
|
408
|
+
// The history owner can refuse a visit. Keep all editor changes behind its commit.
|
|
409
|
+
return () => {
|
|
410
|
+
if (revealed) showTree(tree.prepared, revealed);
|
|
411
|
+
clearInspection();
|
|
412
|
+
setLocatedNode(id || null);
|
|
413
|
+
lastSelectionRef.current = '';
|
|
414
|
+
entryNode = id;
|
|
415
|
+
fitOnResize = !camera;
|
|
416
|
+
entryCamera = frameVisit(camera, fitOnResize);
|
|
417
|
+
// ResizeObserver can run as soon as the rail or route caption moves.
|
|
418
|
+
// Commit this camera before comparing the native state to it on resize.
|
|
419
|
+
flushSync(() => api.updateScene({ appState: { ...entryCamera, selectedElementIds: {}, selectedGroupIds: {} }, captureUpdate: CaptureUpdateAction.NEVER }));
|
|
420
|
+
};
|
|
421
|
+
};
|
|
422
|
+
const install = () => {
|
|
423
|
+
if (cancelled) return;
|
|
424
|
+
// The official editor restores initialData asynchronously.
|
|
425
|
+
if (api.getAppState().isLoading) { frame = requestAnimationFrame(install); return; }
|
|
426
|
+
try {
|
|
427
|
+
if (indexed.error || scene?.type !== 'excalidraw' || scene?.version !== 2 || !Array.isArray(scene?.elements)) {
|
|
428
|
+
throw indexed.error ?? new Error('Expected a validated Excalidraw version 2 scene.');
|
|
429
|
+
}
|
|
430
|
+
const input = structuredClone(scene);
|
|
431
|
+
// The admitted scene is renderer-ready. Re-conversion can alter IDs and geometry.
|
|
432
|
+
const theme = api.getAppState().theme;
|
|
433
|
+
api.resetScene();
|
|
434
|
+
api.updateScene({ elements: input.elements, appState: {
|
|
435
|
+
...input.appState, theme, ...(initialCamera || {}), selectedElementIds: {}, selectedGroupIds: {},
|
|
436
|
+
activeTool: { type: 'selection', customType: null, locked: false, lastActiveTool: null },
|
|
437
|
+
viewModeEnabled: true, zenModeEnabled: true, exportEmbedScene: false,
|
|
438
|
+
gridModeEnabled: input.appState?.gridModeEnabled ?? false, gridSize: input.appState?.gridSize ?? null,
|
|
439
|
+
}, captureUpdate: CaptureUpdateAction.NEVER });
|
|
440
|
+
if (Object.keys(input.files || {}).length) installCatalogFiles(api, input);
|
|
441
|
+
api.history.clear();
|
|
442
|
+
const inspectLocated = id => {
|
|
443
|
+
if (treeRef.current && !treeRef.current.state.boxes.has(id)) prepareLocation(id)();
|
|
444
|
+
return choose({ kind: 'node', id });
|
|
445
|
+
};
|
|
446
|
+
installedRef.current = { model, scene, flush, inspectLocated, fitVisit };
|
|
447
|
+
const elements = api.getSceneElementsIncludingDeleted();
|
|
448
|
+
const result = inspectScene(model, elements);
|
|
449
|
+
if (!result.valid && !draftDrift && latestRef.current.onInstalled) {
|
|
450
|
+
throw Object.assign(new Error('The editor could not install the admitted scene.'), { diagnostics: result.diagnostics });
|
|
451
|
+
}
|
|
452
|
+
nativeElementsRef.current = structuredClone(elements);
|
|
453
|
+
routeHistoryRef.current = new Map();
|
|
454
|
+
setDrawingStyle(sketchState(elements, legendNodes));
|
|
455
|
+
setTheme(theme === 'dark' ? 'dark' : 'light');
|
|
456
|
+
setInspection(result);
|
|
457
|
+
// The previous scene's appState can still be queued by React.
|
|
458
|
+
emitScene(elements, input.appState || {}, input.files || {});
|
|
459
|
+
if (result.valid) startTree(elements);
|
|
460
|
+
if (readyApiRef.current !== api) { readyApiRef.current = api; latestRef.current.onReady?.(api); }
|
|
461
|
+
frame = requestAnimationFrame(() => {
|
|
462
|
+
if (cancelled || !sameInstallation(installedRef.current, model, scene)) return;
|
|
463
|
+
try {
|
|
464
|
+
if (initialCamera) setZoom(initialCamera.zoom.value);
|
|
465
|
+
else {
|
|
466
|
+
const graph = api.getSceneElements().filter(element => !isGuideElement(model, element));
|
|
467
|
+
const frame = initialFraming === 'readable' ? frameReadableGraph : frameFittedGraph;
|
|
468
|
+
setZoom(frame(api, graph, model.nodes[0]?.id).zoom.value);
|
|
469
|
+
}
|
|
470
|
+
setLoading(false);
|
|
471
|
+
if (latestRef.current.onInstalled) {
|
|
472
|
+
frame = requestAnimationFrame(() => {
|
|
473
|
+
if (!cancelled) latestRef.current.onInstalled?.({
|
|
474
|
+
api, capture, flush, prepareLocation, resizeVisit, cameraForVisit,
|
|
475
|
+
inspectNode: inspectLocated,
|
|
476
|
+
focus: () => stageRef.current?.focus({ preventScroll: true }),
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
} else restoreFocusAfterRender();
|
|
480
|
+
} catch (failure) { fail(failure); }
|
|
481
|
+
});
|
|
482
|
+
} catch (failure) { fail(failure); }
|
|
483
|
+
};
|
|
484
|
+
frame = requestAnimationFrame(install);
|
|
485
|
+
return () => { cancelled = true; resizePage.disconnect(); cancelAnimationFrame(frame); installedRef.current = null; };
|
|
486
|
+
}, [api, model, scene, initialCamera, initialFraming, inspectScene, draftDrift, indexed, emitScene, setInspection, clearInspection, clearPathState, restoreOpener, startTree, choose, showTree]);
|
|
487
|
+
|
|
488
|
+
useEffect(() => {
|
|
489
|
+
const tracker = gestureRef.current;
|
|
490
|
+
const move = event => tracker.move(event);
|
|
491
|
+
const finish = event => tracker.cancel(event);
|
|
492
|
+
const keyboard = event => {
|
|
493
|
+
if (event.code === 'Space') spaceRef.current = event.type === 'keydown';
|
|
494
|
+
if (event.type === 'keydown' && event.key === 'Escape' && focus && stageRef.current?.contains(document.activeElement)) {
|
|
495
|
+
event.preventDefault(); event.stopPropagation(); close();
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
const blur = () => { tracker.reset(); spaceRef.current = false; };
|
|
499
|
+
window.addEventListener('pointermove', move, true);
|
|
500
|
+
window.addEventListener('pointerup', finish); window.addEventListener('pointercancel', finish);
|
|
501
|
+
window.addEventListener('keydown', keyboard, true); window.addEventListener('keyup', keyboard, true); window.addEventListener('blur', blur);
|
|
502
|
+
return () => {
|
|
503
|
+
window.removeEventListener('pointermove', move, true);
|
|
504
|
+
window.removeEventListener('pointerup', finish); window.removeEventListener('pointercancel', finish);
|
|
505
|
+
window.removeEventListener('keydown', keyboard, true); window.removeEventListener('keyup', keyboard, true); window.removeEventListener('blur', blur);
|
|
506
|
+
};
|
|
507
|
+
}, [focus, close]);
|
|
508
|
+
|
|
509
|
+
const toggleSketch = () => {
|
|
510
|
+
if (!api || loading || !sameInstallation(installedRef.current, model, scene)) return;
|
|
511
|
+
const current = treeRef.current;
|
|
512
|
+
if (current) {
|
|
513
|
+
const full = nativeElementsRef.current;
|
|
514
|
+
const styled = setSketch(full, sketchState(full, legendNodes) !== 'on', newElementWith, legendNodes);
|
|
515
|
+
const prepared = current.prepared.restyle(styled);
|
|
516
|
+
if (!prepared) return;
|
|
517
|
+
api.updateScene({ elements: full, captureUpdate: CaptureUpdateAction.NEVER });
|
|
518
|
+
api.updateScene({ elements: styled, captureUpdate: CaptureUpdateAction.IMMEDIATELY });
|
|
519
|
+
nativeElementsRef.current = styled;
|
|
520
|
+
emitScene(styled, api.getAppState(), api.getFiles());
|
|
521
|
+
setDrawingStyle(sketchState(styled, legendNodes));
|
|
522
|
+
showTree(prepared, prepared.project(current.state.collapsed, new Map(), {
|
|
523
|
+
boxes: current.state.boxes, routes: current.state.routes,
|
|
524
|
+
}));
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
const elements = api.getSceneElementsIncludingDeleted();
|
|
528
|
+
api.updateScene({ elements: setSketch(elements, sketchState(elements, legendNodes) !== 'on', newElementWith, legendNodes), captureUpdate: CaptureUpdateAction.IMMEDIATELY });
|
|
529
|
+
};
|
|
530
|
+
const toggleTheme = () => {
|
|
531
|
+
if (!api || loading) return;
|
|
532
|
+
api.updateScene({ appState: { theme: api.getAppState().theme === 'dark' ? 'light' : 'dark' }, captureUpdate: CaptureUpdateAction.NEVER });
|
|
533
|
+
};
|
|
534
|
+
const changeMode = async next => {
|
|
535
|
+
if (next === mode) return;
|
|
536
|
+
if (treeRef.current) {
|
|
537
|
+
treeRef.current = null; setTree(null);
|
|
538
|
+
api.updateScene({ elements: structuredClone(nativeElementsRef.current), captureUpdate: CaptureUpdateAction.NEVER });
|
|
539
|
+
} else if (next === 'view' && readingTree && !replacementError) {
|
|
540
|
+
const installation = installedRef.current;
|
|
541
|
+
if (!installation || !await installation.flush() || installation !== installedRef.current) return;
|
|
542
|
+
const full = api.getSceneElementsIncludingDeleted();
|
|
543
|
+
const admission = inspectScene(model, draftElements(full));
|
|
544
|
+
setInspection(admission);
|
|
545
|
+
if (admission.valid) {
|
|
546
|
+
nativeElementsRef.current = structuredClone(full);
|
|
547
|
+
startTree(nativeElementsRef.current);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
if (stageRef.current?.querySelector('.lm-inspector:focus-within, .lm-inspector-return:focus')) restoreOpener();
|
|
551
|
+
clearInspection(); clearPathState(); setMode(next); gestureRef.current.reset();
|
|
552
|
+
api?.updateScene({ appState: { selectedElementIds: {}, selectedGroupIds: {}, viewModeEnabled: next === 'view', zenModeEnabled: next === 'view' }, captureUpdate: CaptureUpdateAction.NEVER });
|
|
553
|
+
lastSelectionRef.current = '';
|
|
554
|
+
};
|
|
555
|
+
const frameDiagram = readable => {
|
|
556
|
+
if (!api || loading) return;
|
|
557
|
+
const graph = api.getSceneElements().filter(element => !isGuideElement(model, element));
|
|
558
|
+
if (readable) frameReadableGraph(api, graph, initialFraming === 'readable' ? model.nodes[0]?.id : undefined);
|
|
559
|
+
else installedRef.current?.fitVisit();
|
|
560
|
+
};
|
|
561
|
+
const stepZoom = direction => {
|
|
562
|
+
if (!api || loading) return;
|
|
563
|
+
const state = api.getAppState();
|
|
564
|
+
api.updateScene({ appState: zoomAtCenter(state, state.zoom.value + direction * ZOOM_STEP), captureUpdate: CaptureUpdateAction.NEVER });
|
|
565
|
+
};
|
|
566
|
+
const pointerDown = event => {
|
|
567
|
+
if (event.target.tagName !== 'CANVAS') return;
|
|
568
|
+
const eligible = !loading && !replacementError && !spaceRef.current && (mode === 'view' || api?.getAppState().activeTool?.type === 'selection');
|
|
569
|
+
gestureRef.current.down(event, eligible);
|
|
570
|
+
};
|
|
571
|
+
const pointerUp = event => {
|
|
572
|
+
const clicked = gestureRef.current.up(event);
|
|
573
|
+
if (!clicked || event.target.tagName !== 'CANVAS' || !api || loading || replacementError || spaceRef.current) return;
|
|
574
|
+
const appState = api.getAppState();
|
|
575
|
+
if (mode === 'edit' && appState.activeTool?.type !== 'selection') return;
|
|
576
|
+
const elements = api.getSceneElements(), byId = new Map(elements.map(element => [element.id, element]));
|
|
577
|
+
// Hit the painted bound cue box, not stale stored text x/y after a reshape.
|
|
578
|
+
const hitElements = elements.map(element => {
|
|
579
|
+
const box = element.containerId ? boundTextBox(element, byId.get(element.containerId)) : null;
|
|
580
|
+
return box ? { ...element, ...box } : element;
|
|
581
|
+
});
|
|
582
|
+
const resolver = treeRef.current ? (m, _els, ids) => latestRef.current.resolveSelection(m, nativeElementsRef.current, ids) : latestRef.current.resolveSelection;
|
|
583
|
+
const result = resolveHit(model, hitElements, viewportCoordsToSceneCoords({ clientX: event.clientX, clientY: event.clientY }, appState), appState.zoom?.value, resolver);
|
|
584
|
+
setInspection(result);
|
|
585
|
+
if (result.focus && (mode === 'view' || result.focus.kind === 'node')) choose(result.focus, undefined, stageRef.current);
|
|
586
|
+
else clearInspection();
|
|
587
|
+
};
|
|
588
|
+
const inspectionEnabled = !loading && !drift && !replacementError && !indexed.error && sameInstallation(installedRef.current, model, scene);
|
|
589
|
+
const validFocus = inspectionEnabled ? focus : null;
|
|
590
|
+
const toggleBranch = id => {
|
|
591
|
+
const current = treeRef.current;
|
|
592
|
+
if (!current || !inspectionEnabled) return;
|
|
593
|
+
const next = current.prepared.toggle(current.state, id);
|
|
594
|
+
if (focus && !(focus.kind === 'node' ? next.boxes : next.routes).has(focus.id)) clearInspection();
|
|
595
|
+
else setInspectionState(previous => ({ ...previous, history: previous.history.filter(entry =>
|
|
596
|
+
(entry.focus.kind === 'node' ? next.boxes : next.routes).has(entry.focus.id)) }));
|
|
597
|
+
if ([pathEndpoints.startId, pathEndpoints.endId].some(endpoint => endpoint && !next.boxes.has(endpoint))) clearPathState();
|
|
598
|
+
showTree(current.prepared, next);
|
|
599
|
+
};
|
|
600
|
+
const visibleModel = useMemo(() => tree ? { ...model,
|
|
601
|
+
nodes: model.nodes.filter(n => tree.state.boxes.has(n.id)),
|
|
602
|
+
edges: model.edges.filter(e => tree.state.routes.has(e.id)),
|
|
603
|
+
} : model, [model, tree]);
|
|
604
|
+
const path = useMemo(() => indexed.indexes && pathEndpoints.startId && pathEndpoints.endId
|
|
605
|
+
? directedPath(indexed.indexes, pathEndpoints.startId, pathEndpoints.endId) : null, [indexed, pathEndpoints]);
|
|
606
|
+
const hasPathChoice = Boolean(pathEndpoints.startId || pathEndpoints.endId);
|
|
607
|
+
const setPathEndpoint = (endpoint, id) => {
|
|
608
|
+
if (inspectionEnabled) setPathEndpoints(previous => ({ ...previous, [endpoint]: id }));
|
|
609
|
+
};
|
|
610
|
+
const endpointLabel = id => indexed.indexes?.nodesById.get(id)?.label || id;
|
|
611
|
+
let pathMessage;
|
|
612
|
+
if (!pathEndpoints.startId) pathMessage = 'Choose a start node.';
|
|
613
|
+
else if (!pathEndpoints.endId) pathMessage = 'Choose an end node.';
|
|
614
|
+
else if (path?.status === 'invalid') pathMessage = `Cannot find a path: ${path.endpoint} is not a node of this view.`;
|
|
615
|
+
else if (path?.status === 'none') pathMessage = `No directed path from ${endpointLabel(pathEndpoints.startId)} to ${endpointLabel(pathEndpoints.endId)} in this view.`;
|
|
616
|
+
else if (path?.status === 'found') pathMessage = path.edgeIds.length === 0
|
|
617
|
+
? 'Start and end are the same node; the path has no relations.'
|
|
618
|
+
: `Path from ${endpointLabel(pathEndpoints.startId)} to ${endpointLabel(pathEndpoints.endId)}: ${path.edgeIds.length} relation${path.edgeIds.length === 1 ? '' : 's'}.`;
|
|
619
|
+
if (path?.alternatives) pathMessage += ' Another path of the same length exists; one is shown.';
|
|
620
|
+
const inspectorAnchor = () => {
|
|
621
|
+
if (!api || !validFocus || !stageRef.current) return null;
|
|
622
|
+
const elements = api.getSceneElements(), state = api.getAppState();
|
|
623
|
+
const element = elements.find(candidate => candidate.id === semanticElementId(validFocus.kind, validFocus.id, validFocus.kind === 'node' ? 'shape' : 'label'));
|
|
624
|
+
if (!element) return null;
|
|
625
|
+
const painted = element.containerId ? boundTextBox(element, elements.find(candidate => candidate.id === element.containerId)) : null;
|
|
626
|
+
const box = sceneBounds([painted ? { ...element, ...painted } : element]);
|
|
627
|
+
if (!box) return null;
|
|
628
|
+
const start = sceneCoordsToViewportCoords({ sceneX: box.minX, sceneY: box.minY }, state);
|
|
629
|
+
const end = sceneCoordsToViewportCoords({ sceneX: box.maxX, sceneY: box.maxY }, state);
|
|
630
|
+
const stage = stageRef.current.getBoundingClientRect();
|
|
631
|
+
return { x: start.x - stage.left, y: start.y - stage.top, width: end.x - start.x, height: end.y - start.y };
|
|
632
|
+
};
|
|
633
|
+
const localToolbarId = useId();
|
|
634
|
+
const panelGroup = toolbarTarget?.id || localToolbarId;
|
|
635
|
+
const toolbar = <>
|
|
636
|
+
<div className="lm-viewer-toolbar" role="toolbar" aria-label="Diagram interaction">
|
|
637
|
+
{!viewOnly && <div className="lm-mode" role="group" aria-label="Mode"><button type="button" aria-pressed={mode === 'view'} disabled={loading} onClick={() => changeMode('view')}>View</button><button type="button" aria-pressed={mode === 'edit'} disabled={loading} onClick={() => changeMode('edit')}>Edit</button></div>}
|
|
638
|
+
|
|
639
|
+
<details name={panelGroup} className="lm-settings"><summary className="lm-icon-button" title="Options" aria-label="Options"><ControlIcon name="options" /></summary><div className="lm-settings-panel">
|
|
640
|
+
<label className="lm-picker">Inspect<select aria-label="Inspect a diagram item" disabled={loading || Boolean(drift) || Boolean(replacementError) || Boolean(indexed.error)} value={validFocus ? `${validFocus.kind}:${validFocus.id}` : ''} onChange={event => {
|
|
641
|
+
if (!event.target.value) { close(); return; }
|
|
642
|
+
const [kind, ...id] = event.target.value.split(':'); choose({ kind, id: id.join(':') });
|
|
643
|
+
}}><option value="">Choose an item…</option><optgroup label="Nodes">{visibleModel.nodes.map(node => <option key={node.id} value={`node:${node.id}`}>{personPickerLabel(node)}</option>)}</optgroup><optgroup label="Relations">{visibleModel.edges.map(edge => <option key={edge.id} value={`edge:${edge.id}`}>{edge.label}</option>)}</optgroup></select></label> <div className="lm-appearance" role="group" aria-label="Drawing appearance">
|
|
644
|
+
<button type="button" disabled={loading} aria-pressed={drawingStyle === 'mixed' ? 'mixed' : drawingStyle === 'on'} title="Change native block and straight-arrow roughness. Curved routes, text and role glyphs keep their appearance. Mixed means saved styles differ or use another roughness." onClick={toggleSketch}>Sketch: {drawingStyle === 'mixed' ? 'Mixed' : drawingStyle === 'on' ? 'On' : 'Off'}</button>
|
|
645
|
+
<button className="lm-theme-toggle" type="button" disabled={loading} aria-pressed={theme === 'dark'} aria-label="Dark theme" title="Switch the official editor between light and dark for this session" onClick={toggleTheme}>Theme: {theme === 'dark' ? 'Dark' : 'Light'}</button>
|
|
646
|
+
</div>
|
|
647
|
+
</div></details>
|
|
648
|
+
{!originalBinding?.compactLinks && <details name={panelGroup} className="lm-path-finder"><summary className="lm-icon-button" title="Path" aria-label="Path"><ControlIcon name="path" /></summary><div className="lm-path-controls">
|
|
649
|
+
<label className="lm-picker">From<select aria-label="From" disabled={!inspectionEnabled} value={pathEndpoints.startId} onChange={event => setPathEndpoint('startId', event.target.value)}>
|
|
650
|
+
<option value="">Choose a start node…</option>{visibleModel.nodes.map(node => <option key={node.id} value={node.id}>{personPickerLabel(node)}</option>)}
|
|
651
|
+
</select></label>
|
|
652
|
+
<label className="lm-picker">To<select aria-label="To" disabled={!inspectionEnabled} value={pathEndpoints.endId} onChange={event => setPathEndpoint('endId', event.target.value)}>
|
|
653
|
+
<option value="">Choose an end node…</option>{visibleModel.nodes.map(node => <option key={node.id} value={node.id}>{personPickerLabel(node)}</option>)}
|
|
654
|
+
</select></label>
|
|
655
|
+
<button type="button" disabled={!hasPathChoice} onClick={clearPath}>Clear path</button>
|
|
656
|
+
</div></details>}
|
|
657
|
+
<span className="lm-hint"><span className="lm-hint-measure" aria-hidden="true">Official editor · changes stay in this scene</span><span>{loading ? 'Loading diagram…' : mode !== 'view' ? 'Official editor · changes stay in this scene' : tree ? 'Click to inspect or fold · drag to pan' : readingTree && !drift ? 'Original layout · positioned drawing elements' : 'Click to inspect · drag to pan'}</span></span>
|
|
658
|
+
</div>
|
|
659
|
+
</>;
|
|
660
|
+
const warnings = sceneWarnings.length > 0 && !loading && !drift && <span className="lm-scene-warning" role="status">
|
|
661
|
+
{sceneWarnings.map((item, index) => <span key={`${item.code}:${item.path}:${index}`} title={`${item.code} ${item.path ?? ''}`}>{item.message}</span>)}
|
|
662
|
+
</span>;
|
|
663
|
+
const navigationControls = <div className="lm-map-controls">
|
|
664
|
+
{!loading && <Minimap api={api} scene={scene} stageRef={stageRef} initiallyOpen={mode === 'view'} />}
|
|
665
|
+
<div className="lm-camera" role="group" aria-label="Diagram framing">
|
|
666
|
+
<button type="button" disabled={loading || zoom <= MIN_ZOOM} aria-label="Zoom out" onClick={() => stepZoom(-1)}>−</button>
|
|
667
|
+
<output aria-label="Current zoom">{Math.round(zoom * 100)}%</output>
|
|
668
|
+
<button type="button" disabled={loading || zoom >= MAX_ZOOM} aria-label="Zoom in" onClick={() => stepZoom(1)}>+</button>
|
|
669
|
+
<button type="button" disabled={loading} title="Readable · zoom to read node names" onClick={() => frameDiagram(true)}><ControlIcon name="readable" /><span className="lm-sr-only">Readable</span></button>
|
|
670
|
+
<button type="button" disabled={loading} title={initialFraming === 'readable' ? 'Fit to available zoom' : 'Fit the whole graph'} onClick={() => frameDiagram(false)}><ControlIcon name="fit" /><span className="lm-sr-only">Fit</span></button>
|
|
671
|
+
</div>
|
|
672
|
+
</div>;
|
|
673
|
+
return <div className="lm-viewer" data-mode={mode} data-theme={theme}>
|
|
674
|
+
{statusTarget ? createPortal(warnings, statusTarget) : warnings}
|
|
675
|
+
{toolbarTarget ? createPortal(toolbar, toolbarTarget) : toolbar}
|
|
676
|
+
{model.presentationProfile === ARCHIMATE_PROFILE && <DiagramGuide model={model} elements={api?.getSceneElements() ?? scene.elements} sourceDescription={sourceDescription} template={sceneCardTemplate(scene)} />}
|
|
677
|
+
<div className="lm-viewer-stage" ref={stageRef} tabIndex={0} role="region" aria-label={`${model?.title || 'Diagram'} canvas`} onPointerDownCapture={pointerDown} onPointerUpCapture={pointerUp} onPointerCancelCapture={event => gestureRef.current.cancel(event)}>
|
|
678
|
+
<div className="lm-path-status lm-sr-only" role="status" aria-live="polite">{inspectionEnabled && hasPathChoice ? pathMessage : ''}</div>
|
|
679
|
+
{mode === 'view' && navigationControls}
|
|
680
|
+
|
|
681
|
+
<div className="lm-editor"><Excalidraw excalidrawAPI={setApi} onChange={onChange} onScrollChange={(_x, _y, value) => setZoom(value.value)} viewModeEnabled={mode === 'view'} zenModeEnabled={mode === 'view'} langCode="en" UIOptions={UI_OPTIONS} onLinkOpen={(_element, event) => event.preventDefault()} /></div>
|
|
682
|
+
{replacementError && <div className="lm-drift" role="alert"><strong>Replacement could not be opened.</strong><p>The current diagram is unchanged. Details are paused until the refused input is dismissed or replaced.</p><details><summary>{replacementError.diagnostics?.length || 1} issue{replacementError.diagnostics?.length === 1 ? '' : 's'}</summary><ul>{(replacementError.diagnostics || [{ code: replacementError.code || 'OPEN_FAILED', message: replacementError.message }]).map((item, index) => <li key={`${item.code}:${item.path || ''}:${index}`}>{item.code}: {item.message}</li>)}</ul></details><button type="button" onClick={onDismissReplacementError}>Dismiss</button></div>}
|
|
683
|
+
{drift && !installedRef.current && <div className="lm-drift" role="alert"><strong>Scene could not be installed.</strong><details><summary>Show diagnostics ({drift.diagnostics.length})</summary>
|
|
684
|
+
<ul>{drift.diagnostics.map((item, index) => <li key={index}><code>{item.code}</code> {item.path} {item.message}</li>)}</ul></details></div>}
|
|
685
|
+
{areaWarnings.length > 0 && <details className="lm-area-warning"><summary>Area layout · {areaWarnings.length}</summary>{areaWarnings.map(warning => <p key={warning.path}>{warning.message}</p>)}</details>}
|
|
686
|
+
{!loading && !drift && !replacementError && <DrilldownOverlay api={api} stageRef={stageRef} targets={detailTargets} onOpenDetails={onOpenDetails} />}
|
|
687
|
+
{inspectionEnabled && tree && <FoldButtons api={api} stageRef={stageRef} tree={tree} indexes={indexed.indexes} detailTargets={detailTargets} onToggle={toggleBranch} />}
|
|
688
|
+
{inspectionEnabled && hasPathChoice && <PathResultPanel key={JSON.stringify([pathEndpoints, path])} api={api} path={path} message={pathMessage} indexes={indexed.indexes} onClear={clearPath} />}
|
|
689
|
+
{inspectionEnabled && path?.status === 'found' && <HighlightOverlay api={api} path={path} stageRef={stageRef} />}
|
|
690
|
+
{inspectActionTarget && createPortal(<button type="button" disabled={!inspectionEnabled || !locatedNode}
|
|
691
|
+
onClick={() => installedRef.current?.inspectLocated?.(locatedNode)}>Inspect card</button>, inspectActionTarget)}
|
|
692
|
+
{inspectionEnabled && locatedNode && (!tree || tree.state.boxes.has(locatedNode)) && !validFocus && <HighlightOverlay api={api} indexes={indexed.indexes}
|
|
693
|
+
focus={{ kind: 'node', id: locatedNode }} stageRef={stageRef} />}
|
|
694
|
+
{validFocus && <><HighlightOverlay api={api} indexes={indexed.indexes} focus={validFocus} stageRef={stageRef} /><Inspector originalBinding={originalBinding} model={visibleModel} branchExpanded={tree ? !tree.state.collapsed.has(validFocus.id) : undefined} onToggleBranch={tree?.prepared.owners.has(validFocus.id) && validFocus.kind === 'node' ? toggleBranch : undefined} indexes={indexed.indexes} focus={validFocus} assetUrls={assetUrls} getAnchor={inspectorAnchor} detailTarget={detailTargets?.get?.(validFocus.id)} historyLength={inspection.history.length} restoreState={inspection.restore} onChoose={choose} onSetPathEndpoint={originalBinding?.compactLinks ? undefined : setPathEndpoint} onOpenDetails={latestRef.current.onOpenDetails} onBack={back} onClose={close} /></>}
|
|
695
|
+
</div>
|
|
696
|
+
{mode === 'edit' && <div className="lm-edit-navigation">{navigationControls}</div>}
|
|
697
|
+
{!loading && !replacementError && api && sameInstallation(installedRef.current, model, scene) && (mode === 'edit' || drift) &&
|
|
698
|
+
<SceneEditPrompt api={api} model={model} baseline={openedElements} target={editTarget}
|
|
699
|
+
drift={drift} readDraftElements={readDraftElements} inspectScene={inspectScene} flush={installedRef.current.flush} bound={Boolean(originalBinding)} />}
|
|
700
|
+
{model.presentationProfile !== ARCHIMATE_PROFILE && <DiagramGuide relationKeys={originalBinding?.relationKeys} model={model} elements={api?.getSceneElements() ?? scene.elements} sourceDescription={sourceDescription} template={sceneCardTemplate(scene)} />}
|
|
701
|
+
</div>;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export default DiagramViewer;
|