mxcad 1.0.94 → 1.0.95
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 +6 -1
- package/dist/mxcad.es.js +117 -114
- package/dist/mxcad.umd.js +5 -5
- package/dist/wasm/2d/mxdrawassembly_min.js +342 -342
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +335 -335
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MxFun as R, MrxDbgUiPrPoint as tt, MxCursorType as Fe, DynamicInputType as K, MrxDbgUtils as Ce, DetailedResult as yt, MrxDbgUiPrDist as OC, MrxDbgUiPrAngle as PC, MrxDbgUiPrInt as bC, MrxDbgUiPrKeyWord as GC, MrxDbgUiPrString as NC, store as UC, loadCoreCode as YC, MxPaintBrush as ht, MrxDbgUiPrBaseReturn as Q, MxDbCircleShape as Ie, MxDbPolyline as
|
|
1
|
+
import { MxFun as R, MrxDbgUiPrPoint as tt, MxCursorType as Fe, DynamicInputType as K, MrxDbgUtils as Ce, DetailedResult as yt, MrxDbgUiPrDist as OC, MrxDbgUiPrAngle as PC, MrxDbgUiPrInt as bC, MrxDbgUiPrKeyWord as GC, MrxDbgUiPrString as NC, store as UC, loadCoreCode as YC, MxPaintBrush as ht, MrxDbgUiPrBaseReturn as Q, MxDbCircleShape as Ie, MxDbPolyline as kC, MxDbCircleArc as jt, MxDbLine as fC, Mx3PointArc as jC, MxDbEllipseShape as VC, McEdGetPointWorldDrawObject as HC, MxDbEllipse as vC } from "mxdraw";
|
|
2
2
|
function Re(i) {
|
|
3
3
|
return btoa(unescape(encodeURIComponent(i)));
|
|
4
4
|
}
|
|
@@ -111,7 +111,7 @@ class KC {
|
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
let
|
|
114
|
+
let j = new KC();
|
|
115
115
|
class p {
|
|
116
116
|
static kOrigin;
|
|
117
117
|
imp;
|
|
@@ -346,15 +346,15 @@ class Le {
|
|
|
346
346
|
return this.imp.length();
|
|
347
347
|
}
|
|
348
348
|
at(t, e = !0) {
|
|
349
|
-
return e ?
|
|
349
|
+
return e ? j.decodeFromGb2312(this.imp.at(t)) : this.imp.at(t);
|
|
350
350
|
}
|
|
351
351
|
setAt(t, e, C = !0) {
|
|
352
|
-
C ? this.imp.setAt(t,
|
|
352
|
+
C ? this.imp.setAt(t, j.encodeToGb2312(e)) : this.imp.setAt(t, e);
|
|
353
353
|
}
|
|
354
354
|
forEach(t, e = !0) {
|
|
355
355
|
let C = this.imp.length();
|
|
356
356
|
for (let E = 0; E < C; E++)
|
|
357
|
-
t(e ?
|
|
357
|
+
t(e ? j.decodeFromGb2312(this.imp.at(E)) : this.imp.at(E), E);
|
|
358
358
|
}
|
|
359
359
|
clear() {
|
|
360
360
|
this.imp.clear();
|
|
@@ -430,10 +430,10 @@ class wt {
|
|
|
430
430
|
}
|
|
431
431
|
getJson() {
|
|
432
432
|
let t = this.imp.getJson();
|
|
433
|
-
return
|
|
433
|
+
return j.decodeFromGb2312(t);
|
|
434
434
|
}
|
|
435
435
|
setJson(t) {
|
|
436
|
-
let e =
|
|
436
|
+
let e = j.encodeToGb2312(t);
|
|
437
437
|
return this.imp.setJson(e);
|
|
438
438
|
}
|
|
439
439
|
isKindOf(t) {
|
|
@@ -692,18 +692,18 @@ class oe extends wt {
|
|
|
692
692
|
}
|
|
693
693
|
GetCurrentlyLineTypeName() {
|
|
694
694
|
let t = this.imp.GetCurrentlyLineTypeName();
|
|
695
|
-
return
|
|
695
|
+
return j.decodeFromGb2312(t);
|
|
696
696
|
}
|
|
697
697
|
SetCurrentlyLineTypeName(t) {
|
|
698
|
-
let e =
|
|
698
|
+
let e = j.encodeToGb2312(t);
|
|
699
699
|
this.imp.SetCurrentlyLineTypeName(e);
|
|
700
700
|
}
|
|
701
701
|
GetCurrentlyLayerName() {
|
|
702
702
|
let t = this.imp.GetCurrentlyLayerName();
|
|
703
|
-
return
|
|
703
|
+
return j.decodeFromGb2312(t);
|
|
704
704
|
}
|
|
705
705
|
SetCurrentlyLayerName(t) {
|
|
706
|
-
let e =
|
|
706
|
+
let e = j.encodeToGb2312(t);
|
|
707
707
|
this.imp.SetCurrentlyLayerName(e);
|
|
708
708
|
}
|
|
709
709
|
GetCurrentlyTrueColor() {
|
|
@@ -724,10 +724,10 @@ class oe extends wt {
|
|
|
724
724
|
}
|
|
725
725
|
GetCurrentlyTextStyleName() {
|
|
726
726
|
let t = this.imp.GetCurrentlyTextStyleName();
|
|
727
|
-
return
|
|
727
|
+
return j.decodeFromGb2312(t);
|
|
728
728
|
}
|
|
729
729
|
SetCurrentlyTextStyle(t) {
|
|
730
|
-
let e =
|
|
730
|
+
let e = j.encodeToGb2312(t);
|
|
731
731
|
this.imp.SetCurrentlyTextStyle(e);
|
|
732
732
|
}
|
|
733
733
|
HandleToIdIndex(t) {
|
|
@@ -1064,10 +1064,10 @@ class Ee extends lt {
|
|
|
1064
1064
|
this.imp.setWidthFactor(t);
|
|
1065
1065
|
}
|
|
1066
1066
|
get textString() {
|
|
1067
|
-
return
|
|
1067
|
+
return j.decodeFromGb2312(this.imp.textString());
|
|
1068
1068
|
}
|
|
1069
1069
|
set textString(t) {
|
|
1070
|
-
this.imp.setTextString(
|
|
1070
|
+
this.imp.setTextString(j.encodeToGb2312(t));
|
|
1071
1071
|
}
|
|
1072
1072
|
get horizontalMode() {
|
|
1073
1073
|
return this.imp.horizontalMode();
|
|
@@ -1117,10 +1117,10 @@ class Kt extends lt {
|
|
|
1117
1117
|
this.imp.setAttachment(t);
|
|
1118
1118
|
}
|
|
1119
1119
|
get contents() {
|
|
1120
|
-
return
|
|
1120
|
+
return j.decodeFromGb2312(this.imp.contents());
|
|
1121
1121
|
}
|
|
1122
1122
|
set contents(t) {
|
|
1123
|
-
this.imp.setContents(
|
|
1123
|
+
this.imp.setContents(j.encodeToGb2312(t));
|
|
1124
1124
|
}
|
|
1125
1125
|
}
|
|
1126
1126
|
class at extends ct {
|
|
@@ -1173,7 +1173,7 @@ class Wt extends ct {
|
|
|
1173
1173
|
return this.imp.numVerts();
|
|
1174
1174
|
}
|
|
1175
1175
|
getPointAt(t) {
|
|
1176
|
-
return { val: this.imp.getPointAt(t), ret: F.getCallResult() };
|
|
1176
|
+
return { val: new p(this.imp.getPointAt(t)), ret: F.getCallResult() };
|
|
1177
1177
|
}
|
|
1178
1178
|
getBulgeAt(t) {
|
|
1179
1179
|
return this.imp.getBulgeAt(t);
|
|
@@ -1232,6 +1232,9 @@ class De extends lt {
|
|
|
1232
1232
|
set blockTransform(t) {
|
|
1233
1233
|
this.imp.setBlockTransform(t.imp);
|
|
1234
1234
|
}
|
|
1235
|
+
get blockName() {
|
|
1236
|
+
return j.decodeFromGb2312(this.imp.getBlockName());
|
|
1237
|
+
}
|
|
1235
1238
|
}
|
|
1236
1239
|
class ue extends lt {
|
|
1237
1240
|
constructor(t) {
|
|
@@ -1259,10 +1262,10 @@ class ue extends lt {
|
|
|
1259
1262
|
this.imp.setElevation(t);
|
|
1260
1263
|
}
|
|
1261
1264
|
get dimensionText() {
|
|
1262
|
-
return this.imp.dimensionText();
|
|
1265
|
+
return j.decodeFromGb2312(this.imp.dimensionText());
|
|
1263
1266
|
}
|
|
1264
1267
|
set dimensionText(t) {
|
|
1265
|
-
this.imp.setDimensionText(t);
|
|
1268
|
+
this.imp.setDimensionText(j.encodeToGb2312(t));
|
|
1266
1269
|
}
|
|
1267
1270
|
get textRotation() {
|
|
1268
1271
|
return this.imp.textRotation();
|
|
@@ -1524,7 +1527,7 @@ class x extends wt {
|
|
|
1524
1527
|
return { val: new v(this.imp.AtObjectId(t), X.kMxCAD), ret: F.getCallResult() };
|
|
1525
1528
|
}
|
|
1526
1529
|
AtString(t, e = !0) {
|
|
1527
|
-
return e ? { val:
|
|
1530
|
+
return e ? { val: j.decodeFromGb2312(this.imp.AtString(t)), ret: F.getCallResult() } : { val: this.imp.AtString(t), ret: F.getCallResult() };
|
|
1528
1531
|
}
|
|
1529
1532
|
AtPoint(t) {
|
|
1530
1533
|
return { val: new p(this.imp.AtPoint(t)), ret: F.getCallResult() };
|
|
@@ -1542,7 +1545,7 @@ class x extends wt {
|
|
|
1542
1545
|
return this.imp.AddObjectId(t, e);
|
|
1543
1546
|
}
|
|
1544
1547
|
AddString(t, e = -10, C = !0) {
|
|
1545
|
-
return C ? this.imp.AddString(
|
|
1548
|
+
return C ? this.imp.AddString(j.encodeToGb2312(t), e) : this.imp.AddString(t, e);
|
|
1546
1549
|
}
|
|
1547
1550
|
AddMcDbEntityTypes(t) {
|
|
1548
1551
|
return this.imp.AddString(t, 5020);
|
|
@@ -1666,7 +1669,7 @@ class Ye {
|
|
|
1666
1669
|
}
|
|
1667
1670
|
}
|
|
1668
1671
|
let J = new Ye();
|
|
1669
|
-
var
|
|
1672
|
+
var ke = /* @__PURE__ */ ((i) => (i[i.kSelected = 0] = "kSelected", i[i.kNone = 1] = "kNone", i[i.kCanceled = 2] = "kCanceled", i[i.kRejected = 3] = "kRejected", i[i.kKeyword = 4] = "kKeyword", i))(ke || {});
|
|
1670
1673
|
class mt extends wt {
|
|
1671
1674
|
isWhileSelect = !0;
|
|
1672
1675
|
isSelectHighlight = !0;
|
|
@@ -1968,7 +1971,7 @@ class Tt extends _t {
|
|
|
1968
1971
|
return new p(this.imp.getCADValue());
|
|
1969
1972
|
}
|
|
1970
1973
|
}
|
|
1971
|
-
var
|
|
1974
|
+
var fe = /* @__PURE__ */ ((i) => (i[i.EMSCRIPTEN_FETCH_LOAD_TO_MEMORY = 1] = "EMSCRIPTEN_FETCH_LOAD_TO_MEMORY", i[i.EMSCRIPTEN_FETCH_PERSIST_FILE = 4] = "EMSCRIPTEN_FETCH_PERSIST_FILE", i[i.EMSCRIPTEN_FETCH_APPEND = 8] = "EMSCRIPTEN_FETCH_APPEND", i[i.EMSCRIPTEN_FETCH_REPLACE = 16] = "EMSCRIPTEN_FETCH_REPLACE", i))(fe || {});
|
|
1972
1975
|
class Lt {
|
|
1973
1976
|
imp;
|
|
1974
1977
|
static currentFileName;
|
|
@@ -2226,7 +2229,7 @@ class Lt {
|
|
|
2226
2229
|
return new Le(this.imp.GetAllLayoutName());
|
|
2227
2230
|
}
|
|
2228
2231
|
SetCurrentLayout(t) {
|
|
2229
|
-
this.imp.SetCurrentLayout(
|
|
2232
|
+
this.imp.SetCurrentLayout(j.encodeToGb2312(t));
|
|
2230
2233
|
}
|
|
2231
2234
|
GetMxCpp() {
|
|
2232
2235
|
return F;
|
|
@@ -2241,7 +2244,7 @@ class Lt {
|
|
|
2241
2244
|
this.imp.mxdrawObject.updateDisplay(t);
|
|
2242
2245
|
}
|
|
2243
2246
|
}
|
|
2244
|
-
class
|
|
2247
|
+
class je {
|
|
2245
2248
|
imp;
|
|
2246
2249
|
MxCADAssist;
|
|
2247
2250
|
init(t) {
|
|
@@ -2335,7 +2338,7 @@ class ke {
|
|
|
2335
2338
|
}
|
|
2336
2339
|
class Ve {
|
|
2337
2340
|
mxcadassemblyimp;
|
|
2338
|
-
App = new
|
|
2341
|
+
App = new je();
|
|
2339
2342
|
getCallResult() {
|
|
2340
2343
|
return this.App.getLastCallResult();
|
|
2341
2344
|
}
|
|
@@ -2354,7 +2357,7 @@ class Ve {
|
|
|
2354
2357
|
return this.App.GetCurrentMxCAD().GetDatabase();
|
|
2355
2358
|
}
|
|
2356
2359
|
}
|
|
2357
|
-
const le = "1.0.
|
|
2360
|
+
const le = "1.0.95", xC = "SharedArrayBuffer" in window, Jt = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src), ti = (i, t = self.location.href) => Jt ? `https://unpkg.com/mxcad@${le}/dist/wasm/2d-st/${i}` : t + i, ei = (i, t = self.location.href) => Jt ? `https://unpkg.com/mxcad@${le}/dist/wasm/2d/${i}` : t + i, Ci = (i, t = self.location.href) => Jt ? `https://unpkg.com/mxcad@${le}/dist/wasm/3d/${i}` : t + i, He = (i) => new Promise((t, e) => {
|
|
2358
2361
|
const C = document.createElement("script");
|
|
2359
2362
|
C.src = i, C.type = "text/javascript", C.crossOrigin = "anonymous", document.body.appendChild(C), C.onload = () => {
|
|
2360
2363
|
t();
|
|
@@ -2558,7 +2561,7 @@ class ni extends Ie {
|
|
|
2558
2561
|
}
|
|
2559
2562
|
}
|
|
2560
2563
|
const de = (i) => {
|
|
2561
|
-
const [t, e, C] = i, { x: E, y: D, z: B } = t, { x: r, y: n, z: A } = e, { x: o, y: l, z: a } = C, c = D * A - n * B - D * a + l * B + n * a - l * A, h = -(E * A - r * B - E * a + o * B + r * a - o * A), g = E * n - r * D - E * l + o * D + r * l - o * n, O = -(E * n * a - E * l * A - r * D * a + r * l * B + o * D * A - o * n * B), N = 2 * (r - E), d = 2 * (n - D), I = 2 * (A - B),
|
|
2564
|
+
const [t, e, C] = i, { x: E, y: D, z: B } = t, { x: r, y: n, z: A } = e, { x: o, y: l, z: a } = C, c = D * A - n * B - D * a + l * B + n * a - l * A, h = -(E * A - r * B - E * a + o * B + r * a - o * A), g = E * n - r * D - E * l + o * D + r * l - o * n, O = -(E * n * a - E * l * A - r * D * a + r * l * B + o * D * A - o * n * B), N = 2 * (r - E), d = 2 * (n - D), I = 2 * (A - B), f = E * E + D * D + B * B - r * r - n * n - A * A, U = 2 * (o - E), G = 2 * (l - D), V = 2 * (a - B), Ft = E * E + D * D + B * B - o * o - l * l - a * a, bt = -(h * I * Ft - h * V * f - d * g * Ft + d * V * O + G * g * f - G * I * O) / (c * d * V - c * G * I - N * h * V + N * G * g + U * h * I - U * d * g), TC = (c * I * Ft - c * V * f - N * g * Ft + N * V * O + U * g * f - U * I * O) / (c * d * V - c * G * I - N * h * V + N * G * g + U * h * I - U * d * g), LC = -(c * d * Ft - c * G * f - N * h * Ft + N * G * O + U * h * f - U * d * O) / (c * d * V - c * G * I - N * h * V + N * G * g + U * h * I - U * d * g);
|
|
2562
2565
|
return new THREE.Vector3(bt, TC, LC);
|
|
2563
2566
|
};
|
|
2564
2567
|
function Je() {
|
|
@@ -2707,7 +2710,7 @@ async function Fi() {
|
|
|
2707
2710
|
async function Me() {
|
|
2708
2711
|
const i = new tt();
|
|
2709
2712
|
let t = F.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2710
|
-
const e = new
|
|
2713
|
+
const e = new kC();
|
|
2711
2714
|
ht.use(e), e.color = t, i.setMessage(`
|
|
2712
2715
|
\u6307\u5B9A\u8D77\u70B9:`);
|
|
2713
2716
|
let C;
|
|
@@ -2862,7 +2865,7 @@ async function tC() {
|
|
|
2862
2865
|
},
|
|
2863
2866
|
() => {
|
|
2864
2867
|
if (t.isKeyWordPicked("C")) {
|
|
2865
|
-
const d = new
|
|
2868
|
+
const d = new jt();
|
|
2866
2869
|
d.color = i, e.center = t.value(), d.center = t.value(), t.setMessage(`
|
|
2867
2870
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3:`), t.setKeyWords(""), n();
|
|
2868
2871
|
} else
|
|
@@ -2873,7 +2876,7 @@ async function tC() {
|
|
|
2873
2876
|
const n = st(
|
|
2874
2877
|
t,
|
|
2875
2878
|
() => {
|
|
2876
|
-
r = t.value(), D = new
|
|
2879
|
+
r = t.value(), D = new jt(), D.closed = !1, ht.use(D), D.color = i, D.center = r, e.center = r, t.setMessage(`
|
|
2877
2880
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), t.setUserDraw((d, I) => {
|
|
2878
2881
|
I.drawCustomEntity(D), I.setColor(i), I.drawLine(r, d);
|
|
2879
2882
|
}), l();
|
|
@@ -2888,7 +2891,7 @@ async function tC() {
|
|
|
2888
2891
|
A = t.value(), D.endPoint = A, t.setMessage(
|
|
2889
2892
|
`
|
|
2890
2893
|
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u89D2\u5EA6(A)/\u5F26\u957F(L)/\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
2891
|
-
), t.setKeyWords("A L R"), o = new
|
|
2894
|
+
), t.setKeyWords("A L R"), o = new fC(), o.setDashLineDisplay(!0), o.setDashArray(0.05), o.setLineWidth(2), o.setColor("#ffd30d"), o.pt1 = D.center, t.setUserDraw((d, I) => {
|
|
2892
2895
|
D.startPoint = d, o.pt2 = d, I.drawCustomEntity(D), I.drawCustomEntity(o);
|
|
2893
2896
|
}), c();
|
|
2894
2897
|
},
|
|
@@ -2932,18 +2935,18 @@ async function tC() {
|
|
|
2932
2935
|
t,
|
|
2933
2936
|
() => {
|
|
2934
2937
|
h = t.value(), t.setMessage(`
|
|
2935
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), E = new
|
|
2938
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), E = new jC(), E.color = i, E.autoClockwise = !0, E.closed = !1, ht.use(E), t.setUserDraw((d, I) => {
|
|
2936
2939
|
E.point1 = C, E.point3 = h, E.point2 = d, I.drawCustomEntity(E);
|
|
2937
2940
|
}), N();
|
|
2938
2941
|
},
|
|
2939
2942
|
() => {
|
|
2940
2943
|
if (t.isKeyWordPicked("C"))
|
|
2941
|
-
D = new
|
|
2944
|
+
D = new jt(), D.closed = !1, ht.use(D), D.color = i, t.setMessage(`
|
|
2942
2945
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), t.setKeyWords(""), t.setUserDraw((d, I) => {
|
|
2943
2946
|
D.startPoint = C, I.drawLine(d, D.startPoint);
|
|
2944
2947
|
}), n();
|
|
2945
2948
|
else if (t.isKeyWordPicked("E"))
|
|
2946
|
-
D = new
|
|
2949
|
+
D = new jt(), D.closed = !1, ht.use(D), D.color = i, t.setMessage(`
|
|
2947
2950
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), t.setKeyWords(""), t.setUserDraw((d, I) => {
|
|
2948
2951
|
D.startPoint = C, I.drawLine(d, D.startPoint);
|
|
2949
2952
|
}), n();
|
|
@@ -3162,13 +3165,13 @@ async function ai() {
|
|
|
3162
3165
|
E.setMessage("\u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6"), E.setBasePt(D), E.setUseBasePt(!0), E.setDynamicInputType(K.kXYCoordInput), E.setUserDraw((a, c) => {
|
|
3163
3166
|
let h = a, g = D, N = h.sub(g).angleTo2(y.kXAxis, y.kNegateZAxis), d = new At();
|
|
3164
3167
|
if (d.setToRotation(N, y.kZAxis, g), t && e) {
|
|
3165
|
-
let I = new p(t.x, e.y, 0),
|
|
3166
|
-
I.transformBy(d),
|
|
3168
|
+
let I = new p(t.x, e.y, 0), f = new p(e.x, t.y, 0), U = new p(I.x, f.y, 0), G = new p(f.x, I.y, 0);
|
|
3169
|
+
I.transformBy(d), f.transformBy(d), U.transformBy(d), G.transformBy(d), c.drawLine(G.toVector3(), I.toVector3()), c.drawLine(I.toVector3(), U.toVector3()), c.drawLine(U.toVector3(), f.toVector3()), c.drawLine(f.toVector3(), G.toVector3());
|
|
3167
3170
|
}
|
|
3168
3171
|
g = F.GetCurrentMxCAD().DocCoord2Cad(g), d.setToRotation(N, y.kZAxis, g);
|
|
3169
3172
|
for (let I = 0; I < i.length && I < 10; I++) {
|
|
3170
|
-
let
|
|
3171
|
-
!
|
|
3173
|
+
let f = i[I].clone();
|
|
3174
|
+
!f || (f.TransformBy(d), c.drawMcDbEntity(f));
|
|
3172
3175
|
}
|
|
3173
3176
|
});
|
|
3174
3177
|
let B = await E.go();
|
|
@@ -3205,17 +3208,17 @@ async function ci() {
|
|
|
3205
3208
|
let N = new p(g), d = new p(n), I = N.distanceTo(d);
|
|
3206
3209
|
if (I < 1e-5)
|
|
3207
3210
|
return;
|
|
3208
|
-
let
|
|
3209
|
-
|
|
3211
|
+
let f = I / B;
|
|
3212
|
+
f > 1e5 && (f = 1e5);
|
|
3210
3213
|
let U = new At();
|
|
3211
|
-
if (U.setToScaling(
|
|
3212
|
-
let G = new p(t.x, e.y, 0),
|
|
3213
|
-
G.transformBy(U),
|
|
3214
|
+
if (U.setToScaling(f, d), t && e) {
|
|
3215
|
+
let G = new p(t.x, e.y, 0), V = new p(e.x, t.y, 0), Ft = new p(G.x, V.y, 0), bt = new p(V.x, G.y, 0);
|
|
3216
|
+
G.transformBy(U), V.transformBy(U), Ft.transformBy(U), bt.transformBy(U), O.drawLine(bt.toVector3(), G.toVector3()), O.drawLine(G.toVector3(), Ft.toVector3()), O.drawLine(Ft.toVector3(), V.toVector3()), O.drawLine(V.toVector3(), bt.toVector3());
|
|
3214
3217
|
}
|
|
3215
|
-
d = F.GetCurrentMxCAD().DocCoord2Cad(d), U.setToScaling(
|
|
3218
|
+
d = F.GetCurrentMxCAD().DocCoord2Cad(d), U.setToScaling(f, d);
|
|
3216
3219
|
for (let G = 0; G < i.length && G < 10; G++) {
|
|
3217
|
-
let
|
|
3218
|
-
!
|
|
3220
|
+
let V = i[G].clone();
|
|
3221
|
+
!V || (V.TransformBy(U), O.drawMcDbEntity(V));
|
|
3219
3222
|
}
|
|
3220
3223
|
});
|
|
3221
3224
|
let A = await r.go();
|
|
@@ -3534,11 +3537,11 @@ class Ot {
|
|
|
3534
3537
|
MdGeWire: b,
|
|
3535
3538
|
MdGeFace: T,
|
|
3536
3539
|
MdGeShell: Yt,
|
|
3537
|
-
MdGeSolid:
|
|
3540
|
+
MdGeSolid: kt,
|
|
3538
3541
|
MdGeCompSolid: ae,
|
|
3539
3542
|
MdGeCompound: ce,
|
|
3540
3543
|
MdGeMat: Ct,
|
|
3541
|
-
MdGeXYZ:
|
|
3544
|
+
MdGeXYZ: H,
|
|
3542
3545
|
MdGeTrsf: St,
|
|
3543
3546
|
MdGeDir: Y,
|
|
3544
3547
|
MdGeAxis: w,
|
|
@@ -3550,12 +3553,12 @@ class Ot {
|
|
|
3550
3553
|
MdGeArray1OfPnt: q,
|
|
3551
3554
|
MdGeArray1OfReal: nt,
|
|
3552
3555
|
MdGeArray2OfPnt: z,
|
|
3553
|
-
MdGeArray2OfReal:
|
|
3556
|
+
MdGeArray2OfReal: ft,
|
|
3554
3557
|
MdGeBezierCurve: EC,
|
|
3555
3558
|
MdGeBezierSurface: DC,
|
|
3556
3559
|
MdGeChamfer: BC,
|
|
3557
3560
|
MdGeCircle: W,
|
|
3558
|
-
MdGeCSYS:
|
|
3561
|
+
MdGeCSYS: k,
|
|
3559
3562
|
MdGeCone: it,
|
|
3560
3563
|
MdGeCylinder: Et,
|
|
3561
3564
|
MdGePlane: M,
|
|
@@ -3601,7 +3604,7 @@ class Ot {
|
|
|
3601
3604
|
class _ {
|
|
3602
3605
|
imp = 0;
|
|
3603
3606
|
constructor(t) {
|
|
3604
|
-
this.imp = t, this.imp && Yi.register(this, t,
|
|
3607
|
+
this.imp = t, this.imp && Yi.register(this, t, ki);
|
|
3605
3608
|
}
|
|
3606
3609
|
getImp() {
|
|
3607
3610
|
return this.imp;
|
|
@@ -3700,7 +3703,7 @@ class Yt extends u {
|
|
|
3700
3703
|
this.imp.Draw();
|
|
3701
3704
|
}
|
|
3702
3705
|
}
|
|
3703
|
-
class
|
|
3706
|
+
class kt extends u {
|
|
3704
3707
|
constructor(t) {
|
|
3705
3708
|
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeSolid())) : super(t);
|
|
3706
3709
|
}
|
|
@@ -3726,7 +3729,7 @@ class ce extends u {
|
|
|
3726
3729
|
}
|
|
3727
3730
|
class Ct extends _ {
|
|
3728
3731
|
constructor(t, e, C, E, D, B, r, n, A) {
|
|
3729
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeMat())) : t instanceof
|
|
3732
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeMat())) : t instanceof H && e instanceof H && C instanceof H && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeMat(t.getImp(), e.getImp(), C.getImp()))) : typeof t == "number" && typeof e == "number" && typeof C == "number" && arguments.length == 9 ? (super(), this.initTempObject(new s.MdGeMat(t, e, C, E, D, B, r, n, A))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
3730
3733
|
}
|
|
3731
3734
|
SetCol(t, e) {
|
|
3732
3735
|
this.imp.SetCol(t, e.getImp());
|
|
@@ -3762,16 +3765,16 @@ class Ct extends _ {
|
|
|
3762
3765
|
this.imp.SetValue(t, e, C);
|
|
3763
3766
|
}
|
|
3764
3767
|
Column(t) {
|
|
3765
|
-
return new
|
|
3768
|
+
return new H(this.imp.Column(t));
|
|
3766
3769
|
}
|
|
3767
3770
|
Determinant() {
|
|
3768
3771
|
return this.imp.Determinant();
|
|
3769
3772
|
}
|
|
3770
3773
|
Diagonal() {
|
|
3771
|
-
return new
|
|
3774
|
+
return new H(this.imp.Diagonal());
|
|
3772
3775
|
}
|
|
3773
3776
|
Row(t) {
|
|
3774
|
-
return new
|
|
3777
|
+
return new H(this.imp.Row(t));
|
|
3775
3778
|
}
|
|
3776
3779
|
Value(t, e) {
|
|
3777
3780
|
return this.imp.Value(t, e);
|
|
@@ -3834,7 +3837,7 @@ class Ct extends _ {
|
|
|
3834
3837
|
return new Ct(this.imp.Transposed());
|
|
3835
3838
|
}
|
|
3836
3839
|
}
|
|
3837
|
-
class
|
|
3840
|
+
class H extends _ {
|
|
3838
3841
|
constructor(t, e, C) {
|
|
3839
3842
|
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeXYZ())) : typeof t == "number" && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeXYZ(t, e, C))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
3840
3843
|
}
|
|
@@ -3878,13 +3881,13 @@ class V extends _ {
|
|
|
3878
3881
|
this.imp.Add(t.imp);
|
|
3879
3882
|
}
|
|
3880
3883
|
Added(t) {
|
|
3881
|
-
return new
|
|
3884
|
+
return new H(this.imp.Added(t.imp));
|
|
3882
3885
|
}
|
|
3883
3886
|
Cross(t) {
|
|
3884
3887
|
this.imp.Cross(t.imp);
|
|
3885
3888
|
}
|
|
3886
3889
|
Crossed(t) {
|
|
3887
|
-
return new
|
|
3890
|
+
return new H(this.imp.Crossed(t.imp));
|
|
3888
3891
|
}
|
|
3889
3892
|
CrossMagnitude(t) {
|
|
3890
3893
|
return this.imp.CrossMagnitude(t.imp);
|
|
@@ -3896,13 +3899,13 @@ class V extends _ {
|
|
|
3896
3899
|
this.imp.CrossCross(t.imp, e.imp);
|
|
3897
3900
|
}
|
|
3898
3901
|
CrossCrossed(t, e) {
|
|
3899
|
-
return new
|
|
3902
|
+
return new H(this.imp.CrossCrossed(t.imp, e.imp));
|
|
3900
3903
|
}
|
|
3901
3904
|
Divide(t) {
|
|
3902
3905
|
this.imp.Divide(t);
|
|
3903
3906
|
}
|
|
3904
3907
|
Divided(t) {
|
|
3905
|
-
return new
|
|
3908
|
+
return new H(this.imp.Divided(t));
|
|
3906
3909
|
}
|
|
3907
3910
|
Dot(t) {
|
|
3908
3911
|
return this.imp.Dot(t.imp);
|
|
@@ -3920,31 +3923,31 @@ class V extends _ {
|
|
|
3920
3923
|
this.imp.MultiplyByMat(t.getImp());
|
|
3921
3924
|
}
|
|
3922
3925
|
MultipliedByS(t) {
|
|
3923
|
-
return new
|
|
3926
|
+
return new H(this.imp.MultipliedByS(t));
|
|
3924
3927
|
}
|
|
3925
3928
|
MultipliedByXYZ(t) {
|
|
3926
|
-
return new
|
|
3929
|
+
return new H(this.imp.MultipliedByXYZ(t.imp));
|
|
3927
3930
|
}
|
|
3928
3931
|
MultipliedByMat(t) {
|
|
3929
|
-
return new
|
|
3932
|
+
return new H(this.imp.MultipliedByMat(t.getImp()));
|
|
3930
3933
|
}
|
|
3931
3934
|
Normalize() {
|
|
3932
3935
|
this.imp.Normalize();
|
|
3933
3936
|
}
|
|
3934
3937
|
Normalized() {
|
|
3935
|
-
return new
|
|
3938
|
+
return new H(this.imp.Normalized());
|
|
3936
3939
|
}
|
|
3937
3940
|
Reverse() {
|
|
3938
3941
|
this.imp.Reverse();
|
|
3939
3942
|
}
|
|
3940
3943
|
Reversed() {
|
|
3941
|
-
return new
|
|
3944
|
+
return new H(this.imp.Reversed());
|
|
3942
3945
|
}
|
|
3943
3946
|
Subtract(t) {
|
|
3944
3947
|
this.imp.Subtract(t.imp);
|
|
3945
3948
|
}
|
|
3946
3949
|
Subtracted(t) {
|
|
3947
|
-
return new
|
|
3950
|
+
return new H(this.imp.Subtracted(t.imp));
|
|
3948
3951
|
}
|
|
3949
3952
|
}
|
|
3950
3953
|
class St extends _ {
|
|
@@ -4698,7 +4701,7 @@ class z extends _ {
|
|
|
4698
4701
|
this.imp.Resize(t, e, C, E, D);
|
|
4699
4702
|
}
|
|
4700
4703
|
}
|
|
4701
|
-
class
|
|
4704
|
+
class ft extends _ {
|
|
4702
4705
|
constructor(t, e, C, E, D) {
|
|
4703
4706
|
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeArray2OfReal())) : typeof t == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGeArray2OfReal(t, e, C, E))) : typeof t == "number" && arguments.length == 5 ? (super(), this.initTempObject(new s.MdGeArray2OfReal(t, e, C, E, D))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
4704
4707
|
}
|
|
@@ -4932,7 +4935,7 @@ class DC extends _ {
|
|
|
4932
4935
|
return this.imp.Weight(t, e);
|
|
4933
4936
|
}
|
|
4934
4937
|
Weights() {
|
|
4935
|
-
return new
|
|
4938
|
+
return new ft(this.imp.Weights());
|
|
4936
4939
|
}
|
|
4937
4940
|
IsUClosed() {
|
|
4938
4941
|
return this.imp.IsUClosed();
|
|
@@ -5175,7 +5178,7 @@ class W extends _ {
|
|
|
5175
5178
|
return new b(this.imp.Wire());
|
|
5176
5179
|
}
|
|
5177
5180
|
}
|
|
5178
|
-
class
|
|
5181
|
+
class k extends _ {
|
|
5179
5182
|
constructor(t, e, C) {
|
|
5180
5183
|
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCSYS())) : t instanceof m && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeCSYS(t.getImp(), e?.getImp()))) : t instanceof m && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeCSYS(t.getImp(), e?.getImp(), C?.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5181
5184
|
}
|
|
@@ -5237,54 +5240,54 @@ class f extends _ {
|
|
|
5237
5240
|
this.imp.MirrorByPoint(t.getImp());
|
|
5238
5241
|
}
|
|
5239
5242
|
MirroredByPoint(t) {
|
|
5240
|
-
return new
|
|
5243
|
+
return new k(this.imp.MirroredByPoint(t.getImp()));
|
|
5241
5244
|
}
|
|
5242
5245
|
MirrorByAxis(t) {
|
|
5243
5246
|
this.imp.MirrorByAxis(t.getImp());
|
|
5244
5247
|
}
|
|
5245
5248
|
MirroredByAxis(t) {
|
|
5246
|
-
return new
|
|
5249
|
+
return new k(this.imp.MirroredByAxis(t.getImp()));
|
|
5247
5250
|
}
|
|
5248
5251
|
MirrorByCSYSR(t) {
|
|
5249
5252
|
this.imp.MirrorByCSYSR(t.getImp());
|
|
5250
5253
|
}
|
|
5251
5254
|
MirroredByCSYSR(t) {
|
|
5252
|
-
return new
|
|
5255
|
+
return new k(t.getImp());
|
|
5253
5256
|
}
|
|
5254
5257
|
Rotate(t, e) {
|
|
5255
5258
|
this.imp.Rotate(t.getImp(), e);
|
|
5256
5259
|
}
|
|
5257
5260
|
Rotated(t, e) {
|
|
5258
|
-
return new
|
|
5261
|
+
return new k(this.imp.Rotated(t.getImp(), e));
|
|
5259
5262
|
}
|
|
5260
5263
|
Scale(t, e) {
|
|
5261
5264
|
this.imp.Scale(t.getImp(), e);
|
|
5262
5265
|
}
|
|
5263
5266
|
Scaled(t, e) {
|
|
5264
|
-
return new
|
|
5267
|
+
return new k(this.imp.Scaled(t.getImp(), e));
|
|
5265
5268
|
}
|
|
5266
5269
|
Transform(t) {
|
|
5267
5270
|
this.imp.Transform(t.getImp());
|
|
5268
5271
|
}
|
|
5269
5272
|
Transformed(t) {
|
|
5270
|
-
return new
|
|
5273
|
+
return new k(this.imp.Transformed(t.getImp()));
|
|
5271
5274
|
}
|
|
5272
5275
|
TranslateByVec(t) {
|
|
5273
5276
|
this.imp.TranslateByVec(t.getImp());
|
|
5274
5277
|
}
|
|
5275
5278
|
TranslatedByVec(t) {
|
|
5276
|
-
return new
|
|
5279
|
+
return new k(this.imp.TranslatedByVec(t.getImp()));
|
|
5277
5280
|
}
|
|
5278
5281
|
TranslateBy2Points(t, e) {
|
|
5279
5282
|
this.imp.TranslateBy2Points(t.getImp(), e.getImp());
|
|
5280
5283
|
}
|
|
5281
5284
|
TranslatedBy2Points(t, e) {
|
|
5282
|
-
return new
|
|
5285
|
+
return new k(this.imp.TranslatedBy2Points(t.getImp(), e.getImp()));
|
|
5283
5286
|
}
|
|
5284
5287
|
}
|
|
5285
5288
|
class it extends _ {
|
|
5286
5289
|
constructor(t, e, C) {
|
|
5287
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCone())) : t instanceof
|
|
5290
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCone())) : t instanceof k && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeCone(t.getImp(), e, C))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5288
5291
|
}
|
|
5289
5292
|
SetAxis(t) {
|
|
5290
5293
|
this.imp.SetAxis(t.getImp());
|
|
@@ -5320,7 +5323,7 @@ class it extends _ {
|
|
|
5320
5323
|
return new m(this.imp.Location());
|
|
5321
5324
|
}
|
|
5322
5325
|
Position() {
|
|
5323
|
-
return new
|
|
5326
|
+
return new k(this.imp.Position());
|
|
5324
5327
|
}
|
|
5325
5328
|
RefRadius() {
|
|
5326
5329
|
return this.imp.RefRadius();
|
|
@@ -5391,7 +5394,7 @@ class it extends _ {
|
|
|
5391
5394
|
}
|
|
5392
5395
|
class Et extends _ {
|
|
5393
5396
|
constructor(t, e) {
|
|
5394
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCylinder())) : t instanceof
|
|
5397
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCylinder())) : t instanceof k && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeCylinder(t.getImp(), e))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5395
5398
|
}
|
|
5396
5399
|
SetAxis(t) {
|
|
5397
5400
|
this.imp.SetAxis(t.getImp());
|
|
@@ -5421,7 +5424,7 @@ class Et extends _ {
|
|
|
5421
5424
|
return new m(this.imp.Location());
|
|
5422
5425
|
}
|
|
5423
5426
|
Position() {
|
|
5424
|
-
return new
|
|
5427
|
+
return new k(this.imp.Position());
|
|
5425
5428
|
}
|
|
5426
5429
|
Radius() {
|
|
5427
5430
|
return this.imp.Radius();
|
|
@@ -5489,7 +5492,7 @@ class Et extends _ {
|
|
|
5489
5492
|
}
|
|
5490
5493
|
class M extends _ {
|
|
5491
5494
|
constructor(t, e, C, E) {
|
|
5492
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGePlane())) : t instanceof
|
|
5495
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGePlane())) : t instanceof k && arguments.length == 1 ? (super(), this.initTempObject(new s.MdGePlane(t.getImp()))) : t instanceof m && e instanceof Y && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGePlane(t.getImp(), e.getImp()))) : typeof t == "number" && typeof e == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGePlane(t, e, C, E))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5493
5496
|
}
|
|
5494
5497
|
SetAxis(t) {
|
|
5495
5498
|
this.imp.SetAxis(t.getImp());
|
|
@@ -5516,7 +5519,7 @@ class M extends _ {
|
|
|
5516
5519
|
return new m(this.imp.Location());
|
|
5517
5520
|
}
|
|
5518
5521
|
Position() {
|
|
5519
|
-
return new
|
|
5522
|
+
return new k(this.imp.Position());
|
|
5520
5523
|
}
|
|
5521
5524
|
DistanceToPoint(t) {
|
|
5522
5525
|
return this.imp.DistanceToPoint(t.getImp());
|
|
@@ -6052,7 +6055,7 @@ class AC extends _ {
|
|
|
6052
6055
|
return new Yt(this.imp.Shell());
|
|
6053
6056
|
}
|
|
6054
6057
|
Solid() {
|
|
6055
|
-
return new
|
|
6058
|
+
return new kt(this.imp.Solid());
|
|
6056
6059
|
}
|
|
6057
6060
|
BottomFace() {
|
|
6058
6061
|
return new T(this.imp.BottomFace());
|
|
@@ -6410,7 +6413,7 @@ class ge extends _ {
|
|
|
6410
6413
|
return this.imp.Weight(t, e);
|
|
6411
6414
|
}
|
|
6412
6415
|
Weights() {
|
|
6413
|
-
return new
|
|
6416
|
+
return new ft(this.imp.Weights());
|
|
6414
6417
|
}
|
|
6415
6418
|
DN(t, e, C, E) {
|
|
6416
6419
|
return new S(this.imp.DN(t, e, C, E));
|
|
@@ -6870,7 +6873,7 @@ class aC extends _ {
|
|
|
6870
6873
|
arguments.length == 1 ? this.imp.Init(t.getImp()) : arguments.length == 2 ? this.imp.Init(t.getImp(), e) : arguments.length == 3 ? this.imp.Init(t.getImp(), e, C) : arguments.length == 4 ? this.imp.Init(t.getImp(), e, C, E) : arguments.length == 5 && this.imp.Init(t.getImp(), e, C, E, D);
|
|
6871
6874
|
}
|
|
6872
6875
|
Interpolate(t, e, C, E, D) {
|
|
6873
|
-
t instanceof z && arguments.length == 1 ? this.imp.Interpolate(t.getImp()) : t instanceof z && typeof e == "boolean" && arguments.length == 2 ? this.imp.Interpolate(t.getImp(), e) : t instanceof
|
|
6876
|
+
t instanceof z && arguments.length == 1 ? this.imp.Interpolate(t.getImp()) : t instanceof z && typeof e == "boolean" && arguments.length == 2 ? this.imp.Interpolate(t.getImp(), e) : t instanceof ft && typeof e == "number" && typeof C == "number" && typeof E == "number" && typeof D == "number" && this.imp.Interpolate(t.getImp(), e);
|
|
6874
6877
|
}
|
|
6875
6878
|
IsDone() {
|
|
6876
6879
|
return this.imp.IsDone();
|
|
@@ -6991,7 +6994,7 @@ class dC extends _ {
|
|
|
6991
6994
|
}
|
|
6992
6995
|
class Bt extends _ {
|
|
6993
6996
|
constructor(t, e, C, E) {
|
|
6994
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeSphere())) : t instanceof
|
|
6997
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeSphere())) : t instanceof k && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeSphere(t.getImp(), e))) : typeof t == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGeSphere(t, e, C, E))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
6995
6998
|
}
|
|
6996
6999
|
SetLocation(t) {
|
|
6997
7000
|
this.imp.SetLocation(t.getImp());
|
|
@@ -7018,7 +7021,7 @@ class Bt extends _ {
|
|
|
7018
7021
|
return new m(this.imp.Location());
|
|
7019
7022
|
}
|
|
7020
7023
|
Position() {
|
|
7021
|
-
return new
|
|
7024
|
+
return new k(this.imp.Position());
|
|
7022
7025
|
}
|
|
7023
7026
|
Radius() {
|
|
7024
7027
|
return this.imp.Radius();
|
|
@@ -7235,7 +7238,7 @@ class ne {
|
|
|
7235
7238
|
return new Yt(this.imp.Shell(t.getImp()));
|
|
7236
7239
|
}
|
|
7237
7240
|
Solid(t) {
|
|
7238
|
-
return new
|
|
7241
|
+
return new kt(this.imp.Solid(t.getImp()));
|
|
7239
7242
|
}
|
|
7240
7243
|
CompSolid(t) {
|
|
7241
7244
|
return new ae(this.imp.CompSolid(t.getImp()));
|
|
@@ -7252,7 +7255,7 @@ class ne {
|
|
|
7252
7255
|
}
|
|
7253
7256
|
class rt extends _ {
|
|
7254
7257
|
constructor(t, e, C) {
|
|
7255
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeTorus())) : t instanceof
|
|
7258
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeTorus())) : t instanceof k && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeTorus(t.getImp(), e, C))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
7256
7259
|
}
|
|
7257
7260
|
SetAxis(t) {
|
|
7258
7261
|
this.imp.SetAxis(t.getImp());
|
|
@@ -7288,7 +7291,7 @@ class rt extends _ {
|
|
|
7288
7291
|
return new m(this.imp.Location());
|
|
7289
7292
|
}
|
|
7290
7293
|
Position() {
|
|
7291
|
-
return new
|
|
7294
|
+
return new k(this.imp.Position());
|
|
7292
7295
|
}
|
|
7293
7296
|
MajorRadius() {
|
|
7294
7297
|
return this.imp.MajorRadius();
|
|
@@ -7382,7 +7385,7 @@ class wC extends _ {
|
|
|
7382
7385
|
return new Yt(this.imp.Shell());
|
|
7383
7386
|
}
|
|
7384
7387
|
Solid() {
|
|
7385
|
-
return new
|
|
7388
|
+
return new kt(this.imp.Solid());
|
|
7386
7389
|
}
|
|
7387
7390
|
Shape() {
|
|
7388
7391
|
return new u(this.imp.Shape());
|
|
@@ -7410,7 +7413,7 @@ class xt extends _ {
|
|
|
7410
7413
|
return new m(this.imp.Location());
|
|
7411
7414
|
}
|
|
7412
7415
|
Position() {
|
|
7413
|
-
return new
|
|
7416
|
+
return new k(this.imp.Position());
|
|
7414
7417
|
}
|
|
7415
7418
|
}
|
|
7416
7419
|
class Ae {
|
|
@@ -7620,8 +7623,8 @@ class yC extends _ {
|
|
|
7620
7623
|
}
|
|
7621
7624
|
const Yi = new FinalizationRegistry((i) => {
|
|
7622
7625
|
s.mdGeTopo.DestroyObject(i);
|
|
7623
|
-
}),
|
|
7624
|
-
function
|
|
7626
|
+
}), ki = {};
|
|
7627
|
+
function fi(i, t) {
|
|
7625
7628
|
return new Promise(async (e, C) => {
|
|
7626
7629
|
try {
|
|
7627
7630
|
i.locateFile || (i.locateFile = Ci);
|
|
@@ -7653,7 +7656,7 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7653
7656
|
MxCADResbuf: x,
|
|
7654
7657
|
MxCADUtilityClass: Ye,
|
|
7655
7658
|
MxCADUtility: J,
|
|
7656
|
-
MxCADSelectionSetStatus:
|
|
7659
|
+
MxCADSelectionSetStatus: ke,
|
|
7657
7660
|
MxCADSelectionSet: mt,
|
|
7658
7661
|
MxCADUiPrBase: _t,
|
|
7659
7662
|
MxCADUiPrPoint: et,
|
|
@@ -7695,9 +7698,9 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7695
7698
|
McDbArc: zt,
|
|
7696
7699
|
McDbEllipse: Zt,
|
|
7697
7700
|
McDbPoint: pe,
|
|
7698
|
-
FetchAttributes:
|
|
7701
|
+
FetchAttributes: fe,
|
|
7699
7702
|
McObject: Lt,
|
|
7700
|
-
McAppType:
|
|
7703
|
+
McAppType: je,
|
|
7701
7704
|
MxCppType: Ve,
|
|
7702
7705
|
get MxCpp() {
|
|
7703
7706
|
return F;
|
|
@@ -7730,11 +7733,11 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7730
7733
|
MdGeWire: b,
|
|
7731
7734
|
MdGeFace: T,
|
|
7732
7735
|
MdGeShell: Yt,
|
|
7733
|
-
MdGeSolid:
|
|
7736
|
+
MdGeSolid: kt,
|
|
7734
7737
|
MdGeCompSolid: ae,
|
|
7735
7738
|
MdGeCompound: ce,
|
|
7736
7739
|
MdGeMat: Ct,
|
|
7737
|
-
MdGeXYZ:
|
|
7740
|
+
MdGeXYZ: H,
|
|
7738
7741
|
MdGeTrsf: St,
|
|
7739
7742
|
MdGeDir: Y,
|
|
7740
7743
|
MdGeAxis: w,
|
|
@@ -7746,12 +7749,12 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7746
7749
|
MdGeArray1OfPnt: q,
|
|
7747
7750
|
MdGeArray1OfReal: nt,
|
|
7748
7751
|
MdGeArray2OfPnt: z,
|
|
7749
|
-
MdGeArray2OfReal:
|
|
7752
|
+
MdGeArray2OfReal: ft,
|
|
7750
7753
|
MdGeBezierCurve: EC,
|
|
7751
7754
|
MdGeBezierSurface: DC,
|
|
7752
7755
|
MdGeChamfer: BC,
|
|
7753
7756
|
MdGeCircle: W,
|
|
7754
|
-
MdGeCSYS:
|
|
7757
|
+
MdGeCSYS: k,
|
|
7755
7758
|
MdGeCone: it,
|
|
7756
7759
|
MdGeCylinder: Et,
|
|
7757
7760
|
MdGePlane: M,
|
|
@@ -7793,14 +7796,14 @@ const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7793
7796
|
MdGeBRep: Ae,
|
|
7794
7797
|
MdGeColor: It,
|
|
7795
7798
|
MdGeMaterialAspect: yC,
|
|
7796
|
-
loadMxCADassembly3d:
|
|
7799
|
+
loadMxCADassembly3d: fi
|
|
7797
7800
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
7798
7801
|
export {
|
|
7799
7802
|
Qe as Color,
|
|
7800
7803
|
We as ColorIndexType,
|
|
7801
7804
|
Ke as ColorMethod,
|
|
7802
|
-
|
|
7803
|
-
|
|
7805
|
+
fe as FetchAttributes,
|
|
7806
|
+
je as McAppType,
|
|
7804
7807
|
gt as McCmColor,
|
|
7805
7808
|
ie as McDb,
|
|
7806
7809
|
Be as McDbAlignedDimension,
|
|
@@ -7844,7 +7847,7 @@ export {
|
|
|
7844
7847
|
q as MdGeArray1OfPnt,
|
|
7845
7848
|
nt as MdGeArray1OfReal,
|
|
7846
7849
|
z as MdGeArray2OfPnt,
|
|
7847
|
-
|
|
7850
|
+
ft as MdGeArray2OfReal,
|
|
7848
7851
|
w as MdGeAxis,
|
|
7849
7852
|
Ae as MdGeBRep,
|
|
7850
7853
|
Mt as MdGeBSplineCurve,
|
|
@@ -7852,7 +7855,7 @@ export {
|
|
|
7852
7855
|
EC as MdGeBezierCurve,
|
|
7853
7856
|
DC as MdGeBezierSurface,
|
|
7854
7857
|
AC as MdGeBox,
|
|
7855
|
-
|
|
7858
|
+
k as MdGeCSYS,
|
|
7856
7859
|
P as MdGeCSYSR,
|
|
7857
7860
|
BC as MdGeChamfer,
|
|
7858
7861
|
W as MdGeCircle,
|
|
@@ -7894,7 +7897,7 @@ export {
|
|
|
7894
7897
|
dC as MdGeRevol,
|
|
7895
7898
|
u as MdGeShape,
|
|
7896
7899
|
Yt as MdGeShell,
|
|
7897
|
-
|
|
7900
|
+
kt as MdGeSolid,
|
|
7898
7901
|
Bt as MdGeSphere,
|
|
7899
7902
|
IC as MdGeText,
|
|
7900
7903
|
RC as MdGeTextLabel,
|
|
@@ -7906,10 +7909,10 @@ export {
|
|
|
7906
7909
|
pt as MdGeVertex,
|
|
7907
7910
|
wC as MdGeWedge,
|
|
7908
7911
|
b as MdGeWire,
|
|
7909
|
-
|
|
7912
|
+
H as MdGeXYZ,
|
|
7910
7913
|
x as MxCADResbuf,
|
|
7911
7914
|
mt as MxCADSelectionSet,
|
|
7912
|
-
|
|
7915
|
+
ke as MxCADSelectionSetStatus,
|
|
7913
7916
|
QC as MxCADUiPrAngle,
|
|
7914
7917
|
_t as MxCADUiPrBase,
|
|
7915
7918
|
Qt as MxCADUiPrDist,
|
|
@@ -7946,7 +7949,7 @@ export {
|
|
|
7946
7949
|
Ze as getIndexColors,
|
|
7947
7950
|
Xe as getStyle,
|
|
7948
7951
|
ve as loadMxCADassembly,
|
|
7949
|
-
|
|
7952
|
+
fi as loadMxCADassembly3d,
|
|
7950
7953
|
we as saveAsFileDialog,
|
|
7951
7954
|
me as setMcCmColor
|
|
7952
7955
|
};
|