soonspacejs 2.10.8 → 2.10.9

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.10.8",
3
+ "version": "2.10.9",
4
4
  "homepage": "http://www.xwbuilders.com:8800/",
5
5
  "description": "soonspacejs 2.x",
6
6
  "module": "./dist/index.esm.js",
@@ -29,5 +29,5 @@
29
29
  "peerDependencies": {
30
30
  "three": ">=0.155.0"
31
31
  },
32
- "gitHead": "f37d84b049ee95b44c2864a8454c77c8a0b282f1"
32
+ "gitHead": "386a1db55f6cbff7d00d476842b535ff5612cef3"
33
33
  }
@@ -1,7 +1,4 @@
1
1
  import { Euler, Spherical } from 'three';
2
- /**
3
- * @deprecated
4
- */
5
2
  export declare const viewpoints: {
6
3
  [viewpoint: string]: Euler;
7
4
  };
@@ -20,7 +20,7 @@ interface NameCanvasInfo {
20
20
  textAlign?: CanvasTextAlign;
21
21
  textBaseline?: CanvasTextBaseline;
22
22
  backgroundStyle?: CanvasFillStrokeStyles['fillStyle'];
23
- borderStyle?: CanvasFillStrokeStyles['fillStyle'];
23
+ borderStyle?: CanvasFillStrokeStyles['strokeStyle'];
24
24
  borderWidth?: number;
25
25
  }
26
26
  declare class Poi extends BaseObject3D {
@@ -32,10 +32,6 @@ declare class CameraManager {
32
32
  flyToObj(object: Object3D | Box3, viewpoint?: FlyToViewpoint, options?: FlyToObjOptions): Promise<void>;
33
33
  surroundOnTarget(target: Position, options?: SurroundOptions): Promise<void>;
34
34
  surroundOnObject(object: Object3D, options?: SurroundOptions): Promise<void>;
35
- /**
36
- * @deprecated
37
- */
38
- getMovePosByBBox(bbox: Box3): Vector3;
39
35
  getObjectLabelPos(bbox: Box3 | Object3D, rotation?: FlyToViewpoint | Rotation | Euler, options?: LabelOptions): Vector3;
40
36
  }
41
37
  export default CameraManager;
package/types/index.d.ts CHANGED
@@ -29,7 +29,7 @@ export interface SoonSpaceConstructor {
29
29
  options?: InitOptions;
30
30
  events?: InitEvents;
31
31
  }
32
- export * from 'three';
32
+ export * from './Library';
33
33
  export * from './Interface';
34
34
  export * from './tools';
35
35
  export * from './Constants';
@@ -45,7 +45,9 @@ export declare class SoonSpace {
45
45
  };
46
46
  Quadratic: {
47
47
  In: (amount: number) => number;
48
- Out: (amount: number) => number;
48
+ Out: (amount: number) => number; /******* Init methods */
49
+ /******/
50
+ /******/
49
51
  InOut: (amount: number) => number;
50
52
  };
51
53
  Cubic: {
@@ -124,7 +126,9 @@ export declare class SoonSpace {
124
126
  };
125
127
  Quadratic: {
126
128
  In: (amount: number) => number;
127
- Out: (amount: number) => number;
129
+ Out: (amount: number) => number; /******* Init methods */
130
+ /******/
131
+ /******/
128
132
  InOut: (amount: number) => number;
129
133
  };
130
134
  Cubic: {
@@ -1,4 +1,4 @@
1
- import { Vector3, Box2, Matrix3, Matrix4, ShapeGeometry, Box3, Sphere, Object3D, Texture, Material } from 'three';
1
+ import { Vector3, Box2, Matrix3, Matrix4, ShapeGeometry, Box3, Sphere, Object3D, Texture, MeshStandardMaterial } from 'three';
2
2
  export declare function getPolygonGeometryInfo(points: Vector3[]): {
3
3
  geometry: ShapeGeometry;
4
4
  polygonBox: Box2;
@@ -29,13 +29,13 @@ export interface SetTextureOptions {
29
29
  /**
30
30
  * 是否使用缓存中的材质
31
31
  */
32
- cache?: boolean | null;
32
+ cache?: boolean;
33
33
  /**
34
34
  * 是否只更新当前 Mesh 的贴图
35
35
  * @remarks
36
36
  * 当 Mesh 与 其它 Mesh 共享 材质时,更新纹理会拿所有共享该 材质的 Mesh 都更新,将 independ 设置为 true 可以禁止这种行为,使得只会更新传入的 Mesh 的贴图。
37
37
  */
38
- independ?: boolean | null;
38
+ independ?: boolean;
39
39
  }
40
40
  /**
41
41
  * 设置贴图
@@ -45,4 +45,4 @@ export interface SetTextureOptions {
45
45
  * @param textureCache
46
46
  * @returns
47
47
  */
48
- export declare function setTexture(material: Material, image: string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, cache?: boolean, textureCache?: Map<string, Texture>): Texture;
48
+ export declare function setTexture(material: MeshStandardMaterial, image: string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, cache?: boolean, textureCache?: Map<string, Texture>): Texture;
File without changes
File without changes