build-dxf 0.0.20-23 → 0.0.20-5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.20-23",
3
+ "version": "0.0.20-5",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -365,10 +365,11 @@ class Point {
365
365
  this.x = p.x ?? 0;
366
366
  this.y = p.y ?? 0;
367
367
  }
368
- toJson() {
368
+ toJson(z = 0) {
369
369
  return {
370
370
  x: this.x,
371
- y: this.y
371
+ y: this.y,
372
+ z
372
373
  };
373
374
  }
374
375
  static from(arr) {
package/src/index.css CHANGED
@@ -104,12 +104,12 @@
104
104
  z-index: 11;
105
105
  }
106
106
 
107
- .z-\[1000\] {
108
- z-index: 1000;
107
+ .z-\[20\] {
108
+ z-index: 20;
109
109
  }
110
110
 
111
- .z-\[10000\] {
112
- z-index: 10000;
111
+ .z-\[1000\] {
112
+ z-index: 1000;
113
113
  }
114
114
 
115
115
  .container {
@@ -238,6 +238,10 @@
238
238
  width: 200px;
239
239
  }
240
240
 
241
+ .w-fit {
242
+ width: fit-content;
243
+ }
244
+
241
245
  .w-full {
242
246
  width: 100%;
243
247
  }
@@ -246,6 +250,10 @@
246
250
  max-width: 150px;
247
251
  }
248
252
 
253
+ .max-w-\[180px\] {
254
+ max-width: 180px;
255
+ }
256
+
249
257
  .max-w-\[260px\] {
250
258
  max-width: 260px;
251
259
  }
@@ -266,6 +274,10 @@
266
274
  rotate: 90deg;
267
275
  }
268
276
 
277
+ .\!cursor-no-drop {
278
+ cursor: no-drop !important;
279
+ }
280
+
269
281
  .cursor-pointer {
270
282
  cursor: pointer;
271
283
  }
@@ -338,7 +350,7 @@
338
350
  border-radius: var(--radius-lg);
339
351
  }
340
352
 
341
- .border {
353
+ .border, .border-1 {
342
354
  border-style: var(--tw-border-style);
343
355
  border-width: 1px;
344
356
  }
@@ -353,6 +365,10 @@
353
365
  border-bottom-width: 1px;
354
366
  }
355
367
 
368
+ .border-\[\#ccc\] {
369
+ border-color: #ccc;
370
+ }
371
+
356
372
  .border-t-\[\#eee\] {
357
373
  border-top-color: #eee;
358
374
  }
@@ -369,6 +385,10 @@
369
385
  background-color: var(--primary-color) !important;
370
386
  }
371
387
 
388
+ .bg-\[\#ccc\] {
389
+ background-color: #ccc;
390
+ }
391
+
372
392
  .bg-\[\#f0f0f0\] {
373
393
  background-color: #f0f0f0;
374
394
  }
@@ -407,6 +427,10 @@
407
427
  padding: 0 10px;
408
428
  }
409
429
 
430
+ .p-\[2px\] {
431
+ padding: 2px;
432
+ }
433
+
410
434
  .p-\[2px_5px\] {
411
435
  padding: 2px 5px;
412
436
  }
@@ -465,6 +489,10 @@
465
489
  font-weight: var(--font-weight-bold);
466
490
  }
467
491
 
492
+ .text-nowrap {
493
+ text-wrap: nowrap;
494
+ }
495
+
468
496
  .text-\[\#333\] {
469
497
  color: #333;
470
498
  }
@@ -489,6 +517,10 @@
489
517
  color: var(--color-primary);
490
518
  }
491
519
 
520
+ .opacity-30 {
521
+ opacity: .3;
522
+ }
523
+
492
524
  .blur {
493
525
  --tw-blur: blur(8px);
494
526
  filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
@@ -522,6 +554,10 @@
522
554
  }
523
555
  }
524
556
 
557
+ .active\:\!scale-\[1\]:active {
558
+ scale: 1 !important;
559
+ }
560
+
525
561
  .active\:scale-\[0\.7\]:active {
526
562
  scale: .7;
527
563
  }
@@ -612,7 +648,7 @@
612
648
  inherits: false
613
649
  }
614
650
 
615
- [data-v-26d57fb7] {
651
+ [data-v-6aea548c] {
616
652
  font-family: 宋体;
617
653
  }
618
654
 
package/src/index2.js CHANGED
@@ -465,7 +465,7 @@ class EventInput extends Component {
465
465
  * @returns
466
466
  */
467
467
  isKeyDown(key) {
468
- return this.keyList.has(key) || this.mouseList.has(key);
468
+ return this.keyList.has(key.toLocaleLowerCase()) || this.mouseList.has(key.toLocaleLowerCase());
469
469
  }
470
470
  /**
471
471
  * 是否按下按键组