soonspacejs 2.13.7 → 2.13.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/README.md +8 -8
- package/dist/index.esm.js +2 -2
- package/package.json +2 -2
- package/types/Viewport/index.d.ts +1 -0
- package/types/index.d.ts +0 -3
- package/dist/src/Animation/createPathAnimation.d.ts +0 -61
- package/dist/src/Animation/index.d.ts +0 -4
- package/dist/src/Animation/path-animation.d.ts +0 -108
- package/dist/src/Cache/ObjectsCache.d.ts +0 -19
- package/dist/src/Cache/index.d.ts +0 -1
- package/dist/src/Constants/headers.d.ts +0 -1
- package/dist/src/Constants/index.d.ts +0 -22
- package/dist/src/Constants/viewpoints.d.ts +0 -7
- package/dist/src/Controls/index.d.ts +0 -14
- package/dist/src/Interface/animation.d.ts +0 -10
- package/dist/src/Interface/base.d.ts +0 -63
- package/dist/src/Interface/controls.d.ts +0 -94
- package/dist/src/Interface/events.d.ts +0 -40
- package/dist/src/Interface/gmlToJson.d.ts +0 -189
- package/dist/src/Interface/index.d.ts +0 -13
- package/dist/src/Interface/manager.d.ts +0 -177
- package/dist/src/Interface/modelAnimation.d.ts +0 -5
- package/dist/src/Interface/plugin.d.ts +0 -7
- package/dist/src/Interface/poiMesh.d.ts +0 -23
- package/dist/src/Interface/sbmCache.d.ts +0 -19
- package/dist/src/Interface/sbmXmlToJson.d.ts +0 -131
- package/dist/src/Interface/signals.d.ts +0 -47
- package/dist/src/Interface/viewport.d.ts +0 -208
- package/dist/src/Library/BaseMesh.d.ts +0 -19
- package/dist/src/Library/BaseObject3D.d.ts +0 -37
- package/dist/src/Library/Canvas3D.d.ts +0 -31
- package/dist/src/Library/Circle.d.ts +0 -21
- package/dist/src/Library/Decal.d.ts +0 -30
- package/dist/src/Library/Ground.d.ts +0 -8
- package/dist/src/Library/Group.d.ts +0 -9
- package/dist/src/Library/Icon.d.ts +0 -12
- package/dist/src/Library/Line.d.ts +0 -22
- package/dist/src/Library/Link.d.ts +0 -24
- package/dist/src/Library/Model.d.ts +0 -19
- package/dist/src/Library/Node.d.ts +0 -10
- package/dist/src/Library/PluginObject.d.ts +0 -7
- package/dist/src/Library/Poi.d.ts +0 -38
- package/dist/src/Library/PoiMesh.d.ts +0 -16
- package/dist/src/Library/PoiNode.d.ts +0 -31
- package/dist/src/Library/Point.d.ts +0 -21
- package/dist/src/Library/Polygon.d.ts +0 -23
- package/dist/src/Library/PolygonPoiMesh.d.ts +0 -13
- package/dist/src/Library/Topology.d.ts +0 -37
- package/dist/src/Library/index.d.ts +0 -20
- package/dist/src/Loader/SbmLoader/SDataView.d.ts +0 -11
- package/dist/src/Loader/SbmLoader/SbkDecoder.d.ts +0 -1
- package/dist/src/Loader/SbmLoader/SbmLoader.d.ts +0 -15
- package/dist/src/Loader/SbmLoader/SbmObjectLoader.d.ts +0 -25
- package/dist/src/Loader/SbmLoader/SbmPrivateLoader.d.ts +0 -39
- package/dist/src/Loader/SbmLoader/SbmPublicLoader.d.ts +0 -38
- package/dist/src/Loader/SbmLoader/index.d.ts +0 -2
- package/dist/src/Loader/SbmLoader/utils/generateSbm.d.ts +0 -26
- package/dist/src/Manager/Canvas3DManage.d.ts +0 -14
- package/dist/src/Manager/DecalManage.d.ts +0 -22
- package/dist/src/Manager/DefaultManage.d.ts +0 -19
- package/dist/src/Manager/GroupManage.d.ts +0 -9
- package/dist/src/Manager/HelperManage.d.ts +0 -23
- package/dist/src/Manager/LightManage.d.ts +0 -25
- package/dist/src/Manager/ModelManage.d.ts +0 -106
- package/dist/src/Manager/PluginObjectManage.d.ts +0 -13
- package/dist/src/Manager/PoiManage.d.ts +0 -25
- package/dist/src/Manager/PoiNodeManage.d.ts +0 -14
- package/dist/src/Manager/TopologyManage.d.ts +0 -68
- package/dist/src/Manager/index.d.ts +0 -83
- package/dist/src/Math/dijkstra/DijkstraWorker.d.ts +0 -13
- package/dist/src/Math/dijkstra/dijkstra.worker.d.ts +0 -2
- package/dist/src/Math/dijkstra/index.d.ts +0 -54
- package/dist/src/Math/index.d.ts +0 -2
- package/dist/src/Renderer/CSS2DRenderer.d.ts +0 -25
- package/dist/src/Renderer/CSS3DRenderer.d.ts +0 -28
- package/dist/src/Renderer/index.d.ts +0 -2
- package/dist/src/Shared/MinHeap.d.ts +0 -22
- package/dist/src/Shared/buffer.d.ts +0 -2
- package/dist/src/Shared/cloneDeep.d.ts +0 -2
- package/dist/src/Shared/ctx.d.ts +0 -5
- package/dist/src/Shared/index.d.ts +0 -47
- package/dist/src/Shared/log.d.ts +0 -4
- package/dist/src/Shared/map.d.ts +0 -11
- package/dist/src/Shared/material.d.ts +0 -3
- package/dist/src/Shared/network.d.ts +0 -7
- package/dist/src/Shared/occlude.d.ts +0 -5
- package/dist/src/Shared/path.d.ts +0 -1
- package/dist/src/Shared/task.d.ts +0 -1
- package/dist/src/Shared/viewport.d.ts +0 -40
- package/dist/src/Shared/xml.d.ts +0 -2
- package/dist/src/Signals/index.d.ts +0 -3
- package/dist/src/Viewport/Bvh/GenerateMeshBVHWorker.d.ts +0 -11
- package/dist/src/Viewport/Bvh/generateBVH.worker.d.ts +0 -1
- package/dist/src/Viewport/Bvh/index.d.ts +0 -18
- package/dist/src/Viewport/CameraManager.d.ts +0 -34
- package/dist/src/Viewport/EffectManager.d.ts +0 -45
- package/dist/src/Viewport/EventHandler.d.ts +0 -50
- package/dist/src/Viewport/Info.d.ts +0 -17
- package/dist/src/Viewport/RendererManager.d.ts +0 -26
- package/dist/src/Viewport/Scener.d.ts +0 -43
- package/dist/src/Viewport/ViewHelper.d.ts +0 -15
- package/dist/src/Viewport/index.d.ts +0 -131
- package/dist/src/exporters/index.d.ts +0 -6
- package/dist/src/index.d.ts +0 -1286
- package/dist/src/three-patches.d.ts +0 -1
- package/dist/src/tools/find-objects.d.ts +0 -47
- package/dist/src/tools/index.d.ts +0 -2
- package/dist/src/tools/units.d.ts +0 -48
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BaseObjectInfo } from '../Interface';
|
|
2
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
import { Point, PointInfo } from './Point';
|
|
5
|
-
import { Line, LineInfo } from './Line';
|
|
6
|
-
import { Polygon, PolygonInfo } from './Polygon';
|
|
7
|
-
import { Circle, CircleInfo } from './Circle';
|
|
8
|
-
interface Canvas3DInfo extends BaseObjectInfo {
|
|
9
|
-
points?: PointInfo[];
|
|
10
|
-
lines?: LineInfo[];
|
|
11
|
-
polygons?: PolygonInfo[];
|
|
12
|
-
circles?: CircleInfo[];
|
|
13
|
-
}
|
|
14
|
-
declare class Canvas3D extends BaseObject3D {
|
|
15
|
-
constructor(params?: Canvas3DInfo);
|
|
16
|
-
create(params?: Canvas3DInfo): void;
|
|
17
|
-
createPoint(params: PointInfo): Point;
|
|
18
|
-
getPoint(id: PointInfo['id']): Point | null;
|
|
19
|
-
removePoint(id: PointInfo['id']): void;
|
|
20
|
-
createLine(params: LineInfo): Line;
|
|
21
|
-
getLine(id: LineInfo['id']): Line | null;
|
|
22
|
-
removeLine(id: LineInfo['id']): void;
|
|
23
|
-
createPolygon(params: PolygonInfo): Polygon;
|
|
24
|
-
getPolygon(id: PolygonInfo['id']): Polygon | null;
|
|
25
|
-
removePolygon(id: PolygonInfo['id']): void;
|
|
26
|
-
createCircle(params: CircleInfo): Circle;
|
|
27
|
-
getCircle(id: CircleInfo['id']): Circle | null;
|
|
28
|
-
removeCircle(id: CircleInfo['id']): void;
|
|
29
|
-
getChildForType<Type extends BaseMesh>(type: Type['stype'], id: PointInfo['id']): Type | null;
|
|
30
|
-
}
|
|
31
|
-
export { Canvas3D, Canvas3DInfo, };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MeshStandardMaterial } from 'three';
|
|
2
|
-
import { BaseObjectInfo, IColor } from '../Interface';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
import { GradientTextureOptions } from '../Shared';
|
|
5
|
-
interface CircleInfo extends BaseObjectInfo {
|
|
6
|
-
radius?: number;
|
|
7
|
-
color?: IColor;
|
|
8
|
-
opacity?: number;
|
|
9
|
-
gradient?: GradientTextureOptions;
|
|
10
|
-
}
|
|
11
|
-
type SetOptionsCircleInfo = Partial<Pick<CircleInfo, 'radius' | 'color' | 'opacity' | 'gradient'>>;
|
|
12
|
-
declare class Circle extends BaseMesh {
|
|
13
|
-
params?: CircleInfo | undefined;
|
|
14
|
-
material: MeshStandardMaterial;
|
|
15
|
-
constructor(params?: CircleInfo | undefined);
|
|
16
|
-
updateGeometry(radius: number): void;
|
|
17
|
-
updateMaterialOpacity(opacity: number): void;
|
|
18
|
-
updateMaterial(color: IColor, gradient?: GradientTextureOptions): void;
|
|
19
|
-
setOptions(params: SetOptionsCircleInfo): void;
|
|
20
|
-
}
|
|
21
|
-
export { Circle, CircleInfo, SetOptionsCircleInfo, };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { MeshStandardMaterial, Vector3, Object3D, Mesh } from 'three';
|
|
2
|
-
import { DecalUVMapType } from '@three3d/decal';
|
|
3
|
-
import { BaseObjectInfo, IColor } from '../Interface';
|
|
4
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
5
|
-
export { DecalUVMapType, };
|
|
6
|
-
export interface DecalInfo extends BaseObjectInfo {
|
|
7
|
-
url?: string;
|
|
8
|
-
color?: IColor;
|
|
9
|
-
opacity?: number;
|
|
10
|
-
snapping?: boolean;
|
|
11
|
-
snappingDistance?: number;
|
|
12
|
-
snappingTargets?: Object3D[];
|
|
13
|
-
uvMap?: DecalUVMapType;
|
|
14
|
-
offsetFactor?: number;
|
|
15
|
-
offsetUnits?: number;
|
|
16
|
-
epsilon?: number;
|
|
17
|
-
absoluteEpsilon?: boolean;
|
|
18
|
-
branchFace?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export type DecalMaterialInfo = Pick<DecalInfo, 'color' | 'opacity'>;
|
|
21
|
-
export type DecalGeometryInfo = Pick<DecalInfo, 'snapping' | 'snappingDistance' | 'snappingTargets' | 'uvMap' | 'offsetFactor' | 'offsetUnits' | 'epsilon' | 'absoluteEpsilon'>;
|
|
22
|
-
declare class Decal extends BaseObject3D {
|
|
23
|
-
readonly params: DecalInfo;
|
|
24
|
-
decalMesh: Mesh<import("three").BufferGeometry<import("three").NormalBufferAttributes>, MeshStandardMaterial, import("three").Object3DEventMap>;
|
|
25
|
-
textureAspect: Vector3;
|
|
26
|
-
constructor(params: DecalInfo);
|
|
27
|
-
updateTexture(url: DecalInfo['url']): Promise<void>;
|
|
28
|
-
updateMaterial(params?: DecalMaterialInfo): void;
|
|
29
|
-
}
|
|
30
|
-
export { Decal, };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { BufferGeometry, Material } from 'three';
|
|
2
|
-
import { BaseObjectInfo } from '../Interface';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
type GroundInfo = BaseObjectInfo;
|
|
5
|
-
declare class Ground extends BaseMesh {
|
|
6
|
-
constructor(params?: BaseObjectInfo, geometry?: BufferGeometry, material?: Material);
|
|
7
|
-
}
|
|
8
|
-
export { Ground, GroundInfo, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BaseObjectInfo } from '../Interface';
|
|
2
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
3
|
-
type GroupInfo = BaseObjectInfo;
|
|
4
|
-
declare class Group extends BaseObject3D {
|
|
5
|
-
constructor(params?: GroupInfo);
|
|
6
|
-
showAllChild(): void;
|
|
7
|
-
hideAllChild(): void;
|
|
8
|
-
}
|
|
9
|
-
export { Group, GroupInfo, };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Sprite, SpriteMaterial } from 'three';
|
|
2
|
-
import { Position, Scale } from '../Interface';
|
|
3
|
-
interface IconInfo {
|
|
4
|
-
name?: string;
|
|
5
|
-
position?: Position;
|
|
6
|
-
scale?: Scale;
|
|
7
|
-
}
|
|
8
|
-
declare class Icon extends Sprite {
|
|
9
|
-
stype: string;
|
|
10
|
-
constructor(material?: SpriteMaterial, params?: IconInfo);
|
|
11
|
-
}
|
|
12
|
-
export { Icon, IconInfo, };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MeshStandardMaterial } from 'three';
|
|
2
|
-
import { GradientTextureOptions } from '../Shared';
|
|
3
|
-
import { Position, IColor, BaseObjectInfo } from '../Interface';
|
|
4
|
-
import { BaseMesh } from './BaseMesh';
|
|
5
|
-
interface LineInfo extends BaseObjectInfo {
|
|
6
|
-
points: Position[];
|
|
7
|
-
width?: number;
|
|
8
|
-
color?: IColor;
|
|
9
|
-
opacity?: number;
|
|
10
|
-
gradient?: GradientTextureOptions;
|
|
11
|
-
}
|
|
12
|
-
type SetOptionsLineInfo = Partial<Pick<LineInfo, 'points' | 'width' | 'color' | 'opacity' | 'gradient'>>;
|
|
13
|
-
declare class Line extends BaseMesh {
|
|
14
|
-
params?: LineInfo | undefined;
|
|
15
|
-
material: MeshStandardMaterial;
|
|
16
|
-
constructor(params?: LineInfo | undefined);
|
|
17
|
-
updateMaterialOpacity(opacity: number): void;
|
|
18
|
-
updateMaterial(color: IColor, gradient?: GradientTextureOptions): void;
|
|
19
|
-
updateGeometry(points: Position[], width: number): void;
|
|
20
|
-
setOptions(params: SetOptionsLineInfo): void;
|
|
21
|
-
}
|
|
22
|
-
export { Line, LineInfo, SetOptionsLineInfo, };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BufferGeometry, MeshStandardMaterial, Texture } from 'three';
|
|
2
|
-
import { Position, IColor, BaseObjectInfo } from '../Interface';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
interface LinkInfo extends BaseObjectInfo {
|
|
5
|
-
passable?: number;
|
|
6
|
-
start: Position;
|
|
7
|
-
end: Position;
|
|
8
|
-
width: number;
|
|
9
|
-
color?: IColor;
|
|
10
|
-
transparent?: boolean;
|
|
11
|
-
imgUrl?: string;
|
|
12
|
-
}
|
|
13
|
-
declare class Link extends BaseMesh {
|
|
14
|
-
readonly params?: LinkInfo | undefined;
|
|
15
|
-
geometry: BufferGeometry<import("three").NormalBufferAttributes>;
|
|
16
|
-
material: MeshStandardMaterial;
|
|
17
|
-
passable: number;
|
|
18
|
-
constructor(params?: LinkInfo | undefined);
|
|
19
|
-
updateGeometry(params: Pick<LinkInfo, 'start' | 'end'>): void;
|
|
20
|
-
computeVertex(): void;
|
|
21
|
-
computeTextureRepeat(texture: Texture): void;
|
|
22
|
-
createTexture(imgUrl?: string): Texture | undefined;
|
|
23
|
-
}
|
|
24
|
-
export { Link, LinkInfo, };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ModelFormat } from '../Constants';
|
|
2
|
-
import { BaseObject3DInfo } from '../Interface';
|
|
3
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
4
|
-
interface ModelInfo extends BaseObject3DInfo {
|
|
5
|
-
url: string;
|
|
6
|
-
format?: ModelFormat;
|
|
7
|
-
}
|
|
8
|
-
interface ModelInnerInfo extends Omit<ModelInfo, 'url'> {
|
|
9
|
-
format: ModelFormat;
|
|
10
|
-
}
|
|
11
|
-
declare class Model extends BaseObject3D {
|
|
12
|
-
formatType?: ModelFormat;
|
|
13
|
-
constructor(params?: ModelInnerInfo);
|
|
14
|
-
setEnvMap(dirPath: string, fileNames?: string[], options?: {
|
|
15
|
-
reflectivity?: number;
|
|
16
|
-
}): void;
|
|
17
|
-
copy(source: this, recursive?: boolean): this;
|
|
18
|
-
}
|
|
19
|
-
export { Model, ModelInfo, ModelInnerInfo, };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Point, PointInfo } from './Point';
|
|
2
|
-
import { TopologyNodeGraph } from '../Interface';
|
|
3
|
-
interface NodeInfo extends PointInfo {
|
|
4
|
-
graphs: TopologyNodeGraph[];
|
|
5
|
-
}
|
|
6
|
-
declare class Node extends Point {
|
|
7
|
-
graphs: TopologyNodeGraph[];
|
|
8
|
-
constructor(params?: NodeInfo);
|
|
9
|
-
}
|
|
10
|
-
export { Node, NodeInfo, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseObjectInfo } from '../Interface';
|
|
2
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
3
|
-
type PluginObjectInfo = BaseObjectInfo;
|
|
4
|
-
declare class PluginObject extends BaseObject3D {
|
|
5
|
-
constructor(params?: PluginObjectInfo);
|
|
6
|
-
}
|
|
7
|
-
export { PluginObject, PluginObjectInfo, };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
2
|
-
import { Icon } from './Icon';
|
|
3
|
-
import { Box3, Mesh } from 'three';
|
|
4
|
-
import { BaseObject3DInfo, IVector3, PoiType, ScaleFixed } from '../Interface';
|
|
5
|
-
interface PoiInfo extends BaseObject3DInfo {
|
|
6
|
-
url?: string;
|
|
7
|
-
type?: PoiType;
|
|
8
|
-
namePosition?: IVector3;
|
|
9
|
-
nameScale?: IVector3;
|
|
10
|
-
nameCanvasInfo?: NameCanvasInfo;
|
|
11
|
-
iconScale?: IVector3;
|
|
12
|
-
scaleFixed?: ScaleFixed | null;
|
|
13
|
-
}
|
|
14
|
-
interface NameCanvasInfo {
|
|
15
|
-
canvasWidth?: number;
|
|
16
|
-
canvasHeight?: number;
|
|
17
|
-
font?: string;
|
|
18
|
-
fillStyle?: CanvasFillStrokeStyles['fillStyle'];
|
|
19
|
-
strokeStyle?: CanvasFillStrokeStyles['strokeStyle'];
|
|
20
|
-
textAlign?: CanvasTextAlign;
|
|
21
|
-
textBaseline?: CanvasTextBaseline;
|
|
22
|
-
backgroundStyle?: CanvasFillStrokeStyles['fillStyle'];
|
|
23
|
-
borderStyle?: CanvasFillStrokeStyles['strokeStyle'];
|
|
24
|
-
borderWidth?: number;
|
|
25
|
-
}
|
|
26
|
-
declare class Poi extends BaseObject3D {
|
|
27
|
-
icon?: Icon | Mesh;
|
|
28
|
-
text?: Icon | Mesh;
|
|
29
|
-
iconType?: PoiType;
|
|
30
|
-
/**
|
|
31
|
-
* scale 锁定
|
|
32
|
-
*/
|
|
33
|
-
scaleFixed: PoiInfo['scaleFixed'];
|
|
34
|
-
constructor(params?: PoiInfo);
|
|
35
|
-
getBoundingBox(padding?: number): Box3;
|
|
36
|
-
copy(source: this, recursive?: boolean): this;
|
|
37
|
-
}
|
|
38
|
-
export { Poi, PoiInfo, NameCanvasInfo, };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MeshBasicMaterial, MeshPhongMaterial, PlaneGeometry, Texture } from 'three';
|
|
2
|
-
import { IVector3, PoiMeshOptions } from '../Interface';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
interface PoiMeshInfo extends PoiMeshOptions {
|
|
5
|
-
position?: IVector3;
|
|
6
|
-
rotation?: IVector3;
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
}
|
|
10
|
-
declare class PoiMesh extends BaseMesh {
|
|
11
|
-
image: PoiMeshOptions['image'];
|
|
12
|
-
geometry: PlaneGeometry;
|
|
13
|
-
material: MeshPhongMaterial | MeshBasicMaterial;
|
|
14
|
-
constructor(params: PoiMeshInfo, textureCache?: Map<string, Texture>);
|
|
15
|
-
}
|
|
16
|
-
export { PoiMesh, PoiMeshInfo, };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Box3, Object3D } from 'three';
|
|
2
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
3
|
-
import { BaseObject3DInfo, IVector3, PoiNodeType, ScaleFixed } from '../Interface';
|
|
4
|
-
interface PoiNodeInfo extends BaseObject3DInfo {
|
|
5
|
-
type: PoiNodeType;
|
|
6
|
-
element: HTMLElement;
|
|
7
|
-
elementAutoDisplay?: boolean;
|
|
8
|
-
occlude?: boolean | Object3D[] | IVector3;
|
|
9
|
-
occludeThrottle?: number;
|
|
10
|
-
onChange?: (visible: boolean) => void;
|
|
11
|
-
scaleFixed?: ScaleFixed | null;
|
|
12
|
-
}
|
|
13
|
-
export declare function isPoiNode2D(type: PoiNodeInfo['type']): boolean;
|
|
14
|
-
export declare function isPoiNode25D(type: PoiNodeInfo['type']): boolean;
|
|
15
|
-
export declare function isPoiNode3D(type: PoiNodeInfo['type']): boolean;
|
|
16
|
-
declare class PoiNode extends BaseObject3D {
|
|
17
|
-
readonly elementType: PoiNodeInfo['type'];
|
|
18
|
-
readonly element: PoiNodeInfo['element'];
|
|
19
|
-
elementAutoDisplay: PoiNodeInfo['elementAutoDisplay'];
|
|
20
|
-
occlude: PoiNodeInfo['occlude'];
|
|
21
|
-
occludeThrottle: PoiNodeInfo['occludeThrottle'];
|
|
22
|
-
onChange: PoiNodeInfo['onChange'];
|
|
23
|
-
scaleFixed: PoiNodeInfo['scaleFixed'];
|
|
24
|
-
constructor(params?: PoiNodeInfo);
|
|
25
|
-
create(type: PoiNodeInfo['type']): void;
|
|
26
|
-
getBoundingBox(padding?: number): Box3;
|
|
27
|
-
_create2D(): void;
|
|
28
|
-
_create2DHalf(): void;
|
|
29
|
-
_create3D(): void;
|
|
30
|
-
}
|
|
31
|
-
export { PoiNode, PoiNodeInfo, };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { MeshStandardMaterial } from 'three';
|
|
2
|
-
import { BaseMesh } from './BaseMesh';
|
|
3
|
-
import { BaseObjectInfo, IColor } from '../Interface';
|
|
4
|
-
import { GradientTextureOptions } from '../Shared';
|
|
5
|
-
interface PointInfo extends BaseObjectInfo {
|
|
6
|
-
radius?: number;
|
|
7
|
-
color?: IColor;
|
|
8
|
-
opacity?: number;
|
|
9
|
-
gradient?: GradientTextureOptions;
|
|
10
|
-
}
|
|
11
|
-
type SetOptionsPointInfo = Partial<Pick<PointInfo, 'radius' | 'color' | 'opacity' | 'gradient'>>;
|
|
12
|
-
declare class Point extends BaseMesh {
|
|
13
|
-
params?: PointInfo | undefined;
|
|
14
|
-
material: MeshStandardMaterial;
|
|
15
|
-
constructor(params?: PointInfo | undefined);
|
|
16
|
-
updateGeometry(radius: number): void;
|
|
17
|
-
updateMaterialOpacity(opacity: number): void;
|
|
18
|
-
updateMaterial(color: IColor, gradient?: GradientTextureOptions): void;
|
|
19
|
-
setOptions(params: SetOptionsPointInfo): void;
|
|
20
|
-
}
|
|
21
|
-
export { Point, PointInfo, SetOptionsPointInfo, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { MeshStandardMaterial } from 'three';
|
|
2
|
-
import { BaseObjectInfo, IColor, PlaneIVector2 } from '../Interface';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
import { GradientTextureOptions } from '../Shared';
|
|
5
|
-
interface PolygonInfo extends BaseObjectInfo {
|
|
6
|
-
points: PlaneIVector2[];
|
|
7
|
-
yHeight?: number;
|
|
8
|
-
depth?: number;
|
|
9
|
-
color?: IColor;
|
|
10
|
-
opacity?: number;
|
|
11
|
-
gradient?: GradientTextureOptions;
|
|
12
|
-
}
|
|
13
|
-
type SetOptionsPolygonInfo = Partial<Pick<PolygonInfo, 'yHeight' | 'points' | 'depth' | 'color' | 'opacity' | 'gradient'>>;
|
|
14
|
-
declare class Polygon extends BaseMesh {
|
|
15
|
-
params?: PolygonInfo | undefined;
|
|
16
|
-
material: MeshStandardMaterial;
|
|
17
|
-
constructor(params?: PolygonInfo | undefined);
|
|
18
|
-
updateGeometry(points: PlaneIVector2[], depth: number): void;
|
|
19
|
-
updateMaterialOpacity(opacity: number): void;
|
|
20
|
-
updateMaterial(color: IColor, gradient?: GradientTextureOptions): void;
|
|
21
|
-
setOptions(params: SetOptionsPolygonInfo): void;
|
|
22
|
-
}
|
|
23
|
-
export { Polygon, PolygonInfo, SetOptionsPolygonInfo, };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MeshBasicMaterial, MeshPhongMaterial, ShapeGeometry, Texture } from 'three';
|
|
2
|
-
import { IVector3, PoiMeshOptions } from '../Interface';
|
|
3
|
-
import { BaseMesh } from './BaseMesh';
|
|
4
|
-
interface PolygonPoiMeshInfo extends PoiMeshOptions {
|
|
5
|
-
points: IVector3[];
|
|
6
|
-
}
|
|
7
|
-
declare class PolygonPoiMesh extends BaseMesh {
|
|
8
|
-
image: PoiMeshOptions['image'];
|
|
9
|
-
geometry: ShapeGeometry;
|
|
10
|
-
material: MeshPhongMaterial | MeshBasicMaterial;
|
|
11
|
-
constructor(params: PolygonPoiMeshInfo, textureCache?: Map<string, Texture>);
|
|
12
|
-
}
|
|
13
|
-
export { PolygonPoiMesh, PolygonPoiMeshInfo, };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Tween } from 'three/examples/jsm/libs/tween.module.js';
|
|
2
|
-
import { BaseObject3D } from './BaseObject3D';
|
|
3
|
-
import { Node, NodeInfo } from './Node';
|
|
4
|
-
import { Circle, CircleInfo } from './Circle';
|
|
5
|
-
import { Link, LinkInfo } from './Link';
|
|
6
|
-
import { TopologyNodeInfo, TopologyEffectInfo, TopologyInnerNodeInfo, IVector2, BaseObjectInfo } from '../Interface';
|
|
7
|
-
type TopologyType = 'line' | 'network';
|
|
8
|
-
interface TopologyInfo extends BaseObjectInfo, TopologyEffectInfo {
|
|
9
|
-
nodes: TopologyNodeInfo[];
|
|
10
|
-
type: TopologyType;
|
|
11
|
-
}
|
|
12
|
-
interface TopologyInnerInfo extends BaseObjectInfo, TopologyEffectInfo {
|
|
13
|
-
nodes: TopologyInnerNodeInfo[];
|
|
14
|
-
type: TopologyType;
|
|
15
|
-
}
|
|
16
|
-
type TopologyLinkImgAnimation = Pick<TopologyEffectInfo, 'imgUrl' | 'animation'>;
|
|
17
|
-
declare class Topology extends BaseObject3D {
|
|
18
|
-
topologyType: TopologyType;
|
|
19
|
-
nodes: Node[];
|
|
20
|
-
links: Link[];
|
|
21
|
-
linksImgAnimation: Tween<IVector2> | null;
|
|
22
|
-
info: TopologyInnerInfo;
|
|
23
|
-
constructor(params?: TopologyInnerInfo);
|
|
24
|
-
create(): void;
|
|
25
|
-
createNode(params: NodeInfo): Node;
|
|
26
|
-
createCircle(params: CircleInfo): Circle;
|
|
27
|
-
createLink(params: LinkInfo): Link;
|
|
28
|
-
/**
|
|
29
|
-
* link 贴图动画
|
|
30
|
-
* @param params
|
|
31
|
-
*/
|
|
32
|
-
updateLinksImgAnimation(params?: TopologyLinkImgAnimation): void;
|
|
33
|
-
resetNodes(newNodes: TopologyInnerNodeInfo[]): void;
|
|
34
|
-
updateLinks(): void;
|
|
35
|
-
getLength(): number;
|
|
36
|
-
}
|
|
37
|
-
export { Topology, TopologyInfo, TopologyInnerInfo, };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './BaseObject3D';
|
|
2
|
-
export * from './BaseMesh';
|
|
3
|
-
export * from './Group';
|
|
4
|
-
export * from './PluginObject';
|
|
5
|
-
export * from './PoiNode';
|
|
6
|
-
export * from './Model';
|
|
7
|
-
export * from './Poi';
|
|
8
|
-
export * from './Icon';
|
|
9
|
-
export * from './Topology';
|
|
10
|
-
export * from './Point';
|
|
11
|
-
export * from './Line';
|
|
12
|
-
export * from './Polygon';
|
|
13
|
-
export * from './Circle';
|
|
14
|
-
export * from './Node';
|
|
15
|
-
export * from './Link';
|
|
16
|
-
export * from './Canvas3D';
|
|
17
|
-
export * from './Ground';
|
|
18
|
-
export * from './Decal';
|
|
19
|
-
export * from './PoiMesh';
|
|
20
|
-
export * from './PolygonPoiMesh';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare class SDataView extends DataView {
|
|
2
|
-
appKeys: number[];
|
|
3
|
-
isLE: boolean;
|
|
4
|
-
constructor(buffer: ArrayBuffer, appKeys: number[]);
|
|
5
|
-
byteRevers(byte: number, offset: number): number;
|
|
6
|
-
getSoonUint8(byteOffset: number): number;
|
|
7
|
-
getSoonUint16(byteOffset: number): number;
|
|
8
|
-
getSoonUint32(byteOffset: number): number;
|
|
9
|
-
getSoonFloat32(byteOffset: number): number;
|
|
10
|
-
}
|
|
11
|
-
export default SDataView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function decodeSbk(buffer: ArrayBuffer): ArrayBuffer | undefined;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ModelInfo } from '../../Library';
|
|
2
|
-
declare class SbmLoader {
|
|
3
|
-
/**
|
|
4
|
-
* @todo onProgress
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* @param buffer
|
|
8
|
-
* @param sbmInfo
|
|
9
|
-
*/
|
|
10
|
-
parseBuffer(buffer: ArrayBuffer, sbmInfo: ModelInfo): Promise<{
|
|
11
|
-
model: import("../../Library/Model").Model;
|
|
12
|
-
caches: import("../..").SbmCache;
|
|
13
|
-
}>;
|
|
14
|
-
}
|
|
15
|
-
export { SbmLoader, };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Material } from 'three';
|
|
2
|
-
import { Model, ModelInfo } from '../../Library';
|
|
3
|
-
import { SbmCache } from '../../Interface/sbmCache';
|
|
4
|
-
declare class SbmObjectLoader {
|
|
5
|
-
materials: Map<string, Material>;
|
|
6
|
-
constructor();
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* {
|
|
10
|
-
* materialsCache: {
|
|
11
|
-
* 0: {textureUrl:'xxx.png', materialInfo: [0,0,0,...]}
|
|
12
|
-
* },
|
|
13
|
-
* meshsCache: {
|
|
14
|
-
* materialId: 0,
|
|
15
|
-
* position: [0,0,0,...],
|
|
16
|
-
* uv: [0,0,0,...],
|
|
17
|
-
* }
|
|
18
|
-
* }
|
|
19
|
-
* @param sbmObject
|
|
20
|
-
* @param sbmInfo
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
parseObject(sbmObject: SbmCache, sbmInfo: ModelInfo): Model;
|
|
24
|
-
}
|
|
25
|
-
export { SbmObjectLoader, };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Model, ModelInfo } from '../../Library';
|
|
2
|
-
import { ModelLoadingProgress, ModelLoadingProgressCallback } from '../../Interface';
|
|
3
|
-
import { SbmCache } from '../../Interface/sbmCache';
|
|
4
|
-
declare class SbmPrivateLoader {
|
|
5
|
-
materials: Map<string, any>;
|
|
6
|
-
sbmInfo: ModelInfo | null;
|
|
7
|
-
isLE: boolean;
|
|
8
|
-
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* 解析模型
|
|
11
|
-
* @param buffer 模型二进制原数据
|
|
12
|
-
* @param sbmInfo 模型信息
|
|
13
|
-
* @param onProgress 模型加载进度回填函数
|
|
14
|
-
*/
|
|
15
|
-
parseBuffer(buffer: ArrayBuffer, sbmInfo: ModelInfo, onProgress?: ModelLoadingProgressCallback): Promise<{
|
|
16
|
-
model: Model;
|
|
17
|
-
caches: SbmCache;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* @param dataView
|
|
21
|
-
* @param offset
|
|
22
|
-
* @param onProgress
|
|
23
|
-
*/
|
|
24
|
-
_parseV2(dataView: DataView, offset: number, onProgress?: ModelLoadingProgressCallback): Promise<{
|
|
25
|
-
model: Model;
|
|
26
|
-
caches: SbmCache;
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* @param dataView
|
|
30
|
-
* @param offset
|
|
31
|
-
* @param onProgress
|
|
32
|
-
*/
|
|
33
|
-
_parseV3(dataView: DataView, offset: number, onProgress?: ModelLoadingProgressCallback): Promise<{
|
|
34
|
-
model: Model;
|
|
35
|
-
caches: SbmCache;
|
|
36
|
-
}>;
|
|
37
|
-
}
|
|
38
|
-
export { ModelLoadingProgress, ModelLoadingProgressCallback, };
|
|
39
|
-
export { SbmPrivateLoader, };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Model, ModelInfo } from '../../Library';
|
|
2
|
-
import { ModelLoadingProgressCallback } from '../../Interface';
|
|
3
|
-
import { SbmCache } from '../../Interface/sbmCache';
|
|
4
|
-
import SDataView from './SDataView';
|
|
5
|
-
declare class SbmPublicLoader {
|
|
6
|
-
materials: Map<string, any>;
|
|
7
|
-
sbmInfo: ModelInfo | null;
|
|
8
|
-
constructor();
|
|
9
|
-
/**
|
|
10
|
-
* 解析模型
|
|
11
|
-
* @param buffer 模型二进制原数据
|
|
12
|
-
* @param sbmInfo 模型信息
|
|
13
|
-
* @param onProgress 模型加载进度回填函数
|
|
14
|
-
*/
|
|
15
|
-
parseBuffer(buffer: ArrayBuffer, sbmInfo: ModelInfo, onProgress?: ModelLoadingProgressCallback): Promise<{
|
|
16
|
-
model: Model;
|
|
17
|
-
caches: SbmCache;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* @param dataView
|
|
21
|
-
* @param offset
|
|
22
|
-
* @param onProgress
|
|
23
|
-
*/
|
|
24
|
-
_parseV2(dataView: SDataView, onProgress?: ModelLoadingProgressCallback): Promise<{
|
|
25
|
-
model: Model;
|
|
26
|
-
caches: SbmCache;
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* @param dataView
|
|
30
|
-
* @param offset
|
|
31
|
-
* @param onProgress
|
|
32
|
-
*/
|
|
33
|
-
_parseV3(dataView: SDataView, onProgress?: ModelLoadingProgressCallback): Promise<{
|
|
34
|
-
model: Model;
|
|
35
|
-
caches: SbmCache;
|
|
36
|
-
}>;
|
|
37
|
-
}
|
|
38
|
-
export { SbmPublicLoader, };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MeshStandardMaterial } from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* 贴图是否 png 格式
|
|
4
|
-
* @param textureUrl
|
|
5
|
-
* @returns
|
|
6
|
-
*/
|
|
7
|
-
export declare const isPNG: (textureUrl?: string) => boolean;
|
|
8
|
-
export declare const getTextureName: (dataView: DataView, texnamelen: number, offset: number) => string;
|
|
9
|
-
/**
|
|
10
|
-
* 获取材质贴图路径
|
|
11
|
-
* @param modelUrl 模型资源路径
|
|
12
|
-
* @param name 贴图名称
|
|
13
|
-
*/
|
|
14
|
-
export declare const getTextureUrl: (url: string, path: string) => string;
|
|
15
|
-
/**
|
|
16
|
-
* 生成 sbm 纹理
|
|
17
|
-
* @param url
|
|
18
|
-
*/
|
|
19
|
-
export declare const generateSbmTexture: (material: MeshStandardMaterial, textureUrl: string) => void;
|
|
20
|
-
/**
|
|
21
|
-
* 生成 sbm 材质
|
|
22
|
-
* @param materialId
|
|
23
|
-
* @param arr
|
|
24
|
-
* @param png
|
|
25
|
-
*/
|
|
26
|
-
export declare const generateSbmMaterial: (materialId: string, arr: number[], png: boolean) => MeshStandardMaterial;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Object3D } from 'three';
|
|
2
|
-
import Viewport from '../Viewport';
|
|
3
|
-
import { Group, GroupInfo, Canvas3D, Canvas3DInfo } from '../Library';
|
|
4
|
-
import DefaultManage from './DefaultManage';
|
|
5
|
-
import { ObjectsCache } from '../Cache';
|
|
6
|
-
declare class Canvas3DManage extends DefaultManage {
|
|
7
|
-
readonly viewport: Viewport;
|
|
8
|
-
readonly cache: ObjectsCache;
|
|
9
|
-
constructor(viewport: Viewport, cache: ObjectsCache);
|
|
10
|
-
create(info: Canvas3DInfo, parent?: Object3D | null): Canvas3D;
|
|
11
|
-
createToGroup(groupInfo: GroupInfo, canvas3DInfo: Canvas3DInfo[]): Group;
|
|
12
|
-
addForGroup(group: Group | null, canvas3DInfo: Canvas3DInfo[]): Group | null;
|
|
13
|
-
}
|
|
14
|
-
export default Canvas3DManage;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Object3D } from 'three';
|
|
2
|
-
import Viewport from '../Viewport';
|
|
3
|
-
import DefaultManage from './DefaultManage';
|
|
4
|
-
import { ObjectsCache } from '../Cache';
|
|
5
|
-
import { Decal, DecalGeometryInfo, DecalInfo } from '../Library';
|
|
6
|
-
declare class DecalManage extends DefaultManage {
|
|
7
|
-
readonly viewport: Viewport;
|
|
8
|
-
readonly cache: ObjectsCache;
|
|
9
|
-
constructor(viewport: Viewport, cache: ObjectsCache);
|
|
10
|
-
/**
|
|
11
|
-
* 创建贴花
|
|
12
|
-
*/
|
|
13
|
-
create(info: DecalInfo, parent?: Object3D | null): Promise<Decal>;
|
|
14
|
-
updateAllGeometry(info?: DecalGeometryInfo): void;
|
|
15
|
-
/**
|
|
16
|
-
* 更新贴花结构
|
|
17
|
-
* @param decal
|
|
18
|
-
* @param info
|
|
19
|
-
*/
|
|
20
|
-
updateGeometry(decal: Decal, info?: DecalGeometryInfo): Decal;
|
|
21
|
-
}
|
|
22
|
-
export default DecalManage;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Object3D } from 'three';
|
|
2
|
-
import Viewport from '../Viewport';
|
|
3
|
-
import { Group, GroupInfo, BaseObject3D } from '../Library';
|
|
4
|
-
declare class DefaultManage {
|
|
5
|
-
readonly type: string;
|
|
6
|
-
readonly viewport: Viewport;
|
|
7
|
-
readonly objectsCache: Set<Object3D>;
|
|
8
|
-
readonly scene: import("three").Scene;
|
|
9
|
-
constructor(type: string, viewport: Viewport, objectsCache: Set<Object3D>);
|
|
10
|
-
/***
|
|
11
|
-
* group
|
|
12
|
-
*/
|
|
13
|
-
createGroup(groupInfo: GroupInfo, parent?: Object3D | null): Group;
|
|
14
|
-
clear(): void;
|
|
15
|
-
getAll<T = BaseObject3D>(): T[];
|
|
16
|
-
hideAll(): void;
|
|
17
|
-
showAll(): void;
|
|
18
|
-
}
|
|
19
|
-
export default DefaultManage;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ObjectsCache } from '../Cache';
|
|
2
|
-
import Viewport from '../Viewport';
|
|
3
|
-
import DefaultManage from './DefaultManage';
|
|
4
|
-
declare class GroupManage extends DefaultManage {
|
|
5
|
-
readonly viewport: Viewport;
|
|
6
|
-
readonly cache: ObjectsCache;
|
|
7
|
-
constructor(viewport: Viewport, cache: ObjectsCache);
|
|
8
|
-
}
|
|
9
|
-
export default GroupManage;
|