soonspacejs 2.5.46 → 2.5.47

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,19 +1,18 @@
1
1
  {
2
2
  "name": "soonspacejs",
3
- "version": "2.5.46",
3
+ "version": "2.5.47",
4
4
  "homepage": "http://www.xwbuilders.com:8800/",
5
5
  "description": "soonspacejs 2.x",
6
6
  "module": "./dist/index.esm.js",
7
- "main": "./dist/index.js",
7
+ "main": "./dist/index.esm.js",
8
8
  "typings": "./types/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
11
  "import": "./dist/index.esm.js",
12
- "require": "./dist/index.js",
13
12
  "types": "./types/index.d.ts"
14
13
  }
15
14
  },
16
- "unpkg": "./dist/index.js",
15
+ "unpkg": "./dist/index.esm.js",
17
16
  "keywords": [
18
17
  "soonspacejs",
19
18
  "threejs",
@@ -26,5 +25,5 @@
26
25
  "@tweenjs/tween.js": "^18.6.4",
27
26
  "@types/three": "0.141.0"
28
27
  },
29
- "gitHead": "ce8879ce5ab16bd03358e76d9adb43f425b29efd"
28
+ "gitHead": "ec02ecf7b62d41d47de0efd398425a7a32eb99f8"
30
29
  }
@@ -31,7 +31,8 @@ interface OffsetPoint {
31
31
  declare type FlyToViewpoint = 'current' | 'top' | 'bottom' | 'front' | 'back' | 'left' | 'right' | 'frontTop' | 'backTop' | 'leftTop' | 'rightTop' | 'leftFrontTop' | 'rightFrontTop' | 'leftBackTop' | 'rightBackTop';
32
32
  declare type AxisType = 'x' | 'y' | 'z';
33
33
  declare type SceneEventType = 'hover' | 'click' | 'rightClick' | 'dblClick';
34
- declare type PoiNodeType = '2d' | '2D' | '2.5d' | '2.5D' | '3d' | '3D';
34
+ declare type PoiType = '2d' | '2D' | '2.5d' | '2.5D';
35
+ declare type PoiNodeType = PoiType | '3d' | '3D';
35
36
  interface BaseSelectOptions {
36
37
  color?: IColor;
37
38
  opacity?: number;
@@ -55,4 +56,4 @@ interface BaseObjectEvents<ObjectType> {
55
56
  interface BaseObjectEventsListener {
56
57
  type: 'click' | 'rightClick' | 'dblClick' | string;
57
58
  }
58
- export { Interpolate, IVector2, IVector3, Position, Rotation, Scale, IColor, PlaneIVector2, Level, OffsetPoint, FlyToViewpoint, AxisType, SceneEventType, PoiNodeType, BaseSelectOptions, BaseObjectEvents, BaseObjectInfo, BaseObjectEventsListener, };
59
+ export { Interpolate, IVector2, IVector3, Position, Rotation, Scale, IColor, PlaneIVector2, Level, OffsetPoint, FlyToViewpoint, AxisType, SceneEventType, PoiType, PoiNodeType, BaseSelectOptions, BaseObjectEvents, BaseObjectInfo, BaseObjectEventsListener, };
@@ -1,9 +1,10 @@
1
1
  import { BaseObject3D, BaseObject3DInfo } from './BaseObject3D';
2
2
  import { Icon, IconInfo } from './Icon';
3
3
  import { SpriteMaterial, Box3 } from 'three';
4
- import { Scale } from '../Interface';
4
+ import { Scale, PoiType } from '../Interface';
5
5
  interface PoiInfo extends BaseObject3DInfo {
6
6
  url: string;
7
+ type?: PoiType;
7
8
  nameScale?: Scale;
8
9
  }
9
10
  interface CanvasTextInfo {
@@ -14,13 +15,16 @@ interface CanvasTextInfo {
14
15
  textBaseline?: CanvasTextBaseline;
15
16
  }
16
17
  declare class Poi extends BaseObject3D {
18
+ readonly iconType: string;
17
19
  icon: Icon;
18
20
  text: Icon | null;
19
21
  constructor(material: SpriteMaterial, param: PoiInfo);
20
22
  getBoundingBox(padding?: number): Box3;
21
23
  sClone<T extends BaseObject3D>(recursive?: boolean): T;
22
24
  _createIcon(material: SpriteMaterial): Icon;
23
- _createText(info: IconInfo): void;
24
- _createCanvasText(text: string, info?: CanvasTextInfo): HTMLCanvasElement;
25
+ _createText(info: IconInfo): Icon;
26
+ _createTextMaterial(info: IconInfo): SpriteMaterial;
27
+ _createTextCanvas(text: string, info?: CanvasTextInfo): HTMLCanvasElement;
28
+ _computeMaterialSizeAttenuation(material: SpriteMaterial): SpriteMaterial;
25
29
  }
26
30
  export { Poi, PoiInfo, CanvasTextInfo, };
@@ -23,6 +23,7 @@ export * from './cloneDeep';
23
23
  export * from './material';
24
24
  export * from './network';
25
25
  export * from './task';
26
+ export * from './xml';
26
27
  export { hasOwn, };
27
28
  export { isString, isBoolean, isNumber, isNull, isUndefined, isSymbol, };
28
29
  export { isDate, isArray, isObject, isFunction, isPromise, };
File without changes
package/types/index.d.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { TransformControls } from 'three/examples/jsm/controls/TransformControls.js';
10
10
  import { Reflector } from 'three/examples/jsm/objects/Reflector.js';
11
+ import { mergeBufferGeometries } from 'three/examples/jsm/utils/BufferGeometryUtils.js';
11
12
  import { Object3D, Vector3, Euler, Box3, AnimationClip, AnimationAction, Light, AmbientLight, DirectionalLight, HemisphereLight, SpotLight, PointLight, RectAreaLight, Texture, Mesh } from 'three';
12
13
  import * as shared from './Shared';
13
14
  import Animation from './Animation';
@@ -212,6 +213,7 @@ export declare class SoonSpace {
212
213
  readonly THREE_PLUGINS: {
213
214
  TransformControls: typeof TransformControls;
214
215
  Reflector: typeof Reflector;
216
+ mergeBufferGeometries: typeof mergeBufferGeometries;
215
217
  };
216
218
  readonly version: string;
217
219
  readonly options: InitOptions;