@univerjs/engine-render 0.9.2 → 0.9.3-nightly.202507250819

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/lib/es/index.js CHANGED
@@ -34649,7 +34649,7 @@ class Vv {
34649
34649
  return new U(a.x + g, a.y + h);
34650
34650
  }
34651
34651
  }
34652
- const Kv = 60, zB = 60 * 60, Ue = 1e3, A6 = 16.67;
34652
+ const Kv = 60, zB = 3600, Ue = 1e3, A6 = 16.67;
34653
34653
  class Zv extends D2 {
34654
34654
  // private _frameCount: number = 0; // number of all frames in whole life time.
34655
34655
  /**
@@ -46730,7 +46730,7 @@ function __(r) {
46730
46730
  c.length * 2 + g.length * 2 + h.length * 2 + p.length * 2, !t) {
46731
46731
  var v = 16 + // Subtable header
46732
46732
  f.length * 4;
46733
- n.cmap12Offset = 12 + 2 * 2 + 4 + n.cmap4Length, n.fields = n.fields.concat([
46733
+ n.cmap12Offset = 20 + n.cmap4Length, n.fields = n.fields.concat([
46734
46734
  { name: "cmap12Format", type: "USHORT", value: 12 },
46735
46735
  { name: "cmap12Reserved", type: "USHORT", value: 0 },
46736
46736
  { name: "cmap12Length", type: "ULONG", value: v },
@@ -54494,14 +54494,7 @@ function Fx(r, t) {
54494
54494
  const Sx = (r, t, e) => {
54495
54495
  const a = r[t];
54496
54496
  return a ? typeof a == "function" ? a() : Promise.resolve(a) : new Promise((s, n) => {
54497
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
54498
- n.bind(
54499
- null,
54500
- new Error(
54501
- "Unknown variable dynamic import: " + t + (t.split("/").length !== e ? ". Note that variables only represent file names one level deep." : "")
54502
- )
54503
- )
54504
- );
54497
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== e ? ". Note that variables only represent file names one level deep." : ""))));
54505
54498
  });
54506
54499
  }, B4 = [
54507
54500
  "0004,004,001,003,005,0005,00005,000005,0002,002,0000005,0003,00003,00505,00034,0001,00055,00004,4,05,0055,04,42,03,02,2,404,3,044,01,0505,55,5,045,041,0033,000004,22,00504,5504,0042,1,21,41,402,405,4004,43,23,000054,303,3005,022,5004,000003,252,45,25,2004,000505,054,403,401,3002,0025,144,432,00054,34,12,234,0022,014,0304,012,143,503,0403,101,052,414,212,011,043,00002,0041,0024,05005,03003,00102,0404,04303,01004,0034,025,0044,00404,00025,0103,042,0205,412,104,54,344,433,5005,253,055,0402,3004,0043,204,505,454,0000004,00303,04004,552,201,4005,0255,52,444,14,44,02004,033,05004,00045,00013,0021,0405,00044,0054,50055,000303,00001,304,0204,11,301,232,122,00305,504,000043,0104,00052,000045,50004,0023,00033,00032,00202,5003,202,0401,0000505,214,102,032,000161,004101,00501,00301,0036,0052,00023,006101,006,00401,000521,0014,0063,00012,000501,000006,000604,000601,005001,005005,0010305,00006,003012,003005,0003011,0061,013,000021,000022,000105,00211,00062,00051,000112,006013,000011,0200306,1021,0050001,003003,2102,305,000015,01030005,000035,001011,00021,16330001,0234,030006,5020001,000001,00016,0031,021,21431,002305,0350014,0000012,000063,00101,106,105,00435,00063,0300061,00041,100306,003602,023,0503,0010011,10003,1005,30011,00031,0001001,0000061,0030003,30305,001201,0301,5000101,500101,00015,000401,000065,000016,0000402,0500002,000205,030201,500301,00014,5001,000002,00030011,01034,0300006,030213,00400304,050001,05003,000311,0634,00061,0006,00000604,00050013,00213,0030001,100003,000033,30002,00003632,0003004,050003,0000021,006303,0000006,00005005,30451,03001,00231,00056,00011,6,001001,00500001,03005,503005,0000010001,1002,003001,001065,300001,32011,32,0000003,0213001,0500053,021005,10001,0000011,0001041,0020016,100032,50011,0606,5002,3001,03002,0015001,0102,00003001,000000033,0000001,300101,300015,0101003,00000101,0100501,0101,0010033,00000362,000014,0005001,031",
@@ -58899,20 +58892,17 @@ class RC extends Me {
58899
58892
  const { vertexAngle: h, centerAngle: p } = n != null ? n : {}, f = 90;
58900
58893
  if (h === f && p === f && !Ce(l))
58901
58894
  e.save(), e.translate(i.x + o.x, i.y + o.y), e.rotate(Math.PI / 2), e.translate(-u / 2, (c + g) / 2 - g), e.fillText(l, 0, 0), e.restore();
58902
- else {
58903
- const z = "☑";
58904
- if ((l === "☐" || l === z) && a.glyphType === J1.LIST) {
58905
- const j = Math.ceil(((y = (v = a.ts) == null ? void 0 : v.fs) != null ? y : 12) * 1.2);
58906
- e.save();
58907
- const w = a.bBox.aba - a.bBox.abd, x = s.y, C = x - w, S = s.x, F = C + (x - C - j) / 2, T = S, R = 1;
58908
- e.translate(T - R / 2, F - R / 2), m6.drawWith(e, {
58909
- width: j,
58910
- height: j,
58911
- checked: l === z
58912
- }), e.restore();
58913
- } else
58914
- e.fillText(l, s.x, s.y);
58915
- }
58895
+ else if ((l === "☐" || l === "☑") && a.glyphType === J1.LIST) {
58896
+ const j = Math.ceil(((y = (v = a.ts) == null ? void 0 : v.fs) != null ? y : 12) * 1.2);
58897
+ e.save();
58898
+ const w = a.bBox.aba - a.bBox.abd, x = s.y, C = x - w, S = s.x, F = C + (x - C - j) / 2, T = S, R = 1;
58899
+ e.translate(T - R / 2, F - R / 2), m6.drawWith(e, {
58900
+ width: j,
58901
+ height: j,
58902
+ checked: l === "☑"
58903
+ }), e.restore();
58904
+ } else
58905
+ e.fillText(l, s.x, s.y);
58916
58906
  }
58917
58907
  clearCache() {
58918
58908
  this._preFontColor = "";
package/lib/index.js CHANGED
@@ -34649,7 +34649,7 @@ class Vv {
34649
34649
  return new U(a.x + g, a.y + h);
34650
34650
  }
34651
34651
  }
34652
- const Kv = 60, zB = 60 * 60, Ue = 1e3, A6 = 16.67;
34652
+ const Kv = 60, zB = 3600, Ue = 1e3, A6 = 16.67;
34653
34653
  class Zv extends D2 {
34654
34654
  // private _frameCount: number = 0; // number of all frames in whole life time.
34655
34655
  /**
@@ -46730,7 +46730,7 @@ function __(r) {
46730
46730
  c.length * 2 + g.length * 2 + h.length * 2 + p.length * 2, !t) {
46731
46731
  var v = 16 + // Subtable header
46732
46732
  f.length * 4;
46733
- n.cmap12Offset = 12 + 2 * 2 + 4 + n.cmap4Length, n.fields = n.fields.concat([
46733
+ n.cmap12Offset = 20 + n.cmap4Length, n.fields = n.fields.concat([
46734
46734
  { name: "cmap12Format", type: "USHORT", value: 12 },
46735
46735
  { name: "cmap12Reserved", type: "USHORT", value: 0 },
46736
46736
  { name: "cmap12Length", type: "ULONG", value: v },
@@ -54494,14 +54494,7 @@ function Fx(r, t) {
54494
54494
  const Sx = (r, t, e) => {
54495
54495
  const a = r[t];
54496
54496
  return a ? typeof a == "function" ? a() : Promise.resolve(a) : new Promise((s, n) => {
54497
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
54498
- n.bind(
54499
- null,
54500
- new Error(
54501
- "Unknown variable dynamic import: " + t + (t.split("/").length !== e ? ". Note that variables only represent file names one level deep." : "")
54502
- )
54503
- )
54504
- );
54497
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(n.bind(null, new Error("Unknown variable dynamic import: " + t + (t.split("/").length !== e ? ". Note that variables only represent file names one level deep." : ""))));
54505
54498
  });
54506
54499
  }, B4 = [
54507
54500
  "0004,004,001,003,005,0005,00005,000005,0002,002,0000005,0003,00003,00505,00034,0001,00055,00004,4,05,0055,04,42,03,02,2,404,3,044,01,0505,55,5,045,041,0033,000004,22,00504,5504,0042,1,21,41,402,405,4004,43,23,000054,303,3005,022,5004,000003,252,45,25,2004,000505,054,403,401,3002,0025,144,432,00054,34,12,234,0022,014,0304,012,143,503,0403,101,052,414,212,011,043,00002,0041,0024,05005,03003,00102,0404,04303,01004,0034,025,0044,00404,00025,0103,042,0205,412,104,54,344,433,5005,253,055,0402,3004,0043,204,505,454,0000004,00303,04004,552,201,4005,0255,52,444,14,44,02004,033,05004,00045,00013,0021,0405,00044,0054,50055,000303,00001,304,0204,11,301,232,122,00305,504,000043,0104,00052,000045,50004,0023,00033,00032,00202,5003,202,0401,0000505,214,102,032,000161,004101,00501,00301,0036,0052,00023,006101,006,00401,000521,0014,0063,00012,000501,000006,000604,000601,005001,005005,0010305,00006,003012,003005,0003011,0061,013,000021,000022,000105,00211,00062,00051,000112,006013,000011,0200306,1021,0050001,003003,2102,305,000015,01030005,000035,001011,00021,16330001,0234,030006,5020001,000001,00016,0031,021,21431,002305,0350014,0000012,000063,00101,106,105,00435,00063,0300061,00041,100306,003602,023,0503,0010011,10003,1005,30011,00031,0001001,0000061,0030003,30305,001201,0301,5000101,500101,00015,000401,000065,000016,0000402,0500002,000205,030201,500301,00014,5001,000002,00030011,01034,0300006,030213,00400304,050001,05003,000311,0634,00061,0006,00000604,00050013,00213,0030001,100003,000033,30002,00003632,0003004,050003,0000021,006303,0000006,00005005,30451,03001,00231,00056,00011,6,001001,00500001,03005,503005,0000010001,1002,003001,001065,300001,32011,32,0000003,0213001,0500053,021005,10001,0000011,0001041,0020016,100032,50011,0606,5002,3001,03002,0015001,0102,00003001,000000033,0000001,300101,300015,0101003,00000101,0100501,0101,0010033,00000362,000014,0005001,031",
@@ -58899,20 +58892,17 @@ class RC extends Me {
58899
58892
  const { vertexAngle: h, centerAngle: p } = n != null ? n : {}, f = 90;
58900
58893
  if (h === f && p === f && !Ce(l))
58901
58894
  e.save(), e.translate(i.x + o.x, i.y + o.y), e.rotate(Math.PI / 2), e.translate(-u / 2, (c + g) / 2 - g), e.fillText(l, 0, 0), e.restore();
58902
- else {
58903
- const z = "☑";
58904
- if ((l === "☐" || l === z) && a.glyphType === J1.LIST) {
58905
- const j = Math.ceil(((y = (v = a.ts) == null ? void 0 : v.fs) != null ? y : 12) * 1.2);
58906
- e.save();
58907
- const w = a.bBox.aba - a.bBox.abd, x = s.y, C = x - w, S = s.x, F = C + (x - C - j) / 2, T = S, R = 1;
58908
- e.translate(T - R / 2, F - R / 2), m6.drawWith(e, {
58909
- width: j,
58910
- height: j,
58911
- checked: l === z
58912
- }), e.restore();
58913
- } else
58914
- e.fillText(l, s.x, s.y);
58915
- }
58895
+ else if ((l === "☐" || l === "☑") && a.glyphType === J1.LIST) {
58896
+ const j = Math.ceil(((y = (v = a.ts) == null ? void 0 : v.fs) != null ? y : 12) * 1.2);
58897
+ e.save();
58898
+ const w = a.bBox.aba - a.bBox.abd, x = s.y, C = x - w, S = s.x, F = C + (x - C - j) / 2, T = S, R = 1;
58899
+ e.translate(T - R / 2, F - R / 2), m6.drawWith(e, {
58900
+ width: j,
58901
+ height: j,
58902
+ checked: l === "☑"
58903
+ }), e.restore();
58904
+ } else
58905
+ e.fillText(l, s.x, s.y);
58916
58906
  }
58917
58907
  clearCache() {
58918
58908
  this._preFontColor = "";