@8btc/xcanvas 0.0.6 → 0.0.8

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 (103) hide show
  1. package/dist/{XCanvas-0O_tHFEw.js → XCanvas-Mudyne1P.js} +52 -27
  2. package/dist/{ar-SA-G6X2FPQ2-CUQch8Bu.js → ar-SA-G6X2FPQ2-8Nq-Y-Iv.js} +1 -1
  3. package/dist/{arc-BNeAZK7M.js → arc-BRE0byrk.js} +1 -1
  4. package/dist/{az-AZ-76LH7QW2-S7zCmhjd.js → az-AZ-76LH7QW2-DYwVoVXL.js} +1 -1
  5. package/dist/{bg-BG-XCXSNQG7-BaomACPb.js → bg-BG-XCXSNQG7-9-mFsogB.js} +1 -1
  6. package/dist/{blockDiagram-38ab4fdb-uuaKMiit.js → blockDiagram-38ab4fdb-Dnoxx1jd.js} +5 -5
  7. package/dist/{bn-BD-2XOGV67Q-B4ZOXR44.js → bn-BD-2XOGV67Q-DAxNjgo6.js} +1 -1
  8. package/dist/{c4Diagram-3d4e48cf-D0El5K71.js → c4Diagram-3d4e48cf-ZMgTh74U.js} +2 -2
  9. package/dist/{ca-ES-6MX7JW3Y-C9j6b80l.js → ca-ES-6MX7JW3Y-C2jlmHnn.js} +1 -1
  10. package/dist/{channel-D0GG7tON.js → channel-mP7TIBkp.js} +1 -1
  11. package/dist/{chunk-EIO257PC-DHROZNnq.js → chunk-EIO257PC-CEcDeK1s.js} +1 -1
  12. package/dist/{classDiagram-70f12bd4-_PxYAcOj.js → classDiagram-70f12bd4-DmfFCCbG.js} +5 -5
  13. package/dist/{classDiagram-v2-f2320105-BK3MqPEI.js → classDiagram-v2-f2320105-DntHiFTy.js} +5 -5
  14. package/dist/{clone-BrkujBGD.js → clone-BeW2TF1U.js} +1 -1
  15. package/dist/{createText-2e5e7dd3-Bq80vm6R.js → createText-2e5e7dd3-B27jWPN5.js} +1 -1
  16. package/dist/{cs-CZ-2BRQDIVT-AC26XIW8.js → cs-CZ-2BRQDIVT-Dw5iJsg9.js} +1 -1
  17. package/dist/{da-DK-5WZEPLOC-D1njWDpN.js → da-DK-5WZEPLOC-RkrSnnr4.js} +1 -1
  18. package/dist/{de-DE-XR44H4JA-BLei5c8t.js → de-DE-XR44H4JA-CcTGvqQB.js} +1 -1
  19. package/dist/{edges-e0da2a9e-DDVgQkT9.js → edges-e0da2a9e-eGCfYxoS.js} +3 -3
  20. package/dist/{el-GR-BZB4AONW-CLtVLK2_.js → el-GR-BZB4AONW-Bx-YKwRP.js} +1 -1
  21. package/dist/{en-B4ZKOASM-BkiVCiTp.js → en-B4ZKOASM-DumBhMEg.js} +1 -1
  22. package/dist/{erDiagram-9861fffd-BggwpA0d.js → erDiagram-9861fffd-BwItwKVY.js} +4 -4
  23. package/dist/{es-ES-U4NZUMDT-6t5OXWP5.js → es-ES-U4NZUMDT-B2pe8z44.js} +1 -1
  24. package/dist/{eu-ES-A7QVB2H4-rhlnqEau.js → eu-ES-A7QVB2H4-tC_uT03J.js} +1 -1
  25. package/dist/{fa-IR-HGAKTJCU-D1Q0MfUv.js → fa-IR-HGAKTJCU-DFowk71j.js} +1 -1
  26. package/dist/{fi-FI-Z5N7JZ37-D7Jl3QOb.js → fi-FI-Z5N7JZ37-CYaDe4kY.js} +1 -1
  27. package/dist/{flowDb-956e92f1-CR6iE02y.js → flowDb-956e92f1-DlzCWiO_.js} +1 -1
  28. package/dist/{flowDiagram-66a62f08-Du4q_ofc.js → flowDiagram-66a62f08-C_sDPhQA.js} +6 -6
  29. package/dist/{flowDiagram-v2-96b9c2cf-D0E_R5MA.js → flowDiagram-v2-96b9c2cf-B11tAR6K.js} +5 -5
  30. package/dist/{flowchart-elk-definition-4a651766-Bzh2XLMT.js → flowchart-elk-definition-4a651766-D2NO596y.js} +5 -5
  31. package/dist/{fr-FR-RHASNOE6-Ha_ncvfS.js → fr-FR-RHASNOE6-BYKuufPL.js} +1 -1
  32. package/dist/{ganttDiagram-c361ad54-ChlqZoin.js → ganttDiagram-c361ad54-BjG2Ontv.js} +3 -3
  33. package/dist/{gitGraphDiagram-72cf32ee-B8VgGfU5.js → gitGraphDiagram-72cf32ee-DvMNtLOj.js} +1 -1
  34. package/dist/{gl-ES-HMX3MZ6V-Byb1ua43.js → gl-ES-HMX3MZ6V-CA6McgrY.js} +1 -1
  35. package/dist/{graph-BuKcULLX.js → graph-DxqizK4w.js} +1 -1
  36. package/dist/{he-IL-6SHJWFNN-sWTZPkGx.js → he-IL-6SHJWFNN-CMr27ZLd.js} +1 -1
  37. package/dist/{hi-IN-IWLTKZ5I-ujqa8tY2.js → hi-IN-IWLTKZ5I-oz6VXpYi.js} +1 -1
  38. package/dist/{hu-HU-A5ZG7DT2-BKMMlCDq.js → hu-HU-A5ZG7DT2-BF7G7YXp.js} +1 -1
  39. package/dist/{id-ID-SAP4L64H-DdYoIPaO.js → id-ID-SAP4L64H-ESHuVT6-.js} +1 -1
  40. package/dist/{image-EDRW2JGV-TmKMTii0.js → image-EDRW2JGV-D33G57n_.js} +1 -1
  41. package/dist/{index-3862675e-DSIWIEhY.js → index-3862675e-B067OIpg.js} +6 -6
  42. package/dist/{index-Ch5t1LQm.js → index-CGDky2ts.js} +23 -23
  43. package/dist/index.css +19 -11
  44. package/dist/index.js +1 -1
  45. package/dist/index.umd.cjs +81 -56
  46. package/dist/{infoDiagram-f8f76790-DWrilUAf.js → infoDiagram-f8f76790-B0hSyWK-.js} +1 -1
  47. package/dist/{it-IT-JPQ66NNP-DdiNljoF.js → it-IT-JPQ66NNP-DTgC3If1.js} +1 -1
  48. package/dist/{ja-JP-DBVTYXUO-Dvw1jPvF.js → ja-JP-DBVTYXUO-DMYJkPAt.js} +1 -1
  49. package/dist/{journeyDiagram-49397b02-Bn9qQQKW.js → journeyDiagram-49397b02-ei4liBBp.js} +3 -3
  50. package/dist/{kaa-6HZHGXH3-D1MQaKFn.js → kaa-6HZHGXH3-7faVZAsG.js} +1 -1
  51. package/dist/{kab-KAB-ZGHBKWFO-CHeehacW.js → kab-KAB-ZGHBKWFO-CDZbS5Xg.js} +1 -1
  52. package/dist/{kk-KZ-P5N5QNE5-Bztdut0I.js → kk-KZ-P5N5QNE5-B5s6vFHq.js} +1 -1
  53. package/dist/{km-KH-HSX4SM5Z-Dp_uLs3x.js → km-KH-HSX4SM5Z-BpnhGrRv.js} +1 -1
  54. package/dist/{ko-KR-MTYHY66A-BK4k-Hsf.js → ko-KR-MTYHY66A-CDmqwIij.js} +1 -1
  55. package/dist/{ku-TR-6OUDTVRD-BEwx8DLR.js → ku-TR-6OUDTVRD-BqTvFRf0.js} +1 -1
  56. package/dist/{layout-CVMgHVBI.js → layout-C4uQap55.js} +2 -2
  57. package/dist/{line-AJ_D5Wwz.js → line-CMfbqLrW.js} +1 -1
  58. package/dist/{linear-DzJdaRqo.js → linear-D8gJ1ijz.js} +1 -1
  59. package/dist/{lt-LT-XHIRWOB4-CXKIiSll.js → lt-LT-XHIRWOB4-FiL81EQU.js} +1 -1
  60. package/dist/{lv-LV-5QDEKY6T-gvaIvYi0.js → lv-LV-5QDEKY6T-DZcRZck1.js} +1 -1
  61. package/dist/{mindmap-definition-fc14e90a-D8iGZqFZ.js → mindmap-definition-fc14e90a-CsB_KqTa.js} +3 -3
  62. package/dist/{mr-IN-CRQNXWMA-8OJEXPrC.js → mr-IN-CRQNXWMA-D1aUzXJK.js} +1 -1
  63. package/dist/{my-MM-5M5IBNSE-4Qm9hMxV.js → my-MM-5M5IBNSE-BJjXV2Nz.js} +1 -1
  64. package/dist/{nb-NO-T6EIAALU-B9B28_yD.js → nb-NO-T6EIAALU-BwJPCjVP.js} +1 -1
  65. package/dist/{nl-NL-IS3SIHDZ-BfSPSk_u.js → nl-NL-IS3SIHDZ-B7_va5qM.js} +1 -1
  66. package/dist/{nn-NO-6E72VCQL-Bcw7593z.js → nn-NO-6E72VCQL-DlYzhknP.js} +1 -1
  67. package/dist/{oc-FR-POXYY2M6-Ctrk4XPZ.js → oc-FR-POXYY2M6-fbJ0lVu8.js} +1 -1
  68. package/dist/{pa-IN-N4M65BXN-B_jBjPF2.js → pa-IN-N4M65BXN-WaH2mn9K.js} +1 -1
  69. package/dist/{percentages-BXMCSKIN-B1iYzWSl.js → percentages-BXMCSKIN-EuGvXouR.js} +1 -1
  70. package/dist/{pica-D0OxbPZL.js → pica-DTyR4dVJ.js} +1 -1
  71. package/dist/{pieDiagram-8a3498a8-Ctw2l-Jn.js → pieDiagram-8a3498a8-BGarCiqM.js} +2 -2
  72. package/dist/{pl-PL-T2D74RX3-DXmEiUDb.js → pl-PL-T2D74RX3-DSRCUtIx.js} +1 -1
  73. package/dist/{pt-BR-5N22H2LF-q8uXKTMt.js → pt-BR-5N22H2LF-BNmLkvZ5.js} +1 -1
  74. package/dist/{pt-PT-UZXXM6DQ-HiNQ1-b_.js → pt-PT-UZXXM6DQ-CJHXMLD7.js} +1 -1
  75. package/dist/{quadrantDiagram-120e2f19-DqSVS4rF.js → quadrantDiagram-120e2f19-CRdkX8eO.js} +2 -2
  76. package/dist/{requirementDiagram-deff3bca-Bp_VEW5h.js → requirementDiagram-deff3bca-DWSUDCqx.js} +4 -4
  77. package/dist/{ro-RO-JPDTUUEW-BEhUhlib.js → ro-RO-JPDTUUEW-BhFHcGW4.js} +1 -1
  78. package/dist/{ru-RU-B4JR7IUQ-DP2FOFQB.js → ru-RU-B4JR7IUQ-DC_QHh6R.js} +1 -1
  79. package/dist/{sankeyDiagram-04a897e0-D0bNbilS.js → sankeyDiagram-04a897e0-ZMvY5gaS.js} +1 -1
  80. package/dist/{sequenceDiagram-704730f1-CsBgqDqB.js → sequenceDiagram-704730f1-D11Cc6-k.js} +2 -2
  81. package/dist/{si-LK-N5RQ5JYF-DiTk_APi.js → si-LK-N5RQ5JYF-31hRFW5n.js} +1 -1
  82. package/dist/{sk-SK-C5VTKIMK-DWuoidex.js → sk-SK-C5VTKIMK-vMXfnL9Y.js} +1 -1
  83. package/dist/{sl-SI-NN7IZMDC-CycbQiCt.js → sl-SI-NN7IZMDC-DD_Neg7c.js} +1 -1
  84. package/dist/{stateDiagram-587899a1-Cx5sVOsT.js → stateDiagram-587899a1-BJ7F4WYh.js} +5 -5
  85. package/dist/{stateDiagram-v2-d93cdb3a-CeKGzAwr.js → stateDiagram-v2-d93cdb3a-ClnX7rZy.js} +5 -5
  86. package/dist/{styles-6aaf32cf-DEeMwlJz.js → styles-6aaf32cf-CXLL4gQX.js} +1 -1
  87. package/dist/{styles-9a916d00-D1fDEJU2.js → styles-9a916d00-D-44dvfJ.js} +1 -1
  88. package/dist/{styles-c10674c1-BRnSkoBD.js → styles-c10674c1-BFCIU0ot.js} +4 -4
  89. package/dist/{subset-shared.chunk-Cbjm-kAv.js → subset-shared.chunk-NXIDwv6Y.js} +2 -2
  90. package/dist/{subset-worker.chunk-Ba7LSGbd.js → subset-worker.chunk-zsVrN_oJ.js} +2 -2
  91. package/dist/{sv-SE-XGPEYMSR-Cze07_Wo.js → sv-SE-XGPEYMSR-Uy_MPdOX.js} +1 -1
  92. package/dist/{svgDrawCommon-08f97a94-Dwcg5vLE.js → svgDrawCommon-08f97a94-CyLOg6SD.js} +1 -1
  93. package/dist/{ta-IN-2NMHFXQM-BFtqJ5VU.js → ta-IN-2NMHFXQM-DFLOYib-.js} +1 -1
  94. package/dist/{th-TH-HPSO5L25-DWbtHEVA.js → th-TH-HPSO5L25-dOqOKa5c.js} +1 -1
  95. package/dist/{timeline-definition-85554ec2-CxRqaFTP.js → timeline-definition-85554ec2-DlEwv_AG.js} +2 -2
  96. package/dist/{tr-TR-DEFEU3FU-DeTvFCPJ.js → tr-TR-DEFEU3FU-B32ZK0hi.js} +1 -1
  97. package/dist/{uk-UA-QMV73CPH-BY8sbMrV.js → uk-UA-QMV73CPH-CGWCPw02.js} +1 -1
  98. package/dist/{vi-VN-M7AON7JQ-gT4KjEyb.js → vi-VN-M7AON7JQ-6LypDcy7.js} +1 -1
  99. package/dist/{xychartDiagram-e933f94c-DmIfm-lm.js → xychartDiagram-e933f94c-Byx-w9Ab.js} +4 -4
  100. package/dist/{zh-CN-LNUGB5OW-BVNmRD0F.js → zh-CN-LNUGB5OW-CtqD9qgE.js} +1 -1
  101. package/dist/{zh-HK-E62DVLB3-BiI-t3FC.js → zh-HK-E62DVLB3-BKkQsocB.js} +1 -1
  102. package/dist/{zh-TW-RAJ6MFWO-C6W3nOtb.js → zh-TW-RAJ6MFWO-tbKyFR3Q.js} +1 -1
  103. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { J as getDefaultExportFromCjs } from "./XCanvas-0O_tHFEw.js";
