fl-web-component 1.0.0 → 1.0.1

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": "fl-web-component",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "scripts": {
5
5
  "dev": "vue-cli-service serve",
6
6
  "lint": "eslint \"{src,packages}/**/*.{vue,js}\" --fix",
@@ -18,8 +18,10 @@
18
18
  "dependencies": {
19
19
  "camera-controls": "^2.9.0",
20
20
  "core-js": "^3.6.5",
21
+ "dxf-parser": "^1.1.2",
21
22
  "element-ui": "2.15.14",
22
23
  "html2canvas": "^1.4.1",
24
+ "jspdf": "^3.0.1",
23
25
  "konva": "^9.3.14",
24
26
  "lodash": "^4.17.21",
25
27
  "meshline": "^3.3.1",
@@ -52,9 +52,7 @@
52
52
 
53
53
  // 绘制对象映射实例表
54
54
  let drawObjMapInstance = {};
55
-
56
55
  import CameraControls from 'camera-controls';
57
- import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
58
56
  import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment.js';
59
57
  import { CSS2DObject } from 'three/examples/jsm/renderers/CSS2DRenderer';
60
58
  import { CSS2DRenderer } from 'three/examples/jsm/renderers/CSS2DRenderer';
@@ -62,7 +60,6 @@
62
60
  import MeasureDistance from '@/utils/threejs/measure-distance.js';
63
61
  import MeasureArea from '@/utils/threejs/measure-area.js';
64
62
  import MeasureAngle from '@/utils/threejs/measure-angle.js';
65
- // import glb from '@assets/worker.glb';
66
63
  import { parseData } from '@/utils/flgltf-parser';
67
64
  import { handleInstancedMeshModel } from '@/utils/instance-parser';
68
65
 
@@ -419,6 +416,7 @@
419
416
  let obj = scene.getObjectByName(id);
420
417
  if (obj) {
421
418
  cameraControls.fitToSphere(obj.parent, true);
419
+ // cameraControls.fitToBox( obj, true);
422
420
  }
423
421
  },
424
422
  // 相机定位