qg3dviewer 1.0.0
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/LICENSE +21 -0
- package/README.md +94 -0
- package/dist/controls/CameraControls.d.ts +14 -0
- package/dist/controls/SetupCameraControls.d.ts +35 -0
- package/dist/controls/SetupFlying.d.ts +2 -0
- package/dist/convert/PlyToSplatConverter.d.ts +1 -0
- package/dist/convert/SplatToPlyConverter.d.ts +1 -0
- package/dist/events/EventConstants.d.ts +438 -0
- package/dist/events/EventListener.d.ts +2 -0
- package/dist/events/Events.d.ts +12 -0
- package/dist/events/SetupGlobalEV.d.ts +2 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +6817 -0
- package/dist/index.umd.js +747 -0
- package/dist/internal/Index.d.ts +1 -0
- package/dist/internal/WebglVars.d.ts +31 -0
- package/dist/mapviewer/Reall3dMapViewer.d.ts +59 -0
- package/dist/mapviewer/Reall3dMapViewerOptions.d.ts +34 -0
- package/dist/mapviewer/events/MapEventListener.d.ts +2 -0
- package/dist/mapviewer/tween/SetupTween.d.ts +2 -0
- package/dist/mapviewer/utils/MapUtils.d.ts +6 -0
- package/dist/mapviewer/warpsplatmesh/WarpSplatMesh.d.ts +23 -0
- package/dist/meshs/boundbox/BoundBox.d.ts +7 -0
- package/dist/meshs/controlplane/ArrowHelper.d.ts +12 -0
- package/dist/meshs/controlplane/SetupControlPlane.d.ts +2 -0
- package/dist/meshs/focusmaker/SetupFocusMarker.d.ts +2 -0
- package/dist/meshs/mark/MarkCirclePlan.d.ts +36 -0
- package/dist/meshs/mark/MarkDistanceLine.d.ts +38 -0
- package/dist/meshs/mark/MarkMulitPlans.d.ts +40 -0
- package/dist/meshs/mark/MarkMultiLines.d.ts +37 -0
- package/dist/meshs/mark/MarkSinglePoint.d.ts +23 -0
- package/dist/meshs/mark/SetupMark.d.ts +2 -0
- package/dist/meshs/mark/data/MarkData.d.ts +6 -0
- package/dist/meshs/mark/data/MarkDataCirclePlan.d.ts +34 -0
- package/dist/meshs/mark/data/MarkDataDistanceLine.d.ts +34 -0
- package/dist/meshs/mark/data/MarkDataMultiLines.d.ts +32 -0
- package/dist/meshs/mark/data/MarkDataMultiPlans.d.ts +36 -0
- package/dist/meshs/mark/data/MarkDataSinglePoint.d.ts +24 -0
- package/dist/meshs/splatmesh/SetupSplatMesh.d.ts +2 -0
- package/dist/meshs/splatmesh/SplatMesh.d.ts +38 -0
- package/dist/meshs/splatmesh/SplatMeshOptions.d.ts +106 -0
- package/dist/modeldata/ModelData.d.ts +205 -0
- package/dist/modeldata/ModelOptions.d.ts +17 -0
- package/dist/modeldata/SplatTexdata.d.ts +40 -0
- package/dist/modeldata/SplatTexdataManager.d.ts +5 -0
- package/dist/modeldata/loaders/FileLoader.d.ts +2 -0
- package/dist/modeldata/loaders/PlyLoader.d.ts +5 -0
- package/dist/modeldata/loaders/SogLoader.d.ts +2 -0
- package/dist/modeldata/loaders/SplatLoader.d.ts +2 -0
- package/dist/modeldata/loaders/SpxLoader.d.ts +2 -0
- package/dist/modeldata/loaders/SpzLoader.d.ts +2 -0
- package/dist/modeldata/text/SetupGaussianText.d.ts +2 -0
- package/dist/modeldata/wasm/WasmParser.d.ts +19 -0
- package/dist/raycaster/SetupRaycaster.d.ts +2 -0
- package/dist/sorter/SetupSorter.d.ts +2 -0
- package/dist/sorter/Sorter.d.ts +1 -0
- package/dist/tools/brush-selection.d.ts +10 -0
- package/dist/tools/lasso-selection.d.ts +10 -0
- package/dist/tools/polygon-selection.d.ts +10 -0
- package/dist/tools/rect-selection.d.ts +8 -0
- package/dist/tools/tool-manager.d.ts +15 -0
- package/dist/utils/CommonUtils.d.ts +171 -0
- package/dist/utils/ViewerUtils.d.ts +10 -0
- package/dist/utils/consts/GlobalConstants.d.ts +62 -0
- package/dist/utils/consts/Index.d.ts +2 -0
- package/dist/utils/consts/WkConstants.d.ts +76 -0
- package/dist/viewer/Reall3dViewer.d.ts +57 -0
- package/dist/viewer/Reall3dViewerOptions.d.ts +174 -0
- package/package.json +50 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WebglVars';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const VarCurrentVisibleRadius = "currentVisibleRadius";
|
|
2
|
+
export declare const VarCurrentLightRadius = "currentLightRadius";
|
|
3
|
+
export declare const VarTransitionEffect = "transitionEffect";
|
|
4
|
+
export declare const VarSplatShTexture12 = "splatShTexture12";
|
|
5
|
+
export declare const VarMaxPixelDiameter = "maxPixelDiameter";
|
|
6
|
+
export declare const VarMinPixelDiameter = "minPixelDiameter";
|
|
7
|
+
export declare const VarSplatShTexture3 = "splatShTexture3";
|
|
8
|
+
export declare const VarPerformanceNow = "performanceNow";
|
|
9
|
+
export declare const VarPerformanceAct = "performanceAct";
|
|
10
|
+
export declare const VarWaterMarkColor = "waterMarkColor";
|
|
11
|
+
export declare const VarShowWaterMark = "showWaterMark";
|
|
12
|
+
export declare const VarUseSimilarExp = "useSimilarExp";
|
|
13
|
+
export declare const VarSplatTexture0 = "splatTexture0";
|
|
14
|
+
export declare const VarSplatTexture1 = "splatTexture1";
|
|
15
|
+
export declare const VarParticleMode = "particleMode";
|
|
16
|
+
export declare const VarBigSceneMode = "bigSceneMode";
|
|
17
|
+
export declare const VarLightFactor = "lightFactor";
|
|
18
|
+
export declare const VarDebugEffect = "debugEffect";
|
|
19
|
+
export declare const VarUsingIndex = "usingIndex";
|
|
20
|
+
export declare const VarSplatIndex = "splatIndex";
|
|
21
|
+
export declare const VarMaxRadius = "maxRadius";
|
|
22
|
+
export declare const VarFlagValue = "flagValue";
|
|
23
|
+
export declare const VarVPosition = "vPosition";
|
|
24
|
+
export declare const VarPointMode = "pointMode";
|
|
25
|
+
export declare const VarMarkPoint = "markPoint";
|
|
26
|
+
export declare const VarShDegree = "shDegree";
|
|
27
|
+
export declare const VarViewport = "viewport";
|
|
28
|
+
export declare const VarMinAlpha = "minAlpha";
|
|
29
|
+
export declare const VarVColor = "vColor";
|
|
30
|
+
export declare const VarFocal = "focal";
|
|
31
|
+
export declare const VarTopY = "topY";
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AmbientLight, DirectionalLight, EventDispatcher, PerspectiveCamera, Scene, WebGLRenderer } from 'three';
|
|
2
|
+
import { MapControls } from 'three/examples/jsm/controls/MapControls.js';
|
|
3
|
+
import { Events } from '../events/Events';
|
|
4
|
+
import { Reall3dMapViewerOptions } from './Reall3dMapViewerOptions';
|
|
5
|
+
import * as tt from '@gotoeasy/three-tile';
|
|
6
|
+
/**
|
|
7
|
+
* Built-in Map viewer with Gaussian Splatting model support
|
|
8
|
+
*/
|
|
9
|
+
export declare class Reall3dMapViewer extends EventDispatcher<tt.plugin.GLViewerEventMap> {
|
|
10
|
+
scene: Scene;
|
|
11
|
+
renderer: WebGLRenderer;
|
|
12
|
+
camera: PerspectiveCamera;
|
|
13
|
+
controls: MapControls;
|
|
14
|
+
ambLight: AmbientLight;
|
|
15
|
+
dirLight: DirectionalLight;
|
|
16
|
+
container: HTMLElement;
|
|
17
|
+
tileMap: tt.TileMap;
|
|
18
|
+
events: Events;
|
|
19
|
+
private clock;
|
|
20
|
+
private updateTime;
|
|
21
|
+
private disposed;
|
|
22
|
+
constructor(options?: Reall3dMapViewerOptions);
|
|
23
|
+
/**
|
|
24
|
+
* 打开地图场景
|
|
25
|
+
* @param 场景索引文件地址
|
|
26
|
+
*/
|
|
27
|
+
addScenes(urlScenesJson: string): void;
|
|
28
|
+
private resize;
|
|
29
|
+
private animate;
|
|
30
|
+
/**
|
|
31
|
+
* 销毁
|
|
32
|
+
*/
|
|
33
|
+
dispose(): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 地图入口索引文件
|
|
37
|
+
*/
|
|
38
|
+
export interface ScenesJsonData {
|
|
39
|
+
/**
|
|
40
|
+
* 名称
|
|
41
|
+
*/
|
|
42
|
+
name?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 版本
|
|
45
|
+
*/
|
|
46
|
+
version?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 初始相机位置
|
|
49
|
+
*/
|
|
50
|
+
position?: number[];
|
|
51
|
+
/**
|
|
52
|
+
* 初始相机视点
|
|
53
|
+
*/
|
|
54
|
+
lookAt?: number[];
|
|
55
|
+
/**
|
|
56
|
+
* 场景url列表
|
|
57
|
+
*/
|
|
58
|
+
scenes?: string[];
|
|
59
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration options for Reall3dMapViewer
|
|
3
|
+
*/
|
|
4
|
+
export declare interface Reall3dMapViewerOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Container element or its selector (default: '#map').
|
|
7
|
+
* Will be automatically created if not found.
|
|
8
|
+
*/
|
|
9
|
+
root?: HTMLElement | string;
|
|
10
|
+
/**
|
|
11
|
+
* Enable keyboard controls (default: false)
|
|
12
|
+
*/
|
|
13
|
+
enableKeyboard?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Minimum panning boundaries (default: [-20000, 0.1, -60000])
|
|
16
|
+
*/
|
|
17
|
+
minPan?: number[];
|
|
18
|
+
/**
|
|
19
|
+
* Maximum panning boundaries (default: [50000, 10000, 0])
|
|
20
|
+
*/
|
|
21
|
+
maxPan?: number[];
|
|
22
|
+
/**
|
|
23
|
+
* Background color (default: '#dbf0ff')
|
|
24
|
+
*/
|
|
25
|
+
background?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Debug mode flag (default: false in production)
|
|
28
|
+
*/
|
|
29
|
+
debugMode?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Edit mode flag (default: false)
|
|
32
|
+
*/
|
|
33
|
+
editMode?: boolean;
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Events } from '../../events/Events';
|
|
2
|
+
import { Reall3dMapViewerOptions } from '../Reall3dMapViewerOptions';
|
|
3
|
+
import * as tt from '@gotoeasy/three-tile';
|
|
4
|
+
export declare function setupMapUtils(events: Events): void;
|
|
5
|
+
export declare function initMapViewerOptions(options: Reall3dMapViewerOptions): Reall3dMapViewerOptions;
|
|
6
|
+
export declare function initTileMap(): tt.TileMap;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Mesh } from 'three';
|
|
2
|
+
import { SplatMesh } from '../../meshs/splatmesh/SplatMesh';
|
|
3
|
+
import { MetaData } from '../../modeldata/ModelData';
|
|
4
|
+
import { Reall3dMapViewer } from '../Reall3dMapViewer';
|
|
5
|
+
export declare class WarpSplatMesh extends Mesh {
|
|
6
|
+
readonly isWarpSplatMesh: boolean;
|
|
7
|
+
meta: MetaData;
|
|
8
|
+
lastActiveTime: number;
|
|
9
|
+
splatMesh: SplatMesh;
|
|
10
|
+
active: boolean;
|
|
11
|
+
private opts;
|
|
12
|
+
private css3dTag;
|
|
13
|
+
private mapViewer;
|
|
14
|
+
private metaMatrix;
|
|
15
|
+
private disposed;
|
|
16
|
+
constructor(sceneUrl: string, mapViewer: Reall3dMapViewer);
|
|
17
|
+
private addScene;
|
|
18
|
+
private initCSS3DSprite;
|
|
19
|
+
/**
|
|
20
|
+
* 销毁
|
|
21
|
+
*/
|
|
22
|
+
dispose(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Object3D } from 'three';
|
|
2
|
+
export declare class BoundBox extends Object3D {
|
|
3
|
+
private boxLines;
|
|
4
|
+
constructor(minX?: number, minY?: number, minZ?: number, maxX?: number, maxY?: number, maxZ?: number);
|
|
5
|
+
update(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number, show?: boolean): void;
|
|
6
|
+
dispose(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Object3D, Vector3 } from 'three';
|
|
2
|
+
export declare class ArrowHelper extends Object3D {
|
|
3
|
+
private line;
|
|
4
|
+
private cone;
|
|
5
|
+
type: string;
|
|
6
|
+
private _axis;
|
|
7
|
+
constructor(dir?: Vector3, origin?: Vector3, length?: number, radius?: number, color?: number, headLength?: number, headRadius?: number);
|
|
8
|
+
setDirection(dir: any): void;
|
|
9
|
+
setColor(color: any): void;
|
|
10
|
+
copy(source: any): this;
|
|
11
|
+
dispose(): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Group, Vector3 } from 'three';
|
|
2
|
+
import { Events } from '../../events/Events';
|
|
3
|
+
import { MarkData } from './data/MarkData';
|
|
4
|
+
import { MarkDataCirclePlan } from './data/MarkDataCirclePlan';
|
|
5
|
+
export declare class MarkCirclePlan extends Group {
|
|
6
|
+
readonly isMark: boolean;
|
|
7
|
+
private disposed;
|
|
8
|
+
private events;
|
|
9
|
+
private data;
|
|
10
|
+
private circleMesh;
|
|
11
|
+
private css3dMainTag;
|
|
12
|
+
private css3dTag;
|
|
13
|
+
constructor(events: Events);
|
|
14
|
+
/**
|
|
15
|
+
* 绘制开始
|
|
16
|
+
*/
|
|
17
|
+
drawStart(startPoint: Vector3, name?: string): void;
|
|
18
|
+
/**
|
|
19
|
+
* 绘制更新
|
|
20
|
+
*/
|
|
21
|
+
drawUpdate(data: MarkDataCirclePlan, saveData?: boolean, lastPoint?: Vector3): void;
|
|
22
|
+
/**
|
|
23
|
+
* 按米标比例尺重新计算更新渲染
|
|
24
|
+
*/
|
|
25
|
+
updateByMeterScale(meterScale: number): void;
|
|
26
|
+
/**
|
|
27
|
+
* 绘制结束
|
|
28
|
+
*/
|
|
29
|
+
drawFinish(endPoint: Vector3): void;
|
|
30
|
+
/**
|
|
31
|
+
* 根据数据直接绘制
|
|
32
|
+
*/
|
|
33
|
+
draw(inputData: MarkDataCirclePlan): void;
|
|
34
|
+
getMarkData(simple?: boolean): MarkData;
|
|
35
|
+
dispose(): void;
|
|
36
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Vector3 } from 'three';
|
|
2
|
+
import { Line2 } from 'three/examples/jsm/Addons.js';
|
|
3
|
+
import { Events } from '../../events/Events';
|
|
4
|
+
import { MarkDataDistanceLine } from './data/MarkDataDistanceLine';
|
|
5
|
+
import { MarkData } from './data/MarkData';
|
|
6
|
+
export declare class MarkDistanceLine extends Line2 {
|
|
7
|
+
readonly isMark: boolean;
|
|
8
|
+
private disposed;
|
|
9
|
+
private events;
|
|
10
|
+
private data;
|
|
11
|
+
private circleStart;
|
|
12
|
+
private circleEnd;
|
|
13
|
+
private css3dMainTag;
|
|
14
|
+
private css3dTag;
|
|
15
|
+
constructor(events: Events);
|
|
16
|
+
/**
|
|
17
|
+
* 绘制开始
|
|
18
|
+
*/
|
|
19
|
+
drawStart(startPoint: Vector3, name?: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* 绘制更新
|
|
22
|
+
*/
|
|
23
|
+
drawUpdate(data: MarkDataDistanceLine, saveData?: boolean): void;
|
|
24
|
+
/**
|
|
25
|
+
* 按米标比例尺重新计算更新渲染
|
|
26
|
+
*/
|
|
27
|
+
updateByMeterScale(meterScale: number): void;
|
|
28
|
+
/**
|
|
29
|
+
* 绘制结束
|
|
30
|
+
*/
|
|
31
|
+
drawFinish(endPoint: Vector3): void;
|
|
32
|
+
/**
|
|
33
|
+
* 根据数据直接绘制
|
|
34
|
+
*/
|
|
35
|
+
draw(inputData: MarkDataDistanceLine): void;
|
|
36
|
+
getMarkData(simple?: boolean): MarkData;
|
|
37
|
+
dispose(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Vector3 } from 'three';
|
|
2
|
+
import { Line2 } from 'three/examples/jsm/Addons.js';
|
|
3
|
+
import { Events } from '../../events/Events';
|
|
4
|
+
import { MarkData } from './data/MarkData';
|
|
5
|
+
import { MarkDataMultiPlans } from './data/MarkDataMultiPlans';
|
|
6
|
+
export declare class MarkMultiPlans extends Line2 {
|
|
7
|
+
readonly isMark: boolean;
|
|
8
|
+
private disposed;
|
|
9
|
+
private events;
|
|
10
|
+
private data;
|
|
11
|
+
private css3dTags;
|
|
12
|
+
private css3dMainTag;
|
|
13
|
+
private css3dAreaTag;
|
|
14
|
+
private group;
|
|
15
|
+
private meshPlans;
|
|
16
|
+
constructor(events: Events);
|
|
17
|
+
/**
|
|
18
|
+
* 绘制开始
|
|
19
|
+
*/
|
|
20
|
+
drawStart(startPoint: Vector3, name?: string): void;
|
|
21
|
+
/**
|
|
22
|
+
* 绘制更新
|
|
23
|
+
*/
|
|
24
|
+
drawUpdate(data?: MarkDataMultiPlans, saveData?: boolean, lastPoint?: Vector3, next?: boolean): void;
|
|
25
|
+
/**
|
|
26
|
+
* 按米标比例尺重新计算更新渲染
|
|
27
|
+
*/
|
|
28
|
+
updateByMeterScale(meterScale: number): void;
|
|
29
|
+
/**
|
|
30
|
+
* 绘制结束
|
|
31
|
+
*/
|
|
32
|
+
drawFinish(hasSelectPoint?: boolean): void;
|
|
33
|
+
/**
|
|
34
|
+
* 根据数据直接绘制
|
|
35
|
+
*/
|
|
36
|
+
draw(inputData: MarkDataMultiPlans, finish?: boolean): void;
|
|
37
|
+
private drawPlans;
|
|
38
|
+
getMarkData(simple?: boolean): MarkData;
|
|
39
|
+
dispose(): void;
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Vector3 } from 'three';
|
|
2
|
+
import { Line2 } from 'three/examples/jsm/Addons.js';
|
|
3
|
+
import { Events } from '../../events/Events';
|
|
4
|
+
import { MarkData } from './data/MarkData';
|
|
5
|
+
import { MarkDataMultiLines } from './data/MarkDataMultiLines';
|
|
6
|
+
export declare class MarkMultiLines extends Line2 {
|
|
7
|
+
readonly isMark: boolean;
|
|
8
|
+
private disposed;
|
|
9
|
+
private events;
|
|
10
|
+
private data;
|
|
11
|
+
private css3dTags;
|
|
12
|
+
private css3dMainTag;
|
|
13
|
+
private group;
|
|
14
|
+
constructor(events: Events);
|
|
15
|
+
/**
|
|
16
|
+
* 绘制开始
|
|
17
|
+
*/
|
|
18
|
+
drawStart(startPoint: Vector3, name?: string): void;
|
|
19
|
+
/**
|
|
20
|
+
* 绘制更新
|
|
21
|
+
*/
|
|
22
|
+
drawUpdate(data?: MarkDataMultiLines, saveData?: boolean, lastPoint?: Vector3, next?: boolean): void;
|
|
23
|
+
/**
|
|
24
|
+
* 按米标比例尺重新计算更新渲染
|
|
25
|
+
*/
|
|
26
|
+
updateByMeterScale(meterScale: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* 绘制结束
|
|
29
|
+
*/
|
|
30
|
+
drawFinish(hasSelectPoint?: boolean): void;
|
|
31
|
+
/**
|
|
32
|
+
* 根据数据直接绘制
|
|
33
|
+
*/
|
|
34
|
+
draw(inputData: MarkDataMultiLines, finish?: boolean): void;
|
|
35
|
+
getMarkData(simple?: boolean): MarkData;
|
|
36
|
+
dispose(): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Group, Vector3 } from 'three';
|
|
2
|
+
import { Events } from '../../events/Events';
|
|
3
|
+
import { MarkData } from './data/MarkData';
|
|
4
|
+
import { MarkDataSinglePoint } from './data/MarkDataSinglePoint';
|
|
5
|
+
export declare class MarkSinglePoint extends Group {
|
|
6
|
+
readonly isMark: boolean;
|
|
7
|
+
private disposed;
|
|
8
|
+
private events;
|
|
9
|
+
private data;
|
|
10
|
+
private css3dTag;
|
|
11
|
+
constructor(events: Events, obj: Vector3 | MarkDataSinglePoint, name?: string);
|
|
12
|
+
/**
|
|
13
|
+
* 绘制更新
|
|
14
|
+
*/
|
|
15
|
+
drawUpdate(data?: MarkDataSinglePoint, saveData?: boolean): void;
|
|
16
|
+
resetMeterScale(markData: any): void;
|
|
17
|
+
/**
|
|
18
|
+
* 绘制结束
|
|
19
|
+
*/
|
|
20
|
+
drawFinish(): void;
|
|
21
|
+
getMarkData(simple?: boolean): MarkData;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { MarkData } from './MarkData';
|
|
2
|
+
/**
|
|
3
|
+
* 圆面数据
|
|
4
|
+
*/
|
|
5
|
+
export interface MarkDataCirclePlan extends MarkData {
|
|
6
|
+
/** 圆心点 */
|
|
7
|
+
startPoint?: number[];
|
|
8
|
+
/** 圆半径 */
|
|
9
|
+
radius?: number;
|
|
10
|
+
/** 圆颜色,默认 #eeee00 */
|
|
11
|
+
circleColor?: string;
|
|
12
|
+
/** 圆颜色透明度,默认0.5 */
|
|
13
|
+
circleOpacity?: number;
|
|
14
|
+
/** 主标签字体颜色,默认 #c4c4c4 */
|
|
15
|
+
mainTagColor?: string;
|
|
16
|
+
/** 主标签背景颜色,默认 #2E2E30 */
|
|
17
|
+
mainTagBackground?: string;
|
|
18
|
+
/** 主标签透明度,默认 0.8 */
|
|
19
|
+
mainTagOpacity?: number;
|
|
20
|
+
/** 主标签标签是否显示,默认 true */
|
|
21
|
+
mainTagVisible?: boolean;
|
|
22
|
+
/** 标签字体颜色,默认 #000000 */
|
|
23
|
+
circleTagColor?: string;
|
|
24
|
+
/** 标签背景颜色,默认 #e0ffff */
|
|
25
|
+
circleTagBackground?: string;
|
|
26
|
+
/** 标签透明度,默认 0.9 */
|
|
27
|
+
circleTagOpacity?: number;
|
|
28
|
+
/** 标签是否显示,默认 true */
|
|
29
|
+
circleTagVisible?: boolean;
|
|
30
|
+
/** 标题 */
|
|
31
|
+
title?: string;
|
|
32
|
+
/** 说明 */
|
|
33
|
+
note?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { MarkData } from './MarkData';
|
|
2
|
+
/**
|
|
3
|
+
* 距离测量线数据
|
|
4
|
+
*/
|
|
5
|
+
export interface MarkDataDistanceLine extends MarkData {
|
|
6
|
+
/** 起点 */
|
|
7
|
+
startPoint?: number[];
|
|
8
|
+
/** 终点 */
|
|
9
|
+
endPoint?: number[];
|
|
10
|
+
/** 线颜色,默认 #eeee00 */
|
|
11
|
+
lineColor?: string;
|
|
12
|
+
/** 线宽,默认 3 */
|
|
13
|
+
lineWidth?: number;
|
|
14
|
+
/** 主标签字体颜色,默认 #c4c4c4 */
|
|
15
|
+
mainTagColor?: string;
|
|
16
|
+
/** 主标签背景颜色,默认 #2E2E30 */
|
|
17
|
+
mainTagBackground?: string;
|
|
18
|
+
/** 主标签透明度,默认 0.8 */
|
|
19
|
+
mainTagOpacity?: number;
|
|
20
|
+
/** 主标签标签是否显示,默认 true */
|
|
21
|
+
mainTagVisible?: boolean;
|
|
22
|
+
/** 标签字体颜色,默认 #000000 */
|
|
23
|
+
distanceTagColor?: string;
|
|
24
|
+
/** 标签背景颜色,默认 #e0ffff */
|
|
25
|
+
distanceTagBackground?: string;
|
|
26
|
+
/** 标签透明度,默认 0.9 */
|
|
27
|
+
distanceTagOpacity?: number;
|
|
28
|
+
/** 距离标签是否显示,默认 true */
|
|
29
|
+
distanceTagVisible?: boolean;
|
|
30
|
+
/** 标题 */
|
|
31
|
+
title?: string;
|
|
32
|
+
/** 说明 */
|
|
33
|
+
note?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { MarkData } from './MarkData';
|
|
2
|
+
/**
|
|
3
|
+
* 多线段连接线数据
|
|
4
|
+
*/
|
|
5
|
+
export interface MarkDataMultiLines extends MarkData {
|
|
6
|
+
/** 点 */
|
|
7
|
+
points?: number[];
|
|
8
|
+
/** 线颜色,默认 #eeee00 */
|
|
9
|
+
lineColor?: string;
|
|
10
|
+
/** 线宽,默认 3 */
|
|
11
|
+
lineWidth?: number;
|
|
12
|
+
/** 主标签字体颜色,默认 #c4c4c4 */
|
|
13
|
+
mainTagColor?: string;
|
|
14
|
+
/** 主标签背景颜色,默认 #2E2E30 */
|
|
15
|
+
mainTagBackground?: string;
|
|
16
|
+
/** 主标签透明度,默认 0.8 */
|
|
17
|
+
mainTagOpacity?: number;
|
|
18
|
+
/** 主标签标签是否显示,默认 true */
|
|
19
|
+
mainTagVisible?: boolean;
|
|
20
|
+
/** 距离标签字体颜色,默认 #000000 */
|
|
21
|
+
distanceTagColor?: string;
|
|
22
|
+
/** 距离标签背景颜色,默认 #e0ffff */
|
|
23
|
+
distanceTagBackground?: string;
|
|
24
|
+
/** 距离标签透明度,默认 0.9 */
|
|
25
|
+
distanceTagOpacity?: number;
|
|
26
|
+
/** 距离标签是否显示,默认 true */
|
|
27
|
+
distanceTagVisible?: boolean;
|
|
28
|
+
/** 标题 */
|
|
29
|
+
title?: string;
|
|
30
|
+
/** 说明 */
|
|
31
|
+
note?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MarkData } from './MarkData';
|
|
2
|
+
/**
|
|
3
|
+
* 多三角面数据
|
|
4
|
+
*/
|
|
5
|
+
export interface MarkDataMultiPlans extends MarkData {
|
|
6
|
+
/** 点 */
|
|
7
|
+
points?: number[];
|
|
8
|
+
/** 线颜色(面颜色共用),默认 #eeee00 */
|
|
9
|
+
lineColor?: string;
|
|
10
|
+
/** 线宽,默认 3 */
|
|
11
|
+
lineWidth?: number;
|
|
12
|
+
/** 主标签字体颜色,默认 #c4c4c4 */
|
|
13
|
+
mainTagColor?: string;
|
|
14
|
+
/** 主标签背景颜色,默认 #2E2E30 */
|
|
15
|
+
mainTagBackground?: string;
|
|
16
|
+
/** 主标签透明度,默认 0.8 */
|
|
17
|
+
mainTagOpacity?: number;
|
|
18
|
+
/** 主标签标签是否显示,默认 true */
|
|
19
|
+
mainTagVisible?: boolean;
|
|
20
|
+
/** 面积标签字体颜色,默认 #000000 */
|
|
21
|
+
areaTagColor?: string;
|
|
22
|
+
/** 面积标签背景颜色,默认 #e0ffff */
|
|
23
|
+
areaTagBackground?: string;
|
|
24
|
+
/** 面积标签透明度,默认 0.9 */
|
|
25
|
+
areaTagOpacity?: number;
|
|
26
|
+
/** 面积标签是否显示,默认 true */
|
|
27
|
+
areaTagVisible?: boolean;
|
|
28
|
+
/** 距离标签是否显示,默认 true */
|
|
29
|
+
distanceTagVisible?: boolean;
|
|
30
|
+
/** 面透明度,默认 0.5 */
|
|
31
|
+
planOpacity?: number;
|
|
32
|
+
/** 标题 */
|
|
33
|
+
title?: string;
|
|
34
|
+
/** 说明 */
|
|
35
|
+
note?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MarkData } from './MarkData';
|
|
2
|
+
/**
|
|
3
|
+
* 单点数据
|
|
4
|
+
*/
|
|
5
|
+
export interface MarkDataSinglePoint extends MarkData {
|
|
6
|
+
/** 点位置 */
|
|
7
|
+
point?: number[];
|
|
8
|
+
/** 图标名称,默认 'pointIcon1' */
|
|
9
|
+
iconName?: string;
|
|
10
|
+
/** 图标颜色,默认 #F78A14 */
|
|
11
|
+
iconColor?: string;
|
|
12
|
+
/** 图标透明度,默认 0.8 */
|
|
13
|
+
iconOpacity?: number;
|
|
14
|
+
/** 主标签字体颜色,默认 #c4c4c4 */
|
|
15
|
+
mainTagColor?: string;
|
|
16
|
+
/** 主标签背景颜色,默认 #2E2E30 */
|
|
17
|
+
mainTagBackground?: string;
|
|
18
|
+
/** 主标签透明度,默认 0.8 */
|
|
19
|
+
mainTagOpacity?: number;
|
|
20
|
+
/** 标题 */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** 说明 */
|
|
23
|
+
note?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Mesh } from 'three';
|
|
2
|
+
import { SplatMeshOptions } from './SplatMeshOptions';
|
|
3
|
+
import { ModelOptions } from '../../modeldata/ModelOptions';
|
|
4
|
+
import { MetaData } from '../../modeldata/ModelData';
|
|
5
|
+
import { BoundBox } from '../boundbox/BoundBox';
|
|
6
|
+
/**
|
|
7
|
+
* Gaussian splatting mesh
|
|
8
|
+
*/
|
|
9
|
+
export declare class SplatMesh extends Mesh {
|
|
10
|
+
readonly isSplatMesh: boolean;
|
|
11
|
+
meta: MetaData;
|
|
12
|
+
private disposed;
|
|
13
|
+
private events;
|
|
14
|
+
private opts;
|
|
15
|
+
boundBox: BoundBox;
|
|
16
|
+
/**
|
|
17
|
+
* 构造函数
|
|
18
|
+
* @param options 渲染器、场景、相机都应该传入
|
|
19
|
+
*/
|
|
20
|
+
constructor(options: SplatMeshOptions);
|
|
21
|
+
/**
|
|
22
|
+
* 设定或者获取最新配置项
|
|
23
|
+
* @param opts 配置项
|
|
24
|
+
* @returns 最新配置项
|
|
25
|
+
*/
|
|
26
|
+
options(opts?: SplatMeshOptions): SplatMeshOptions;
|
|
27
|
+
/**
|
|
28
|
+
* 添加渲染指定高斯模型
|
|
29
|
+
* @param opts 高斯模型选项
|
|
30
|
+
* @param meta 元数据
|
|
31
|
+
*/
|
|
32
|
+
addModel(opts: ModelOptions, meta?: MetaData): Promise<void>;
|
|
33
|
+
fire(key: number, ...args: any): any;
|
|
34
|
+
/**
|
|
35
|
+
* 销毁
|
|
36
|
+
*/
|
|
37
|
+
dispose(): void;
|
|
38
|
+
}
|