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.
@@ -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
- return !e || e <= 0 ? 1 : Oi(e) * 1.5;
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-ff40cbf8.mjs"), "./props/rfid.js": () => import("./rfid-01e0a6cc.mjs") }), `./props/${e}.js`)).default;
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-ff40cbf8.mjs")).default;
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-2ff99c2c.mjs")).catch(function(t) {
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;
@@ -1,4 +1,4 @@
1
- import { c as Qe, _ as Ha, g as Lo } from "./index-10abd1e6.mjs";
1
+ import { c as Qe, _ as Ha, g as Lo } from "./index-639f3d1c.mjs";
2
2
  import "vue";
3
3
  var ht = function(a) {
4
4
  return a && a.Math === Math && a;
@@ -1,11 +1,11 @@
1
- import { R as e } from "./index-10abd1e6.mjs";
1
+ import { R as e } from "./index-639f3d1c.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
5
5
  // 组件默认宽度 单位mm
6
6
  width: 20,
7
7
  // 组件默认高度 单位mm
8
- height: 4.1,
8
+ height: 2.2,
9
9
  // 旋转角度
10
10
  rotation: 0,
11
11
  // 锁定宽高比
@@ -1,11 +1,11 @@
1
- import { R as e } from "./index-10abd1e6.mjs";
1
+ import { R as e } from "./index-639f3d1c.mjs";
2
2
  import "vue";
3
3
  const t = {
4
4
  text: {
5
5
  x: 0,
6
6
  y: 0,
7
7
  width: 20,
8
- height: 4.1,
8
+ height: 3.2,
9
9
  rotation: 0,
10
10
  // 是否允许旋转
11
11
  allowRotation: !1,
@@ -1,4 +1,4 @@
1
- import { T as t, f as s, i as d, h as o, d as n, b as l, e as g, a as p, r as m } from "./index-10abd1e6.mjs";
1
+ import { T as t, f as s, i as d, h as o, d as n, b as l, e as g, a as p, r as m } from "./index-639f3d1c.mjs";
2
2
  import "vue";
3
3
  export {
4
4
  t as default,