@formulaxjs/kity-runtime 0.2.0 → 0.4.0
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 -42
- package/dist/{chunk-EKIJQ64F.js → chunk-LIDQRZXL.js} +87 -20
- package/dist/chunk-LIDQRZXL.js.map +1 -0
- package/dist/index.cjs +467 -153
- package/dist/index.cjs.map +1 -1
- package/dist/index.global.js +463 -153
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +192 -96
- package/dist/index.js.map +1 -1
- package/dist/{install-ARHGHFNJ.js → install-WDCVVIMM.js} +6 -16
- package/dist/install-WDCVVIMM.js.map +1 -0
- package/dist/{start-GQH6XUBI.js → start-H6H24L6P.js} +123 -17
- package/dist/start-H6H24L6P.js.map +1 -0
- package/package.json +1 -1
- package/public/assets/styles/ui.css +58 -26
- package/dist/chunk-EKIJQ64F.js.map +0 -1
- package/dist/install-ARHGHFNJ.js.map +0 -1
- package/dist/start-GQH6XUBI.js.map +0 -1
|
@@ -813,14 +813,11 @@ var FontInstallerModule = class {
|
|
|
813
813
|
count += 1;
|
|
814
814
|
fontInfo.meta.src = resolveFontSource(this.fonts, this.resource, fontInfo.meta.src);
|
|
815
815
|
this.createFontStyle(fontInfo);
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
complete(this.doc, callback);
|
|
822
|
-
}
|
|
823
|
-
});
|
|
816
|
+
applyFonts(this.doc, fontInfo);
|
|
817
|
+
count -= 1;
|
|
818
|
+
if (count === 0) {
|
|
819
|
+
complete(this.doc, callback);
|
|
820
|
+
}
|
|
824
821
|
});
|
|
825
822
|
},
|
|
826
823
|
createFontStyle: function(fontInfo) {
|
|
@@ -831,13 +828,6 @@ var FontInstallerModule = class {
|
|
|
831
828
|
this.doc.head.appendChild(stylesheet);
|
|
832
829
|
}
|
|
833
830
|
});
|
|
834
|
-
function preloadFont(doc, fontInfo) {
|
|
835
|
-
const view = doc.defaultView ?? window;
|
|
836
|
-
if (view.fetch) {
|
|
837
|
-
return view.fetch(fontInfo.meta.src, { method: "GET" }).then(() => void 0);
|
|
838
|
-
}
|
|
839
|
-
return Promise.resolve();
|
|
840
|
-
}
|
|
841
831
|
function resolveFontSource(fonts, resourceBase, originalSrc) {
|
|
842
832
|
const directMatch = fonts[originalSrc];
|
|
843
833
|
if (directMatch) {
|
|
@@ -5471,4 +5461,4 @@ export {
|
|
|
5471
5461
|
install_default as default,
|
|
5472
5462
|
installLegacyKityFormulaRuntime
|
|
5473
5463
|
};
|
|
5474
|
-
//# sourceMappingURL=install-
|
|
5464
|
+
//# sourceMappingURL=install-WDCVVIMM.js.map
|