@bytechain.cn/colamd 1.5.0 → 1.5.1-beta.2
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/.trae/specs/optimize-theme-loading/checklist.md +20 -0
- package/.trae/specs/optimize-theme-loading/spec.md +103 -0
- package/.trae/specs/optimize-theme-loading/tasks.md +40 -0
- package/CHANGELOG.md +323 -0
- package/CLAUDE.md +56 -0
- package/README.md +422 -26
- package/README_CN.md +480 -28
- package/android/app/build/.npmkeep +0 -0
- package/android/app/build.gradle +76 -0
- package/android/app/capacitor.build.gradle +24 -0
- package/android/app/proguard-rules.pro +21 -0
- package/android/app/release.keystore +0 -0
- package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +26 -0
- package/android/app/src/main/AndroidManifest.xml +64 -0
- package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +180 -0
- package/android/app/src/main/res/drawable/ic_launcher_background.xml +170 -0
- package/android/app/src/main/res/drawable/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-hdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-mdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-xhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-xxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-land-xxxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-hdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-mdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-xhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-xxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-port-xxxhdpi/splash.png +0 -0
- package/android/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +34 -0
- package/android/app/src/main/res/layout/activity_main.xml +12 -0
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +5 -0
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +5 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png +0 -0
- package/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
- package/android/app/src/main/res/values/ic_launcher_background.xml +4 -0
- package/android/app/src/main/res/values/strings.xml +7 -0
- package/android/app/src/main/res/values/styles.xml +22 -0
- package/android/app/src/main/res/xml/file_paths.xml +5 -0
- package/android/app/src/main/res/xml/network_security_config.xml +8 -0
- package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +18 -0
- package/android/build.gradle +29 -0
- package/android/capacitor.settings.gradle +21 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -0
- package/android/gradle.properties +22 -0
- package/android/gradlew +248 -0
- package/android/gradlew.bat +92 -0
- package/android/settings.gradle +5 -0
- package/android/variables.gradle +16 -0
- package/bytechain.cn-colamd-1.5.1-beta.2.tgz +0 -0
- package/capacitor.config.js +29 -0
- package/capacitor.config.ts +30 -0
- package/demo.md +191 -484
- package/dist/main/index.js +77 -46
- package/dist/renderer/assets/{arc-tTbbM8LO.js → arc-CPdeInCG.js} +1 -1
- package/dist/renderer/assets/{architectureDiagram-3BPJPVTR-CEgYow6c.js → architectureDiagram-3BPJPVTR-BAbnaR9G.js} +4 -3
- package/dist/renderer/assets/{blockDiagram-GPEHLZMM-LHyVtPwW.js → blockDiagram-GPEHLZMM-CYSWjnJg.js} +5 -4
- package/dist/renderer/assets/{c4Diagram-AAUBKEIU-C1P1eJrf.js → c4Diagram-AAUBKEIU-Rb1tstnr.js} +3 -2
- package/dist/renderer/assets/{channel-upve91Tq.js → channel-DpG2A6fE.js} +1 -1
- package/dist/renderer/assets/{chunk-2J33WTMH-lag2vhq9.js → chunk-2J33WTMH-DFc0Jxy_.js} +1 -1
- package/dist/renderer/assets/{chunk-4BX2VUAB-BXJ8Ggh-.js → chunk-4BX2VUAB-BhRxDTNn.js} +1 -1
- package/dist/renderer/assets/{chunk-55IACEB6-CiBpxRa1.js → chunk-55IACEB6-DEgMVBk8.js} +1 -1
- package/dist/renderer/assets/{chunk-727SXJPM-ODeKQFXC.js → chunk-727SXJPM-bjBIfiz8.js} +5 -5
- package/dist/renderer/assets/{chunk-AQP2D5EJ-BK7xJolB.js → chunk-AQP2D5EJ-DwQMzTzD.js} +3 -3
- package/dist/renderer/assets/{chunk-FMBD7UC4-BxpCZPtz.js → chunk-FMBD7UC4-CkphwJzs.js} +1 -1
- package/dist/renderer/assets/{chunk-ND2GUHAM-CqqaU9Ue.js → chunk-ND2GUHAM-oU09z4y4.js} +1 -1
- package/dist/renderer/assets/{chunk-QZHKN3VN-Biq_K124.js → chunk-QZHKN3VN-rCbVuPBn.js} +1 -1
- package/dist/renderer/assets/{classDiagram-v2-Q7XG4LA2-Cq95X99o.js → classDiagram-4FO5ZUOK-DGS2faoM.js} +7 -6
- package/dist/renderer/assets/{classDiagram-4FO5ZUOK-Cq95X99o.js → classDiagram-v2-Q7XG4LA2-DGS2faoM.js} +7 -6
- package/dist/renderer/assets/{cose-bilkent-S5V4N54A-XasiD0bu.js → cose-bilkent-S5V4N54A-iqY6-EwA.js} +2 -1
- package/dist/renderer/assets/{dagre-BM42HDAG-Nq84Gfx4.js → dagre-BM42HDAG-5t3X5sDa.js} +4 -3
- package/dist/renderer/assets/{diagram-2AECGRRQ-DwuB1GWt.js → diagram-2AECGRRQ-DzHiYDPh.js} +4 -3
- package/dist/renderer/assets/{diagram-5GNKFQAL-C2tgeI1h.js → diagram-5GNKFQAL-BiNv6Keq.js} +5 -4
- package/dist/renderer/assets/{diagram-KO2AKTUF-D5KzjNBc.js → diagram-KO2AKTUF-ClzeDG6f.js} +4 -3
- package/dist/renderer/assets/{diagram-LMA3HP47-C12xHS1c.js → diagram-LMA3HP47-CGkw7wII.js} +4 -3
- package/dist/renderer/assets/{diagram-OG6HWLK6-CnxI9oEa.js → diagram-OG6HWLK6-Dl-Hyk1_.js} +5 -4
- package/dist/renderer/assets/{erDiagram-TEJ5UH35-D_uPaKwn.js → erDiagram-TEJ5UH35-BxUN79Qb.js} +5 -4
- package/dist/renderer/assets/{flowDiagram-I6XJVG4X-B6q_1-tE.js → flowDiagram-I6XJVG4X-CzFk-KNI.js} +7 -6
- package/dist/renderer/assets/{ganttDiagram-6RSMTGT7-CFo7ifF9.js → ganttDiagram-6RSMTGT7-C2xl6Igx.js} +3 -2
- package/dist/renderer/assets/{gitGraphDiagram-PVQCEYII-WSexHTnq.js → gitGraphDiagram-PVQCEYII-_fn7XCa7.js} +5 -4
- package/dist/renderer/assets/{graph-DyX_9f6d.js → graph-CDoHYrHm.js} +1 -1
- package/dist/renderer/assets/index-B4uDgADr.js +530 -0
- package/dist/renderer/assets/index-CBcVpA3d.js +30 -0
- package/dist/renderer/assets/index-CGj1spkU.js +27 -0
- package/dist/renderer/assets/{index-dyHEFYvY.css → index-CeFpoCKV.css} +443 -400
- package/dist/renderer/assets/index-D4CPFkph.js +9 -0
- package/dist/renderer/assets/{index-DW7LS8C1.js → index-DAlXyxzt.js} +1183 -346
- package/dist/renderer/assets/index-DxOzbfR-.js +110 -0
- package/dist/renderer/assets/index-Y89U1ptl.js +9 -0
- package/dist/renderer/assets/{infoDiagram-5YYISTIA-DaeJdLRq.js → infoDiagram-5YYISTIA-DL6XIxLz.js} +3 -2
- package/dist/renderer/assets/{ishikawaDiagram-YF4QCWOH-DDCZc35f.js → ishikawaDiagram-YF4QCWOH-BUZLjRo-.js} +2 -1
- package/dist/renderer/assets/{journeyDiagram-JHISSGLW-BEdmpAgl.js → journeyDiagram-JHISSGLW-C4rH_mQM.js} +5 -4
- package/dist/renderer/assets/{kanban-definition-UN3LZRKU-BEFtQcFb.js → kanban-definition-UN3LZRKU-DRbrBcWV.js} +3 -2
- package/dist/renderer/assets/{layout-CAJgQHdw.js → layout-DZl4n4qu.js} +2 -2
- package/dist/renderer/assets/{linear-B2ggJ8Am.js → linear-B0Krxg21.js} +1 -1
- package/dist/renderer/assets/{mindmap-definition-RKZ34NQL-DSxVgHB5.js → mindmap-definition-RKZ34NQL-DdmPsWrn.js} +4 -3
- package/dist/renderer/assets/{pieDiagram-4H26LBE5-CwYoJBuL.js → pieDiagram-4H26LBE5-BPZLqwG0.js} +5 -4
- package/dist/renderer/assets/preload-helper-tXtZnHb0.js +88 -0
- package/dist/renderer/assets/{quadrantDiagram-W4KKPZXB-CST9Fvg9.js → quadrantDiagram-W4KKPZXB-Dr-oWRk9.js} +3 -2
- package/dist/renderer/assets/{requirementDiagram-4Y6WPE33-DtrH52jS.js → requirementDiagram-4Y6WPE33-B6QZd0lo.js} +4 -3
- package/dist/renderer/assets/{sankeyDiagram-5OEKKPKP-ca1tPzJ_.js → sankeyDiagram-5OEKKPKP-Cyl9ojEt.js} +2 -1
- package/dist/renderer/assets/{sequenceDiagram-3UESZ5HK-Dfp1EJZ7.js → sequenceDiagram-3UESZ5HK-D48Yr9T6.js} +4 -3
- package/dist/renderer/assets/{stateDiagram-AJRCARHV-Bha2QoNB.js → stateDiagram-AJRCARHV-qyb8ETsa.js} +7 -6
- package/dist/renderer/assets/{stateDiagram-v2-BHNVJYJU-DWgFUYu1.js → stateDiagram-v2-BHNVJYJU-DmDOyyrJ.js} +5 -4
- package/dist/renderer/assets/{timeline-definition-PNZ67QCA-C3h_-OTj.js → timeline-definition-PNZ67QCA-C-KQxTi1.js} +3 -2
- package/dist/renderer/assets/{vennDiagram-CIIHVFJN-DFzjSrZi.js → vennDiagram-CIIHVFJN-BdaZlnH-.js} +2 -1
- package/dist/renderer/assets/{wardley-L42UT6IY-Cx-VbqoS.js → wardley-L42UT6IY-b-_GPpqL.js} +1 -1
- package/dist/renderer/assets/{wardleyDiagram-YWT4CUSO-S2D9XqX6.js → wardleyDiagram-YWT4CUSO-B2hBE-EE.js} +4 -3
- package/dist/renderer/assets/web-BKE0SH0E.js +36 -0
- package/dist/renderer/assets/web-CBsFp24u.js +564 -0
- package/dist/renderer/assets/web-Dc8YgoHP.js +24 -0
- package/dist/renderer/assets/web-TfDzToU7.js +58 -0
- package/dist/renderer/assets/{xychartDiagram-2RQKCTM6-Cfxigbts.js → xychartDiagram-2RQKCTM6-CSvswDTY.js} +3 -2
- package/dist/renderer/index.html +62 -3
- package/docs/academic-demo.md +566 -0
- package/docs/demo.html +748 -0
- package/docs/demo.md +546 -0
- package/docs/demo.pdf +0 -0
- package/docs/theme-paradigm.md +658 -0
- package/electron-builder.yml +7 -0
- package/electron.vite.config.js +31 -0
- package/electron.vite.config.ts +1 -1
- package/ios/App/App/AppDelegate.swift +49 -0
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +14 -0
- package/ios/App/App/Assets.xcassets/Contents.json +6 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +23 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-1.png +0 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732-2.png +0 -0
- package/ios/App/App/Assets.xcassets/Splash.imageset/splash-2732x2732.png +0 -0
- package/ios/App/App/Base.lproj/LaunchScreen.storyboard +32 -0
- package/ios/App/App/Base.lproj/Main.storyboard +19 -0
- package/ios/App/App/Info.plist +49 -0
- package/ios/App/App.xcodeproj/project.pbxproj +408 -0
- package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/App/Podfile +28 -0
- package/package.json +23 -3
- package/resources/templates/slides/template-forest-ink.html +540 -0
- package/scripts/generate-icons.js +102 -0
- package/src/main/index.ts +87 -63
- package/src/preload/index.d.ts +51 -0
- package/src/preload/index.js +70 -0
- package/src/renderer/capacitor-api.ts +713 -0
- package/src/renderer/editor/editor.ts +87 -4
- package/src/renderer/editor/plugins/index.ts +24 -32
- package/src/renderer/editor/plugins/math-plugin.ts +1 -1
- package/src/renderer/editor/plugins/mermaid-plugin-custom.css +13 -398
- package/src/renderer/editor/plugins/mermaid-plugin.ts +62 -71
- package/src/renderer/editor/plugins/themes/base/dark.css +23 -0
- package/src/renderer/editor/plugins/themes/base/elegant.css +32 -0
- package/src/renderer/editor/plugins/themes/base/light.css +20 -0
- package/src/renderer/editor/plugins/themes/base/newsprint.css +27 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +43 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +20 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +24 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/light.css +21 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +26 -0
- package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +592 -0
- package/src/renderer/editor/plugins/themes/foundation.css +143 -0
- package/src/renderer/editor/plugins/themes/theme-manager.ts +92 -0
- package/src/renderer/env.d.ts +4 -1
- package/src/renderer/index.html +59 -1
- package/src/renderer/main.ts +432 -57
- package/src/renderer/mobile.css +429 -0
- package/themes/README.md +3 -0
- package/themes/academic-paper.css +1321 -0
- package/themes/elegant.css +14 -7
- package/themes/forest-ink.css +664 -0
- package/themes/pixso-design.css +1261 -0
- package/themes/swiss-design.css +596 -0
- package/themes/template.css +498 -0
- package/tsconfig.main.json +1 -0
- package/tsconfig.main.tsbuildinfo +1 -0
- package/tsconfig.preload.json +1 -0
- package/tsconfig.preload.tsbuildinfo +1 -0
- package/tsconfig.renderer.json +1 -0
- package/tsconfig.renderer.tsbuildinfo +1 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/.trae/documents/fix-mermaid-colors-and-sankey.md +0 -50
- package/src/renderer/themes/theme-manager.ts +0 -40
- /package/src/renderer/{themes → editor/plugins/themes}/base.css +0 -0
package/dist/main/index.js
CHANGED
|
@@ -73,7 +73,7 @@ function suggestFileName(win, content) {
|
|
|
73
73
|
}
|
|
74
74
|
function stopWatching(state) {
|
|
75
75
|
if (state.watcher) {
|
|
76
|
-
state.watcher
|
|
76
|
+
clearInterval(state.watcher);
|
|
77
77
|
state.watcher = null;
|
|
78
78
|
}
|
|
79
79
|
if (state.agentCooldownTimer) {
|
|
@@ -111,24 +111,34 @@ function watchFile(win, state) {
|
|
|
111
111
|
if (!state.filePath) return;
|
|
112
112
|
stopWatching(state);
|
|
113
113
|
const filePath = state.filePath;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
state.lastExternalChange = now;
|
|
119
|
-
if (gap > 0 && gap < 2e3) {
|
|
120
|
-
transitionAgentState(win, state, "active");
|
|
121
|
-
} else if (state.agentState === "active") {
|
|
122
|
-
transitionAgentState(win, state, "active");
|
|
123
|
-
}
|
|
124
|
-
if (state.debounceTimer) clearTimeout(state.debounceTimer);
|
|
125
|
-
state.debounceTimer = setTimeout(() => {
|
|
126
|
-
promises.readFile(filePath, "utf-8").then((data) => {
|
|
127
|
-
if (!win.isDestroyed()) win.webContents.send("file-changed", resolveImagePaths(data, filePath));
|
|
128
|
-
}).catch(() => {
|
|
129
|
-
});
|
|
130
|
-
}, 100);
|
|
114
|
+
let lastMtime = 0;
|
|
115
|
+
promises.stat(filePath).then((s) => {
|
|
116
|
+
lastMtime = s.mtimeMs;
|
|
117
|
+
}).catch(() => {
|
|
131
118
|
});
|
|
119
|
+
state.watcher = setInterval(() => {
|
|
120
|
+
if (state.isInternalSave) return;
|
|
121
|
+
promises.stat(filePath).then((s) => {
|
|
122
|
+
if (s.mtimeMs === lastMtime) return;
|
|
123
|
+
lastMtime = s.mtimeMs;
|
|
124
|
+
const now = Date.now();
|
|
125
|
+
const gap = now - state.lastExternalChange;
|
|
126
|
+
state.lastExternalChange = now;
|
|
127
|
+
if (gap > 0 && gap < 2e3) {
|
|
128
|
+
transitionAgentState(win, state, "active");
|
|
129
|
+
} else if (state.agentState === "active") {
|
|
130
|
+
transitionAgentState(win, state, "active");
|
|
131
|
+
}
|
|
132
|
+
if (state.debounceTimer) clearTimeout(state.debounceTimer);
|
|
133
|
+
state.debounceTimer = setTimeout(() => {
|
|
134
|
+
promises.readFile(filePath, "utf-8").then((data) => {
|
|
135
|
+
if (!win.isDestroyed()) win.webContents.send("file-changed", resolveImagePaths(data, filePath));
|
|
136
|
+
}).catch(() => {
|
|
137
|
+
});
|
|
138
|
+
}, 100);
|
|
139
|
+
}).catch(() => {
|
|
140
|
+
});
|
|
141
|
+
}, 500);
|
|
132
142
|
}
|
|
133
143
|
function resolveImagePaths(content, filePath) {
|
|
134
144
|
const dir = path.dirname(filePath);
|
|
@@ -309,8 +319,9 @@ electron.ipcMain.handle("save-export-file", async (event, dataUrl, defaultName)
|
|
|
309
319
|
electron.ipcMain.handle("export-pdf", async (event) => {
|
|
310
320
|
const win = getWinFromEvent(event);
|
|
311
321
|
if (!win) return false;
|
|
322
|
+
const defaultName = (suggestFileName(win) || "colamd-print") + ".pdf";
|
|
312
323
|
const result = await electron.dialog.showSaveDialog(win, {
|
|
313
|
-
defaultPath:
|
|
324
|
+
defaultPath: defaultName,
|
|
314
325
|
filters: [{ name: "PDF", extensions: ["pdf"] }]
|
|
315
326
|
});
|
|
316
327
|
if (result.canceled || !result.filePath) return false;
|
|
@@ -318,11 +329,13 @@ electron.ipcMain.handle("export-pdf", async (event) => {
|
|
|
318
329
|
const cssKey = await win.webContents.insertCSS(
|
|
319
330
|
"html, body { height: auto !important; overflow: visible !important; } #titlebar { display: none !important; } #editor { height: auto !important; overflow: visible !important; } #editor .ProseMirror { min-height: auto !important; } .mermaid-error { display: none !important; } .mermaid-loading { display: none !important; } svg .error-icon, svg .error-text { display: none !important; } .math-inline-raw, .math-block-raw, textarea.mermaid-source { display: none !important; }"
|
|
320
331
|
);
|
|
321
|
-
const pdfData = await
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
332
|
+
const pdfData = await Promise.race([
|
|
333
|
+
win.webContents.printToPDF({
|
|
334
|
+
printBackground: true,
|
|
335
|
+
pageSize: "A4"
|
|
336
|
+
}),
|
|
337
|
+
new Promise((_, reject) => setTimeout(() => reject(new Error("PDF timeout")), 3e4))
|
|
338
|
+
]);
|
|
326
339
|
await win.webContents.removeInsertedCSS(cssKey);
|
|
327
340
|
await promises.writeFile(result.filePath, pdfData);
|
|
328
341
|
return true;
|
|
@@ -333,8 +346,9 @@ electron.ipcMain.handle("export-pdf", async (event) => {
|
|
|
333
346
|
electron.ipcMain.handle("export-html", async (event, htmlContent) => {
|
|
334
347
|
const win = getWinFromEvent(event);
|
|
335
348
|
if (!win) return false;
|
|
349
|
+
const defaultName = (suggestFileName(win) || "colamd-export") + ".html";
|
|
336
350
|
const result = await electron.dialog.showSaveDialog(win, {
|
|
337
|
-
defaultPath:
|
|
351
|
+
defaultPath: defaultName,
|
|
338
352
|
filters: [{ name: "HTML", extensions: ["html"] }]
|
|
339
353
|
});
|
|
340
354
|
if (result.canceled || !result.filePath) return false;
|
|
@@ -530,7 +544,8 @@ electron.ipcMain.handle("load-custom-theme", async (event) => {
|
|
|
530
544
|
const destPath = path.join(themesDir, fileName);
|
|
531
545
|
await promises.copyFile(srcPath, destPath);
|
|
532
546
|
const css = await promises.readFile(destPath, "utf-8");
|
|
533
|
-
|
|
547
|
+
invalidateThemeCache();
|
|
548
|
+
await buildMenu();
|
|
534
549
|
return { name: fileName, css };
|
|
535
550
|
} catch {
|
|
536
551
|
return null;
|
|
@@ -551,14 +566,32 @@ electron.ipcMain.handle("register-plugins", (_event, plugins) => {
|
|
|
551
566
|
checked: p.enabled,
|
|
552
567
|
click: () => sendToFocused("menu-toggle-plugin", p.id)
|
|
553
568
|
}));
|
|
554
|
-
buildMenu();
|
|
569
|
+
void buildMenu();
|
|
555
570
|
return true;
|
|
556
571
|
});
|
|
557
572
|
electron.ipcMain.handle("sync-plugin-state", (_event, id, enabled) => {
|
|
558
573
|
const item = pluginMenuItems.find((p) => p.id === id);
|
|
559
574
|
if (item) item.checked = enabled;
|
|
560
|
-
buildMenu();
|
|
575
|
+
void buildMenu();
|
|
561
576
|
});
|
|
577
|
+
let cachedThemeFiles = [];
|
|
578
|
+
let themeFilesValid = false;
|
|
579
|
+
function invalidateThemeCache() {
|
|
580
|
+
themeFilesValid = false;
|
|
581
|
+
}
|
|
582
|
+
async function scanThemeFiles() {
|
|
583
|
+
try {
|
|
584
|
+
const files = await promises.readdir(themesDir);
|
|
585
|
+
cachedThemeFiles = files.filter((f) => f.endsWith(".css")).sort();
|
|
586
|
+
} catch {
|
|
587
|
+
cachedThemeFiles = [];
|
|
588
|
+
}
|
|
589
|
+
themeFilesValid = true;
|
|
590
|
+
}
|
|
591
|
+
async function getCachedThemeFiles() {
|
|
592
|
+
if (!themeFilesValid) await scanThemeFiles();
|
|
593
|
+
return cachedThemeFiles;
|
|
594
|
+
}
|
|
562
595
|
function getFocusedWindow() {
|
|
563
596
|
return electron.BrowserWindow.getFocusedWindow();
|
|
564
597
|
}
|
|
@@ -566,25 +599,22 @@ function sendToFocused(channel, ...args) {
|
|
|
566
599
|
const win = getFocusedWindow();
|
|
567
600
|
if (win) win.webContents.send(channel, ...args);
|
|
568
601
|
}
|
|
569
|
-
function buildMenu() {
|
|
602
|
+
async function buildMenu() {
|
|
570
603
|
const isMac = process.platform === "darwin";
|
|
571
604
|
const customThemeItems = [];
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
} catch {
|
|
583
|
-
}
|
|
605
|
+
const files = await getCachedThemeFiles();
|
|
606
|
+
for (const file of files) {
|
|
607
|
+
customThemeItems.push({
|
|
608
|
+
label: file.replace(/\.css$/, ""),
|
|
609
|
+
click: async () => {
|
|
610
|
+
try {
|
|
611
|
+
const css = await promises.readFile(path.join(themesDir, file), "utf-8");
|
|
612
|
+
sendToFocused("set-theme", `custom:${file}`);
|
|
613
|
+
sendToFocused("set-custom-css", css);
|
|
614
|
+
} catch {
|
|
584
615
|
}
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
} catch {
|
|
616
|
+
}
|
|
617
|
+
});
|
|
588
618
|
}
|
|
589
619
|
const themeSubmenu = [
|
|
590
620
|
{ label: "Light", click: () => sendToFocused("set-theme", "light") },
|
|
@@ -702,9 +732,10 @@ function buildMenu() {
|
|
|
702
732
|
];
|
|
703
733
|
electron.Menu.setApplicationMenu(electron.Menu.buildFromTemplate(template));
|
|
704
734
|
}
|
|
705
|
-
electron.app.whenReady().then(() => {
|
|
735
|
+
electron.app.whenReady().then(async () => {
|
|
706
736
|
ensureThemesDir();
|
|
707
|
-
|
|
737
|
+
await scanThemeFiles();
|
|
738
|
+
await buildMenu();
|
|
708
739
|
const args = process.argv.slice(electron.app.isPackaged ? 1 : 2);
|
|
709
740
|
const fileArgs = args.filter((arg) => !arg.startsWith("-"));
|
|
710
741
|
if (fileArgs.length > 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a0 as withPath, a1 as halfPi, a2 as epsilon, a3 as tau, a4 as cos, a5 as sin, a6 as min, a7 as abs, a8 as pi, a9 as sqrt, aa as atan2, ab as constant, ac as asin, ad as acos, ae as max } from "./index-
|
|
1
|
+
import { a0 as withPath, a1 as halfPi, a2 as epsilon, a3 as tau, a4 as cos, a5 as sin, a6 as min, a7 as abs, a8 as pi, a9 as sqrt, aa as atan2, ab as constant, ac as asin, ad as acos, ae as max } from "./index-DAlXyxzt.js";
|
|
2
2
|
function arcInnerRadius(d) {
|
|
3
3
|
return d.innerRadius;
|
|
4
4
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { b4 as getDefaultExportFromCjs, _ as __name, I as selectSvgElement, Y as setupGraphViewbox, l as log, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, z as clear, F as cleanAndMerge, D as getConfig, G as defaultConfig_default, c as getConfig2, aO as createText, b5 as getIconSVG, i as sanitizeText, d as select, x as getEdgeId, b6 as registerIconPacks, b7 as unknownIcon } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { b4 as getDefaultExportFromCjs, _ as __name, I as selectSvgElement, Y as setupGraphViewbox, l as log, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, z as clear, F as cleanAndMerge, D as getConfig, G as defaultConfig_default, c as getConfig2, aO as createText, b5 as getIconSVG, i as sanitizeText, d as select, x as getEdgeId, b6 as registerIconPacks, b7 as unknownIcon } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
3
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
4
4
|
import { c as cytoscape$1 } from "./cytoscape.esm-CpHeHM5e.js";
|
|
5
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
5
6
|
var cytoscapeFcose$1 = { exports: {} };
|
|
6
7
|
var coseBase$1 = { exports: {} };
|
|
7
8
|
var layoutBase$1 = { exports: {} };
|
package/dist/renderer/assets/{blockDiagram-GPEHLZMM-LHyVtPwW.js → blockDiagram-GPEHLZMM-CYSWjnJg.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { an as isPrimitive, ao as getTag, ap as isTypedArray, aq as arrayBufferTag, ar as dataViewTag, as as booleanTag, at as numberTag, au as stringTag, av as dateTag, aw as regexpTag, ax as symbolTag, ay as mapTag, az as setTag, aA as argumentsTag, aB as uint32ArrayTag, aC as uint16ArrayTag, aD as uint8ClampedArrayTag, aE as uint8ArrayTag, aF as objectTag, aG as int32ArrayTag, aH as int16ArrayTag, aI as int8ArrayTag, aJ as float64ArrayTag, aK as float32ArrayTag, aL as arrayTag, _ as __name, D as getConfig, d as select, e as configureSvgSize, l as log, z as clear, B as rgba, aM as getLineFunctionsWithOffset, R as line, S as curveBasis, c as getConfig2, O as getUrl, aN as getEffectiveHtmlLabels, aO as createText, aP as computeLabelTransform, aQ as getSubGraphTitleMargins, u as utils_default, k as common_default, aR as getStylesFromArray, i as sanitizeText, aS as decodeEntities, aT as configureLabelImages } from "./index-
|
|
3
|
-
import { G as Graph } from "./graph-
|
|
4
|
-
import { c as channel } from "./channel-
|
|
1
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CkphwJzs.js";
|
|
2
|
+
import { an as isPrimitive, ao as getTag, ap as isTypedArray, aq as arrayBufferTag, ar as dataViewTag, as as booleanTag, at as numberTag, au as stringTag, av as dateTag, aw as regexpTag, ax as symbolTag, ay as mapTag, az as setTag, aA as argumentsTag, aB as uint32ArrayTag, aC as uint16ArrayTag, aD as uint8ClampedArrayTag, aE as uint8ArrayTag, aF as objectTag, aG as int32ArrayTag, aH as int16ArrayTag, aI as int8ArrayTag, aJ as float64ArrayTag, aK as float32ArrayTag, aL as arrayTag, _ as __name, D as getConfig, d as select, e as configureSvgSize, l as log, z as clear, B as rgba, aM as getLineFunctionsWithOffset, R as line, S as curveBasis, c as getConfig2, O as getUrl, aN as getEffectiveHtmlLabels, aO as createText, aP as computeLabelTransform, aQ as getSubGraphTitleMargins, u as utils_default, k as common_default, aR as getStylesFromArray, i as sanitizeText, aS as decodeEntities, aT as configureLabelImages } from "./index-DAlXyxzt.js";
|
|
3
|
+
import { G as Graph } from "./graph-CDoHYrHm.js";
|
|
4
|
+
import { c as channel } from "./channel-DpG2A6fE.js";
|
|
5
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
5
6
|
function isArray(value) {
|
|
6
7
|
return Array.isArray(value);
|
|
7
8
|
}
|
package/dist/renderer/assets/{c4Diagram-AAUBKEIU-C1P1eJrf.js → c4Diagram-AAUBKEIU-Rb1tstnr.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { g as getNoteRect, d as drawRect } from "./chunk-ND2GUHAM-
|
|
2
|
-
import { s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, d as select, l as log, e as configureSvgSize, f as assignWithDepth_default, h as calculateTextWidth, i as sanitizeText, j as distExports, w as wrapLabel, k as common_default, m as calculateTextHeight } from "./index-
|
|
1
|
+
import { g as getNoteRect, d as drawRect } from "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
2
|
+
import { s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, d as select, l as log, e as configureSvgSize, f as assignWithDepth_default, h as calculateTextWidth, i as sanitizeText, j as distExports, w as wrapLabel, k as common_default, m as calculateTextHeight } from "./index-DAlXyxzt.js";
|
|
3
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
3
4
|
var parser = (function() {
|
|
4
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
5
6
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __name, e as configureSvgSize, l as log } from "./index-
|
|
1
|
+
import { _ as __name, e as configureSvgSize, l as log } from "./index-DAlXyxzt.js";
|
|
2
2
|
var setupViewPortForSVG = /* @__PURE__ */ __name((svg, padding, cssDiagram, useMaxWidth) => {
|
|
3
3
|
svg.attr("class", cssDiagram);
|
|
4
4
|
const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { c as createTooltip } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
4
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
5
|
-
import { _ as __name, l as log, c as getConfig2, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default, d as select, y as purify, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, p as setDiagramTitle, q as getDiagramTitle, k as common_default, z as clear, x as getEdgeId, i as sanitizeText, Q as parseGenericTypes } from "./index-
|
|
1
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CkphwJzs.js";
|
|
2
|
+
import { c as createTooltip } from "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
3
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-DEgMVBk8.js";
|
|
4
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
5
|
+
import { _ as __name, l as log, c as getConfig2, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default, d as select, y as purify, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, p as setDiagramTitle, q as getDiagramTitle, k as common_default, z as clear, x as getEdgeId, i as sanitizeText, Q as parseGenericTypes } from "./index-DAlXyxzt.js";
|
|
6
6
|
var parser = (function() {
|
|
7
7
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
8
8
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as __name, l as log, c as getConfig2, r as render, u as utils_default, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, p as setDiagramTitle, q as getDiagramTitle, T as generateId, k as common_default, z as clear } from "./index-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-DEgMVBk8.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
3
|
+
import { _ as __name, l as log, c as getConfig2, r as render, u as utils_default, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, p as setDiagramTitle, q as getDiagramTitle, T as generateId, k as common_default, z as clear } from "./index-DAlXyxzt.js";
|
|
4
4
|
var parser = (function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
6
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __name, d as select, U as lineBreakRegex, j as distExports } from "./index-
|
|
1
|
+
import { _ as __name, d as select, U as lineBreakRegex, j as distExports } from "./index-DAlXyxzt.js";
|
|
2
2
|
var drawRect = /* @__PURE__ */ __name((element, rectData) => {
|
|
3
3
|
const rectElement = element.append("rect");
|
|
4
4
|
rectElement.attr("x", rectData.x);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-727SXJPM-
|
|
2
|
-
import { _ as __name } from "./index-
|
|
3
|
-
import "./chunk-FMBD7UC4-
|
|
4
|
-
import "./chunk-ND2GUHAM-
|
|
5
|
-
import "./chunk-55IACEB6-
|
|
6
|
-
import "./chunk-2J33WTMH-
|
|
1
|
+
import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-727SXJPM-bjBIfiz8.js";
|
|
2
|
+
import { _ as __name } from "./index-DAlXyxzt.js";
|
|
3
|
+
import "./chunk-FMBD7UC4-CkphwJzs.js";
|
|
4
|
+
import "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
5
|
+
import "./chunk-55IACEB6-DEgMVBk8.js";
|
|
6
|
+
import "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
7
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
7
8
|
var diagram = {
|
|
8
9
|
parser: classDiagram_default,
|
|
9
10
|
get db() {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-727SXJPM-
|
|
2
|
-
import { _ as __name } from "./index-
|
|
3
|
-
import "./chunk-FMBD7UC4-
|
|
4
|
-
import "./chunk-ND2GUHAM-
|
|
5
|
-
import "./chunk-55IACEB6-
|
|
6
|
-
import "./chunk-2J33WTMH-
|
|
1
|
+
import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-727SXJPM-bjBIfiz8.js";
|
|
2
|
+
import { _ as __name } from "./index-DAlXyxzt.js";
|
|
3
|
+
import "./chunk-FMBD7UC4-CkphwJzs.js";
|
|
4
|
+
import "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
5
|
+
import "./chunk-55IACEB6-DEgMVBk8.js";
|
|
6
|
+
import "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
7
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
7
8
|
var diagram = {
|
|
8
9
|
parser: classDiagram_default,
|
|
9
10
|
get db() {
|
package/dist/renderer/assets/{cose-bilkent-S5V4N54A-XasiD0bu.js → cose-bilkent-S5V4N54A-iqY6-EwA.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { b4 as getDefaultExportFromCjs, _ as __name, l as log, d as select } from "./index-
|
|
1
|
+
import { b4 as getDefaultExportFromCjs, _ as __name, l as log, d as select } from "./index-DAlXyxzt.js";
|
|
2
2
|
import { c as cytoscape$1 } from "./cytoscape.esm-CpHeHM5e.js";
|
|
3
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
3
4
|
var cytoscapeCoseBilkent$1 = { exports: {} };
|
|
4
5
|
var coseBase$1 = { exports: {} };
|
|
5
6
|
var layoutBase$1 = { exports: {} };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as __name, aV as markers_default, aW as clear2, aX as clear, aY as clear$1, l as log, c as getConfig2, aZ as updateNodeBounds, a_ as setNodeElem, ag as insertNode, aQ as getSubGraphTitleMargins, ah as positionNode, af as insertCluster, a$ as insertEdge, b0 as positionEdgeLabel, b1 as insertEdgeLabel } from "./index-
|
|
2
|
-
import { i as isUndefined, G as Graph } from "./graph-
|
|
3
|
-
import { b as baseClone, m as map, l as layout } from "./layout-
|
|
1
|
+
import { _ as __name, aV as markers_default, aW as clear2, aX as clear, aY as clear$1, l as log, c as getConfig2, aZ as updateNodeBounds, a_ as setNodeElem, ag as insertNode, aQ as getSubGraphTitleMargins, ah as positionNode, af as insertCluster, a$ as insertEdge, b0 as positionEdgeLabel, b1 as insertEdgeLabel } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { i as isUndefined, G as Graph } from "./graph-CDoHYrHm.js";
|
|
3
|
+
import { b as baseClone, m as map, l as layout } from "./layout-DZl4n4qu.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
var CLONE_SYMBOLS_FLAG = 4;
|
|
5
6
|
function clone(value) {
|
|
6
7
|
return baseClone(value, CLONE_SYMBOLS_FLAG);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, I as selectSvgElement, z as clear, F as cleanAndMerge, D as getConfig, G as defaultConfig_default, l as log, K as getThemeVariables3, e as configureSvgSize } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, I as selectSvgElement, z as clear, F as cleanAndMerge, D as getConfig, G as defaultConfig_default, l as log, K as getThemeVariables3, e as configureSvgSize } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
3
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
var defaultOptions = {
|
|
5
6
|
showLegend: true,
|
|
6
7
|
ticks: 5,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as setDiagramTitle, b as setAccTitle, s as setAccDescription, q as getDiagramTitle, g as getAccDescription, a as getAccTitle, _ as __name, F as cleanAndMerge, l as log, I as selectSvgElement, e as configureSvgSize, D as getConfig, z as clear, G as defaultConfig_default } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { I as ImperativeState } from "./chunk-QZHKN3VN-
|
|
4
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { p as setDiagramTitle, b as setAccTitle, s as setAccDescription, q as getDiagramTitle, g as getAccDescription, a as getAccTitle, _ as __name, F as cleanAndMerge, l as log, I as selectSvgElement, e as configureSvgSize, D as getConfig, z as clear, G as defaultConfig_default } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
3
|
+
import { I as ImperativeState } from "./chunk-QZHKN3VN-rCbVuPBn.js";
|
|
4
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
5
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
5
6
|
var state = new ImperativeState(() => ({
|
|
6
7
|
cnt: 1,
|
|
7
8
|
stack: [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
2
|
-
import { q as getDiagramTitle, p as setDiagramTitle, s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, l as log, c as getConfig2, d as select, E as setupGraphViewbox2, z as clear, F as cleanAndMerge, D as getConfig, G as defaultConfig_default, i as sanitizeText, w as wrapLabel, ak as calculateTextDimensions } from "./index-
|
|
3
|
-
import { p as parse, i as isEmResetFrame } from "./wardley-L42UT6IY-
|
|
1
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
2
|
+
import { q as getDiagramTitle, p as setDiagramTitle, s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, l as log, c as getConfig2, d as select, E as setupGraphViewbox2, z as clear, F as cleanAndMerge, D as getConfig, G as defaultConfig_default, i as sanitizeText, w as wrapLabel, ak as calculateTextDimensions } from "./index-DAlXyxzt.js";
|
|
3
|
+
import { p as parse, i as isEmResetFrame } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
var PositionFrameKind = "position frame";
|
|
5
6
|
var FramePositionedKind = "frame positioned";
|
|
6
7
|
var PositionRelationKind = "position relation";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as __name, F as cleanAndMerge, I as selectSvgElement, e as configureSvgSize, l as log, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, D as getConfig, G as defaultConfig_default, z as clear } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { _ as __name, F as cleanAndMerge, I as selectSvgElement, e as configureSvgSize, l as log, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, D as getConfig, G as defaultConfig_default, z as clear } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
3
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
var DEFAULT_PACKET_CONFIG = defaultConfig_default.packet;
|
|
5
6
|
var PacketDB = class {
|
|
6
7
|
constructor() {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as __name, K as getThemeVariables3, D as getConfig, F as cleanAndMerge, I as selectSvgElement, e as configureSvgSize, l as log, bd as styles2String, d as select, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, G as defaultConfig_default, be as isLabelStyle, z as clear } from "./index-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
4
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { _ as __name, K as getThemeVariables3, D as getConfig, F as cleanAndMerge, I as selectSvgElement, e as configureSvgSize, l as log, bd as styles2String, d as select, b as setAccTitle, a as getAccTitle, p as setDiagramTitle, q as getDiagramTitle, g as getAccDescription, s as setAccDescription, G as defaultConfig_default, be as isLabelStyle, z as clear } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
3
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
4
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
5
5
|
import { b as format } from "./defaultLocale-B2RvLBDe.js";
|
|
6
6
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
7
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
7
8
|
import "./init-ZxktEp_H.js";
|
|
8
9
|
function count(node) {
|
|
9
10
|
var sum = 0, children = node.children, i = children && children.length;
|
package/dist/renderer/assets/{erDiagram-TEJ5UH35-D_uPaKwn.js → erDiagram-TEJ5UH35-BxUN79Qb.js}
RENAMED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as __name, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, p as setDiagramTitle, q as getDiagramTitle, c as getConfig2, l as log, z as clear, x as getEdgeId, B as rgba, C as __export, o as getRegisteredLayoutAlgorithm, r as render, d as select, u as utils_default } from "./index-
|
|
4
|
-
import { c as channel } from "./channel-
|
|
1
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-DEgMVBk8.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
3
|
+
import { _ as __name, b as setAccTitle, a as getAccTitle, s as setAccDescription, g as getAccDescription, p as setDiagramTitle, q as getDiagramTitle, c as getConfig2, l as log, z as clear, x as getEdgeId, B as rgba, C as __export, o as getRegisteredLayoutAlgorithm, r as render, d as select, u as utils_default } from "./index-DAlXyxzt.js";
|
|
4
|
+
import { c as channel } from "./channel-DpG2A6fE.js";
|
|
5
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
5
6
|
var parser = (function() {
|
|
6
7
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
7
8
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
package/dist/renderer/assets/{flowDiagram-I6XJVG4X-B6q_1-tE.js → flowDiagram-I6XJVG4X-CzFk-KNI.js}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as __name, n as setConfig2, l as log, c as getConfig2, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default, b as setAccTitle, s as setAccDescription, p as setDiagramTitle, a as getAccTitle, g as getAccDescription, q as getDiagramTitle, k as common_default, t as load, J as JSON_SCHEMA, v as isValidShape, x as getEdgeId, d as select, y as purify, z as clear, A as defaultConfig2, B as rgba } from "./index-
|
|
3
|
-
import { c as createTooltip } from "./chunk-ND2GUHAM-
|
|
4
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
5
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
6
|
-
import { c as channel } from "./channel-
|
|
1
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CkphwJzs.js";
|
|
2
|
+
import { _ as __name, n as setConfig2, l as log, c as getConfig2, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default, b as setAccTitle, s as setAccDescription, p as setDiagramTitle, a as getAccTitle, g as getAccDescription, q as getDiagramTitle, k as common_default, t as load, J as JSON_SCHEMA, v as isValidShape, x as getEdgeId, d as select, y as purify, z as clear, A as defaultConfig2, B as rgba } from "./index-DAlXyxzt.js";
|
|
3
|
+
import { c as createTooltip } from "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
4
|
+
import { g as getDiagramElement } from "./chunk-55IACEB6-DEgMVBk8.js";
|
|
5
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
6
|
+
import { c as channel } from "./channel-DpG2A6fE.js";
|
|
7
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
7
8
|
var MERMAID_DOM_ID_PREFIX = "flowchart-";
|
|
8
9
|
var FlowDB = class {
|
|
9
10
|
// cspell:ignore funs
|
package/dist/renderer/assets/{ganttDiagram-6RSMTGT7-CFo7ifF9.js → ganttDiagram-6RSMTGT7-C2xl6Igx.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { bf as Rgb, bg as rgbConvert, bh as define, bi as extend, bj as Color, bk as nogamma, bl as hue, b4 as getDefaultExportFromCjs, g as getAccDescription, s as setAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, d as select, e as configureSvgSize, bm as dayjs2, l as log, k as common_default, j as distExports, z as clear, u as utils_default } from "./index-
|
|
2
|
-
import { b as bisector, t as tickStep, c as continuous, a as copy, l as linear } from "./linear-
|
|
1
|
+
import { bf as Rgb, bg as rgbConvert, bh as define, bi as extend, bj as Color, bk as nogamma, bl as hue, b4 as getDefaultExportFromCjs, g as getAccDescription, s as setAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, d as select, e as configureSvgSize, bm as dayjs2, l as log, k as common_default, j as distExports, z as clear, u as utils_default } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { b as bisector, t as tickStep, c as continuous, a as copy, l as linear } from "./linear-B0Krxg21.js";
|
|
3
3
|
import { i as initRange } from "./init-ZxktEp_H.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
import "./defaultLocale-B2RvLBDe.js";
|
|
5
6
|
function max(values, valueof) {
|
|
6
7
|
let max2;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
2
|
-
import { I as ImperativeState } from "./chunk-QZHKN3VN-
|
|
3
|
-
import { q as getDiagramTitle, p as setDiagramTitle, s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, D as getConfig, l as log, d as select, c as getConfig2, u as utils_default, E as setupGraphViewbox2, z as clear, k as common_default, F as cleanAndMerge, G as defaultConfig_default, H as random } from "./index-
|
|
4
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BhRxDTNn.js";
|
|
2
|
+
import { I as ImperativeState } from "./chunk-QZHKN3VN-rCbVuPBn.js";
|
|
3
|
+
import { q as getDiagramTitle, p as setDiagramTitle, s as setAccDescription, g as getAccDescription, a as getAccTitle, b as setAccTitle, _ as __name, D as getConfig, l as log, d as select, c as getConfig2, u as utils_default, E as setupGraphViewbox2, z as clear, k as common_default, F as cleanAndMerge, G as defaultConfig_default, H as random } from "./index-DAlXyxzt.js";
|
|
4
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
5
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
5
6
|
var commitType = {
|
|
6
7
|
NORMAL: 0,
|
|
7
8
|
REVERSE: 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bt as isSymbol, bs as Symbol$1, bo as isObject, bq as baseGetTag, br as root, bp as isObjectLike, bu as freeGlobal } from "./index-
|
|
1
|
+
import { bt as isSymbol, bs as Symbol$1, bo as isObject, bq as baseGetTag, br as root, bp as isObjectLike, bu as freeGlobal } from "./index-DAlXyxzt.js";
|
|
2
2
|
function arrayMap(array, iteratee) {
|
|
3
3
|
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
4
4
|
while (++index < length) {
|