@univerjs/engine-render 0.5.0-nightly.202411261607 → 0.5.0-nightly.202411271606
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
|
@@ -7453,15 +7453,18 @@ function rt(r, t, e) {
|
|
|
7453
7453
|
}
|
|
7454
7454
|
function Yv(r) {
|
|
7455
7455
|
switch (r) {
|
|
7456
|
+
// Dashes.
|
|
7456
7457
|
case "–":
|
|
7457
7458
|
case "—":
|
|
7458
7459
|
return 0.2;
|
|
7460
|
+
// Punctuation.
|
|
7459
7461
|
case ".":
|
|
7460
7462
|
case ",":
|
|
7461
7463
|
return 0.8;
|
|
7462
7464
|
case ":":
|
|
7463
7465
|
case ";":
|
|
7464
7466
|
return 0.3;
|
|
7467
|
+
// Arabic
|
|
7465
7468
|
case "،":
|
|
7466
7469
|
case "۔":
|
|
7467
7470
|
return 0.4;
|
|
@@ -16625,6 +16628,7 @@ function d5(r, t, e) {
|
|
|
16625
16628
|
_();
|
|
16626
16629
|
break;
|
|
16627
16630
|
case 19:
|
|
16631
|
+
// hintmask
|
|
16628
16632
|
case 20:
|
|
16629
16633
|
_(), H += u + 7 >> 3;
|
|
16630
16634
|
break;
|
|
@@ -18871,6 +18875,7 @@ be.prototype.getKerningValue = function(r, t, e) {
|
|
|
18871
18875
|
return d.value1 && d.value1.xAdvance || 0;
|
|
18872
18876
|
}
|
|
18873
18877
|
break;
|
|
18878
|
+
// left glyph found, not right glyph - try next subtable
|
|
18874
18879
|
case 2:
|
|
18875
18880
|
var c = this.getGlyphClass(i.classDef1, t), g = this.getGlyphClass(i.classDef2, e), k = i.classRecords[c][g];
|
|
18876
18881
|
return k.value1 && k.value1.xAdvance || 0;
|
|
@@ -19421,6 +19426,7 @@ function X2(r, t) {
|
|
|
19421
19426
|
switch (this.env = r, this.stack = [], this.prog = t, r) {
|
|
19422
19427
|
case "glyf":
|
|
19423
19428
|
this.zp0 = this.zp1 = this.zp2 = 1, this.rp0 = this.rp1 = this.rp2 = 0;
|
|
19429
|
+
/* fall through */
|
|
19424
19430
|
case "prep":
|
|
19425
19431
|
this.fv = this.pv = this.dpv = x2, this.round = t8;
|
|
19426
19432
|
}
|
|
@@ -26383,12 +26389,14 @@ class G1 extends U3 {
|
|
|
26383
26389
|
const z = l, D = u;
|
|
26384
26390
|
let w, _, x, C, S, E, T, I, A, O;
|
|
26385
26391
|
switch (v) {
|
|
26392
|
+
// Note: Keep the lineTo's above the moveTo's in this switch
|
|
26386
26393
|
case "l":
|
|
26387
26394
|
l += p.shift() || 0, u += p.shift() || 0, f = "L", y.push(l, u);
|
|
26388
26395
|
break;
|
|
26389
26396
|
case "L":
|
|
26390
26397
|
l = p.shift() || 0, u = p.shift() || 0, y.push(l, u);
|
|
26391
26398
|
break;
|
|
26399
|
+
// Note: lineTo handlers need to be above this point
|
|
26392
26400
|
case "m": {
|
|
26393
26401
|
const L = p.shift() || 0, R = p.shift() || 0;
|
|
26394
26402
|
if (l += L, u += R, f = "M", i.length > 2 && i[i.length - 1].command === "z") {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
export declare class Tree {
|
|
17
|
-
table: Uint16Array
|
|
18
|
-
trans: Uint16Array
|
|
17
|
+
table: Uint16Array<ArrayBuffer>;
|
|
18
|
+
trans: Uint16Array<ArrayBuffer>;
|
|
19
19
|
}
|
|
20
20
|
export declare class Data {
|
|
21
21
|
source: Uint8Array;
|
|
@@ -28,4 +28,4 @@ export declare class Data {
|
|
|
28
28
|
dtree: Tree;
|
|
29
29
|
constructor(source: Uint8Array, dest: Uint8Array);
|
|
30
30
|
}
|
|
31
|
-
export default function tinf_uncompress(source: Uint8Array, dest: Uint8Array): Uint8Array
|
|
31
|
+
export default function tinf_uncompress(source: Uint8Array, dest: Uint8Array): Uint8Array<ArrayBufferLike>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/engine-render",
|
|
3
|
-
"version": "0.5.0-nightly.
|
|
3
|
+
"version": "0.5.0-nightly.202411271606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal base-render",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -53,14 +53,14 @@
|
|
|
53
53
|
"cjk-regex": "^3.1.0",
|
|
54
54
|
"franc-min": "^6.2.0",
|
|
55
55
|
"opentype.js": "^1.3.4",
|
|
56
|
-
"@univerjs/core": "0.5.0-nightly.
|
|
56
|
+
"@univerjs/core": "0.5.0-nightly.202411271606"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/opentype.js": "^1.3.8",
|
|
60
60
|
"rxjs": "^7.8.1",
|
|
61
|
-
"typescript": "^5.
|
|
62
|
-
"vite": "^
|
|
63
|
-
"vitest": "^2.1.
|
|
61
|
+
"typescript": "^5.7.2",
|
|
62
|
+
"vite": "^6.0.0",
|
|
63
|
+
"vitest": "^2.1.6",
|
|
64
64
|
"@univerjs-infra/shared": "0.5.0"
|
|
65
65
|
},
|
|
66
66
|
"browser": {
|