@formulaxjs/kity-runtime 0.4.0 → 0.5.1
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/README.md +41 -30
- package/README.zh-CN.md +52 -0
- package/dist/base.css +47 -0
- package/dist/{chunk-LIDQRZXL.js → chunk-EQCAHDH7.js} +85 -34
- package/dist/chunk-EQCAHDH7.js.map +1 -0
- package/dist/images/scrollbar/custom/bar-bg.png +0 -0
- package/dist/images/scrollbar/custom/bar.png +0 -0
- package/dist/images/scrollbar/custom/bg.png +0 -0
- package/dist/images/scrollbar/custom/bottom.png +0 -0
- package/dist/images/scrollbar/custom/btn.png +0 -0
- package/dist/images/scrollbar/custom/down.png +0 -0
- package/dist/images/scrollbar/custom/top.png +0 -0
- package/dist/images/scrollbar/custom/up.png +0 -0
- package/dist/images/scrollbar/edit/bar-bg.png +0 -0
- package/dist/images/scrollbar/edit/bar-left.png +0 -0
- package/dist/images/scrollbar/edit/bar-right.png +0 -0
- package/dist/images/scrollbar/edit/thumb-bg.png +0 -0
- package/dist/images/scrollbar/edit/thumb-left.png +0 -0
- package/dist/images/scrollbar/edit/thumb-right.png +0 -0
- package/dist/images/toolbar/btn.png +0 -0
- package/dist/index.cjs +124 -148
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2118 -0
- package/dist/index.d.ts +2118 -0
- package/dist/index.global.js +127 -147
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/dist/other.png +0 -0
- package/dist/scrollbar.css +78 -0
- package/dist/{start-H6H24L6P.js → start-N66J24A5.js} +11 -50
- package/dist/start-N66J24A5.js.map +1 -0
- package/dist/ui.css +625 -0
- package/package.json +7 -2
- package/dist/chunk-LIDQRZXL.js.map +0 -1
- package/dist/start-H6H24L6P.js.map +0 -1
- /package/dist/{KF_AMS_BB-5QF7FUSO.woff → KF_AMS_BB.woff} +0 -0
- /package/dist/{KF_AMS_CAL-NXRNLAZN.woff → KF_AMS_CAL.woff} +0 -0
- /package/dist/{KF_AMS_FRAK-CO33WWN4.woff → KF_AMS_FRAK.woff} +0 -0
- /package/dist/{KF_AMS_MAIN-25QJVAWY.woff → KF_AMS_MAIN.woff} +0 -0
- /package/dist/{KF_AMS_ROMAN-243BR7HH.woff → KF_AMS_ROMAN.woff} +0 -0
- /package/dist/{btn-5DANP6JY.png → btn.png} +0 -0
- /package/dist/{editor-JT5KLVXX.css → editor.css} +0 -0
- /package/dist/{other-OMWJFGL5.png → images/toolbar/other.png} +0 -0
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
createLegacyUiUtils,
|
|
8
8
|
delegateEvent,
|
|
9
9
|
getClassList,
|
|
10
|
+
getFormulaXRuntimeMessage,
|
|
10
11
|
getRectBox,
|
|
11
12
|
kityAssetManifest,
|
|
12
13
|
kityFontAssets,
|
|
@@ -30,8 +31,9 @@ import {
|
|
|
30
31
|
publish,
|
|
31
32
|
setToolbarAssetUrls,
|
|
32
33
|
subscribe,
|
|
34
|
+
translateFormulaXText,
|
|
33
35
|
utils_default
|
|
34
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-EQCAHDH7.js";
|
|
35
37
|
|
|
36
38
|
// src/vendor/char-position.ts
|
|
37
39
|
var legacyCharPosition = {
|
|
@@ -3614,7 +3616,7 @@ async function ensureKityRuntime() {
|
|
|
3614
3616
|
clearFormulaXPerfMarks(parserInstallStart, parserInstallEnd);
|
|
3615
3617
|
installLegacyRuntime(runtimeWindow);
|
|
3616
3618
|
const bootImportStart = markFormulaXPerf("fx:kity-runtime:boot-import");
|
|
3617
|
-
const { installKityEditorStart } = await import("./start-
|
|
3619
|
+
const { installKityEditorStart } = await import("./start-N66J24A5.js");
|
|
3618
3620
|
const bootImportEnd = markFormulaXPerf("fx:kity-runtime:boot-import:end");
|
|
3619
3621
|
measureFormulaXPerf("fx:kity-runtime:boot-import", bootImportStart, bootImportEnd);
|
|
3620
3622
|
clearFormulaXPerfMarks(bootImportStart, bootImportEnd);
|
|
@@ -3638,6 +3640,7 @@ async function createKityEditor(container, options = {}) {
|
|
|
3638
3640
|
const locale = normalizeFormulaXLocale(options.locale ?? DEFAULT_FORMULAX_LOCALE);
|
|
3639
3641
|
const assets = resolveEditorAssets(options.assets);
|
|
3640
3642
|
try {
|
|
3643
|
+
legacySysconf.rootPlaceholder.content = getFormulaXRuntimeMessage("editor.placeholder.root", locale);
|
|
3641
3644
|
const stylesheetInserted = ensureKityStylesheet(document, assets.styles.editor);
|
|
3642
3645
|
if (stylesheetInserted) {
|
|
3643
3646
|
const stylesheetInsertedMark = markFormulaXPerf("fx:kity-css:link-inserted");
|
|
@@ -3766,6 +3769,7 @@ export {
|
|
|
3766
3769
|
delegateEvent,
|
|
3767
3770
|
ensureKityRuntime,
|
|
3768
3771
|
getClassList,
|
|
3772
|
+
getFormulaXRuntimeMessage,
|
|
3769
3773
|
getRectBox,
|
|
3770
3774
|
installLegacyKityData,
|
|
3771
3775
|
kityAssetManifest,
|
|
@@ -3789,6 +3793,7 @@ export {
|
|
|
3789
3793
|
normalizeFormulaXLocale,
|
|
3790
3794
|
normalizeMouseEvent,
|
|
3791
3795
|
publish,
|
|
3792
|
-
subscribe
|
|
3796
|
+
subscribe,
|
|
3797
|
+
translateFormulaXText
|
|
3793
3798
|
};
|
|
3794
3799
|
//# sourceMappingURL=index.js.map
|