Browse Source

feat(draw): model save

gemercheung 1 year ago
parent
commit
d022d09529
2 changed files with 6 additions and 1 deletions
  1. 5 0
      src/core/player/Player.js
  2. 1 1
      src/view/case/photos/index.vue

+ 5 - 0
src/core/player/Player.js

@@ -2,6 +2,7 @@ import * as THREE from "three";
 
 import FloorplanControls from "../controls/FloorplanControls.js";
 import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
+import { TrackballControls } from "three/examples/jsm/controls/TrackballControls.js";
 import Line from "../box/object/Line";
 import LinePoints from "../box/object/LinePoints.js";
 import { LineMaterial } from "three/examples/jsm/lines/LineMaterial.js";
@@ -268,6 +269,10 @@ export default class Player {
     }
   }
 
+  reset() {
+    this.activeEdges = [];
+  }
+
   update = () => {
     if (this.floorplanControls.enabled) {
       this.floorplanControls && this.floorplanControls.update();

+ 1 - 1
src/view/case/photos/index.vue

@@ -185,7 +185,7 @@ onMounted(() => {
 
     .tools {
       position: absolute;
-      top: 30px;
+      top: 15px;
       left: 30px;
     }