build-dxf 0.1.22 → 0.1.24
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/.htaccess +0 -0
- package/nginx.htaccess +0 -0
- package/package.json +1 -1
- package/src/DomEventRegister.js +4 -5
- package/src/build.d.ts +1 -0
- package/src/build.js +6718 -3078
- package/src/components/DragContainer.vue.d.ts +44 -0
- package/src/index.css +111 -66
- package/src/index.js +10 -10
- package/src/index2.js +0 -2
- package/src/index3.js +658 -226
- package/src/utils/DxfSystem/components/CorrectionDxf.d.ts +1 -1
- package/src/utils/DxfSystem/components/Dxf.d.ts +3 -3
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PropertiesPanel.d.ts +33 -0
- package/src/utils/DxfSystem/plugin/Editor/components/index.d.ts +1 -0
- package/src/utils/DxfSystem/plugin/Editor/pages/EditorTool.vue.d.ts +1 -4
- package/src/utils/DxfSystem/plugin/Editor/pages/PropertiesPanel.vue.d.ts +16 -0
- package/src/utils/DxfSystem/plugin/Editor/pages/components/Input.vue.d.ts +13 -0
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/DomEventRegister.d.ts +1 -2
- package/src/utils/DxfSystem/type.d.ts +31 -27
- package/src/utils/DxfSystem/utils/BoundExt.d.ts +0 -4
- package/src/utils/DxfSystem/utils/BoundExt02.d.ts +46 -0
- package/src/utils/DxfSystem/utils/DoorFind.d.ts +4 -3
- package/src/utils/DxfSystem/utils/index.d.ts +1 -1
- package/src/utils/DxfSystem/utils/lineSegmentClipping.d.ts +1 -1
- package/src/utils/LineSegment.d.ts +1 -1
- package/src/utils/OBB.d.ts +30 -0
- package/src/utils/{PointCloud.d.ts → PCSparseOctree.d.ts} +2 -29
- package/src/utils/StorageHelper.d.ts +6 -0
- package/src/utils/index.d.ts +2 -0
- package/src/utils/isMobile.d.ts +1 -0
- package/src/utils/modelScenario/scenario.d.ts +2 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name?: string;
|
|
3
|
+
title: string;
|
|
4
|
+
position?: {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_defaults: {
|
|
10
|
+
showContent: boolean;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_PublicProps = {
|
|
13
|
+
"showContent"?: typeof __VLS_defaults['showContent'];
|
|
14
|
+
} & __VLS_Props;
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
icon?(_: {}): any;
|
|
19
|
+
default?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {
|
|
22
|
+
elRef: HTMLDivElement;
|
|
23
|
+
toolBarRef: HTMLDivElement;
|
|
24
|
+
};
|
|
25
|
+
rootEl: HTMLDivElement;
|
|
26
|
+
};
|
|
27
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
28
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
clickIcon: (...args: any[]) => void;
|
|
30
|
+
"update:showContent": (value: boolean) => void;
|
|
31
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
|
+
onClickIcon?: ((...args: any[]) => any) | undefined;
|
|
33
|
+
"onUpdate:showContent"?: ((value: boolean) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
35
|
+
elRef: HTMLDivElement;
|
|
36
|
+
toolBarRef: HTMLDivElement;
|
|
37
|
+
}, HTMLDivElement>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
package/src/index.css
CHANGED
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
--tw-drop-shadow-color: initial;
|
|
24
24
|
--tw-drop-shadow-alpha: 100%;
|
|
25
25
|
--tw-drop-shadow-size: initial;
|
|
26
|
+
--tw-outline-style: solid;
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
@layer theme {
|
|
31
32
|
:root, :host {
|
|
32
|
-
--color-black: #000;
|
|
33
33
|
--color-white: #fff;
|
|
34
34
|
--spacing: .25rem;
|
|
35
35
|
--font-weight-bold: 700;
|
|
@@ -105,10 +105,6 @@
|
|
|
105
105
|
right: 10px;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.bottom-\[10px\] {
|
|
109
|
-
bottom: 10px;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
108
|
.bottom-\[20px\] {
|
|
113
109
|
bottom: 20px;
|
|
114
110
|
}
|
|
@@ -117,10 +113,6 @@
|
|
|
117
113
|
left: calc(var(--spacing) * 0);
|
|
118
114
|
}
|
|
119
115
|
|
|
120
|
-
.left-\[10px\] {
|
|
121
|
-
left: 10px;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
116
|
.left-\[20px\] {
|
|
125
117
|
left: 20px;
|
|
126
118
|
}
|
|
@@ -179,10 +171,22 @@
|
|
|
179
171
|
margin-top: 10px;
|
|
180
172
|
}
|
|
181
173
|
|
|
174
|
+
.mr-\[5px\] {
|
|
175
|
+
margin-right: 5px;
|
|
176
|
+
}
|
|
177
|
+
|
|
182
178
|
.mr-\[10px\] {
|
|
183
179
|
margin-right: 10px;
|
|
184
180
|
}
|
|
185
181
|
|
|
182
|
+
.mr-\[20px\] {
|
|
183
|
+
margin-right: 20px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.mb-\[5px\] {
|
|
187
|
+
margin-bottom: 5px;
|
|
188
|
+
}
|
|
189
|
+
|
|
186
190
|
.ml-\[1\.4em\] {
|
|
187
191
|
margin-left: 1.4em;
|
|
188
192
|
}
|
|
@@ -191,18 +195,14 @@
|
|
|
191
195
|
margin-left: 5px;
|
|
192
196
|
}
|
|
193
197
|
|
|
194
|
-
.ml-\[
|
|
195
|
-
margin-left:
|
|
198
|
+
.ml-\[20px\] {
|
|
199
|
+
margin-left: 20px;
|
|
196
200
|
}
|
|
197
201
|
|
|
198
202
|
.box-border {
|
|
199
203
|
box-sizing: border-box;
|
|
200
204
|
}
|
|
201
205
|
|
|
202
|
-
.block {
|
|
203
|
-
display: block;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
206
|
.flex {
|
|
207
207
|
display: flex;
|
|
208
208
|
}
|
|
@@ -211,10 +211,6 @@
|
|
|
211
211
|
display: grid;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
.inline-block {
|
|
215
|
-
display: inline-block;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
214
|
.table {
|
|
219
215
|
display: table;
|
|
220
216
|
}
|
|
@@ -234,11 +230,20 @@
|
|
|
234
230
|
height: 14px;
|
|
235
231
|
}
|
|
236
232
|
|
|
233
|
+
.size-\[16px\] {
|
|
234
|
+
width: 16px;
|
|
235
|
+
height: 16px;
|
|
236
|
+
}
|
|
237
|
+
|
|
237
238
|
.size-\[20px\] {
|
|
238
239
|
width: 20px;
|
|
239
240
|
height: 20px;
|
|
240
241
|
}
|
|
241
242
|
|
|
243
|
+
.h-\[20px\] {
|
|
244
|
+
height: 20px;
|
|
245
|
+
}
|
|
246
|
+
|
|
242
247
|
.h-\[100\%\] {
|
|
243
248
|
height: 100%;
|
|
244
249
|
}
|
|
@@ -251,6 +256,14 @@
|
|
|
251
256
|
height: 100%;
|
|
252
257
|
}
|
|
253
258
|
|
|
259
|
+
.max-h-\[300px\] {
|
|
260
|
+
max-height: 300px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.w-\[50px\] {
|
|
264
|
+
width: 50px;
|
|
265
|
+
}
|
|
266
|
+
|
|
254
267
|
.w-\[100\%\] {
|
|
255
268
|
width: 100%;
|
|
256
269
|
}
|
|
@@ -271,22 +284,22 @@
|
|
|
271
284
|
width: 100%;
|
|
272
285
|
}
|
|
273
286
|
|
|
274
|
-
.max-w-\[150px\] {
|
|
275
|
-
max-width: 150px;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
287
|
.max-w-\[200px\] {
|
|
279
288
|
max-width: 200px;
|
|
280
289
|
}
|
|
281
290
|
|
|
282
|
-
.max-w-\[260px\] {
|
|
283
|
-
max-width: 260px;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
291
|
.min-w-\[150px\] {
|
|
287
292
|
min-width: 150px;
|
|
288
293
|
}
|
|
289
294
|
|
|
295
|
+
.min-w-\[200px\] {
|
|
296
|
+
min-width: 200px;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.flex-1 {
|
|
300
|
+
flex: 1;
|
|
301
|
+
}
|
|
302
|
+
|
|
290
303
|
.flex-shrink {
|
|
291
304
|
flex-shrink: 1;
|
|
292
305
|
}
|
|
@@ -351,6 +364,10 @@
|
|
|
351
364
|
overflow: hidden;
|
|
352
365
|
}
|
|
353
366
|
|
|
367
|
+
.overflow-y-auto {
|
|
368
|
+
overflow-y: auto;
|
|
369
|
+
}
|
|
370
|
+
|
|
354
371
|
.rounded-\[2px\] {
|
|
355
372
|
border-radius: 2px;
|
|
356
373
|
}
|
|
@@ -367,15 +384,33 @@
|
|
|
367
384
|
border-radius: 8px;
|
|
368
385
|
}
|
|
369
386
|
|
|
387
|
+
.rounded-\[10px\] {
|
|
388
|
+
border-radius: 10px;
|
|
389
|
+
}
|
|
390
|
+
|
|
370
391
|
.rounded-\[50px\] {
|
|
371
392
|
border-radius: 50px;
|
|
372
393
|
}
|
|
373
394
|
|
|
395
|
+
.rounded-\[100px\] {
|
|
396
|
+
border-radius: 100px;
|
|
397
|
+
}
|
|
398
|
+
|
|
374
399
|
.rounded-lg {
|
|
375
400
|
border-radius: var(--radius-lg);
|
|
376
401
|
}
|
|
377
402
|
|
|
378
|
-
.border
|
|
403
|
+
.border {
|
|
404
|
+
border-style: var(--tw-border-style);
|
|
405
|
+
border-width: 1px;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.border-0 {
|
|
409
|
+
border-style: var(--tw-border-style);
|
|
410
|
+
border-width: 0;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.border-1 {
|
|
379
414
|
border-style: var(--tw-border-style);
|
|
380
415
|
border-width: 1px;
|
|
381
416
|
}
|
|
@@ -402,10 +437,6 @@
|
|
|
402
437
|
border-bottom-color: #eee;
|
|
403
438
|
}
|
|
404
439
|
|
|
405
|
-
.border-b-\[rgba\(255\,255\,255\,0\.1\)\] {
|
|
406
|
-
border-bottom-color: #ffffff1a;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
440
|
.\!bg-\[var\(--primary-color\)\] {
|
|
410
441
|
background-color: var(--primary-color) !important;
|
|
411
442
|
}
|
|
@@ -414,6 +445,10 @@
|
|
|
414
445
|
background-color: #ccc;
|
|
415
446
|
}
|
|
416
447
|
|
|
448
|
+
.bg-\[\#e9e9e9\] {
|
|
449
|
+
background-color: #e9e9e9;
|
|
450
|
+
}
|
|
451
|
+
|
|
417
452
|
.bg-\[\#f0f0f0\] {
|
|
418
453
|
background-color: #f0f0f0;
|
|
419
454
|
}
|
|
@@ -422,14 +457,8 @@
|
|
|
422
457
|
background-color: var(--el-color-primary);
|
|
423
458
|
}
|
|
424
459
|
|
|
425
|
-
.bg
|
|
426
|
-
background-color: #
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
430
|
-
.bg-black\/15 {
|
|
431
|
-
background-color: color-mix(in oklab, var(--color-black) 15%, transparent);
|
|
432
|
-
}
|
|
460
|
+
.bg-\[whitesmoke\] {
|
|
461
|
+
background-color: #f5f5f5;
|
|
433
462
|
}
|
|
434
463
|
|
|
435
464
|
.bg-white {
|
|
@@ -450,12 +479,12 @@
|
|
|
450
479
|
padding: 0 5px;
|
|
451
480
|
}
|
|
452
481
|
|
|
453
|
-
.p-\[
|
|
454
|
-
padding: 2px
|
|
482
|
+
.p-\[2px\] {
|
|
483
|
+
padding: 2px;
|
|
455
484
|
}
|
|
456
485
|
|
|
457
|
-
.p-\[
|
|
458
|
-
padding:
|
|
486
|
+
.p-\[2px_5px\] {
|
|
487
|
+
padding: 2px 5px;
|
|
459
488
|
}
|
|
460
489
|
|
|
461
490
|
.p-\[5px\] {
|
|
@@ -470,22 +499,14 @@
|
|
|
470
499
|
padding-top: 5px;
|
|
471
500
|
}
|
|
472
501
|
|
|
473
|
-
.text-
|
|
474
|
-
text-align:
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.text-start {
|
|
478
|
-
text-align: start;
|
|
502
|
+
.text-center {
|
|
503
|
+
text-align: center;
|
|
479
504
|
}
|
|
480
505
|
|
|
481
506
|
.text-\[10px\] {
|
|
482
507
|
font-size: 10px;
|
|
483
508
|
}
|
|
484
509
|
|
|
485
|
-
.text-\[11px\] {
|
|
486
|
-
font-size: 11px;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
510
|
.text-\[12px\] {
|
|
490
511
|
font-size: 12px;
|
|
491
512
|
}
|
|
@@ -499,6 +520,11 @@
|
|
|
499
520
|
line-height: 1.4em;
|
|
500
521
|
}
|
|
501
522
|
|
|
523
|
+
.leading-\[20px\] {
|
|
524
|
+
--tw-leading: 20px;
|
|
525
|
+
line-height: 20px;
|
|
526
|
+
}
|
|
527
|
+
|
|
502
528
|
.font-bold {
|
|
503
529
|
--tw-font-weight: var(--font-weight-bold);
|
|
504
530
|
font-weight: var(--font-weight-bold);
|
|
@@ -516,22 +542,22 @@
|
|
|
516
542
|
color: #333;
|
|
517
543
|
}
|
|
518
544
|
|
|
545
|
+
.text-\[\#409eff\] {
|
|
546
|
+
color: #409eff;
|
|
547
|
+
}
|
|
548
|
+
|
|
519
549
|
.text-\[\#999\] {
|
|
520
550
|
color: #999;
|
|
521
551
|
}
|
|
522
552
|
|
|
523
|
-
.text-\[\#
|
|
524
|
-
color: #
|
|
553
|
+
.text-\[\#aaa\] {
|
|
554
|
+
color: #aaa;
|
|
525
555
|
}
|
|
526
556
|
|
|
527
557
|
.text-\[\#fff\] {
|
|
528
558
|
color: #fff;
|
|
529
559
|
}
|
|
530
560
|
|
|
531
|
-
.text-\[var\(--color-primary\)\] {
|
|
532
|
-
color: var(--color-primary);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
561
|
.text-white {
|
|
536
562
|
color: var(--color-white);
|
|
537
563
|
}
|
|
@@ -572,17 +598,17 @@
|
|
|
572
598
|
user-select: none;
|
|
573
599
|
}
|
|
574
600
|
|
|
575
|
-
.last-of-type\:border-b-0:last-of-type {
|
|
576
|
-
border-bottom-style: var(--tw-border-style);
|
|
577
|
-
border-bottom-width: 0;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
601
|
@media (hover: hover) {
|
|
581
602
|
.hover\:bg-\[\#ddd\]:hover {
|
|
582
603
|
background-color: #ddd;
|
|
583
604
|
}
|
|
584
605
|
}
|
|
585
606
|
|
|
607
|
+
.focus\:outline-0:focus {
|
|
608
|
+
outline-style: var(--tw-outline-style);
|
|
609
|
+
outline-width: 0;
|
|
610
|
+
}
|
|
611
|
+
|
|
586
612
|
.active\:\!scale-\[1\]:active {
|
|
587
613
|
scale: 1 !important;
|
|
588
614
|
}
|
|
@@ -702,7 +728,26 @@
|
|
|
702
728
|
inherits: false
|
|
703
729
|
}
|
|
704
730
|
|
|
705
|
-
|
|
731
|
+
@property --tw-outline-style {
|
|
732
|
+
syntax: "*";
|
|
733
|
+
inherits: false;
|
|
734
|
+
initial-value: solid;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
* {
|
|
738
|
+
-webkit-tap-highlight-color: transparent;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
[data-v-cd15d420] {
|
|
742
|
+
font-family: 微软雅黑;
|
|
743
|
+
/* font-size: 14px; */
|
|
744
|
+
}
|
|
745
|
+
.number[data-v-cd15d420] {
|
|
746
|
+
color: #a7a7a7;
|
|
747
|
+
/* font-weight: 600; */
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
[data-v-09ada29e] {
|
|
706
751
|
font-family: 宋体;
|
|
707
752
|
}
|
|
708
753
|
|
package/src/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "three";
|
|
2
|
-
import { D,
|
|
2
|
+
import { D, n, l, i, o, g, j, k, h, m } from "./build.js";
|
|
3
3
|
import "clipper-lib";
|
|
4
4
|
export {
|
|
5
5
|
D as Dxf,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
n as DxfSystem,
|
|
7
|
+
l as ModelDataPlugin,
|
|
8
|
+
i as buildJson,
|
|
9
|
+
o as components,
|
|
10
|
+
g as createEditor,
|
|
11
|
+
j as getFileAll,
|
|
12
|
+
k as getGlobalDxfSystem,
|
|
13
|
+
h as getModels,
|
|
14
|
+
m as utils
|
|
15
15
|
};
|
package/src/index2.js
CHANGED
|
@@ -2,8 +2,6 @@ import { D as DomEventRegister, a as DomContainer, R as Renderer } from "./DomEv
|
|
|
2
2
|
import { C as Component, V as Variable } from "./build.js";
|
|
3
3
|
import * as THREE from "three";
|
|
4
4
|
import { Group } from "three";
|
|
5
|
-
import "clipper-lib";
|
|
6
|
-
import "dxf-writer";
|
|
7
5
|
class ModelDataRender extends Component {
|
|
8
6
|
static name = "ModelDataRender";
|
|
9
7
|
onAddFromParent(parent) {
|