template-designer 0.10.8 → 0.11.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/dist/{index-10abd1e6.mjs → index-639f3d1c.mjs} +7 -4
- package/dist/{index.es-2ff99c2c.mjs → index.es-5d346f08.mjs} +1 -1
- package/dist/{lodop-ff40cbf8.mjs → lodop-70ab3f37.mjs} +2 -2
- package/dist/{rfid-01e0a6cc.mjs → rfid-e547fd7b.mjs} +2 -2
- package/dist/template-designer.es.js +1 -1
- package/dist/template-designer.umd.js +3 -3
- package/package.json +1 -1
|
@@ -4997,7 +4997,10 @@ function ZE(e, A) {
|
|
|
4997
4997
|
}
|
|
4998
4998
|
const PE = /* @__PURE__ */ Mt(DE, [["render", ZE]]), wi = (e) => e * 3.7795275591, Oi = (e) => e / 3.7795275591;
|
|
4999
4999
|
function Q0(e) {
|
|
5000
|
-
|
|
5000
|
+
if (!e || e <= 0)
|
|
5001
|
+
return 1;
|
|
5002
|
+
const A = Oi(e);
|
|
5003
|
+
return (window.$templateType || "lodop") === "rfid" ? A * 1.5 : A;
|
|
5001
5004
|
}
|
|
5002
5005
|
var vi = {}, JE = function() {
|
|
5003
5006
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
@@ -7362,9 +7365,9 @@ const BQ = /* @__PURE__ */ Mt(dQ, [["render", gQ]]), qg = [
|
|
|
7362
7365
|
], $g = qg.flatMap((e) => e.components);
|
|
7363
7366
|
async function mQ(e) {
|
|
7364
7367
|
try {
|
|
7365
|
-
return (await Fm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-
|
|
7368
|
+
return window.$templateType = e, (await Fm(/* @__PURE__ */ Object.assign({ "./props/lodop.js": () => import("./lodop-70ab3f37.mjs"), "./props/rfid.js": () => import("./rfid-e547fd7b.mjs") }), `./props/${e}.js`)).default;
|
|
7366
7369
|
} catch {
|
|
7367
|
-
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-
|
|
7370
|
+
return console.warn(`配置文件 ./props/${e}.js 不存在,使用默认配置`), (await import("./lodop-70ab3f37.mjs")).default;
|
|
7368
7371
|
}
|
|
7369
7372
|
}
|
|
7370
7373
|
function wQ(e = {}, A = {}) {
|
|
@@ -23185,7 +23188,7 @@ function(e) {
|
|
|
23185
23188
|
*/
|
|
23186
23189
|
function(e) {
|
|
23187
23190
|
function A() {
|
|
23188
|
-
return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-
|
|
23191
|
+
return (de.canvg ? Promise.resolve(de.canvg) : import("./index.es-5d346f08.mjs")).catch(function(t) {
|
|
23189
23192
|
return Promise.reject(new Error("Could not load canvg: " + t));
|
|
23190
23193
|
}).then(function(t) {
|
|
23191
23194
|
return t.default ? t.default : t;
|