build-dxf 0.0.20-5 → 0.0.20-7

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-5",
3
+ "version": "0.0.20-7",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/index.css CHANGED
@@ -214,10 +214,6 @@
214
214
  height: 20px;
215
215
  }
216
216
 
217
- .h-\[20px\] {
218
- height: 20px;
219
- }
220
-
221
217
  .h-\[100vh\] {
222
218
  height: 100vh;
223
219
  }
@@ -258,18 +254,10 @@
258
254
  max-width: 260px;
259
255
  }
260
256
 
261
- .min-w-\[140px\] {
262
- min-width: 140px;
263
- }
264
-
265
257
  .min-w-\[150px\] {
266
258
  min-width: 150px;
267
259
  }
268
260
 
269
- .flex-1 {
270
- flex: 1;
271
- }
272
-
273
261
  .rotate-90 {
274
262
  rotate: 90deg;
275
263
  }
@@ -69,15 +69,17 @@ class Renderer extends Component {
69
69
  this.renderer.setSize(width, height);
70
70
  if (this.html2DRenderer) this.html2DRenderer.setSize(width, height);
71
71
  if (this.html3DRenderer) this.html3DRenderer.setSize(width, height);
72
- if (camera2 instanceof THREE.PerspectiveCamera) {
73
- camera2.aspect = width / height;
74
- } else if (camera2 instanceof THREE.OrthographicCamera) {
75
- camera2.left = -width * 0.5;
76
- camera2.right = width * 0.5;
77
- camera2.top = height * 0.5;
78
- camera2.bottom = -height * 0.5;
72
+ if (this.orbitControls) {
73
+ if (camera2 instanceof THREE.PerspectiveCamera) {
74
+ camera2.aspect = width / height;
75
+ } else if (camera2 instanceof THREE.OrthographicCamera) {
76
+ camera2.left = -width * 0.5;
77
+ camera2.right = width * 0.5;
78
+ camera2.top = height * 0.5;
79
+ camera2.bottom = -height * 0.5;
80
+ }
81
+ camera2.updateProjectionMatrix();
79
82
  }
80
- camera2.updateProjectionMatrix();
81
83
  this.onResize && this.onResize(width, height);
82
84
  this.dispatchEvent({ type: "resize", width, height });
83
85
  });
@@ -97,7 +99,6 @@ class Renderer extends Component {
97
99
  const directLight = new THREE.DirectionalLight(16777215, 4);
98
100
  directLight.position.set(100, -100, 100);
99
101
  this.scene.add(directLight);
100
- camera.position.set(10, 10, 10);
101
102
  }
102
103
  /**
103
104
  * 世界坐标转屏幕坐标