@locus-forge/locus-map 0.1.0 → 0.2.2-dev.20261206.g5e970d2

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.
Files changed (277) hide show
  1. package/CONTRIBUTING.md +2 -2
  2. package/README.md +35 -10
  3. package/THIRD_PARTY_NOTICES.md +3 -1
  4. package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  5. package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  6. package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  7. package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  8. package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  9. package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  10. package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  11. package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  12. package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  13. package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  14. package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  15. package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  16. package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  17. package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  18. package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  19. package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  20. package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  21. package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  22. package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  23. package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  24. package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  25. package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  26. package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  27. package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  28. package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  29. package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  30. package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  31. package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  32. package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  33. package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  34. package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  35. package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  36. package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  37. package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  38. package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  39. package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  40. package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  41. package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  42. package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  43. package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  44. package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  45. package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  46. package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  47. package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  48. package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  49. package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  50. package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  51. package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  52. package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  53. package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  54. package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  55. package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  56. package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  57. package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  58. package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  59. package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  60. package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  61. package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  62. package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  63. package/dist/assets/{abnfDiagram-VCTEODGH-tB0FidS0.js → abnfDiagram-VCTEODGH-JiCO6vo-.js} +1 -1
  64. package/dist/assets/{ar-SA-G6X2FPQ2-BQNIWg05.js → ar-SA-G6X2FPQ2-BdzEBmp3.js} +1 -1
  65. package/dist/assets/{architectureDiagram-5GKGNRK7-D1SjeTh7.js → architectureDiagram-5GKGNRK7-D7T_vJwe.js} +1 -1
  66. package/dist/assets/{az-AZ-76LH7QW2-BAQK4UQr.js → az-AZ-76LH7QW2-BQ_SoVB7.js} +1 -1
  67. package/dist/assets/{bg-BG-XCXSNQG7-BDvRwwoU.js → bg-BG-XCXSNQG7-DlH1olUf.js} +1 -1
  68. package/dist/assets/{blockDiagram-I7D4REHJ-xOWzl6z3.js → blockDiagram-I7D4REHJ-DPz0LEjY.js} +1 -1
  69. package/dist/assets/{bn-BD-2XOGV67Q-B-osMrPA.js → bn-BD-2XOGV67Q-CFIZU06C.js} +1 -1
  70. package/dist/assets/{c4Diagram-7LVT6UL2-D5e6bidF.js → c4Diagram-7LVT6UL2-B6uCi0Ol.js} +1 -1
  71. package/dist/assets/{ca-ES-6MX7JW3Y-BqurRCRN.js → ca-ES-6MX7JW3Y-Bpe3kOti.js} +1 -1
  72. package/dist/assets/channel-DB3atv5o.js +1 -0
  73. package/dist/assets/{chunk-2Q5K7J3B-CQmSUQUU.js → chunk-2Q5K7J3B-DTWRWhpx.js} +1 -1
  74. package/dist/assets/{chunk-5VM5RSS4-iLXee7yJ.js → chunk-5VM5RSS4-Dfr1HUAN.js} +1 -1
  75. package/dist/assets/{chunk-F27PBJKO-BSQMcINP.js → chunk-F27PBJKO-D_IVoCIK.js} +1 -1
  76. package/dist/assets/{chunk-IMKFNOWR-l-2241K-.js → chunk-IMKFNOWR-Boa_chn8.js} +1 -1
  77. package/dist/assets/{chunk-JWPE2WC7-Cu7ldP_G.js → chunk-JWPE2WC7-RaK8jzc2.js} +1 -1
  78. package/dist/assets/{chunk-POPQ4Y6H-BkgM8HKl.js → chunk-POPQ4Y6H-D7xOpv6O.js} +1 -1
  79. package/dist/assets/{chunk-SVP7TREG-BR7R6F9G.js → chunk-SVP7TREG-XvJsx1jt.js} +1 -1
  80. package/dist/assets/{chunk-TICWLB2K-DzFEizqD.js → chunk-TICWLB2K-DZCVWmZG.js} +1 -1
  81. package/dist/assets/{chunk-XXDRQBXY-B3V5ae8Q.js → chunk-XXDRQBXY-Djk-REAy.js} +1 -1
  82. package/dist/assets/classDiagram-ZZMXUADV-CzvsXoj_.js +1 -0
  83. package/dist/assets/classDiagram-v2-VYDZK3BY-HxwJpdPt.js +1 -0
  84. package/dist/assets/{cose-bilkent-JH36ORCC-BSUyEU78.js → cose-bilkent-JH36ORCC-D6XaIbtG.js} +1 -1
  85. package/dist/assets/{cs-CZ-2BRQDIVT-BtaYa8qS.js → cs-CZ-2BRQDIVT-BdzgSHdJ.js} +1 -1
  86. package/dist/assets/{cynefin-OW5HDTMX-BQ6G1FGd.js → cynefin-OW5HDTMX-BMTkMDG1.js} +1 -1
  87. package/dist/assets/{cynefinDiagram-5FMLGOSQ-BmH3cQU1.js → cynefinDiagram-5FMLGOSQ-C2s5i9h9.js} +1 -1
  88. package/dist/assets/{d3-scale-6PaX2_v-.js → d3-scale-BMIMKl27.js} +1 -1
  89. package/dist/assets/{da-DK-5WZEPLOC-Dk88jbcE.js → da-DK-5WZEPLOC-Bj-GFWHU.js} +1 -1
  90. package/dist/assets/{dagre-GXQ25YYZ-DzqDTRYR.js → dagre-GXQ25YYZ-CMT8wlz0.js} +1 -1
  91. package/dist/assets/{de-DE-XR44H4JA-BtkAzckW.js → de-DE-XR44H4JA-JmpondAB.js} +1 -1
  92. package/dist/assets/{diagram-S7CK7UJ4-CKkad9LS.js → diagram-S7CK7UJ4-DU1blS3M.js} +1 -1
  93. package/dist/assets/{diagram-UQ7AKVKN-HnH6kGvY.js → diagram-UQ7AKVKN-0lWi4KDV.js} +1 -1
  94. package/dist/assets/{diagram-VSXAHHWV-BGbiUlE1.js → diagram-VSXAHHWV-CrseWrhn.js} +1 -1
  95. package/dist/assets/{diagram-VX7I27RA-MPt2qzsq.js → diagram-VX7I27RA-C5BMS8Ql.js} +1 -1
  96. package/dist/assets/{diagram-Z3DM3KII-hcUL0DLm.js → diagram-Z3DM3KII-Cc3vq6b8.js} +1 -1
  97. package/dist/assets/{ebnfDiagram-PWID7BFC-hUZUNK__.js → ebnfDiagram-PWID7BFC-ZF78imma.js} +1 -1
  98. package/dist/assets/{el-GR-BZB4AONW-DOnEE5fq.js → el-GR-BZB4AONW-BFslUpdm.js} +1 -1
  99. package/dist/assets/{engines-C6k3bUFA.js → engines-BtEtIBXt.js} +1 -1
  100. package/dist/assets/{erDiagram-RLTQ6QDP-DoHgp3nM.js → erDiagram-RLTQ6QDP-CjPjDn2i.js} +1 -1
  101. package/dist/assets/{es-ES-U4NZUMDT-VFRkCKl6.js → es-ES-U4NZUMDT-B0ezBTxQ.js} +1 -1
  102. package/dist/assets/{eu-ES-A7QVB2H4-CWlqsMWd.js → eu-ES-A7QVB2H4-DP_gx2kf.js} +1 -1
  103. package/dist/assets/{fa-IR-HGAKTJCU-CxtwUetE.js → fa-IR-HGAKTJCU-BuT1ELty.js} +1 -1
  104. package/dist/assets/{fi-FI-Z5N7JZ37-Djl1mow5.js → fi-FI-Z5N7JZ37-BAu_Cj7n.js} +1 -1
  105. package/dist/assets/{flowDiagram-HODETNUW-CCs8KCI7.js → flowDiagram-HODETNUW-yqPGWNdd.js} +1 -1
  106. package/dist/assets/{fr-FR-RHASNOE6-CTSI58QE.js → fr-FR-RHASNOE6-OF1CpgtN.js} +1 -1
  107. package/dist/assets/{ganttDiagram-EL5Y4UJY-V39NrnLQ.js → ganttDiagram-EL5Y4UJY-zUY5je2K.js} +1 -1
  108. package/dist/assets/{gitGraphDiagram-WWUBYQGX-DsfCYVRX.js → gitGraphDiagram-WWUBYQGX-oWrs7wy0.js} +1 -1
  109. package/dist/assets/{gl-ES-HMX3MZ6V-9X19A7Co.js → gl-ES-HMX3MZ6V-CkJ47l98.js} +1 -1
  110. package/dist/assets/{he-IL-6SHJWFNN-CCWn0aTE.js → he-IL-6SHJWFNN-D7CecRlh.js} +1 -1
  111. package/dist/assets/{hi-IN-IWLTKZ5I-Czvn3Cqk.js → hi-IN-IWLTKZ5I-CGlW2X-h.js} +1 -1
  112. package/dist/assets/{hu-HU-A5ZG7DT2-CSA0xyZy.js → hu-HU-A5ZG7DT2-Dq_n_tbp.js} +1 -1
  113. package/dist/assets/{id-ID-SAP4L64H-C8Y8IY1j.js → id-ID-SAP4L64H-CotwO_06.js} +1 -1
  114. package/dist/assets/index-CdVc9Lmz.js +624 -0
  115. package/dist/assets/{index-C_ek_ppO.css → index-Cv-tTxNC.css} +1 -1
  116. package/dist/assets/{index-0Kge4otW.js → index-VaWCb9bx.js} +5 -5
  117. package/dist/assets/{infoDiagram-27XIBGKW-C0Ivywz2.js → infoDiagram-27XIBGKW-CYzIkNFW.js} +1 -1
  118. package/dist/assets/{ishikawaDiagram-5VMMS53U-CMmE4k9T.js → ishikawaDiagram-5VMMS53U-DkgUsuk5.js} +1 -1
  119. package/dist/assets/{it-IT-JPQ66NNP-gVSFrMB6.js → it-IT-JPQ66NNP-h97o81us.js} +1 -1
  120. package/dist/assets/{ja-JP-DBVTYXUO-HnD6OZRp.js → ja-JP-DBVTYXUO-M6EVfh0o.js} +1 -1
  121. package/dist/assets/{journeyDiagram-3NMN7TZE-CpkEKmSl.js → journeyDiagram-3NMN7TZE-CuKkNrJy.js} +1 -1
  122. package/dist/assets/{kaa-6HZHGXH3-C29qXHap.js → kaa-6HZHGXH3-DUy85zzz.js} +1 -1
  123. package/dist/assets/{kab-KAB-ZGHBKWFO-CLNG0bT_.js → kab-KAB-ZGHBKWFO-ChL-fKtk.js} +1 -1
  124. package/dist/assets/{kanban-definition-UXKFOSKX-hOCBBBFh.js → kanban-definition-UXKFOSKX-DkOxt3kf.js} +1 -1
  125. package/dist/assets/{kk-KZ-P5N5QNE5-DNoNNWtH.js → kk-KZ-P5N5QNE5-DY6ucSGD.js} +1 -1
  126. package/dist/assets/{km-KH-HSX4SM5Z-eQMwEzV_.js → km-KH-HSX4SM5Z-BAaS4014.js} +1 -1
  127. package/dist/assets/{ko-KR-MTYHY66A-DP3yaFyg.js → ko-KR-MTYHY66A-D-r3mJ1R.js} +1 -1
  128. package/dist/assets/{ku-TR-6OUDTVRD-B2GUIkso.js → ku-TR-6OUDTVRD-Dk1GCoOP.js} +1 -1
  129. package/dist/assets/{layout-D_xIMZTq.js → layout-DtNEGI4_.js} +1 -1
  130. package/dist/assets/{lt-LT-XHIRWOB4-CuDegLO4.js → lt-LT-XHIRWOB4-3Z2Ui1VZ.js} +1 -1
  131. package/dist/assets/{lv-LV-5QDEKY6T-DOjbM5AK.js → lv-LV-5QDEKY6T-Bg59rOkR.js} +1 -1
  132. package/dist/assets/{mindmap-definition-YA3MSWOX-DL4r3hzu.js → mindmap-definition-YA3MSWOX-Dcs8eV7p.js} +1 -1
  133. package/dist/assets/{mr-IN-CRQNXWMA-C0vzd3Vl.js → mr-IN-CRQNXWMA-DepTOG29.js} +1 -1
  134. package/dist/assets/{my-MM-5M5IBNSE-Dirjg8Yf.js → my-MM-5M5IBNSE-4KqL4Tav.js} +1 -1
  135. package/dist/assets/{nb-NO-T6EIAALU-IpjtB42R.js → nb-NO-T6EIAALU-5YWO_l3W.js} +1 -1
  136. package/dist/assets/{nl-NL-IS3SIHDZ-BiVBDlHI.js → nl-NL-IS3SIHDZ-QlAndkM2.js} +1 -1
  137. package/dist/assets/{nn-NO-6E72VCQL-kbUyKFiJ.js → nn-NO-6E72VCQL-BscwhEDW.js} +1 -1
  138. package/dist/assets/{oc-FR-POXYY2M6-C-zRRb5B.js → oc-FR-POXYY2M6-k7bYbSQj.js} +1 -1
  139. package/dist/assets/{pa-IN-N4M65BXN-Dhh3bH7-.js → pa-IN-N4M65BXN-jxBFwrWj.js} +1 -1
  140. package/dist/assets/{pegDiagram-XKGWAZYB-CtbYRYVR.js → pegDiagram-XKGWAZYB-zM-VZA3r.js} +1 -1
  141. package/dist/assets/{pica-HSHSc6s6.js → pica-CsWQ4DPU.js} +1 -1
  142. package/dist/assets/{pieDiagram-E7YTZNPT-Cwv0hsvK.js → pieDiagram-E7YTZNPT-C60FE0D8.js} +1 -1
  143. package/dist/assets/{pl-PL-T2D74RX3-CuDP0Pq6.js → pl-PL-T2D74RX3-be8atU_l.js} +1 -1
  144. package/dist/assets/{pt-BR-5N22H2LF-BlvJqOgZ.js → pt-BR-5N22H2LF-CSE0O2fj.js} +1 -1
  145. package/dist/assets/{pt-PT-UZXXM6DQ-C3RUoC5C.js → pt-PT-UZXXM6DQ-5rnYJhy1.js} +1 -1
  146. package/dist/assets/{quadrantDiagram-AXDQQJYC-C_u4_Oxh.js → quadrantDiagram-AXDQQJYC-DyH84hx6.js} +1 -1
  147. package/dist/assets/{railroadDiagram-O6MQD6OU-FHKPLH9r.js → railroadDiagram-O6MQD6OU-DCrJgP9s.js} +1 -1
  148. package/dist/assets/{requirementDiagram-BXWQKSXE-B_8MbGxf.js → requirementDiagram-BXWQKSXE-C78-QlFo.js} +1 -1
  149. package/dist/assets/{ro-RO-JPDTUUEW-QUZCSbcA.js → ro-RO-JPDTUUEW-Gh6EgC27.js} +1 -1
  150. package/dist/assets/{ru-RU-B4JR7IUQ-BCk_AmNC.js → ru-RU-B4JR7IUQ-BUWESZhq.js} +1 -1
  151. package/dist/assets/{sankeyDiagram-P5KCCOFB-DsfunxYA.js → sankeyDiagram-P5KCCOFB-D_MOkKEs.js} +1 -1
  152. package/dist/assets/{sequenceDiagram-WJ2MYXX4-cRf71lBb.js → sequenceDiagram-WJ2MYXX4-BeQbHZRB.js} +1 -1
  153. package/dist/assets/{si-LK-N5RQ5JYF-jo1qm6JU.js → si-LK-N5RQ5JYF-C9pnvQMf.js} +1 -1
  154. package/dist/assets/{sizeCapture-INFHLROL-COrYinZO.js → sizeCapture-INFHLROL-DUn-Mus_.js} +1 -1
  155. package/dist/assets/{sk-SK-C5VTKIMK-BnMkvGRK.js → sk-SK-C5VTKIMK-FnkPBibb.js} +1 -1
  156. package/dist/assets/{sl-SI-NN7IZMDC-DIkgazuw.js → sl-SI-NN7IZMDC-Cwrqj_B9.js} +1 -1
  157. package/dist/assets/{stateDiagram-D77RDMKH-BvBlef2E.js → stateDiagram-D77RDMKH-C3EF3jQ3.js} +1 -1
  158. package/dist/assets/stateDiagram-v2-MP3YSRHH-CVQHmIvK.js +1 -0
  159. package/dist/assets/{subset-shared.chunk-Cp0oS3tn.js → subset-shared.chunk-8ifLcT_D.js} +1 -1
  160. package/dist/assets/{subset-worker.chunk-BEbN9HM2.js → subset-worker.chunk-DrNTybDR.js} +1 -1
  161. package/dist/assets/{sv-SE-XGPEYMSR-CxQiCAkW.js → sv-SE-XGPEYMSR-Btz80pGx.js} +1 -1
  162. package/dist/assets/{swimlanes-42K2YHIH-BjR8lfsn.js → swimlanes-42K2YHIH-B2_kGhPA.js} +1 -1
  163. package/dist/assets/swimlanesDiagram-VR7AAH4N-C1rOmrkT.js +8 -0
  164. package/dist/assets/{ta-IN-2NMHFXQM-e_HiIsgP.js → ta-IN-2NMHFXQM-B0bWtgu1.js} +1 -1
  165. package/dist/assets/{th-TH-HPSO5L25-DTp8x86q.js → th-TH-HPSO5L25-DgC0yFw3.js} +1 -1
  166. package/dist/assets/{timeline-definition-24CTP7MA-B0uf0zYu.js → timeline-definition-24CTP7MA-Bu0W3Mcy.js} +1 -1
  167. package/dist/assets/{tr-TR-DEFEU3FU-BfTQG1sR.js → tr-TR-DEFEU3FU-C9Mmy6ri.js} +1 -1
  168. package/dist/assets/{uk-UA-QMV73CPH-DMHmllj-.js → uk-UA-QMV73CPH-rxEnqB_i.js} +1 -1
  169. package/dist/assets/{vennDiagram-4TSXK5OY-AxXlA6VW.js → vennDiagram-4TSXK5OY-63JTeOph.js} +1 -1
  170. package/dist/assets/{vi-VN-M7AON7JQ-BtoynmIl.js → vi-VN-M7AON7JQ-DOVa-vAT.js} +1 -1
  171. package/dist/assets/{wardleyDiagram-VM6X3IG4-BiKqKrb1.js → wardleyDiagram-VM6X3IG4-Bct0TRuC.js} +1 -1
  172. package/dist/assets/{xychartDiagram-S5SC5T6Z-DKJ6ufCR.js → xychartDiagram-S5SC5T6Z-C21zgvSM.js} +1 -1
  173. package/dist/assets/{zh-CN-LNUGB5OW-BiSoyhtF.js → zh-CN-LNUGB5OW-MyifsmQ8.js} +1 -1
  174. package/dist/assets/{zh-HK-E62DVLB3-C6DC7GXY.js → zh-HK-E62DVLB3-Cp55UViv.js} +1 -1
  175. package/dist/assets/{zh-TW-RAJ6MFWO-D1A1a-SQ.js → zh-TW-RAJ6MFWO-DMy6SZap.js} +1 -1
  176. package/dist/index.html +2 -2
  177. package/dist/licenses/markdown-reading-notices.txt +76 -0
  178. package/docs/BUNDLE-FORMAT.md +18 -5
  179. package/docs/DIAGRAM-SOURCE.md +59 -12
  180. package/docs/LOCAL-DOCUMENT.md +17 -14
  181. package/docs/MODEL-CONTRACT.md +7 -4
  182. package/docs/PLANTUML-SOURCE.md +3 -2
  183. package/docs/VIEWER-LAUNCH.md +18 -3
  184. package/docs/VIEWER.md +118 -35
  185. package/docs/adr/ADR-001-2026-12-03-inspector-original-document-first/ADR-001-2026-12-03-inspector-original-document-first.md +1 -1
  186. package/docs/adr/ADR-006-2026-12-05-workspace-navigation-rows/ADR-006-2026-12-05-workspace-navigation-rows.md +29 -0
  187. package/docs/adr/ADR-007-2026-12-05-native-edit-selection/ADR-007-2026-12-05-native-edit-selection.md +25 -0
  188. package/docs/capabilities.json +27 -4
  189. package/docs/decisions.md +3 -1
  190. package/licenses/markdown-reading-notices.txt +76 -0
  191. package/package.json +5 -2
  192. package/scripts/build-map.mjs +1 -1
  193. package/scripts/lib/map-viewer-server.mjs +48 -24
  194. package/scripts/lib/original-materials.mjs +1 -1
  195. package/scripts/lib/original-report-server.mjs +7 -3
  196. package/scripts/lib/project-catalog.mjs +14 -2
  197. package/scripts/lib/project-map-inputs.mjs +1 -1
  198. package/scripts/lib/sketch-publication.mjs +1 -1
  199. package/scripts/lib/task-map-build.mjs +1 -1
  200. package/scripts/lib/view-args.mjs +183 -0
  201. package/scripts/lib/workflow/reader-surface.mjs +29 -11
  202. package/scripts/locus-map.mjs +14 -20
  203. package/scripts/open-map.mjs +84 -49
  204. package/scripts/vite-browser-dependencies.mjs +2 -1
  205. package/skills/README.md +2 -1
  206. package/skills/locus-map/SKILL.md +27 -25
  207. package/skills/locus-map/assets/artifact-handoff.md +2 -1
  208. package/skills/locus-map/references/build-environment.md +11 -7
  209. package/skills/locus-map/references/checks.md +16 -4
  210. package/skills/locus-map/references/component-checkpoint.md +35 -0
  211. package/skills/locus-map/references/draw-skill.md +2 -1
  212. package/skills/locus-map/references/selection.md +36 -13
  213. package/skills/locus-map/references/task-maps.md +5 -0
  214. package/skills/locus-map/references/visual-composition.md +69 -0
  215. package/skills/locus-map-draft/SKILL.md +95 -0
  216. package/skills/locus-map-draft/assets/chosen-direction.md +47 -0
  217. package/skills/locus-map-draft/references/divergence-and-formats.md +127 -0
  218. package/skills/locus-map-primitives/SKILL.md +6 -2
  219. package/skills/locus-map-primitives/references/card-presentation.md +57 -3
  220. package/skills/locus-map-primitives/references/reading-files.md +1 -1
  221. package/src/adapter/areas.js +1 -0
  222. package/src/adapter/semanticAdmission.js +118 -5
  223. package/src/authoring/buildDiagram.mjs +99 -19
  224. package/src/authoring/canvas-source-worker.mjs +96 -0
  225. package/src/authoring/canvasSource.mjs +41 -0
  226. package/src/authoring/diagramChecks.js +143 -1
  227. package/src/authoring/diagramSource.js +31 -5
  228. package/src/authoring/printPlantumlSource.js +13 -2
  229. package/src/authoring/readDetailsFiles.mjs +100 -19
  230. package/src/bundle/chain.js +129 -32
  231. package/src/bundle/chainBrowser.js +26 -2
  232. package/src/bundle/localDocument.mjs +87 -22
  233. package/src/bundle/localDocumentClient.js +5 -1
  234. package/src/bundle/projectClient.js +59 -18
  235. package/src/chain/validation.js +7 -1
  236. package/src/contract/readingMarkdown.js +57 -13
  237. package/src/contract/readingMaterials.js +18 -2
  238. package/src/contract/readingTable.js +66 -0
  239. package/src/viewer/ControlIcon.jsx +1 -0
  240. package/src/viewer/DiagramViewer.jsx +97 -56
  241. package/src/viewer/EmbeddedExcalidrawEditor.jsx +305 -0
  242. package/src/viewer/HighlightOverlay.jsx +146 -33
  243. package/src/viewer/Inspector.jsx +110 -33
  244. package/src/viewer/ProjectRail.jsx +11 -5
  245. package/src/viewer/ProjectTabs.jsx +9 -6
  246. package/src/viewer/ProjectViewChainViewer.jsx +235 -77
  247. package/src/viewer/ReadingTable.jsx +151 -0
  248. package/src/viewer/SketchCanvas.jsx +34 -87
  249. package/src/viewer/ViewChainViewer.jsx +583 -81
  250. package/src/viewer/camera.js +50 -18
  251. package/src/viewer/chainEditorSession.js +161 -35
  252. package/src/viewer/chainInstallation.js +3 -3
  253. package/src/viewer/details/CanvasPreview.jsx +303 -0
  254. package/src/viewer/details/InspectorReadingSettings.jsx +50 -13
  255. package/src/viewer/details/MeaningFirst.jsx +2 -2
  256. package/src/viewer/details/ReadingFiles.jsx +32 -4
  257. package/src/viewer/details/ReadingMarkdown.jsx +43 -12
  258. package/src/viewer/details/RelationshipBody.jsx +2 -2
  259. package/src/viewer/details/details.css +69 -26
  260. package/src/viewer/diagramControls.css +1 -1
  261. package/src/viewer/fileError.js +53 -0
  262. package/src/viewer/geometry.js +12 -0
  263. package/src/viewer/highlight.js +26 -12
  264. package/src/viewer/inspectorPosition.js +68 -16
  265. package/src/viewer/projectTasks.css +1 -2
  266. package/src/viewer/readingTable.css +47 -0
  267. package/src/viewer/sceneState.js +0 -4
  268. package/src/viewer/sketchSettling.js +71 -0
  269. package/src/viewer/useInspectorPosition.js +126 -39
  270. package/src/viewer/viewChain.css +55 -24
  271. package/src/viewer/viewer.css +23 -12
  272. package/dist/assets/channel-DP1yLO71.js +0 -1
  273. package/dist/assets/classDiagram-ZZMXUADV-DKQje2st.js +0 -1
  274. package/dist/assets/classDiagram-v2-VYDZK3BY-C3KVT455.js +0 -1
  275. package/dist/assets/index-BaHpjra6.js +0 -362
  276. package/dist/assets/stateDiagram-v2-MP3YSRHH-jeUVI-Q4.js +0 -1
  277. package/dist/assets/swimlanesDiagram-VR7AAH4N-Dp8eikhA.js +0 -8
