build-dxf 0.0.60 → 0.0.62

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "build-dxf",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "description": "线段构建双线墙壁的dxf版本",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
package/src/build.js CHANGED
@@ -12890,7 +12890,7 @@ class Scenario {
12890
12890
  this.texture.colorSpace = THREE.SRGBColorSpace;
12891
12891
  this.scene.background = this.texture;
12892
12892
  this.scene.environment = this.texture;
12893
- this.scene.backgroundRotation.x = Math.PI / 2;
12893
+ this.scene?.backgroundRotation && (this.scene.backgroundRotation.x = Math.PI / 2);
12894
12894
  this.lines = lines;
12895
12895
  if (this.group) {
12896
12896
  this.scene.remove(this.group);
@@ -13690,7 +13690,7 @@ class WhiteModel extends Component {
13690
13690
  this.whiteModelGroup.add(this.whiteModelLineGroup);
13691
13691
  this.whiteModelGroup.position.z = dxf.originalZAverage;
13692
13692
  this.originalWhiteMode.position.z = dxf.originalZAverage;
13693
- const lines = dxfSystem.Dxf.getLineSegments(false);
13693
+ const lines = dxfSystem.Dxf.getLineSegments(true);
13694
13694
  if (typeof window !== "undefined") {
13695
13695
  const globalScenario = Scenario.Instance ?? new Scenario(new THREE.Scene(), {}, {}, {});
13696
13696
  const group2 = await globalScenario?.drawGraphics(