@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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { WebPlugin, registerPlugin } from "./index-B4uDgADr.js";
|
|
2
|
+
class FilePickerWeb extends WebPlugin {
|
|
3
|
+
constructor() {
|
|
4
|
+
super(...arguments);
|
|
5
|
+
this.ERROR_PICK_FILE_CANCELED = "pickFiles canceled.";
|
|
6
|
+
}
|
|
7
|
+
async checkPermissions() {
|
|
8
|
+
throw this.unimplemented("Not implemented on web.");
|
|
9
|
+
}
|
|
10
|
+
async convertHeicToJpeg(_options) {
|
|
11
|
+
throw this.unimplemented("Not implemented on web.");
|
|
12
|
+
}
|
|
13
|
+
async pickFiles(options) {
|
|
14
|
+
const pickedFiles = await this.openFilePicker(options);
|
|
15
|
+
if (!pickedFiles) {
|
|
16
|
+
throw new Error(this.ERROR_PICK_FILE_CANCELED);
|
|
17
|
+
}
|
|
18
|
+
const result = {
|
|
19
|
+
files: []
|
|
20
|
+
};
|
|
21
|
+
for (const pickedFile of pickedFiles) {
|
|
22
|
+
const file = {
|
|
23
|
+
blob: pickedFile,
|
|
24
|
+
modifiedAt: pickedFile.lastModified,
|
|
25
|
+
mimeType: this.getMimeTypeFromUrl(pickedFile),
|
|
26
|
+
name: this.getNameFromUrl(pickedFile),
|
|
27
|
+
path: void 0,
|
|
28
|
+
size: this.getSizeFromUrl(pickedFile)
|
|
29
|
+
};
|
|
30
|
+
if (options === null || options === void 0 ? void 0 : options.readData) {
|
|
31
|
+
file.data = await this.getDataFromFile(pickedFile);
|
|
32
|
+
}
|
|
33
|
+
result.files.push(file);
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
}
|
|
37
|
+
async pickDirectory() {
|
|
38
|
+
throw this.unimplemented("Not implemented on web.");
|
|
39
|
+
}
|
|
40
|
+
async pickImages(options) {
|
|
41
|
+
return this.pickFiles(Object.assign({ types: ["image/*"] }, options));
|
|
42
|
+
}
|
|
43
|
+
async pickMedia(options) {
|
|
44
|
+
return this.pickFiles(Object.assign({ types: ["image/*", "video/*"] }, options));
|
|
45
|
+
}
|
|
46
|
+
async pickVideos(options) {
|
|
47
|
+
return this.pickFiles(Object.assign({ types: ["video/*"] }, options));
|
|
48
|
+
}
|
|
49
|
+
async requestPermissions(_options) {
|
|
50
|
+
throw this.unimplemented("Not implemented on web.");
|
|
51
|
+
}
|
|
52
|
+
async openFilePicker(options) {
|
|
53
|
+
var _a;
|
|
54
|
+
const accept = ((_a = options === null || options === void 0 ? void 0 : options.types) === null || _a === void 0 ? void 0 : _a.join(",")) || "";
|
|
55
|
+
const limit = (options === null || options === void 0 ? void 0 : options.limit) === void 0 ? 0 : options.limit;
|
|
56
|
+
return new Promise((resolve) => {
|
|
57
|
+
let onChangeFired = false;
|
|
58
|
+
const input = document.createElement("input");
|
|
59
|
+
input.type = "file";
|
|
60
|
+
input.accept = accept;
|
|
61
|
+
input.multiple = limit === 0;
|
|
62
|
+
input.addEventListener("change", () => {
|
|
63
|
+
onChangeFired = true;
|
|
64
|
+
const files = Array.from(input.files || []);
|
|
65
|
+
resolve(files);
|
|
66
|
+
}, { once: true });
|
|
67
|
+
window.addEventListener("focus", async () => {
|
|
68
|
+
await this.wait(1e3);
|
|
69
|
+
if (onChangeFired) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
resolve(void 0);
|
|
73
|
+
}, { once: true });
|
|
74
|
+
input.click();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
async getDataFromFile(file) {
|
|
78
|
+
return new Promise((resolve, reject) => {
|
|
79
|
+
const reader = new FileReader();
|
|
80
|
+
reader.readAsDataURL(file);
|
|
81
|
+
reader.onload = () => {
|
|
82
|
+
const result = typeof reader.result === "string" ? reader.result : "";
|
|
83
|
+
const splittedResult = result.split("base64,");
|
|
84
|
+
const base64 = splittedResult[1] || "";
|
|
85
|
+
resolve(base64);
|
|
86
|
+
};
|
|
87
|
+
reader.onerror = (error) => {
|
|
88
|
+
reject(error);
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
getNameFromUrl(file) {
|
|
93
|
+
return file.name;
|
|
94
|
+
}
|
|
95
|
+
getMimeTypeFromUrl(file) {
|
|
96
|
+
return file.type;
|
|
97
|
+
}
|
|
98
|
+
getSizeFromUrl(file) {
|
|
99
|
+
return file.size;
|
|
100
|
+
}
|
|
101
|
+
async wait(delayMs) {
|
|
102
|
+
return new Promise((resolve) => setTimeout(resolve, delayMs));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const FilePicker = registerPlugin("FilePicker", {
|
|
106
|
+
web: () => new FilePickerWeb()
|
|
107
|
+
});
|
|
108
|
+
export {
|
|
109
|
+
FilePicker
|
|
110
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./web-Dc8YgoHP.js","./index-B4uDgADr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { _ as __vitePreload } from "./preload-helper-tXtZnHb0.js";
|
|
3
|
+
import { registerPlugin } from "./index-B4uDgADr.js";
|
|
4
|
+
const Share = registerPlugin("Share", {
|
|
5
|
+
web: () => __vitePreload(() => import("./web-Dc8YgoHP.js"), true ? __vite__mapDeps([0,1]) : void 0, import.meta.url).then((m) => new m.ShareWeb())
|
|
6
|
+
});
|
|
7
|
+
export {
|
|
8
|
+
Share
|
|
9
|
+
};
|
package/dist/renderer/assets/{infoDiagram-5YYISTIA-DaeJdLRq.js → infoDiagram-5YYISTIA-DL6XIxLz.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as __name, l as log, I as selectSvgElement, e as configureSvgSize } from "./index-
|
|
2
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
1
|
+
import { _ as __name, l as log, I as selectSvgElement, e as configureSvgSize } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
3
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
3
4
|
var parser = {
|
|
4
5
|
parse: /* @__PURE__ */ __name(async (input) => {
|
|
5
6
|
const ast = await parse("info", input);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as __name, c as getConfig2, N as parseFontSize, I as selectSvgElement, al as at, z as clear, k as common_default, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, q as getDiagramTitle, e as configureSvgSize } from "./index-
|
|
1
|
+
import { _ as __name, c as getConfig2, N as parseFontSize, I as selectSvgElement, al as at, z as clear, k as common_default, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, g as getAccDescription, s as setAccDescription, q as getDiagramTitle, e as configureSvgSize } from "./index-DAlXyxzt.js";
|
|
2
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
2
3
|
var parser = (function() {
|
|
3
4
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
4
5
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, q as getDiagramTitle, p as setDiagramTitle, _ as __name, c as getConfig2, d as select, e as configureSvgSize, z as clear } from "./index-
|
|
4
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CkphwJzs.js";
|
|
2
|
+
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
3
|
+
import { g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, q as getDiagramTitle, p as setDiagramTitle, _ as __name, c as getConfig2, d as select, e as configureSvgSize, z as clear } from "./index-DAlXyxzt.js";
|
|
4
|
+
import { d as d3arc } from "./arc-CPdeInCG.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) ;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as __name, l as log, c as getConfig2, I as selectSvgElement, af as insertCluster, ag as insertNode, ah as positionNode, Y as setupGraphViewbox, G as defaultConfig_default, i as sanitizeText, t as load, J as JSON_SCHEMA, V as isDark, W as lighten, X as darken } from "./index-
|
|
2
|
-
import { g as getIconStyles } from "./chunk-FMBD7UC4-
|
|
1
|
+
import { _ as __name, l as log, c as getConfig2, I as selectSvgElement, af as insertCluster, ag as insertNode, ah as positionNode, Y as setupGraphViewbox, G as defaultConfig_default, i as sanitizeText, t as load, J as JSON_SCHEMA, V as isDark, W as lighten, X as darken } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CkphwJzs.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,5 +1,5 @@
|
|
|
1
|
-
import { d as defineProperty, e as eq, a as isArrayLike, b as isIndex, c as baseRest, f as isPrototype, g as arrayLikeKeys, h as baseFlatten, s as setToString, o as overRest, j as overArg, k as keys, l as getSymbols, m as stubArray, n as arrayPush, p as baseGetAllKeys, U as Uint8Array, q as getTag, r as baseUnary, t as nodeUtil, u as isBuffer, S as Stack, v as arrayEach, w as isArray, x as getAllKeys, y as isTypedArray, z as isArrayLikeObject, A as isArguments, B as isFunction, C as baseFor, D as baseIteratee, E as baseFindIndex, F as baseEach, H as arrayMap, I as castFunction, J as baseForOwn, K as hasPath, L as identity, M as castPath, N as toKey, O as baseGet, P as hasIn, Q as toString, G as Graph, R as forEach, T as constant, i as isUndefined, V as filter, W as values, X as reduce } from "./graph-
|
|
2
|
-
import { bn as toNumber, bo as isObject, bp as isObjectLike, bq as baseGetTag, br as root, bs as Symbol$1, bt as isSymbol } from "./index-
|
|
1
|
+
import { d as defineProperty, e as eq, a as isArrayLike, b as isIndex, c as baseRest, f as isPrototype, g as arrayLikeKeys, h as baseFlatten, s as setToString, o as overRest, j as overArg, k as keys, l as getSymbols, m as stubArray, n as arrayPush, p as baseGetAllKeys, U as Uint8Array, q as getTag, r as baseUnary, t as nodeUtil, u as isBuffer, S as Stack, v as arrayEach, w as isArray, x as getAllKeys, y as isTypedArray, z as isArrayLikeObject, A as isArguments, B as isFunction, C as baseFor, D as baseIteratee, E as baseFindIndex, F as baseEach, H as arrayMap, I as castFunction, J as baseForOwn, K as hasPath, L as identity, M as castPath, N as toKey, O as baseGet, P as hasIn, Q as toString, G as Graph, R as forEach, T as constant, i as isUndefined, V as filter, W as values, X as reduce } from "./graph-CDoHYrHm.js";
|
|
2
|
+
import { bn as toNumber, bo as isObject, bp as isObjectLike, bq as baseGetTag, br as root, bs as Symbol$1, bt as isSymbol } from "./index-DAlXyxzt.js";
|
|
3
3
|
var INFINITY = 1 / 0, MAX_INTEGER = 17976931348623157e292;
|
|
4
4
|
function toFinite(value) {
|
|
5
5
|
if (!value) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b8 as constant, b9 as interpolateNumber, ba as color, bb as interpolateRgb, bc as interpolateString } from "./index-
|
|
1
|
+
import { b8 as constant, b9 as interpolateNumber, ba as color, bb as interpolateRgb, bc as interpolateString } from "./index-DAlXyxzt.js";
|
|
2
2
|
import { i as initRange } from "./init-ZxktEp_H.js";
|
|
3
3
|
import { e as exponent, f as formatSpecifier, a as formatPrefix, b as format } from "./defaultLocale-B2RvLBDe.js";
|
|
4
4
|
function ascending(a, b) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as __name, l as log, o as getRegisteredLayoutAlgorithm, r as render, D as getConfig, G as defaultConfig_default, c as getConfig2, i as sanitizeText, b3 as getUserDefinedConfig, V as isDark, W as lighten, X as darken } 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, o as getRegisteredLayoutAlgorithm, r as render, D as getConfig, G as defaultConfig_default, c as getConfig2, i as sanitizeText, b3 as getUserDefinedConfig, V as isDark, W as lighten, X as darken } from "./index-DAlXyxzt.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
const byteToHex = [];
|
|
5
6
|
for (let i = 0; i < 256; ++i) {
|
|
6
7
|
byteToHex.push((i + 256).toString(16).slice(1));
|
package/dist/renderer/assets/{pieDiagram-4H26LBE5-CwYoJBuL.js → pieDiagram-4H26LBE5-BPZLqwG0.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ab as constant, a3 as tau, b2 as array, g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, q as getDiagramTitle, p as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, F as cleanAndMerge, I as selectSvgElement, N as parseFontSize, e as configureSvgSize, z as clear, G as defaultConfig_default } from "./index-
|
|
2
|
-
import { p as populateCommonDb } from "./chunk-4BX2VUAB-
|
|
3
|
-
import { p as parse } from "./wardley-L42UT6IY-
|
|
4
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { ab as constant, a3 as tau, b2 as array, g as getAccDescription, s as setAccDescription, a as getAccTitle, b as setAccTitle, q as getDiagramTitle, p as setDiagramTitle, _ as __name, l as log, c as getConfig2$1, F as cleanAndMerge, I as selectSvgElement, N as parseFontSize, e as configureSvgSize, z as clear, G as defaultConfig_default } 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 { d as d3arc } from "./arc-CPdeInCG.js";
|
|
5
5
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
6
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
6
7
|
import "./init-ZxktEp_H.js";
|
|
7
8
|
function descending(a, b) {
|
|
8
9
|
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
const scriptRel = /* @__PURE__ */ (function detectScriptRel() {
|
|
2
|
+
const relList = typeof document !== "undefined" && document.createElement("link").relList;
|
|
3
|
+
return relList && relList.supports && relList.supports("modulepreload") ? "modulepreload" : "preload";
|
|
4
|
+
})();
|
|
5
|
+
const assetsURL = function(dep, importerUrl) {
|
|
6
|
+
return new URL(dep, importerUrl).href;
|
|
7
|
+
};
|
|
8
|
+
const seen = {};
|
|
9
|
+
const __vitePreload = function preload(baseModule, deps, importerUrl) {
|
|
10
|
+
let promise = Promise.resolve();
|
|
11
|
+
if (deps && deps.length > 0) {
|
|
12
|
+
let allSettled2 = function(promises) {
|
|
13
|
+
return Promise.all(
|
|
14
|
+
promises.map(
|
|
15
|
+
(p) => Promise.resolve(p).then(
|
|
16
|
+
(value) => ({ status: "fulfilled", value }),
|
|
17
|
+
(reason) => ({ status: "rejected", reason })
|
|
18
|
+
)
|
|
19
|
+
)
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
const links = document.getElementsByTagName("link");
|
|
23
|
+
const cspNonceMeta = document.querySelector(
|
|
24
|
+
"meta[property=csp-nonce]"
|
|
25
|
+
);
|
|
26
|
+
const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
|
|
27
|
+
promise = allSettled2(
|
|
28
|
+
deps.map((dep) => {
|
|
29
|
+
dep = assetsURL(dep, importerUrl);
|
|
30
|
+
if (dep in seen) return;
|
|
31
|
+
seen[dep] = true;
|
|
32
|
+
const isCss = dep.endsWith(".css");
|
|
33
|
+
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
|
|
34
|
+
const isBaseRelative = !!importerUrl;
|
|
35
|
+
if (isBaseRelative) {
|
|
36
|
+
for (let i = links.length - 1; i >= 0; i--) {
|
|
37
|
+
const link2 = links[i];
|
|
38
|
+
if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
} else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const link = document.createElement("link");
|
|
46
|
+
link.rel = isCss ? "stylesheet" : scriptRel;
|
|
47
|
+
if (!isCss) {
|
|
48
|
+
link.as = "script";
|
|
49
|
+
}
|
|
50
|
+
link.crossOrigin = "";
|
|
51
|
+
link.href = dep;
|
|
52
|
+
if (cspNonce) {
|
|
53
|
+
link.setAttribute("nonce", cspNonce);
|
|
54
|
+
}
|
|
55
|
+
document.head.appendChild(link);
|
|
56
|
+
if (isCss) {
|
|
57
|
+
return new Promise((res, rej) => {
|
|
58
|
+
link.addEventListener("load", res);
|
|
59
|
+
link.addEventListener(
|
|
60
|
+
"error",
|
|
61
|
+
() => rej(new Error(`Unable to preload CSS for ${dep}`))
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function handlePreloadError(err) {
|
|
69
|
+
const e = new Event("vite:preloadError", {
|
|
70
|
+
cancelable: true
|
|
71
|
+
});
|
|
72
|
+
e.payload = err;
|
|
73
|
+
window.dispatchEvent(e);
|
|
74
|
+
if (!e.defaultPrevented) {
|
|
75
|
+
throw err;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return promise.then((res) => {
|
|
79
|
+
for (const item of res || []) {
|
|
80
|
+
if (item.status !== "rejected") continue;
|
|
81
|
+
handlePreloadError(item.reason);
|
|
82
|
+
}
|
|
83
|
+
return baseModule().catch(handlePreloadError);
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
export {
|
|
87
|
+
__vitePreload as _
|
|
88
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as select, e as configureSvgSize, z as clear, G as defaultConfig_default, i as sanitizeText, K as getThemeVariables3 } from "./index-
|
|
2
|
-
import { l as linear } from "./linear-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, c as getConfig2, l as log, d as select, e as configureSvgSize, z as clear, G as defaultConfig_default, i as sanitizeText, K as getThemeVariables3 } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { l as linear } from "./linear-B0Krxg21.js";
|
|
3
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
3
4
|
import "./init-ZxktEp_H.js";
|
|
4
5
|
import "./defaultLocale-B2RvLBDe.js";
|
|
5
6
|
var parser = (function() {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { g as getDiagramElement } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-
|
|
3
|
-
import { _ as __name, D as getConfig, 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, C as __export, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default } 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, D as getConfig, 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, C as __export, o as getRegisteredLayoutAlgorithm, r as render, u as utils_default } from "./index-DAlXyxzt.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
var parser = (function() {
|
|
5
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
7
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { p as setDiagramTitle, q as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, A as defaultConfig2, d as select, Y as setupGraphViewbox, z as clear, k as common_default } from "./index-
|
|
1
|
+
import { p as setDiagramTitle, q as getDiagramTitle, s as setAccDescription, g as getAccDescription, b as setAccTitle, a as getAccTitle, _ as __name, c as getConfig2, A as defaultConfig2, d as select, Y as setupGraphViewbox, z as clear, k as common_default } from "./index-DAlXyxzt.js";
|
|
2
2
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
3
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
3
4
|
import "./init-ZxktEp_H.js";
|
|
4
5
|
function colors(specifier) {
|
|
5
6
|
var n = specifier.length / 6 | 0, colors2 = new Array(n), i = 0;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as __name, n as setConfig2, c as getConfig2, d as select, l as log, j as distExports, e as configureSvgSize, f as assignWithDepth_default, k as common_default, b as setAccTitle, s as setAccDescription, p as setDiagramTitle, a as getAccTitle, g as getAccDescription, q as getDiagramTitle, t as load, J as JSON_SCHEMA, z as clear, i as sanitizeText, u as utils_default, L as hasKatex, M as calculateMathMLDimensions, N as parseFontSize, Z as ZERO_WIDTH_SPACE, D as getConfig, O as getUrl, P as renderKatexSanitized } from "./index-
|
|
2
|
-
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-ND2GUHAM-
|
|
3
|
-
import { I as ImperativeState } from "./chunk-QZHKN3VN-
|
|
1
|
+
import { _ as __name, n as setConfig2, c as getConfig2, d as select, l as log, j as distExports, e as configureSvgSize, f as assignWithDepth_default, k as common_default, b as setAccTitle, s as setAccDescription, p as setDiagramTitle, a as getAccTitle, g as getAccDescription, q as getDiagramTitle, t as load, J as JSON_SCHEMA, z as clear, i as sanitizeText, u as utils_default, L as hasKatex, M as calculateMathMLDimensions, N as parseFontSize, Z as ZERO_WIDTH_SPACE, D as getConfig, O as getUrl, P as renderKatexSanitized } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-ND2GUHAM-oU09z4y4.js";
|
|
3
|
+
import { I as ImperativeState } from "./chunk-QZHKN3VN-rCbVuPBn.js";
|
|
4
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
4
5
|
var parser = (function() {
|
|
5
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
6
7
|
for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v) ;
|
package/dist/renderer/assets/{stateDiagram-AJRCARHV-Bha2QoNB.js → stateDiagram-AJRCARHV-qyb8ETsa.js}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as __name, c as getConfig2, d as select, l as log, e as configureSvgSize, k as common_default, R as line, S as curveBasis, O as getUrl, u as utils_default } from "./index-
|
|
3
|
-
import { G as Graph } from "./graph-
|
|
4
|
-
import { l as layout } from "./layout-
|
|
5
|
-
import "./chunk-55IACEB6-
|
|
6
|
-
import "./chunk-2J33WTMH-
|
|
1
|
+
import { s as styles_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-DwQMzTzD.js";
|
|
2
|
+
import { _ as __name, c as getConfig2, d as select, l as log, e as configureSvgSize, k as common_default, R as line, S as curveBasis, O as getUrl, u as utils_default } from "./index-DAlXyxzt.js";
|
|
3
|
+
import { G as Graph } from "./graph-CDoHYrHm.js";
|
|
4
|
+
import { l as layout } from "./layout-DZl4n4qu.js";
|
|
5
|
+
import "./chunk-55IACEB6-DEgMVBk8.js";
|
|
6
|
+
import "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
7
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
7
8
|
var drawStartState = /* @__PURE__ */ __name((g) => g.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState");
|
|
8
9
|
var drawDivider = /* @__PURE__ */ __name((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
|
|
9
10
|
var drawSimpleState = /* @__PURE__ */ __name((g, stateDef) => {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-
|
|
2
|
-
import { _ as __name } from "./index-
|
|
3
|
-
import "./chunk-55IACEB6-
|
|
4
|
-
import "./chunk-2J33WTMH-
|
|
1
|
+
import { s as styles_default, b as stateRenderer_v3_unified_default, a as stateDiagram_default, S as StateDB } from "./chunk-AQP2D5EJ-DwQMzTzD.js";
|
|
2
|
+
import { _ as __name } from "./index-DAlXyxzt.js";
|
|
3
|
+
import "./chunk-55IACEB6-DEgMVBk8.js";
|
|
4
|
+
import "./chunk-2J33WTMH-DFc0Jxy_.js";
|
|
5
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
5
6
|
var diagram = {
|
|
6
7
|
parser: stateDiagram_default,
|
|
7
8
|
get db() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as __name, D as getConfig, V as isDark, W as lighten, X as darken, c as getConfig2, l as log, I as selectSvgElement, N as parseFontSize, Y as setupGraphViewbox, d as select, C as __export, $ as commonDb_exports, z as clear } from "./index-
|
|
2
|
-
import { d as d3arc } from "./arc-
|
|
1
|
+
import { _ as __name, D as getConfig, V as isDark, W as lighten, X as darken, c as getConfig2, l as log, I as selectSvgElement, N as parseFontSize, Y as setupGraphViewbox, d as select, C as __export, $ as commonDb_exports, z as clear } from "./index-DAlXyxzt.js";
|
|
2
|
+
import { d as d3arc } from "./arc-CPdeInCG.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) ;
|
package/dist/renderer/assets/{vennDiagram-CIIHVFJN-DFzjSrZi.js → vennDiagram-CIIHVFJN-BdaZlnH-.js}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { aU as adjustChannel, s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, D as getConfig, I as selectSvgElement, d as select, al as at, V as isDark, W as lighten, X as darken, e as configureSvgSize, z as clear, F as cleanAndMerge, G as defaultConfig_default } from "./index-
|
|
1
|
+
import { aU as adjustChannel, s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, D as getConfig, I as selectSvgElement, d as select, al as at, V as isDark, W as lighten, X as darken, e as configureSvgSize, z as clear, F as cleanAndMerge, G as defaultConfig_default } from "./index-DAlXyxzt.js";
|
|
2
|
+
import "./preload-helper-tXtZnHb0.js";
|
|
2
3
|
const transparentize = (color, amount) => {
|
|
3
4
|
return adjustChannel(color, "a", -amount);
|
|
4
5
|
};
|
|
@@ -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, K as getThemeVariables3, D as getConfig, F as cleanAndMerge, l as log, I as selectSvgElement, e as configureSvgSize, z as clear, c as getConfig2 } 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, K as getThemeVariables3, D as getConfig, F as cleanAndMerge, l as log, I as selectSvgElement, e as configureSvgSize, z as clear, c as getConfig2 } 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 toPercent = /* @__PURE__ */ __name((value, context) => {
|
|
5
6
|
const normalized = value <= 1 ? value * 100 : value;
|
|
6
7
|
if (normalized < 0 || normalized > 100) {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { WebPlugin } from "./index-B4uDgADr.js";
|
|
2
|
+
class AppWeb extends WebPlugin {
|
|
3
|
+
constructor() {
|
|
4
|
+
super();
|
|
5
|
+
this.handleVisibilityChange = () => {
|
|
6
|
+
const data = {
|
|
7
|
+
isActive: document.hidden !== true
|
|
8
|
+
};
|
|
9
|
+
this.notifyListeners("appStateChange", data);
|
|
10
|
+
if (document.hidden) {
|
|
11
|
+
this.notifyListeners("pause", null);
|
|
12
|
+
} else {
|
|
13
|
+
this.notifyListeners("resume", null);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
document.addEventListener("visibilitychange", this.handleVisibilityChange, false);
|
|
17
|
+
}
|
|
18
|
+
exitApp() {
|
|
19
|
+
throw this.unimplemented("Not implemented on web.");
|
|
20
|
+
}
|
|
21
|
+
async getInfo() {
|
|
22
|
+
throw this.unimplemented("Not implemented on web.");
|
|
23
|
+
}
|
|
24
|
+
async getLaunchUrl() {
|
|
25
|
+
return { url: "" };
|
|
26
|
+
}
|
|
27
|
+
async getState() {
|
|
28
|
+
return { isActive: document.hidden !== true };
|
|
29
|
+
}
|
|
30
|
+
async minimizeApp() {
|
|
31
|
+
throw this.unimplemented("Not implemented on web.");
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
AppWeb
|
|
36
|
+
};
|