@@ -0,0 +1,95 @@
1
+ ---
2
+ name: locus-map-draft
3
+ description: "Formalizes an open-ended visual request, builds 1–4 quick draft variants in Locus Map for early component feedback, and hands the chosen visual reference off to authoring or research."
4
+ ---
5
+
6
+ # locus-map-draft
7
+
8
+ Explore visual structure and component composition in Locus Map before full research or delivery.
9
+ Use `locus-map` (`MAP_BIN`), `npx @locus-forge/locus-map`, or checkout `scripts/locus-map.mjs`.
10
+ Resolve `productRoot` and `drawSkillPath` from `"$MAP_BIN" doctor --json`.
11
+ This skill grants no agent-launch authority. When the host permits subagents, run 1–4 draft workers
12
+ in parallel; otherwise author the selected variants sequentially, guided by
13
+ [divergence axes and draft formats](references/divergence-and-formats.md).
14
+
15
+ ## 0. Decide whether drafting helps
16
+
17
+ Skip drafting when the reader question and visual form are already clear: route directly to
18
+ `skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`.
19
+ Use `locus-map-draft` when the request is open-ended (such as an ML experiment, comparison, or
20
+ problem breakdown), competing visual forms fit, or the user wants to review quick drafts first.
21
+
22
+ ## 1. Formalize the problem and request
23
+
24
+ Record the verbatim request, `reader-question`, `audience`, `outputLanguage`, `Must show`, known
25
+ `provided-facts`, and unverified placeholder zones (`missing-or-unverified`) in
26
+ `TARGET_PROJECT/.locus-map/TOPIC/artifacts/drafts/SESSION_ID/session.md` (or
27
+ `~/.locusmap/maps/.drafts/SESSION_ID/session.md` when no project directory is given).
28
+ Ask only about unknowns that materially change the candidate structures.
29
+ If source files exist, only the coordinator runs one light intake scan so workers do not re-read
30
+ the repository repeatedly.
31
+
32
+ ## 2. Design 1–4 structural variants
33
+
34
+ Pick 1–4 variants (`1` to validate a single complex layout, `2` for a binary trade-off, `3`
35
+ default for open problems, `4` maximum) using
36
+ [divergence axes and draft formats](references/divergence-and-formats.md).
37
+ Design divergence before writing scripts: every variant must differ on at least two structural
38
+ axes (inference lens, visual grammar, unit of meaning, or delivery format), never cosmetic color
39
+ swaps.
40
+
41
+ ## 3. Author quick drafts and inspect PNGs
42
+
43
+ Put each variant in an isolated directory `v1-SLUG/` .. `vN-SLUG/` with its authored source
44
+ (`draft.mjs`, `draft.puml`, or schema-v1 `draft.map.json`), editable output, `draft.png`, and a
45
+ short `summary.md`. Build or export each pass into `vN-SLUG/builds/PASS/` (skipped by library scans
46
+ and avoiding `OUTPUT_EXISTS`), then copy the inspected output to `vN-SLUG/draft.excalidraw` (or
47
+ `vN-SLUG/draft.locus-map.json`) and `vN-SLUG/draft.png`.
48
+
49
+ - **Draw (`draft.mjs` or `draft.puml`) → `draft.excalidraw` + `draft.png`:** default for charts,
50
+ matrices, freeform notes, analytical or ML experiment boards, and prototypes across Draw's 53
51
+ catalog genres resolved from `drawSkillPath`.
52
+ - **Lightweight Map source (`"$MAP_BIN" build --source`) → `draft.locus-map.json` + `draft.png`:**
53
+ use when clickable Inspector cards, `--details-files` reading materials, a foldable
54
+ `readingTree`, or `readingTable` (via schema-v1 `draft.map.json`) are central to the concept.
55
+
56
+ Keep drafts fast and scannable: 5–10 core blocks, at most 1–2 render passes, a visible canvas
57
+ marker (`DRAFT · CONCEPT V1` in `outputLanguage`), and `[example]` / `[TBD]` tags on unverified
58
+ placeholders (avoid angle-bracket tags, which trigger Draw `INVALID_TEXT`). Visually inspect every
59
+ `draft.png` before presenting it.
60
+
61
+ ## 4. Review drafts in Locus Map and gather feedback
62
+
63
+ Show every rendered `draft.png` inline where the chat supports images, alongside a short trade-off
64
+ table (what stays visible on canvas, what moves to cards/reports, what is lost, and target route).
65
+ Preview all drafts together in Locus Map (`artifacts/` stays hidden from normal library scans; see
66
+ `docs/LOCAL-DOCUMENT.md` and
67
+ [previewing drafts in Locus Map](references/divergence-and-formats.md#preview-drafts-in-locus-map)):
68
+
69
+ ```sh
70
+ LOCUS_MAP_PROJECTS_FILE=DIR/artifacts/drafts/SESSION_ID/.viewer.toml \
71
+ "$MAP_BIN" view --port 0
72
+ ```
73
+
74
+ Collect feedback on which variant or specific components to keep, drop, or combine.
75
+
76
+ ## 5. Lock the visual reference and route onward
77
+
78
+ Save the chosen composition, component feedback, and grounding checklist in `chosen-direction.md`
79
+ using the [chosen-direction handoff template](assets/chosen-direction.md).
80
+ **Evidence firewall:** drafts express visual intent only. Never cite draft files in `facts.md`,
81
+ `citations.json`, `sourceBindings`, `--snapshot-documents`, or final `--details-files`, and never
82
+ promote a draft directly as a verified map.
83
+
84
+ Route the approved reference into the matching downstream flow (verified architecture review is one
85
+ branch, not mandatory):
86
+
87
+ - **Draw-authored visual in Locus Map (`.mjs`/`.puml` → `.excalidraw`):** replace placeholders with
88
+ real data, charts, and copy via `skills/locus-map/SKILL.md` and deliver into `.locus-map/TOPIC/`.
89
+ - **Connected semantic map (`.locus-map.json`):** continue in `skills/locus-map/SKILL.md`
90
+ (`source` route), transferring `Request (verbatim)`, `Must show`, `View choice`, and
91
+ `Orientation` into `artifacts/handoff.md` and verifying every claim against real sources.
92
+ - **Verified source-backed research (`skills/locus-map-research/SKILL.md`):** pass only the
93
+ verbatim framing into R0; withhold draft layouts from R1–R5 to avoid confirmation bias; supply
94
+ `chosen-direction.md` at R6 (or only `duties: ["authorBuild"]` in Pi). If real sources contradict
95
+ the draft layout, sources prevail and return the conflict to the user.
@@ -0,0 +1,47 @@
1
+ # Chosen Visual Direction (from locus-map-draft)
2
+
3
+ ## 1. Status and evidence boundary
4
+
5
+ - Draft status: `VISUAL_DIRECTION_ONLY` (may contain illustrative `[example]` / `[TBD]` placeholders)
6
+ - Allowed downstream use: reader framing, visual structure, component selection, layout and style intent
7
+ - Forbidden downstream use: MUST NOT be cited as factual evidence, passed via `--snapshot-documents` or `sourceBindings`, or used to bypass source checks or R7 review
8
+
9
+ ## 2. Original framing (preserved verbatim)
10
+
11
+ - Request (verbatim):
12
+ - `reader-question`:
13
+ - `audience`:
14
+ - `outputLanguage`:
15
+ - `Must show`:
16
+ - REQUIRED_ITEM -> canvas | inspector-card
17
+
18
+ ## 3. Selected visual reference and component feedback
19
+
20
+ - Session directory: `artifacts/drafts/SESSION_ID/`
21
+ - Selected concept: `vN-SLUG` (note any combined elements from other drafts)
22
+ - Reference files:
23
+ - PNG preview: `artifacts/drafts/SESSION_ID/vN-SLUG/draft.png`
24
+ - Source script/input: `artifacts/drafts/SESSION_ID/vN-SLUG/draft.mjs` | `draft.puml` | `draft.map.json`
25
+ - Editable scene/document: `artifacts/drafts/SESSION_ID/vN-SLUG/draft.excalidraw` | `draft.locus-map.json`
26
+ - User feedback on components:
27
+ - Keep:
28
+ - Remove or simplify:
29
+ - Add or adjust:
30
+ - Rejected variants (for `View choice` rationale):
31
+ - `vA-SLUG`: WHAT_IT_HID_OR_LOST
32
+
33
+ ## 4. Target downstream route
34
+
35
+ - Target skill and route: `locus-map` (Draw `.mjs`/`.puml` -> `.excalidraw`) | `locus-map` (`source` -> `.locus-map.json`) | `locus-map-research` (R0–R7)
36
+ - Admitted Map family (when targeting `.locus-map.json`): `semantic` | `component` | `sequence` | `decision` | `n/a (Draw visual)`
37
+ - Visual form / profile:
38
+ - Orientation & layout notes:
39
+ - Disclosed capability limits:
40
+
41
+ ## 5. Grounding checklist (must be replaced or verified downstream)
42
+
43
+ - Confirmed user inputs / files / data:
44
+ - Placeholders to replace with verified values or source facts:
45
+ - [ ] PLACEHOLDER_ITEM -> TARGET_FILE_OR_DATASET
46
+ - Open questions for research or data gathering:
47
+ - [ ] OPEN_QUESTION
@@ -0,0 +1,127 @@
1
+ # Divergence axes, draft formats, and Locus Map preview
2
+
3
+ Use this reference during `locus-map-draft` to pick the right number of variants, enforce real
4
+ structural diversity, preview drafts in Locus Map without polluting the main library, and preserve
5
+ the evidence boundary.
6
+
7
+ ## Choose the number of drafts (N = 1..4)
8
+
9
+ | Count | When to use | Typical scenario |
10
+ | --- | --- | --- |
11
+ | `0` (skip) | Reader question and visual form are already clear | Explicit C4 diagram request, targeted chart, or feedback revision of an existing map. Route directly to `skills/locus-map/SKILL.md` or `skills/locus-map-research/SKILL.md`. |
12
+ | `1` | Structure is plausible, but layout density or framing needs quick validation | Confirming one non-standard board composition before collecting full details or running research. |
13
+ | `2` | Exactly one clear design trade-off competes | Process flow vs. metrics matrix, or single dense Draw canvas vs. connected Map graph with Inspector. |
14
+ | `3` (default) | Open-ended request with an understandable domain | Covers the main space cleanly: 1) flow or story, 2) measurements or comparison, 3) structure or decisions. |
15
+ | `4` (max) | Broad multi-faceted topic or explicit request for 4 options | Hard ceiling: more than four images overwhelm side-by-side comparison and strain local browser renders. |
16
+
17
+ **Single-agent fallback:** when subagents are unavailable or disallowed, keep the selected count N
18
+ (`1–4`, defaulting to `2–3` when the user did not request a specific number), generate the variants
19
+ sequentially in isolated subfolders, and check each new script against `session.md` so later
20
+ variants do not repeat earlier layouts.
21
+
22
+ ## Four structural divergence axes
23
+
24
+ Do not ask multiple workers to "visualize X your own way" with identical prompts; that converges
25
+ on nearly identical box-and-arrow diagrams with cosmetic color differences. Design divergence upfront
26
+ by requiring every pair of concepts to differ on at least two structural axes:
27
+
28
+ | Axis | Contrasting choices |
29
+ | --- | --- |
30
+ | 1. Inference lens | Mechanism / flow ("how data moves") vs. comparison ("what improved and why") vs. chronology / causality ("what changed over time") vs. ownership / structure ("who owns what") |
31
+ | 2. Visual grammar | Quantitative chart or matrix (`heatmap`, `waterfall`, `line`, `scatter`, `quadrant`) vs. freeform board (`Scene`, `textBox`, frames) vs. connected card graph (`editorial-v4`, `c4-reference-v1`; `c4-modern-v2` opt-in only) vs. ordered interaction or timeline (`sequence`, `timeline`, `story-map`) |
32
+ | 3. Unit of meaning | Pipeline steps vs. hypotheses and findings vs. metric slices vs. software components or decisions |
33
+ | 4. Delivery surface & route | Self-contained `.excalidraw` visual via Draw (`locus-map`) vs. clickable `.locus-map.json` with Inspector reading materials vs. R0–R7 verified map (`locus-map-research`) |
34
+
35
+ ### Worked example: four variants for an ML experiment
36
+
37
+ 1. **Experiment discussion board** (`draft.mjs` → `.excalidraw`): left column holds hypothesis and
38
+ success criteria; center shows slice behavior and anonymized error examples; right side frames
39
+ competing explanations and next checks.
40
+ 2. **Methodology verification map** (`draft.puml` / `draft.map.json` → `.locus-map.json`,
41
+ `editorial-v4`): shows split → threshold tuning → evaluation with an explicit caveat on canvas,
42
+ attaching LaTeX formulas, split dates, PNG figures, and static HTML reports in Inspector via
43
+ `--details-files`.
44
+ 3. **Metrics comparison canvas** (`draft.mjs` or `draft.puml` → `.excalidraw`): pairs headline
45
+ deltas with a weekly trend and a slice `heatmap` or additive `waterfall`, composed with Draw and
46
+ `embedSvg`.
47
+ 4. **Topic index** (`draft.map.json` / `project.json` preview): splits overview from per-topic
48
+ detail views when stakeholders revisit data, thresholds, and error slices independently.
49
+
50
+ ## Draft worker brief and budget
51
+
52
+ - Put each worker in its own folder `vN-SLUG/` with zero shared mutable files.
53
+ - Export or build each render pass into a fresh `vN-SLUG/builds/PASS/` directory (`builds/` is
54
+ skipped by library discovery and prevents `OUTPUT_EXISTS` / `OUTPUT_OVERLAPS_INPUT`), then copy
55
+ the inspected scene/bundle and PNG to `vN-SLUG/draft.excalidraw` (or `vN-SLUG/draft.locus-map.json`)
56
+ and `vN-SLUG/draft.png`.
57
+ - Pass the shared Framing Packet (verbatim request, audience, `outputLanguage`, `Must show`,
58
+ `provided-facts`, `missing-or-unverified`), the assigned concept's four axes, and a short
59
+ anti-clone list of the other concepts.
60
+ - Keep drafts lean: 5–10 core blocks, 1–2 render passes, visible `DRAFT · CONCEPT V1` (etc.) canvas
61
+ badge, and `[example]` / `[TBD]` markers on unverified values. Avoid angle-bracket tokens, which
62
+ trigger Draw `INVALID_TEXT` and R5–R7 HTML-tag checks.
63
+ - Inspect every `draft.png` directly before presenting it. If 1 of the N workers fails to render,
64
+ present the completed drafts and report the failed concept separately rather than blocking.
65
+
66
+ ## Format selection: Draw vs lightweight Map source
67
+
68
+ - **Draw (`draft.mjs` or `draft.puml`) → `draft.excalidraw` + `draft.png`**: resolve
69
+ `@locus-forge/locus-draw/skill` via `drawSkillPath` from `"$MAP_BIN" doctor --json`. Read its
70
+ `references/diagram-types.md`, `references/javascript-authoring.md`, and
71
+ `references/javascript-layout.md`. Draw splits its 53 catalog categories across JS API
72
+ (`heatmap`, `waterfall`, `radar`, `sankey`, custom `Scene` + `nodeCard` + `embedSvg`) and
73
+ PlantUML transfer (`bar`, `line`, `scatter`, `quadrant`, `timeline`, `story-map`, etc.); follow
74
+ the chosen catalog row's actual authoring language. Export into `vN-SLUG/builds/1/` and copy
75
+ `scene.excalidraw` and `scene.png` to `vN-SLUG/draft.excalidraw` and `vN-SLUG/draft.png`.
76
+ - **Lightweight Map source (`"$MAP_BIN" build --source`) → `draft.locus-map.json` + `draft.png`**:
77
+ produces a `semantic` card graph (`draft`, `claims: "unverified"`). Use `draft.puml` for standard
78
+ cards, or schema-v1 `draft.map.json` when JSON-only features such as `readingTree` or
79
+ `readingTable` (`docs/DIAGRAM-SOURCE.md`) are central. Build into `vN-SLUG/builds/1/`, then copy
80
+ the bundle and PNG to `vN-SLUG/draft.locus-map.json` and `vN-SLUG/draft.png`. Omit
81
+ `citations.json`, `--record-for`, and viewer move/save/reopen checks during drafting.
82
+ - **Current workspace limits (`docs/LOCAL-DOCUMENT.md`, `docs/VIEWER-LAUNCH.md`)**: `.excalidraw`
83
+ sketches edit and save natively in workspace mode, but have no Inspector panel and cannot serve
84
+ as `project.json` `↘` targets yet. Do not prototype a `sequence` or `component` research map
85
+ with `build --source`; sketch its structure in Draw and note that full Inspector support uses
86
+ `skills/locus-map-research/SKILL.md`.
87
+
88
+ ## Preview drafts in Locus Map
89
+
90
+ Drafts under `artifacts/drafts/SESSION_ID/` are automatically excluded from normal library scans
91
+ because `artifacts/` is skipped (`docs/LOCAL-DOCUMENT.md`). To let the user inspect, pan, and
92
+ move components across both `.excalidraw` and `.locus-map.json` drafts in one viewer window without
93
+ touching `~/.locusmap/projects.toml` or port `8181`, write a hidden `.viewer.toml` inside the
94
+ session folder:
95
+
96
+ ```toml
97
+ [[projects]]
98
+ name = "Drafts: TOPIC"
99
+ folder = "."
100
+ ```
101
+
102
+ Launch with:
103
+
104
+ ```sh
105
+ LOCUS_MAP_PROJECTS_FILE=DIR/artifacts/drafts/SESSION_ID/.viewer.toml \
106
+ "$MAP_BIN" view --port 0
107
+ ```
108
+
109
+ Because workspace registry mode enables sketch discovery alongside `.locus-map.json` bundles
110
+ (`docs/VIEWER-LAUNCH.md`) while skipping `builds/` subfolders, every `vN-SLUG/draft.*` appears once
111
+ in **Contents**. When a user edits a draft in the viewer:
112
+
113
+ - For a `.excalidraw` sketch, they click **Save drawing**; read back `vN-SLUG/draft.excalidraw` as
114
+ layout guidance for the final build.
115
+ - For a `.locus-map.json` draft, they click **Save chain file**; read back
116
+ `vN-SLUG/draft.locus-map.json` as layout guidance for the final build.
117
+
118
+ ## Evidence firewall
119
+
120
+ 1. Never cite any draft source, scene, or placeholder number inside `facts.md`, `citations.json`,
121
+ `sourceBindings`, or R4 `sources`, and never pass draft files or `chosen-direction.md` through
122
+ `--snapshot-documents` or final `--details-files`.
123
+ 2. Never rename or copy a draft `.locus-map.json` into the topic root as a finished deliverable.
124
+ 3. On `skills/locus-map-research/SKILL.md`, keep draft artifacts out of R1–R5 source investigation;
125
+ only R0 receives the verbatim request framing and R6 receives `chosen-direction.md`. In native
126
+ Pi runs (`locus-map-compact`), restrict any draft layout guidance to `duties: ["authorBuild"]`
127
+ so `researchAuthor` stays unbiased.
@@ -44,8 +44,12 @@ Use [element fields and reading files](references/reading-files.md) to add a sho
44
44
  On direct entry it looks for a matching incoming link, preferring the section entry as source for the same target. It can fall back to the section entry.
