ryugi-artifacts 1.77.0 → 1.78.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.
Files changed (91) hide show
  1. package/dist/cli.cjs +75 -19
  2. package/dist/server.cjs +302 -298
  3. package/dist/viewer/ArtboardLayout-BTys-6Vg.js +13 -0
  4. package/dist/viewer/Canvas-CWPtxXag.js +1 -0
  5. package/dist/viewer/PreviewLayout-Dl9CuJaY.js +2 -0
  6. package/dist/viewer/index.js +2 -2
  7. package/dist/viewer/index4.css +16 -0
  8. package/dist/viewer/preview.html +2 -2
  9. package/dist/viewer/preview.js +1 -1
  10. package/dist/viewer/view-BJqsLsys.js +2 -0
  11. package/dist/viewer-lib/{Canvas-B2u5Xu4Q.js → Canvas-CCq4Ko7_.js} +392 -299
  12. package/dist/viewer-lib/{PhoneArtboardBar-DphUzdTc.js → PhoneArtboardBar-Cll7l0fz.js} +1 -1
  13. package/dist/viewer-lib/{PreviewView-Cmi8qyst.js → PreviewView-D7cDFhyg.js} +306 -65
  14. package/dist/viewer-lib/{ReadOnlyWhiteboard-0a1PF9WY.js → ReadOnlyWhiteboard-CmKjtHFJ.js} +59 -59
  15. package/dist/viewer-lib/{ar-SA-G6X2FPQ2-BxYqMSzi.js → ar-SA-G6X2FPQ2-HZky6mYE.js} +1 -1
  16. package/dist/viewer-lib/{az-AZ-76LH7QW2-Dq3nTGr-.js → az-AZ-76LH7QW2-Bz6gZGXm.js} +1 -1
  17. package/dist/viewer-lib/{bg-BG-XCXSNQG7-DskJTtPp.js → bg-BG-XCXSNQG7-Bj6azCuS.js} +1 -1
  18. package/dist/viewer-lib/{bn-BD-2XOGV67Q-D96UFHku.js → bn-BD-2XOGV67Q-pkZSsKMV.js} +1 -1
  19. package/dist/viewer-lib/{ca-ES-6MX7JW3Y-CuoxBVI2.js → ca-ES-6MX7JW3Y-DInd8tqd.js} +1 -1
  20. package/dist/viewer-lib/{chunk-EIO257PC-DeMrLF_7.js → chunk-EIO257PC-A9RZ-nRE.js} +1 -1
  21. package/dist/viewer-lib/core.js +3 -3
  22. package/dist/viewer-lib/{cs-CZ-2BRQDIVT-BEk-H_Vk.js → cs-CZ-2BRQDIVT-CQ0UDIDw.js} +1 -1
  23. package/dist/viewer-lib/{da-DK-5WZEPLOC-B-2tVr18.js → da-DK-5WZEPLOC-rSt6qKPe.js} +1 -1
  24. package/dist/viewer-lib/{de-DE-XR44H4JA-euPndqvM.js → de-DE-XR44H4JA-DrIjWm0C.js} +1 -1
  25. package/dist/viewer-lib/document.js +1 -1
  26. package/dist/viewer-lib/{el-GR-BZB4AONW-BstNT5YB.js → el-GR-BZB4AONW-3kVOQ15p.js} +1 -1
  27. package/dist/viewer-lib/{en-B4ZKOASM-CLuWsYJe.js → en-B4ZKOASM-sas4DJvS.js} +1 -1
  28. package/dist/viewer-lib/{es-ES-U4NZUMDT-CNH0TChZ.js → es-ES-U4NZUMDT-DF1DXGeP.js} +1 -1
  29. package/dist/viewer-lib/{eu-ES-A7QVB2H4-CNpCf9s7.js → eu-ES-A7QVB2H4-CIu5bgjr.js} +1 -1
  30. package/dist/viewer-lib/{fa-IR-HGAKTJCU-MD2DLnwr.js → fa-IR-HGAKTJCU-Dg12PelN.js} +1 -1
  31. package/dist/viewer-lib/{fi-FI-Z5N7JZ37-B0x5U-9a.js → fi-FI-Z5N7JZ37-DGfGckr2.js} +1 -1
  32. package/dist/viewer-lib/{fr-FR-RHASNOE6-CoVvXGyV.js → fr-FR-RHASNOE6-CB3RBQBb.js} +1 -1
  33. package/dist/viewer-lib/{gl-ES-HMX3MZ6V-BEtAqRTV.js → gl-ES-HMX3MZ6V-srdgH8Yb.js} +1 -1
  34. package/dist/viewer-lib/{he-IL-6SHJWFNN-JnZeHe4y.js → he-IL-6SHJWFNN-C-u3aIrD.js} +1 -1
  35. package/dist/viewer-lib/{hi-IN-IWLTKZ5I-BYVAF-an.js → hi-IN-IWLTKZ5I-DnRD5RwM.js} +1 -1
  36. package/dist/viewer-lib/{hu-HU-A5ZG7DT2-C1g6PvYO.js → hu-HU-A5ZG7DT2-cHUeODPe.js} +1 -1
  37. package/dist/viewer-lib/{id-ID-SAP4L64H-Dz8s_rEF.js → id-ID-SAP4L64H-BYp8Yosj.js} +1 -1
  38. package/dist/viewer-lib/{image-GAAHSSAO-Cp_Oy4Lg.js → image-GAAHSSAO-MaHRDtG2.js} +1 -1
  39. package/dist/viewer-lib/index.js +2352 -2327
  40. package/dist/viewer-lib/{it-IT-JPQ66NNP-B7NhscKF.js → it-IT-JPQ66NNP-K76B2vDZ.js} +1 -1
  41. package/dist/viewer-lib/{ja-JP-DBVTYXUO-CAiycqDW.js → ja-JP-DBVTYXUO-DGtajQ1n.js} +1 -1
  42. package/dist/viewer-lib/{kaa-6HZHGXH3-CAnRls-6.js → kaa-6HZHGXH3-Byq6aZnP.js} +1 -1
  43. package/dist/viewer-lib/{kab-KAB-ZGHBKWFO-DYWHAmBp.js → kab-KAB-ZGHBKWFO-xFQx0VKj.js} +1 -1
  44. package/dist/viewer-lib/{kk-KZ-P5N5QNE5-DPoDluwp.js → kk-KZ-P5N5QNE5-DqTYtjE9.js} +1 -1
  45. package/dist/viewer-lib/{km-KH-HSX4SM5Z-CBiZCJLZ.js → km-KH-HSX4SM5Z-CmHVZ3Pg.js} +1 -1
  46. package/dist/viewer-lib/{ko-KR-MTYHY66A-MocKQnzV.js → ko-KR-MTYHY66A-pItxT0ea.js} +1 -1
  47. package/dist/viewer-lib/{ku-TR-6OUDTVRD-CZzY2yy7.js → ku-TR-6OUDTVRD-DJoNwVzF.js} +1 -1
  48. package/dist/viewer-lib/{lt-LT-XHIRWOB4-Dh-omlnu.js → lt-LT-XHIRWOB4-DG1eQnL9.js} +1 -1
  49. package/dist/viewer-lib/{lv-LV-5QDEKY6T-DVUeEmOB.js → lv-LV-5QDEKY6T-BAFyGSRK.js} +1 -1
  50. package/dist/viewer-lib/{mr-IN-CRQNXWMA-BC2TCxWI.js → mr-IN-CRQNXWMA-Dpt8RtYD.js} +1 -1
  51. package/dist/viewer-lib/{my-MM-5M5IBNSE-D_UqzOnS.js → my-MM-5M5IBNSE-PB-QhewM.js} +1 -1
  52. package/dist/viewer-lib/{nb-NO-T6EIAALU-DZz9rgcM.js → nb-NO-T6EIAALU-DUOVY3a0.js} +1 -1
  53. package/dist/viewer-lib/{nl-NL-IS3SIHDZ-Cxx6IDq2.js → nl-NL-IS3SIHDZ-EvHXncDP.js} +1 -1
  54. package/dist/viewer-lib/{nn-NO-6E72VCQL-DHOwMIp2.js → nn-NO-6E72VCQL-DiLJJ6in.js} +1 -1
  55. package/dist/viewer-lib/{oc-FR-POXYY2M6-BUCg3oNi.js → oc-FR-POXYY2M6-BcMNlMjU.js} +1 -1
  56. package/dist/viewer-lib/{pa-IN-N4M65BXN-DlR0Cv0r.js → pa-IN-N4M65BXN-y8F6i_xQ.js} +1 -1
  57. package/dist/viewer-lib/{percentages-BXMCSKIN-CNHarTCz.js → percentages-BXMCSKIN-BcGLGIbY.js} +1 -1
  58. package/dist/viewer-lib/{pl-PL-T2D74RX3-DBCTNfwV.js → pl-PL-T2D74RX3-BcJAM87-.js} +1 -1
  59. package/dist/viewer-lib/{pt-BR-5N22H2LF-BViO6V5P.js → pt-BR-5N22H2LF-B6LXfMUc.js} +1 -1
  60. package/dist/viewer-lib/{pt-PT-UZXXM6DQ-_-hLEzme.js → pt-PT-UZXXM6DQ-Bp-xUqQ8.js} +1 -1
  61. package/dist/viewer-lib/{ro-RO-JPDTUUEW-B0pUzZSi.js → ro-RO-JPDTUUEW-BSUxwWXI.js} +1 -1
  62. package/dist/viewer-lib/{ru-RU-B4JR7IUQ-D5E11KR4.js → ru-RU-B4JR7IUQ-CQdjNcBG.js} +1 -1
  63. package/dist/viewer-lib/{si-LK-N5RQ5JYF-BFislBlI.js → si-LK-N5RQ5JYF-7CAmmMro.js} +1 -1
  64. package/dist/viewer-lib/{sk-SK-C5VTKIMK-D-yT3OQf.js → sk-SK-C5VTKIMK-CpC5WEtb.js} +1 -1
  65. package/dist/viewer-lib/{sl-SI-NN7IZMDC-BB9t_cfT.js → sl-SI-NN7IZMDC-s5Digk56.js} +1 -1
  66. package/dist/viewer-lib/{stylex-DjVDawxG.css → stylex-B6-Q1VRZ.css} +16 -0
  67. package/dist/viewer-lib/subset-shared.chunk-DVeVdUoS.js +2 -0
  68. package/dist/viewer-lib/{subset-worker.chunk-CthWNHJ8.js → subset-worker.chunk-V92b2YKH.js} +2 -2
  69. package/dist/viewer-lib/{sv-SE-XGPEYMSR-BYTui5Bf.js → sv-SE-XGPEYMSR-D7xx9CF4.js} +1 -1
  70. package/dist/viewer-lib/{ta-IN-2NMHFXQM-gcIYx9DJ.js → ta-IN-2NMHFXQM-DbRLNuGy.js} +1 -1
  71. package/dist/viewer-lib/{th-TH-HPSO5L25-DPpIkMiS.js → th-TH-HPSO5L25-FmDN7f8Q.js} +1 -1
  72. package/dist/viewer-lib/thumbnail.js +281 -1
  73. package/dist/viewer-lib/{tr-TR-DEFEU3FU-CdZ57PYq.js → tr-TR-DEFEU3FU-C6SMoY6h.js} +1 -1
  74. package/dist/viewer-lib/types/src/shared/flow.d.ts +24 -0
  75. package/dist/viewer-lib/types/src/shared/geometry.d.ts +7 -0
  76. package/dist/viewer-lib/types/src/shared/types.d.ts +7 -1
  77. package/dist/viewer-lib/types/src/shared/validate.d.ts +1 -0
  78. package/dist/viewer-lib/types/src/viewer/components/Canvas.d.ts +4 -2
  79. package/dist/viewer-lib/types/src/viewer/components/CanvasNotes.d.ts +6 -0
  80. package/dist/viewer-lib/types/src/viewer/components/FlowLayer.d.ts +9 -0
  81. package/dist/viewer-lib/{uk-UA-QMV73CPH-jb3KN0s9.js → uk-UA-QMV73CPH-UOEzCOen.js} +1 -1
  82. package/dist/viewer-lib/{vi-VN-M7AON7JQ-DczXZH3K.js → vi-VN-M7AON7JQ-Dxi27jBl.js} +1 -1
  83. package/dist/viewer-lib/{zh-CN-LNUGB5OW-B7ikml4p.js → zh-CN-LNUGB5OW-BkbG5N7o.js} +1 -1
  84. package/dist/viewer-lib/{zh-HK-E62DVLB3-GXxZysCg.js → zh-HK-E62DVLB3-Btkkw8Q_.js} +1 -1
  85. package/dist/viewer-lib/{zh-TW-RAJ6MFWO-CLRCR8wM.js → zh-TW-RAJ6MFWO-BeX560km.js} +1 -1
  86. package/package.json +1 -1
  87. package/dist/viewer/ArtboardLayout-C8odRO5-.js +0 -13
  88. package/dist/viewer/Canvas-Lvx_4l7N.js +0 -1
  89. package/dist/viewer/PreviewLayout-DxPulKHq.js +0 -2
  90. package/dist/viewer/view-_lCPxrgM.js +0 -2
  91. package/dist/viewer-lib/subset-shared.chunk-B_z_wg9E.js +0 -2
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/it-IT-JPQ66NNP.js
3
3
  var e = {
4
4
  paste: "Incolla",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/ja-JP-DBVTYXUO.js
3
3
  var e = {
4
4
  paste: "貼り付け",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/kaa-6HZHGXH3.js
3
3
  var e = {
4
4
  paste: "Qoyıw",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/kab-KAB-ZGHBKWFO.js
3
3
  var e = {
4
4
  paste: "Senṭeḍ",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/kk-KZ-P5N5QNE5.js
3
3
  var e = {
4
4
  paste: "Қою",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/km-KH-HSX4SM5Z.js
3
3
  var e = {
4
4
  paste: "បិទភ្ជាប់",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/ko-KR-MTYHY66A.js
3
3
  var e = {
4
4
  paste: "붙여넣기",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/ku-TR-6OUDTVRD.js
3
3
  var e = {
4
4
  paste: "دانانەوە",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/lt-LT-XHIRWOB4.js
3
3
  var e = {
4
4
  paste: "Įklijuoti",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/lv-LV-5QDEKY6T.js
3
3
  var e = {
4
4
  paste: "Ielīmēt",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/mr-IN-CRQNXWMA.js
3
3
  var e = {
4
4
  paste: "चिटकवा",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/my-MM-5M5IBNSE.js
3
3
  var e = {
4
4
  paste: "ထား",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/nb-NO-T6EIAALU.js
3
3
  var e = {
4
4
  paste: "Lim inn",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/nl-NL-IS3SIHDZ.js
3
3
  var e = {
4
4
  paste: "Plakken",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/nn-NO-6E72VCQL.js
3
3
  var e = {
4
4
  paste: "Lim inn",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/oc-FR-POXYY2M6.js
3
3
  var e = {
4
4
  paste: "Pegar",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/pa-IN-N4M65BXN.js
3
3
  var e = {
4
4
  paste: "ਪੇਸਟ ਕਰੋ",
@@ -1 +1 @@
1
- export { t as default, n as en, r as kaa } from "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ export { t as default, n as en, r as kaa } from "./ReadOnlyWhiteboard-CmKjtHFJ.js";
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/pl-PL-T2D74RX3.js
3
3
  var e = {
4
4
  paste: "Wklej",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/pt-BR-5N22H2LF.js
3
3
  var e = {
4
4
  paste: "Colar",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/pt-PT-UZXXM6DQ.js
3
3
  var e = {
4
4
  paste: "Colar",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/ro-RO-JPDTUUEW.js
3
3
  var e = {
4
4
  paste: "Lipire",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/ru-RU-B4JR7IUQ.js
3
3
  var e = {
4
4
  paste: "Вставить",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/si-LK-N5RQ5JYF.js
3
3
  var e = {
4
4
  paste: "අලවන්න",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/sk-SK-C5VTKIMK.js
3
3
  var e = {
4
4
  paste: "Vložiť",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/sl-SI-NN7IZMDC.js
3
3
  var e = {
4
4
  paste: "Prilepi",
@@ -2186,6 +2186,14 @@
2186
2186
  stroke: currentColor;
2187
2187
  }
2188
2188
 
2189
+ .xtfjdih {
2190
+ stroke: var(--lobe-color-text-secondary);
2191
+ }
2192
+
2193
+ .xfa2q5v {
2194
+ stroke: var(--lobe-color-text);
2195
+ }
2196
+
2189
2197
  .x1nvyj2c {
2190
2198
  stroke: var(--x150lbl);
2191
2199
  }
@@ -2202,6 +2210,14 @@
2202
2210
  stroke-width: .7px;
2203
2211
  }
2204
2212
 
2213
+ .x1k315e8 {
2214
+ stroke-width: 1.4px;
2215
+ }
2216
+
2217
+ .xhxwl1 {
2218
+ stroke-width: 1.6px;
2219
+ }
2220
+
2205
2221
  .x1ebhgje {
2206
2222
  stroke-width: 2.4px;
2207
2223
  }
@@ -0,0 +1,2 @@
1
+ export { n as Commands, i as subsetToBase64, r as subsetToBinary, t as toBase64 } from "./chunk-EIO257PC-A9RZ-nRE.js";
2
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
@@ -1,5 +1,5 @@
1
- import { n as e, r as t } from "./chunk-EIO257PC-DeMrLF_7.js";
2
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import { n as e, r as t } from "./chunk-EIO257PC-A9RZ-nRE.js";
2
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
3
3
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/subset-worker.chunk.js
4
4
  var n = import.meta.url ? new URL(import.meta.url) : void 0;
5
5
  typeof window > "u" && typeof self < "u" && (self.onmessage = async (n) => {
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/sv-SE-XGPEYMSR.js
3
3
  var e = {
4
4
  paste: "Klistra in",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/ta-IN-2NMHFXQM.js
3
3
  var e = {
4
4
  paste: "ஒட்டு",
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/th-TH-HPSO5L25.js
3
3
  var e = {
4
4
  paste: "วาง",
@@ -1,3 +1,245 @@
1
+ // src/shared/geometry.ts
2
+ var NAME_STRIP_H = 48;
3
+ var TITLE_LINE_HEIGHT = 1.15;
4
+ var DEFAULT_TITLE_SIZE = 96;
5
+ var STICKY_DEFAULT_W = 240;
6
+ var STICKY_FONT_SIZE = 18;
7
+ var STICKY_LINE_H = 27;
8
+ var STICKY_PAD = 16;
9
+ var CONDITION_H = 96;
10
+ var CONDITION_FONT_SIZE = 40;
11
+ var CONDITION_PAD = 40;
12
+ var CONDITION_GLYPH = 28;
13
+ var CONDITION_GLYPH_GAP = 16;
14
+ var isWide = (code) => code >= 11904;
15
+ function textWidth(text2, fontSize) {
16
+ let width = 0;
17
+ for (const char of text2) width += fontSize * (isWide(char.codePointAt(0)) ? 1 : 0.56);
18
+ return width;
19
+ }
20
+ function wrappedLines(text2, fontSize, maxWidth) {
21
+ return text2.split("\n").reduce(
22
+ (lines, paragraph) => lines + Math.max(1, Math.ceil(textWidth(paragraph, fontSize) / maxWidth)),
23
+ 0
24
+ );
25
+ }
26
+ var conditionWidth = (text2) => Math.ceil(
27
+ textWidth(text2, CONDITION_FONT_SIZE) + CONDITION_PAD * 2 + CONDITION_GLYPH + CONDITION_GLYPH_GAP
28
+ );
29
+ function noteRect(note) {
30
+ if (note.kind === "condition") {
31
+ return { x: note.x, y: note.y, w: conditionWidth(note.text), h: CONDITION_H };
32
+ }
33
+ if (note.kind === "sticky") {
34
+ const w = note.w ?? STICKY_DEFAULT_W;
35
+ const lines = wrappedLines(note.text, STICKY_FONT_SIZE, Math.max(1, w - STICKY_PAD * 2));
36
+ return { x: note.x, y: note.y, w, h: lines * STICKY_LINE_H + STICKY_PAD * 2 };
37
+ }
38
+ const size = note.size ?? DEFAULT_TITLE_SIZE;
39
+ const lineH = size * TITLE_LINE_HEIGHT;
40
+ if (note.w === void 0) {
41
+ return { x: note.x, y: note.y, w: textWidth(note.text, size), h: lineH };
42
+ }
43
+ return { x: note.x, y: note.y, w: note.w, h: wrappedLines(note.text, size, note.w) * lineH };
44
+ }
45
+ var intersects = (a, b) => a.x < b.x + b.w && b.x < a.x + a.w && a.y < b.y + b.h && b.y < a.y + a.h;
46
+
47
+ // src/shared/flow.ts
48
+ var FLOW_LABEL_FONT_SIZE = 32;
49
+ var FLOW_BRANCH_FONT_SIZE = 28;
50
+ var FLOW_LABEL_PAD = 16;
51
+ var LABEL_LINE = 1.4;
52
+ var LABEL_CLEARANCE = 24;
53
+ var SLOT_GAP = 160;
54
+ var ROOM_LIMIT = 2400;
55
+ var centerX = (rect2) => rect2.x + rect2.w / 2;
56
+ var centerY = (rect2) => rect2.y + rect2.h / 2;
57
+ var horizontal = (side) => side === "left" || side === "right";
58
+ function endOf(canvas, page, id) {
59
+ const board = canvas.boards[id];
60
+ const note = canvas.notes?.[id];
61
+ if (board && note) return null;
62
+ if (board?.page === page) {
63
+ return {
64
+ id,
65
+ board: true,
66
+ rect: { x: board.x, y: board.y - NAME_STRIP_H, w: board.w, h: board.h + NAME_STRIP_H }
67
+ };
68
+ }
69
+ if (note?.kind === "condition" && note.page === page) {
70
+ return { id, board: false, rect: noteRect(note) };
71
+ }
72
+ return null;
73
+ }
74
+ function obstaclesOn(canvas, page) {
75
+ const ids = [...Object.keys(canvas.boards), ...Object.keys(canvas.notes ?? {})];
76
+ return [...new Set(ids)].flatMap((id) => endOf(canvas, page, id) ?? []);
77
+ }
78
+ function sidePoint(rect2, side, offset) {
79
+ if (side === "left") return { x: rect2.x, y: centerY(rect2) + offset };
80
+ if (side === "right") return { x: rect2.x + rect2.w, y: centerY(rect2) + offset };
81
+ if (side === "top") return { x: centerX(rect2) + offset, y: rect2.y };
82
+ return { x: centerX(rect2) + offset, y: rect2.y + rect2.h };
83
+ }
84
+ function segmentHits(a, b, rect2) {
85
+ const minX = Math.min(a.x, b.x);
86
+ const maxX = Math.max(a.x, b.x);
87
+ const minY = Math.min(a.y, b.y);
88
+ const maxY = Math.max(a.y, b.y);
89
+ if (minY === maxY) {
90
+ return minY > rect2.y && minY < rect2.y + rect2.h && minX < rect2.x + rect2.w && maxX > rect2.x;
91
+ }
92
+ return minX > rect2.x && minX < rect2.x + rect2.w && minY < rect2.y + rect2.h && maxY > rect2.y;
93
+ }
94
+ function crossed(points2, obstacles, skip) {
95
+ return obstacles.filter(
96
+ (obstacle) => !skip.has(obstacle.id) && points2.some(
97
+ (point, index) => index + 1 < points2.length && segmentHits(point, points2[index + 1], obstacle.rect)
98
+ )
99
+ ).map((obstacle) => obstacle.id);
100
+ }
101
+ function build(plan, fromOffset, toOffset) {
102
+ const start = sidePoint(plan.from.rect, plan.fromSide, fromOffset);
103
+ const end = sidePoint(plan.to.rect, plan.toSide, toOffset);
104
+ if (horizontal(plan.fromSide) !== horizontal(plan.toSide)) {
105
+ const corner = horizontal(plan.fromSide) ? { x: end.x, y: start.y } : { x: start.x, y: end.y };
106
+ return [start, corner, end];
107
+ }
108
+ if (horizontal(plan.fromSide)) {
109
+ if (Math.abs(start.y - end.y) < 0.5) return [start, { x: end.x, y: start.y }];
110
+ const mid2 = (start.x + end.x) / 2;
111
+ return [start, { x: mid2, y: start.y }, { x: mid2, y: end.y }, end];
112
+ }
113
+ if (Math.abs(start.x - end.x) < 0.5) return [start, { x: start.x, y: end.y }];
114
+ const mid = (start.y + end.y) / 2;
115
+ return [start, { x: start.x, y: mid }, { x: end.x, y: mid }, end];
116
+ }
117
+ function chooseSides(from, to, obstacles) {
118
+ const a = from.rect;
119
+ const b = to.rect;
120
+ const right = centerX(b) >= centerX(a);
121
+ const below = centerY(b) >= centerY(a);
122
+ if (a.y < b.y + b.h && b.y < a.y + a.h) return right ? ["right", "left"] : ["left", "right"];
123
+ if (a.x < b.x + b.w && b.x < a.x + a.w) return below ? ["bottom", "top"] : ["top", "bottom"];
124
+ const turns = [
125
+ [right ? "right" : "left", below ? "top" : "bottom"],
126
+ [below ? "bottom" : "top", right ? "left" : "right"]
127
+ ];
128
+ const skip = /* @__PURE__ */ new Set([from.id, to.id]);
129
+ const cost = ([fromSide, toSide], index) => {
130
+ const points2 = build({ from, to, fromSide, toSide }, 0, 0);
131
+ const overBoardTop = fromSide === "top" && from.board || toSide === "top" && to.board;
132
+ const preferred = index === (from.board ? 0 : 1);
133
+ return crossed(points2, obstacles, skip).length * 100 + (overBoardTop ? 10 : 0) + (preferred ? 0 : 1);
134
+ };
135
+ return cost(turns[0], 0) <= cost(turns[1], 1) ? turns[0] : turns[1];
136
+ }
137
+ function slotOffsets(plans) {
138
+ const groups = /* @__PURE__ */ new Map();
139
+ for (const plan of plans) {
140
+ for (const [role, own, side, other] of [
141
+ ["from", plan.from, plan.fromSide, plan.to],
142
+ ["to", plan.to, plan.toSide, plan.from]
143
+ ]) {
144
+ const group = `${own.id}
145
+ ${side}`;
146
+ const flat = horizontal(side);
147
+ const members = groups.get(group) ?? [];
148
+ members.push({
149
+ key: `${plan.id}
150
+ ${role}`,
151
+ edge: plan.id,
152
+ along: flat ? centerY(other.rect) : centerX(other.rect),
153
+ length: flat ? own.rect.h : own.rect.w
154
+ });
155
+ groups.set(group, members);
156
+ }
157
+ }
158
+ const slots = /* @__PURE__ */ new Map();
159
+ for (const members of groups.values()) {
160
+ members.sort((p, q) => p.along - q.along || (p.edge < q.edge ? -1 : 1));
161
+ const length = members[0].length;
162
+ const gap = Math.min(SLOT_GAP, length / (members.length + 1));
163
+ members.forEach((member, index) => {
164
+ slots.set(member.key, {
165
+ offset: (index - (members.length - 1) / 2) * gap,
166
+ size: members.length,
167
+ limit: length / 2 - gap / 2
168
+ });
169
+ });
170
+ }
171
+ return slots;
172
+ }
173
+ function labelFor(plan, points2, obstacles) {
174
+ const text2 = plan.label?.trim();
175
+ if (!text2) return null;
176
+ const branch = !plan.from.board;
177
+ const size = branch ? FLOW_BRANCH_FONT_SIZE : FLOW_LABEL_FONT_SIZE;
178
+ const w = Math.ceil(textWidth(text2, size) + FLOW_LABEL_PAD * 2);
179
+ const h = Math.ceil(size * LABEL_LINE);
180
+ const roomAt = (x, y, flat, length) => {
181
+ let room = flat ? length - LABEL_CLEARANCE * 2 : ROOM_LIMIT;
182
+ const band = { x: x - ROOM_LIMIT / 2, y: y - h / 2, w: ROOM_LIMIT, h };
183
+ for (const { rect: rect2 } of obstacles) {
184
+ if (!intersects(band, rect2)) continue;
185
+ const gap = rect2.x >= x ? rect2.x - x : x >= rect2.x + rect2.w ? x - (rect2.x + rect2.w) : 0;
186
+ room = Math.min(room, gap * 2 - LABEL_CLEARANCE);
187
+ }
188
+ return Math.max(0, room);
189
+ };
190
+ const segments = points2.slice(0, -1).map((a, index) => {
191
+ const b = points2[index + 1];
192
+ return { a, b, flat: a.y === b.y, length: Math.abs(a.x - b.x) + Math.abs(a.y - b.y) };
193
+ }).sort((p, q) => q.length - p.length);
194
+ let best = null;
195
+ for (const { a, b, flat, length } of segments) {
196
+ const x = (a.x + b.x) / 2;
197
+ const y = (a.y + b.y) / 2;
198
+ const fitsAlong = flat || length >= h + LABEL_CLEARANCE * 2;
199
+ const room = fitsAlong ? roomAt(x, y, flat, length) : 0;
200
+ const label = { text: text2, branch, x, y, w, h, room };
201
+ if (room >= w) return label;
202
+ if (!best || room > best.room) best = label;
203
+ }
204
+ return best;
205
+ }
206
+ function routeFlow(canvas, page) {
207
+ const edges = Object.entries(canvas.edges ?? {});
208
+ if (edges.length === 0) return [];
209
+ const obstacles = obstaclesOn(canvas, page);
210
+ const plans = [];
211
+ for (const [id, edge] of edges) {
212
+ if (edge.from === edge.to) continue;
213
+ const from = endOf(canvas, page, edge.from);
214
+ const to = endOf(canvas, page, edge.to);
215
+ if (!from || !to) continue;
216
+ const [fromSide, toSide] = chooseSides(from, to, obstacles);
217
+ plans.push({ id, from, to, fromSide, toSide, label: edge.label });
218
+ }
219
+ const slots = slotOffsets(plans);
220
+ return plans.map((plan) => {
221
+ const fromSlot = slots.get(`${plan.id}
222
+ from`);
223
+ const toSlot = slots.get(`${plan.id}
224
+ to`);
225
+ let fromOffset = fromSlot.offset;
226
+ let toOffset = toSlot.offset;
227
+ const flat = horizontal(plan.fromSide);
228
+ const facing = flat === horizontal(plan.toSide);
229
+ const aligned = facing && (flat ? Math.abs(centerY(plan.from.rect) - centerY(plan.to.rect)) < 0.5 : Math.abs(centerX(plan.from.rect) - centerX(plan.to.rect)) < 0.5);
230
+ if (aligned && fromOffset !== toOffset) {
231
+ const fromLeads = fromSlot.size >= toSlot.size;
232
+ const shared = fromLeads ? fromOffset : toOffset;
233
+ if (Math.abs(shared) <= (fromLeads ? toSlot : fromSlot).limit) {
234
+ fromOffset = shared;
235
+ toOffset = shared;
236
+ }
237
+ }
238
+ const points2 = build(plan, fromOffset, toOffset);
239
+ return { id: plan.id, points: points2, label: labelFor(plan, points2, obstacles) };
240
+ });
241
+ }
242
+
1
243
  // src/shared/whiteboard/thumbnail.ts
2
244
  var W = 600;
3
245
  var H = 360;
@@ -224,6 +466,35 @@ function box(value) {
224
466
  const b = object(value);
225
467
  return [b.x, b.y, b.w, b.h].every(number) && b.w > 0 && b.h > 0 ? b : null;
226
468
  }
469
+ function flowCanvas(canvas, page) {
470
+ const boards = {};
471
+ for (const [id, value] of Object.entries(object(canvas.boards)).slice(0, 2e3)) {
472
+ const b = box(value);
473
+ if (!b || object(value).page !== page) continue;
474
+ boards[id] = { x: b.x, y: b.y, w: b.w, h: b.h, page, file: "" };
475
+ }
476
+ const notes = {};
477
+ for (const [id, value] of Object.entries(object(canvas.notes)).slice(0, 200)) {
478
+ const note = object(value);
479
+ if (note.kind !== "condition" || note.page !== page) continue;
480
+ if (!number(note.x) || !number(note.y)) continue;
481
+ notes[id] = {
482
+ kind: "condition",
483
+ page,
484
+ x: note.x,
485
+ y: note.y,
486
+ text: string(note.text).slice(0, 200)
487
+ };
488
+ }
489
+ const edges = {};
490
+ for (const [id, value] of Object.entries(object(canvas.edges)).slice(0, 200)) {
491
+ const edge = object(value);
492
+ if (typeof edge.from === "string" && typeof edge.to === "string") {
493
+ edges[id] = { from: edge.from, to: edge.to };
494
+ }
495
+ }
496
+ return { version: 1, pages: [{ id: page, name: page }], boards, notes, edges };
497
+ }
227
498
  function artboardDrawing(payload) {
228
499
  const canvas = object(payload.canvas);
229
500
  const page = string(canvas.activePage) || string(children(canvas.pages)[0]?.id);
@@ -265,6 +536,11 @@ function artboardDrawing(payload) {
265
536
  )
266
537
  );
267
538
  }
539
+ for (const route of routeFlow(flowCanvas(canvas, page), page)) {
540
+ shapes.push(
541
+ `<polyline points="${route.points.map((point) => `${point.x},${point.y}`).join(" ")}" fill="none" stroke="var(--muted)" stroke-width="1" vector-effect="non-scaling-stroke"/>`
542
+ );
543
+ }
268
544
  for (const board of boards) {
269
545
  const b = box(board);
270
546
  shapes.push(rect(b.x, b.y, b.w, b.h, "var(--paper)", "var(--border)"));
@@ -282,7 +558,11 @@ function artboardDrawing(payload) {
282
558
  for (const [id, value] of Object.entries(object(canvas.notes)).slice(0, 200)) {
283
559
  const note = object(value), b = box(noteRects[id]);
284
560
  if (note.page !== page || !b) continue;
285
- if (note.kind === "sticky") {
561
+ if (note.kind === "condition") {
562
+ shapes.push(
563
+ `<rect x="${b.x}" y="${b.y}" width="${b.w}" height="${b.h}" rx="${b.h / 2}" fill="var(--paper)" stroke="var(--muted)"/>`
564
+ );
565
+ } else if (note.kind === "sticky") {
286
566
  const color = /^#[\da-f]{3}(?:[\da-f]{3})?$/i.test(string(note.color)) ? string(note.color) : "#f0e2ad";
287
567
  shapes.push(rect(b.x, b.y, b.w, b.h, color));
288
568
  if (b.w * scale > 35)
@@ -1,4 +1,4 @@
1
- import "./ReadOnlyWhiteboard-0a1PF9WY.js";
1
+ import "./ReadOnlyWhiteboard-CmKjtHFJ.js";
2
2
  // ../../node_modules/.pnpm/@excalidraw+excalidraw@0.18.1_@types+react-dom@19.3.0_@types+react@19.3.0__@types+react_a25c1476b9f79f7d7934d7242f2f9a82/node_modules/@excalidraw/excalidraw/dist/prod/locales/tr-TR-DEFEU3FU.js
3
3
  var e = {
4
4
  paste: "Yapıştır",
@@ -0,0 +1,24 @@
1
+ import type { Point } from './arrange';
2
+ import type { CanvasSpec } from './types';
3
+ export declare const FLOW_STROKE = 4;
4
+ export declare const FLOW_RADIUS = 32;
5
+ export declare const FLOW_LABEL_FONT_SIZE = 32;
6
+ export declare const FLOW_BRANCH_FONT_SIZE = 28;
7
+ export declare const FLOW_LABEL_PAD = 16;
8
+ export interface FlowLabel {
9
+ branch: boolean;
10
+ h: number;
11
+ room: number;
12
+ text: string;
13
+ w: number;
14
+ x: number;
15
+ y: number;
16
+ }
17
+ export interface FlowRoute {
18
+ id: string;
19
+ label: FlowLabel | null;
20
+ points: Point[];
21
+ }
22
+ export declare function routeFlow(canvas: CanvasSpec, page: string): FlowRoute[];
23
+ export declare function flowPath(points: Point[], radius: number): string;
24
+ export declare function flowNotices(canvas: CanvasSpec): string[];
@@ -8,9 +8,16 @@ export declare const STICKY_DEFAULT_W = 240;
8
8
  export declare const STICKY_FONT_SIZE = 18;
9
9
  export declare const STICKY_LINE_H = 27;
10
10
  export declare const STICKY_PAD = 16;
11
+ export declare const CONDITION_H = 96;
12
+ export declare const CONDITION_FONT_SIZE = 40;
13
+ export declare const CONDITION_PAD = 40;
14
+ export declare const CONDITION_GLYPH = 28;
15
+ export declare const CONDITION_GLYPH_GAP = 16;
16
+ export declare function textWidth(text: string, fontSize: number): number;
11
17
  export declare function groupFrame(group: GroupSpec, boards: Record<string, BoardSpec>): (Rect & {
12
18
  page: string;
13
19
  }) | null;
20
+ export declare const conditionWidth: (text: string) => number;
14
21
  export declare function noteRect(note: NoteSpec): Rect;
15
22
  export declare function computeLayout(canvas: CanvasSpec): CanvasLayout;
16
23
  export declare const intersects: (a: Rect, b: Rect) => boolean;
@@ -46,7 +46,7 @@ export interface GroupSpec {
46
46
  }
47
47
  export interface NoteSpec {
48
48
  color?: string;
49
- kind: 'title' | 'sticky';
49
+ kind: 'title' | 'sticky' | 'condition';
50
50
  page: string;
51
51
  size?: number;
52
52
  text: string;
@@ -54,6 +54,11 @@ export interface NoteSpec {
54
54
  x: number;
55
55
  y: number;
56
56
  }
57
+ export interface EdgeSpec {
58
+ from: string;
59
+ label?: string;
60
+ to: string;
61
+ }
57
62
  export interface FocusSpec {
58
63
  at: string;
59
64
  target: string;
@@ -62,6 +67,7 @@ export interface CanvasSpec {
62
67
  activePage?: string;
63
68
  boards: Record<string, BoardSpec>;
64
69
  building?: boolean;
70
+ edges?: Record<string, EdgeSpec>;
65
71
  focus?: FocusSpec;
66
72
  groups?: Record<string, GroupSpec>;
67
73
  notes?: Record<string, NoteSpec>;