soonspacejs 2.6.22 → 2.6.24

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": "soonspacejs",
3
- "version": "2.6.22",
3
+ "version": "2.6.24",
4
4
  "homepage": "http://www.xwbuilders.com:8800/",
5
5
  "description": "soonspacejs 2.x",
6
6
  "module": "./dist/index.esm.js",
@@ -30,5 +30,5 @@
30
30
  "peerDependencies": {
31
31
  "three": ">=0.151.3"
32
32
  },
33
- "gitHead": "e716bff27e8da3f62a5f620c325551a97c27752d"
33
+ "gitHead": "2a6e43d98bc9469aead8a79640c06e785c0fa5fe"
34
34
  }
@@ -42,6 +42,8 @@ interface StrokeSelectOptions extends BaseSelectOptions {
42
42
  isOpacityShow?: boolean;
43
43
  edgeColor?: IColor;
44
44
  edgeOpacity?: number;
45
+ modelCache?: boolean;
46
+ firstChild?: boolean;
45
47
  }
46
48
  type OpacitySelectOptions = BaseSelectOptions;
47
49
  type HighlightSelectOptions = BaseSelectOptions;
@@ -1,14 +1,24 @@
1
1
  import { BaseObject3D, BaseObject3DInfo } from './BaseObject3D';
2
+ export declare enum ModelFormat {
3
+ sbm = "SBM",
4
+ sbmx = "SBMX",
5
+ dat = "DAT",
6
+ glb = "GLB",
7
+ gltf = "GLTF",
8
+ fbx = "FBX"
9
+ }
2
10
  interface ModelInfo extends BaseObject3DInfo {
3
11
  url: string;
4
12
  isPlatform?: boolean;
13
+ format?: string;
5
14
  }
6
15
  interface ModelInnerInfo extends ModelInfo {
7
- format: string;
16
+ format: ModelFormat;
8
17
  }
9
18
  declare class Model extends BaseObject3D {
10
- readonly formatType: string;
11
- constructor(param: ModelInnerInfo);
19
+ readonly formatType: ModelFormat;
20
+ readonly url: string;
21
+ constructor(params: ModelInnerInfo);
12
22
  setEnvMap(dirPath: string, fileNames?: string[], options?: {
13
23
  reflectivity?: number;
14
24
  }): void;
@@ -1,4 +1,5 @@
1
1
  import { Scene, Mesh, Object3D } from 'three';
2
+ import localforage from 'localforage';
2
3
  import { EdgeSelectOptions, StrokeSelectOptions, OpacitySelectOptions, HighlightSelectOptions, EmissiveSelectOptions, FogOptions, SignalsState, ViewportState } from '../Interface';
3
4
  declare class Scener {
4
5
  readonly signals: SignalsState;
@@ -17,6 +18,10 @@ declare class Scener {
17
18
  otherObjList: Object3D[];
18
19
  getAll: () => Object3D[];
19
20
  };
21
+ /**
22
+ * 线框
23
+ */
24
+ strokeStore: typeof localforage;
20
25
  constructor(signals: SignalsState, viewportState: ViewportState);
21
26
  addObject(object: Object3D, parent?: Object3D): void;
22
27
  removeObject(object: Object3D): void;