45
45
  For this behavior in an explicit project, keep parent and child in one contents section, as in the example. A section entry on a fresh visit has no parent to return to.
46
46
  The viewer uses incoming links for this lookup. An outgoing reverse link on every content card is unnecessary.
47
- - **Project contents.** The optional catalog `navigation` groups map/view/card addresses in the sidebar. Expanding a group shows its children in the sidebar.
48
- Use `locus-map view --project FILE` for the explicit catalog. See `docs/LOCAL-DOCUMENT.md` and `docs/VIEWER-LAUNCH.md` for discovery and launch modes.
47
+ - **Project contents.** By default, omit `navigation` or list only diagram pages (`{map, view}`, optionally grouped) so the sidebar reflects real canvases.
48
+ Add in-page card anchors (`{map, view, node}`) to `navigation` only when the reader explicitly asks for sidebar jumps to cards inside a page;
49
+ the viewer renders card anchors smaller and muted so they stay distinct from page destinations. Expanding a group shows its children in the sidebar.
50
+ Use `locus-map view TOPIC` (or `locus-map view --project [TOPIC|FILE]`, or `npx @locus-forge/locus-map view ...`)
51
+ from the project root; `--source-root` defaults automatically under `.locus-map/`.
52
+ See `docs/LOCAL-DOCUMENT.md` and `docs/VIEWER-LAUNCH.md` for discovery and launch modes.
49
53
 
