@locus-forge/locus-map 0.2.2-dev.20261206.g5e970d2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{abnfDiagram-VCTEODGH-JiCO6vo-.js → abnfDiagram-VCTEODGH-YtlnkH6t.js} +1 -1
- package/dist/assets/{ar-SA-G6X2FPQ2-BdzEBmp3.js → ar-SA-G6X2FPQ2-BH5AlOAp.js} +1 -1
- package/dist/assets/{architectureDiagram-5GKGNRK7-D7T_vJwe.js → architectureDiagram-5GKGNRK7-DKYw7IM8.js} +1 -1
- package/dist/assets/{az-AZ-76LH7QW2-BQ_SoVB7.js → az-AZ-76LH7QW2-DoI4xcyq.js} +1 -1
- package/dist/assets/{bg-BG-XCXSNQG7-DlH1olUf.js → bg-BG-XCXSNQG7-CS9_2dp-.js} +1 -1
- package/dist/assets/{blockDiagram-I7D4REHJ-DPz0LEjY.js → blockDiagram-I7D4REHJ-FelDwD1I.js} +1 -1
- package/dist/assets/{bn-BD-2XOGV67Q-CFIZU06C.js → bn-BD-2XOGV67Q-CoIu5tTK.js} +1 -1
- package/dist/assets/{c4Diagram-7LVT6UL2-B6uCi0Ol.js → c4Diagram-7LVT6UL2-Bh7h9IHP.js} +1 -1
- package/dist/assets/{ca-ES-6MX7JW3Y-Bpe3kOti.js → ca-ES-6MX7JW3Y-DAEHzf3H.js} +1 -1
- package/dist/assets/channel-DXsl7ag_.js +1 -0
- package/dist/assets/{chunk-2Q5K7J3B-DTWRWhpx.js → chunk-2Q5K7J3B-CgUOCDxa.js} +1 -1
- package/dist/assets/{chunk-5VM5RSS4-Dfr1HUAN.js → chunk-5VM5RSS4-B97oha-s.js} +1 -1
- package/dist/assets/{chunk-F27PBJKO-D_IVoCIK.js → chunk-F27PBJKO-BQGqI2Ej.js} +1 -1
- package/dist/assets/{chunk-IMKFNOWR-Boa_chn8.js → chunk-IMKFNOWR-C_sOeFT_.js} +1 -1
- package/dist/assets/{chunk-JWPE2WC7-RaK8jzc2.js → chunk-JWPE2WC7-DG5n2owX.js} +1 -1
- package/dist/assets/{chunk-POPQ4Y6H-D7xOpv6O.js → chunk-POPQ4Y6H-Y-h3THrr.js} +1 -1
- package/dist/assets/{chunk-SVP7TREG-XvJsx1jt.js → chunk-SVP7TREG-Dn6yBHtF.js} +1 -1
- package/dist/assets/{chunk-TICWLB2K-DZCVWmZG.js → chunk-TICWLB2K-Cb_yWOVI.js} +1 -1
- package/dist/assets/{chunk-XXDRQBXY-Djk-REAy.js → chunk-XXDRQBXY-QE51OqTj.js} +1 -1
- package/dist/assets/classDiagram-ZZMXUADV-DLyWZtYF.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-Cb3mb68m.js +1 -0
- package/dist/assets/{cose-bilkent-JH36ORCC-D6XaIbtG.js → cose-bilkent-JH36ORCC-Bt7ZI9S1.js} +1 -1
- package/dist/assets/{cs-CZ-2BRQDIVT-BdzgSHdJ.js → cs-CZ-2BRQDIVT-BKZzkx2M.js} +1 -1
- package/dist/assets/{cynefin-OW5HDTMX-BMTkMDG1.js → cynefin-OW5HDTMX-n6-BmECj.js} +1 -1
- package/dist/assets/{cynefinDiagram-5FMLGOSQ-C2s5i9h9.js → cynefinDiagram-5FMLGOSQ-Bq2km1fZ.js} +1 -1
- package/dist/assets/{d3-scale-BMIMKl27.js → d3-scale-C9oJHYFk.js} +1 -1
- package/dist/assets/{da-DK-5WZEPLOC-Bj-GFWHU.js → da-DK-5WZEPLOC-DWJm1_Yl.js} +1 -1
- package/dist/assets/{dagre-GXQ25YYZ-CMT8wlz0.js → dagre-GXQ25YYZ-D9EJj_nK.js} +1 -1
- package/dist/assets/{de-DE-XR44H4JA-JmpondAB.js → de-DE-XR44H4JA-D-5dMJXD.js} +1 -1
- package/dist/assets/{diagram-S7CK7UJ4-DU1blS3M.js → diagram-S7CK7UJ4-DX3qZf_H.js} +1 -1
- package/dist/assets/{diagram-UQ7AKVKN-0lWi4KDV.js → diagram-UQ7AKVKN-lODsxrZ9.js} +1 -1
- package/dist/assets/{diagram-VSXAHHWV-CrseWrhn.js → diagram-VSXAHHWV-B48xz8Xq.js} +1 -1
- package/dist/assets/{diagram-VX7I27RA-C5BMS8Ql.js → diagram-VX7I27RA-Dms2AfBa.js} +1 -1
- package/dist/assets/{diagram-Z3DM3KII-Cc3vq6b8.js → diagram-Z3DM3KII-BnwZBeJA.js} +1 -1
- package/dist/assets/{ebnfDiagram-PWID7BFC-ZF78imma.js → ebnfDiagram-PWID7BFC-OtcCvaIU.js} +1 -1
- package/dist/assets/{el-GR-BZB4AONW-BFslUpdm.js → el-GR-BZB4AONW-BZVA3YVN.js} +1 -1
- package/dist/assets/{engines-BtEtIBXt.js → engines-DPbXorS1.js} +1 -1
- package/dist/assets/{erDiagram-RLTQ6QDP-CjPjDn2i.js → erDiagram-RLTQ6QDP-Cnh8Gn9f.js} +1 -1
- package/dist/assets/{es-ES-U4NZUMDT-B0ezBTxQ.js → es-ES-U4NZUMDT-DKJIfS-2.js} +1 -1
- package/dist/assets/{eu-ES-A7QVB2H4-DP_gx2kf.js → eu-ES-A7QVB2H4-LHCF7lHc.js} +1 -1
- package/dist/assets/{fa-IR-HGAKTJCU-BuT1ELty.js → fa-IR-HGAKTJCU-CMtLvHxY.js} +1 -1
- package/dist/assets/{fi-FI-Z5N7JZ37-BAu_Cj7n.js → fi-FI-Z5N7JZ37-CUIzm5UM.js} +1 -1
- package/dist/assets/{flowDiagram-HODETNUW-yqPGWNdd.js → flowDiagram-HODETNUW-lneiCvFi.js} +1 -1
- package/dist/assets/{fr-FR-RHASNOE6-OF1CpgtN.js → fr-FR-RHASNOE6-DTJ2WS73.js} +1 -1
- package/dist/assets/{ganttDiagram-EL5Y4UJY-zUY5je2K.js → ganttDiagram-EL5Y4UJY-B2aJ2MDb.js} +1 -1
- package/dist/assets/{gitGraphDiagram-WWUBYQGX-oWrs7wy0.js → gitGraphDiagram-WWUBYQGX-C74V3MFm.js} +1 -1
- package/dist/assets/{gl-ES-HMX3MZ6V-CkJ47l98.js → gl-ES-HMX3MZ6V-BP8M0fQQ.js} +1 -1
- package/dist/assets/{he-IL-6SHJWFNN-D7CecRlh.js → he-IL-6SHJWFNN-BMd-Q0PW.js} +1 -1
- package/dist/assets/{hi-IN-IWLTKZ5I-CGlW2X-h.js → hi-IN-IWLTKZ5I-Ct52OkX5.js} +1 -1
- package/dist/assets/{hu-HU-A5ZG7DT2-Dq_n_tbp.js → hu-HU-A5ZG7DT2-NfIL6Jfo.js} +1 -1
- package/dist/assets/{id-ID-SAP4L64H-CotwO_06.js → id-ID-SAP4L64H-Osl6P1wb.js} +1 -1
- package/dist/assets/{index-CdVc9Lmz.js → index-CyQSsku0.js} +181 -181
- package/dist/assets/{index-Cv-tTxNC.css → index-DR6sd54W.css} +1 -1
- package/dist/assets/{index-VaWCb9bx.js → index-VfiAlFSM.js} +5 -5
- package/dist/assets/{infoDiagram-27XIBGKW-CYzIkNFW.js → infoDiagram-27XIBGKW-BjDMKD-X.js} +1 -1
- package/dist/assets/{ishikawaDiagram-5VMMS53U-DkgUsuk5.js → ishikawaDiagram-5VMMS53U-DjrBmz8f.js} +1 -1
- package/dist/assets/{it-IT-JPQ66NNP-h97o81us.js → it-IT-JPQ66NNP-vT-EYZw5.js} +1 -1
- package/dist/assets/{ja-JP-DBVTYXUO-M6EVfh0o.js → ja-JP-DBVTYXUO-DexyPC4p.js} +1 -1
- package/dist/assets/{journeyDiagram-3NMN7TZE-CuKkNrJy.js → journeyDiagram-3NMN7TZE-Bs5RL4Ef.js} +1 -1
- package/dist/assets/{kaa-6HZHGXH3-DUy85zzz.js → kaa-6HZHGXH3-0BLUFlXY.js} +1 -1
- package/dist/assets/{kab-KAB-ZGHBKWFO-ChL-fKtk.js → kab-KAB-ZGHBKWFO-ByGN5_Fc.js} +1 -1
- package/dist/assets/{kanban-definition-UXKFOSKX-DkOxt3kf.js → kanban-definition-UXKFOSKX-DgcopnbA.js} +1 -1
- package/dist/assets/{kk-KZ-P5N5QNE5-DY6ucSGD.js → kk-KZ-P5N5QNE5-DlK-wQWu.js} +1 -1
- package/dist/assets/{km-KH-HSX4SM5Z-BAaS4014.js → km-KH-HSX4SM5Z-BZ75967_.js} +1 -1
- package/dist/assets/{ko-KR-MTYHY66A-D-r3mJ1R.js → ko-KR-MTYHY66A-C-copauZ.js} +1 -1
- package/dist/assets/{ku-TR-6OUDTVRD-Dk1GCoOP.js → ku-TR-6OUDTVRD-CNqY-Uj4.js} +1 -1
- package/dist/assets/{layout-DtNEGI4_.js → layout-B8D2HGrb.js} +1 -1
- package/dist/assets/{lt-LT-XHIRWOB4-3Z2Ui1VZ.js → lt-LT-XHIRWOB4-BopE_XJX.js} +1 -1
- package/dist/assets/{lv-LV-5QDEKY6T-Bg59rOkR.js → lv-LV-5QDEKY6T--7hU3JSZ.js} +1 -1
- package/dist/assets/{mindmap-definition-YA3MSWOX-Dcs8eV7p.js → mindmap-definition-YA3MSWOX-DYOVTEyE.js} +1 -1
- package/dist/assets/{mr-IN-CRQNXWMA-DepTOG29.js → mr-IN-CRQNXWMA-DydjVI2G.js} +1 -1
- package/dist/assets/{my-MM-5M5IBNSE-4KqL4Tav.js → my-MM-5M5IBNSE-D6ewM-EV.js} +1 -1
- package/dist/assets/{nb-NO-T6EIAALU-5YWO_l3W.js → nb-NO-T6EIAALU--iqOwj15.js} +1 -1
- package/dist/assets/{nl-NL-IS3SIHDZ-QlAndkM2.js → nl-NL-IS3SIHDZ-Bnhl_SmS.js} +1 -1
- package/dist/assets/{nn-NO-6E72VCQL-BscwhEDW.js → nn-NO-6E72VCQL-CIx7sLAQ.js} +1 -1
- package/dist/assets/{oc-FR-POXYY2M6-k7bYbSQj.js → oc-FR-POXYY2M6-DWt5a8Ow.js} +1 -1
- package/dist/assets/{pa-IN-N4M65BXN-jxBFwrWj.js → pa-IN-N4M65BXN-BW3LNure.js} +1 -1
- package/dist/assets/{pegDiagram-XKGWAZYB-zM-VZA3r.js → pegDiagram-XKGWAZYB-ixSY_9-e.js} +1 -1
- package/dist/assets/{pica-CsWQ4DPU.js → pica-Dn0N8xAP.js} +1 -1
- package/dist/assets/{pieDiagram-E7YTZNPT-C60FE0D8.js → pieDiagram-E7YTZNPT-BbCRV6Qi.js} +1 -1
- package/dist/assets/{pl-PL-T2D74RX3-be8atU_l.js → pl-PL-T2D74RX3-7nXJ8SiV.js} +1 -1
- package/dist/assets/{pt-BR-5N22H2LF-CSE0O2fj.js → pt-BR-5N22H2LF-DKGGof4J.js} +1 -1
- package/dist/assets/{pt-PT-UZXXM6DQ-5rnYJhy1.js → pt-PT-UZXXM6DQ-DCLEXuhk.js} +1 -1
- package/dist/assets/{quadrantDiagram-AXDQQJYC-DyH84hx6.js → quadrantDiagram-AXDQQJYC-Bvh_H4wg.js} +1 -1
- package/dist/assets/{railroadDiagram-O6MQD6OU-DCrJgP9s.js → railroadDiagram-O6MQD6OU-DHC3neQ8.js} +1 -1
- package/dist/assets/{requirementDiagram-BXWQKSXE-C78-QlFo.js → requirementDiagram-BXWQKSXE-DuCkl3u1.js} +1 -1
- package/dist/assets/{ro-RO-JPDTUUEW-Gh6EgC27.js → ro-RO-JPDTUUEW-Cwf4k3Ou.js} +1 -1
- package/dist/assets/{ru-RU-B4JR7IUQ-BUWESZhq.js → ru-RU-B4JR7IUQ-sZF6fySs.js} +1 -1
- package/dist/assets/{sankeyDiagram-P5KCCOFB-D_MOkKEs.js → sankeyDiagram-P5KCCOFB-1ELTqwtI.js} +1 -1
- package/dist/assets/{sequenceDiagram-WJ2MYXX4-BeQbHZRB.js → sequenceDiagram-WJ2MYXX4-BK8Ou8Dz.js} +1 -1
- package/dist/assets/{si-LK-N5RQ5JYF-C9pnvQMf.js → si-LK-N5RQ5JYF-DmYhXIqO.js} +1 -1
- package/dist/assets/{sizeCapture-INFHLROL-DUn-Mus_.js → sizeCapture-INFHLROL-BKwx3lxX.js} +1 -1
- package/dist/assets/{sk-SK-C5VTKIMK-FnkPBibb.js → sk-SK-C5VTKIMK-BRLu35YX.js} +1 -1
- package/dist/assets/{sl-SI-NN7IZMDC-Cwrqj_B9.js → sl-SI-NN7IZMDC-CMjfvJTr.js} +1 -1
- package/dist/assets/{stateDiagram-D77RDMKH-C3EF3jQ3.js → stateDiagram-D77RDMKH-CDwJ9XLN.js} +1 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-BZjKARGY.js +1 -0
- package/dist/assets/{subset-shared.chunk-8ifLcT_D.js → subset-shared.chunk-DngAvf0H.js} +1 -1
- package/dist/assets/{subset-worker.chunk-DrNTybDR.js → subset-worker.chunk-DkH_mqr5.js} +1 -1
- package/dist/assets/{sv-SE-XGPEYMSR-Btz80pGx.js → sv-SE-XGPEYMSR-G4S06sbd.js} +1 -1
- package/dist/assets/{swimlanes-42K2YHIH-B2_kGhPA.js → swimlanes-42K2YHIH-Z9u8PDi-.js} +1 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-D0kM5xmS.js +8 -0
- package/dist/assets/{ta-IN-2NMHFXQM-B0bWtgu1.js → ta-IN-2NMHFXQM-DgBbCQ8S.js} +1 -1
- package/dist/assets/{th-TH-HPSO5L25-DgC0yFw3.js → th-TH-HPSO5L25-o9u4fVfq.js} +1 -1
- package/dist/assets/{timeline-definition-24CTP7MA-Bu0W3Mcy.js → timeline-definition-24CTP7MA-BNgrm1r_.js} +1 -1
- package/dist/assets/{tr-TR-DEFEU3FU-C9Mmy6ri.js → tr-TR-DEFEU3FU-BqqSdzoL.js} +1 -1
- package/dist/assets/{uk-UA-QMV73CPH-rxEnqB_i.js → uk-UA-QMV73CPH-Dna46aia.js} +1 -1
- package/dist/assets/{vennDiagram-4TSXK5OY-63JTeOph.js → vennDiagram-4TSXK5OY-CHwUI40M.js} +1 -1
- package/dist/assets/{vi-VN-M7AON7JQ-DOVa-vAT.js → vi-VN-M7AON7JQ-CbKRBQPB.js} +1 -1
- package/dist/assets/{wardleyDiagram-VM6X3IG4-Bct0TRuC.js → wardleyDiagram-VM6X3IG4-KB0xBjXX.js} +1 -1
- package/dist/assets/{xychartDiagram-S5SC5T6Z-C21zgvSM.js → xychartDiagram-S5SC5T6Z-B3LOQLL-.js} +1 -1
- package/dist/assets/{zh-CN-LNUGB5OW-MyifsmQ8.js → zh-CN-LNUGB5OW-BFjA6n_2.js} +1 -1
- package/dist/assets/{zh-HK-E62DVLB3-Cp55UViv.js → zh-HK-E62DVLB3-BoTU6iS7.js} +1 -1
- package/dist/assets/{zh-TW-RAJ6MFWO-DMy6SZap.js → zh-TW-RAJ6MFWO-DB4kdpOS.js} +1 -1
- package/dist/index.html +2 -2
- package/docs/LOCAL-DOCUMENT.md +36 -83
- package/docs/VIEWER-LAUNCH.md +24 -27
- package/docs/adr/ADR-002-2026-12-03-project-selector/ADR-002-2026-12-03-project-selector.md +1 -1
- package/docs/adr/ADR-005-2026-12-04-named-libraries/ADR-005-2026-12-04-named-libraries.md +1 -1
- package/package.json +1 -1
- package/scripts/lib/library-directory.mjs +1 -1
- package/scripts/lib/map-build-invocation.mjs +5 -1
- package/scripts/lib/map-viewer-server.mjs +148 -20
- package/scripts/lib/project-catalog.mjs +250 -95
- package/scripts/lib/project-registry.mjs +151 -47
- package/scripts/lib/view-args.mjs +25 -45
- package/scripts/locus-map.mjs +12 -11
- package/scripts/open-map.mjs +18 -8
- package/skills/locus-map/SKILL.md +6 -4
- package/skills/locus-map/references/checks.md +1 -1
- package/skills/locus-map/references/component-checkpoint.md +4 -4
- package/skills/locus-map/references/folder.md +2 -2
- package/skills/locus-map/references/selection.md +2 -2
- package/skills/locus-map/references/visual-composition.md +20 -20
- package/skills/locus-map-draft/SKILL.md +76 -76
- package/skills/locus-map-draft/references/divergence-and-formats.md +58 -107
- package/skills/locus-map-primitives/SKILL.md +11 -14
- package/skills/locus-map-primitives/assets/batch/README.md +2 -2
- package/skills/locus-map-primitives/assets/batch/build.mjs +1 -1
- package/skills/locus-map-primitives/assets/batch/{project.json → topic.json} +13 -20
- package/src/bundle/projectClient.js +5 -3
- package/src/main.jsx +25 -1
- package/src/viewer/ControlIcon.jsx +2 -0
- package/src/viewer/ProjectLocation.jsx +25 -7
- package/src/viewer/ProjectRail.jsx +9 -2
- package/src/viewer/ProjectViewChainViewer.jsx +35 -16
- package/src/viewer/SketchCanvas.jsx +124 -15
- package/src/viewer/ViewChainViewer.jsx +14 -5
- package/src/viewer/ViewerSettings.jsx +208 -0
- package/src/viewer/projectContents.js +248 -55
- package/src/viewer/projectNavigation.js +27 -3
- package/src/viewer/viewChain.css +52 -1
- package/dist/assets/channel-DB3atv5o.js +0 -1
- package/dist/assets/classDiagram-ZZMXUADV-CzvsXoj_.js +0 -1
- package/dist/assets/classDiagram-v2-VYDZK3BY-HxwJpdPt.js +0 -1
- package/dist/assets/stateDiagram-v2-MP3YSRHH-CVQHmIvK.js +0 -1
- package/dist/assets/swimlanesDiagram-VR7AAH4N-C1rOmrkT.js +0 -8
package/dist/assets/{xychartDiagram-S5SC5T6Z-C21zgvSM.js → xychartDiagram-S5SC5T6Z-B3LOQLL-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as pi,g as mi,q as $t,p as yi,a as bi,b as Ai,_ as n,l as Ut,G as wi,d as Ci,r as Si,A as Tt,i as Ri,D as Gt,E as _i,K as ki,L as Ti,M as Wt}from"./index-
|
|
1
|
+
import{s as pi,g as mi,q as $t,p as yi,a as bi,b as Ai,_ as n,l as Ut,G as wi,d as Ci,r as Si,A as Tt,i as Ri,D as Gt,E as _i,K as ki,L as Ti,M as Wt}from"./index-VfiAlFSM.js";import{b as Xt,l as Nt}from"./d3-scale-C9oJHYFk.js";import"./index-CyQSsku0.js";var St=(function(){var e=n(function(V,r,g,u){for(g=g||{},u=V.length;u--;g[V[u]]=r);return g},"o"),t=[1,10,12,14,16,18,19,21,23],i=[2,6],s=[1,3],a=[1,5],h=[1,6],l=[1,7],y=[1,5,10,12,14,16,18,19,21,23,36,37,38],d=[1,25],p=[1,26],_=[1,28],k=[1,29],P=[1,30],F=[1,31],W=[1,32],v=[1,33],B=[1,34],b=[1,35],T=[1,36],c=[1,37],I=[1,43],O=[1,42],X=[1,47],N=[1,50],S=[1,10,12,14,16,18,19,21,23,36,37,38],H=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38],A=[1,10,12,14,16,18,19,21,23,24,26,28,29,36,37,38,42,43,44,45,46,47,48,49,50,51],w=[1,65],M=[26,28],R={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,dataPoints:25,SQUARE_BRACES_END:26,dataPoint:27,COMMA:28,NUMBER_WITH_DECIMAL:29,STR:30,xAxisData:31,bandData:32,ARROW_DELIMITER:33,commaSeparatedTexts:34,yAxisData:35,NEWLINE:36,SEMI:37,EOF:38,alphaNum:39,MD_STR:40,alphaNumToken:41,AMP:42,NUM:43,ALPHA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,MINUS:50,UNDERSCORE:51,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",28:"COMMA",29:"NUMBER_WITH_DECIMAL",30:"STR",33:"ARROW_DELIMITER",36:"NEWLINE",37:"SEMI",38:"EOF",40:"MD_STR",42:"AMP",43:"NUM",44:"ALPHA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"MINUS",51:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[27,2],[27,1],[13,1],[13,2],[13,1],[31,1],[31,3],[32,3],[34,3],[34,1],[15,1],[15,2],[15,1],[35,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[39,1],[39,2],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1],[41,1]],performAction:n(function(r,g,u,x,C,o,lt){var f=o.length-1;switch(C){case 5:x.setOrientation(o[f]);break;case 9:x.setDiagramTitle(o[f].text.trim());break;case 12:x.setLineData({text:"",type:"text"},o[f]);break;case 13:x.setLineData(o[f-1],o[f]);break;case 14:x.setBarData({text:"",type:"text"},o[f]);break;case 15:x.setBarData(o[f-1],o[f]);break;case 16:this.$=o[f].trim(),x.setAccTitle(this.$);break;case 17:case 18:this.$=o[f].trim(),x.setAccDescription(this.$);break;case 19:this.$=o[f-1];break;case 20:case 30:this.$=[o[f-2],...o[f]];break;case 21:case 31:this.$=[o[f]];break;case 22:this.$={value:Number(o[f-1]),label:o[f]};break;case 23:this.$={value:Number(o[f]),label:""};break;case 24:x.setXAxisTitle(o[f]);break;case 25:x.setXAxisTitle(o[f-1]);break;case 26:x.setXAxisTitle({type:"text",text:""});break;case 27:x.setXAxisBand(o[f]);break;case 28:x.setXAxisRangeData(Number(o[f-2]),Number(o[f]));break;case 29:this.$=o[f-1];break;case 32:x.setYAxisTitle(o[f]);break;case 33:x.setYAxisTitle(o[f-1]);break;case 34:x.setYAxisTitle({type:"text",text:""});break;case 35:x.setYAxisRangeData(Number(o[f-2]),Number(o[f]));break;case 39:this.$={text:o[f],type:"text"};break;case 40:this.$={text:o[f],type:"text"};break;case 41:this.$={text:o[f],type:"markdown"};break;case 42:this.$=o[f];break;case 43:this.$=o[f-1]+""+o[f];break}},"anonymous"),table:[e(t,i,{3:1,4:2,7:4,5:s,36:a,37:h,38:l}),{1:[3]},e(t,i,{4:2,7:4,3:8,5:s,36:a,37:h,38:l}),e(t,i,{4:2,7:4,6:9,3:10,5:s,8:[1,11],36:a,37:h,38:l}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},e(y,[2,36]),e(y,[2,37]),e(y,[2,38]),{1:[2,1]},e(t,i,{4:2,7:4,3:21,5:s,36:a,37:h,38:l}),{1:[2,3]},e(y,[2,5]),e(t,[2,7],{4:22,36:a,37:h,38:l}),{11:23,30:d,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},{11:39,13:38,24:I,29:O,30:d,31:40,32:41,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},{11:45,15:44,29:X,30:d,35:46,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},{11:49,17:48,24:N,30:d,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},{11:52,17:51,24:N,30:d,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},{20:[1,53]},{22:[1,54]},e(S,[2,18]),{1:[2,2]},e(S,[2,8]),e(S,[2,9]),e(H,[2,39],{41:55,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c}),e(H,[2,40]),e(H,[2,41]),e(A,[2,42]),e(A,[2,44]),e(A,[2,45]),e(A,[2,46]),e(A,[2,47]),e(A,[2,48]),e(A,[2,49]),e(A,[2,50]),e(A,[2,51]),e(A,[2,52]),e(A,[2,53]),e(S,[2,10]),e(S,[2,24],{32:41,31:56,24:I,29:O}),e(S,[2,26]),e(S,[2,27]),{33:[1,57]},{11:59,30:d,34:58,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},e(S,[2,11]),e(S,[2,32],{35:60,29:X}),e(S,[2,34]),{33:[1,61]},e(S,[2,12]),{17:62,24:N},{25:63,27:64,29:w},e(S,[2,14]),{17:66,24:N},e(S,[2,16]),e(S,[2,17]),e(A,[2,43]),e(S,[2,25]),{29:[1,67]},{26:[1,68]},{26:[2,31],28:[1,69]},e(S,[2,33]),{29:[1,70]},e(S,[2,13]),{26:[1,71]},{26:[2,21],28:[1,72]},e(M,[2,23],{30:[1,73]}),e(S,[2,15]),e(S,[2,28]),e(S,[2,29]),{11:59,30:d,34:74,39:24,40:p,41:27,42:_,43:k,44:P,45:F,46:W,47:v,48:B,49:b,50:T,51:c},e(S,[2,35]),e(S,[2,19]),{25:75,27:64,29:w},e(M,[2,22]),{26:[2,30]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],74:[2,30],75:[2,20]},parseError:n(function(r,g){if(g.recoverable)this.trace(r);else{var u=new Error(r);throw u.hash=g,u}},"parseError"),parse:n(function(r){var g=this,u=[0],x=[],C=[null],o=[],lt=this.table,f="",xt=0,Bt=0,ui=2,Ot=1,xi=o.slice.call(arguments,1),D=Object.create(this.lexer),$={yy:{}};for(var bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,bt)&&($.yy[bt]=this.yy[bt]);D.setInput(r,$.yy),$.yy.lexer=D,$.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var At=D.yylloc;o.push(At);var di=D.options&&D.options.ranges;typeof $.yy.parseError=="function"?this.parseError=$.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fi(E){u.length=u.length-2*E,C.length=C.length-E,o.length=o.length-E}n(fi,"popStack");function Vt(){var E;return E=x.pop()||D.lex()||Ot,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=g.symbols_[E]||E),E}n(Vt,"lex");for(var L,U,z,wt,j={},dt,Y,Ft,ft;;){if(U=u[u.length-1],this.defaultActions[U]?z=this.defaultActions[U]:((L===null||typeof L>"u")&&(L=Vt()),z=lt[U]&<[U][L]),typeof z>"u"||!z.length||!z[0]){var Ct="";ft=[];for(dt in lt[U])this.terminals_[dt]&&dt>ui&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?Ct="Parse error on line "+(xt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[L]||L)+"'":Ct="Parse error on line "+(xt+1)+": Unexpected "+(L==Ot?"end of input":"'"+(this.terminals_[L]||L)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[L]||L,line:D.yylineno,loc:At,expected:ft})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+L);switch(z[0]){case 1:u.push(L),C.push(D.yytext),o.push(D.yylloc),u.push(z[1]),L=null,Bt=D.yyleng,f=D.yytext,xt=D.yylineno,At=D.yylloc;break;case 2:if(Y=this.productions_[z[1]][1],j.$=C[C.length-Y],j._$={first_line:o[o.length-(Y||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(Y||1)].first_column,last_column:o[o.length-1].last_column},di&&(j._$.range=[o[o.length-(Y||1)].range[0],o[o.length-1].range[1]]),wt=this.performAction.apply(j,[f,Bt,xt,$.yy,z[1],C,o].concat(xi)),typeof wt<"u")return wt;Y&&(u=u.slice(0,-1*Y*2),C=C.slice(0,-1*Y),o=o.slice(0,-1*Y)),u.push(this.productions_[z[1]][0]),C.push(j.$),o.push(j._$),Ft=lt[u[u.length-2]][u[u.length-1]],u.push(Ft);break;case 3:return!0}}return!0},"parse")},rt=(function(){var V={EOF:1,parseError:n(function(g,u){if(this.yy.parser)this.yy.parser.parseError(g,u);else throw new Error(g)},"parseError"),setInput:n(function(r,g){return this.yy=g||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var g=r.match(/(?:\r\n?|\n).*/g);return g?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:n(function(r){var g=r.length,u=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-g),this.offset-=g;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),u.length-1&&(this.yylineno-=u.length-1);var C=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:u?(u.length===x.length?this.yylloc.first_column:0)+x[x.length-u.length].length-u[0].length:this.yylloc.first_column-g},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-g]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(r){this.unput(this.match.slice(r))},"less"),pastInput:n(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var r=this.pastInput(),g=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-CyQSsku0.js";var u={paste:"粘贴",pasteAsPlaintext:"粘贴为纯文本",pasteCharts:"粘贴图表",selectAll:"全部选中",multiSelect:"添加元素到选区",moveCanvas:"移动画布",cut:"剪切",copy:"拷贝",copyAsPng:"复制为 PNG 到剪贴板",copyAsSvg:"复制为 SVG 到剪贴板",copyText:"复制文本到剪贴板",copySource:"复制源码到剪贴板",convertToCode:"转换成代码",bringForward:"上移一层",sendToBack:"置于底层",bringToFront:"置于顶层",sendBackward:"下移一层",delete:"删除",copyStyles:"拷贝样式",pasteStyles:"粘贴样式",stroke:"描边",background:"背景",fill:"填充",strokeWidth:"描边宽度",strokeStyle:"边框样式",strokeStyle_solid:"实线",strokeStyle_dashed:"虚线",strokeStyle_dotted:"点虚线",sloppiness:"线条风格",opacity:"透明度",textAlign:"文本对齐",edges:"边角",sharp:"尖锐",round:"圆润",arrowheads:"端点",arrowhead_none:"无",arrowhead_arrow:"箭头",arrowhead_bar:"条状",arrowhead_circle:"圆点",arrowhead_circle_outline:"圆点(空心)",arrowhead_triangle:"三角箭头",arrowhead_triangle_outline:"三角箭头(空心)",arrowhead_diamond:"菱形",arrowhead_diamond_outline:"菱形(空心)",fontSize:"字体大小",fontFamily:"字体",addWatermark:"添加 “使用 Excalidraw 创建” 水印",handDrawn:"手写",normal:"普通",code:"代码",small:"小",medium:"中",large:"大",veryLarge:"加大",solid:"实心",hachure:"线条",zigzag:"之字形折线",crossHatch:"交叉线条",thin:"细",bold:"粗",left:"左对齐",center:"居中",right:"右对齐",extraBold:"特粗",architect:"朴素",artist:"艺术",cartoonist:"漫画家",fileTitle:"文件名",colorPicker:"取色器",canvasColors:"画布上的",canvasBackground:"画布背景",drawingCanvas:"绘制 Canvas",layers:"图层",actions:"操作",language:"语言",liveCollaboration:"实时协作...",duplicateSelection:"复制",untitled:"无标题",name:"名字",yourName:"您的姓名",madeWithExcalidraw:"使用 Excalidraw 创建",group:"编组",ungroup:"解除编组",collaborators:"协作者",showGrid:"显示网格",addToLibrary:"添加到素材库中",removeFromLibrary:"从素材库中移除",libraryLoadingMessage:"正在加载素材库…",libraries:"浏览素材库",loadingScene:"正在加载绘图…",align:"对齐",alignTop:"顶部对齐",alignBottom:"底端对齐",alignLeft:"左对齐",alignRight:"右对齐",centerVertically:"垂直居中",centerHorizontally:"水平居中",distributeHorizontally:"水平等距分布",distributeVertically:"垂直等距分布",flipHorizontal:"水平翻转",flipVertical:"垂直翻转",viewMode:"查看模式",share:"分享",showStroke:"显示描边颜色选择器",showBackground:"显示背景颜色选择器",toggleTheme:"切换主题",personalLib:"个人素材库",excalidrawLib:"Excalidraw 素材库",decreaseFontSize:"缩小字体大小",increaseFontSize:"放大字体大小",unbindText:"取消文本绑定",bindText:"将文本绑定到容器",createContainerFromText:"将文本包围在容器中",link:{edit:"编辑链接",editEmbed:"编辑链接与嵌入",create:"新建链接",createEmbed:"创建链接与嵌入",label:"链接",labelEmbed:"链接与嵌入",empty:"未设定链接"},lineEditor:{edit:"编辑线条",exit:"退出线条编辑"},elementLock:{lock:"锁定",unlock:"解除锁定",lockAll:"全部锁定",unlockAll:"全部解锁"},statusPublished:"已发布",sidebarLock:"侧边栏常驻",selectAllElementsInFrame:"选择画框中的所有元素",removeAllElementsFromFrame:"分离出画框中的所有元素",eyeDropper:"从画布上取色",textToDiagram:"文字至图表",prompt:"Prompt"},F={noItems:"尚未添加任何项目……",hint_emptyLibrary:"选中画布上的项目添加到此处,或从下方的公共素材库中导入。",hint_emptyPrivateLibrary:"选中画布上的项目添加到此处。"},E={clearReset:"重置画布",exportJSON:"导出为文件",exportImage:"导出图片...",export:"保存到...",copyToClipboard:"复制到剪贴板",save:"保存至当前文件",saveAs:"保存为",load:"打开",getShareableLink:"获取共享链接",close:"关闭",selectLanguage:"选择语言",scrollBackToContent:"滚动回到内容",zoomIn:"放大",zoomOut:"缩小",resetZoom:"重置缩放",menu:"菜单",done:"完成",edit:"编辑",undo:"撤销",redo:"重做",resetLibrary:"重置素材库",createNewRoom:"新建会议室",fullScreen:"全屏",darkMode:"深色模式",lightMode:"浅色模式",zenMode:"禅模式",objectsSnapMode:"吸附至对象",exitZenMode:"退出禅模式",cancel:"取消",clear:"清除",remove:"删除",embed:"切换嵌入",publishLibrary:"发布",submit:"提交",confirm:"确定",embeddableInteractionButton:"点击以开始交互"},e={clearReset:"这将会清除整个画布。您是否要继续?",couldNotCreateShareableLink:"无法创建共享链接",couldNotCreateShareableLinkTooBig:"无法创建可共享链接:画布过大",couldNotLoadInvalidFile:"无法加载无效的文件",importBackendFailed:"从后端导入失败。",cannotExportEmptyCanvas:"无法导出空白画布。",couldNotCopyToClipboard:"无法复制到剪贴板。",decryptFailed:"无法解密数据。",uploadedSecurly:"上传已被端到端加密保护,这意味着 Excalidraw 的服务器和第三方都无法读取内容。",loadSceneOverridePrompt:"加载外部绘图将取代您现有的内容。您想要继续吗?",collabStopOverridePrompt:`停止会话将覆盖您先前本地存储的绘图。 您确定吗?
|
|
2
2
|
|
|
3
3
|
(如果您想保持本地绘图,只需关闭浏览器选项卡。)`,errorAddingToLibrary:"无法将项目添加到素材库中",errorRemovingFromLibrary:"无法从素材库中移除项目",confirmAddLibrary:"这将添加 {{numShapes}} 个形状到您的素材库中。您确定吗?",imageDoesNotContainScene:"此图像似乎不包含任何画布数据。您是否在导出时启用了画布嵌入功能?",cannotRestoreFromImage:"无法从此图像文件恢复画布",invalidSceneUrl:"无法从提供的 URL 导入场景。它或者格式不正确,或者不包含有效的 Excalidraw JSON 数据。",resetLibrary:"这将会清除你的素材库。你确定要这么做吗?",removeItemsFromsLibrary:"确定要从素材库中删除 {{count}} 个项目吗?",invalidEncryptionKey:"密钥必须包含22个字符。实时协作已被禁用。",collabOfflineWarning:`无网络连接。
|
|
4
4
|
您的改动将不会被保存!`},D={unsupportedFileType:"不支持的文件格式。",imageInsertError:"无法插入图像。请稍后再试……",fileTooBig:"文件过大。最大允许的大小为 {{maxSize}}。",svgImageInsertError:"无法插入 SVG 图像。该 SVG 标记似乎是无效的。",failedToFetchImage:"无法获取图片。",invalidSVGString:"无效的 SVG。",cannotResolveCollabServer:"无法连接到实时协作服务器。请重新加载页面并重试。",importLibraryError:"无法加载素材库",collabSaveFailed:"无法保存到后端数据库。如果问题持续存在,您应该保存文件到本地,以确保您的工作不会丢失。",collabSaveFailed_sizeExceeded:"无法保存到后端数据库,画布似乎过大。您应该保存文件到本地,以确保您的工作不会丢失。",imageToolNotSupported:"图片已被禁用。",brave_measure_text_error:{line1:"您似乎正在使用 Brave 浏览器并启用了<bold>积极阻止指纹识别</bold>的设置。",line2:"这可能会破坏绘图中的 <bold>文本元素</bold>。",line3:"我们强烈建议禁用此设置。您可以按照<link>这些步骤</link>来设置。",line4:"如果禁用此设置无法修复文本元素的显示,请在 GitHub 上提交一个 <issueLink>issue</issueLink> ,或者在 <discordLink>Discord</discordLink> 上反馈"},libraryElementTypeError:{embeddable:"嵌入的元素不能被添加到素材库。",iframe:"不能将 IFrame 元素添加到素材库中。",image:"我们不久将支持添加图片到素材库"},asyncPasteFailedOnRead:"无法粘贴(无法读取系统剪贴板)。",asyncPasteFailedOnParse:"无法粘贴。",copyToSystemClipboardFailed:"无法复制到剪贴板。"},B={selection:"选择",image:"插入图像",rectangle:"矩形",diamond:"菱形",ellipse:"椭圆",arrow:"箭头",line:"线条",freedraw:"自由书写",text:"文字",library:"素材库",lock:"绘制后保持所选的工具栏状态",penMode:"笔模式 – 避免误触",link:"为选中的形状添加/更新链接",eraser:"橡皮",frame:"画框工具",magicframe:"线框图至代码",embeddable:"嵌入网页",laser:"激光笔",hand:"抓手(平移工具)",extraTools:"更多工具",mermaidToExcalidraw:"Mermaid 至 Excalidraw",magicSettings:"AI 设置"},C={canvasActions:"画布动作",selectedShapeActions:"选定形状操作",shapes:"形状"},a={canvasPanning:"要移动画布,请按住鼠标滚轮或空格键同时拖拽鼠标,或使用抓手工具。",linearElement:"点击创建多个点 拖动创建直线",freeDraw:"点击并拖动,完成时松开",text:"提示:您也可以使用选择工具双击任意位置来添加文字",embeddable:"点击并拖动以创建嵌入网页",text_selected:"双击或按回车键以编辑文本",text_editing:"按下 Escape 或 CtrlOrCmd+ENTER 完成编辑",linearElementMulti:"点击最后一个点或按下 Esc/Enter 来完成",lockAngle:"可以按住 Shift 来约束角度",resize:`您可以按住SHIFT来限制比例大小,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-CyQSsku0.js";var e={paste:"貼上",pasteAsPlaintext:"",pasteCharts:"貼上圖表",selectAll:"全選",multiSelect:"多重選取",moveCanvas:"移動畫布",cut:"剪下",copy:"複製",copyAsPng:"以 PNG 格式複製",copyAsSvg:"以 SVG 格式複製",copyText:"",copySource:"",convertToCode:"",bringForward:"往上一層移動",sendToBack:"移到最底層",bringToFront:"移到最上層",sendBackward:"往下一層移動",delete:"刪除",copyStyles:"複製樣式",pasteStyles:"套用樣式",stroke:"筆跡顏色",background:"填充顏色",fill:"背景樣式",strokeWidth:"筆跡寬度",strokeStyle:"筆跡線條",strokeStyle_solid:"實線",strokeStyle_dashed:"虛線(較密)",strokeStyle_dotted:"虛線(較疏)",sloppiness:"筆跡風格",opacity:"透明度",textAlign:"文字對齊",edges:"邊角樣式",sharp:"銳角",round:"圓角",arrowheads:"箭嘴",arrowhead_none:"無箭嘴",arrowhead_arrow:"普通箭嘴",arrowhead_bar:"平頭條狀",arrowhead_circle:"",arrowhead_circle_outline:"",arrowhead_triangle:"三角箭嘴",arrowhead_triangle_outline:"",arrowhead_diamond:"",arrowhead_diamond_outline:"",fontSize:"字型大小",fontFamily:"字體",addWatermark:"加入「使用 Excalidraw 製圖」水印",handDrawn:"手繪體",normal:"電腦字體",code:"等寬體",small:"細",medium:"中",large:"大",veryLarge:"勁大",solid:"實心",hachure:"斜線",zigzag:"",crossHatch:"交叉格仔",thin:"幼",bold:"粗",left:"靠左對齊",center:"置中對齊",right:"靠右對齊",extraBold:"勁粗",architect:"手繪風格",artist:"藝術家風格",cartoonist:"卡通風格",fileTitle:"檔案名稱",colorPicker:"",canvasColors:"",canvasBackground:"畫布背景顏色",drawingCanvas:"畫布",layers:"圖層",actions:"動作",language:"🌏 語言",liveCollaboration:"",duplicateSelection:"製作副本",untitled:"未命名的作品",name:"",yourName:"你的名稱",madeWithExcalidraw:"使用 Excalidraw 製圖",group:"建立物件群組",ungroup:"取消物件群組",collaborators:"已連線的協作者",showGrid:"顯示網格",addToLibrary:"加入作品庫",removeFromLibrary:"從作品庫中移除",libraryLoadingMessage:"正在載入作品庫…",libraries:"瀏覽作品庫",loadingScene:"載入畫布中…",align:"物件對齊",alignTop:"水平置頂",alignBottom:"水平置底",alignLeft:"垂直靠左對齊",alignRight:"垂直靠右對齊",centerVertically:"垂直置中",centerHorizontally:"水平置中",distributeHorizontally:"左右等距",distributeVertically:"上下等距",flipHorizontal:"左右反轉",flipVertical:"上下反轉",viewMode:"唯讀模式",share:"",showStroke:"",showBackground:"",toggleTheme:"",personalLib:"",excalidrawLib:"",decreaseFontSize:"",increaseFontSize:"",unbindText:"",bindText:"",createContainerFromText:"",link:{edit:"",editEmbed:"",create:"",createEmbed:"",label:"",labelEmbed:"",empty:""},lineEditor:{edit:"",exit:""},elementLock:{lock:"",unlock:"",lockAll:"",unlockAll:""},statusPublished:"",sidebarLock:"",selectAllElementsInFrame:"",removeAllElementsFromFrame:"",eyeDropper:"",textToDiagram:"",prompt:""},u={noItems:"",hint_emptyLibrary:"",hint_emptyPrivateLibrary:""},a={clearReset:"清空畫布",exportJSON:"",exportImage:"",export:"",copyToClipboard:"",save:"",saveAs:"",load:"",getShareableLink:"",close:"",selectLanguage:"",scrollBackToContent:"",zoomIn:"",zoomOut:"",resetZoom:"",menu:"",done:"",edit:"",undo:"",redo:"",resetLibrary:"",createNewRoom:"",fullScreen:"",darkMode:"",lightMode:"",zenMode:"",objectsSnapMode:"",exitZenMode:"",cancel:"",clear:"",remove:"",embed:"",publishLibrary:"",submit:"",confirm:"",embeddableInteractionButton:""},o={clearReset:"【‼️ 警告 ‼️ 無法復原的動作】你確定要清空呢塊畫布嗎?",couldNotCreateShareableLink:"",couldNotCreateShareableLinkTooBig:"",couldNotLoadInvalidFile:"",importBackendFailed:"",cannotExportEmptyCanvas:"無嘢可以匯出喎~畫吓嘢先?",couldNotCopyToClipboard:"",decryptFailed:"",uploadedSecurly:"",loadSceneOverridePrompt:"",collabStopOverridePrompt:"",errorAddingToLibrary:"",errorRemovingFromLibrary:"",confirmAddLibrary:"",imageDoesNotContainScene:"",cannotRestoreFromImage:"",invalidSceneUrl:"",resetLibrary:"",removeItemsFromsLibrary:"",invalidEncryptionKey:"",collabOfflineWarning:""},r={unsupportedFileType:"",imageInsertError:"",fileTooBig:"",svgImageInsertError:"",failedToFetchImage:"",invalidSVGString:"",cannotResolveCollabServer:"",importLibraryError:"",collabSaveFailed:"",collabSaveFailed_sizeExceeded:"",imageToolNotSupported:"",brave_measure_text_error:{line1:"",line2:"",line3:"",line4:""},libraryElementTypeError:{embeddable:"",iframe:"",image:""},asyncPasteFailedOnRead:"",asyncPasteFailedOnParse:"",copyToSystemClipboardFailed:""},t={selection:"",image:"",rectangle:"",diamond:"",ellipse:"",arrow:"",line:"",freedraw:"",text:"",library:"",lock:"",penMode:"",link:"",eraser:"",frame:"",magicframe:"",embeddable:"",laser:"",hand:"",extraTools:"",mermaidToExcalidraw:"",magicSettings:""},i={canvasActions:"畫布動作",selectedShapeActions:"",shapes:""},l={canvasPanning:"",linearElement:"",freeDraw:"",text:"",embeddable:"",text_selected:"",text_editing:"",linearElementMulti:"",lockAngle:"",resize:"",resizeImage:"",rotate:"",lineEditor_info:"",lineEditor_pointSelected:"",lineEditor_nothingSelected:"",placeImage:"",publishLibrary:"",bindTextToElement:"",deepBoxSelect:"",eraserRevert:"",firefox_clipboard_write:"",disableSnapping:""},n={cannotShowPreview:"無法顯示預覽",canvasTooBig:"塊畫布太大啦,縮細啲先啦?",canvasTooBigTip:""},s={headingMain:"",clearCanvasMessage:"如果重新整理頁面都係睇唔到,你可以<button>清空畫布</button>",clearCanvasCaveat:"(注意:呢個動作會直接丟棄你嘅作品,並且無法復原)",trackedToSentry:"",openIssueMessage:"",sceneContent:""},d={desc_intro:"",desc_privacy:"",button_startSession:"",button_stopSession:"",desc_inProgressIntro:"",desc_shareLink:"",desc_exitSession:"",shareTitle:""},c={title:""},F={disk_title:"",disk_details:"",disk_button:"",link_title:"",link_details:"",link_button:"",excalidrawplus_description:"",excalidrawplus_button:"",excalidrawplus_exportError:""},m={blog:"",click:"",deepSelect:"",deepBoxSelect:"",curvedArrow:"",curvedLine:"",documentation:"",doubleClick:"",drag:"",editor:"",editLineArrowPoints:"",editText:"",github:"",howto:"",or:"",preventBinding:"",tools:"",shortcuts:"",textFinish:"",textNewLine:"",title:"",view:"",zoomToFit:"",zoomToSelection:"",toggleElementLock:"",movePageUpDown:"",movePageLeftRight:""},p={title:""},E={title:"",itemName:"",authorName:"",githubUsername:"",twitterUsername:"",libraryName:"",libraryDesc:"",website:"",placeholder:{authorName:"",libraryName:"",libraryDesc:"",githubHandle:"",twitterHandle:"",website:""},errors:{required:"",website:""},noteDescription:"",noteGuidelines:"",noteLicense:"",noteItems:"",atleastOneLibItem:"",republishWarning:""},g={title:"",content:""},D={resetLibrary:"",removeItemsFromLib:""},b={header:"",label:{withBackground:"",onlySelected:"",darkMode:"",embedScene:"",scale:"",padding:""},tooltip:{embedScene:""},title:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""},button:{exportToPng:"",exportToSvg:"",copyPngToClipboard:""}},C={tooltip:"",link:""},A={angle:"",element:"",elements:"",height:"",scene:"",selected:"",storage:"",title:"",total:"",version:"",versionCopy:"",versionNotAvailable:"",width:""},B={addedToLibrary:"",copyStyles:"",copyToClipboard:"",copyToClipboardAsPng:"",fileSaved:"",fileSavedToFilename:"",canvas:"畫布",selection:"",pasteAsSingleElement:"",unableToEmbed:"",unrecognizedLinkFormat:""},h={transparent:"",black:"",white:"",red:"",pink:"",grape:"",violet:"",gray:"",blue:"",cyan:"",teal:"",green:"",yellow:"",orange:"",bronze:""},y={app:{center_heading:"",center_heading_plus:"",menuHint:""},defaults:{menuHint:"",center_heading:"",toolbarHint:"",helpHint:""}},v={mostUsedCustomColors:"",colors:"",shades:"",hexCode:"",noShades:""},S={action:{exportToImage:{title:"",button:"",description:""},saveToDisk:{title:"",button:"",description:""},excalidrawPlus:{title:"",button:"",description:""}},modal:{loadFromFile:{title:"",button:"",description:""},shareableLink:{title:"",button:"",description:""}}},w={title:"",button:"",description:"",syntax:"",preview:""},x={labels:e,library:u,buttons:a,alerts:o,errors:r,toolBar:t,headings:i,hints:l,canvasError:n,errorSplash:s,roomDialog:d,errorDialog:c,exportDialog:F,helpDialog:m,clearCanvasDialog:p,publishDialog:E,publishSuccessDialog:g,confirmDialog:D,imageExportDialog:b,encrypted:C,stats:A,toast:B,colors:h,welcomeScreen:y,colorPicker:v,overwriteConfirm:S,mermaid:w};export{o as alerts,a as buttons,n as canvasError,p as clearCanvasDialog,v as colorPicker,h as colors,D as confirmDialog,x as default,C as encrypted,c as errorDialog,s as errorSplash,r as errors,F as exportDialog,i as headings,m as helpDialog,l as hints,b as imageExportDialog,e as labels,u as library,w as mermaid,S as overwriteConfirm,E as publishDialog,g as publishSuccessDialog,d as roomDialog,A as stats,B as toast,t as toolBar,y as welcomeScreen};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./index-
|
|
1
|
+
import"./index-CyQSsku0.js";var u={paste:"貼上",pasteAsPlaintext:"以純文字貼上",pasteCharts:"貼上圖表",selectAll:"全選",multiSelect:"將物件加入選取範圍",moveCanvas:"移動畫布",cut:"剪下",copy:"複製",copyAsPng:"以PNG格式儲存到剪貼板",copyAsSvg:"以SVG格式複製到剪貼板",copyText:"以文字格式複製至剪貼簿",copySource:"複製來源至剪貼簿",convertToCode:"轉換為程式碼",bringForward:"上移一層",sendToBack:"移到最底層",bringToFront:"置於最頂層",sendBackward:"往後移一層",delete:"刪除",copyStyles:"複製樣式",pasteStyles:"貼上樣式",stroke:"筆畫",background:"背景",fill:"填滿",strokeWidth:"筆跡寬度",strokeStyle:"筆畫樣式",strokeStyle_solid:"實線",strokeStyle_dashed:"虛線",strokeStyle_dotted:"點線",sloppiness:"線條風格",opacity:"透明度",textAlign:"文字對齊",edges:"邊緣",sharp:"尖銳",round:"平滑",arrowheads:"箭頭",arrowhead_none:"無",arrowhead_arrow:"箭頭",arrowhead_bar:"條狀箭頭",arrowhead_circle:"圓形",arrowhead_circle_outline:"圓形(外框)",arrowhead_triangle:"三角形",arrowhead_triangle_outline:"三角形(外框)",arrowhead_diamond:"菱形",arrowhead_diamond_outline:"菱形(外框)",fontSize:"字型大小",fontFamily:"字體集",addWatermark:'加上 "Made with Excalidraw" 浮水印',handDrawn:"手寫",normal:"一般",code:"代碼",small:"小",medium:"中",large:"大",veryLarge:"特大",solid:"實心",hachure:"斜線筆觸",zigzag:"Z字形",crossHatch:"交叉筆觸",thin:"細",bold:"粗",left:"左側",center:"置中",right:"右側",extraBold:"極粗",architect:"精確",artist:"藝術",cartoonist:"卡通",fileTitle:"檔案名稱",colorPicker:"色彩選擇工具",canvasColors:"使用於畫布",canvasBackground:"Canvas 背景",drawingCanvas:"繪圖 canvas",layers:"圖層",actions:"動作",language:"語言",liveCollaboration:"即時協作...",duplicateSelection:"複製",untitled:"無標題",name:"名稱",yourName:"你的名稱",madeWithExcalidraw:"以 Excalidraw 製作",group:"建立群組",ungroup:"取消群組",collaborators:"協作者",showGrid:"顯示格線",addToLibrary:"加入資料庫",removeFromLibrary:"從資料庫中移除",libraryLoadingMessage:"資料庫讀取中…",libraries:"瀏覽資料庫",loadingScene:"場景讀取中…",align:"對齊",alignTop:"對齊頂部",alignBottom:"對齊底部",alignLeft:"對齊左側",alignRight:"對齊右側",centerVertically:"垂直置中",centerHorizontally:"水平置中",distributeHorizontally:"水平分布",distributeVertically:"垂直分布",flipHorizontal:"水平翻轉",flipVertical:"垂直翻轉",viewMode:"檢視模式",share:"共享",showStroke:"顯示線條檢色器",showBackground:"顯示背景檢色器",toggleTheme:"切換主題",personalLib:"個人資料庫",excalidrawLib:"Excalidraw 資料庫",decreaseFontSize:"縮小文字",increaseFontSize:"放大文字",unbindText:"取消綁定文字",bindText:"結合文字至容器",createContainerFromText:"將文字包於容器中",link:{edit:"編輯連結",editEmbed:"編輯連結&嵌入",create:"建立連結",createEmbed:"建立連結&嵌入",label:"連結",labelEmbed:"連結&嵌入",empty:"未設定連結"},lineEditor:{edit:"編輯線條",exit:"結束線條編輯"},elementLock:{lock:"鎖定",unlock:"解鎖",lockAll:"全部鎖定",unlockAll:"全部解鎖"},statusPublished:"已發布",sidebarLock:"側欄維持開啟",selectAllElementsInFrame:"選取框架內的所有元素",removeAllElementsFromFrame:"從框架內移除所有元素",eyeDropper:"從畫布中選取顏色",textToDiagram:"文字轉圖表",prompt:"提示詞"},F={noItems:"尚未加入任何物件...",hint_emptyLibrary:"選取畫布上的物件以加入,或從下方的公開 repository 中安裝資料庫",hint_emptyPrivateLibrary:"選擇畫布上的物件以在此加入"},e={clearReset:"重置 canvas",exportJSON:"匯出至檔案",exportImage:"匯出圖片",export:"儲存至...",copyToClipboard:"複製至剪貼簿",save:"儲存目前檔案",saveAs:"儲存為",load:"開啟",getShareableLink:"取得共享連結",close:"關閉",selectLanguage:"選擇語言",scrollBackToContent:"捲動回到內容",zoomIn:"放大",zoomOut:"縮小",resetZoom:"重設縮放",menu:"選單",done:"完成",edit:"編輯",undo:"復原",redo:"重做",resetLibrary:"重設資料庫",createNewRoom:"建立新協作會議室",fullScreen:"全螢幕",darkMode:"深色模式",lightMode:"淺色模式",zenMode:"專注模式",objectsSnapMode:"吸附至物件",exitZenMode:"離開專注模式",cancel:"取消",clear:"清除",remove:"刪除",embed:"切換嵌入",publishLibrary:"發布",submit:"送出",confirm:"確認",embeddableInteractionButton:"點擊以互動"},E={clearReset:"這將會清除整個 canvas。你確定嗎?",couldNotCreateShareableLink:"無法建立共享連結。",couldNotCreateShareableLinkTooBig:"無法建立共享連結:場景太大",couldNotLoadInvalidFile:"無法讀取失效的檔案。",importBackendFailed:"後端讀取失敗。",cannotExportEmptyCanvas:"無法輸出空白的 canvas。",couldNotCopyToClipboard:"無法複製到剪貼簿",decryptFailed:"無法解密資料。",uploadedSecurly:"上傳已通過 end-to-end 加密,Excalidraw 伺服器和第三方無法皆讀取其內容。",loadSceneOverridePrompt:"讀取外部圖樣將取代目前的內容。是否要繼續?",collabStopOverridePrompt:`停止連線將覆蓋您先前於本機儲存的繪圖進度,是否確認?
|
|
2
2
|
|
|
3
3
|
(如要保留原有的本機繪圖進度,直接關閉瀏覽器分頁即可。)`,errorAddingToLibrary:"無法於此資料庫加入項目",errorRemovingFromLibrary:"無法由此資料庫移除項目",confirmAddLibrary:"這將會將 {{numShapes}} 個圖形加入你的資料庫,你確定嗎?",imageDoesNotContainScene:"此圖檔中未包含場景資料。輸出檔案時是否有包含場景資料?",cannotRestoreFromImage:"無法由此檔案回復場景。",invalidSceneUrl:"無法由提供的 URL 匯入場景。可能是發生異常,或未包含有效的 Excalidraw JSON 資料。",resetLibrary:"這會清除您的資料庫,是否確定?",removeItemsFromsLibrary:"從資料庫刪除 {{count}} 項?",invalidEncryptionKey:"加密鍵必須為22字元。即時協作已停用。",collabOfflineWarning:`沒有可用的網路連線。
|
|
4
4
|
變更無法儲存!`},C={unsupportedFileType:"不支援的檔案類型。",imageInsertError:"無法插入圖片。請稍後再試…",fileTooBig:"檔案過大。可接受的最大尺寸為 {{maxSize}} 。",svgImageInsertError:"無法插入 SVG 圖片。此 SVG 檔案有問題。",failedToFetchImage:"無法獲取圖片。",invalidSVGString:"無效的 SVG。",cannotResolveCollabServer:"無法連結至 collab 伺服器。請重新整理後再試一次。",importLibraryError:"無法載入資料庫",collabSaveFailed:"無法儲存至後端資料庫。若此問題持續發生,請將檔案儲存於本機以確保資料不會遺失。",collabSaveFailed_sizeExceeded:"無法儲存至後端資料庫,可能的原因為畫布尺寸過大。請將檔案儲存於本機以確保資料不會遺失。",imageToolNotSupported:"圖片已停用",brave_measure_text_error:{line1:"看起來您開啟了 Brave 瀏覽器的 <bold>Aggressively Block Fingerprinting</bold> 設定。",line2:"這可能造成您畫布中 <bold>文字元素</bold> 的異常。",line3:"我們強烈建議您關閉此設定。您可以依照 <link>這些步驟</link> 來進行。",line4:"若關閉此設定並未修復文字元素的顯示問題,請回報於我們 GitHub 上的 <issueLink>issue</issueLink>,或在 <discordLink>Discord</discordLink> 上告訴我們。"},libraryElementTypeError:{embeddable:"可嵌入元素無法加入資料庫",iframe:"IFrame 元素無法加入資料庫",image:"即將支援加入圖片至資料庫!"},asyncPasteFailedOnRead:"無法貼上(無法由系統剪貼簿讀入)",asyncPasteFailedOnParse:"無法貼上",copyToSystemClipboardFailed:"無法複製至剪貼簿"},A={selection:"選取",image:"插入圖片",rectangle:"長方形",diamond:"菱形",ellipse:"橢圓",arrow:"箭頭",line:"線條",freedraw:"繪圖",text:"文字",library:"資料庫",lock:"可連續使用選取的工具",penMode:"筆模式 - 避免觸摸",link:"為所選的形狀增加\b/更新連結",eraser:"橡皮擦",frame:"框架工具",magicframe:"線框稿轉為程式碼",embeddable:"嵌入網站",laser:"雷射筆",hand:"手形(平移工具)",extraTools:"更多工具",mermaidToExcalidraw:"Mermaid 至 Excalidraw",magicSettings:"AI 設定"},D={canvasActions:"canvas 動作",selectedShapeActions:"選取圖形動作",shapes:"形狀"},B={canvasPanning:"若要移動畫布,請在拖曳時按住滑鼠滾輪或空白鍵,或使用手形工具",linearElement:"點擊以繪製多點曲線;或拖曳以繪製直線",freeDraw:"點擊並拖曳來繪圖,放開即結束",text:"提示:亦可使用選取工具在任何地方雙擊來加入文字",embeddable:"點擊並拖移以建立嵌入網站",text_selected:"雙擊滑鼠或按 Enter 以編輯文字",text_editing:"按跳脫鍵或 Ctrl 或 Cmd + Enter 以結束編輯",linearElementMulti:"按下 Escape 或 Enter 以結束繪製",lockAngle:"按住 SHIFT 可限制旋轉角度",resize:"縮放時按住 Shift 可保持原比例縮放;\\n按住 Alt 可由中心點進行縮放",resizeImage:"按住 SHIFT 可任意縮放,按住 ALT 可由中央縮放。",rotate:"旋轉時按住 Shift 可限制旋轉角度",lineEditor_info:"按住 Ctrl 或 Cmd 並雙擊或按住 Ctrl 或 Cmd + Enter 來編輯控制點",lineEditor_pointSelected:"按下 Delete 可移除錨點;Ctrl 或 Cmd + D 可複製;或可拖曳來移動",lineEditor_nothingSelected:`選擇要編輯的錨點(按住 SHIFT 可多選),
|
package/dist/index.html
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Locus Map</title><script>window.EXCALIDRAW_ASSET_PATH='/';</script> <script type="module" crossorigin src="/assets/index-
|
|
2
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
1
|
+
<!doctype html><html><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Locus Map</title><script>window.EXCALIDRAW_ASSET_PATH='/';</script> <script type="module" crossorigin src="/assets/index-CyQSsku0.js"></script>
|
|
2
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DR6sd54W.css">
|
|
3
3
|
</head><body><div id="root"></div></body></html>
|
package/docs/LOCAL-DOCUMENT.md
CHANGED
|
@@ -4,137 +4,90 @@ updated: "2026-11-26T22:37:02Z"
|
|
|
4
4
|
|
|
5
5
|
# Viewing and saving the result file
|
|
6
6
|
|
|
7
|
-
For launch modes, named project tabs and agent instructions, see [Start the local viewer](VIEWER-LAUNCH.md). The local viewer opens the
|
|
8
|
-
comparing a regenerated candidate with the previous version.
|
|
7
|
+
For launch modes, `~/.locus-map/projects.toml`, **Viewer settings**, named project tabs and agent instructions, see [Start the local viewer](VIEWER-LAUNCH.md). The local viewer opens the workspace library, a topic directory, or a saved `.locus-map.json` file. **Save** writes the current document. Single-file mode also supports comparing a regenerated candidate with the previous version.
|
|
9
8
|
|
|
10
9
|
## Browse the project library
|
|
11
10
|
|
|
12
|
-
Run the following from the directory that contains the project's `.locus-map
|
|
11
|
+
Run the following from the directory that contains the project's `.locus-map` (or open your running `8181` workspace):
|
|
13
12
|
|
|
14
13
|
```sh
|
|
15
14
|
locus-map view --local
|
|
16
15
|
```
|
|
17
16
|
|
|
18
|
-
Open the address printed by the launcher. The library
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
`builds/`, legacy `build-N/`, `preflight/` and `viewer-check/` folders, hidden
|
|
24
|
-
entries and symbolic links. Select **Refresh library** to discover added or moved files without replacing the open editor. To define cross-document links and a specific initial view, use an
|
|
25
|
-
[explicit project catalog](#open-a-project).
|
|
26
|
-
|
|
27
|
-
The location bar shows the project name and map folder on one line. Each name
|
|
28
|
-
sits beside its editor icon. Hover or focus either control to see its full
|
|
29
|
-
target path. Narrow windows shorten the names while keeping both icons visible. When a release copy is opened with `--source-root`, the folder icon opens
|
|
30
|
-
that declared source directory in Zed. In isolated mode the folder icon opens the launch directory. In a named TOML library it opens the registered folder unless `source_root` is set. The adjacent file icon opens the active JSON at its registered
|
|
31
|
-
location. Both actions work in a read-only session when Zed is available. An
|
|
32
|
-
unavailable source directory leaves the document action independent. An imported file has no bound project
|
|
33
|
-
path. An empty library still lets you open the project in Zed or choose a file.
|
|
17
|
+
Open the address printed by the launcher. The library recursively discovers finished `*.locus-map.json` maps and `*.excalidraw` drawings up to eight levels deep under `.locus-map/` and selects the first readable non-draft map in order. Nested folders directly form the **Contents** tree (`<topic>/<subtopic>/<subtopic>.locus-map.json` — do not insert an intermediate `pages/` folder). A leaf folder containing only its namesake document collapses into a single row titled by `model.title`.
|
|
18
|
+
|
|
19
|
+
Place deliverable files outside working and archive folders. The scan skips `artifacts/`, `archive/`, `builds/`, legacy `build-N/`, `materials/`, `preflight/` and `viewer-check/` folders, hidden entries and symbolic links at every depth. Active review templates live under `<topic>/drafts/<variant>/<variant>.locus-map.json`, which appears as a dedicated **Drafts** (`DRAFT`) subgroup at the bottom of its topic (expanded while no final map exists, collapsed once the final map is delivered, and hidden once moved to `<topic>/archive/drafts/`). Select **Refresh library** to discover added or moved files without replacing the open editor. To define cross-document links, custom ordering, explicit source bindings, or custom navigation groups, add an optional [topic manifest](#open-a-project) (`topic.json`).
|
|
20
|
+
|
|
21
|
+
The location bar shows the project name, a readable topic/variant breadcrumb (with a `DRAFT` pill for items inside `drafts/`), and when an authored source file (`.mjs`, `.puml`, `.map.json`) is resolved beside the map or via `topic.json#sources`, a **Source** button to open it directly in Zed. Hover or focus any control to see its full target path. Narrow windows shorten the names while keeping all icons visible. When opened with `--source-root` or `source_root` in `projects.toml`, the folder icon opens that declared source directory in Zed; otherwise it opens the library. The document icon opens the active saved file at its registered location. All editor actions work in a read-only session when Zed is available. An unavailable source directory leaves the document action independent. An imported file has no bound project path. An empty library still lets you open the project in Zed or choose a file.
|
|
34
22
|
|
|
35
23
|
## Open a saved document
|
|
36
24
|
|
|
37
25
|
```sh
|
|
38
26
|
# From the project root (topic name or relative/absolute path)
|
|
39
|
-
locus-map view <
|
|
40
|
-
locus-map view .locus-map/<
|
|
27
|
+
locus-map view <topic>
|
|
28
|
+
locus-map view .locus-map/<topic>/<topic>.locus-map.json
|
|
41
29
|
```
|
|
42
30
|
|
|
43
31
|
`locus-map` is the installed command (globally via `npm install -g @locus-forge/locus-map` or `./install.sh`, `./node_modules/.bin/locus-map` in an npm project, or `npx @locus-forge/locus-map` without installing); `locus-map doctor` reports whether the viewer is ready. In an unpublished source checkout, run `npm run build` once and then `node scripts/locus-map.mjs` with the same arguments. After a build, open the delivered topic or the actual `bundlePath` it reports.
|
|
44
32
|
|
|
45
|
-
The command prints an address on `127.0.0.1` with a free port (and also accepts same-origin requests on `localhost` on the same port for local previews). The address's `document` parameter contains the actual absolute path; spaces and Cyrillic are encoded in the usual URL way. Keep the process running while the map is needed in the browser. `Ctrl+C` releases the write permission. `--port` selects the port explicitly; `--read-only`
|
|
33
|
+
The command prints an address on `127.0.0.1` with a free port (and also accepts same-origin requests on `localhost` on the same port for local previews). The address's `document` parameter contains the actual absolute path; spaces and Cyrillic are encoded in the usual URL way. Keep the process running while the map is needed in the browser. `Ctrl+C` releases the write permission. `--port` selects the port explicitly; `--read-only` disables writes and locks process-wide.
|
|
46
34
|
|
|
47
35
|
The address opens the saved scenes through the same [chain bundle admission](BUNDLE-FORMAT.md) as a manual import. Layout is not recomputed. A wrong path or an unsupported document produces a rejection; there is no fallback subject-matter map. Without a document, the application offers to open a file; old `?example=` addresses no longer select demos.
|
|
48
36
|
|
|
49
|
-
To give another browser on the same computer the current saved view, open
|
|
50
|
-
the **Share saved diagram** link icon in the toolbar. Choose **Copy address** or **Open
|
|
51
|
-
saved diagram in a new tab**. Save first to include pending edits. The link
|
|
52
|
-
carries the document or project and view IDs and grants read access while the
|
|
53
|
-
viewer process is running. A file imported with **Open** only exists in that
|
|
54
|
-
tab. Download a copy and launch the saved file with `locus-map view FILE` to
|
|
55
|
-
give it an address.
|
|
37
|
+
To give another browser on the same computer the current saved view, open the **Share saved diagram** link icon in the toolbar. Choose **Copy address** or **Open saved diagram in a new tab**. Save first to include pending edits. The link carries the document or project and view IDs and grants read access while the viewer process is running. A file imported with **Open** only exists in that tab. Download a copy and launch the saved file with `locus-map view FILE` to give it an address.
|
|
56
38
|
|
|
57
39
|
## Open a project
|
|
58
40
|
|
|
59
|
-
|
|
60
|
-
Map documents. This example connects the `viewer` element on an overview to
|
|
61
|
-
the detail canvas in a second file.
|
|
41
|
+
Nested topic folders need no manifest to appear in **Contents**. Add an optional `topic.json` inside any topic folder (at any depth) only when you want a custom folder title, explicit entry view, child ordering, `modelId` pins, authored `sources`, cross-document `links` (`↘`), or custom `navigation` groups. `topic.json` overlays independently discovered documents under its folder — it never requires re-listing every file in a `documents` array.
|
|
62
42
|
|
|
63
43
|
```json
|
|
64
44
|
{
|
|
65
45
|
"version": 1,
|
|
66
|
-
"
|
|
67
|
-
"entry": { "map": "overview", "view": "context" },
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
46
|
+
"title": "Architecture",
|
|
47
|
+
"entry": { "map": "overview/overview.locus-map.json", "view": "context" },
|
|
48
|
+
"order": ["overview", "workflows"],
|
|
49
|
+
"models": {
|
|
50
|
+
"overview/overview.locus-map.json": "context",
|
|
51
|
+
"workflows/viewer/viewer.locus-map.json": "drilldown"
|
|
52
|
+
},
|
|
53
|
+
"sources": {
|
|
54
|
+
"overview/overview.locus-map.json": "overview/overview.puml"
|
|
55
|
+
},
|
|
72
56
|
"links": [
|
|
73
57
|
{
|
|
74
|
-
"from": { "map": "overview", "view": "context", "trigger": "viewer" },
|
|
75
|
-
"to": { "map": "viewer", "view": "drilldown" }
|
|
58
|
+
"from": { "map": "overview/overview.locus-map.json", "view": "context", "trigger": "viewer" },
|
|
59
|
+
"to": { "map": "workflows/viewer/viewer.locus-map.json", "view": "drilldown" }
|
|
76
60
|
}
|
|
77
61
|
]
|
|
78
62
|
}
|
|
79
63
|
```
|
|
80
64
|
|
|
81
|
-
|
|
82
|
-
file's `model.id` and its view IDs from `chain.views`. A trigger is a node or
|
|
83
|
-
relation ID on the source view. Member paths resolve from the directory
|
|
84
|
-
containing the catalog. Register the delivered copy of each file so that
|
|
85
|
-
older builds in adjacent folders stay outside the project.
|
|
65
|
+
Every `map` path in `topic.json` is a portable relative path below the folder containing `topic.json`. A trigger is a node or relation ID on the source view. When `models` pins a `modelId`, a replaced file with a different model ID will not inherit stale links or navigation entries.
|
|
86
66
|
|
|
87
67
|
```sh
|
|
88
|
-
# From the project root: open .locus-map
|
|
89
|
-
locus-map view --project
|
|
90
|
-
|
|
91
|
-
# Or open a named topic catalog (.locus-map/<topic>/project.json) or explicit file
|
|
68
|
+
# From the project root: open a topic folder (.locus-map/<topic>/ or explicit topic.json)
|
|
92
69
|
locus-map view <topic>
|
|
93
|
-
locus-map view
|
|
70
|
+
locus-map view .locus-map/<topic>/topic.json
|
|
94
71
|
```
|
|
95
72
|
|
|
96
|
-
Open the printed address. The section title opens the entry diagram. Its arrow
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
The header shows the saved document title and folder. The rail uses single-line labels and identifies the active page or its collapsed branch. Topic groups start folded in a library. Following an address opens the necessary ancestors and reveals the selected row, including for cards reached through a link. The tab remembers manual expansion choices on reload. The bound JSON file remains
|
|
100
|
-
the target of document actions. For repeated titles, hover or focus the row to see its document and labeled view ID. Click a
|
|
101
|
-
mapped node or relation to open its floating Inspector. Activate the named
|
|
102
|
-
diagram action to open its target in this tab. Browser Back and Forward return
|
|
103
|
-
to visited canvases. Links inside a single file continue to come from its
|
|
104
|
-
own view chain.
|
|
105
|
-
|
|
106
|
-
To open a canvas in another tab on the same machine, copy its address from
|
|
107
|
-
the open project. For this example the detail address ends in
|
|
108
|
-
`/?project=architecture&map=viewer&view=drilldown`. A direct visit or reload
|
|
109
|
-
of this address opens read-only. The private launch address enables writing
|
|
110
|
-
for that tab. Keep the process running to use its addresses. To move a file,
|
|
111
|
-
update its registered path and relaunch the project with the same IDs.
|
|
112
|
-
The server remembers the identity of each registered file. If another
|
|
113
|
-
process replaces a member with a new file at the same path, relaunch the
|
|
114
|
-
project to register that version.
|
|
115
|
-
|
|
116
|
-
To browse all delivered folders, run `locus-map view --local` from the project root.
|
|
117
|
-
Each first-level folder with saved documents owns a section. Its optional
|
|
118
|
-
`project.json` supplies the entry, links and contents for files found in that
|
|
119
|
-
folder. A folder without a catalog uses its namesake document when present,
|
|
120
|
-
then a directly contained document, then the first available nested document.
|
|
121
|
-
The root model title names the section, with the folder name as fallback.
|
|
122
|
-
An explicit `--project` launch uses only its registered documents.
|
|
73
|
+
Open the printed address (or open the registered tab on `127.0.0.1:8181`). The section title opens the entry diagram. Its arrow shows or hides the children. Drag the sidebar border or focus it and use the arrow keys to adjust its width. The toolbar toggle restores the chosen width. The header shows the saved document title. The rail uses single-line labels and identifies the active page or its collapsed branch. Following an address opens the necessary ancestors and reveals the selected row, including for cards reached through a link. The tab remembers manual expansion choices on reload. For repeated titles, hover or focus the row to see its document and labeled view ID. Click a mapped node or relation to open its floating Inspector. Activate the named diagram action to open its target in this tab. Browser Back and Forward return to visited canvases. Links inside a single file continue to come from its own view chain.
|
|
74
|
+
|
|
75
|
+
To open a canvas in another tab on the same machine, copy its address from the open project. A direct visit or reload of this address opens read-only. The private launch address enables writing for that tab. Keep the process running to use its addresses. The server remembers the identity of each registered file. If another process replaces a member with a new file at the same path, refresh or reopen to register that version.
|
|
123
76
|
|
|
124
77
|
### Open a named card from the project contents
|
|
125
78
|
|
|
126
|
-
|
|
79
|
+
A `topic.json` manifest can include an optional `navigation` array to group or sort destinations and optionally expose in-page card anchors (`{ "map", "view", "node" }`). Groups have a title and ordered children. Selecting the title opens the first available descendant in that order. Put the intended entry first. The separate arrow expands or collapses the group. The sidebar takes a leaf’s name from the saved view or card, and renders card anchors visually smaller and muted (`data-node-anchor`, `aria-current="location"` when selected) so they remain distinct from page destinations. Give each destination one place in `navigation`. Discovered views omitted from `navigation` still appear in the same contents tree.
|
|
127
80
|
|
|
128
81
|
```json
|
|
129
82
|
"navigation": [
|
|
130
83
|
{ "title": "Forecast reliability", "children": [
|
|
131
|
-
{ "map": "signals", "view": "comparison" },
|
|
132
|
-
{ "map": "signals", "view": "comparison", "node": "timing" }
|
|
84
|
+
{ "map": "signals/signals.locus-map.json", "view": "comparison" },
|
|
85
|
+
{ "map": "signals/signals.locus-map.json", "view": "comparison", "node": "timing" }
|
|
133
86
|
] }
|
|
134
87
|
]
|
|
135
88
|
```
|
|
136
89
|
|
|
137
|
-
Selecting a card highlights its position and shows its name. Use **Inspect card** to open details. First visits fit the whole graph. Later visits restore the last camera for the same project, map and view. The viewer pans only when the requested card is outside the visible area. A document link names its destination. The back arrow beside the document location leads to the originating block. Its tooltip names the destination. A direct link uses the authored link to that card or view, preferring its
|
|
90
|
+
Selecting a card highlights its position and shows its name. Use **Inspect card** to open details. First visits fit the whole graph. Later visits restore the last camera for the same project, map and view. The viewer pans only when the requested card is outside the visible area. A document link names its destination. The back arrow beside the document location leads to the originating block. Its tooltip names the destination. A direct link uses the authored link to that card or view, preferring its enclosing topic entry as the source. If no source link is described, it offers the topic entry itself. Reload and browser Back restore the destination. A topic link may also specify `node` in its `to` address. An address containing only the map and view opens the whole diagram. Unavailable contents destinations appear disabled. Each path can contain up to eight entries, including its leaf. A manifest can contain up to 2,048 contents entries.
|
|
138
91
|
|
|
139
92
|
Selecting the active page in the sidebar checks its current revision. A changed
|
|
140
93
|
page uses the normal unsaved-changes choice; an unchanged page keeps the
|
|
@@ -200,8 +153,8 @@ If the response is lost after a possible write, the client only rereads the docu
|
|
|
200
153
|
Isolated `locus-map view` launches targeting files under `.locus-map/` or the launch directory infer `--source-root` automatically to enable **Open in Zed** on attached Markdown, HTML and canvas sources. Pass `--source-root DIR` to bind a different source checkout, or `--no-source-root` to disable original-file links:
|
|
201
154
|
|
|
202
155
|
```sh
|
|
203
|
-
locus-map view --
|
|
204
|
-
locus-map view
|
|
156
|
+
locus-map view --local --read-only
|
|
157
|
+
locus-map view <topic> --source-root . --read-only
|
|
205
158
|
```
|
|
206
159
|
|
|
207
160
|
The same option works with a saved document and with original-only references declared in the details index. The viewer resolves each declared `sourcePath` under that root and opens the existing regular file with the host's `zed` command. Both the editor action and **Copy path** work independently of Save permission. Imported files retain their packaged reading materials. Opening an original in Zed requires the file-backed viewer, the declared root and Zed on its executable path.
|
package/docs/VIEWER-LAUNCH.md
CHANGED
|
@@ -10,18 +10,19 @@ locus-map view
|
|
|
10
10
|
|
|
11
11
|
Open the loopback URL printed on standard output. An agent should keep the command running in a retained process session and give the operator that launch address. Reuse it to switch projects. The URL fragment grants access to the project list and, for a writable launch, permission to save. Use **Share saved diagram** for a read-only address to the selected project and view. Reloading the operator's tab retains the project choices and drops write access. Reopen the original launch URL to save again.
|
|
12
12
|
|
|
13
|
-
The ordinary workspace listens on `127.0.0.1:8181` unless
|
|
13
|
+
The ordinary workspace listens on `127.0.0.1:8181` unless `~/.locus-map/projects.toml` sets `port`. Opening `http://127.0.0.1:8181/` (or `http://localhost:8181/`) opens the active workspace tabs in read-only mode instead of an empty file opener. When a workspace viewer is already running on `8181`, open `http://127.0.0.1:8181/?cwd=/abs/path/to/project` or `http://127.0.0.1:8181/?tab=ProjectName` (optionally with `&map=<relative-path>&view=<view-id>&node=<node-id>`) to jump straight to that project's tab or diagram in read-only mode. Reopen the operator launch URL with `#write=` whenever you need write/save access.
|
|
14
|
+
|
|
15
|
+
Use **Viewer settings** (the gear button at the right end of the top header bar) at any time to inspect the active host/port, PID, launch mode, server vs. tab access mode (`Writable` or `Read-only` with reason), loaded configuration path (with **Copy** and **Open in Zed**), and all registered projects with their `folder`, `source_root`, and availability status.
|
|
16
|
+
|
|
17
|
+
Use `--port N` to override the configured port. A busy port stops a second launch with a diagnostic pointing at the running viewer. Use `--read-only` to disable file saves and write locks process-wide (both `.locus-map.json` maps and `.excalidraw` drawings already open in **View** mode by default on a writable server, so `--read-only` is not required for clickable Inspector cards). Stop the foreground process with Ctrl+C or send SIGTERM to the process you started. Stopping releases document locks and ends the current launch links.
|
|
14
18
|
|
|
15
19
|
## Register project tabs
|
|
16
20
|
|
|
17
|
-
Without
|
|
21
|
+
Without `~/.locus-map/projects.toml`, **Personal** opens `~/.locus-map/maps` and creates it only on Save. If the launch directory contains a `.locus-map` library, its tab is added and selected.
|
|
18
22
|
|
|
19
|
-
Create `~/.
|
|
23
|
+
Create `~/.locus-map/projects.toml` to choose the tabs and their order. This is the single workspace configuration file.
|
|
20
24
|
|
|
21
|
-
The tabs stay in the top row
|
|
22
|
-
location and open or close **Contents**. The toggle and location stay in place
|
|
23
|
-
while the sidebar changes. On a narrow window, document tools sit below this
|
|
24
|
-
row.
|
|
25
|
+
The tabs stay in the top row alongside **Viewer settings**. Use the next row to see the selected document's location, open the source or saved file in Zed, and open or close **Contents**. The toggle and location stay in place while the sidebar changes. On a narrow window, document tools sit below this row.
|
|
25
26
|
|
|
26
27
|
```toml
|
|
27
28
|
port = 8181
|
|
@@ -36,21 +37,19 @@ folder = "~/work/diagrams/Platform"
|
|
|
36
37
|
source_root = "~/work/infra"
|
|
37
38
|
```
|
|
38
39
|
|
|
39
|
-
Each entry needs a unique name and a distinct library folder. Folder and source paths can be absolute, relative to
|
|
40
|
+
Each entry needs a unique name and a distinct library folder. Folder and source paths can be absolute, relative to `~/.locus-map/projects.toml`, or start with `~/`. The viewer scans the given folder directly. With `source_root`, original materials, configured task directories and build inputs resolve against that checkout, and the folder action in Zed opens it. Without a source checkout the folder action opens the library. The document action opens the registered file; when an authored source file (`.mjs`, `.puml`, `.map.json`) is resolved beside a map or via `topic.json#sources`, **Source** opens it directly in Zed.
|
|
40
41
|
|
|
41
|
-
The viewer
|
|
42
|
-
|
|
43
|
-
Set `LOCUS_MAP_PROJECTS_FILE` to select a registry for one launch. A relative override resolves from the launch directory. Without the override, the viewer uses home TOML first and falls back to `~/.locusmap/projects.json` (version 1). The launcher reports the chosen registry on standard error. A selected invalid registry stops startup. In version 1, `root` still selects a checkout with a `.locus-map` library, and `sourceRoot` still selects a separate checkout for source actions.
|
|
42
|
+
The viewer matches the launch directory (or any subdirectory inside a registered `folder` or `source_root`, deepest match first). If the launch directory contains `.locus-map/` but is not listed in `~/.locus-map/projects.toml`, the launcher prints the ready-to-paste `[[projects]]` stanza on standard error. Restart the viewer to apply registry edits or connect a replaced library directory. **Refresh library** updates the contents tree live for newly added maps or drafts while keeping the open editor and its local edits. A file removed from the library loses its save binding. If a new file later appears at the same path, reopen it to save against its new revision.
|
|
44
43
|
|
|
45
44
|
## Save a drawing
|
|
46
45
|
|
|
47
|
-
Open **New drawing** in the desired library. An empty workspace library already opens an editable canvas. Draw with Excalidraw, then choose **Save drawing** and enter a name. The name prompt shows the destination folder. Saving creates one visible `.excalidraw` file and selects it in the same library. Choose a different name if it already exists. If the first save cannot be confirmed, use **Check saved drawing** to bind to a writable file that matches the sent drawing. Edits made after the attempted save stay in the editor. Canceling or leaving an untouched draft creates no file. On later saves, if the file has changed, download a copy to keep your edits or reopen the drawing to see its disk version.
|
|
46
|
+
Open **New drawing** in the desired library. An empty workspace library already opens an editable canvas in **Edit** mode. Saved `.excalidraw` drawings open in **View** mode by default (fitted to the viewport) with a **View / Edit** switch in the header; choose **Edit** to unlock drawing tools. Draw with Excalidraw, then choose **Save drawing** and enter a name. The name prompt shows the destination folder. Saving creates one visible `.excalidraw` file and selects it in the same library. Choose a different name if it already exists. If the first save cannot be confirmed, use **Check saved drawing** to bind to a writable file that matches the sent drawing. Edits made after the attempted save stay in the editor. Canceling or leaving an untouched draft creates no file. On later saves, if the file has changed, download a copy to keep your edits or reopen the drawing to see its disk version.
|
|
48
47
|
|
|
49
48
|
Finish a text or image edit before saving, downloading or navigating. Open saved drawings from **Contents**. Sketches retain their native shapes, text bindings, arrows, and embedded images. Use **Download a copy** in a read-only session. Use **Stay**, **Save and open** or **Discard and open** when navigating away from an edited drawing.
|
|
50
49
|
|
|
51
50
|
## Deliver an agent-authored map
|
|
52
51
|
|
|
53
|
-
When the user names a tab, resolve its `folder` from
|
|
52
|
+
When the user names a tab, resolve its `folder` from `~/.locus-map/projects.toml`. Put the finished `.locus-map.json` in `<folder>/<topic>/<topic>.locus-map.json` (and nested subtopics directly under `<folder>/<topic>/<subtopic>/<subtopic>.locus-map.json`, without a `pages/` wrapper; see [viewing and saving documents](LOCAL-DOCUMENT.md)). Use the conventional project `.locus-map` location when the task names a checkout without a destination tab. Keep build artifacts outside discovery (`artifacts/`, `builds/`, `materials/`, `archive/`) and preserve other files in the destination. Do not create hidden `.viewer.toml` files; reuse the running `8181` viewer (`http://127.0.0.1:8181/?cwd=<project-dir>&map=<relative-map-path>`) or use **Refresh library**.
|
|
54
53
|
|
|
55
54
|
## Observe inputs for an ordinary map
|
|
56
55
|
|
|
@@ -66,11 +65,9 @@ mapSources = [
|
|
|
66
65
|
]
|
|
67
66
|
```
|
|
68
67
|
|
|
69
|
-
For a JSON v1 registry, the document is relative to the conventional library and inputs are relative to `sourceRoot` or `root`.
|
|
70
|
-
|
|
71
68
|
The operator's Maps tab checks the active diagram's declared files while visible and on returning to the tab. Input checks read file metadata without running the author. A missing or unreadable source can make the state unknown. With no successful build record, changes are reported relative to the time the viewer opened the project registry.
|
|
72
69
|
|
|
73
|
-
To retain an input record across launches, add `--record-for` to the ordinary build. Run from the declared `source_root
|
|
70
|
+
To retain an input record across launches, add `--record-for` to the ordinary build. Run from the declared `source_root`. The result goes into a new directory under the diagram folder's `artifacts` directory. The parent of the chosen output directory must already exist.
|
|
74
71
|
|
|
75
72
|
```sh
|
|
76
73
|
mkdir -p .locus-map/billing/artifacts/builds
|
|
@@ -79,28 +76,28 @@ locus-map build --source billing.puml --out-dir .locus-map/billing/artifacts/bui
|
|
|
79
76
|
|
|
80
77
|
The local record is written beside the configured document after a successful build with stable declared inputs. If those inputs change, the notice includes a shell-quoted command with the original working directory and a new output directory. For a run with an explicit browser executable override, rerun the original command with a new output directory. A replaced or missing recorded artifact makes the comparison unknown. The viewer distinguishes a built candidate from the saved document. A layout save cannot mark an edited input as built. An input omitted from the entry, including a dynamic import, has unknown coverage. Portable documents and shared links carry no local input registration.
|
|
81
78
|
|
|
82
|
-
## Open one
|
|
79
|
+
## Open one topic or document (isolated launch)
|
|
83
80
|
|
|
84
81
|
```sh
|
|
85
|
-
# From the project root, open one topic (.locus-map/<name>/
|
|
86
|
-
# .locus-map/<name>/<name>.locus-map.json, or .locus-map/<name>.locus-map.json):
|
|
82
|
+
# From the project root, open one topic folder (.locus-map/<name>/ or .locus-map/<name>.locus-map.json):
|
|
87
83
|
locus-map view billing
|
|
88
84
|
|
|
89
|
-
# Open
|
|
90
|
-
locus-map view
|
|
91
|
-
locus-map view
|
|
85
|
+
# Open an explicit directory, topic.json, or .locus-map.json file:
|
|
86
|
+
locus-map view .locus-map/billing
|
|
87
|
+
locus-map view .locus-map/billing/topic.json
|
|
88
|
+
locus-map view .locus-map/billing/billing.locus-map.json
|
|
92
89
|
|
|
93
|
-
# Browse all topics in the current project's .locus-map/, skipping the home registry:
|
|
90
|
+
# Browse all topics and sketches in the current project's .locus-map/, skipping the home registry:
|
|
94
91
|
locus-map view --local
|
|
95
92
|
```
|
|
96
93
|
|
|
97
|
-
|
|
94
|
+
Isolated launches skip `~/.locus-map/projects.toml` and automatically bind a free port (`127.0.0.1:<port>`), so you do not need to pass `--port 0`. Use isolated launches only for an unregistered repository, a single-file diff (`--previous-document`), or a standalone `--read-only` demo. Options such as `--read-only`, `--port N` and `--source-root DIR` may appear in any order.
|
|
98
95
|
|
|
99
|
-
When an isolated launch targets a file or
|
|
96
|
+
When an isolated launch targets a file or directory under `.locus-map/` or inside the launch directory, the CLI defaults `--source-root` to the enclosing project directory so **Open in Zed** and original HTML reports work without extra flags. Pass `--source-root DIR` to point at a different checkout, or `--no-source-root` to disable original-file links. The viewer prints a canonical `http://127.0.0.1:<port>/...` URL and also accepts same-origin requests on `http://localhost:<port>` for local previews. See [viewing and saving documents](LOCAL-DOCUMENT.md) for nested topics, `drafts/`, `topic.json`, comparison and saving.
|
|
100
97
|
|
|
101
98
|
## Open a project's local tasks
|
|
102
99
|
|
|
103
|
-
Use **Tasks** next to the project name when the library has configured task sources.
|
|
100
|
+
Use **Tasks** next to the project name when the library has configured task sources. To open Tasks directly, append `§ion=tasks` to the operator URL's `#workspace=…` fragment. A Tasks link to a library without task sources opens Maps. Reloading the same tab restores its selected section when available. **Maps** returns to the same mounted map, including its camera and pending edits. Selecting a different project uses the usual map departure controls. The operator can read tasks in a read-only launch. A shared diagram URL grants access only to the map surfaces.
|
|
104
101
|
|
|
105
102
|
Declare each task directory in the corresponding registry entry. This entry reads active tasks and the archive from the Billing repository.
|
|
106
103
|
|
|
@@ -114,7 +111,7 @@ taskSources = [
|
|
|
114
111
|
]
|
|
115
112
|
```
|
|
116
113
|
|
|
117
|
-
The task directory resolves below `source_root`.
|
|
114
|
+
The task directory resolves below `source_root`. Use distinct names and portable relative paths. The archive is opt-in. Restart the viewer after changing the registry or replacing a bound directory. A missing directory, an inaccessible or unsafe source, and a readable directory with no records have distinct states.
|
|
118
115
|
|
|
119
116
|
The agent authors the project's editable module inside that directory. The optional `map` is a path relative to it and defaults to `map.mjs`. For example, `views/release.mjs` builds the sibling portable document `views/release.locus-map.json`. Use distinct source names to register multiple modules in one task directory. An explicit build runs trusted project JavaScript. The viewer restores its saved scene. **Tasks** also binds its cards to current local originals.
|
|
120
117
|
|
|
@@ -9,7 +9,7 @@ accepted: "2026-12-03"
|
|
|
9
9
|
|
|
10
10
|
## Decision
|
|
11
11
|
|
|
12
|
-
Use one project selector in the viewer header. List every entry from the operator's `~/.
|
|
12
|
+
Use one project selector in the viewer header. List every entry from the operator's `~/.locus-map/projects.json` in registry order, using its configured display name. Selecting an entry opens the canvas or map library for its configured folder in the running viewer. Remove the separate **Maps / Tasks** switch.
|
|
13
13
|
|
|
14
14
|
Each entry names a project, its repository root and the folder to display. Resolve relative repository roots from the registry directory and folder paths from the declared repository root. Several entries may share a repository root. The [viewer launch guide](../../VIEWER-LAUNCH.md#register-project-tabs), reachable from `locus-map view --help` and the Map skills, is the owner of the instructions for adding a folder.
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ accepted: "2026-12-04"
|
|
|
9
9
|
|
|
10
10
|
## Decision
|
|
11
11
|
|
|
12
|
-
Register direct library folders in `~/.
|
|
12
|
+
Register direct library folders in `~/.locus-map/projects.toml`. A tab may declare a separate source checkout for originals, build inputs, and Tasks. Show Tasks for configured sources. JSON v1 keeps its project roots, source bindings and Tasks switch.
|
|
13
13
|
|
|
14
14
|
The ordinary viewer uses loopback port 8181 by default. Its launch URL grants workspace access and, when enabled, file writes for the current process.
|
|
15
15
|
|