@mlightcad/cad-pdf-plugin 1.7.7 → 1.7.8-preview.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/cad-pdf-plugin.js
CHANGED
|
@@ -78,17 +78,21 @@ function nh() {
|
|
|
78
78
|
const c = await EB.getInstance().asyncRenderMText(
|
|
79
79
|
// AcGi and mtext-renderer attachment enums are structurally compatible
|
|
80
80
|
// at runtime but diverge in the TypeScript type graph.
|
|
81
|
-
g,
|
|
81
|
+
{ ...g, meshGlyphOutputMode: "merge" },
|
|
82
82
|
C,
|
|
83
83
|
th(A)
|
|
84
|
-
), G = g.contents
|
|
84
|
+
), G = g.contents || g.text || "", { primitives: b, colorGroups: s, box: B } = PB(
|
|
85
85
|
c,
|
|
86
86
|
((d = g.position) == null ? void 0 : d.x) ?? 0,
|
|
87
87
|
((l = g.position) == null ? void 0 : l.y) ?? 0
|
|
88
88
|
);
|
|
89
89
|
return { primitives: b, colorGroups: s, actualText: G, box: B };
|
|
90
|
-
} catch {
|
|
91
|
-
|
|
90
|
+
} catch (i) {
|
|
91
|
+
const c = g.contents || g.text || "";
|
|
92
|
+
return console.warn(
|
|
93
|
+
"[cad-pdf-plugin] MTEXT glyph render failed; vector geometry omitted",
|
|
94
|
+
i instanceof Error ? i.message : i
|
|
95
|
+
), { primitives: m, actualText: c, box: I };
|
|
92
96
|
}
|
|
93
97
|
},
|
|
94
98
|
async renderShape(g, C) {
|
|
@@ -103,8 +107,11 @@ function nh() {
|
|
|
103
107
|
((d = g.position) == null ? void 0 : d.y) ?? 0
|
|
104
108
|
);
|
|
105
109
|
return { primitives: c, box: G };
|
|
106
|
-
} catch {
|
|
107
|
-
return
|
|
110
|
+
} catch (l) {
|
|
111
|
+
return console.warn(
|
|
112
|
+
"[cad-pdf-plugin] SHAPE glyph render failed; vector geometry omitted",
|
|
113
|
+
l instanceof Error ? l.message : l
|
|
114
|
+
), { primitives: m, box: I };
|
|
108
115
|
}
|
|
109
116
|
}
|
|
110
117
|
};
|
|
@@ -19388,7 +19395,7 @@ class QV extends uY {
|
|
|
19388
19395
|
await new TV().importFromFilePicker(I);
|
|
19389
19396
|
}
|
|
19390
19397
|
}
|
|
19391
|
-
const UV = "1.7.
|
|
19398
|
+
const UV = "1.7.8-preview.1", rV = {
|
|
19392
19399
|
version: UV
|
|
19393
19400
|
};
|
|
19394
19401
|
class OV {
|