1
+ import { J as getDefaultExportFromCjs } from "./XCanvas-Mudyne1P.js";
2
2
  const DEFAULT_FONT_SIZE = 20;
3
3
  const SVG_TO_SHAPE_MAPPER = {
4
4
  rect: "rectangle",
@@ -9892,7 +9892,7 @@ const detector$l = (txt) => {
9892
9892
  return /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(txt);
9893
9893
  };
9894
9894
  const loader$m = async () => {
9895
- const { diagram: diagram2 } = await import("./c4Diagram-3d4e48cf-D0El5K71.js");
9895
+ const { diagram: diagram2 } = await import("./c4Diagram-3d4e48cf-ZMgTh74U.js");
9896
9896
  return { id: id$l, diagram: diagram2 };
9897
9897
  };
9898
9898
  const plugin$j = {
@@ -9910,7 +9910,7 @@ const detector$k = (txt, config2) => {
9910
9910
  return /^\s*graph/.test(txt);
9911
9911
  };
9912
9912
  const loader$l = async () => {
9913
- const { diagram: diagram2 } = await import("./flowDiagram-66a62f08-Du4q_ofc.js");
9913
+ const { diagram: diagram2 } = await import("./flowDiagram-66a62f08-C_sDPhQA.js");
9914
9914
  return { id: id$k, diagram: diagram2 };
9915
9915
  };
9916
9916
  const plugin$i = {
@@ -9931,7 +9931,7 @@ const detector$j = (txt, config2) => {
9931
9931
  return /^\s*flowchart/.test(txt);
9932
9932
  };
9933
9933
  const loader$k = async () => {
9934
- const { diagram: diagram2 } = await import("./flowDiagram-v2-96b9c2cf-D0E_R5MA.js");
9934
+ const { diagram: diagram2 } = await import("./flowDiagram-v2-96b9c2cf-B11tAR6K.js");
9935
9935
  return { id: id$j, diagram: diagram2 };
9936
9936
  };
9937
9937
  const plugin$h = {
@@ -9945,7 +9945,7 @@ const detector$i = (txt) => {
9945
9945
  return /^\s*erDiagram/.test(txt);
9946
9946
  };
9947
9947
  const loader$j = async () => {
9948
- const { diagram: diagram2 } = await import("./erDiagram-9861fffd-BggwpA0d.js");
9948
+ const { diagram: diagram2 } = await import("./erDiagram-9861fffd-BwItwKVY.js");
9949
9949
  return { id: id$i, diagram: diagram2 };
9950
9950
  };
9951
9951
  const plugin$g = {
@@ -9959,7 +9959,7 @@ const detector$h = (txt) => {
9959
9959
  return /^\s*gitGraph/.test(txt);
9960
9960
  };
9961
9961
  const loader$i = async () => {
9962
- const { diagram: diagram2 } = await import("./gitGraphDiagram-72cf32ee-B8VgGfU5.js");
9962
+ const { diagram: diagram2 } = await import("./gitGraphDiagram-72cf32ee-DvMNtLOj.js");
9963
9963
  return { id: id$h, diagram: diagram2 };
9964
9964
  };
9965
9965
  const plugin$f = {
@@ -9973,7 +9973,7 @@ const detector$g = (txt) => {
9973
9973
  return /^\s*gantt/.test(txt);
9974
9974
  };
9975
9975
  const loader$h = async () => {
9976
- const { diagram: diagram2 } = await import("./ganttDiagram-c361ad54-ChlqZoin.js");
9976
+ const { diagram: diagram2 } = await import("./ganttDiagram-c361ad54-BjG2Ontv.js");
9977
9977
  return { id: id$g, diagram: diagram2 };
9978
9978
  };
9979
9979
  const plugin$e = {
@@ -9987,7 +9987,7 @@ const detector$f = (txt) => {
9987
9987
  return /^\s*info/.test(txt);
9988
9988
  };
9989
9989
  const loader$g = async () => {
9990
- const { diagram: diagram2 } = await import("./infoDiagram-f8f76790-DWrilUAf.js");
9990
+ const { diagram: diagram2 } = await import("./infoDiagram-f8f76790-B0hSyWK-.js");
9991
9991
  return { id: id$f, diagram: diagram2 };
9992
9992
  };
9993
9993
  const info = {
@@ -10000,7 +10000,7 @@ const detector$e = (txt) => {
10000
10000
  return /^\s*pie/.test(txt);
10001
10001
  };
10002
10002
  const loader$f = async () => {
10003
- const { diagram: diagram2 } = await import("./pieDiagram-8a3498a8-Ctw2l-Jn.js");
10003
+ const { diagram: diagram2 } = await import("./pieDiagram-8a3498a8-BGarCiqM.js");
10004
10004
  return { id: id$e, diagram: diagram2 };
10005
10005
  };
10006
10006
  const pie = {
@@ -10013,7 +10013,7 @@ const detector$d = (txt) => {
10013
10013
  return /^\s*quadrantChart/.test(txt);
10014
10014
  };
10015
10015
  const loader$e = async () => {
10016
- const { diagram: diagram2 } = await import("./quadrantDiagram-120e2f19-DqSVS4rF.js");
10016
+ const { diagram: diagram2 } = await import("./quadrantDiagram-120e2f19-CRdkX8eO.js");
10017
10017
  return { id: id$d, diagram: diagram2 };
10018
10018
  };
10019
10019
  const plugin$d = {
@@ -10027,7 +10027,7 @@ const detector$c = (txt) => {
10027
10027
  return /^\s*xychart-beta/.test(txt);
10028
10028
  };
10029
10029
  const loader$d = async () => {
10030
- const { diagram: diagram2 } = await import("./xychartDiagram-e933f94c-DmIfm-lm.js");
10030
+ const { diagram: diagram2 } = await import("./xychartDiagram-e933f94c-Byx-w9Ab.js");
10031
10031
  return { id: id$c, diagram: diagram2 };
10032
10032
  };
10033
10033
  const plugin$c = {
@@ -10041,7 +10041,7 @@ const detector$b = (txt) => {
10041
10041
  return /^\s*requirement(Diagram)?/.test(txt);
10042
10042
  };
10043
10043
  const loader$c = async () => {
10044
- const { diagram: diagram2 } = await import("./requirementDiagram-deff3bca-Bp_VEW5h.js");
10044
+ const { diagram: diagram2 } = await import("./requirementDiagram-deff3bca-DWSUDCqx.js");
10045
10045
  return { id: id$b, diagram: diagram2 };
10046
10046
  };
10047
10047
  const plugin$b = {
@@ -10055,7 +10055,7 @@ const detector$a = (txt) => {
10055
10055
  return /^\s*sequenceDiagram/.test(txt);
10056
10056
  };
10057
10057
  const loader$b = async () => {
10058
- const { diagram: diagram2 } = await import("./sequenceDiagram-704730f1-CsBgqDqB.js");
10058
+ const { diagram: diagram2 } = await import("./sequenceDiagram-704730f1-D11Cc6-k.js");
10059
10059
  return { id: id$a, diagram: diagram2 };
10060
10060
  };
10061
10061
  const plugin$a = {
@@ -10073,7 +10073,7 @@ const detector$9 = (txt, config2) => {
10073
10073
  return /^\s*classDiagram/.test(txt);
10074
10074
  };
10075
10075
  const loader$a = async () => {
10076
- const { diagram: diagram2 } = await import("./classDiagram-70f12bd4-_PxYAcOj.js");
10076
+ const { diagram: diagram2 } = await import("./classDiagram-70f12bd4-DmfFCCbG.js");
10077
10077
  return { id: id$9, diagram: diagram2 };
10078
10078
  };
10079
10079
  const plugin$9 = {
@@ -10091,7 +10091,7 @@ const detector$8 = (txt, config2) => {
10091
10091
  return /^\s*classDiagram-v2/.test(txt);
10092
10092
  };
10093
10093
  const loader$9 = async () => {
10094
- const { diagram: diagram2 } = await import("./classDiagram-v2-f2320105-BK3MqPEI.js");
10094
+ const { diagram: diagram2 } = await import("./classDiagram-v2-f2320105-DntHiFTy.js");
10095
10095
  return { id: id$8, diagram: diagram2 };
10096
10096
  };
10097
10097
  const plugin$8 = {
@@ -10109,7 +10109,7 @@ const detector$7 = (txt, config2) => {
10109
10109
  return /^\s*stateDiagram/.test(txt);
10110
10110
  };
10111
10111
  const loader$8 = async () => {
10112
- const { diagram: diagram2 } = await import("./stateDiagram-587899a1-Cx5sVOsT.js");
10112
+ const { diagram: diagram2 } = await import("./stateDiagram-587899a1-BJ7F4WYh.js");
10113
10113
  return { id: id$7, diagram: diagram2 };
10114
10114
  };
10115
10115
  const plugin$7 = {
@@ -10130,7 +10130,7 @@ const detector$6 = (txt, config2) => {
10130
10130
  return false;
10131
10131
  };
10132
10132
  const loader$7 = async () => {
10133
- const { diagram: diagram2 } = await import("./stateDiagram-v2-d93cdb3a-CeKGzAwr.js");
10133
+ const { diagram: diagram2 } = await import("./stateDiagram-v2-d93cdb3a-ClnX7rZy.js");
10134
10134
  return { id: id$6, diagram: diagram2 };
10135
10135
  };
10136
10136
  const plugin$6 = {
@@ -10144,7 +10144,7 @@ const detector$5 = (txt) => {
10144
10144
  return /^\s*journey/.test(txt);
10145
10145
  };
10146
10146
  const loader$6 = async () => {
10147
- const { diagram: diagram2 } = await import("./journeyDiagram-49397b02-Bn9qQQKW.js");
10147
+ const { diagram: diagram2 } = await import("./journeyDiagram-49397b02-ei4liBBp.js");
10148
10148
  return { id: id$5, diagram: diagram2 };
10149
10149
  };
10150
10150
  const plugin$5 = {
@@ -10399,7 +10399,7 @@ const detector$4 = (txt, config2) => {
10399
10399
  return false;
10400
10400
  };
10401
10401
  const loader$5 = async () => {
10402
- const { diagram: diagram2 } = await import("./flowchart-elk-definition-4a651766-Bzh2XLMT.js");
10402
+ const { diagram: diagram2 } = await import("./flowchart-elk-definition-4a651766-D2NO596y.js");
10403
10403
  return { id: id$4, diagram: diagram2 };
10404
10404
  };
10405
10405
  const plugin$4 = {
@@ -10413,7 +10413,7 @@ const detector$3 = (txt) => {
10413
10413
  return /^\s*timeline/.test(txt);
10414
10414
  };
10415
10415
  const loader$4 = async () => {
10416
- const { diagram: diagram2 } = await import("./timeline-definition-85554ec2-CxRqaFTP.js");
10416
+ const { diagram: diagram2 } = await import("./timeline-definition-85554ec2-DlEwv_AG.js");
10417
10417
  return { id: id$3, diagram: diagram2 };
10418
10418
  };
10419
10419
  const plugin$3 = {
@@ -10427,7 +10427,7 @@ const detector$2 = (txt) => {
10427
10427
  return /^\s*mindmap/.test(txt);
10428
10428
  };
10429
10429
  const loader$3 = async () => {
10430
- const { diagram: diagram2 } = await import("./mindmap-definition-fc14e90a-D8iGZqFZ.js");
10430
+ const { diagram: diagram2 } = await import("./mindmap-definition-fc14e90a-CsB_KqTa.js");
10431
10431
  return { id: id$2, diagram: diagram2 };
10432
10432
  };
10433
10433
  const plugin$2 = {
@@ -10441,7 +10441,7 @@ const detector$1 = (txt) => {
10441
10441
  return /^\s*sankey-beta/.test(txt);
10442
10442
  };
10443
10443
  const loader$2 = async () => {
10444
- const { diagram: diagram2 } = await import("./sankeyDiagram-04a897e0-D0bNbilS.js");
10444
+ const { diagram: diagram2 } = await import("./sankeyDiagram-04a897e0-ZMvY5gaS.js");
10445
10445
  return { id: id$1, diagram: diagram2 };
10446
10446
  };
10447
10447
  const plugin$1 = {
@@ -10455,7 +10455,7 @@ const detector = (txt) => {
10455
10455
  return /^\s*block-beta/.test(txt);
10456
10456
  };
10457
10457
  const loader$1 = async () => {
10458
- const { diagram: diagram2 } = await import("./blockDiagram-38ab4fdb-uuaKMiit.js");
10458
+ const { diagram: diagram2 } = await import("./blockDiagram-38ab4fdb-Dnoxx1jd.js");
10459
10459
  return { id, diagram: diagram2 };
10460
10460
  };
10461
10461
  const plugin = {
package/dist/index.css CHANGED
@@ -299,10 +299,6 @@
299
299
  top: calc(var(--spacing) * 14);
300
300
  }
301
301
 
302
- .left-9 {
303
- left: calc(var(--spacing) * 9);
304
- }
305
-
306
302
  .z-100000 {
307
303
  z-index: 100000;
308
304
  }
@@ -391,13 +387,8 @@
391
387
  width: 100%;
392
388
  }
393
389
 
394
- .-translate-x-3 {
395
- --tw-translate-x: calc(var(--spacing) * -3);
396
- translate: var(--tw-translate-x) var(--tw-translate-y);
397
- }
398
-
399
- .-translate-y-12 {
400
- --tw-translate-y: calc(var(--spacing) * -12);
390
+ .translate-y-4 {
391
+ --tw-translate-y: calc(var(--spacing) * 4);
401
392
  translate: var(--tw-translate-x) var(--tw-translate-y);
402
393
  }
403
394
 
@@ -417,6 +408,10 @@
417
408
  flex-direction: column;
418
409
  }
419
410
 
411
+ .flex-wrap {
412
+ flex-wrap: wrap;
413
+ }
414
+
420
415
  .items-center {
421
416
  align-items: center;
422
417
  }
@@ -433,6 +428,10 @@
433
428
  justify-content: center;
434
429
  }
435
430
 
431
+ .gap-2 {
432
+ gap: calc(var(--spacing) * 2);
433
+ }
434
+
436
435
  .gap-2\.5 {
437
436
  gap: calc(var(--spacing) * 2.5);
438
437
  }
@@ -564,10 +563,19 @@
564
563
  padding: 4px !important;
565
564
  }
566
565
 
566
+ .custom-excalidraw .App-bottom-bar, .custom-excalidraw .undo-redo-buttons, .custom-excalidraw .App-toolbar__divider, .custom-excalidraw .App-toolbar__extra-tools-trigger {
567
+ display: none !important;
568
+ }
569
+
567
570
  .custom-excalidraw .excalidraw.theme--dark {
568
571
  --color-primary: pink;
569
572
  --color-on-primary-container: #000;
570
573
  --color-surface-primary-container: #d0ff35;
574
+ --color-primary-darkest: #d0ff35;
575
+ --color-brand-hover: #d0ff35;
576
+ --button-active-border: #d0ff35;
577
+ --icon-fill-color: #fff;
578
+ --text-primary-color: #fff;
571
579
  }
572
580
 
573
581
  @property --tw-translate-x {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { M } from "./XCanvas-0O_tHFEw.js";
2
+ import { M } from "./XCanvas-Mudyne1P.js";
3
3
  import "jotai";
4
4
  import "react";
5
5
  export {
@@ -7348,7 +7348,7 @@ PQIDAQAB`, VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "false", VITE_APP_
7348
7348
  var br = 2, Er = 2 * br, m6 = 1e-5, xE = 2 * Er - m6, hE = "#ffffff", yE = "#1e1e1e", IE = "#a2f1a6";
7349
7349
  var xo = 20, ho = 5, yo = { svg: "image/svg+xml", png: "image/png", jpg: "image/jpeg", gif: "image/gif", webp: "image/webp", bmp: "image/bmp", ico: "image/x-icon", avif: "image/avif", jfif: "image/jfif" }, H = { text: "text/plain", html: "text/html", json: "application/json", excalidraw: "application/vnd.excalidraw+json", excalidrawlib: "application/vnd.excalidrawlib+json", "excalidraw.svg": "image/svg+xml", "excalidraw.png": "image/png", binary: "application/octet-stream", ...yo }, Hs = [H.text, H.html, ...Object.values(yo)], wE = { png: "png", svg: "svg", clipboard: "clipboard" }, Ze = { excalidraw: "excalidraw", excalidrawClipboard: "excalidraw/clipboard", excalidrawLibrary: "excalidrawlib", excalidrawClipboardWithAPI: "excalidraw-api/clipboard" }, Ci$1 = window.EXCALIDRAW_EXPORT_SOURCE || window.location.origin, RE = 500, TE = 300, ME = 500;
7350
7350
  var LE = 100, DE = 0.1, Js$1 = 0.1, Ys = 30, SE = 300;
7351
- var Io = "invert(93%) hue-rotate(180deg)", PE = { canvasActions: { changeViewBackgroundColor: true, clearCanvas: true, export: { saveFileToDisk: true }, loadScene: true, saveToActiveFile: true, toggleTheme: null, saveAsImage: true } }, NE = 730, FE = 1e3, BE = 500, _E = 1229, qn = 2, Cs = [1, 2, 3], Vi$1 = 10, OE = 1440, AE = 4 * 1024 * 1024, re$1 = "http://www.w3.org/2000/svg";
7351
+ var Io = "invert(93%) hue-rotate(180deg)", PE = { canvasActions: { changeViewBackgroundColor: true, clearCanvas: true, export: { saveFileToDisk: true }, loadScene: true, saveToActiveFile: true, toggleTheme: null, saveAsImage: true } }, _E = 1229, qn = 2, Cs = [1, 2, 3], Vi$1 = 10, OE = 1440, AE = 4 * 1024 * 1024, re$1 = "http://www.w3.org/2000/svg";
7352
7352
  var qi = { excalidraw: 2, excalidrawLibrary: 2 }, Se = 5, Vs = 0.7, qs$1 = 11, kt = { TOP: "top", MIDDLE: "middle", BOTTOM: "bottom" }, Xi$1 = { LEFT: "left", CENTER: "center", RIGHT: "right" }, Xs$1 = 20, wo = 0.25, Gs = 32, ot = { LEGACY: 1, PROPORTIONAL_RADIUS: 2, ADAPTIVE_RADIUS: 3 }, Gi = { artist: 1, cartoonist: 2 }, KE$1 = { thin: 1, bold: 2, extraBold: 4 }, we = { strokeColor: Z.black, backgroundColor: Z.transparent, fillStyle: "solid", strokeWidth: 2, strokeStyle: "solid", roughness: Gi.artist, opacity: 100, locked: false }, b6 = "library", HE = "search", ks = { name: "default", defaultTab: b6 }, JE$1 = /* @__PURE__ */ new Set(["iframe", "embeddable", "image"]), fn$7 = { selection: "selection", rectangle: "rectangle", diamond: "diamond", ellipse: "ellipse", text: "text", image: "image", eraser: "eraser", frame: "frame", magicframe: "magicframe", laser: "laser" }, YE$1 = { MERMAID_TO_EXCALIDRAW: "mermaid-to-excalidraw", PUBLISH_LIBRARY: "publish-library-data" }, Zs$1 = "Untitled", ki = { generalStats: 1, elementProperties: 2 }, CE = 1, Ws$1 = { sharp: "sharp", round: "round", elbow: "elbow" }, zs = 0.3, gr = "element", Qs = Symbol.for("__test__originalId__"), E6 = ((r3) => (r3.ACTIVE = "active", r3.AWAY = "away", r3.IDLE = "idle", r3))(E6 || {});
7353
7353
  var g6 = Cs.includes(devicePixelRatio) ? devicePixelRatio : 1, mt = () => ({ showWelcomeScreen: false, theme: ke.LIGHT, collaborators: /* @__PURE__ */ new Map(), currentChartType: "bar", currentItemBackgroundColor: we.backgroundColor, currentItemEndArrowhead: "arrow", currentItemFillStyle: we.fillStyle, currentItemFontFamily: Ft, currentItemFontSize: ut, currentItemOpacity: we.opacity, currentItemRoughness: we.roughness, currentItemStartArrowhead: null, currentItemStrokeColor: we.strokeColor, currentItemRoundness: "round", currentItemArrowType: Ws$1.round, currentItemStrokeStyle: we.strokeStyle, currentItemStrokeWidth: we.strokeWidth, currentItemTextAlign: Vn, currentHoveredFontFamily: null, cursorButton: "up", activeEmbeddable: null, newElement: null, editingTextElement: null, editingGroupId: null, editingLinearElement: null, activeTool: { type: "selection", customType: null, locked: we.locked, lastActiveTool: null }, penMode: false, penDetected: false, errorMessage: null, exportBackground: true, exportScale: g6, exportEmbedScene: false, exportWithDarkMode: false, fileHandle: null, gridSize: xo, gridStep: ho, gridModeEnabled: false, isBindingEnabled: true, defaultSidebarDockedPreference: false, isLoading: false, isResizing: false, isRotating: false, lastPointerDownWith: "mouse", multiElement: null, name: null, contextMenu: null, openMenu: null, openPopup: null, openSidebar: null, openDialog: null, pasteDialog: { shown: false, data: null }, previousSelectedElementIds: {}, resizingElement: null, scrolledOutside: false, scrollX: 0, scrollY: 0, selectedElementIds: {}, hoveredElementIds: {}, selectedGroupIds: {}, selectedElementsAreBeingDragged: false, selectionElement: null, shouldCacheIgnoreZoom: false, stats: { open: false, panels: ki.generalStats | ki.elementProperties }, startBoundElement: null, suggestedBindings: [], frameRendering: { enabled: true, clip: true, name: true, outline: true }, frameToHighlight: null, editingFrame: null, elementsToHighlight: null, toast: null, viewBackgroundColor: Z.white, zenModeEnabled: false, zoom: { value: 1 }, viewModeEnabled: false, pendingImageElementId: null, showHyperlinkPopup: false, selectedLinearElement: null, snapLines: [], originSnapOffset: { x: 0, y: 0 }, objectsSnapModeEnabled: false, userToFollow: null, followedBy: /* @__PURE__ */ new Set(), isCropping: false, croppingElementId: null, searchMatches: [] }), x6 = /* @__PURE__ */ ((e3) => e3)({ showWelcomeScreen: { browser: true, export: false, server: false }, theme: { browser: true, export: false, server: false }, collaborators: { browser: false, export: false, server: false }, currentChartType: { browser: true, export: false, server: false }, currentItemBackgroundColor: { browser: true, export: false, server: false }, currentItemEndArrowhead: { browser: true, export: false, server: false }, currentItemFillStyle: { browser: true, export: false, server: false }, currentItemFontFamily: { browser: true, export: false, server: false }, currentItemFontSize: { browser: true, export: false, server: false }, currentItemRoundness: { browser: true, export: false, server: false }, currentItemArrowType: { browser: true, export: false, server: false }, currentItemOpacity: { browser: true, export: false, server: false }, currentItemRoughness: { browser: true, export: false, server: false }, currentItemStartArrowhead: { browser: true, export: false, server: false }, currentItemStrokeColor: { browser: true, export: false, server: false }, currentItemStrokeStyle: { browser: true, export: false, server: false }, currentItemStrokeWidth: { browser: true, export: false, server: false }, currentItemTextAlign: { browser: true, export: false, server: false }, currentHoveredFontFamily: { browser: false, export: false, server: false }, cursorButton: { browser: true, export: false, server: false }, activeEmbeddable: { browser: false, export: false, server: false }, newElement: { browser: false, export: false, server: false }, editingTextElement: { browser: false, export: false, server: false }, editingGroupId: { browser: true, export: false, server: false }, editingLinearElement: { browser: false, export: false, server: false }, activeTool: { browser: true, export: false, server: false }, penMode: { browser: true, export: false, server: false }, penDetected: { browser: true, export: false, server: false }, errorMessage: { browser: false, export: false, server: false }, exportBackground: { browser: true, export: false, server: false }, exportEmbedScene: { browser: true, export: false, server: false }, exportScale: { browser: true, export: false, server: false }, exportWithDarkMode: { browser: true, export: false, server: false }, fileHandle: { browser: false, export: false, server: false }, gridSize: { browser: true, export: true, server: true }, gridStep: { browser: true, export: true, server: true }, gridModeEnabled: { browser: true, export: true, server: true }, height: { browser: false, export: false, server: false }, isBindingEnabled: { browser: false, export: false, server: false }, defaultSidebarDockedPreference: { browser: true, export: false, server: false }, isLoading: { browser: false, export: false, server: false }, isResizing: { browser: false, export: false, server: false }, isRotating: { browser: false, export: false, server: false }, lastPointerDownWith: { browser: true, export: false, server: false }, multiElement: { browser: false, export: false, server: false }, name: { browser: true, export: false, server: false }, offsetLeft: { browser: false, export: false, server: false }, offsetTop: { browser: false, export: false, server: false }, contextMenu: { browser: false, export: false, server: false }, openMenu: { browser: true, export: false, server: false }, openPopup: { browser: false, export: false, server: false }, openSidebar: { browser: true, export: false, server: false }, openDialog: { browser: false, export: false, server: false }, pasteDialog: { browser: false, export: false, server: false }, previousSelectedElementIds: { browser: true, export: false, server: false }, resizingElement: { browser: false, export: false, server: false }, scrolledOutside: { browser: true, export: false, server: false }, scrollX: { browser: true, export: false, server: false }, scrollY: { browser: true, export: false, server: false }, selectedElementIds: { browser: true, export: false, server: false }, hoveredElementIds: { browser: false, export: false, server: false }, selectedGroupIds: { browser: true, export: false, server: false }, selectedElementsAreBeingDragged: { browser: false, export: false, server: false }, selectionElement: { browser: false, export: false, server: false }, shouldCacheIgnoreZoom: { browser: true, export: false, server: false }, stats: { browser: true, export: false, server: false }, startBoundElement: { browser: false, export: false, server: false }, suggestedBindings: { browser: false, export: false, server: false }, frameRendering: { browser: false, export: false, server: false }, frameToHighlight: { browser: false, export: false, server: false }, editingFrame: { browser: false, export: false, server: false }, elementsToHighlight: { browser: false, export: false, server: false }, toast: { browser: false, export: false, server: false }, viewBackgroundColor: { browser: true, export: true, server: true }, width: { browser: false, export: false, server: false }, zenModeEnabled: { browser: true, export: false, server: false }, zoom: { browser: true, export: false, server: false }, viewModeEnabled: { browser: false, export: false, server: false }, pendingImageElementId: { browser: false, export: false, server: false }, showHyperlinkPopup: { browser: false, export: false, server: false }, selectedLinearElement: { browser: true, export: false, server: false }, snapLines: { browser: false, export: false, server: false }, originSnapOffset: { browser: false, export: false, server: false }, objectsSnapModeEnabled: { browser: true, export: false, server: false }, userToFollow: { browser: false, export: false, server: false }, followedBy: { browser: false, export: false, server: false }, isCropping: { browser: false, export: false, server: false }, croppingElementId: { browser: false, export: false, server: false }, searchMatches: { browser: false, export: false, server: false } }), js = (e3, t5) => {
7354
7354
  let n3 = {};
@@ -25479,7 +25479,7 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
25479
25479
  this.fonts.onLoaded(n8);
25480
25480
  }), op$1(window.location.href) && this.scrollToContent(window.location.href, { animate: false });
25481
25481
  });
25482
- i$S(this, "isMobileBreakpoint", (t8, r5) => t8 < NE || r5 < BE && t8 < FE);
25482
+ i$S(this, "isMobileBreakpoint", (t8, r5) => false);
25483
25483
  i$S(this, "refreshViewportBreakpoints", () => {
25484
25484
  if (!this.excalidrawContainerRef.current) return;
25485
25485
  let { clientWidth: r5, clientHeight: n8 } = document.body, i5 = this.device.viewport, a8 = Ig$1(i5, { isLandscape: r5 > n8, isMobile: this.isMobileBreakpoint(r5, n8) });
@@ -27497,24 +27497,29 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27497
27497
  const minX = -appState.scrollX + padding2;
27498
27498
  const minY = -appState.scrollY + padding2;
27499
27499
  const maxX = minX + canvasW - padding2 * 2;
27500
+ let minElX = Infinity;
27500
27501
  let maxElY = -Infinity;
27501
27502
  elements2.forEach((el2) => {
27503
+ minElX = Math.min(minElX, el2.x);
27502
27504
  maxElY = Math.max(maxElY, el2.y + el2.height);
27503
27505
  });
27504
- const px2 = minX;
27506
+ if (minElX === Infinity) {
27507
+ minElX = 0;
27508
+ }
27509
+ const px2 = minElX;
27505
27510
  const py = Math.max(maxElY, minY) + gap;
27506
- let startX2 = px2;
27511
+ let accWidth = 0;
27507
27512
  let startY2 = py;
27508
27513
  const ret = newElements.map((it2, index2) => {
27509
- if (startX2 + it2.width > maxX) {
27510
- startX2 = px2;
27514
+ if (accWidth + it2.width > maxX) {
27515
+ accWidth = 0;
27511
27516
  startY2 += it2.height + gap;
27512
27517
  }
27513
27518
  const place = {
27514
- x: startX2,
27519
+ x: accWidth + px2,
27515
27520
  y: startY2
27516
27521
  };
27517
- startX2 += it2.width + gap;
27522
+ accWidth += it2.width + gap;
27518
27523
  return place;
27519
27524
  });
27520
27525
  return ret;
@@ -27527,6 +27532,7 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27527
27532
  return;
27528
27533
  }
27529
27534
  const insertImgs = async (urls) => {
27535
+ if (urls.length === 0) return;
27530
27536
  const rets = await Promise.all(
27531
27537
  urls.map(async (it2) => {
27532
27538
  const temp = await fetchImageAsDataUrl(it2);
@@ -27567,6 +27573,9 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27567
27573
  excalidrawAPI.updateScene({
27568
27574
  elements: [...currentElements, ...els]
27569
27575
  });
27576
+ excalidrawAPI.scrollToContent(els, {
27577
+ animate: true
27578
+ });
27570
27579
  };
27571
27580
  setApi({
27572
27581
  rawApi: excalidrawAPI,
@@ -27691,6 +27700,7 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27691
27700
  const uploadPng = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADmSURBVHgB7ddhDcIwEAXgN4IAJFQCEpCAA5AAChYkoAAJk7DgABRMAkNBabMLNIOWLAfrQe5LLrllP/bS7pYOUOqPWGuXrlaQyAUzri5UBpJQuMY++H4GKVyYyj6rIIELUtq4EjnRULyzQA4v3rsY1tBMwbMLer+dhvqTqz0kcatUB6tW40MmEE4DcmlALg3IpQG5NCDXbwW03cm4oTpgJKnn9o9b/j/CUG8wzDnojxgm+lzuefCuKIoNvkCHhEsDcqWGZD7ip8bEbqQC+tFfI7P+FrfI7xpe9Fdwi27lcmkpg1Ji3AC3ge/7wFZ4CAAAAABJRU5ErkJggg==";
27692
27701
  const sendPng = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIfSURBVHgBzVdLbsIwEJ2ECugOiQuEDbCkJ2h6Ath2BT1B2xMAN+AI5Ab0BKQ3YIMErHwAFlkCEtA3VYhcGufnhPZJkY099nsej8eG6I9h0I1gWVatXC7bXN9sNrObCGDSarXaO5/PfXwdNNX8rgVEPBQigEkrlcoA1S5IbZWdaZpPq9XKvaMCSPHFjjmdTt/eyCyg3W5bmKRvGIadlFTG4XBwUwsAqQ3SR5AOUFrclpaYgfEfQggvkQAmPR6PXexZT4dUBuYJTsFdFKm/0hpKbVIZpVLJ/SWA9xSkrzJpEcC8LqJf/BDA5FjhHJ0WFQwszpF/m35jBwIs0sMYyQVrMN6jjGT3BwIQYB7pk4+4sl6vJyqja/cHAjgj8SSkSc5oNptDleG1+wMBDJ4EnmiguiA98pHK+Nr9jNBQR1AOEBPDmLhIRU7SBSTDDLPElkz3+z0bj3Mi5/13wtpN1QBOldK2ODrkvoBZaDslBIh6nCfkKE9KTgr3MxJfRvIrJiU5p/FPVZ9JGdBqtd6SkjPwFJtSngKwFWmOqlgul4tcBXDi4qyW0DzSLpMABgS8oIhN4ThFTlR/iTJiu9169Xr9HlU7wkzg1EReTpk9wMC7bgJPiAgTl2KgJYCTFQQoL7E49zNyefbgWM5D/gMI5I5G3FgtD1yg8IJLCZA5CGUgIAUCkr1p+00e3P/MgRo3NteXJ7+mUVi73W52eff/e3wBkD0MwCUjatAAAAAASUVORK5CYII=";
27693
27702
  const xSvg = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_179999_13910)'%3e%3crect%20width='16'%20height='16'%20fill='white'%20fill-opacity='0.01'/%3e%3cpath%20d='M1.86072%20-0.733398C1.98913%20-0.733276%202.10955%20-0.677378%202.18982%20-0.581055L7.98865%206.33203L13.7885%20-0.581055C13.8715%20-0.677369%2013.9917%20-0.733398%2014.1176%20-0.733398H16.2552C16.4372%20-0.73316%2016.5361%20-0.52202%2016.4183%20-0.382812L9.38708%207.99805L16.4183%2016.3799C16.5359%2016.5191%2016.4371%2016.7302%2016.2552%2016.7305H14.1176C13.9892%2016.7305%2013.8688%2016.6743%2013.7885%2016.5781L7.98865%209.66406L2.18982%2016.5781C2.10688%2016.6743%201.98639%2016.7303%201.86072%2016.7305H-0.276978C-0.317719%2016.7307%20-0.357793%2016.7191%20-0.392212%2016.6973C-0.426624%2016.6755%20-0.454109%2016.6443%20-0.471313%2016.6074C-0.488469%2016.5706%20-0.495252%2016.5295%20-0.489868%2016.4893C-0.484428%2016.449%20-0.467249%2016.4109%20-0.44104%2016.3799L6.59021%207.99805L-0.44104%20-0.382812C-0.558693%20-0.5221%20-0.459053%20-0.733398%20-0.276978%20-0.733398H1.86072Z'%20fill='%23BFBFBF'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_179999_13910'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
27703
+ let _id = "";
27694
27704
  function FloatingMenu() {
27695
27705
  const [excalidrawAPI] = jotai.useAtom(excalidrawApiAtom);
27696
27706
  const [pos, setPos] = React.useState(null);
@@ -27810,20 +27820,25 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27810
27820
  setPos(null);
27811
27821
  return;
27812
27822
  }
27813
- const rightX = selectedElements.reduce(
27814
- (acc, element2) => Math.max(acc, element2.x + element2.width || 0),
27815
- Number.NEGATIVE_INFINITY
27823
+ const leftX = selectedElements.reduce(
27824
+ (acc, element2) => Math.min(acc, element2.x),
27825
+ Infinity
27816
27826
  );
27817
- const rightY = selectedElements.reduce(
27818
- (acc, element2) => Math.min(acc, element2.y),
27819
- Number.POSITIVE_INFINITY
27827
+ const bottomY = selectedElements.reduce(
27828
+ (acc, element2) => Math.max(acc, element2.y + element2.height),
27829
+ -Infinity
27820
27830
  );
27821
27831
  const scrollX = appState.scrollX;
27822
27832
  const scrollY = appState.scrollY;
27823
27833
  const zoom = appState.zoom.value;
27824
- const offsetX = (scrollX + rightX) * zoom;
27825
- const offsetY = (scrollY + rightY) * zoom;
27834
+ const offsetX = (scrollX + leftX) * zoom;
27835
+ const offsetY = (scrollY + bottomY) * zoom;
27826
27836
  setPos({ x: offsetX, y: offsetY });
27837
+ if (_id !== Object.keys(selectedIds).join(",")) {
27838
+ _id = Object.keys(selectedIds).join(",");
27839
+ setShowChatbox(false);
27840
+ setPrompt("");
27841
+ }
27827
27842
  });
27828
27843
  return unsub;
27829
27844
  }, [excalidrawAPI]);
@@ -27833,7 +27848,7 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27833
27848
  return /* @__PURE__ */ jsxRuntime.jsxs(
27834
27849
  "div",
27835
27850
  {
27836
- className: "floating-menu absolute -translate-y-12 -translate-x-3 z-100000",
27851
+ className: "floating-menu absolute translate-y-4 z-100000",
27837
27852
  style: {
27838
27853
  left: pos.x,
27839
27854
  top: pos.y
@@ -27868,7 +27883,7 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27868
27883
  showChatbox && /* @__PURE__ */ jsxRuntime.jsxs(
27869
27884
  "form",
27870
27885
  {
27871
- className: "flex flex-col absolute top-14 left-9 bg-[rgb(38,38,38)] border border-solid border-[rgb(67,67,67)] rounded-2xl p-4 space-y-3",
27886
+ className: "flex flex-col absolute top-14 bg-[rgb(38,38,38)] border border-solid border-[rgb(67,67,67)] rounded-2xl p-4 space-y-3",
27872
27887
  onSubmit: (e3) => {
27873
27888
  e3.preventDefault();
27874
27889
  handleChatToEdit();
@@ -27877,7 +27892,17 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27877
27892
  children: [
27878
27893
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between", children: [
27879
27894
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-base leading-6 text-white font-medium", children: "Chat to Edit" }),
27880
- /* @__PURE__ */ jsxRuntime.jsx("img", { src: xSvg, className: "w-4 h-4 cursor-pointer", alt: "" })
27895
+ /* @__PURE__ */ jsxRuntime.jsx(
27896
+ "img",
27897
+ {
27898
+ src: xSvg,
27899
+ className: "w-4 h-4 cursor-pointer",
27900
+ alt: "",
27901
+ onClick: () => {
27902
+ setShowChatbox(false);
27903
+ }
27904
+ }
27905
+ )
27881
27906
  ] }),
27882
27907
  /* @__PURE__ */ jsxRuntime.jsx(
27883
27908
  "textarea",
@@ -27907,7 +27932,7 @@ TTD mermaid definition render errror: ${M.message}`, "color: yellow"), le("ai",
27907
27932
  }
27908
27933
  );
27909
27934
  }
27910
- const version$4 = "0.0.6";
27935
+ const version$4 = "0.0.8";
27911
27936
  const packageJson = {
27912
27937
  version: version$4
27913
27938
  };
@@ -70638,9 +70663,9 @@ ${config2.themeCSS}`;
70638
70663
  }
70639
70664
  return id2;
70640
70665
  };
70641
- const addVertex = function(_id, textObj, type2, style, classes2, dir2, props = {}) {
70666
+ const addVertex = function(_id2, textObj, type2, style, classes2, dir2, props = {}) {
70642
70667
  let txt;
70643
- let id2 = _id;
70668
+ let id2 = _id2;
70644
70669
  if (id2 === void 0) {
70645
70670
  return;
70646
70671
  }
@@ -70667,7 +70692,7 @@ ${config2.themeCSS}`;
70667
70692
  vertices[id2].text = txt;
70668
70693
  } else {
70669
70694
  if (vertices[id2].text === void 0) {
70670
- vertices[id2].text = _id;
70695
+ vertices[id2].text = _id2;
70671
70696
  }
70672
70697
  }
70673
70698
  if (type2 !== void 0) {
@@ -70796,8 +70821,8 @@ You have to call mermaid.initialize.`
70796
70821
  }
70797
70822
  };
70798
70823
  const setClass$1 = function(ids, className) {
70799
- ids.split(",").forEach(function(_id) {
70800
- let id2 = _id;
70824
+ ids.split(",").forEach(function(_id2) {
70825
+ let id2 = _id2;
70801
70826
  if (vertices[id2] !== void 0) {
70802
70827
  vertices[id2].classes.push(className);
70803
70828
  }
@@ -70934,10 +70959,10 @@ You have to call mermaid.initialize.`
70934
70959
  const defaultStyle = function() {
70935
70960
  return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
70936
70961
  };
70937
- const addSubGraph = function(_id, list2, _title) {
70938
- let id2 = _id.text.trim();
70962
+ const addSubGraph = function(_id2, list2, _title) {
70963
+ let id2 = _id2.text.trim();
70939
70964
  let title2 = _title.text;
70940
- if (_id === _title && _title.text.match(/\s/)) {
70965
+ if (_id2 === _title && _title.text.match(/\s/)) {
70941
70966
  id2 = void 0;
70942
70967
  }
70943
70968
  function uniq(a3) {
@@ -71153,10 +71178,10 @@ You have to call mermaid.initialize.`
71153
71178
  }
71154
71179
  return info2;
71155
71180
  };
71156
- const exists = (allSgs, _id) => {
71181
+ const exists = (allSgs, _id2) => {
71157
71182
  let res = false;
71158
71183
  allSgs.forEach((sg2) => {
71159
- const pos = sg2.nodes.indexOf(_id);
71184
+ const pos = sg2.nodes.indexOf(_id2);
71160
71185
  if (pos >= 0) {
71161
71186
  res = true;
71162
71187
  }
@@ -71165,8 +71190,8 @@ You have to call mermaid.initialize.`
71165
71190
  };
71166
71191
  const makeUniq = (sg2, allSubgraphs) => {
71167
71192
  const res = [];
71168
- sg2.nodes.forEach((_id, pos) => {
71169
- if (!exists(allSubgraphs, _id)) {
71193
+ sg2.nodes.forEach((_id2, pos) => {
71194
+ if (!exists(allSubgraphs, _id2)) {
71170
71195
  res.push(sg2.nodes[pos]);
71171
71196
  }
71172
71197
  });
@@ -82359,10 +82384,10 @@ You have to call mermaid.initialize.`
82359
82384
  return id2;
82360
82385
  }
82361
82386
  for (const child of children2) {
82362
- const _id = findNonClusterChild(child, graph);
82363
- if (_id) {
82364
- log$1.trace("Found replacement for", id2, " => ", _id);
82365
- return _id;
82387
+ const _id2 = findNonClusterChild(child, graph);
82388
+ if (_id2) {
82389
+ log$1.trace("Found replacement for", id2, " => ", _id2);
82390
+ return _id2;
82366
82391
  }
82367
82392
  }
82368
82393
  };
@@ -98898,8 +98923,8 @@ You have to call mermaid.initialize.`
98898
98923
  let namespaceCounter = 0;
98899
98924
  let functions = [];
98900
98925
  const sanitizeText$2 = (txt) => common$1.sanitizeText(txt, getConfig$2());
98901
- const splitClassNameAndType = function(_id) {
98902
- const id2 = common$1.sanitizeText(_id, getConfig$2());
98926
+ const splitClassNameAndType = function(_id2) {
98927
+ const id2 = common$1.sanitizeText(_id2, getConfig$2());
98903
98928
  let genericType = "";
98904
98929
  let className = id2;
98905
98930
  if (id2.indexOf("~") > 0) {
@@ -98909,16 +98934,16 @@ You have to call mermaid.initialize.`
98909
98934
  }
98910
98935
  return { className, type: genericType };
98911
98936
  };
98912
- const setClassLabel = function(_id, label) {
98913
- const id2 = common$1.sanitizeText(_id, getConfig$2());
98937
+ const setClassLabel = function(_id2, label) {
98938
+ const id2 = common$1.sanitizeText(_id2, getConfig$2());
98914
98939
  if (label) {
98915
98940
  label = sanitizeText$2(label);
98916
98941
  }
98917
98942
  const { className } = splitClassNameAndType(id2);
98918
98943
  classes$2[className].label = label;
98919
98944
  };
98920
- const addClass = function(_id) {
98921
- const id2 = common$1.sanitizeText(_id, getConfig$2());
98945
+ const addClass = function(_id2) {
98946
+ const id2 = common$1.sanitizeText(_id2, getConfig$2());
98922
98947
  const { className, type: type2 } = splitClassNameAndType(id2);
98923
98948
  if (Object.hasOwn(classes$2, className)) {
98924
98949
  return;
@@ -98937,8 +98962,8 @@ You have to call mermaid.initialize.`
98937
98962
  };
98938
98963
  classCounter++;
98939
98964
  };
98940
- const lookUpDomId = function(_id) {
98941
- const id2 = common$1.sanitizeText(_id, getConfig$2());
98965
+ const lookUpDomId = function(_id2) {
98966
+ const id2 = common$1.sanitizeText(_id2, getConfig$2());
98942
98967
  if (id2 in classes$2) {
98943
98968
  return classes$2[id2].domId;
98944
98969
  }
@@ -99016,9 +99041,9 @@ You have to call mermaid.initialize.`
99016
99041
  return sanitizeText$2(label.trim());
99017
99042
  };
99018
99043
  const setCssClass$2 = function(ids, className) {
99019
- ids.split(",").forEach(function(_id) {
99020
- let id2 = _id;
99021
- if (_id[0].match(/\d/)) {
99044
+ ids.split(",").forEach(function(_id2) {
99045
+ let id2 = _id2;
99046
+ if (_id2[0].match(/\d/)) {
99022
99047
  id2 = MERMAID_DOM_ID_PREFIX + id2;
99023
99048
  }
99024
99049
  if (classes$2[id2] !== void 0) {
@@ -99041,9 +99066,9 @@ You have to call mermaid.initialize.`
99041
99066
  };
99042
99067
  const setLink = function(ids, linkStr, target) {
99043
99068
  const config2 = getConfig$2();
99044
- ids.split(",").forEach(function(_id) {
99045
- let id2 = _id;
99046
- if (_id[0].match(/\d/)) {
99069
+ ids.split(",").forEach(function(_id2) {
99070
+ let id2 = _id2;
99071
+ if (_id2[0].match(/\d/)) {
99047
99072
  id2 = MERMAID_DOM_ID_PREFIX + id2;
99048
99073
  }
99049
99074
  if (classes$2[id2] !== void 0) {
@@ -99744,7 +99769,7 @@ g.classGroup line {
99744
99769
  textHeight: 10,
99745
99770
  curve: void 0
99746
99771
  };
99747
- const addNamespaces = function(namespaces2, g3, _id, diagObj) {
99772
+ const addNamespaces = function(namespaces2, g3, _id2, diagObj) {
99748
99773
  const keys2 = Object.keys(namespaces2);
99749
99774
  log$1.info("keys:", keys2);
99750
99775
  log$1.info(namespaces2);
@@ -99763,11 +99788,11 @@ g.classGroup line {
99763
99788
  padding: ((_a2 = getConfig$2().flowchart) == null ? void 0 : _a2.padding) ?? ((_b2 = getConfig$2().class) == null ? void 0 : _b2.padding)
99764
99789
  };
99765
99790
  g3.setNode(vertex.id, node2);
99766
- addClasses(vertex.classes, g3, _id, diagObj, vertex.id);
99791
+ addClasses(vertex.classes, g3, _id2, diagObj, vertex.id);
99767
99792
  log$1.info("setNode", node2);
99768
99793
  });
99769
99794
  };
99770
- const addClasses = function(classes2, g3, _id, diagObj, parent) {
99795
+ const addClasses = function(classes2, g3, _id2, diagObj, parent) {
99771
99796
  const keys2 = Object.keys(classes2);
99772
99797
  log$1.info("keys:", keys2);
99773
99798
  log$1.info(classes2);
@@ -131032,7 +131057,7 @@ g.stateGroup line {
131032
131057
  f3.c.length > 1 && (ZEb(b3.c, f3), true);
131033
131058
  }
131034
131059
  }
131035
- function _id(a3, b3, c3, d8, e8) {
131060
+ function _id2(a3, b3, c3, d8, e8) {
131036
131061
  if (d8 < b3 || e8 < c3) {
131037
131062
  throw Adb(new agb("The highx must be bigger then lowx and the highy must be bigger then lowy"));
131038
131063
  }
@@ -145163,7 +145188,7 @@ g.stateGroup line {
145163
145188
  for (j2 = Fl2(Al2(cD(WC(cJ, 1), rve, 20, 0, [b3.e, b3.d, b3.b]))); gs2(j2); ) {
145164
145189
  i5 = RD(hs2(j2), 309);
145165
145190
  d8 = i5.c;
145166
- _id(d8, -a3.d, -a3.d, a3.d, a3.d);
145191
+ _id2(d8, -a3.d, -a3.d, a3.d, a3.d);
145167
145192
  $id(i5.d, d8);
145168
145193
  d8.a = 0;
145169
145194
  d8.b = 0;
@@ -148158,7 +148183,7 @@ g.stateGroup line {
148158
148183
  k2 = i5.n;
148159
148184
  k2.a = b3.a - a3.n.a;
148160
148185
  k2.b = b3.b - a3.n.b;
148161
- _id(k2, 0, 0, a3.o.a, a3.o.b);
148186
+ _id2(k2, 0, 0, a3.o.a, a3.o.b);
148162
148187
  Q3b(i5, c2b(i5, f3));
148163
148188
  } else {
148164
148189
  e8 = vpd(f3);
@@ -1,4 +1,4 @@
1
- import { l as log$1, B as selectSvgElement, e as configureSvgSize } from "./index-Ch5t1LQm.js";
1
+ import { l as log$1, B as selectSvgElement, e as configureSvgSize } from "./index-CGDky2ts.js";
2
2
  var parser = (function() {
3
3
  var o = function(k, v, o2, l) {
4
4
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)