@locus-forge/locus-map 0.0.0-stage → 0.2.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 +161 -2
- package/SECURITY.md +58 -0
- package/THIRD_PARTY_NOTICES.md +65 -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/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/assets/abnfDiagram-VCTEODGH-BnTGKKaL.js +1 -0
- package/dist/assets/ar-SA-G6X2FPQ2-LY3czoz9.js +10 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-BG9h9KRx.js +36 -0
- package/dist/assets/az-AZ-76LH7QW2-Brv6kuM6.js +1 -0
- package/dist/assets/bg-BG-XCXSNQG7-tsQwwvMW.js +5 -0
- package/dist/assets/blockDiagram-I7D4REHJ-V9bUuR63.js +129 -0
- package/dist/assets/bn-BD-2XOGV67Q-0Cou5nNv.js +5 -0
- package/dist/assets/c4Diagram-7LVT6UL2-BmCtzbrY.js +38 -0
- package/dist/assets/ca-ES-6MX7JW3Y-pZF7WJUL.js +8 -0
- package/dist/assets/channel-Dx9OTBrx.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-D2iTDmHh.js +1 -0
- package/dist/assets/chunk-5VM5RSS4-CTxdXZIx.js +15 -0
- package/dist/assets/chunk-F27PBJKO-Hic1X1pm.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-DhLW1JVb.js +231 -0
- package/dist/assets/chunk-JWPE2WC7-_g5twKlC.js +1 -0
- package/dist/assets/chunk-POPQ4Y6H-DMV4qmkd.js +1 -0
- package/dist/assets/chunk-SVP7TREG-BWg83oEL.js +88 -0
- package/dist/assets/chunk-TICWLB2K-CPmkpa7J.js +206 -0
- package/dist/assets/chunk-XXDRQBXY-KnXvIZ_8.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-Da4s894j.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY--H9NrCfO.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-BChK_CGh.js +1 -0
- package/dist/assets/cs-CZ-2BRQDIVT-CtAC2Qjy.js +11 -0
- package/dist/assets/cynefin-OW5HDTMX-CdsltaMX.js +166 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-bXvXX3Fx.js +62 -0
- package/dist/assets/cytoscape.esm-BHa1VTXv.js +321 -0
- package/dist/assets/d3-scale-sM87TD1Z.js +1 -0
- package/dist/assets/da-DK-5WZEPLOC-DyWwaclV.js +5 -0
- package/dist/assets/dagre-GXQ25YYZ-CTmiZZVO.js +4 -0
- package/dist/assets/de-DE-XR44H4JA-BDXUBHki.js +8 -0
- package/dist/assets/diagram-S7CK7UJ4-Bm8Fy0R_.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-BU_AmM_A.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-B78LUoXq.js +3 -0
- package/dist/assets/diagram-VX7I27RA-DNvWjMlf.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-DmFVt1fa.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-CpDna0Jp.js +1 -0
- package/dist/assets/el-GR-BZB4AONW-CNhF7oN2.js +10 -0
- package/dist/assets/engines-a8mi_N6S.js +1 -0
- package/dist/assets/erDiagram-RLTQ6QDP-BGD-9OAS.js +99 -0
- package/dist/assets/es-ES-U4NZUMDT-DXMrJcKL.js +9 -0
- package/dist/assets/eu-ES-A7QVB2H4-BTkMEwMi.js +11 -0
- package/dist/assets/fa-IR-HGAKTJCU-CgkknSS7.js +8 -0
- package/dist/assets/fi-FI-Z5N7JZ37-B1K83nId.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-CjU1yR1F.js +168 -0
- package/dist/assets/fr-FR-RHASNOE6-CBFZBGMr.js +9 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-bvb8BjSh.js +292 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-DZXQ_x8t.js +106 -0
- package/dist/assets/gl-ES-HMX3MZ6V-CON98Mma.js +10 -0
- package/dist/assets/he-IL-6SHJWFNN-CBoFaEdB.js +10 -0
- package/dist/assets/hi-IN-IWLTKZ5I-BJuoh3dl.js +4 -0
- package/dist/assets/hu-HU-A5ZG7DT2-CQruu8XR.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-VhaoENjR.js +10 -0
- package/dist/assets/image-blob-reduce.esm-BZtWH-rr.js +2 -0
- package/dist/assets/index-CDNl17QJ.css +1 -0
- package/dist/assets/index-CboxqaL5.js +328 -0
- package/dist/assets/index-DBGHN_5E.js +624 -0
- package/dist/assets/infoDiagram-27XIBGKW-CM9Hap0f.js +2 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-i8pQztJI.js +70 -0
- package/dist/assets/it-IT-JPQ66NNP-Dj9BkXfh.js +11 -0
- package/dist/assets/ja-JP-DBVTYXUO-CB2BlfIS.js +8 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-PxcdqONT.js +139 -0
- package/dist/assets/kaa-6HZHGXH3-CLnR_zY5.js +1 -0
- package/dist/assets/kab-KAB-ZGHBKWFO-8TJr4nPf.js +8 -0
- package/dist/assets/kanban-definition-UXKFOSKX-B2p5NBhO.js +89 -0
- package/dist/assets/katex-HP8lGamR.js +257 -0
- package/dist/assets/kk-KZ-P5N5QNE5-5uZYjZ2e.js +1 -0
- package/dist/assets/km-KH-HSX4SM5Z-D54aOpMd.js +11 -0
- package/dist/assets/ko-KR-MTYHY66A-Bnm0G6eo.js +9 -0
- package/dist/assets/ku-TR-6OUDTVRD-CtGCn_eB.js +9 -0
- package/dist/assets/layout-BBV3_Svw.js +1 -0
- package/dist/assets/libavoid-BRQRZjmQ.wasm +0 -0
- package/dist/assets/lt-LT-XHIRWOB4-Bl8G0yv6.js +3 -0
- package/dist/assets/lv-LV-5QDEKY6T-Cax93Eua.js +7 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-CsOezwmE.js +96 -0
- package/dist/assets/mr-IN-CRQNXWMA-Br7GVyJH.js +13 -0
- package/dist/assets/my-MM-5M5IBNSE-xC6lzTDV.js +1 -0
- package/dist/assets/nb-NO-T6EIAALU-B0i5THqA.js +10 -0
- package/dist/assets/nl-NL-IS3SIHDZ-CqYhUjP3.js +8 -0
- package/dist/assets/nn-NO-6E72VCQL-rpjr_9Z5.js +8 -0
- package/dist/assets/oc-FR-POXYY2M6-BlhQ99Ty.js +8 -0
- package/dist/assets/pa-IN-N4M65BXN-N2XbQgZ_.js +4 -0
- package/dist/assets/pegDiagram-XKGWAZYB-C2iSJgYQ.js +1 -0
- package/dist/assets/pica-DvYcrBvx.js +2 -0
- package/dist/assets/pieDiagram-E7YTZNPT-CUjgOGBw.js +39 -0
- package/dist/assets/pl-PL-T2D74RX3-CnMxn1dA.js +9 -0
- package/dist/assets/pt-BR-5N22H2LF-Di-jnHb3.js +9 -0
- package/dist/assets/pt-PT-UZXXM6DQ-BaAKq8Sh.js +9 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-DwwqgJXZ.js +7 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-DyRgYGPF.js +1 -0
- package/dist/assets/requirementDiagram-BXWQKSXE-C3ixXeHJ.js +84 -0
- package/dist/assets/ro-RO-JPDTUUEW-BWrclVyo.js +11 -0
- package/dist/assets/roundRect-mAH3dD0p.js +1 -0
- package/dist/assets/ru-RU-B4JR7IUQ-_z0DINaG.js +9 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-mKpKYI_w.js +40 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-ZkNd0Wnj.js +162 -0
- package/dist/assets/si-LK-N5RQ5JYF-CdKOb383.js +1 -0
- package/dist/assets/sizeCapture-INFHLROL-hQLGO-0z.js +1 -0
- package/dist/assets/sk-SK-C5VTKIMK-MHJC6ZIe.js +6 -0
- package/dist/assets/sl-SI-NN7IZMDC-BF9YWbZx.js +6 -0
- package/dist/assets/stateDiagram-D77RDMKH-CRWj3j-B.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-B2DcVJGG.js +1 -0
- package/dist/assets/subset-shared.chunk-DtxXjVIA.js +22 -0
- package/dist/assets/subset-worker.chunk-DONNSbUF.js +1 -0
- package/dist/assets/sv-SE-XGPEYMSR-DkaTkfUY.js +10 -0
- package/dist/assets/swimlanes-42K2YHIH-CFf6j7jO.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-DO_W2uN2.js +8 -0
- package/dist/assets/ta-IN-2NMHFXQM-BfxqXEDI.js +9 -0
- package/dist/assets/th-TH-HPSO5L25-DT3vLA39.js +2 -0
- package/dist/assets/timeline-definition-24CTP7MA-BGP2Dq8M.js +120 -0
- package/dist/assets/tr-TR-DEFEU3FU-CdfsG7py.js +7 -0
- package/dist/assets/uk-UA-QMV73CPH-CZrQuC1S.js +6 -0
- package/dist/assets/vennDiagram-4TSXK5OY-CaxGPIab.js +34 -0
- package/dist/assets/vi-VN-M7AON7JQ-DQJk1_KV.js +5 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-DQxQ-zXH.js +78 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-DoxdZQ6R.js +7 -0
- package/dist/assets/zh-CN-LNUGB5OW-DRVBfkOy.js +10 -0
- package/dist/assets/zh-HK-E62DVLB3-BJHrltss.js +1 -0
- package/dist/assets/zh-TW-RAJ6MFWO-DpMZ5m2x.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 +564 -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 +128 -0
- package/docs/VIEWER.md +379 -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/adr/ADR-006-2026-12-05-workspace-navigation-rows/ADR-006-2026-12-05-workspace-navigation-rows.md +29 -0
- package/docs/adr/ADR-007-2026-12-05-native-edit-selection/ADR-007-2026-12-05-native-edit-selection.md +25 -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 +747 -0
- package/docs/compact-component-cards.md +43 -0
- package/docs/decisions.md +23 -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 +564 -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 +93 -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 +15 -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 +124 -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 +705 -0
- package/src/viewer/EditorialKey.jsx +69 -0
- package/src/viewer/FoldButtons.jsx +38 -0
- package/src/viewer/HighlightOverlay.jsx +157 -0
- package/src/viewer/Inspector.jsx +128 -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 +23 -0
- package/src/viewer/ProjectTasks.jsx +158 -0
- package/src/viewer/ProjectViewChainViewer.jsx +690 -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 +301 -0
- package/src/viewer/ViewChainViewer.jsx +340 -0
- package/src/viewer/camera.js +119 -0
- package/src/viewer/chainEditorSession.js +110 -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 +96 -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 +190 -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 +159 -0
- package/src/viewer/inspectorPosition.js +79 -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 +33 -0
- package/src/viewer/readingTree.js +120 -0
- package/src/viewer/sceneEditPrompt.js +94 -0
- package/src/viewer/sceneState.js +23 -0
- package/src/viewer/sceneWarnings.js +12 -0
- package/src/viewer/theme.css +20 -0
- package/src/viewer/useInspectorPosition.js +155 -0
- package/src/viewer/viewChain.css +181 -0
- package/src/viewer/viewChainState.js +86 -0
- package/src/viewer/viewer.css +76 -0
- package/vite.config.js +42 -0
|
@@ -0,0 +1,901 @@
|
|
|
1
|
+
import { isModernProfile, isTitleFirstProfile } from '@locus-forge/locus-draw/source';
|
|
2
|
+
import { mappingVersionForView } from '../contract/documentVersions.js';
|
|
3
|
+
import { handwrittenElement, hasHandwrittenText } from '@locus-forge/locus-draw/scene';
|
|
4
|
+
import { inspectPresentation } from '@locus-forge/locus-draw/geometry';
|
|
5
|
+
import { toDrawInput,decodeDrawSnapshot } from './drawProjection.js';
|
|
6
|
+
import { ARCHIMATE_PROFILE, archimateModelDiagnostics } from '../contract/archimateNotation.js';
|
|
7
|
+
import { STRUCTURE_PROFILE, SCENARIO_PROFILE, structureRoleDiagnostics, scenarioRoleDiagnostics } from '../contract/presentationProfile.js';
|
|
8
|
+
import { isDiagramPresentationProfile, relationPresentation } from '../contract/diagramPresentation.js';
|
|
9
|
+
import { sceneCardTemplate, contextualCardTemplate } from './cards/template.js';
|
|
10
|
+
import { edgeLabel, semanticElementId } from './identity.js';
|
|
11
|
+
import { hasEdgeCues, matchesCueReflow, requireCueAdmission, resolveEdgeAuthoredText, resolveEdgeDisplay } from './edgeCues.js';
|
|
12
|
+
import { sameCardGlyphPart, sameGlyphPart, sameKeyLabelAnchor } from './glyphDrift.js';
|
|
13
|
+
import {
|
|
14
|
+
matchesNativeText,
|
|
15
|
+
nativeCardGlyphs,
|
|
16
|
+
nativeCardBody,
|
|
17
|
+
nativeCardDecorations,
|
|
18
|
+
nativeCardLayout,
|
|
19
|
+
nativeEdgeStyle,
|
|
20
|
+
nativeNodeStyle,
|
|
21
|
+
} from './nativePresentation.js';
|
|
22
|
+
import { layoutModel, legacyCe6cadaGuideWidth, nodeSize } from './layout.js';
|
|
23
|
+
import { containsBox, firstPointY, inspectCueLayout } from './layoutDiagnostics.js';
|
|
24
|
+
import { createGuideSkeleton, guideTextSource, isGuideElement, legacyCe6cadaOriginalText, nodeGroupId, nodeShape, presentationStyle } from './presentation.js';
|
|
25
|
+
import { parseAndValidate } from '../contract/index.js';
|
|
26
|
+
import { areaSceneParts, areaStyle } from './areas.js';
|
|
27
|
+
import { legendReferencedNodeIds, legendReferencedRelationIds, protectedSceneParts, sceneCardHatches, verifiedNodeGroupTranslation } from './page.js';
|
|
28
|
+
import { edgeGroupId, relationLabelText } from './relationLabels.js';
|
|
29
|
+
import { routeEntersBox } from './routeGeometry.js';
|
|
30
|
+
import {
|
|
31
|
+
inspectCanonicalGuide,
|
|
32
|
+
inspectPortableUnmappedElement,
|
|
33
|
+
PORTABLE_ANNOTATION_TYPES,
|
|
34
|
+
} from './annotationPolicy.js';
|
|
35
|
+
|
|
36
|
+
export { SEMANTIC_MAPPING_VERSION } from '../contract/documentVersions.js';
|
|
37
|
+
|
|
38
|
+
const MAPPING_KEYS = ['kind', 'modelId', 'role', 'semanticId', 'version'];
|
|
39
|
+
const NODE_ROLES = new Set(['shape', 'lifeline', 'name', 'type', 'tag', 'technology', 'responsibility', 'badge', 'outcome', 'outcome-rule', 'claim', 'icon-body', 'icon-detail', 'icon-tab', 'card-fold', 'badge-shape', 'icon-image', 'icon-badge', 'card-outline', 'card-cap', 'tag-shape', 'external']);
|
|
40
|
+
const EDGE_ROLES = new Set(['arrow', 'label', 'label-mask']);
|
|
41
|
+
const TIER_ROLES = ['type', 'tag', 'name', 'technology', 'responsibility', 'badge', 'outcome', 'claim', 'external'];
|
|
42
|
+
const ICON_ROLES = ['icon-body', 'icon-detail', 'icon-tab', 'card-fold', 'badge-shape', 'icon-image', 'icon-badge', 'card-outline', 'card-cap', 'tag-shape', 'outcome-rule'];
|
|
43
|
+
const active = element => element && !element.isDeleted;
|
|
44
|
+
const elementsOf = scene => Array.isArray(scene) ? scene : scene?.elements;
|
|
45
|
+
const mappingKey = mapping => `${mapping.kind}\u0000${mapping.semanticId}\u0000${mapping.role}`;
|
|
46
|
+
const compact = value => typeof value === 'string' ? value.replace(/\s/gu, '') : '';
|
|
47
|
+
const validBoundElement = value => value && typeof value === 'object' && !Array.isArray(value)
|
|
48
|
+
&& typeof value.id === 'string' && (value.type === 'arrow' || value.type === 'text');
|
|
49
|
+
|
|
50
|
+
function colorAlpha(value) {
|
|
51
|
+
if (value === 'transparent' || typeof value !== 'string') return 0;
|
|
52
|
+
if (/^#[\da-f]{3}$/iu.test(value) || /^#[\da-f]{6}$/iu.test(value)) return 1;
|
|
53
|
+
if (/^#[\da-f]{4}$/iu.test(value)) return parseInt(value.at(-1).repeat(2), 16) / 255;
|
|
54
|
+
if (/^#[\da-f]{8}$/iu.test(value)) return parseInt(value.slice(-2), 16) / 255;
|
|
55
|
+
return 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function colorRgb(value) {
|
|
59
|
+
if (typeof value !== 'string') return null;
|
|
60
|
+
const match = value.match(/^#([\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/iu);
|
|
61
|
+
if (!match) return null;
|
|
62
|
+
const hex = match[1].length <= 4 ? [...match[1].slice(0, 3)].map(value => value.repeat(2)).join('') : match[1].slice(0, 6);
|
|
63
|
+
return [0, 2, 4].map(index => parseInt(hex.slice(index, index + 2), 16) / 255);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const luminance = value => {
|
|
67
|
+
const rgb = colorRgb(value);
|
|
68
|
+
if (!rgb) return null;
|
|
69
|
+
const channels = rgb.map(channel => channel <= 0.04045 ? channel / 12.92 : ((channel + 0.055) / 1.055) ** 2.4);
|
|
70
|
+
return channels[0] * 0.2126 + channels[1] * 0.7152 + channels[2] * 0.0722;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
function textContrasts(element, background) {
|
|
74
|
+
if (element?.opacity !== 100 || colorAlpha(element.strokeColor) !== 1 || colorAlpha(background) !== 1) return false;
|
|
75
|
+
const foregroundLuminance = luminance(element.strokeColor), backgroundLuminance = luminance(background);
|
|
76
|
+
if (foregroundLuminance == null || backgroundLuminance == null) return false;
|
|
77
|
+
return (Math.max(foregroundLuminance, backgroundLuminance) + 0.05)
|
|
78
|
+
/ (Math.min(foregroundLuminance, backgroundLuminance) + 0.05) >= 2;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const visibleStroke = element => element?.opacity > 0 && colorAlpha(element.strokeColor) > 0 && element.strokeWidth !== 0;
|
|
82
|
+
const visibleFill = element => element?.opacity > 0 && colorAlpha(element.backgroundColor) > 0;
|
|
83
|
+
const opaqueFill = element => element?.opacity === 100 && element.fillStyle === 'solid' && colorAlpha(element.backgroundColor) === 1;
|
|
84
|
+
const effectiveAlpha = (color, opacity) => colorAlpha(color) * (Number.isFinite(opacity) ? opacity / 100 : 0);
|
|
85
|
+
const pathIsLoop = element => {
|
|
86
|
+
if (!Array.isArray(element?.points) || element.points.length < 3) return false;
|
|
87
|
+
const first = element.points[0], last = element.points.at(-1);
|
|
88
|
+
return Array.isArray(first) && first.length === 2 && first.every(Number.isFinite)
|
|
89
|
+
&& Array.isArray(last) && last.length === 2 && last.every(Number.isFinite)
|
|
90
|
+
&& Math.hypot(last[0] - first[0], last[1] - first[1]) <= 8;
|
|
91
|
+
};
|
|
92
|
+
const paintedOpaqueFill = element => opaqueFill(element)
|
|
93
|
+
&& (!['line', 'freedraw'].includes(element.type) || pathIsLoop(element));
|
|
94
|
+
const paintedObscuringFill = element => element?.fillStyle === 'solid' && effectiveAlpha(element.backgroundColor, element.opacity) >= 0.9
|
|
95
|
+
&& (!['line', 'freedraw'].includes(element.type) || pathIsLoop(element));
|
|
96
|
+
const pointSegmentDistance = (point, start, end) => {
|
|
97
|
+
const dx = end[0] - start[0], dy = end[1] - start[1], lengthSquared = dx * dx + dy * dy;
|
|
98
|
+
if (lengthSquared === 0) return Math.hypot(point[0] - start[0], point[1] - start[1]);
|
|
99
|
+
const ratio = Math.max(0, Math.min(1, ((point[0] - start[0]) * dx + (point[1] - start[1]) * dy) / lengthSquared));
|
|
100
|
+
return Math.hypot(point[0] - start[0] - ratio * dx, point[1] - start[1] - ratio * dy);
|
|
101
|
+
};
|
|
102
|
+
const strokeCoversLinearSample = (element, target, points) => {
|
|
103
|
+
if (!['line', 'arrow'].includes(target.type) || !Array.isArray(target.points) || target.points.length < 2
|
|
104
|
+
|| element.strokeWidth < Math.max(1, target.strokeWidth ?? 1)) return false;
|
|
105
|
+
const targetPoints = target.points.map(point => [target.x + point[0], target.y + point[1]]);
|
|
106
|
+
if (targetPoints.some(point => !point.every(Number.isFinite))) return false;
|
|
107
|
+
const samples = [];
|
|
108
|
+
for (let index = 1; index < targetPoints.length; index += 1) {
|
|
109
|
+
const start = targetPoints[index - 1], end = targetPoints[index];
|
|
110
|
+
for (const ratio of [0, 0.25, 0.5, 0.75, 1]) samples.push([
|
|
111
|
+
start[0] + (end[0] - start[0]) * ratio,
|
|
112
|
+
start[1] + (end[1] - start[1]) * ratio,
|
|
113
|
+
]);
|
|
114
|
+
}
|
|
115
|
+
const radius = element.strokeWidth / 2;
|
|
116
|
+
return samples.filter(sample => points.slice(1).some((end, index) =>
|
|
117
|
+
pointSegmentDistance(sample, points[index], end) <= radius)).length >= Math.min(2, samples.length);
|
|
118
|
+
};
|
|
119
|
+
const strokeCoversBox = (element, target) => {
|
|
120
|
+
if (!['line', 'freedraw', 'arrow'].includes(element?.type) || effectiveAlpha(element.strokeColor, element.opacity) < 0.9
|
|
121
|
+
|| !Number.isFinite(element.strokeWidth) || element.strokeWidth <= 0
|
|
122
|
+
|| !Array.isArray(element.points) || element.points.length < 2) return false;
|
|
123
|
+
const points = element.points.map(point => [element.x + point[0], element.y + point[1]]);
|
|
124
|
+
if (points.some(point => !point.every(Number.isFinite))) return false;
|
|
125
|
+
if (strokeCoversLinearSample(element, target, points)) return true;
|
|
126
|
+
const targetBox = { left: target.x, top: target.y, right: target.x + target.width, bottom: target.y + target.height };
|
|
127
|
+
return element.strokeWidth >= Math.min(target.width, target.height) / 2
|
|
128
|
+
&& points.slice(1).some((end, index) => routeEntersBox([points[index], end], targetBox));
|
|
129
|
+
};
|
|
130
|
+
const visibleTextBox = element => {
|
|
131
|
+
const lines = String(element.text ?? '').split('\n'), width = Math.min(element.width,
|
|
132
|
+
Math.max(1, ...lines.map(line => [...line].length)) * element.fontSize * 0.62);
|
|
133
|
+
const x = element.textAlign === 'center' ? element.x + (element.width - width) / 2
|
|
134
|
+
: element.textAlign === 'right' ? element.x + element.width - width : element.x;
|
|
135
|
+
return { left: x, top: element.y, right: x + width, bottom: element.y + element.height };
|
|
136
|
+
};
|
|
137
|
+
const strokeObscuresText = (element, text) => {
|
|
138
|
+
if (!['line', 'freedraw', 'arrow'].includes(element?.type) || effectiveAlpha(element.strokeColor, element.opacity) < 0.9
|
|
139
|
+
|| !Number.isFinite(element.strokeWidth) || element.strokeWidth < text.fontSize
|
|
140
|
+
|| !Array.isArray(element.points) || element.points.length < 2) return false;
|
|
141
|
+
const points = element.points.map(point => [element.x + point[0], element.y + point[1]]), box = visibleTextBox(text);
|
|
142
|
+
return points.every(point => point.every(Number.isFinite)) && points.slice(1).some((end, index) => {
|
|
143
|
+
const expanded = { left: box.left - element.strokeWidth / 2, top: box.top - element.strokeWidth / 2,
|
|
144
|
+
right: box.right + element.strokeWidth / 2, bottom: box.bottom + element.strokeWidth / 2 };
|
|
145
|
+
return routeEntersBox([points[index], end], expanded);
|
|
146
|
+
});
|
|
147
|
+
};
|
|
148
|
+
const effectivelyVisible = element => element?.type === 'text' || element?.type === 'arrow'
|
|
149
|
+
? visibleStroke(element) : visibleStroke(element) || visibleFill(element);
|
|
150
|
+
|
|
151
|
+
function hasExactBindings(element, expected) {
|
|
152
|
+
const actual = element?.boundElements ?? [];
|
|
153
|
+
if (!Array.isArray(actual) || actual.length !== expected.length) return false;
|
|
154
|
+
const wanted = new Set(expected.map(value => `${value.type}\u0000${value.id}`));
|
|
155
|
+
return wanted.size === expected.length
|
|
156
|
+
&& actual.every(value => validBoundElement(value) && wanted.delete(`${value.type}\u0000${value.id}`))
|
|
157
|
+
&& wanted.size === 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function expectedNodeParts(node, family, template) {
|
|
161
|
+
const parts = new Map([['shape', nodeShape(node, family, { template })]]);
|
|
162
|
+
for (const tier of nativeCardLayout(node, {}, undefined, { template }).tiers) parts.set(tier.role, 'text');
|
|
163
|
+
const box = { x: 0, y: 0, ...nodeSize(node, family, false, template) };
|
|
164
|
+
for (const part of [...nativeCardGlyphs(node, box, false, { template }), ...nativeCardBody(node, box, { template }), ...nativeCardDecorations(node, box, { template })]) parts.set(part.role, part.type);
|
|
165
|
+
if (['c4-2b', STRUCTURE_PROFILE, SCENARIO_PROFILE].includes(template.id) && node.technical?.external) parts.set('external', 'text');
|
|
166
|
+
if (family === 'sequence') parts.set('lifeline', 'rectangle');
|
|
167
|
+
return parts;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function validGeometry(element) {
|
|
171
|
+
return ['x', 'y', 'width', 'height', 'angle'].every(key => Number.isFinite(element?.[key]))
|
|
172
|
+
&& element.width >= 0 && element.height >= 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function mappingIndex(elements) {
|
|
176
|
+
const result = new Map();
|
|
177
|
+
for (const element of elements || []) {
|
|
178
|
+
const mapping = element?.customData?.locusMap;
|
|
179
|
+
if (mapping && !result.has(mappingKey(mapping))) result.set(mappingKey(mapping), element);
|
|
180
|
+
}
|
|
181
|
+
return result;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function localTierY(owner, tier) {
|
|
185
|
+
const dx = tier.x + tier.width / 2 - owner.x - owner.width / 2;
|
|
186
|
+
const dy = tier.y + tier.height / 2 - owner.y - owner.height / 2;
|
|
187
|
+
return -dx * Math.sin(owner.angle || 0) + dy * Math.cos(owner.angle || 0);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function localTierBounds(owner, tier) {
|
|
191
|
+
const center = localTierY(owner, tier);
|
|
192
|
+
const angle = tier.angle - owner.angle;
|
|
193
|
+
const radius = (Math.abs(Math.cos(angle)) * tier.height + Math.abs(Math.sin(angle)) * tier.width) / 2;
|
|
194
|
+
return { top: center - radius, bottom: center + radius };
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function textMatches(element, expected, { uppercase = false, bracket = false, cueModel, edge, legacyOriginalText } = {}) {
|
|
198
|
+
if (typeof expected !== 'string' || element?.type !== 'text') return false;
|
|
199
|
+
const authored = element.originalText === expected
|
|
200
|
+
|| typeof legacyOriginalText === 'string' && element.originalText === legacyOriginalText;
|
|
201
|
+
if (cueModel) return authored && matchesCueReflow(cueModel, edge, element.text);
|
|
202
|
+
const visible = bracket ? `[${expected}]` : uppercase ? expected.toUpperCase() : expected;
|
|
203
|
+
return authored && matchesNativeText(element.text, visible);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function hasFiniteRoute(element) {
|
|
207
|
+
return Array.isArray(element?.points) && element.points.length >= 2
|
|
208
|
+
&& element.points.every(point => Array.isArray(point) && point.length === 2 && point.every(Number.isFinite));
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function edgeTextDiagnostic(edge, element) {
|
|
212
|
+
const authored = `${element?.originalText ?? ''}\n${element?.text ?? ''}`;
|
|
213
|
+
const labelPrefix = edgeLabel({ ...edge, condition: undefined }, edge.order === undefined ? 'semantic' : 'sequence');
|
|
214
|
+
return edge.condition && compact(authored).includes(compact(labelPrefix))
|
|
215
|
+
? 'CONDITION_CHANGED'
|
|
216
|
+
: 'EDGE_LABEL_CHANGED';
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** Admit a saved scene against one projected model while retaining its layout
|
|
220
|
+
* and comparing family glyph topology independently of scene position. */
|
|
221
|
+
export function inspectSavedSemanticScene(model, sceneOrElements, {
|
|
222
|
+
baselineScene,
|
|
223
|
+
includeGeometry = false,
|
|
224
|
+
sourceDescription,
|
|
225
|
+
guideLanguage,
|
|
226
|
+
guidePlacement,
|
|
227
|
+
minimumFontSize,
|
|
228
|
+
guideBoxes,
|
|
229
|
+
guideGraphElements,
|
|
230
|
+
} = {}) {
|
|
231
|
+
if (typeof model === 'string') {
|
|
232
|
+
try { model = parseAndValidate(model); }
|
|
233
|
+
catch (error) { return { valid: false, diagnostics: error.diagnostics ?? [{ code: 'INVALID_MODEL', path: '$.model', message: error.message }] }; }
|
|
234
|
+
}
|
|
235
|
+
requireCueAdmission(model);
|
|
236
|
+
if (!Array.isArray(model?.nodes) || !Array.isArray(model?.edges)) {
|
|
237
|
+
return { valid: false, diagnostics: [{ code: 'INVALID_MODEL', path: '$.model', message: 'Expected a canonical semantic model.' }] };
|
|
238
|
+
}
|
|
239
|
+
const profileDiagnostics = [...structureRoleDiagnostics(model), ...scenarioRoleDiagnostics(model), ...archimateModelDiagnostics(model)];
|
|
240
|
+
if (profileDiagnostics.length) return { valid: false, diagnostics: profileDiagnostics };
|
|
241
|
+
const elements = elementsOf(sceneOrElements);
|
|
242
|
+
if (!Array.isArray(elements)) return { valid: false, diagnostics: [{ code: 'INVALID_SCENE', path: '$.elements', message: 'Expected an Excalidraw elements array or scene.' }] };
|
|
243
|
+
const sceneBackground = colorAlpha(sceneOrElements?.appState?.viewBackgroundColor) === 1
|
|
244
|
+
? sceneOrElements.appState.viewBackgroundColor : '#ffffff';
|
|
245
|
+
// Presentation belongs to the saved scene, never to semantic facts. Absence
|
|
246
|
+
// identifies pre-E2 v4 documents; opening them must not regenerate their cards.
|
|
247
|
+
const mappingVersion = mappingVersionForView(model);
|
|
248
|
+
let template;
|
|
249
|
+
try {
|
|
250
|
+
const savedTemplate = sceneCardTemplate(elements);
|
|
251
|
+
// Wrapped handwritten body text changes the canonical C4 cylinder height.
|
|
252
|
+
const handwritten = (savedTemplate.id === 'c4-reference-v1' || mappingVersion === 2) &&
|
|
253
|
+
hasHandwrittenText(elements.filter(element => element.customData?.locusMap));
|
|
254
|
+
template = contextualCardTemplate(handwritten ? { ...model, handwritten } : model, savedTemplate);
|
|
255
|
+
if (model.schemaVersion === 2 && template.id !== model.presentationProfile) throw new Error('The saved marker differs from the model presentationProfile.');
|
|
256
|
+
if (model.schemaVersion !== 2 && [STRUCTURE_PROFILE, SCENARIO_PROFILE, ARCHIMATE_PROFILE].includes(template.id)) throw new Error('The compact profile requires model schemaVersion 2.');
|
|
257
|
+
}
|
|
258
|
+
catch (error) { return { valid: false, diagnostics: [{ code: 'SCENE_PRESENTATION_CHANGED', path: '$.elements', message: error.message }] }; }
|
|
259
|
+
const legacy = template.id === undefined;
|
|
260
|
+
const diagnostics = [];
|
|
261
|
+
const report = (code, element, message) => diagnostics.push({
|
|
262
|
+
code,
|
|
263
|
+
path: element?.id ? `$.elements[${JSON.stringify(element.id)}]` : '$.elements',
|
|
264
|
+
message,
|
|
265
|
+
});
|
|
266
|
+
const nodes = new Map(model.nodes.map(node => [node.id, node]));
|
|
267
|
+
const edges = new Map(model.edges.map(edge => [edge.id, edge]));
|
|
268
|
+
const nodeParts = new Map(model.nodes.map(node => [node.id, expectedNodeParts(node, model.layout?.family, template)]));
|
|
269
|
+
const family = model.layout?.family;
|
|
270
|
+
// Component/sequence presets are pure family geometry; no engines are used.
|
|
271
|
+
const layout = ['semantic', 'decision'].includes(family)
|
|
272
|
+
? { boxes: new Map(model.nodes.map(node => [node.id, { ...nodeSize(node, family, legacy, template), x: 0, y: 0 }])), containers: new Set() }
|
|
273
|
+
: layoutModel(model, undefined, { legacy, template });
|
|
274
|
+
const glyphReferences = new Map(model.nodes.map(node => {
|
|
275
|
+
const owner = layout.boxes.get(node.id);
|
|
276
|
+
const parts = new Map([...nativeCardGlyphs(node, template.id === 'c4-2b' && layout.containers.has(node.id) ? { ...owner, width: nativeCardLayout(node, {}, undefined, { template }).width } : owner, layout.containers.has(node.id), { template }), ...nativeCardBody(node, owner, { template }), ...nativeCardDecorations(node, owner, { template })].map(part => [part.role, part]));
|
|
277
|
+
return [node.id, { owner, parts }];
|
|
278
|
+
}));
|
|
279
|
+
// Fresh 2B scenes keep reading context in the HTML guide. Older saved 2B
|
|
280
|
+
// scenes may still carry the complete native key. Any presence, including
|
|
281
|
+
// deleted elements, keeps the entire original guide contract mandatory.
|
|
282
|
+
const hasGuide = elements.some(element => typeof element?.id === 'string' && isGuideElement(model, element));
|
|
283
|
+
const guideReferences = (['c4-2b', STRUCTURE_PROFILE, SCENARIO_PROFILE].includes(template.id) || isDiagramPresentationProfile(template.id)) && !hasGuide ? []
|
|
284
|
+
: createGuideSkeleton(model, guideBoxes ?? layout.boxes, guideGraphElements ?? [], {
|
|
285
|
+
legacy, template, sourceDescription, guideLanguage, guidePlacement, minimumFontSize,
|
|
286
|
+
});
|
|
287
|
+
const guideById = new Map(guideReferences.map(element => [element.id, element]));
|
|
288
|
+
const guideGroups = new Set(guideReferences.flatMap(element => element.groupIds || []));
|
|
289
|
+
const guideWidth = ['semantic', 'decision'].includes(family)
|
|
290
|
+
? legacyCe6cadaGuideWidth(model)
|
|
291
|
+
: Math.max(380, Math.min(1100,
|
|
292
|
+
Math.max(...[...layout.boxes.values()].map(box => box.x + box.width))
|
|
293
|
+
- Math.min(...[...layout.boxes.values()].map(box => box.x))));
|
|
294
|
+
const canonicalGroups = new Map(model.nodes.map(node => [nodeGroupId(node), node.id]));
|
|
295
|
+
const canonicalEdgeGroups = new Map(model.edges.map(edge => [edgeGroupId(edge), edge.id]));
|
|
296
|
+
const cardHatches = sceneCardHatches(elementsOf(baselineScene) ?? elements, template.id);
|
|
297
|
+
const expectedCardPaint = (node, paint) => cardHatches.has(node.id) && template.id !== ARCHIMATE_PROFILE
|
|
298
|
+
? handwrittenElement({ type: 'rectangle', ...paint }, cardHatches.get(node.id)) : paint;
|
|
299
|
+
const areaParts = areaSceneParts(model), protectedParts = protectedSceneParts(model, cardHatches);
|
|
300
|
+
const annotationPolicy = {
|
|
301
|
+
guideElements: guideById,
|
|
302
|
+
guideGroupIds: guideGroups,
|
|
303
|
+
guideWidth,
|
|
304
|
+
template,
|
|
305
|
+
sourceDescription,
|
|
306
|
+
guideLanguage,
|
|
307
|
+
areaParts,
|
|
308
|
+
protectedParts,
|
|
309
|
+
partStyles: new Map([...areaParts]
|
|
310
|
+
.filter(([, part]) => part.mapped && part.role === 'area-shape')
|
|
311
|
+
.map(([id, part]) => [id, areaStyle(model, part.area)])),
|
|
312
|
+
nodeGroups: canonicalGroups,
|
|
313
|
+
edgeGroups: canonicalEdgeGroups,
|
|
314
|
+
};
|
|
315
|
+
const decoded = decodeDrawSnapshot(model,elements,protectedParts);
|
|
316
|
+
const baseline = baselineScene ? decodeDrawSnapshot(model,elementsOf(baselineScene),protectedParts) : null;
|
|
317
|
+
const geometryInspection = inspectPresentation(toDrawInput(model,{template,sourceDescription}),decoded.snapshot,{
|
|
318
|
+
...(baseline ? {baseline:baseline.snapshot} : {}),
|
|
319
|
+
...(model.page?.geometry?.version === 1 ? {persistedGroups:model.page.geometry.parts} : {}),
|
|
320
|
+
});
|
|
321
|
+
diagnostics.push(...decoded.diagnostics,...geometryInspection.diagnostics);
|
|
322
|
+
if (baselineScene) {
|
|
323
|
+
const baselineById = new Map((elementsOf(baselineScene) ?? []).map(element => [element.id, element]));
|
|
324
|
+
for (const [id, part] of protectedParts) if (part.mapped) {
|
|
325
|
+
const actual = elements.find(element => element.id === id), baseline = baselineById.get(id);
|
|
326
|
+
const graphNote = model.layout?.mode === 'auto' && part.role === 'note'
|
|
327
|
+
? (model.page?.notes ?? []).find(note => note.below && part.semanticId === `note:${note.id}`) : null;
|
|
328
|
+
const graphAnchoredNote = graphNote && verifiedNodeGroupTranslation(elementsOf(baselineScene) ?? [], elements, graphNote.below)
|
|
329
|
+
&& actual?.originalText === graphNote.text && matchesNativeText(actual?.text, graphNote.text);
|
|
330
|
+
const keys = ['version', 'dx', 'dy', 'width', 'height'];
|
|
331
|
+
if (!graphAnchoredNote && active(actual) && active(baseline) && keys.some(key =>
|
|
332
|
+
actual.customData?.locusMapGroupGeometry?.[key] !== baseline.customData?.locusMapGroupGeometry?.[key])) {
|
|
333
|
+
report('PAGE_PART_POSITION_CHANGED', actual, 'Protected group-relative geometry metadata cannot change during save.');
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
const legendNodes = legendReferencedNodeIds(model);
|
|
338
|
+
const byId = new Map();
|
|
339
|
+
const mappedByKey = new Map();
|
|
340
|
+
const mappingByElementId = new Map();
|
|
341
|
+
|
|
342
|
+
for (const element of elements) {
|
|
343
|
+
if (!element || typeof element !== 'object' || typeof element.id !== 'string') {
|
|
344
|
+
report('INVALID_ELEMENT', null, 'Every scene element must have an ID.');
|
|
345
|
+
continue;
|
|
346
|
+
}
|
|
347
|
+
if (byId.has(element.id)) report('DUPLICATE_ELEMENT_ID', element, 'Scene element IDs must be unique, including deleted elements.');
|
|
348
|
+
byId.set(element.id, element);
|
|
349
|
+
const mapping = element.customData?.locusMap;
|
|
350
|
+
const policy = inspectPortableUnmappedElement(model, element, annotationPolicy);
|
|
351
|
+
if (policy.frameChanged) report('FRAME_CHANGED', element,
|
|
352
|
+
'Saved semantic scenes cannot contain frames or frame membership.');
|
|
353
|
+
if (element.type === 'image' && (mapping?.kind !== 'node' || mapping.role !== 'icon-image' || !active(element))) {
|
|
354
|
+
report('UNKNOWN_MAPPING', element, 'An image must occupy an active canonical node icon slot.');
|
|
355
|
+
}
|
|
356
|
+
if (mapping?.kind === 'page' && !active(element) && !protectedParts.has(element.id)) continue;
|
|
357
|
+
if (policy.presentationChanged) {
|
|
358
|
+
report('SCENE_PRESENTATION_CHANGED', element, 'The native presentation marker belongs only to a node shape.');
|
|
359
|
+
}
|
|
360
|
+
for (const groupId of Array.isArray(element.groupIds) ? element.groupIds : []) {
|
|
361
|
+
if (guideGroups.has(groupId) && !guideById.get(element.id)?.groupIds?.includes(groupId)) {
|
|
362
|
+
report('GUIDE_GROUP_CHANGED', element, 'A canonical reading-guide group contains an unrelated element.');
|
|
363
|
+
}
|
|
364
|
+
const ownerId = canonicalGroups.get(groupId);
|
|
365
|
+
if (ownerId !== undefined && (!mapping || mapping.kind !== 'node' || mapping.semanticId !== ownerId)) {
|
|
366
|
+
report('NODE_GROUP_CHANGED', element, 'A canonical node group contains an element that does not belong to that node.');
|
|
367
|
+
}
|
|
368
|
+
const edgeId = canonicalEdgeGroups.get(groupId);
|
|
369
|
+
if (edgeId !== undefined && (!mapping || mapping.kind !== 'edge' || mapping.semanticId !== edgeId)) {
|
|
370
|
+
report('EDGE_GROUP_CHANGED', element, 'A canonical relation group contains an element that does not belong to that relation.');
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
if (policy.malformedBinding) {
|
|
374
|
+
report('MALFORMED_BINDING', element, 'Bound elements must contain only valid text or arrow references.');
|
|
375
|
+
}
|
|
376
|
+
if (!mapping) {
|
|
377
|
+
if (!active(element)) continue;
|
|
378
|
+
const guide = policy.canonicalGuide;
|
|
379
|
+
const protectedPart = protectedParts.get(element.id);
|
|
380
|
+
if (protectedPart?.mapped) report('PAGE_MAPPING_CHANGED', element, `Protected ${protectedPart.role} must retain its exact canonical mapping.`);
|
|
381
|
+
if (policy.canonicalPart) continue;
|
|
382
|
+
if (policy.unknownGuide) {
|
|
383
|
+
report('UNKNOWN_GUIDE_ELEMENT', element, 'The saved scene contains an element outside the canonical reading guide.');
|
|
384
|
+
}
|
|
385
|
+
if (policy.bound) {
|
|
386
|
+
report(guide ? 'GUIDE_BINDING_CHANGED' : 'UNSUPPORTED_SEMANTIC_ELEMENT', element,
|
|
387
|
+
guide ? 'Decorative reading-guide elements must remain unbound.' : 'An unmapped annotation cannot bind to canonical semantic elements.');
|
|
388
|
+
}
|
|
389
|
+
if (!guide && !policy.portableType) {
|
|
390
|
+
report('UNSUPPORTED_SEMANTIC_ELEMENT', element, 'Unmapped shapes and arrows are not portable annotations; add canonical mapping or use unbound text, line, or free draw.');
|
|
391
|
+
}
|
|
392
|
+
continue;
|
|
393
|
+
}
|
|
394
|
+
const pagePart = mapping.kind === 'page' ? protectedParts.get(element.id) : null;
|
|
395
|
+
const allowedRoles = mapping.kind === 'node' ? NODE_ROLES : mapping.kind === 'edge' ? EDGE_ROLES
|
|
396
|
+
: mapping.kind === 'page' && pagePart ? new Set([pagePart.role]) : null;
|
|
397
|
+
const target = mapping.kind === 'node' ? nodes.get(mapping.semanticId) : mapping.kind === 'edge' ? edges.get(mapping.semanticId) : pagePart;
|
|
398
|
+
const expectedRole = mapping.kind === 'node' ? nodeParts.get(mapping.semanticId)?.has(mapping.role)
|
|
399
|
+
: mapping.kind === 'page' ? pagePart?.semanticId === mapping.semanticId && pagePart.role === mapping.role : allowedRoles?.has(mapping.role);
|
|
400
|
+
const exact = mapping && typeof mapping === 'object' && !Array.isArray(mapping)
|
|
401
|
+
&& Object.keys(mapping).sort().join(',') === MAPPING_KEYS.join(',')
|
|
402
|
+
&& mapping.version === mappingVersion && mapping.modelId === model.id;
|
|
403
|
+
if (!exact || !target || !allowedRoles?.has(mapping.role) || !expectedRole) {
|
|
404
|
+
report('UNKNOWN_MAPPING', element, 'The element has an unknown, incomplete, or cross-view semantic mapping. Evidence and semantic roles must come from the canonical model.');
|
|
405
|
+
continue;
|
|
406
|
+
}
|
|
407
|
+
if (mapping.kind !== 'page' && element.id !== semanticElementId(mapping.kind, mapping.semanticId, mapping.role)) {
|
|
408
|
+
report('IDENTITY_CHANGED', element, 'A mapped primitive must retain the canonical ID for its semantic object and role.');
|
|
409
|
+
}
|
|
410
|
+
const key = mappingKey(mapping);
|
|
411
|
+
if (mappedByKey.has(key)) report('DUPLICATE_MAPPING', element, `Semantic mapping ${mapping.kind}:${mapping.semanticId}:${mapping.role} occurs more than once.`);
|
|
412
|
+
else mappedByKey.set(key, element);
|
|
413
|
+
mappingByElementId.set(element.id, mapping);
|
|
414
|
+
if (!active(element)) report('DELETED_MAPPING', element, 'Mapped semantic elements must remain active.');
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
for (const expected of guideReferences) {
|
|
418
|
+
const actual = byId.get(expected.id);
|
|
419
|
+
if (!active(actual)) {
|
|
420
|
+
report('MISSING_GUIDE_ELEMENT', actual, 'A canonical reading-guide element was removed.');
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
const guideAdmission = inspectCanonicalGuide(model, actual, expected, {
|
|
424
|
+
template,
|
|
425
|
+
guideWidth,
|
|
426
|
+
sourceDescription,
|
|
427
|
+
guideLanguage,
|
|
428
|
+
actualElements: byId,
|
|
429
|
+
guideElements: guideById,
|
|
430
|
+
});
|
|
431
|
+
if (guideAdmission.mappingChanged || guideAdmission.typeChanged) {
|
|
432
|
+
report('GUIDE_TYPE_CHANGED', actual, 'A canonical reading-guide element changed type or acquired semantic mapping.');
|
|
433
|
+
continue;
|
|
434
|
+
}
|
|
435
|
+
if (!validGeometry(actual)) {
|
|
436
|
+
report('INVALID_GEOMETRY', actual, 'Reading-guide geometry must include finite coordinates, dimensions, and angle.');
|
|
437
|
+
}
|
|
438
|
+
if (guideAdmission.groupChanged) report('GUIDE_GROUP_CHANGED', actual, 'A canonical reading-guide element left its group.');
|
|
439
|
+
if (guideAdmission.bound) {
|
|
440
|
+
report('GUIDE_BINDING_CHANGED', actual, 'Reading-guide elements must remain unbound from the semantic graph.');
|
|
441
|
+
}
|
|
442
|
+
if (guideAdmission.archimatePaintChanged) report('GUIDE_SYMBOL_CHANGED', actual, 'The notation key must retain its visible native styling.');
|
|
443
|
+
if (guideAdmission.archimateRoundnessChanged) report('GUIDE_SYMBOL_CHANGED', actual, 'The notation key must retain its square or rounded corner mode.');
|
|
444
|
+
if (guideAdmission.textChanged) report('GUIDE_TEXT_CHANGED', actual, 'The canonical reading-guide text differs from the model.');
|
|
445
|
+
if (expected.type === 'arrow') {
|
|
446
|
+
if (!hasFiniteRoute(actual)) {
|
|
447
|
+
report('INVALID_SCENE', actual, 'Reading-guide arrows require at least two finite two-dimensional route points.');
|
|
448
|
+
} else if (guideAdmission.arrowSymbolChanged || guideAdmission.routeChanged) {
|
|
449
|
+
report('GUIDE_SYMBOL_CHANGED', actual, 'The reading guide must retain its declared relation symbol and route.');
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
if (guideAdmission.associationChanged) report('GUIDE_ASSOCIATION_CHANGED', actual, 'A reading-guide label must stay beside its own sample.');
|
|
453
|
+
if (guideAdmission.glyphChanged) report('GUIDE_SYMBOL_CHANGED', actual, 'A reading-guide glyph must retain its grouped topology.');
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
const mapped = (kind, id, role) => mappedByKey.get(`${kind}\u0000${id}\u0000${role}`);
|
|
457
|
+
const paintOrder = new Map(elements.map((element, index) => [element.id, index]));
|
|
458
|
+
const boxesOverlap = (left, right, minimum = 1) => Math.min(left.x + left.width, right.x + right.width) - Math.max(left.x, right.x) > minimum
|
|
459
|
+
&& Math.min(left.y + left.height, right.y + right.height) - Math.max(left.y, right.y) > minimum;
|
|
460
|
+
const nodeTextBackground = text => elements.filter(element => {
|
|
461
|
+
return active(element) && ['rectangle', 'diamond', 'ellipse', 'line', 'freedraw'].includes(element.type)
|
|
462
|
+
&& paintOrder.get(element.id) < paintOrder.get(text.id) && paintedOpaqueFill(element) && containsBox(element, text);
|
|
463
|
+
}).at(-1)?.backgroundColor ?? sceneBackground;
|
|
464
|
+
if (isDiagramPresentationProfile(template.id)) {
|
|
465
|
+
const opaqueCovers = elements.filter(element => active(element) && paintedOpaqueFill(element)
|
|
466
|
+
&& ['rectangle', 'diamond', 'ellipse', 'line', 'freedraw'].includes(element.type));
|
|
467
|
+
for (const element of elements) {
|
|
468
|
+
const owner = element?.customData?.locusMap;
|
|
469
|
+
if (!active(element) || !owner || owner.kind === 'page' && !protectedParts.has(element.id)
|
|
470
|
+
|| owner.kind !== 'page' && ![...NODE_ROLES, ...EDGE_ROLES].includes(owner.role)) continue;
|
|
471
|
+
const cover = opaqueCovers.find(candidate => candidate.id !== element.id
|
|
472
|
+
&& !(owner.kind === 'node' && owner.role === 'shape' && candidate.customData?.locusMap?.role === 'card-outline'
|
|
473
|
+
&& candidate.customData.locusMap.semanticId === owner.semanticId)
|
|
474
|
+
&& paintOrder.get(candidate.id) > paintOrder.get(element.id)
|
|
475
|
+
&& (owner.kind === 'page' && element.type === 'text'
|
|
476
|
+
? boxesOverlap(candidate, { ...element, width: Math.max(1, element.width), height: Math.max(1, element.height) }, 0)
|
|
477
|
+
: containsBox(candidate, element)));
|
|
478
|
+
if (!cover) continue;
|
|
479
|
+
report(owner.kind === 'node' ? 'NODE_PART_HIDDEN' : owner.kind === 'page' ? 'PAGE_PART_HIDDEN'
|
|
480
|
+
: owner.role === 'arrow' ? 'EDGE_HIDDEN' : 'EDGE_LABEL_HIDDEN', element,
|
|
481
|
+
`Protected ${owner.kind} role ${owner.role} is fully painted behind opaque shape ${cover.id}.`);
|
|
482
|
+
}
|
|
483
|
+
for (const [id, part] of protectedParts) {
|
|
484
|
+
if (!part.mapped) continue;
|
|
485
|
+
const element = elements.find(candidate => candidate.id === id);
|
|
486
|
+
if (!active(element)) continue;
|
|
487
|
+
if (element.opacity !== 100 || !effectivelyVisible(element)) report('PAGE_PART_HIDDEN', element, `Protected page role ${part.role} must remain effectively visible.`);
|
|
488
|
+
if (element.type === 'text' && !textContrasts(element, nodeTextBackground(element))) report('PAGE_PART_HIDDEN', element, `Protected page role ${part.role} must visibly contrast with its painted background.`);
|
|
489
|
+
const cover = elements.find(candidate => active(candidate) && candidate.id !== element.id
|
|
490
|
+
&& paintOrder.get(candidate.id) > paintOrder.get(element.id)
|
|
491
|
+
&& ((paintedObscuringFill(candidate) && (element.type === 'text' ? boxesOverlap(candidate, element) : containsBox(candidate, element)))
|
|
492
|
+
|| (element.type === 'text' ? strokeObscuresText(candidate, element) : strokeCoversBox(candidate, element))));
|
|
493
|
+
if (cover) report('PAGE_PART_HIDDEN', element, `Protected page role ${part.role} is painted behind opaque shape or stroke ${cover.id}.`);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
for (const node of model.nodes) {
|
|
497
|
+
const expectedParts = nodeParts.get(node.id);
|
|
498
|
+
const expectedTiers = nativeCardLayout(node, {}, undefined, { template }).tiers;
|
|
499
|
+
const shape = mapped('node', node.id, 'shape');
|
|
500
|
+
const expectedBox = { x: 0, y: 0, ...nodeSize(node, family, false, template) };
|
|
501
|
+
const expectedPaintParts = new Map([...nativeCardGlyphs(node, expectedBox, false, { template }),
|
|
502
|
+
...nativeCardBody(node, expectedBox, { template }), ...nativeCardDecorations(node, expectedBox, { template })]
|
|
503
|
+
.map(part => [part.role, part]));
|
|
504
|
+
if (template.id === ARCHIMATE_PROFILE && active(shape) && shape.roundness?.type !== nativeNodeStyle(node, { template }).roundness?.type) report('NODE_SYMBOL_CHANGED', shape, 'Application notation must retain its square or rounded corner mode.');
|
|
505
|
+
if (!active(shape)) report('MISSING_NODE_OCCURRENCE', shape, `Node ${node.id} needs exactly one active canonical shape occurrence.`);
|
|
506
|
+
if (active(shape) && isDiagramPresentationProfile(template.id) && legendNodes.has(node.id)) {
|
|
507
|
+
const expectedStyle = expectedCardPaint(node, { ...presentationStyle(node.status), ...nativeNodeStyle(node, { template }) });
|
|
508
|
+
if (['strokeColor', 'backgroundColor', 'strokeStyle', 'strokeWidth', 'fillStyle'].some(key => shape[key] !== expectedStyle[key])
|
|
509
|
+
|| shape.opacity !== 100) report('LEGEND_OWNER_STYLE_CHANGED', shape, 'A node referenced by the legend must retain the painted treatment represented by its sample.');
|
|
510
|
+
}
|
|
511
|
+
for (const [role, type] of expectedParts) {
|
|
512
|
+
const element = mapped('node', node.id, role);
|
|
513
|
+
if (!active(element)) {
|
|
514
|
+
if (role !== 'shape') report('MISSING_NODE_PART', element, `Node ${node.id} needs one canonical ${role} mapping.`);
|
|
515
|
+
continue;
|
|
516
|
+
}
|
|
517
|
+
if (template.id === ARCHIMATE_PROFILE && type === 'text') {
|
|
518
|
+
const expectedTier = expectedTiers.find(tier => tier.role === role);
|
|
519
|
+
if (element.opacity !== 100 || element.strokeColor !== expectedTier?.color) report('NODE_TEXT_VISIBILITY_CHANGED', element, 'Notation text and claim status must retain visible canonical styling.');
|
|
520
|
+
}
|
|
521
|
+
if (element.type !== type) report('NODE_TYPE_CHANGED', element, `Node ${node.id} ${role} must remain an Excalidraw ${type}.`);
|
|
522
|
+
if (isDiagramPresentationProfile(template.id)) {
|
|
523
|
+
const expectedPaintPart = legendNodes.has(node.id) && ['card-outline', 'card-cap', 'card-fold'].includes(role)
|
|
524
|
+
? expectedPaintParts.get(role) : null;
|
|
525
|
+
const expectedPaint = expectedPaintPart ? expectedCardPaint(node, { ...presentationStyle(node.status), ...expectedPaintPart }) : null;
|
|
526
|
+
if (expectedPaint && (['strokeColor', 'backgroundColor', 'strokeStyle', 'strokeWidth', 'fillStyle']
|
|
527
|
+
.some(key => (element[key] ?? null) !== (expectedPaint[key] ?? null)) || element.opacity !== 100)) {
|
|
528
|
+
report('LEGEND_OWNER_STYLE_CHANGED', element, 'Every painted native part of a node referenced by the legend must retain the represented treatment.');
|
|
529
|
+
}
|
|
530
|
+
const expectedInvisibleShape = role === 'shape' && (() => {
|
|
531
|
+
const style = nativeNodeStyle(node, { template });
|
|
532
|
+
return colorAlpha(style.strokeColor) === 0 && colorAlpha(style.backgroundColor) === 0;
|
|
533
|
+
})();
|
|
534
|
+
if (mappingVersion === 2 && expectedInvisibleShape && (colorAlpha(element.strokeColor) !== 0 || colorAlpha(element.backgroundColor) !== 0)) {
|
|
535
|
+
report('NODE_SYMBOL_CHANGED', element, 'A composite card must keep its rectangular binding owner transparent.');
|
|
536
|
+
}
|
|
537
|
+
if (element.opacity !== 100 || !expectedInvisibleShape && type !== 'image' && !effectivelyVisible(element)) report('NODE_PART_HIDDEN', element, `Node ${node.id} ${role} must remain effectively visible.`);
|
|
538
|
+
if (type === 'text' && !textContrasts(element, nodeTextBackground(element))) report('NODE_PART_HIDDEN', element, `Node ${node.id} ${role} must remain opaque and visibly contrast with its painted background.`);
|
|
539
|
+
if (role !== 'shape' && active(shape) && opaqueFill(shape) && paintOrder.get(element.id) < paintOrder.get(shape.id) && containsBox(shape, element)) {
|
|
540
|
+
report('NODE_PART_HIDDEN', element, `Node ${node.id} ${role} is painted behind its opaque card shape.`);
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
if (!validGeometry(element) || type === 'text' && (!Number.isFinite(element.fontSize) || element.fontSize <= 0)) {
|
|
544
|
+
report('INVALID_GEOMETRY', element, 'Mapped node geometry and text size must be finite and nonnegative.');
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
const labelRole = 'name';
|
|
548
|
+
const label = mapped('node', node.id, labelRole);
|
|
549
|
+
if (!active(label)) report('MISSING_NODE_LABEL', label, `Node ${node.id} needs one canonical ${labelRole} mapping.`);
|
|
550
|
+
else if (!textMatches(label, node.label)) report('NODE_LABEL_CHANGED', label, 'The saved node label differs from the canonical model.');
|
|
551
|
+
for (const role of TIER_ROLES.filter(role => role !== 'name')) {
|
|
552
|
+
const element = mapped('node', node.id, role);
|
|
553
|
+
const expected = role === 'external' && !['c4-2b', STRUCTURE_PROFILE, SCENARIO_PROFILE].includes(template.id) ? undefined : expectedTiers.find(tier => tier.role === role)?.originalText;
|
|
554
|
+
if (expected !== undefined && !active(element)) report('MISSING_NODE_TEXT', element, `Node ${node.id} is missing its canonical ${role} text.`);
|
|
555
|
+
else if (active(element) && !textMatches(element, expected, { uppercase: legacy && role === 'type', bracket: ((template.id === 'c4-2b' || isTitleFirstProfile(template.id)) && role === 'type') || (template.id === 'c4-reference-v1' && role === 'technology') })) {
|
|
556
|
+
report(role === 'claim' ? 'CLAIM_TEXT_CHANGED' : `NODE_${role.toUpperCase()}_CHANGED`, element, `The saved node ${role} differs from the canonical model.`);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
const groupId = nodeGroupId(node);
|
|
560
|
+
for (const role of expectedParts.keys()) {
|
|
561
|
+
const element = mapped('node', node.id, role);
|
|
562
|
+
if (!active(element)) continue;
|
|
563
|
+
if (!Array.isArray(element.groupIds) || !element.groupIds.includes(groupId)
|
|
564
|
+
|| (node.kind !== 'decision' && (element.groupIds.length !== 1 || element.groupIds[0] !== groupId))) {
|
|
565
|
+
report('NODE_GROUP_CHANGED', element, 'Native node parts must retain their canonical semantic node group.');
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
for (const role of TIER_ROLES) {
|
|
569
|
+
const tier = mapped('node', node.id, role);
|
|
570
|
+
if (!active(tier)) continue;
|
|
571
|
+
if (tier.containerId || tier.startBinding || tier.endBinding || tier.boundElements?.length) {
|
|
572
|
+
report('NODE_TEXT_BINDING_CHANGED', tier, 'Native node text must remain unbound inside its canonical node group.');
|
|
573
|
+
}
|
|
574
|
+
if (active(shape) && !containsBox(shape, tier)) {
|
|
575
|
+
report('TEXT_OWNERSHIP_CHANGED', tier, 'A native text tier is outside its canonical node owner.');
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
if (isTitleFirstProfile(template.id) && active(shape)) {
|
|
579
|
+
// A short badge can share the title line. All metadata rows follow the title.
|
|
580
|
+
const rows = expectedTiers.filter(tier => tier.role !== 'badge')
|
|
581
|
+
.map(tier => mapped('node', node.id, tier.role)).filter(active).map(tier => localTierBounds(shape, tier));
|
|
582
|
+
if (rows.some((row, index) => index > 0 && rows[index - 1].bottom > row.top + 0.01)) {
|
|
583
|
+
report('NATIVE_ANATOMY_CHANGED', shape, 'The title and metadata rows must remain separate and retain their profile order.');
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
if ([STRUCTURE_PROFILE, SCENARIO_PROFILE].includes(template.id) && active(shape)) {
|
|
587
|
+
const tiers = expectedTiers.map(tier => mapped('node', node.id, tier.role));
|
|
588
|
+
if (tiers.every(active) && (tiers.some((tier, index) => index > 0 && localTierY(shape, tiers[index - 1]) >= localTierY(shape, tier))
|
|
589
|
+
|| tiers.slice(1).some(tier => tier.fontSize >= tiers[0].fontSize))) {
|
|
590
|
+
report('NATIVE_ANATOMY_CHANGED', shape, 'The compact card requires a stronger name above responsibility and optional type/status rows.');
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
const anatomy = (legacy ? ['type', 'name', 'responsibility'] : template.id === 'c4-2b' ? ['name', 'type', 'responsibility'] : ['name', 'responsibility', 'type']).map(role => mapped('node', node.id, role));
|
|
594
|
+
if (![STRUCTURE_PROFILE, SCENARIO_PROFILE].includes(template.id) && !isDiagramPresentationProfile(template.id) && active(shape) && anatomy.every(active)
|
|
595
|
+
&& (!(localTierY(shape, anatomy[0]) < localTierY(shape, anatomy[1])
|
|
596
|
+
&& localTierY(shape, anatomy[1]) < localTierY(shape, anatomy[2]))
|
|
597
|
+
|| mapped('node', node.id, 'name').fontSize <= mapped('node', node.id, 'type').fontSize)) {
|
|
598
|
+
report('NATIVE_ANATOMY_CHANGED', shape, legacy
|
|
599
|
+
? 'The saved pre-E2 card must retain type eyebrow → stronger name → responsibility.'
|
|
600
|
+
: 'The saved card must retain its template-specific name, type and responsibility order.');
|
|
601
|
+
}
|
|
602
|
+
for (const role of ICON_ROLES) {
|
|
603
|
+
const icon = mapped('node', node.id, role);
|
|
604
|
+
if (active(icon)) {
|
|
605
|
+
if (icon.containerId || icon.startBinding || icon.endBinding || icon.boundElements?.length
|
|
606
|
+
|| icon.startArrowhead || icon.endArrowhead) {
|
|
607
|
+
report('ICON_BINDING_CHANGED', icon, 'Native role glyph parts must remain unbound node-group primitives.');
|
|
608
|
+
}
|
|
609
|
+
const reference = glyphReferences.get(node.id);
|
|
610
|
+
const wanted = reference?.parts.get(role);
|
|
611
|
+
if (template.id === ARCHIMATE_PROFILE && (icon.opacity !== 100 || icon.strokeStyle !== 'solid' || icon.strokeColor !== wanted?.strokeColor || icon.backgroundColor !== wanted?.backgroundColor || icon.strokeWidth !== wanted?.strokeWidth || icon.roundness?.type !== wanted?.roundness?.type)) report('ICON_SYMBOL_CHANGED', icon, 'Notation glyph parts must retain visible native styling.');
|
|
612
|
+
if (role === 'icon-image' && (icon.fileId !== wanted?.fileId || icon.groupIds?.length !== 1
|
|
613
|
+
|| icon.status !== 'saved' || icon.crop != null || icon.scale?.[0] !== 1 || icon.scale?.[1] !== 1)) {
|
|
614
|
+
report('ICON_CHANGED', icon, 'The image must preserve its canonical catalog reference and orientation.');
|
|
615
|
+
}
|
|
616
|
+
if (!sameCardGlyphPart(icon, wanted, shape, reference?.owner)) {
|
|
617
|
+
report('ICON_GEOMETRY_CHANGED', icon, 'Native role glyph parts must retain their family topology and position inside the card icon slot. Move or proportionally resize the whole node group.');
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
if (active(shape) && shape.boundElements?.some(item => validBoundElement(item) && item.type === 'text')) {
|
|
622
|
+
report('NODE_TEXT_BINDING_CHANGED', shape, 'Tiered native nodes do not use a bound node label.');
|
|
623
|
+
}
|
|
624
|
+
const endpointRole = model.layout?.family === 'sequence' ? 'lifeline' : 'shape';
|
|
625
|
+
const endpoint = mapped('node', node.id, endpointRole);
|
|
626
|
+
const expectedArrows = [...new Set(model.edges.filter(edge => edge.from === node.id || edge.to === node.id)
|
|
627
|
+
.map(edge => mapped('edge', edge.id, 'arrow')).filter(active).map(arrow => arrow.id))]
|
|
628
|
+
.map(id => ({ id, type: 'arrow' }));
|
|
629
|
+
if (active(endpoint)) {
|
|
630
|
+
if (!hasExactBindings(endpoint, expectedArrows) || endpoint.containerId || endpoint.startBinding || endpoint.endBinding) {
|
|
631
|
+
report('NODE_BINDING_CHANGED', endpoint, 'A canonical node endpoint must contain exactly its model-defined label and relation bindings.');
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
if (endpointRole === 'lifeline' && active(shape)) {
|
|
635
|
+
if (!hasExactBindings(shape, []) || shape.containerId || shape.startBinding || shape.endBinding) {
|
|
636
|
+
report('NODE_BINDING_CHANGED', shape, 'A sequence participant shape must remain separate from its lifeline relation bindings.');
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
for (const edge of model.edges) {
|
|
642
|
+
const arrow = mapped('edge', edge.id, 'arrow');
|
|
643
|
+
const label = mapped('edge', edge.id, 'label');
|
|
644
|
+
const labelMask = mapped('edge', edge.id, 'label-mask');
|
|
645
|
+
const diagramProfile = isDiagramPresentationProfile(model.presentationProfile);
|
|
646
|
+
if (!active(arrow)) {
|
|
647
|
+
report('MISSING_EDGE_OCCURRENCE', arrow, `Edge ${edge.id} needs exactly one active canonical arrow occurrence.`);
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
if (arrow.type !== 'arrow') report('EDGE_TYPE_CHANGED', arrow, 'A canonical relation occurrence must remain an arrow.');
|
|
651
|
+
if (!validGeometry(arrow) || !Array.isArray(arrow.points) || arrow.points.length < 2
|
|
652
|
+
|| diagramProfile && arrow.points.length > 256
|
|
653
|
+
|| arrow.points.some(point => !Array.isArray(point) || point.length !== 2 || !point.every(Number.isFinite))) {
|
|
654
|
+
report('INVALID_GEOMETRY', arrow, 'Mapped arrows need finite Excalidraw geometry and at least two route points.');
|
|
655
|
+
}
|
|
656
|
+
const start = mappingByElementId.get(arrow.startBinding?.elementId);
|
|
657
|
+
const end = mappingByElementId.get(arrow.endBinding?.elementId);
|
|
658
|
+
const endpointRole = model.layout?.family === 'sequence' ? 'lifeline' : 'shape';
|
|
659
|
+
if (start?.kind !== 'node' || start.semanticId !== edge.from || start.role !== endpointRole
|
|
660
|
+
|| end?.kind !== 'node' || end.semanticId !== edge.to || end.role !== endpointRole) {
|
|
661
|
+
report('EDGE_BINDING_CHANGED', arrow, 'The saved arrow bindings no longer run from the canonical source to the canonical target.');
|
|
662
|
+
} else {
|
|
663
|
+
for (const endpointId of [arrow.startBinding.elementId, arrow.endBinding.elementId]) {
|
|
664
|
+
const endpoint = byId.get(endpointId);
|
|
665
|
+
if (!active(endpoint) || !endpoint.boundElements?.some(item => validBoundElement(item) && item.type === 'arrow' && item.id === arrow.id)) {
|
|
666
|
+
report('EDGE_BINDING_CHANGED', arrow, 'A canonical endpoint no longer contains the reciprocal arrow binding.');
|
|
667
|
+
break;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
const expectedStyle = nativeEdgeStyle(edge, model);
|
|
672
|
+
const expectedArrowhead = expectedStyle.endArrowhead;
|
|
673
|
+
if (model.presentationProfile === ARCHIMATE_PROFILE && (arrow.strokeStyle !== expectedStyle.strokeStyle || arrow.opacity !== 100 || arrow.strokeWidth !== expectedStyle.strokeWidth || arrow.strokeColor !== expectedStyle.strokeColor)) report('RELATION_SYMBOL_CHANGED', arrow, 'The relationship stroke pattern differs from its explicit notation.');
|
|
674
|
+
if (arrow.startArrowhead != null || arrow.endArrowhead !== expectedArrowhead) {
|
|
675
|
+
report(arrow.startArrowhead == null && arrow.endArrowhead != null ? 'RELATION_SYMBOL_CHANGED' : 'EDGE_DIRECTION_CHANGED', arrow,
|
|
676
|
+
`A relation must retain exactly one ${expectedArrowhead} arrowhead at its canonical target.`);
|
|
677
|
+
}
|
|
678
|
+
if (diagramProfile) {
|
|
679
|
+
if ((isModernProfile(model.presentationProfile) || legendReferencedRelationIds(model).has(edge.id))
|
|
680
|
+
&& (['strokeStyle', 'strokeColor', 'strokeWidth'].some(key => arrow[key] !== expectedStyle[key]) || arrow.opacity !== 100)) {
|
|
681
|
+
report('LEGEND_OWNER_STYLE_CHANGED', arrow, 'The relation must retain its authored stroke treatment.');
|
|
682
|
+
}
|
|
683
|
+
if (arrow.opacity !== 100 || !visibleStroke(arrow)) report('EDGE_HIDDEN', arrow, 'A diagram relation arrow must remain effectively visible.');
|
|
684
|
+
if (arrow.angle !== 0) report('EDGE_DIRECTION_CHANGED', arrow, 'Diagram relation arrows must remain unrotated so painted direction matches semantic direction.');
|
|
685
|
+
// Draw admission owns the declared shape and all painted-path measurements.
|
|
686
|
+
const groupId = edgeGroupId(edge), expected = relationLabelText(model, edge), visible = Boolean(expected);
|
|
687
|
+
if (!Array.isArray(arrow.groupIds) || arrow.groupIds.length !== 1 || arrow.groupIds[0] !== groupId) report('EDGE_GROUP_CHANGED', arrow, 'The relation arrow must retain its canonical relation group.');
|
|
688
|
+
if (hasFiniteRoute(arrow) && arrow.points.length <= 256 && arrow.angle === 0) {
|
|
689
|
+
const sourceShape = mapped('node', edge.from, endpointRole), targetShape = mapped('node', edge.to, endpointRole);
|
|
690
|
+
if (active(sourceShape) && active(targetShape) && sourceShape.angle === 0 && targetShape.angle === 0) {
|
|
691
|
+
} else report('EDGE_DIRECTION_CHANGED', arrow, 'Diagram relation endpoint association requires active unrotated endpoint cards.');
|
|
692
|
+
}
|
|
693
|
+
const anchor = arrow.customData?.locusMapLabelAnchor;
|
|
694
|
+
const validAnchor = anchor && Number.isFinite(anchor.at) && anchor.at >= 0.1 && anchor.at <= 0.9
|
|
695
|
+
&& ['above', 'below', 'left', 'right'].includes(anchor.side) && Number.isFinite(anchor.gap) && anchor.gap >= 8 && anchor.gap <= 24;
|
|
696
|
+
if (visible && !validAnchor) {
|
|
697
|
+
report('EDGE_LABEL_ANCHOR_CHANGED', arrow, 'A visible diagram relation needs a valid persisted label anchor.');
|
|
698
|
+
}
|
|
699
|
+
if (!visible) {
|
|
700
|
+
if (active(label) || active(labelMask)) report('UNEXPECTED_EDGE_LABEL', active(label) ? label : labelMask, 'A hidden-label relation must not contain label or label-mask mappings.');
|
|
701
|
+
} else if (!active(label) || !active(labelMask)) {
|
|
702
|
+
report('MISSING_EDGE_LABEL', active(label) ? labelMask : label, `Edge ${edge.id} needs canonical label and label-mask mappings.`);
|
|
703
|
+
} else {
|
|
704
|
+
if (label.type !== 'text' || labelMask.type !== 'rectangle') report('EDGE_LABEL_TYPE_CHANGED', label, 'A diagram relation label needs text over its rectangle mask.');
|
|
705
|
+
if (!validGeometry(label) || !validGeometry(labelMask) || !Number.isFinite(label.fontSize) || label.fontSize <= 0) report('INVALID_GEOMETRY', label, 'Mapped relation-label geometry and text size must be finite.');
|
|
706
|
+
const wrappedCopy = typeof label.text === 'string' && !expected.includes('\n')
|
|
707
|
+
&& label.text.split('\n').length <= 3 && label.text.replaceAll('\n', ' ') === expected;
|
|
708
|
+
if (!textMatches(label, expected) && !(wrappedCopy && label.originalText === label.text)) report('EDGE_LABEL_CHANGED', label, 'The saved relation label differs from the canonical canvas copy.');
|
|
709
|
+
if (!textContrasts(label, labelMask.backgroundColor)) report('EDGE_LABEL_HIDDEN', label, 'Visible relation label text must remain opaque and visibly contrast with its mask.');
|
|
710
|
+
if (labelMask.opacity !== 100 || labelMask.angle !== 0 || !opaqueFill(labelMask)) report('EDGE_LABEL_MASK_CHANGED', labelMask, 'The relation label mask must remain unrotated with an opaque solid fill.');
|
|
711
|
+
for (const part of [arrow, labelMask, label]) if (!Array.isArray(part.groupIds) || part.groupIds.length !== 1 || part.groupIds[0] !== groupId) report('EDGE_GROUP_CHANGED', part, 'Relation arrow, mask and label must retain one canonical group.');
|
|
712
|
+
if (label.containerId || label.startBinding || label.endBinding || label.boundElements?.length
|
|
713
|
+
|| labelMask.containerId || labelMask.startBinding || labelMask.endBinding || labelMask.boundElements?.length
|
|
714
|
+
|| arrow.boundElements?.some(item => item.type === 'text')) report('EDGE_LABEL_BINDING_CHANGED', label, 'Diagram relation labels are grouped and unbound.');
|
|
715
|
+
if (label.angle !== 0 || !(labelMask.x <= label.x - 3 && labelMask.y <= label.y - 3
|
|
716
|
+
&& labelMask.x + labelMask.width >= label.x + label.width + 3
|
|
717
|
+
&& labelMask.y + labelMask.height >= label.y + label.height + 3)) report('EDGE_LABEL_MASK_CHANGED', labelMask, 'The relation label mask must cover its label with the required clearance.');
|
|
718
|
+
if (paintOrder.get(labelMask.id) >= paintOrder.get(label.id)) report('EDGE_LABEL_HIDDEN', label, 'The opaque relation label mask must be painted before its label text.');
|
|
719
|
+
for (const node of model.nodes) {
|
|
720
|
+
const cover = mapped('node', node.id, 'shape');
|
|
721
|
+
if (active(cover) && opaqueFill(cover) && paintOrder.get(cover.id) > paintOrder.get(label.id) && containsBox(cover, label)) report('EDGE_LABEL_HIDDEN', label, `The relation label is painted behind opaque node ${node.id}.`);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
}
|
|
725
|
+
} else if (!active(label)) report('MISSING_EDGE_LABEL', label, `Edge ${edge.id} needs one canonical label mapping.`);
|
|
726
|
+
else {
|
|
727
|
+
if (template.id === ARCHIMATE_PROFILE && (label.opacity !== 100 || label.strokeColor !== expectedStyle.strokeColor)) report('EDGE_TEXT_VISIBILITY_CHANGED', label, 'The action, guard and status label must retain visible canonical styling.');
|
|
728
|
+
if (label.type !== 'text') report('EDGE_LABEL_TYPE_CHANGED', label, 'A canonical relation label must remain Excalidraw text.');
|
|
729
|
+
if (!validGeometry(label) || !Number.isFinite(label.fontSize) || label.fontSize <= 0) {
|
|
730
|
+
report('INVALID_GEOMETRY', label, 'Mapped relation-label geometry and text size must be finite.');
|
|
731
|
+
}
|
|
732
|
+
const expected = resolveEdgeAuthoredText(model, edge);
|
|
733
|
+
const legacyEdge = hasEdgeCues(model)
|
|
734
|
+
? { ...edge, condition: model.layout.edgeCues.entries[edge.id]?.cue ?? edge.condition }
|
|
735
|
+
: edge;
|
|
736
|
+
const legacyOriginalText = legacyCe6cadaOriginalText(
|
|
737
|
+
edgeLabel(legacyEdge, family), family === 'sequence' ? 42 : 28,
|
|
738
|
+
);
|
|
739
|
+
const matches = textMatches(label, expected, {
|
|
740
|
+
legacyOriginalText,
|
|
741
|
+
...(hasEdgeCues(model) ? { cueModel: model, edge } : {}),
|
|
742
|
+
});
|
|
743
|
+
if (!matches) report(edgeTextDiagnostic(edge, label), label, 'The saved relation label, condition, or sequence number differs from the canonical model.');
|
|
744
|
+
if (label.containerId !== arrow.id || !hasExactBindings(arrow, [{ id: label.id, type: 'text' }])
|
|
745
|
+
|| label.boundElements?.length || label.startBinding || label.endBinding) {
|
|
746
|
+
report('EDGE_LABEL_BINDING_CHANGED', label, 'The canonical relation label is no longer bound to its arrow.');
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (model.layout?.family === 'component') {
|
|
752
|
+
for (const edge of model.edges.filter(candidate => candidate.kind === 'contains')) {
|
|
753
|
+
const parent = mapped('node', edge.from, 'shape');
|
|
754
|
+
const child = mapped('node', edge.to, 'shape');
|
|
755
|
+
if (active(parent) && active(child) && !containsBox(parent, child)) report('CONTAINMENT_CHANGED', child, 'The component is outside its model-defined owner boundary.');
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
if (model.layout?.family === 'sequence') {
|
|
759
|
+
let previous = -Infinity;
|
|
760
|
+
for (const edge of [...model.edges].sort((left, right) => left.order - right.order)) {
|
|
761
|
+
const arrow = mapped('edge', edge.id, 'arrow');
|
|
762
|
+
if (!active(arrow)) continue;
|
|
763
|
+
if (arrow.angle !== 0) {
|
|
764
|
+
report('SEQUENCE_ROTATION_UNSUPPORTED', arrow, 'Sequence messages must remain unrotated so execution order is unambiguous.');
|
|
765
|
+
continue;
|
|
766
|
+
}
|
|
767
|
+
const y = firstPointY(arrow);
|
|
768
|
+
if (!Number.isFinite(y) || y <= previous) report('SEQUENCE_ORDER_CHANGED', arrow, 'Message rows must preserve canonical execution order.');
|
|
769
|
+
previous = y;
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
const baselineElements = baselineScene === undefined ? null : elementsOf(baselineScene);
|
|
774
|
+
if (baselineScene !== undefined && !Array.isArray(baselineElements)) {
|
|
775
|
+
report('INVALID_BASELINE_SCENE', null, 'The admitted live-edit baseline is not an Excalidraw scene.');
|
|
776
|
+
} else if (baselineElements) {
|
|
777
|
+
const baseline = mappingIndex(baselineElements);
|
|
778
|
+
const baselineById = new Map(baselineElements.map(element => [element.id, element]));
|
|
779
|
+
const baselineGuides = baselineElements.filter(element => active(element) && isGuideElement(model, element));
|
|
780
|
+
const guideGroups = new Set(baselineGuides.flatMap(element => element.groupIds || []));
|
|
781
|
+
for (const element of elements.filter(active)) {
|
|
782
|
+
for (const groupId of Array.isArray(element.groupIds) ? element.groupIds : []) {
|
|
783
|
+
if (guideGroups.has(groupId) && !baselineById.get(element.id)?.groupIds?.includes(groupId)) {
|
|
784
|
+
report('GUIDE_GROUP_CHANGED', element, 'An admitted reading-guide group contains an unrelated element.');
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
if (isGuideElement(model, element) && !baselineById.has(element.id) && !PORTABLE_ANNOTATION_TYPES.has(element.type)) {
|
|
788
|
+
report('UNSUPPORTED_SEMANTIC_ELEMENT', element, 'Live edits cannot add structural reading-guide shapes outside the admitted guide.');
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
for (const previous of baselineGuides) {
|
|
792
|
+
const actual = byId.get(previous.id);
|
|
793
|
+
if (!active(actual)) {
|
|
794
|
+
report('MISSING_GUIDE_ELEMENT', actual, 'An admitted reading-guide element was removed.');
|
|
795
|
+
continue;
|
|
796
|
+
}
|
|
797
|
+
if (actual.customData?.locusMap || actual.type !== previous.type) {
|
|
798
|
+
report('GUIDE_TYPE_CHANGED', actual, 'An admitted reading-guide element changed type or acquired semantic mapping.');
|
|
799
|
+
}
|
|
800
|
+
for (const groupId of previous.groupIds || []) {
|
|
801
|
+
if (!actual.groupIds?.includes(groupId)) report('GUIDE_GROUP_CHANGED', actual, 'An admitted reading-guide element left its guide group.');
|
|
802
|
+
}
|
|
803
|
+
if (actual.containerId || actual.startBinding || actual.endBinding || actual.boundElements?.length) {
|
|
804
|
+
report('GUIDE_BINDING_CHANGED', actual, 'Reading-guide elements must remain unbound from the semantic graph.');
|
|
805
|
+
}
|
|
806
|
+
if (previous.type === 'text'
|
|
807
|
+
&& (actual.originalText !== previous.originalText || compact(actual.text) !== compact(previous.text))) {
|
|
808
|
+
report('GUIDE_TEXT_CHANGED', actual, 'Live edits must preserve the admitted reading-guide text; native line reflow may vary.');
|
|
809
|
+
}
|
|
810
|
+
if (previous.type === 'arrow'
|
|
811
|
+
&& (actual.startArrowhead !== previous.startArrowhead || actual.endArrowhead !== previous.endArrowhead)) {
|
|
812
|
+
report('GUIDE_SYMBOL_CHANGED', actual, 'Live edits must preserve the admitted reading-guide relation symbol.');
|
|
813
|
+
}
|
|
814
|
+
if (previous.type === 'text' && previous.id.endsWith(':label')) {
|
|
815
|
+
const sampleId = `${previous.id.slice(0, -':label'.length)}:sample`;
|
|
816
|
+
if (!sameKeyLabelAnchor(actual, previous, byId.get(sampleId), baselineById.get(sampleId))) {
|
|
817
|
+
report('GUIDE_ASSOCIATION_CHANGED', actual, 'A reading-guide label must stay with its admitted sample.');
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
if (ICON_ROLES.includes(previous.id.split(':').at(-1))) {
|
|
821
|
+
const ownerId = `${previous.id.slice(0, previous.id.lastIndexOf(':'))}:sample`;
|
|
822
|
+
if (!sameGlyphPart(actual, previous, byId.get(ownerId), baselineById.get(ownerId))) {
|
|
823
|
+
report('GUIDE_SYMBOL_CHANGED', actual, 'An admitted reading-guide glyph must preserve its grouped topology.');
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
for (const node of model.nodes) {
|
|
828
|
+
const owner = mapped('node', node.id, 'shape');
|
|
829
|
+
const previousOwner = baseline.get(`node\u0000${node.id}\u0000shape`);
|
|
830
|
+
for (const role of ICON_ROLES) {
|
|
831
|
+
const actual = mapped('node', node.id, role);
|
|
832
|
+
const previous = baseline.get(`node\u0000${node.id}\u0000${role}`);
|
|
833
|
+
if (!active(actual) || !active(previous) || !active(owner) || !active(previousOwner)) continue;
|
|
834
|
+
if (!sameCardGlyphPart(actual, previous, owner, previousOwner)) {
|
|
835
|
+
report('ICON_GEOMETRY_CHANGED', actual, 'Live edits must preserve the admitted role glyph topology and its position under whole-node movement or proportional scaling.');
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
const tiers = TIER_ROLES.map(role => [role, mapped('node', node.id, role), baseline.get(`node\u0000${node.id}\u0000${role}`)])
|
|
839
|
+
.filter(([, actual, previous]) => active(actual) && active(previous) && active(owner) && active(previousOwner));
|
|
840
|
+
for (let left = 0; left < tiers.length; left++) {
|
|
841
|
+
for (let right = left + 1; right < tiers.length; right++) {
|
|
842
|
+
const [, actualLeft, previousLeft] = tiers[left];
|
|
843
|
+
const [, actualRight, previousRight] = tiers[right];
|
|
844
|
+
const before = Math.sign(localTierY(previousOwner, previousLeft) - localTierY(previousOwner, previousRight));
|
|
845
|
+
const after = Math.sign(localTierY(owner, actualLeft) - localTierY(owner, actualRight));
|
|
846
|
+
if (before !== after) report('NATIVE_ANATOMY_CHANGED', owner, 'Live edits must preserve the admitted order of native text tiers.');
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
const actualType = mapped('node', node.id, 'type'), actualName = mapped('node', node.id, 'name');
|
|
850
|
+
const previousType = baseline.get(`node\u0000${node.id}\u0000type`), previousName = baseline.get(`node\u0000${node.id}\u0000name`);
|
|
851
|
+
if ([actualType, actualName, previousType, previousName].every(active)
|
|
852
|
+
&& Math.sign(actualName.fontSize - actualType.fontSize) !== Math.sign(previousName.fontSize - previousType.fontSize)) {
|
|
853
|
+
report('NATIVE_ANATOMY_CHANGED', owner, 'Live edits must preserve the admitted native text-size hierarchy.');
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
if (hasEdgeCues(model)) diagnostics.push(...inspectCueLayout(model, sceneOrElements).diagnostics);
|
|
858
|
+
const valid = diagnostics.every(diagnostic => diagnostic.severity === 'warning');
|
|
859
|
+
return { valid, diagnostics, ...(includeGeometry && valid ? {presentationGeometry:geometryInspection.verifiedGeometry,saveGeometry:geometryInspection.saveGeometry} : {}) };
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/** Rewrite only already-admitted authored text to the current canonical form.
|
|
863
|
+
* The caller owns a detached save snapshot; element geometry is untouched. */
|
|
864
|
+
export function normalizeSavedAuthoredText(model, scene, { sourceDescription } = {}) {
|
|
865
|
+
requireCueAdmission(model);
|
|
866
|
+
const template = sceneCardTemplate(scene);
|
|
867
|
+
const edges = new Map(model.edges.map(edge => [edge.id, edge]));
|
|
868
|
+
for (const element of elementsOf(scene) || []) {
|
|
869
|
+
const mapping = element?.customData?.locusMap;
|
|
870
|
+
if (element?.type === 'text' && mapping?.kind === 'edge' && mapping.role === 'label') {
|
|
871
|
+
const edge = edges.get(mapping.semanticId);
|
|
872
|
+
// Native reflow reads originalText. Preserve admitted diagram line breaks in the scene.
|
|
873
|
+
if (edge) element.originalText = isDiagramPresentationProfile(model.presentationProfile)
|
|
874
|
+
? element.text : resolveEdgeDisplay(model, edge);
|
|
875
|
+
} else if (element?.type === 'text' && mapping?.kind === 'page') {
|
|
876
|
+
const part = protectedSceneParts(model).get(element.id);
|
|
877
|
+
if (part?.text !== undefined) element.originalText = part.text;
|
|
878
|
+
} else if (element?.type === 'text' && !mapping && isGuideElement(model, element)) {
|
|
879
|
+
const source = guideTextSource(model, element.id, { template, sourceDescription });
|
|
880
|
+
if (source !== undefined) element.originalText = source;
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
return scene;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
/** Resolve cards only after the saved-scene semantic gate succeeds. */
|
|
887
|
+
export function resolveSavedSemanticSelection(model, sceneOrElements, selectedIds, options) {
|
|
888
|
+
const result = inspectSavedSemanticScene(model, sceneOrElements, options);
|
|
889
|
+
if (!result.valid) return { ...result, nodeIds: [], edgeIds: [] };
|
|
890
|
+
const ids = new Set(Array.isArray(selectedIds) || selectedIds instanceof Set
|
|
891
|
+
? selectedIds
|
|
892
|
+
: Object.keys(selectedIds || {}).filter(id => selectedIds[id]));
|
|
893
|
+
const nodeIds = new Set(), edgeIds = new Set();
|
|
894
|
+
for (const element of elementsOf(sceneOrElements)) {
|
|
895
|
+
if (!active(element) || !ids.has(element.id)) continue;
|
|
896
|
+
const mapping = element.customData?.locusMap;
|
|
897
|
+
if (mapping?.kind === 'node') nodeIds.add(mapping.semanticId);
|
|
898
|
+
if (mapping?.kind === 'edge') edgeIds.add(mapping.semanticId);
|
|
899
|
+
}
|
|
900
|
+
return { ...result, nodeIds: [...nodeIds].sort(), edgeIds: [...edgeIds].sort() };
|
|
901
|
+
}
|