@bytechain.cn/colamd 1.5.1-beta.2 → 1.5.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/CHANGELOG.md +194 -162
- package/README.md +148 -5
- package/README_CN.md +163 -13
- package/dist/lib/colamd-renderer.js +193804 -0
- package/dist/lib/colamd-renderer.js.map +1 -0
- package/dist/lib/colamd.css +1810 -0
- package/dist/lib/editor/editor.d.ts +27 -0
- package/dist/lib/editor/html-view.d.ts +2 -0
- package/dist/lib/editor/lib.d.ts +49 -0
- package/dist/lib/editor/plugins/index.d.ts +56 -0
- package/dist/lib/editor/plugins/lib-entry.d.ts +10 -0
- package/dist/lib/editor/plugins/math-plugin.d.ts +9 -0
- package/dist/lib/editor/plugins/mermaid-plugin.d.ts +19 -0
- package/dist/lib/editor/plugins/themes/theme-manager.d.ts +30 -0
- package/dist/main/index.js +107 -37
- package/dist/preload/index.js +3 -2
- package/dist/renderer/assets/{arc-CPdeInCG.js → arc-CpIo2PoE.js} +1 -1
- package/dist/renderer/assets/{architectureDiagram-3BPJPVTR-BAbnaR9G.js → architectureDiagram-3BPJPVTR-T-4Cq0Bz.js} +2 -2
- package/dist/renderer/assets/{blockDiagram-GPEHLZMM-CYSWjnJg.js → blockDiagram-GPEHLZMM-C-SuR6eu.js} +4 -4
- package/dist/renderer/assets/{c4Diagram-AAUBKEIU-Rb1tstnr.js → c4Diagram-AAUBKEIU-PJp81cGm.js} +2 -2
- package/dist/renderer/assets/{channel-DpG2A6fE.js → channel-CtIHaaRI.js} +1 -1
- package/dist/renderer/assets/{chunk-2J33WTMH-DFc0Jxy_.js → chunk-2J33WTMH-BrchfQL6.js} +1 -1
- package/dist/renderer/assets/{chunk-4BX2VUAB-BhRxDTNn.js → chunk-4BX2VUAB-BCc3Ev_H.js} +1 -1
- package/dist/renderer/assets/{chunk-55IACEB6-DEgMVBk8.js → chunk-55IACEB6-B2M27HQo.js} +1 -1
- package/dist/renderer/assets/{chunk-727SXJPM-bjBIfiz8.js → chunk-727SXJPM-DXDHGECs.js} +5 -5
- package/dist/renderer/assets/{chunk-AQP2D5EJ-DwQMzTzD.js → chunk-AQP2D5EJ-BNb1lOQY.js} +3 -3
- package/dist/renderer/assets/{chunk-FMBD7UC4-CkphwJzs.js → chunk-FMBD7UC4-CzgfEH2z.js} +1 -1
- package/dist/renderer/assets/{chunk-ND2GUHAM-oU09z4y4.js → chunk-ND2GUHAM-BUFT_yOe.js} +1 -1
- package/dist/renderer/assets/{chunk-QZHKN3VN-rCbVuPBn.js → chunk-QZHKN3VN-C-zV7oBi.js} +1 -1
- package/dist/renderer/assets/{classDiagram-v2-Q7XG4LA2-DGS2faoM.js → classDiagram-4FO5ZUOK-CAyhGSvf.js} +6 -6
- package/dist/renderer/assets/{classDiagram-4FO5ZUOK-DGS2faoM.js → classDiagram-v2-Q7XG4LA2-CAyhGSvf.js} +6 -6
- package/dist/renderer/assets/{cose-bilkent-S5V4N54A-iqY6-EwA.js → cose-bilkent-S5V4N54A-ldu81kCk.js} +1 -1
- package/dist/renderer/assets/{dagre-BM42HDAG-5t3X5sDa.js → dagre-BM42HDAG-NJgy8CTw.js} +3 -3
- package/dist/renderer/assets/{diagram-2AECGRRQ-DzHiYDPh.js → diagram-2AECGRRQ-CuIcMpOn.js} +2 -2
- package/dist/renderer/assets/{diagram-5GNKFQAL-BiNv6Keq.js → diagram-5GNKFQAL-BJwFCroB.js} +3 -3
- package/dist/renderer/assets/{diagram-KO2AKTUF-ClzeDG6f.js → diagram-KO2AKTUF-C7NgQ8ju.js} +2 -2
- package/dist/renderer/assets/{diagram-LMA3HP47-CGkw7wII.js → diagram-LMA3HP47-B71v6MOq.js} +2 -2
- package/dist/renderer/assets/{diagram-OG6HWLK6-Dl-Hyk1_.js → diagram-OG6HWLK6-D2ZxkrSe.js} +3 -3
- package/dist/renderer/assets/{erDiagram-TEJ5UH35-BxUN79Qb.js → erDiagram-TEJ5UH35-4ToW0p3h.js} +4 -4
- package/dist/renderer/assets/{flowDiagram-I6XJVG4X-CzFk-KNI.js → flowDiagram-I6XJVG4X-DBkZLqwn.js} +6 -6
- package/dist/renderer/assets/{ganttDiagram-6RSMTGT7-C2xl6Igx.js → ganttDiagram-6RSMTGT7-G3xD2VXj.js} +2 -2
- package/dist/renderer/assets/{gitGraphDiagram-PVQCEYII-_fn7XCa7.js → gitGraphDiagram-PVQCEYII-BcTNiFfg.js} +3 -3
- package/dist/renderer/assets/{graph-CDoHYrHm.js → graph--Vhl4p4D.js} +1 -1
- package/dist/renderer/assets/{index-DAlXyxzt.js → index-C63bU7CF.js} +693 -162
- package/dist/renderer/assets/{index-CeFpoCKV.css → index-D8nA981z.css} +17 -6
- package/dist/renderer/assets/{infoDiagram-5YYISTIA-DL6XIxLz.js → infoDiagram-5YYISTIA-DjKa7Yv-.js} +1 -1
- package/dist/renderer/assets/{ishikawaDiagram-YF4QCWOH-BUZLjRo-.js → ishikawaDiagram-YF4QCWOH-xIWzW1pL.js} +1 -1
- package/dist/renderer/assets/{journeyDiagram-JHISSGLW-C4rH_mQM.js → journeyDiagram-JHISSGLW-DxMBkVOF.js} +4 -4
- package/dist/renderer/assets/{kanban-definition-UN3LZRKU-DRbrBcWV.js → kanban-definition-UN3LZRKU-DqJeL6E1.js} +2 -2
- package/dist/renderer/assets/{layout-DZl4n4qu.js → layout-B3giiMoK.js} +2 -2
- package/dist/renderer/assets/{linear-B0Krxg21.js → linear-Cqh3vVIf.js} +1 -1
- package/dist/renderer/assets/{mindmap-definition-RKZ34NQL-DdmPsWrn.js → mindmap-definition-RKZ34NQL-DUay02ma.js} +3 -3
- package/dist/renderer/assets/{pieDiagram-4H26LBE5-BPZLqwG0.js → pieDiagram-4H26LBE5-CVcfLtky.js} +3 -3
- package/dist/renderer/assets/{quadrantDiagram-W4KKPZXB-Dr-oWRk9.js → quadrantDiagram-W4KKPZXB-wDHffPOs.js} +2 -2
- package/dist/renderer/assets/{requirementDiagram-4Y6WPE33-B6QZd0lo.js → requirementDiagram-4Y6WPE33-C4pgGDGv.js} +3 -3
- package/dist/renderer/assets/{sankeyDiagram-5OEKKPKP-Cyl9ojEt.js → sankeyDiagram-5OEKKPKP-Jsf0rRMo.js} +1 -1
- package/dist/renderer/assets/{sequenceDiagram-3UESZ5HK-D48Yr9T6.js → sequenceDiagram-3UESZ5HK-e6QS7gt8.js} +3 -3
- package/dist/renderer/assets/{stateDiagram-AJRCARHV-qyb8ETsa.js → stateDiagram-AJRCARHV-DgYKZzDq.js} +6 -6
- package/dist/renderer/assets/{stateDiagram-v2-BHNVJYJU-DmDOyyrJ.js → stateDiagram-v2-BHNVJYJU-CUdmd_50.js} +4 -4
- package/dist/renderer/assets/{timeline-definition-PNZ67QCA-C-KQxTi1.js → timeline-definition-PNZ67QCA-S12e1Mp_.js} +2 -2
- package/dist/renderer/assets/{vennDiagram-CIIHVFJN-BdaZlnH-.js → vennDiagram-CIIHVFJN-CNDBG6A2.js} +1 -1
- package/dist/renderer/assets/{wardleyDiagram-YWT4CUSO-B2hBE-EE.js → wardleyDiagram-YWT4CUSO-CLlGQcof.js} +2 -2
- package/dist/renderer/assets/{xychartDiagram-2RQKCTM6-CSvswDTY.js → xychartDiagram-2RQKCTM6-CUtsHUQd.js} +2 -2
- package/dist/renderer/index.html +6 -2
- package/package.json +25 -1
- package/themes/README.md +18 -1
- package/themes/academic-paper-pt.css +1321 -0
- package/themes/academic-paper.css +192 -97
- package/.github/workflows/release.yml +0 -66
- package/.trae/specs/optimize-theme-loading/checklist.md +0 -20
- package/.trae/specs/optimize-theme-loading/spec.md +0 -103
- package/.trae/specs/optimize-theme-loading/tasks.md +0 -40
- package/CLAUDE.md +0 -143
- package/android/app/build/.npmkeep +0 -0
- package/android/app/build.gradle +0 -76
- package/android/app/capacitor.build.gradle +0 -24
- package/android/app/proguard-rules.pro +0 -21
- package/android/app/release.keystore +0 -0
- package/android/app/src/androidTest/java/com/getcapacitor/myapp/ExampleInstrumentedTest.java +0 -26
- package/android/app/src/main/AndroidManifest.xml +0 -64
- package/android/app/src/main/java/cn/bytechain/colamd/MainActivity.java +0 -180
- package/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -170
- 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 +0 -34
- package/android/app/src/main/res/layout/activity_main.xml +0 -12
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
- package/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
- 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 +0 -4
- package/android/app/src/main/res/values/strings.xml +0 -7
- package/android/app/src/main/res/values/styles.xml +0 -22
- package/android/app/src/main/res/xml/file_paths.xml +0 -5
- package/android/app/src/main/res/xml/network_security_config.xml +0 -8
- package/android/app/src/test/java/com/getcapacitor/myapp/ExampleUnitTest.java +0 -18
- package/android/build.gradle +0 -29
- package/android/capacitor.settings.gradle +0 -21
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -7
- package/android/gradle.properties +0 -22
- package/android/gradlew +0 -248
- package/android/gradlew.bat +0 -92
- package/android/settings.gradle +0 -5
- package/android/variables.gradle +0 -16
- package/bytechain.cn-colamd-1.5.1-beta.2.tgz +0 -0
- package/capacitor.config.js +0 -29
- package/capacitor.config.ts +0 -30
- package/demo.md +0 -193
- package/docs/academic-demo.md +0 -566
- package/docs/agent-diff-view.md +0 -48
- package/docs/demo.html +0 -748
- package/docs/demo.md +0 -546
- package/docs/demo.pdf +0 -0
- package/docs/theme-paradigm.md +0 -658
- package/electron-builder.yml +0 -64
- package/electron.vite.config.js +0 -31
- package/electron.vite.config.ts +0 -30
- package/ios/App/App/AppDelegate.swift +0 -49
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/AppIcon-512@2x.png +0 -0
- package/ios/App/App/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -14
- package/ios/App/App/Assets.xcassets/Contents.json +0 -6
- package/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json +0 -23
- 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 +0 -32
- package/ios/App/App/Base.lproj/Main.storyboard +0 -19
- package/ios/App/App/Info.plist +0 -49
- package/ios/App/App.xcodeproj/project.pbxproj +0 -408
- package/ios/App/App.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/App/Podfile +0 -28
- package/resources/entitlements.mac.plist +0 -12
- package/resources/icon.icns +0 -0
- package/resources/icon.png +0 -0
- package/resources/icon.svg +0 -23
- package/resources/templates/slides/icon.png +0 -0
- package/resources/templates/slides/slides-template.md +0 -74
- package/resources/templates/slides/template-forest-ink.html +0 -540
- package/resources/templates/slides/template.html +0 -535
- package/scripts/afterPack.js +0 -13
- package/scripts/generate-icons.js +0 -102
- package/src/main/index.ts +0 -905
- package/src/preload/index.d.ts +0 -51
- package/src/preload/index.js +0 -70
- package/src/preload/index.ts +0 -110
- package/src/renderer/capacitor-api.ts +0 -713
- package/src/renderer/editor/editor.ts +0 -287
- package/src/renderer/editor/html-view.ts +0 -15
- package/src/renderer/editor/plugins/index.ts +0 -68
- package/src/renderer/editor/plugins/math-plugin.ts +0 -297
- package/src/renderer/editor/plugins/mermaid-plugin-custom.css +0 -46
- package/src/renderer/editor/plugins/mermaid-plugin-dark.css +0 -428
- package/src/renderer/editor/plugins/mermaid-plugin-elegant.css +0 -443
- package/src/renderer/editor/plugins/mermaid-plugin-newsprint.css +0 -208
- package/src/renderer/editor/plugins/mermaid-plugin.css +0 -111
- package/src/renderer/editor/plugins/mermaid-plugin.ts +0 -670
- package/src/renderer/editor/plugins/themes/base/dark.css +0 -23
- package/src/renderer/editor/plugins/themes/base/elegant.css +0 -32
- package/src/renderer/editor/plugins/themes/base/light.css +0 -20
- package/src/renderer/editor/plugins/themes/base/newsprint.css +0 -27
- package/src/renderer/editor/plugins/themes/base.css +0 -509
- package/src/renderer/editor/plugins/themes/components/mermaid/academic.css +0 -43
- package/src/renderer/editor/plugins/themes/components/mermaid/dark.css +0 -20
- package/src/renderer/editor/plugins/themes/components/mermaid/elegant.css +0 -24
- package/src/renderer/editor/plugins/themes/components/mermaid/light.css +0 -21
- package/src/renderer/editor/plugins/themes/components/mermaid/newsprint.css +0 -26
- package/src/renderer/editor/plugins/themes/components/mermaid/variables.css +0 -592
- package/src/renderer/editor/plugins/themes/foundation.css +0 -143
- package/src/renderer/editor/plugins/themes/theme-manager.ts +0 -92
- package/src/renderer/env.d.ts +0 -10
- package/src/renderer/index.html +0 -76
- package/src/renderer/main.ts +0 -678
- package/src/renderer/mobile.css +0 -429
- package/tsconfig.json +0 -14
- package/tsconfig.main.json +0 -12
- package/tsconfig.main.tsbuildinfo +0 -1
- package/tsconfig.preload.json +0 -12
- package/tsconfig.preload.tsbuildinfo +0 -1
- package/tsconfig.renderer.json +0 -13
- package/tsconfig.renderer.tsbuildinfo +0 -1
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -110,6 +110,18 @@
|
|
|
110
110
|
font-size: 0.875em;
|
|
111
111
|
white-space: pre-wrap;
|
|
112
112
|
}
|
|
113
|
+
|
|
114
|
+
.mermaid-error-source {
|
|
115
|
+
background: var(--code-block-bg, #f6f8fa);
|
|
116
|
+
color: var(--code-block-text, var(--text-color, #24292f));
|
|
117
|
+
padding: 16px;
|
|
118
|
+
border-radius: 6px;
|
|
119
|
+
overflow-x: auto;
|
|
120
|
+
margin: 1em 0;
|
|
121
|
+
font-size: 0.875em;
|
|
122
|
+
line-height: 1.6;
|
|
123
|
+
border-left: 3px solid var(--border-color, #d0d7de);
|
|
124
|
+
}
|
|
113
125
|
body.theme-dark .mermaid-preview svg text {
|
|
114
126
|
fill: #e6edf3;
|
|
115
127
|
}
|
|
@@ -1796,7 +1808,7 @@ textarea.math-block-raw:focus {
|
|
|
1796
1808
|
background: var(--accent-soft, rgba(241, 117, 45, 0.12));
|
|
1797
1809
|
color: #F1752D;
|
|
1798
1810
|
}
|
|
1799
|
-
@media (max-width: 768px) {
|
|
1811
|
+
@media screen and (max-width: 768px) {
|
|
1800
1812
|
:root {
|
|
1801
1813
|
--mobile-header-height: 48px;
|
|
1802
1814
|
}
|
|
@@ -2164,7 +2176,7 @@ textarea.math-block-raw:focus {
|
|
|
2164
2176
|
.visible { display: block !important; }
|
|
2165
2177
|
}
|
|
2166
2178
|
|
|
2167
|
-
@media (min-width: 769px) {
|
|
2179
|
+
@media screen and (min-width: 769px) {
|
|
2168
2180
|
#menu-btn {
|
|
2169
2181
|
display: none;
|
|
2170
2182
|
}
|
|
@@ -2174,7 +2186,7 @@ textarea.math-block-raw:focus {
|
|
|
2174
2186
|
}
|
|
2175
2187
|
}
|
|
2176
2188
|
|
|
2177
|
-
@media (max-width: 480px) {
|
|
2189
|
+
@media screen and (max-width: 480px) {
|
|
2178
2190
|
.ProseMirror { font-size: 15px !important; }
|
|
2179
2191
|
.ProseMirror pre { font-size: 12px !important; padding: 10px !important; }
|
|
2180
2192
|
#editor { padding: 12px !important; }
|
|
@@ -2208,20 +2220,19 @@ textarea.math-block-raw:focus {
|
|
|
2208
2220
|
#editor {
|
|
2209
2221
|
position: static !important;
|
|
2210
2222
|
overflow: visible !important;
|
|
2211
|
-
padding: 0 !important;
|
|
2212
2223
|
}
|
|
2213
2224
|
|
|
2214
2225
|
.ProseMirror {
|
|
2215
2226
|
min-height: auto !important;
|
|
2216
|
-
font-size: 14px !important;
|
|
2217
2227
|
}
|
|
2218
2228
|
|
|
2219
2229
|
.mermaid-preview svg {
|
|
2220
2230
|
max-height: none !important;
|
|
2221
2231
|
}
|
|
2222
2232
|
|
|
2233
|
+
/* 默认的边界设定, 可以根据需要调整 */
|
|
2223
2234
|
@page {
|
|
2224
|
-
margin:
|
|
2235
|
+
margin: 10mm;
|
|
2225
2236
|
size: A4;
|
|
2226
2237
|
}
|
|
2227
2238
|
}
|
package/dist/renderer/assets/{infoDiagram-5YYISTIA-DL6XIxLz.js → infoDiagram-5YYISTIA-DjKa7Yv-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __name, l as log, I as selectSvgElement, e as configureSvgSize } from "./index-
|
|
1
|
+
import { _ as __name, l as log, I as selectSvgElement, e as configureSvgSize } from "./index-C63bU7CF.js";
|
|
2
2
|
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
3
3
|
import "./preload-helper-tXtZnHb0.js";
|
|
4
4
|
var parser = {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-C63bU7CF.js";
|
|
2
2
|
import "./preload-helper-tXtZnHb0.js";
|
|
3
3
|
var parser = (function() {
|
|
4
4
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -1,7 +1,7 @@
|
|
|
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-CzgfEH2z.js";
|
|
2
|
+
import { a as drawBackgroundRect, g as getNoteRect, h as drawText, d as drawRect } from "./chunk-ND2GUHAM-BUFT_yOe.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-C63bU7CF.js";
|
|
4
|
+
import { d as d3arc } from "./arc-CpIo2PoE.js";
|
|
5
5
|
import "./preload-helper-tXtZnHb0.js";
|
|
6
6
|
var parser = (function() {
|
|
7
7
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -1,5 +1,5 @@
|
|
|
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-C63bU7CF.js";
|
|
2
|
+
import { g as getIconStyles } from "./chunk-FMBD7UC4-CzgfEH2z.js";
|
|
3
3
|
import "./preload-helper-tXtZnHb0.js";
|
|
4
4
|
var parser = (function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -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--Vhl4p4D.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-C63bU7CF.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-C63bU7CF.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,6 @@
|
|
|
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-B2M27HQo.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-BrchfQL6.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-C63bU7CF.js";
|
|
4
4
|
import "./preload-helper-tXtZnHb0.js";
|
|
5
5
|
const byteToHex = [];
|
|
6
6
|
for (let i = 0; i < 256; ++i) {
|
package/dist/renderer/assets/{pieDiagram-4H26LBE5-BPZLqwG0.js → pieDiagram-4H26LBE5-CVcfLtky.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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-C63bU7CF.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BCc3Ev_H.js";
|
|
3
3
|
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
4
|
-
import { d as d3arc } from "./arc-
|
|
4
|
+
import { d as d3arc } from "./arc-CpIo2PoE.js";
|
|
5
5
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
6
6
|
import "./preload-helper-tXtZnHb0.js";
|
|
7
7
|
import "./init-ZxktEp_H.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
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-C63bU7CF.js";
|
|
2
|
+
import { l as linear } from "./linear-Cqh3vVIf.js";
|
|
3
3
|
import "./preload-helper-tXtZnHb0.js";
|
|
4
4
|
import "./init-ZxktEp_H.js";
|
|
5
5
|
import "./defaultLocale-B2RvLBDe.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-B2M27HQo.js";
|
|
2
|
+
import { s as setupViewPortForSVG } from "./chunk-2J33WTMH-BrchfQL6.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-C63bU7CF.js";
|
|
4
4
|
import "./preload-helper-tXtZnHb0.js";
|
|
5
5
|
var parser = (function() {
|
|
6
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
|
@@ -1,4 +1,4 @@
|
|
|
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-C63bU7CF.js";
|
|
2
2
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
3
3
|
import "./preload-helper-tXtZnHb0.js";
|
|
4
4
|
import "./init-ZxktEp_H.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-C63bU7CF.js";
|
|
2
|
+
import { a as drawBackgroundRect, b as getTextObj, g as getNoteRect, d as drawRect, e as drawEmbeddedImage, f as drawImage } from "./chunk-ND2GUHAM-BUFT_yOe.js";
|
|
3
|
+
import { I as ImperativeState } from "./chunk-QZHKN3VN-C-zV7oBi.js";
|
|
4
4
|
import "./preload-helper-tXtZnHb0.js";
|
|
5
5
|
var parser = (function() {
|
|
6
6
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
package/dist/renderer/assets/{stateDiagram-AJRCARHV-qyb8ETsa.js → stateDiagram-AJRCARHV-DgYKZzDq.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
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-BNb1lOQY.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-C63bU7CF.js";
|
|
3
|
+
import { G as Graph } from "./graph--Vhl4p4D.js";
|
|
4
|
+
import { l as layout } from "./layout-B3giiMoK.js";
|
|
5
|
+
import "./chunk-55IACEB6-B2M27HQo.js";
|
|
6
|
+
import "./chunk-2J33WTMH-BrchfQL6.js";
|
|
7
7
|
import "./preload-helper-tXtZnHb0.js";
|
|
8
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");
|
|
9
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");
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BNb1lOQY.js";
|
|
2
|
+
import { _ as __name } from "./index-C63bU7CF.js";
|
|
3
|
+
import "./chunk-55IACEB6-B2M27HQo.js";
|
|
4
|
+
import "./chunk-2J33WTMH-BrchfQL6.js";
|
|
5
5
|
import "./preload-helper-tXtZnHb0.js";
|
|
6
6
|
var diagram = {
|
|
7
7
|
parser: stateDiagram_default,
|
|
@@ -1,5 +1,5 @@
|
|
|
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-C63bU7CF.js";
|
|
2
|
+
import { d as d3arc } from "./arc-CpIo2PoE.js";
|
|
3
3
|
import "./preload-helper-tXtZnHb0.js";
|
|
4
4
|
var parser = (function() {
|
|
5
5
|
var o = /* @__PURE__ */ __name(function(k, v, o2, l) {
|
package/dist/renderer/assets/{vennDiagram-CIIHVFJN-BdaZlnH-.js → vennDiagram-CIIHVFJN-CNDBG6A2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
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-C63bU7CF.js";
|
|
2
2
|
import "./preload-helper-tXtZnHb0.js";
|
|
3
3
|
const transparentize = (color, amount) => {
|
|
4
4
|
return adjustChannel(color, "a", -amount);
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
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-C63bU7CF.js";
|
|
2
|
+
import { p as populateCommonDb } from "./chunk-4BX2VUAB-BCc3Ev_H.js";
|
|
3
3
|
import { p as parse } from "./wardley-L42UT6IY-b-_GPpqL.js";
|
|
4
4
|
import "./preload-helper-tXtZnHb0.js";
|
|
5
5
|
var toPercent = /* @__PURE__ */ __name((value, context) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, I as selectSvgElement, e as configureSvgSize, z as clear, D as getConfig, i as sanitizeText, F as cleanAndMerge, G as defaultConfig_default, K as getThemeVariables3, am as computeDimensionOfText, R as line } from "./index-
|
|
1
|
+
import { s as setAccDescription, g as getAccDescription, q as getDiagramTitle, p as setDiagramTitle, a as getAccTitle, b as setAccTitle, _ as __name, l as log, I as selectSvgElement, e as configureSvgSize, z as clear, D as getConfig, i as sanitizeText, F as cleanAndMerge, G as defaultConfig_default, K as getThemeVariables3, am as computeDimensionOfText, R as line } from "./index-C63bU7CF.js";
|
|
2
2
|
import { i as initRange } from "./init-ZxktEp_H.js";
|
|
3
3
|
import { o as ordinal } from "./ordinal-DSZU4PqD.js";
|
|
4
|
-
import { l as linear } from "./linear-
|
|
4
|
+
import { l as linear } from "./linear-Cqh3vVIf.js";
|
|
5
5
|
import "./preload-helper-tXtZnHb0.js";
|
|
6
6
|
import "./defaultLocale-B2RvLBDe.js";
|
|
7
7
|
function range(start, stop, step) {
|
package/dist/renderer/index.html
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
<style>
|
|
9
9
|
#menu-btn, #mobile-menu { display: none; }
|
|
10
10
|
</style>
|
|
11
|
-
<script type="module" crossorigin src="./assets/index-
|
|
11
|
+
<script type="module" crossorigin src="./assets/index-C63bU7CF.js"></script>
|
|
12
12
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-tXtZnHb0.js">
|
|
13
|
-
<link rel="stylesheet" crossorigin href="./assets/index-
|
|
13
|
+
<link rel="stylesheet" crossorigin href="./assets/index-D8nA981z.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="titlebar">
|
|
@@ -69,6 +69,10 @@
|
|
|
69
69
|
<button class="menu-item" data-action="about">About ColaMD</button>
|
|
70
70
|
<button class="menu-item" data-action="exit">Exit</button>
|
|
71
71
|
</div>
|
|
72
|
+
<div class="menu-section">
|
|
73
|
+
<div class="menu-section-title">Language</div>
|
|
74
|
+
<div id="menu-language-list"></div>
|
|
75
|
+
</div>
|
|
72
76
|
</div>
|
|
73
77
|
</div>
|
|
74
78
|
</nav>
|
package/package.json
CHANGED
|
@@ -1,19 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytechain.cn/colamd",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "The Agent Native Markdown Editor — Extended with Math & Mermaid Plugin System",
|
|
5
5
|
"main": "dist/main/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./renderer": {
|
|
8
|
+
"import": "./dist/lib/colamd-renderer.js",
|
|
9
|
+
"types": "./dist/lib/colamd-renderer.d.ts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"typesVersions": {
|
|
13
|
+
"*": {
|
|
14
|
+
"renderer": ["dist/lib/colamd-renderer.d.ts"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
6
17
|
"author": {
|
|
7
18
|
"name": "byteuser1977",
|
|
8
19
|
"email": "byteuser@qq.com"
|
|
9
20
|
},
|
|
10
21
|
"license": "MIT",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist/",
|
|
24
|
+
"themes/",
|
|
25
|
+
"README.md",
|
|
26
|
+
"README_CN.md",
|
|
27
|
+
"LICENSE",
|
|
28
|
+
"CHANGELOG.md"
|
|
29
|
+
],
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public",
|
|
32
|
+
"registry": "https://registry.npmjs.org/"
|
|
33
|
+
},
|
|
11
34
|
"homepage": "https://github.com/byteuser1977/ColaMD-extend",
|
|
12
35
|
"repository": {
|
|
13
36
|
"type": "git",
|
|
14
37
|
"url": "https://github.com/byteuser1977/ColaMD-extend.git"
|
|
15
38
|
},
|
|
16
39
|
"scripts": {
|
|
40
|
+
"build:lib": "vite build --config vite.config.lib.ts && tsc --project tsconfig.lib.json --emitDeclarationOnly",
|
|
17
41
|
"dev": "electron-vite dev",
|
|
18
42
|
"build": "electron-vite build",
|
|
19
43
|
"preview": "electron-vite preview",
|
package/themes/README.md
CHANGED
|
@@ -9,8 +9,25 @@ Download any `.css` file and place it in `~/.colamd/themes/`, or use **Theme > I
|
|
|
9
9
|
| [elegant.css](elegant.css) | Warm serif theme with terracotta accents and dark code blocks |
|
|
10
10
|
| [guizang.css](guizang.css) | 古雅沉稳的归藏风格,赭石强调色、松烟墨代码块、宣纸底色 |
|
|
11
11
|
| [forest-ink.css](forest-ink.css) | 森林墨主题,宣纸暖白底、松烟墨绿文字、森林绿强调色(灵感来自 wanhua-ppt Forest Ink 设计规范) |
|
|
12
|
-
| [academic-paper.css](academic-paper.css) | 📄
|
|
12
|
+
| [academic-paper.css](academic-paper.css) | 📄 **学术论文主题** — 符合 GB/T 7713 中文学术论文排版规范,黑体(SimHei)标题 + 宋体(SimSun)正文及首行缩进,三线表格式(顶线 + 表头底线 + 底线),10.5pt 字号,打印优化的 Mermaid 图表(直角容器、灰度配色),脚注与参考文献样式,Typora 兼容选择器。完整示例见 [`docs/academic-demo.md`](../docs/academic-demo.md) |
|
|
13
|
+
| [academic-paper-pt.css](academic-paper-pt.css) | 📄 **学术论文主题(PT 单位版)** — 与 academic-paper.css 相同的 GB/T 7713 规范设计,但使用 pt 单位以适配特定打印场景需求 |
|
|
13
14
|
| [pixso-design.css](pixso-design.css) | 🎨 Pixso 设计主题,现代设计系统风格 |
|
|
15
|
+
| [swiss-design.css](swiss-design.css) | 🇨🇭 **瑞士国际主义风格主题** — 纯黑白红三色体系,几何无衬线字体(Helvetica / Inter),网格化排版与充足留白,功能至上设计哲学,极简克制美学,完整的 Mermaid 图表集成(单色调 + 强调红) |
|
|
16
|
+
| [template.css](template.css) | 📝 **标准化模板** — 遵循 v3.0 主题开发范式的参考实现,包含完整的设计令牌、编辑器样式、代码块、引用块、表格、Mermaid 变量和打印样式,可作为创建自定义主题的起点 |
|
|
17
|
+
|
|
18
|
+
> ⚠️ **Theme Migration Notice**
|
|
19
|
+
>
|
|
20
|
+
> Starting from this version, **theme updates and maintenance have been migrated to the dedicated repository**:
|
|
21
|
+
>
|
|
22
|
+
> 🔗 **[https://github.com/byteuser1977/ColaMD-themes](https://github.com/byteuser1977/ColaMD-themes)**
|
|
23
|
+
>
|
|
24
|
+
> Future theme enhancements, bug fixes, and new theme submissions will be handled in the ColaMD-themes repository. This allows for:
|
|
25
|
+
> - Faster iteration and release cycles for theme-specific changes
|
|
26
|
+
> - Community contributions and theme submissions
|
|
27
|
+
> - Independent versioning from the core ColaMD application
|
|
28
|
+
> - Focused issue tracking for theme-related problems
|
|
29
|
+
>
|
|
30
|
+
> The themes included in this release will remain available for backward compatibility, but we recommend checking the dedicated repository for the latest versions and new themes.
|
|
14
31
|
|
|
15
32
|
## Creating Your Own Theme
|
|
16
33
|
|