50
54
  ## Fold a branch on the canvas
51
55
 
@@ -4,6 +4,60 @@ Run `locus-map doctor --json` and read `references/presentation-profiles.md` rel
4
4
  returned `drawSkillPath` URL. Compare the Draw specimens, then follow the chooser to its
5
5
  per-node appearance reference and icon catalog.
6
6
 
7
- Use `c4-modern-v2` for names above bracketed C4 metadata or `editorial-v4` for verb-led actions.
8
- Set `iconId` only when it literally disambiguates sibling nodes of the same role, up to 3–5 explicit icons per view.
9
- Leave `iconId` unset to use the profile's default glyph otherwise.
7
+ ## Select the profile by diagram role
8
+
9
+ | View purpose | Default profile | Opt-in / specialized alternative |
10
+ | --- | --- | --- |
11
+ | Standard C4 architecture (Context, Container, Component) | `c4-reference-v1` | `c4-modern-v2` only when colored modern C4 cards are explicitly chosen |
12
+ | Workflows, pipelines, roadmaps, grouped overviews | `editorial-v4` | `editorial-v2` for light compact cards |
13
+ | Canonical local task list (`locus-map build --tasks-dir`) | `task-card-v1` (single vertical column) | Simplified editorial profile for multi-column grouped task boards |
14
+
15
+ - Adhere strictly to canonical **`c4-reference-v1`** for standard C4 architecture overviews: use standard C4 roles and its built-in low-chroma palette (blue owned elements, cylinders for data stores, muted grey for external participants, dashed system boundaries) without ad-hoc pastel color overrides, decorative badges, or icon clutter. Use `c4-modern-v2` only when the user explicitly opts into colored modern C4 cards.
16
+ - Keep editorial boards **neutral by default**: reserve `accent` and `tone` (`negative`, `caution`, `positive`) for 1–3 high-signal cards, never as arbitrary decorative variety.
17
+ - On `editorial-v2` through `editorial-v4`, prefer `size: "extra-wide"` (420 units, PlantUML `$tags="extra-wide"`) for ordinary cards when titles wrap—especially in Russian or descriptive research views; on `c4-modern-v2` / `c4-reference-v1`, use `size: "wide"`. When parenthetical qualifiers would leave an awkward trailing orphan on a second title line, move them into `technology` (or `badge` on profiles that admit node appearance overrides; on canonical `c4-reference-v1`, shorten the title, use `technology` for a technology qualifier, or move detail to Inspector `details`), and check `TITLE_WRAP_WARNING` in `check.json`.
18
+ - On profiles that admit node appearance overrides (`editorial-v2`–`editorial-v4`, `c4-modern-v1`–`c4-modern-v2`; `c4-reference-v1` rejects node `iconId`, `shape`, `badge`, `tone`, and root `source.accent` with `PROFILE_KIND` and ignores PlantUML style overrides with `PLANTUML_STYLE_IGNORED`), set `iconId` only when it literally disambiguates sibling nodes of the same role, up to 3–5 explicit icons per view. Leave `iconId` unset to use the profile's default glyph otherwise.
19
+
20
+ ## Minimalist 3-slot card anatomy
21
+
22
+ Keep cards clean and immediately scannable by matching the profile's actual slots without stacking decorative metadata:
23
+
24
+ 1. **Standard C4 (`c4-reference-v1`)**: renders `«role»` stereotype above **`Title` (`label`)** → optional `[Technology]` → **Essence (`body`)** (plus claim status row only when non-current).
25
+ 2. **Editorial & modern C4 (`editorial-v4`, `c4-modern-v2`) — minimalist 3-slot layout**:
26
+ - **Title (`label`)**: recognizable entity, action, or task name. On multi-column grouped task boards, put the task ID directly in `label` (for example, `T-264 · Markdown grounding corpus`), not buried in a footer slot.
27
+ - **One role/metadata line**: either `[Type: Technology]` (`c4-modern-v2`) or one concise editorial `technology` subline (module, code anchor, key type, or single status/progress value). Never stack `iconId` + `badge` + `[Type: Tech]` + uppercase `tag` + `body` + status on the same card.
28
+ - **Essence (`body`)**: 1–3 short lines explaining what the element does or delivers. Move longer detail, full file paths, and edge cases to `details` (Inspector).
29
+ 3. **Canonical task list (`task-card-v1` via `--tasks-dir`)**: header metadata, complete title, description, and optional expected outcome.
30
+
31
+ ### Workflow card slot pattern
32
+
33
+ For code-backed step-by-step workflow and pipeline diagrams on editorial profiles (preferring `editorial-v4`), use this validated 3-slot structure (authored in the language the user requested):
34
+
35
+ 1. **Line 1 — Title (`label`)**: action-oriented step heading in the form `Step N · <action>` (for example, `Step 1 · Validate submission`, or localized `Шаг N · <действие>`).
36
+ 2. **Line 2 — Code anchor (`technology`)**: compact code-location slot in the form `Code: :module → File :: fn()` (or localized `Код: :module → File :: fn()`; in `.puml`, trailing `fn()` emits a benign `TEXT_PREVIEW_DIFFERS` warning while Draw/Map preserves the text literally).
37
+ 3. **Line 3+ — Details (`body`)**: 2–3 concise bullet lines using the **Unicode bullet `• ` (`\u2022 `)** (within the 240-character `body` limit; keep extended rationale and edge cases in Inspector `details`). Prefer `editorial-v4` (or set `size: "extra-wide"` / `$tags="extra-wide"` when bullets wrap), because standard-width `editorial-v2` and `editorial-v3` cap `body` at 3 rendered lines total and throw `CARD_TEXT_OVERFLOW` on a 4th wrapped line.
38
+
39
+ ```text
40
+ Step 1 · Validate submission
41
+ Code: :quiz-api → SubmitUseCase :: execute()
42
+ • Checks active attempt and deadline
43
+ • Rejects duplicate answers with 409
44
+ • Persists raw payload before scoring
45
+ ```
46
+
47
+ > **Plain-text bullet rule (`MARKUP` guard):** Never start a line in `body` (or other plain-text fields such as `page.notes` and `page.footer`) with ASCII `- `, `+ `, `* `, or numbered `1. `. In `locus-draw`'s `MARKUP` regex (`src/source/diagramSource.ts`), leading list markers trigger markup rejection and fail validation with `INVALID_TEXT`. Always use Unicode `• ` (`\u2022 ` or literal `• ` in `.map.json` / `.mjs`; literal UTF-8 `• ` in `.puml`, where `\u` escapes fail with `TEXT_ESCAPE_UNSUPPORTED`) for inline bullet lines inside card descriptions/body slots; Markdown `- ` lists belong only in Inspector `details`.
48
+
49
+ ## Restraint with tags, folded corners, and badges
50
+
51
+ - **Tags (`tag`)**: leave `tag` unset unless it carries a self-evident, uniform axis across cards (such as `STEP 1`, `STEP 2`). Avoid cryptic ALL-CAPS shorthand like `INPUT · TODAY` whose meaning cannot be inferred from the card.
52
+ - **Folded-corner document shape (`shape: "document"` / default `kind: "artifact"` styling)**: preserve source-backed semantics (`kind: "artifact"` stays `"artifact"` — never relabel an artifact as `kind: "component"` just to hide the corner). Instead, set `shape: "card"` on a profile that admits node appearance overrides, or choose a presentation that keeps a plain rectangular silhouette unless distinguishing physical documents/files from runtime components is load-bearing and explained in the legend and anatomy note.
53
+ - **Single status slot & badge discipline**: state status/priority/progress **once** — never duplicate the same state across `badge`, `technology`, and `tag` (for example, `planned · p1` + `Plan reviewed` + `PLAN READY`). In equal-width grids using `editorial-v4` or `c4-modern-v2`, avoid combining `badge` pills with varying title lengths: a badge stays inline next to short titles but drops onto a second line under slightly longer titles, breaking list rhythm.
54
+
55
+ ## Add a card-anatomy reading guide
56
+
57
+ Whenever a diagram uses non-trivial editorial cards, structured workflow slots, custom accents/tones, shapes, or dashed/solid border rules, add a compact reading guide explaining **what each card slot, shape, fill, and border means** — a shape list in `page.legend` alone does not explain card slots:
58
+
59
+ - **Non-trivial workflow diagrams (recommended):** add a small left-side or top-left **card-anatomy breakdown** note/block (titled in the user's language, for example `Card anatomy (how to read slots)` or localized `Разбор карточки (как читать слоты)`) so readers immediately understand the slot structure (`Step title → Code anchor → • detail bullets`) without guessing. On non-`readingTree` canvases, place this `page.notes` item (`LM_Note`) using a Draw-supported anchor and `• ` (never `- `) bullets:
60
+ - **Grid layout (`layout.mode: "grid"`):** use an unoccupied left/top-left row cell via `page.notes[].cell: [row, column]` (PlantUML `LM_Note(id, text, $place="cell:<row>,<column>")`, for example `[0, 0]`) inside a column `0` that also contains at least one node in another row — a dedicated note-only column fails with `LAYOUT_COVERAGE`.
61
+ - **Automatic or explicit layout (`auto` / `explicit`):** `cell` fails with `GRID_CELL_CONFLICT`, unattached `page.notes` always render in the full-width bottom block, and native PlantUML `note left` / `note top` still place below the node with `NOTE_PLACED_BELOW`. Either anchor `below: "<leftmostNodeId>"` (`LM_Note(id, text, $place="below:<node>")`) under a left/top-left card, or use `page.footer` when the guide needs predictable bottom placement.
62
+ - Keep every `page.notes` block outside all area contours — or set `area` to its enclosing area — and check area clearance on the rendered specimen so it never triggers `AREA_NOTE_BOUNDARY`.
63
+ - **Foldable `readingTree` views and compact bottom guides:** put the 1–2 line reading guide in **`page.footer`** near `page.legend` (for example: `Card anatomy: Title → Code anchor / Status → • Details · Dashed border = proposed`). Never use `page.notes` (`role: 'note'`) on foldable `readingTree` views because it disables foldable reading-tree projection in the viewer.
@@ -18,4 +18,4 @@ Choose an existing document the reader can read from beginning to end. If the re
18
18
 
19
19
  Select the node or arrow in View mode. Read any short author's note, followed immediately by the first assigned document. Review the final meaningful section in the Inspector. Additional materials open separately. Under the `productRoot` reported by `locus-map doctor --json`, see “Inspector reading order” in `docs/VIEWER.md`.
20
20
 
21
- Markdown renders headings, lists, code and tables. The raw Markdown disclosure includes the leading YAML. Embedded HTML shows static text, headings, tables and figures within the import limits. For a long or interactive report, state what the static reader can show and provide the original path. See “Package reading files with the diagram” in `docs/DIAGRAM-SOURCE.md` under the same product root for limits and supported image paths.
21
+ Markdown renders headings, lists, code and tables. The raw Markdown disclosure includes the leading YAML. Embedded HTML shows static text, headings, tables and figures within the import limits. You can also attach up to 16 canvas diagrams (`.locus-map.json`, `.excalidraw`, `.puml`, `.map.json`, or `.mjs` at depth 1), which render inline in the Inspector with full-screen pop-out editing and retain `sourcePaths` provenance when supplied. For a long or interactive report, state what the static reader can show and provide the original path. See “Package reading files with the diagram” in `docs/DIAGRAM-SOURCE.md` for limits, canvas source compilation rules, and supported image paths, and `docs/VIEWER.md` for inline preview and pop-out navigation behavior.
@@ -23,6 +23,7 @@ const mapParts = (parts) =>
23
23
  export const areaElementId = geometry.areaElementId;
24
24
  export const areaGroupId = geometry.areaGroupId;
25
25
  export const ROUTE_DETOUR_WARN_RATIO = geometry.ROUTE_DETOUR_WARN_RATIO;
26
+ export const ADJACENT_DETOUR_WARN_RATIO = geometry.ADJACENT_DETOUR_WARN_RATIO ?? 2.5;
26
27
  export const areaGeometry = geometry.areaGeometry;
27
28
  export const canonicalAutoAreaGeometries = (model, ...args) =>
28
29
  geometry.canonicalAutoAreaGeometries(presentationInput(model), ...args);
@@ -1,8 +1,8 @@
1
1
  import { isModernProfile, isTitleFirstProfile } from '@locus-forge/locus-draw/source';
2
2
  import { mappingVersionForView } from '../contract/documentVersions.js';
3
- import { handwrittenElement, hasHandwrittenText } from '@locus-forge/locus-draw/scene';
3
+ import { handwrittenElement, hasHandwrittenText, presentation as drawPresentation } from '@locus-forge/locus-draw/scene';
4
4
  import { inspectPresentation } from '@locus-forge/locus-draw/geometry';
5
- import { toDrawInput,decodeDrawSnapshot } from './drawProjection.js';
5
+ import { toDrawInput, decodeDrawSnapshot } from './drawProjection.js';
6
6
  import { ARCHIMATE_PROFILE, archimateModelDiagnostics } from '../contract/archimateNotation.js';
7
7
  import { STRUCTURE_PROFILE, SCENARIO_PROFILE, structureRoleDiagnostics, scenarioRoleDiagnostics } from '../contract/presentationProfile.js';
8
8
  import { isDiagramPresentationProfile, relationPresentation } from '../contract/diagramPresentation.js';
@@ -23,7 +23,7 @@ import { layoutModel, legacyCe6cadaGuideWidth, nodeSize } from './layout.js';
23
23
  import { containsBox, firstPointY, inspectCueLayout } from './layoutDiagnostics.js';
24
24
  import { createGuideSkeleton, guideTextSource, isGuideElement, legacyCe6cadaOriginalText, nodeGroupId, nodeShape, presentationStyle } from './presentation.js';
25
25
  import { parseAndValidate } from '../contract/index.js';
26
- import { areaSceneParts, areaStyle } from './areas.js';
26
+ import { areaElementId, areaSceneParts, areaStyle } from './areas.js';
27
27
  import { legendReferencedNodeIds, legendReferencedRelationIds, protectedSceneParts, sceneCardHatches, verifiedNodeGroupTranslation } from './page.js';
28
28
  import { edgeGroupId, relationLabelText } from './relationLabels.js';
29
29
  import { routeEntersBox } from './routeGeometry.js';
@@ -38,6 +38,8 @@ export { SEMANTIC_MAPPING_VERSION } from '../contract/documentVersions.js';
38
38
  const MAPPING_KEYS = ['kind', 'modelId', 'role', 'semanticId', 'version'];
39
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
40
  const EDGE_ROLES = new Set(['arrow', 'label', 'label-mask']);
41
+ const AREA_HEADER_ROLES = new Set(['area-title', 'area-subtitle', 'area-note']);
42
+ const MAX_GRID_GAP = 240;
41
43
  const TIER_ROLES = ['type', 'tag', 'name', 'technology', 'responsibility', 'badge', 'outcome', 'claim', 'external'];
42
44
  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
45
  const active = element => element && !element.isDeleted;
@@ -461,9 +463,113 @@ export function inspectSavedSemanticScene(model, sceneOrElements, {
461
463
  return active(element) && ['rectangle', 'diamond', 'ellipse', 'line', 'freedraw'].includes(element.type)
462
464
  && paintOrder.get(element.id) < paintOrder.get(text.id) && paintedOpaqueFill(element) && containsBox(element, text);
463
465
  }).at(-1)?.backgroundColor ?? sceneBackground;
466
+ const collectAreaRowBounds = (areas, rootArea, cells) => {
467
+ const areaIds = new Set([rootArea?.id]);
468
+ const members = new Set(rootArea?.nodeIds ?? []);
469
+ const queue = [rootArea?.id];
470
+ while (queue.length) {
471
+ const currentId = queue.shift();
472
+ for (const candidate of areas) {
473
+ if (candidate?.parentId !== currentId || areaIds.has(candidate.id)) continue;
474
+ areaIds.add(candidate.id);
475
+ queue.push(candidate.id);
476
+ for (const nodeId of candidate.nodeIds ?? []) members.add(nodeId);
477
+ }
478
+ }
479
+ let minRow = Infinity;
480
+ let maxRow = -Infinity;
481
+ for (const nodeId of members) {
482
+ const cell = cells?.[nodeId];
483
+ if (Array.isArray(cell) && Number.isFinite(cell[0])) {
484
+ minRow = Math.min(minRow, cell[0]);
485
+ maxRow = Math.max(maxRow, cell[0]);
486
+ }
487
+ }
488
+ for (const note of model.page?.notes ?? []) {
489
+ if (areaIds.has(note?.area) && Array.isArray(note.cell) && Number.isFinite(note.cell[0])) {
490
+ minRow = Math.min(minRow, note.cell[0]);
491
+ maxRow = Math.max(maxRow, note.cell[0]);
492
+ }
493
+ }
494
+ return { minRow, maxRow };
495
+ };
496
+ let cachedEffectiveVerticalGap;
497
+ const effectiveVerticalGap = () => {
498
+ if (cachedEffectiveVerticalGap !== undefined) return cachedEffectiveVerticalGap;
499
+ if (Number.isFinite(model.layout?.grid?.gap?.[1])) {
500
+ cachedEffectiveVerticalGap = model.layout.grid.gap[1];
501
+ return cachedEffectiveVerticalGap;
502
+ }
503
+ try {
504
+ const sizes = new Map(model.nodes.map(node => [node.id, nodeSize(node, family, false, template)]));
505
+ const drawModel = { ...toDrawInput(model, { template, includeGuide: false }), presentationProfile: model.presentationProfile };
506
+ const resolved = drawPresentation.resolveGridLayout(drawModel, sizes);
507
+ if (Number.isFinite(resolved?.gap?.[1])) {
508
+ cachedEffectiveVerticalGap = resolved.gap[1];
509
+ return cachedEffectiveVerticalGap;
510
+ }
511
+ } catch { /* Fall back to profile default when grid layout cannot be resolved. */ }
512
+ cachedEffectiveVerticalGap = template.id === 'c4-reference-v1' ? 80 : 64;
513
+ return cachedEffectiveVerticalGap;
514
+ };
515
+ const gridAreaCollisionHint = (element, role, cover) => {
516
+ if (!AREA_HEADER_ROLES.has(role) || model.layout?.mode !== 'grid') return '';
517
+ const coverMapping = cover?.customData?.locusMap;
518
+ const isNodeCover = coverMapping?.kind === 'node' && coverMapping.role === 'shape';
519
+ const isAreaCover = coverMapping?.kind === 'page' && coverMapping.role === 'area-shape';
520
+ if (!isNodeCover && !isAreaCover) return '';
521
+ const cells = model.layout?.grid?.cells;
522
+ const area = protectedParts.get(element.id)?.area;
523
+ if (!area) return '';
524
+ const areas = Array.isArray(model.layout?.areas) ? model.layout.areas : [];
525
+ const areasById = new Map(areas.map(item => [item.id, item]));
526
+ const areaAncestors = new Set();
527
+ for (let cursor = area; cursor && !areaAncestors.has(cursor.id); cursor = areasById.get(cursor.parentId)) {
528
+ areaAncestors.add(cursor.id);
529
+ }
530
+ const { minRow: areaMinRow } = collectAreaRowBounds(areas, area, cells);
531
+ if (!Number.isFinite(areaMinRow)) return '';
532
+ let coverRow = -Infinity;
533
+ let coverArea;
534
+ if (isNodeCover) {
535
+ const coverCell = cells?.[coverMapping.semanticId];
536
+ if (!Array.isArray(coverCell) || !Number.isFinite(coverCell[0])) return '';
537
+ coverRow = coverCell[0];
538
+ coverArea = areas.find(candidate => candidate.nodeIds?.includes(coverMapping.semanticId));
539
+ } else {
540
+ coverArea = protectedParts.get(cover.id)?.area;
541
+ if (!coverArea || areaAncestors.has(coverArea.id)) return '';
542
+ coverRow = collectAreaRowBounds(areas, coverArea, cells).maxRow;
543
+ }
544
+ if (!(coverRow < areaMinRow)) return '';
545
+ const coverBottom = cover.y + cover.height;
546
+ if (!Number.isFinite(coverBottom)) return '';
547
+ const areaShape = byId.get(areaElementId(model, area.id, 'shape'));
548
+ if (!active(areaShape) || !Number.isFinite(areaShape.y)) {
549
+ return ` (grid row collision above area "${area.id}": separate the areas across rows)`;
550
+ }
551
+ const areaTop = areaShape.y;
552
+ let requiredIncrease = (coverBottom - areaTop) / (areaMinRow - coverRow);
553
+ for (let cursor = coverArea; cursor; cursor = areasById.get(cursor.parentId)) {
554
+ if (areaAncestors.has(cursor.id)) break;
555
+ const { maxRow: upperMaxRow } = collectAreaRowBounds(areas, cursor, cells);
556
+ if (!(upperMaxRow < areaMinRow)) continue;
557
+ const upperShape = byId.get(areaElementId(model, cursor.id, 'shape'));
558
+ if (active(upperShape) && Number.isFinite(upperShape.y) && Number.isFinite(upperShape.height)) {
559
+ requiredIncrease = Math.max(requiredIncrease, (upperShape.y + upperShape.height - areaTop) / (areaMinRow - upperMaxRow));
560
+ }
561
+ }
562
+ if (!(requiredIncrease > 0)) return '';
563
+ const minGap = Math.ceil(effectiveVerticalGap() + requiredIncrease);
564
+ if (minGap > MAX_GRID_GAP) {
565
+ return ` (grid row collision above area "${area.id}": separate the areas across rows; required vertical gap exceeds the ${MAX_GRID_GAP} px grid limit)`;
566
+ }
567
+ return ` (grid row collision above area "${area.id}": increase layout.grid.gap[1] to at least ${minGap} px, or separate the areas across rows)`;
568
+ };
464
569
  if (isDiagramPresentationProfile(template.id)) {
465
570
  const opaqueCovers = elements.filter(element => active(element) && paintedOpaqueFill(element)
466
571
  && ['rectangle', 'diamond', 'ellipse', 'line', 'freedraw'].includes(element.type));
572
+ const hintedPageElements = new Set();
467
573
  for (const element of elements) {
468
574
  const owner = element?.customData?.locusMap;
469
575
  if (!active(element) || !owner || owner.kind === 'page' && !protectedParts.has(element.id)
@@ -476,9 +582,11 @@ export function inspectSavedSemanticScene(model, sceneOrElements, {
476
582
  ? boxesOverlap(candidate, { ...element, width: Math.max(1, element.width), height: Math.max(1, element.height) }, 0)
477
583
  : containsBox(candidate, element)));
478
584
  if (!cover) continue;
585
+ const hint = owner.kind === 'page' ? gridAreaCollisionHint(element, owner.role, cover) : '';
586
+ if (hint) hintedPageElements.add(element.id);
479
587
  report(owner.kind === 'node' ? 'NODE_PART_HIDDEN' : owner.kind === 'page' ? 'PAGE_PART_HIDDEN'
480
588
  : owner.role === 'arrow' ? 'EDGE_HIDDEN' : 'EDGE_LABEL_HIDDEN', element,
481
- `Protected ${owner.kind} role ${owner.role} is fully painted behind opaque shape ${cover.id}.`);
589
+ `Protected ${owner.kind} role ${owner.role} is fully painted behind opaque shape ${cover.id}.${hint}`);
482
590
  }
483
591
  for (const [id, part] of protectedParts) {
484
592
  if (!part.mapped) continue;
@@ -490,7 +598,12 @@ export function inspectSavedSemanticScene(model, sceneOrElements, {
490
598
  && paintOrder.get(candidate.id) > paintOrder.get(element.id)
491
599
  && ((paintedObscuringFill(candidate) && (element.type === 'text' ? boxesOverlap(candidate, element) : containsBox(candidate, element)))
492
600
  || (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}.`);
601
+ if (cover) {
602
+ const hint = !hintedPageElements.has(element.id) && paintedObscuringFill(cover)
603
+ ? gridAreaCollisionHint(element, part.role, cover)
604
+ : '';
605
+ report('PAGE_PART_HIDDEN', element, `Protected page role ${part.role} is painted behind opaque shape or stroke ${cover.id}.${hint}`);
606
+ }
494
607
  }
495
608
  }
496
609
  for (const node of model.nodes) {