@univerjs/engine-render 0.9.4 → 0.10.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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +13 -16
- package/lib/index.js +13 -16
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
package/lib/es/index.js
CHANGED
|
@@ -34649,7 +34649,7 @@ class Kv {
|
|
|
34649
34649
|
return new U(a.x + g, a.y + h);
|
|
34650
34650
|
}
|
|
34651
34651
|
}
|
|
34652
|
-
const Zv = 60, zB =
|
|
34652
|
+
const Zv = 60, zB = 3600, Ue = 1e3, A6 = 16.67;
|
|
34653
34653
|
class Jv extends D2 {
|
|
34654
34654
|
// private _frameCount: number = 0; // number of all frames in whole life time.
|
|
34655
34655
|
/**
|
|
@@ -46730,7 +46730,7 @@ function D_(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 =
|
|
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 },
|
|
@@ -58892,20 +58892,17 @@ class OC extends Me {
|
|
|
58892
58892
|
const { vertexAngle: h, centerAngle: p } = n != null ? n : {}, f = 90;
|
|
58893
58893
|
if (h === f && p === f && !Ce(l))
|
|
58894
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();
|
|
58895
|
-
else {
|
|
58896
|
-
const
|
|
58897
|
-
|
|
58898
|
-
|
|
58899
|
-
|
|
58900
|
-
|
|
58901
|
-
|
|
58902
|
-
|
|
58903
|
-
|
|
58904
|
-
|
|
58905
|
-
|
|
58906
|
-
} else
|
|
58907
|
-
e.fillText(l, s.x, s.y);
|
|
58908
|
-
}
|
|
58895
|
+
else if ((l === "☐" || l === "☑") && a.glyphType === Q1.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);
|
|
58909
58906
|
}
|
|
58910
58907
|
clearCache() {
|
|
58911
58908
|
this._preFontColor = "";
|
package/lib/index.js
CHANGED
|
@@ -34649,7 +34649,7 @@ class Kv {
|
|
|
34649
34649
|
return new U(a.x + g, a.y + h);
|
|
34650
34650
|
}
|
|
34651
34651
|
}
|
|
34652
|
-
const Zv = 60, zB =
|
|
34652
|
+
const Zv = 60, zB = 3600, Ue = 1e3, A6 = 16.67;
|
|
34653
34653
|
class Jv extends D2 {
|
|
34654
34654
|
// private _frameCount: number = 0; // number of all frames in whole life time.
|
|
34655
34655
|
/**
|
|
@@ -46730,7 +46730,7 @@ function D_(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 =
|
|
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 },
|
|
@@ -58892,20 +58892,17 @@ class OC extends Me {
|
|
|
58892
58892
|
const { vertexAngle: h, centerAngle: p } = n != null ? n : {}, f = 90;
|
|
58893
58893
|
if (h === f && p === f && !Ce(l))
|
|
58894
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();
|
|
58895
|
-
else {
|
|
58896
|
-
const
|
|
58897
|
-
|
|
58898
|
-
|
|
58899
|
-
|
|
58900
|
-
|
|
58901
|
-
|
|
58902
|
-
|
|
58903
|
-
|
|
58904
|
-
|
|
58905
|
-
|
|
58906
|
-
} else
|
|
58907
|
-
e.fillText(l, s.x, s.y);
|
|
58908
|
-
}
|
|
58895
|
+
else if ((l === "☐" || l === "☑") && a.glyphType === Q1.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);
|
|
58909
58906
|
}
|
|
58910
58907
|
clearCache() {
|
|
58911
58908
|
this._preFontColor = "";
|