mxcad 1.0.124 → 1.0.126
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/mxcad.d.ts +1 -1
- package/dist/mxcad.es.js +5 -5
- package/dist/mxcad.umd.js +3 -3
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/dist/wasm/3d/mxdraw3d_min.js +12 -7
- package/dist/wasm/3d/mxdraw3d_min.wasm +0 -0
- package/package.json +2 -1
package/dist/mxcad.d.ts
CHANGED
|
@@ -6301,7 +6301,7 @@ export declare class MdGeBRep {
|
|
|
6301
6301
|
openObjFromUrl(theModelPath: string): MdGeShape;
|
|
6302
6302
|
openGltfFromUrl(theModelPath: string): MdGeShape;
|
|
6303
6303
|
openVrmlFromUrl(theModelPath: string): MdGeShape;
|
|
6304
|
-
openStepFromUrlByOCAF(theModelPath: string):
|
|
6304
|
+
openStepFromUrlByOCAF(theModelPath: string): string;
|
|
6305
6305
|
RemoveAllLights(): void;
|
|
6306
6306
|
AddLight(theLight: MdGeLight): void;
|
|
6307
6307
|
EnableAllLights(): void;
|
package/dist/mxcad.es.js
CHANGED
|
@@ -2820,7 +2820,7 @@ class Wi {
|
|
|
2820
2820
|
return _.decodeFromGb2312(e);
|
|
2821
2821
|
}
|
|
2822
2822
|
}
|
|
2823
|
-
const ri = "1.0.
|
|
2823
|
+
const ri = "1.0.126", cn = "SharedArrayBuffer" in window, St = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src), mn = (i, e = self.location.href) => St ? `https://unpkg.com/mxcad@${ri}/dist/wasm/2d-st/${i}` : e + i, hn = (i, e = self.location.href) => St ? `https://unpkg.com/mxcad@${ri}/dist/wasm/2d/${i}` : e + i, dn = (i, e = self.location.href) => St ? `https://unpkg.com/mxcad@${ri}/dist/wasm/3d/${i}` : e + i, Hi = (i) => new Promise((e, t) => {
|
|
2824
2824
|
const r = document.createElement("script");
|
|
2825
2825
|
r.src = i, r.type = "text/javascript", r.crossOrigin = "anonymous", document.body.appendChild(r), r.onload = () => {
|
|
2826
2826
|
e();
|
|
@@ -4818,7 +4818,7 @@ const yt = (...i) => {
|
|
|
4818
4818
|
let e = new Te();
|
|
4819
4819
|
return Ei(e, ...i), e;
|
|
4820
4820
|
}, Ei = (i, ...e) => {
|
|
4821
|
-
const t = (n) => n.length > 1 || typeof n[0] == "object" && n[0].isColor || typeof n[0] == "string" || typeof n[0] == "number", r = (n) => typeof n[0] == "object" && !n[0]
|
|
4821
|
+
const t = (n) => n.length > 1 || typeof n[0] == "object" && n[0].isColor || typeof n[0] == "string" || typeof n[0] == "number", r = (n) => typeof n[0] == "object" && !(n[0] && n[0].isColor);
|
|
4822
4822
|
if (t(e)) {
|
|
4823
4823
|
const { r: n, g: C, b: s } = yt(...e);
|
|
4824
4824
|
i.red = n * 255, i.green = C * 255, i.blue = s * 255;
|
|
@@ -6067,7 +6067,7 @@ class Qe {
|
|
|
6067
6067
|
canvas;
|
|
6068
6068
|
constructor(e) {
|
|
6069
6069
|
const t = () => {
|
|
6070
|
-
const A = this.canvas.parentElement
|
|
6070
|
+
const A = this.canvas.parentElement ? this.canvas.parentElement.clientWidth : window.innerWidth, a = this.canvas.parentElement ? this.canvas.parentElement.clientHeight : window.innerHeight;
|
|
6071
6071
|
let l = Math.min(A, window.screen.availWidth), p = Math.min(a, window.screen.availHeight);
|
|
6072
6072
|
l = Math.max(C, l), p = Math.max(s, p), this.canvas.style.width = l + 1 + "px", this.canvas.style.height = p + "px";
|
|
6073
6073
|
const h = window.devicePixelRatio || 1;
|
|
@@ -6314,7 +6314,7 @@ class be extends c {
|
|
|
6314
6314
|
}
|
|
6315
6315
|
class j extends c {
|
|
6316
6316
|
constructor(e, t) {
|
|
6317
|
-
arguments.length == 0 ? (super(), this.initTempObject(new o.MdGeEdge())) : e instanceof w && arguments.length == 2 ? (super(), this.initTempObject(new o.MdGeEdge(e.getImp(), t
|
|
6317
|
+
arguments.length == 0 ? (super(), this.initTempObject(new o.MdGeEdge())) : e instanceof w && arguments.length == 2 ? (super(), this.initTempObject(new o.MdGeEdge(e.getImp(), t && t.getImp()))) : e instanceof Object && arguments.length == 1 && super(e);
|
|
6318
6318
|
}
|
|
6319
6319
|
Wire() {
|
|
6320
6320
|
return new V(this.imp.Wire());
|
|
@@ -10132,7 +10132,7 @@ class qt {
|
|
|
10132
10132
|
return new c(this.imp.openVrmlFromUrl(e));
|
|
10133
10133
|
}
|
|
10134
10134
|
openStepFromUrlByOCAF(e) {
|
|
10135
|
-
this.imp.openStepFromUrlByOCAF(e);
|
|
10135
|
+
return this.imp.openStepFromUrlByOCAF(e);
|
|
10136
10136
|
}
|
|
10137
10137
|
RemoveAllLights() {
|
|
10138
10138
|
this.imp.RemoveAllLights();
|