qg3dviewer 1.0.2 → 1.0.4

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.
@@ -1,4 +1,5 @@
1
1
  import { Mesh, Vector3 } from 'three';
2
+ import { Events } from '../../events/Events';
2
3
  import { SplatMeshOptions } from './SplatMeshOptions';
3
4
  import { ModelOptions } from '../../modeldata/ModelOptions';
4
5
  import { MetaData } from '../../modeldata/ModelData';
@@ -10,6 +11,7 @@ export declare class SplatMesh extends Mesh {
10
11
  readonly isSplatMesh: boolean;
11
12
  meta: MetaData;
12
13
  private disposed;
14
+ private globalEvent;
13
15
  private events;
14
16
  private opts;
15
17
  boundBox: BoundBox;
@@ -19,7 +21,7 @@ export declare class SplatMesh extends Mesh {
19
21
  * 构造函数
20
22
  * @param options 渲染器、场景、相机都应该传入
21
23
  */
22
- constructor(options: SplatMeshOptions);
24
+ constructor(options: SplatMeshOptions, globalEvent?: Events);
23
25
  /**
24
26
  * 设定或者获取最新配置项
25
27
  * @param opts 配置项
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qg3dviewer",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -21,7 +21,8 @@
21
21
  "dev": "vite --config vite.config.dev.ts",
22
22
  "build:demo": "tsc && vite build --config vite.config.dev.ts",
23
23
  "build": "tsc && vite build",
24
- "preview": "vite preview"
24
+ "preview": "vite preview",
25
+ "pub": "npm run build && npm publish --access public"
25
26
  },
26
27
  "dependencies": {
27
28
  "fflate": "^0.8.2",
@@ -30,7 +31,7 @@
30
31
  },
31
32
  "devDependencies": {
32
33
  "@types/node": "^22.13.5",
33
- "@types/three": "^0.171.0",
34
+ "@types/three": "^0.180.0",
34
35
  "@vituum/vite-plugin-postcss": "^1.1.0",
35
36
  "less": "^4.2.2",
36
37
  "typescript": "^5.6.3",
@@ -42,7 +43,7 @@
42
43
  "peerDependencies": {
43
44
  "@gotoeasy/three-tile": "^0.8.7",
44
45
  "@tweenjs/tween.js": "^25.0.0",
45
- "three": "^0.171.0"
46
+ "three": "^0.180.0"
46
47
  },
47
48
  "license": "MIT",
48
49
  "keywords": [],