Procházet zdrojové kódy

feat(draw): update

gemercheung před 1 rokem
rodič
revize
6cc6781085
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      src/core/box/HorizontalBox.js
  2. 1 1
      src/core/box/VerticalBox.js

+ 1 - 1
src/core/box/HorizontalBox.js

@@ -41,7 +41,7 @@ export default class HorizontalBox extends THREE.Group {
     box.scale.set(this.width, 1, this.height);
 
     this.add(box);
-    this.position.x = (this.width + 0.125) * index - 2.2;
+    this.position.x = (this.width + 0.125) * index - 1.8;
 
 
     const matLine = new LineMaterial({

+ 1 - 1
src/core/box/VerticalBox.js

@@ -32,7 +32,7 @@ export default class VerticalBox extends THREE.Group {
     box.scale.set(this.width, 1, this.height);
 
     this.add(box);
-    this.position.x = (this.width + 0.125) * index;
+    this.position.x = (this.width + 0.125) * index - 1.8;
 
     const matLine = new LineMaterial({
       color: 0xe44d54,