build-dxf 0.0.20-5 → 0.0.20-6
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/index.css +0 -12
- package/src/selectLocalFile.js +10 -8
package/package.json
CHANGED
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
|
}
|
package/src/selectLocalFile.js
CHANGED
|
@@ -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 (
|
|
73
|
-
camera2
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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
|
});
|