build-dxf 0.1.72 → 0.1.73
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/package.json +1 -1
- package/src/DomEventRegister.js +3 -1
- package/src/build.js +149 -149
- package/src/index.css +2 -10
- package/src/index.js +10 -10
- package/src/index3.js +6449 -7932
package/package.json
CHANGED
package/src/DomEventRegister.js
CHANGED
|
@@ -7,7 +7,7 @@ import { CSS3DObject, CSS3DSprite, CSS3DRenderer } from "three/addons/renderers/
|
|
|
7
7
|
import { CSS2DObject, CSS2DRenderer } from "three/addons/renderers/CSS2DRenderer.js";
|
|
8
8
|
import { OrbitControls } from "three/addons/controls/OrbitControls.js";
|
|
9
9
|
import * as TWEEN from "@tweenjs/tween.js";
|
|
10
|
-
import { C as Component, a as Point,
|
|
10
|
+
import { C as Component, a as Point, n as getDefaultExportFromCjs, A as ArrayMap, V as Variable } from "./build.js";
|
|
11
11
|
import { ref } from "vue";
|
|
12
12
|
const css = `
|
|
13
13
|
.overlay {
|
|
@@ -328,6 +328,8 @@ function requireMobileDetect() {
|
|
|
328
328
|
if (hasRequiredMobileDetect) return mobileDetect.exports;
|
|
329
329
|
hasRequiredMobileDetect = 1;
|
|
330
330
|
(function(module) {
|
|
331
|
+
/*!mobile-detect v1.4.5 2021-03-13*/
|
|
332
|
+
/*!@license Copyright 2013, Heinrich Goebl, License: MIT, see https://github.com/hgoebl/mobile-detect.js*/
|
|
331
333
|
(function(define, undefined$1) {
|
|
332
334
|
define(function() {
|
|
333
335
|
var impl = {};
|
package/src/build.js
CHANGED
|
@@ -171,7 +171,7 @@ class GCHandler {
|
|
|
171
171
|
}) : null;
|
|
172
172
|
static add(target, opt) {
|
|
173
173
|
if (!hasFinalizationRegistry) return;
|
|
174
|
-
const token =
|
|
174
|
+
const token = Symbol();
|
|
175
175
|
const { key = token, value, onGc } = opt;
|
|
176
176
|
this.remove(key);
|
|
177
177
|
this.map.set(key, token);
|
|
@@ -203,7 +203,7 @@ class PointVirtualGrid {
|
|
|
203
203
|
id;
|
|
204
204
|
constructor(gridSize = 2) {
|
|
205
205
|
this.gridSize = gridSize;
|
|
206
|
-
this.id =
|
|
206
|
+
this.id = Symbol("id");
|
|
207
207
|
GCHandler.add(this, {
|
|
208
208
|
value: {
|
|
209
209
|
map: this.map,
|
|
@@ -687,7 +687,7 @@ class Quadtree {
|
|
|
687
687
|
color = [Math.random(), Math.random(), Math.random()];
|
|
688
688
|
// 颜色
|
|
689
689
|
id;
|
|
690
|
-
constructor(bounds, capacity = 8, maxDepth = 10, depth = 1, id =
|
|
690
|
+
constructor(bounds, capacity = 8, maxDepth = 10, depth = 1, id = Symbol("id")) {
|
|
691
691
|
this.bounds = bounds;
|
|
692
692
|
this.capacity = capacity;
|
|
693
693
|
this.depth = depth;
|
|
@@ -1228,7 +1228,7 @@ function addLengthAsyncClear(line) {
|
|
|
1228
1228
|
});
|
|
1229
1229
|
set$1.add(line);
|
|
1230
1230
|
}
|
|
1231
|
-
const LINE_SYMBOL =
|
|
1231
|
+
const LINE_SYMBOL = Symbol("LINE_SYMBOL");
|
|
1232
1232
|
class LineSegment {
|
|
1233
1233
|
static get LINE_SYMBOL() {
|
|
1234
1234
|
return LINE_SYMBOL;
|
|
@@ -3108,13 +3108,7 @@ function coordEach(geojson, callback, excludeWrapCoord) {
|
|
|
3108
3108
|
if (geojson === null) return;
|
|
3109
3109
|
var j, k, l, geometry, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type = geojson.type, isFeatureCollection = type === "FeatureCollection", isFeature = type === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
|
|
3110
3110
|
for (var featureIndex = 0; featureIndex < stop; featureIndex++) {
|
|
3111
|
-
geometryMaybeCollection = isFeatureCollection ?
|
|
3112
|
-
// @ts-expect-error: Known type conflict
|
|
3113
|
-
geojson.features[featureIndex].geometry
|
|
3114
|
-
) : isFeature ? (
|
|
3115
|
-
// @ts-expect-error: Known type conflict
|
|
3116
|
-
geojson.geometry
|
|
3117
|
-
) : geojson;
|
|
3111
|
+
geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;
|
|
3118
3112
|
isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
|
|
3119
3113
|
stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;
|
|
3120
3114
|
for (var geomIndex = 0; geomIndex < stopG; geomIndex++) {
|
|
@@ -3129,16 +3123,13 @@ function coordEach(geojson, callback, excludeWrapCoord) {
|
|
|
3129
3123
|
case null:
|
|
3130
3124
|
break;
|
|
3131
3125
|
case "Point":
|
|
3132
|
-
if (
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
geometryIndex
|
|
3140
|
-
) === false
|
|
3141
|
-
)
|
|
3126
|
+
if (callback(
|
|
3127
|
+
coords,
|
|
3128
|
+
coordIndex,
|
|
3129
|
+
featureIndex,
|
|
3130
|
+
multiFeatureIndex,
|
|
3131
|
+
geometryIndex
|
|
3132
|
+
) === false)
|
|
3142
3133
|
return false;
|
|
3143
3134
|
coordIndex++;
|
|
3144
3135
|
multiFeatureIndex++;
|
|
@@ -3146,16 +3137,13 @@ function coordEach(geojson, callback, excludeWrapCoord) {
|
|
|
3146
3137
|
case "LineString":
|
|
3147
3138
|
case "MultiPoint":
|
|
3148
3139
|
for (j = 0; j < coords.length; j++) {
|
|
3149
|
-
if (
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
geometryIndex
|
|
3157
|
-
) === false
|
|
3158
|
-
)
|
|
3140
|
+
if (callback(
|
|
3141
|
+
coords[j],
|
|
3142
|
+
coordIndex,
|
|
3143
|
+
featureIndex,
|
|
3144
|
+
multiFeatureIndex,
|
|
3145
|
+
geometryIndex
|
|
3146
|
+
) === false)
|
|
3159
3147
|
return false;
|
|
3160
3148
|
coordIndex++;
|
|
3161
3149
|
if (geomType === "MultiPoint") multiFeatureIndex++;
|
|
@@ -3166,16 +3154,13 @@ function coordEach(geojson, callback, excludeWrapCoord) {
|
|
|
3166
3154
|
case "MultiLineString":
|
|
3167
3155
|
for (j = 0; j < coords.length; j++) {
|
|
3168
3156
|
for (k = 0; k < coords[j].length - wrapShrink; k++) {
|
|
3169
|
-
if (
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
geometryIndex
|
|
3177
|
-
) === false
|
|
3178
|
-
)
|
|
3157
|
+
if (callback(
|
|
3158
|
+
coords[j][k],
|
|
3159
|
+
coordIndex,
|
|
3160
|
+
featureIndex,
|
|
3161
|
+
multiFeatureIndex,
|
|
3162
|
+
geometryIndex
|
|
3163
|
+
) === false)
|
|
3179
3164
|
return false;
|
|
3180
3165
|
coordIndex++;
|
|
3181
3166
|
}
|
|
@@ -3189,16 +3174,13 @@ function coordEach(geojson, callback, excludeWrapCoord) {
|
|
|
3189
3174
|
geometryIndex = 0;
|
|
3190
3175
|
for (k = 0; k < coords[j].length; k++) {
|
|
3191
3176
|
for (l = 0; l < coords[j][k].length - wrapShrink; l++) {
|
|
3192
|
-
if (
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
geometryIndex
|
|
3200
|
-
) === false
|
|
3201
|
-
)
|
|
3177
|
+
if (callback(
|
|
3178
|
+
coords[j][k][l],
|
|
3179
|
+
coordIndex,
|
|
3180
|
+
featureIndex,
|
|
3181
|
+
multiFeatureIndex,
|
|
3182
|
+
geometryIndex
|
|
3183
|
+
) === false)
|
|
3202
3184
|
return false;
|
|
3203
3185
|
coordIndex++;
|
|
3204
3186
|
}
|
|
@@ -3209,10 +3191,7 @@ function coordEach(geojson, callback, excludeWrapCoord) {
|
|
|
3209
3191
|
break;
|
|
3210
3192
|
case "GeometryCollection":
|
|
3211
3193
|
for (j = 0; j < geometry.geometries.length; j++)
|
|
3212
|
-
if (
|
|
3213
|
-
// @ts-expect-error: Known type conflict
|
|
3214
|
-
coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false
|
|
3215
|
-
)
|
|
3194
|
+
if (coordEach(geometry.geometries[j], callback, excludeWrapCoord) === false)
|
|
3216
3195
|
return false;
|
|
3217
3196
|
break;
|
|
3218
3197
|
default:
|
|
@@ -3231,50 +3210,22 @@ function coordAll(geojson) {
|
|
|
3231
3210
|
function geomEach(geojson, callback) {
|
|
3232
3211
|
var i, j, g, geometry, stopG, geometryMaybeCollection, isGeometryCollection, featureProperties, featureBBox, featureId, featureIndex = 0, isFeatureCollection = geojson.type === "FeatureCollection", isFeature = geojson.type === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
|
|
3233
3212
|
for (i = 0; i < stop; i++) {
|
|
3234
|
-
geometryMaybeCollection = isFeatureCollection ?
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
// @ts-expect-error: Known type conflict
|
|
3239
|
-
geojson.geometry
|
|
3240
|
-
) : geojson;
|
|
3241
|
-
featureProperties = isFeatureCollection ? (
|
|
3242
|
-
// @ts-expect-error: Known type conflict
|
|
3243
|
-
geojson.features[i].properties
|
|
3244
|
-
) : isFeature ? (
|
|
3245
|
-
// @ts-expect-error: Known type conflict
|
|
3246
|
-
geojson.properties
|
|
3247
|
-
) : {};
|
|
3248
|
-
featureBBox = isFeatureCollection ? (
|
|
3249
|
-
// @ts-expect-error: Known type conflict
|
|
3250
|
-
geojson.features[i].bbox
|
|
3251
|
-
) : isFeature ? (
|
|
3252
|
-
// @ts-expect-error: Known type conflict
|
|
3253
|
-
geojson.bbox
|
|
3254
|
-
) : void 0;
|
|
3255
|
-
featureId = isFeatureCollection ? (
|
|
3256
|
-
// @ts-expect-error: Known type conflict
|
|
3257
|
-
geojson.features[i].id
|
|
3258
|
-
) : isFeature ? (
|
|
3259
|
-
// @ts-expect-error: Known type conflict
|
|
3260
|
-
geojson.id
|
|
3261
|
-
) : void 0;
|
|
3213
|
+
geometryMaybeCollection = isFeatureCollection ? geojson.features[i].geometry : isFeature ? geojson.geometry : geojson;
|
|
3214
|
+
featureProperties = isFeatureCollection ? geojson.features[i].properties : isFeature ? geojson.properties : {};
|
|
3215
|
+
featureBBox = isFeatureCollection ? geojson.features[i].bbox : isFeature ? geojson.bbox : void 0;
|
|
3216
|
+
featureId = isFeatureCollection ? geojson.features[i].id : isFeature ? geojson.id : void 0;
|
|
3262
3217
|
isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
|
|
3263
3218
|
stopG = isGeometryCollection ? geometryMaybeCollection.geometries.length : 1;
|
|
3264
3219
|
for (g = 0; g < stopG; g++) {
|
|
3265
3220
|
geometry = isGeometryCollection ? geometryMaybeCollection.geometries[g] : geometryMaybeCollection;
|
|
3266
3221
|
if (geometry === null) {
|
|
3267
|
-
if (
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
featureBBox,
|
|
3275
|
-
featureId
|
|
3276
|
-
) === false
|
|
3277
|
-
)
|
|
3222
|
+
if (callback(
|
|
3223
|
+
null,
|
|
3224
|
+
featureIndex,
|
|
3225
|
+
featureProperties,
|
|
3226
|
+
featureBBox,
|
|
3227
|
+
featureId
|
|
3228
|
+
) === false)
|
|
3278
3229
|
return false;
|
|
3279
3230
|
continue;
|
|
3280
3231
|
}
|
|
@@ -3285,31 +3236,25 @@ function geomEach(geojson, callback) {
|
|
|
3285
3236
|
case "Polygon":
|
|
3286
3237
|
case "MultiLineString":
|
|
3287
3238
|
case "MultiPolygon": {
|
|
3288
|
-
if (
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
featureId
|
|
3296
|
-
) === false
|
|
3297
|
-
)
|
|
3239
|
+
if (callback(
|
|
3240
|
+
geometry,
|
|
3241
|
+
featureIndex,
|
|
3242
|
+
featureProperties,
|
|
3243
|
+
featureBBox,
|
|
3244
|
+
featureId
|
|
3245
|
+
) === false)
|
|
3298
3246
|
return false;
|
|
3299
3247
|
break;
|
|
3300
3248
|
}
|
|
3301
3249
|
case "GeometryCollection": {
|
|
3302
3250
|
for (j = 0; j < geometry.geometries.length; j++) {
|
|
3303
|
-
if (
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
featureId
|
|
3311
|
-
) === false
|
|
3312
|
-
)
|
|
3251
|
+
if (callback(
|
|
3252
|
+
geometry.geometries[j],
|
|
3253
|
+
featureIndex,
|
|
3254
|
+
featureProperties,
|
|
3255
|
+
featureBBox,
|
|
3256
|
+
featureId
|
|
3257
|
+
) === false)
|
|
3313
3258
|
return false;
|
|
3314
3259
|
}
|
|
3315
3260
|
break;
|
|
@@ -3330,7 +3275,6 @@ function geomReduce(geojson, callback, initialValue) {
|
|
|
3330
3275
|
previousValue = currentGeometry;
|
|
3331
3276
|
else
|
|
3332
3277
|
previousValue = callback(
|
|
3333
|
-
// @ts-expect-error: Known type conflict
|
|
3334
3278
|
previousValue,
|
|
3335
3279
|
currentGeometry,
|
|
3336
3280
|
featureIndex,
|
|
@@ -3381,7 +3325,7 @@ var hasRequiredRbush_min;
|
|
|
3381
3325
|
function requireRbush_min() {
|
|
3382
3326
|
if (hasRequiredRbush_min) return rbush_min$1.exports;
|
|
3383
3327
|
hasRequiredRbush_min = 1;
|
|
3384
|
-
(function(module, exports
|
|
3328
|
+
(function(module, exports) {
|
|
3385
3329
|
!(function(t2, i) {
|
|
3386
3330
|
module.exports = i();
|
|
3387
3331
|
})(rbush_min, function() {
|
|
@@ -3726,9 +3670,9 @@ var hasRequiredOrient2d_min;
|
|
|
3726
3670
|
function requireOrient2d_min() {
|
|
3727
3671
|
if (hasRequiredOrient2d_min) return orient2d_min$1.exports;
|
|
3728
3672
|
hasRequiredOrient2d_min = 1;
|
|
3729
|
-
(function(module, exports
|
|
3673
|
+
(function(module, exports) {
|
|
3730
3674
|
!(function(t2, e) {
|
|
3731
|
-
e(exports
|
|
3675
|
+
e(exports);
|
|
3732
3676
|
})(orient2d_min, function(t2) {
|
|
3733
3677
|
const e = 134217729, n = 33306690738754706e-32;
|
|
3734
3678
|
function r2(t3, e2, n2, r3, o2) {
|
|
@@ -8499,6 +8443,9 @@ LoadModel.addNameMap("window", "窗户");
|
|
|
8499
8443
|
LoadModel.addNameMap("wall", "单线墙");
|
|
8500
8444
|
LoadModel.addNameMap("doubleWall", "双线墙");
|
|
8501
8445
|
LoadModel.addNameMap("balcony", "阳台");
|
|
8446
|
+
LoadModel.addNameMap("balconyFilm", "阳台片");
|
|
8447
|
+
LoadModel.addNameMap("balconyFilmFilm", "阳台片片");
|
|
8448
|
+
LoadModel.addNameMap("balconyFilmFilmFilm", "阳台片片片");
|
|
8502
8449
|
class BayWindow {
|
|
8503
8450
|
bayWindowExpansion = [];
|
|
8504
8451
|
dottedLinePoints = [];
|
|
@@ -10055,6 +10002,8 @@ class Scenario {
|
|
|
10055
10002
|
}
|
|
10056
10003
|
// 安装阳台
|
|
10057
10004
|
installBalconys(data, index2) {
|
|
10005
|
+
let balconyGroup = new Group$1();
|
|
10006
|
+
balconyGroup.name = `阳台${index2}`;
|
|
10058
10007
|
const point1 = new THREE.Vector3(data.start.x, data.start.y, 0);
|
|
10059
10008
|
const point2 = new THREE.Vector3(data.end.x, data.end.y, 0);
|
|
10060
10009
|
new THREE.Vector3(data.center.x, data.center.y, 0);
|
|
@@ -10066,19 +10015,57 @@ class Scenario {
|
|
|
10066
10015
|
const wallWidth = data.userData.wallWidth ? data.userData.wallWidth : 0.18;
|
|
10067
10016
|
(data.userData.groundClearance ?? this.WindowGroundHeight) + this.height;
|
|
10068
10017
|
let menModel = this.balconyModely.clone();
|
|
10069
|
-
if (
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10018
|
+
if (distance2 < 1.2) {
|
|
10019
|
+
if (data.center && distance2) {
|
|
10020
|
+
menModel.position.set(data.center.x, data.center.y, 0);
|
|
10021
|
+
const box32 = new THREE.Box3();
|
|
10022
|
+
box32.setFromObject(menModel);
|
|
10023
|
+
let size2 = new THREE.Vector3();
|
|
10024
|
+
box32.getSize(size2);
|
|
10025
|
+
menModel.rotation.x = Math.PI / 2;
|
|
10026
|
+
menModel.rotation.y = angleRad;
|
|
10027
|
+
menModel.scale.set(distance2 / size2.x, height / size2.y, wallWidth / size2.z);
|
|
10028
|
+
menModel.position.set(data.center.x, data.center.y, this.height);
|
|
10029
|
+
menModel.name = `阳台_${index2}`;
|
|
10030
|
+
menModel.userData.category = "balcony";
|
|
10031
|
+
balconyGroup.add(menModel);
|
|
10032
|
+
this.group.add(balconyGroup);
|
|
10033
|
+
}
|
|
10034
|
+
} else {
|
|
10035
|
+
let splitLineInto7Points = function(startPoint, endPoint) {
|
|
10036
|
+
const points2 = [];
|
|
10037
|
+
const startVec = new THREE.Vector3(startPoint.x, startPoint.y, startPoint.z);
|
|
10038
|
+
const endVec = new THREE.Vector3(endPoint.x, endPoint.y, endPoint.z);
|
|
10039
|
+
for (let i = 0; i <= npc; i++) {
|
|
10040
|
+
const fraction = i / npc;
|
|
10041
|
+
const point3 = new THREE.Vector3();
|
|
10042
|
+
point3.lerpVectors(startVec, endVec, fraction);
|
|
10043
|
+
points2.push(point3);
|
|
10044
|
+
}
|
|
10045
|
+
return points2;
|
|
10046
|
+
};
|
|
10047
|
+
let npc = 0;
|
|
10048
|
+
npc = distance2 / 0.8;
|
|
10049
|
+
npc = Math.round(npc);
|
|
10050
|
+
const points = splitLineInto7Points(point1, point2);
|
|
10051
|
+
for (let o = 0; o < points.length - 1; o++) {
|
|
10052
|
+
const spacing = points[o].distanceTo(points[o + 1]);
|
|
10053
|
+
const center = new THREE.Vector3();
|
|
10054
|
+
center.lerpVectors(points[o], points[o + 1], 0.5);
|
|
10055
|
+
let balconyModel = this.balconyModely.clone();
|
|
10056
|
+
const box32 = new THREE.Box3();
|
|
10057
|
+
box32.setFromObject(menModel);
|
|
10058
|
+
let size2 = new THREE.Vector3();
|
|
10059
|
+
box32.getSize(size2);
|
|
10060
|
+
balconyModel.rotation.x = Math.PI / 2;
|
|
10061
|
+
balconyModel.rotation.y = angleRad;
|
|
10062
|
+
balconyModel.scale.set(spacing / size2.x, height / size2.y, wallWidth / size2.z);
|
|
10063
|
+
balconyModel.position.set(center.x, center.y, this.height);
|
|
10064
|
+
balconyModel.name = `阳台_${index2}`;
|
|
10065
|
+
balconyModel.userData.category = "balcony";
|
|
10066
|
+
balconyGroup.add(balconyModel);
|
|
10067
|
+
}
|
|
10068
|
+
this.group.add(balconyGroup);
|
|
10082
10069
|
}
|
|
10083
10070
|
}
|
|
10084
10071
|
// 放置柜子
|
|
@@ -10517,7 +10504,7 @@ class Scenario {
|
|
|
10517
10504
|
}
|
|
10518
10505
|
// 获取阳台模型
|
|
10519
10506
|
async balconyModelLoader() {
|
|
10520
|
-
this.balconyModely = await LoadModel.loadGlb("
|
|
10507
|
+
this.balconyModely = await LoadModel.loadGlb("balconyFilmFilmFilm");
|
|
10521
10508
|
}
|
|
10522
10509
|
damian() {
|
|
10523
10510
|
const planeGeometry = new THREE.BufferGeometry();
|
|
@@ -13383,6 +13370,13 @@ function yo() {
|
|
|
13383
13370
|
function un(t2) {
|
|
13384
13371
|
throw new Error("Cannot convert value ".concat(t2, " into a Fraction, no class 'Fraction' provided."));
|
|
13385
13372
|
}
|
|
13373
|
+
/*!
|
|
13374
|
+
* decimal.js v10.6.0
|
|
13375
|
+
* An arbitrary-precision Decimal type for JavaScript.
|
|
13376
|
+
* https://github.com/MikeMcl/decimal.js
|
|
13377
|
+
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
13378
|
+
* MIT Licence
|
|
13379
|
+
*/
|
|
13386
13380
|
var Te = 9e15, De = 1e9, Xn = "0123456789abcdef", hn = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Dn = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", $n = {
|
|
13387
13381
|
// These values must be integers within the stated ranges (inclusive).
|
|
13388
13382
|
// Most of these values can be changed at run-time using the `Decimal.config` method.
|
|
@@ -14391,7 +14385,7 @@ function ms(t2) {
|
|
|
14391
14385
|
function gs(t2) {
|
|
14392
14386
|
return H(t2 = new this(t2), t2.e + 1, 1);
|
|
14393
14387
|
}
|
|
14394
|
-
O[
|
|
14388
|
+
O[Symbol.for("nodejs.util.inspect.custom")] = O.toString;
|
|
14395
14389
|
O[Symbol.toStringTag] = "Decimal";
|
|
14396
14390
|
var Re = O.constructor = bi($n);
|
|
14397
14391
|
hn = new Re(hn);
|
|
@@ -20253,6 +20247,12 @@ class OBB2 extends OBB$1 {
|
|
|
20253
20247
|
}
|
|
20254
20248
|
}
|
|
20255
20249
|
const matrix4 = new THREE.Matrix4(), quat = new THREE.Quaternion(), euler = new THREE.Euler(), scale = new THREE.Vector3(1, 1, 1), vec3 = new THREE.Vector3(), box3$1 = new THREE.Box3();
|
|
20250
|
+
/**
|
|
20251
|
+
* sparse-octree v7.1.8 build Sun Jun 04 2023
|
|
20252
|
+
* https://github.com/vanruesc/sparse-octree
|
|
20253
|
+
* Copyright 2016 Raoul van Rüschen
|
|
20254
|
+
* @license Zlib
|
|
20255
|
+
*/
|
|
20256
20256
|
var layout = [
|
|
20257
20257
|
new Uint8Array([0, 0, 0]),
|
|
20258
20258
|
new Uint8Array([0, 0, 1]),
|
|
@@ -21705,24 +21705,24 @@ export {
|
|
|
21705
21705
|
createQuadtree as d,
|
|
21706
21706
|
Lines as e,
|
|
21707
21707
|
recomputedWindow as f,
|
|
21708
|
-
|
|
21709
|
-
|
|
21710
|
-
|
|
21711
|
-
|
|
21712
|
-
|
|
21713
|
-
|
|
21708
|
+
drawText$1 as g,
|
|
21709
|
+
LineSegmentUndirectedGraph as h,
|
|
21710
|
+
mergeLineUserData as i,
|
|
21711
|
+
mmTom as j,
|
|
21712
|
+
PRE_PROCESSOR as k,
|
|
21713
|
+
CommandManager as l,
|
|
21714
21714
|
mToMm as m,
|
|
21715
|
-
|
|
21716
|
-
|
|
21717
|
-
|
|
21715
|
+
getDefaultExportFromCjs as n,
|
|
21716
|
+
createEditor as o,
|
|
21717
|
+
getModels as p,
|
|
21718
21718
|
buildJson as q,
|
|
21719
21719
|
recomputedWindowCenter as r,
|
|
21720
|
-
|
|
21721
|
-
|
|
21720
|
+
getFileAll as s,
|
|
21721
|
+
getGlobalDxfSystem as t,
|
|
21722
21722
|
uuid as u,
|
|
21723
|
-
|
|
21724
|
-
|
|
21725
|
-
|
|
21726
|
-
|
|
21727
|
-
|
|
21723
|
+
hasCircle as v,
|
|
21724
|
+
index as w,
|
|
21725
|
+
index$2 as x,
|
|
21726
|
+
DxfSystem as y,
|
|
21727
|
+
components as z
|
|
21728
21728
|
};
|