@mlightcad/mtext-renderer 0.8.0 → 0.8.1
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.js +12 -6
- package/dist/index.umd.cjs +3 -3
- package/dist/mtext-renderer-worker.js +345 -339
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -9896,7 +9896,7 @@ class Mh extends Ma {
|
|
|
9896
9896
|
return new fa("?", e, this);
|
|
9897
9897
|
}
|
|
9898
9898
|
}
|
|
9899
|
-
|
|
9899
|
+
class le {
|
|
9900
9900
|
/**
|
|
9901
9901
|
* Converts an unsigned byte to a signed byte as used in SHX format.
|
|
9902
9902
|
* Values > 127 are converted to their signed equivalent (-128 to -1).
|
|
@@ -10051,7 +10051,7 @@ let le = class {
|
|
|
10051
10051
|
`Position ${e} is out of range for the data length ${this.data.byteLength}!`
|
|
10052
10052
|
);
|
|
10053
10053
|
}
|
|
10054
|
-
}
|
|
10054
|
+
}
|
|
10055
10055
|
var fe = /* @__PURE__ */ ((t) => (t.SHAPES = "shapes", t.BIGFONT = "bigfont", t.UNIFONT = "unifont", t))(fe || {});
|
|
10056
10056
|
class Ih {
|
|
10057
10057
|
parse(e) {
|
|
@@ -22629,7 +22629,8 @@ var nt = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.WORD = 1] = "WORD"
|
|
|
22629
22629
|
const Ul = {
|
|
22630
22630
|
c: "Ø",
|
|
22631
22631
|
d: "°",
|
|
22632
|
-
p: "±"
|
|
22632
|
+
p: "±",
|
|
22633
|
+
"%": "%"
|
|
22633
22634
|
}, Al = {
|
|
22634
22635
|
l: 1,
|
|
22635
22636
|
r: 2,
|
|
@@ -23230,7 +23231,12 @@ class Ol {
|
|
|
23230
23231
|
this.scanner.consume(3), a += u;
|
|
23231
23232
|
continue;
|
|
23232
23233
|
} else {
|
|
23233
|
-
this.scanner.
|
|
23234
|
+
const h = [c, this.scanner.peek(3), this.scanner.peek(4)];
|
|
23235
|
+
if (h.every((d) => d >= "0" && d <= "9")) {
|
|
23236
|
+
const d = Number.parseInt(h.join(""), 10);
|
|
23237
|
+
this.scanner.consume(5), a += String.fromCharCode(d);
|
|
23238
|
+
} else
|
|
23239
|
+
this.scanner.consume(3);
|
|
23234
23240
|
continue;
|
|
23235
23241
|
}
|
|
23236
23242
|
}
|
|
@@ -24931,7 +24937,7 @@ class Pl {
|
|
|
24931
24937
|
this.isInitialized || (await this.loadFonts([Oe.instance.defaultFont]), this.isInitialized = !0);
|
|
24932
24938
|
}
|
|
24933
24939
|
}
|
|
24934
|
-
class
|
|
24940
|
+
class Hl {
|
|
24935
24941
|
/**
|
|
24936
24942
|
* Constructor
|
|
24937
24943
|
*
|
|
@@ -25027,6 +25033,6 @@ export {
|
|
|
25027
25033
|
Rl as MTextAttachmentPoint,
|
|
25028
25034
|
wt as MTextFlowDirection,
|
|
25029
25035
|
Pl as MainThreadRenderer,
|
|
25030
|
-
|
|
25036
|
+
Hl as UnifiedRenderer,
|
|
25031
25037
|
_l as WebWorkerRenderer
|
|
25032
25038
|
};
|