@glowjs/core 2025.8.21 → 2025.9.3-webgpu
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/dist/glow.core.d.ts +8 -0
- package/dist/glow.core.js +1 -1
- package/dist/typings/base/Base.d.ts +24 -24
- package/dist/typings/base/IDisposable.d.ts +9 -9
- package/dist/typings/camera/AutoRotate.d.ts +36 -36
- package/dist/typings/camera/CameraCacheData.d.ts +21 -21
- package/dist/typings/camera/CameraMgr.d.ts +353 -351
- package/dist/typings/camera/CameraMode.d.ts +13 -13
- package/dist/typings/camera/CameraPerson.d.ts +13 -13
- package/dist/typings/camera/CustomArcRotateCameraKeyboardMoveInput.d.ts +28 -28
- package/dist/typings/camera/CustomArcRotateCameraMouseWheelInput.d.ts +17 -17
- package/dist/typings/camera/EasingFunction.d.ts +36 -36
- package/dist/typings/camera/FlyData.d.ts +29 -29
- package/dist/typings/camera/OrthographicView.d.ts +21 -21
- package/dist/typings/core/App.d.ts +169 -162
- package/dist/typings/core/AppOptions.d.ts +25 -25
- package/dist/typings/core/Size.d.ts +13 -13
- package/dist/typings/core/create.d.ts +9 -9
- package/dist/typings/core/version.d.ts +1 -1
- package/dist/typings/effect/Background.d.ts +12 -12
- package/dist/typings/effect/ColorCorrection.d.ts +129 -129
- package/dist/typings/effect/Decoration.d.ts +10 -10
- package/dist/typings/effect/EffectData.d.ts +197 -197
- package/dist/typings/effect/EffectMgr.d.ts +79 -79
- package/dist/typings/effect/EnvironmentTexture.d.ts +20 -20
- package/dist/typings/effect/EnvironmentTextureSource.d.ts +25 -25
- package/dist/typings/effect/Fog.d.ts +16 -16
- package/dist/typings/effect/Glow.d.ts +43 -43
- package/dist/typings/effect/HighLight.d.ts +49 -49
- package/dist/typings/effect/ImageProcessing.d.ts +43 -43
- package/dist/typings/effect/Light.d.ts +38 -38
- package/dist/typings/effect/Particle.d.ts +13 -13
- package/dist/typings/effect/ParticleData.d.ts +20 -20
- package/dist/typings/effect/SkyBox.d.ts +22 -22
- package/dist/typings/effect/ToneMappingType.d.ts +13 -13
- package/dist/typings/effect/defaultEffectValue.d.ts +5 -5
- package/dist/typings/entity/Building.d.ts +119 -119
- package/dist/typings/entity/Campus.d.ts +35 -35
- package/dist/typings/entity/Corner.d.ts +43 -43
- package/dist/typings/entity/DecorateGrid.d.ts +21 -21
- package/dist/typings/entity/DoorWindow.d.ts +77 -77
- package/dist/typings/entity/DoorWindowDirection.d.ts +21 -21
- package/dist/typings/entity/Entity.d.ts +393 -393
- package/dist/typings/entity/EntityType.d.ts +81 -81
- package/dist/typings/entity/Floor.d.ts +128 -128
- package/dist/typings/entity/Group.d.ts +34 -34
- package/dist/typings/entity/LeakLine.d.ts +44 -44
- package/dist/typings/entity/LevelMgr.d.ts +84 -84
- package/dist/typings/entity/ManualWall.d.ts +85 -85
- package/dist/typings/entity/ManualWallBuilder.d.ts +157 -157
- package/dist/typings/entity/MeshFaceData.d.ts +25 -25
- package/dist/typings/entity/OtherEntity.d.ts +24 -24
- package/dist/typings/entity/POI.d.ts +90 -90
- package/dist/typings/entity/Path.d.ts +1 -1
- package/dist/typings/entity/Pipe.d.ts +68 -68
- package/dist/typings/entity/PrefabWall.d.ts +57 -57
- package/dist/typings/entity/Room.d.ts +167 -167
- package/dist/typings/entity/Text3D.d.ts +70 -70
- package/dist/typings/entity/Thing.d.ts +142 -142
- package/dist/typings/entity/Tracker.d.ts +34 -34
- package/dist/typings/entity/VideoFusion.d.ts +61 -61
- package/dist/typings/entity/ViewInfo.d.ts +14 -14
- package/dist/typings/entity/Wall.d.ts +95 -95
- package/dist/typings/entity/building/buildBuilding.d.ts +7 -7
- package/dist/typings/entity/building/buildBuildingOnClient.d.ts +2 -2
- package/dist/typings/entity/building/buildBuildingOnEditor.d.ts +2 -2
- package/dist/typings/entity/component/Animator.d.ts +52 -52
- package/dist/typings/entity/component/AutoOpenDoor.d.ts +24 -24
- package/dist/typings/entity/component/Component.d.ts +22 -22
- package/dist/typings/entity/component/PathAnimation.d.ts +63 -63
- package/dist/typings/entity/component/Style.d.ts +51 -51
- package/dist/typings/entity/component/archive/ArchiveBox.d.ts +97 -97
- package/dist/typings/entity/component/archive/ArchiveCabinet.d.ts +120 -120
- package/dist/typings/entity/component/archive/ArchiveCabinetGroup.d.ts +169 -169
- package/dist/typings/entity/component/archive/ArchiveCabinetGroupCount.d.ts +16 -16
- package/dist/typings/entity/component/archive/ArchiveCabinetGroupState.d.ts +21 -21
- package/dist/typings/entity/component/archive/ArchiveDoor.d.ts +33 -33
- package/dist/typings/entity/component/archive/ArchiveGrid.d.ts +47 -47
- package/dist/typings/entity/component/archive/ArchiveMgr.d.ts +36 -36
- package/dist/typings/entity/component/archive/ColumnPosition.d.ts +17 -17
- package/dist/typings/entity/component/archive/createArchiveGrid.d.ts +6 -6
- package/dist/typings/entity/component/archive/createColumnTag.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onAppMove.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onAppRightDoubleClick.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onGroupLeftDoubleClick.d.ts +8 -8
- package/dist/typings/entity/component/archive/events/onGroupPointerLeave.d.ts +6 -6
- package/dist/typings/entity/component/archive/events/onGroupRightClick.d.ts +8 -8
- package/dist/typings/entity/component/archive/events/onLevelChanged.d.ts +8 -8
- package/dist/typings/entity/component/archive/getCapacityOriginBox.d.ts +6 -6
- package/dist/typings/entity/component/cabinet/AssetData.d.ts +19 -19
- package/dist/typings/entity/component/cabinet/BoardCard.d.ts +63 -63
- package/dist/typings/entity/component/cabinet/Cabinet.d.ts +121 -121
- package/dist/typings/entity/component/cabinet/CabinetCapacityData.d.ts +17 -17
- package/dist/typings/entity/component/cabinet/CabinetMgr.d.ts +54 -54
- package/dist/typings/entity/component/cabinet/CabinetTagStyleConfig.d.ts +25 -25
- package/dist/typings/entity/component/cabinet/NetworkPort.d.ts +46 -46
- package/dist/typings/entity/component/cabinet/RackMounted.d.ts +109 -109
- package/dist/typings/entity/component/cabinet/ResImageSource.d.ts +13 -13
- package/dist/typings/entity/component/cabinet/events/onAppMove.d.ts +6 -6
- package/dist/typings/entity/component/cabinet/events/onAppRightDoubleClick.d.ts +6 -6
- package/dist/typings/entity/component/cabinet/events/onCabinetLeftDoubleClick.d.ts +7 -7
- package/dist/typings/entity/component/cabinet/events/onCabinetPointerLeave.d.ts +2 -2
- package/dist/typings/entity/component/cabinet/events/onCabinetRightClick.d.ts +3 -3
- package/dist/typings/entity/component/cabinet/events/onLevelChanged.d.ts +8 -8
- package/dist/typings/entity/component/heatmap/Heatmap.d.ts +95 -95
- package/dist/typings/entity/component/heatmap/HeatmapType.d.ts +17 -17
- package/dist/typings/entity/component/heatmap/buildHorizontal.d.ts +6 -6
- package/dist/typings/entity/component/heatmap/buildTips.d.ts +2 -2
- package/dist/typings/entity/component/heatmap/buildVertical.d.ts +6 -6
- package/dist/typings/entity/component/heatmap/updateHorizontal.d.ts +6 -6
- package/dist/typings/entity/component/heatmap/updateTips.d.ts +2 -2
- package/dist/typings/entity/component/heatmap/updateVertical.d.ts +2 -2
- package/dist/typings/entity/component/roaming/Roaming.d.ts +116 -116
- package/dist/typings/entity/component/roaming/pencil.d.ts +1 -1
- package/dist/typings/entity/init/afterLevelCreate.d.ts +6 -6
- package/dist/typings/entity/init/setBuildings.d.ts +2 -2
- package/dist/typings/entity/init/setDefaultView.d.ts +6 -6
- package/dist/typings/entity/init/setPOILink.d.ts +5 -5
- package/dist/typings/entity/init/setTransition.d.ts +6 -6
- package/dist/typings/entity/path/Path.d.ts +53 -53
- package/dist/typings/entity/path/attachDrag.d.ts +2 -2
- package/dist/typings/entity/path/createLineMeshData.d.ts +3 -3
- package/dist/typings/entity/path/createPointInstance.d.ts +6 -6
- package/dist/typings/entity/path/detachDrag.d.ts +2 -2
- package/dist/typings/entity/path/dragData.d.ts +9 -9
- package/dist/typings/entity/path/getLineMaterial.d.ts +2 -2
- package/dist/typings/entity/placement.d.ts +20 -20
- package/dist/typings/entity/poi_plus/Container.d.ts +14 -14
- package/dist/typings/entity/poi_plus/Img.d.ts +21 -21
- package/dist/typings/entity/poi_plus/Line.d.ts +15 -15
- package/dist/typings/entity/poi_plus/POIPlus.d.ts +138 -138
- package/dist/typings/entity/poi_plus/Txt.d.ts +20 -20
- package/dist/typings/entity/poi_plus/TxtAlign.d.ts +9 -9
- package/dist/typings/entity/poi_plus/render.d.ts +7 -7
- package/dist/typings/entity/util/box.d.ts +9 -9
- package/dist/typings/entity/util/createManualWallEdgeMaterial.d.ts +8 -8
- package/dist/typings/entity/util/createManualWallFaceMaterial.d.ts +8 -8
- package/dist/typings/entity/util/createManualWallMesh.d.ts +12 -12
- package/dist/typings/entity/util/createMergedMesh.d.ts +13 -13
- package/dist/typings/entity/util/createPathArrowIcon.d.ts +4 -4
- package/dist/typings/entity/util/createPathCircleIcon.d.ts +4 -4
- package/dist/typings/entity/util/createRoomMaterial.d.ts +3 -3
- package/dist/typings/entity/util/createRoomMesh.d.ts +14 -14
- package/dist/typings/entity/util/getPathIconMesh.d.ts +7 -7
- package/dist/typings/entity/util/getPathLineMesh.d.ts +2 -2
- package/dist/typings/entity/util/getPerWeight.d.ts +6 -6
- package/dist/typings/entity/util/hideAllBoundingBox.d.ts +6 -6
- package/dist/typings/entity/util/setRes.d.ts +5 -5
- package/dist/typings/entity/util/smoothTube.d.ts +7 -7
- package/dist/typings/entity/util/technologyBuildingMaterial.d.ts +67 -67
- package/dist/typings/event/EventArg.d.ts +14 -14
- package/dist/typings/event/EventDispatcher.d.ts +67 -67
- package/dist/typings/event/EventMgr.d.ts +110 -110
- package/dist/typings/event/EventObject.d.ts +26 -26
- package/dist/typings/event/EventType.d.ts +173 -173
- package/dist/typings/event/KeyCode.d.ts +55 -55
- package/dist/typings/event/PropertyChangedData.d.ts +21 -21
- package/dist/typings/gui/Billboard.d.ts +104 -104
- package/dist/typings/gui/BillboardOptions.d.ts +62 -62
- package/dist/typings/gui/FPSBar.d.ts +25 -25
- package/dist/typings/gui/GUIMgr.d.ts +41 -41
- package/dist/typings/gui/GradientRectangle.d.ts +57 -57
- package/dist/typings/gui/InfoListDataItem.d.ts +17 -17
- package/dist/typings/gui/InfoListPanel.d.ts +106 -106
- package/dist/typings/gui/LinkTip.d.ts +30 -30
- package/dist/typings/gui/PerformancePanel.d.ts +43 -43
- package/dist/typings/gui/RectangleProgress.d.ts +20 -20
- package/dist/typings/gui/ToolTip.d.ts +34 -34
- package/dist/typings/gui/getTextWidth.d.ts +6 -6
- package/dist/typings/index.d.ts +93 -93
- package/dist/typings/material/MaterialMgr.d.ts +18 -18
- package/dist/typings/misc/Point2D.d.ts +4 -4
- package/dist/typings/misc/Point3D.d.ts +4 -4
- package/dist/typings/misc/Point4D.d.ts +4 -4
- package/dist/typings/misc/SystemResId.d.ts +105 -105
- package/dist/typings/misc/blobToDataURL.d.ts +5 -5
- package/dist/typings/misc/cookie.d.ts +17 -17
- package/dist/typings/misc/dataURLtoBlob.d.ts +5 -5
- package/dist/typings/misc/getQueryString.d.ts +5 -5
- package/dist/typings/misc/guid.d.ts +21 -21
- package/dist/typings/misc/http.d.ts +46 -46
- package/dist/typings/misc/index.d.ts +15 -15
- package/dist/typings/misc/isHexColor.d.ts +5 -5
- package/dist/typings/misc/isLAN.d.ts +4 -4
- package/dist/typings/misc/math/Line.d.ts +5 -5
- package/dist/typings/misc/math/Point.d.ts +7 -7
- package/dist/typings/misc/math/compare/EPSILON.d.ts +4 -4
- package/dist/typings/misc/math/compare/greateThanOrEqual.d.ts +8 -8
- package/dist/typings/misc/math/compare/greaterThan.d.ts +7 -7
- package/dist/typings/misc/math/compare/lessThan.d.ts +7 -7
- package/dist/typings/misc/math/compare/lessThanOrEqual.d.ts +7 -7
- package/dist/typings/misc/math/compare/withinEpsilon.d.ts +9 -9
- package/dist/typings/misc/math/index.d.ts +34 -34
- package/dist/typings/misc/math/line/distanceToParallelLine.d.ts +7 -7
- package/dist/typings/misc/math/line/distanceToProjection.d.ts +8 -8
- package/dist/typings/misc/math/line/getLineIntersection.d.ts +9 -9
- package/dist/typings/misc/math/line/isLineParallel.d.ts +7 -7
- package/dist/typings/misc/math/line/project.d.ts +8 -8
- package/dist/typings/misc/math/line/relateToPoint.d.ts +8 -8
- package/dist/typings/misc/math/round.d.ts +6 -6
- package/dist/typings/misc/math/segment/getSegmentIntersection.d.ts +8 -8
- package/dist/typings/misc/math/segment/getSegmentPartIncludePoint.d.ts +8 -8
- package/dist/typings/misc/math/segment/onSegment.d.ts +8 -8
- package/dist/typings/misc/math/segment/segmentFullInclude.d.ts +8 -8
- package/dist/typings/misc/math/vec/addTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/angleTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/centerTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/cross.d.ts +7 -7
- package/dist/typings/misc/math/vec/distanceTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/dot.d.ts +7 -7
- package/dist/typings/misc/math/vec/ignoreYAxis.d.ts +7 -7
- package/dist/typings/misc/math/vec/isClockwise.d.ts +6 -6
- package/dist/typings/misc/math/vec/lengthTo.d.ts +6 -6
- package/dist/typings/misc/math/vec/multiplyTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/normalizeTo.d.ts +6 -6
- package/dist/typings/misc/math/vec/scaleTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/subtractTo.d.ts +7 -7
- package/dist/typings/misc/math/vec/toPoint.d.ts +8 -8
- package/dist/typings/misc/math/vec/toVector3.d.ts +7 -7
- package/dist/typings/misc/math/vec/verticalVector.d.ts +7 -7
- package/dist/typings/misc/object.d.ts +16 -16
- package/dist/typings/misc/randomColor.d.ts +4 -4
- package/dist/typings/misc/runAsyncTasks.d.ts +5 -5
- package/dist/typings/misc/to.d.ts +5 -5
- package/dist/typings/res/ResCacheData.d.ts +13 -13
- package/dist/typings/res/ResOptions.d.ts +89 -89
- package/dist/typings/res/ResPool.d.ts +72 -72
- package/dist/typings/res/registerBufferAndSetEffect.d.ts +7 -7
- package/dist/typings/res/replaceInstancedMesh.d.ts +6 -6
- package/dist/typings/runtime/RunTime.d.ts +137 -137
- package/dist/typings/runtime/babylonjs/babylonjs-core.d.ts +77 -77
- package/dist/typings/runtime/babylonjs/babylonjs-gui.d.ts +12 -12
- package/dist/typings/runtime/babylonjs/babylonjs-loaders.d.ts +1 -1
- package/dist/typings/runtime/babylonjs/babylonjs-materials.d.ts +1 -1
- package/dist/typings/runtime/index.d.ts +8 -8
- package/dist/typings/runtime/tweenjs/index.d.ts +1 -1
- package/package.json +6 -6
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { App } from '../../core/App';
|
|
2
|
-
import { Point3D } from '../../misc/Point3D';
|
|
3
|
-
import { Entity } from '../Entity';
|
|
4
|
-
/**
|
|
5
|
-
* 路径
|
|
6
|
-
*/
|
|
7
|
-
export declare class Path extends Entity {
|
|
8
|
-
private static _index;
|
|
9
|
-
/**
|
|
10
|
-
* 路径点集合
|
|
11
|
-
*/
|
|
12
|
-
readonly points: Point3D[];
|
|
13
|
-
/**
|
|
14
|
-
* 是否需要创建
|
|
15
|
-
*/
|
|
16
|
-
needBuild: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 实例化一个路径对象
|
|
19
|
-
* @param app 应用
|
|
20
|
-
*/
|
|
21
|
-
constructor(app: App);
|
|
22
|
-
/**
|
|
23
|
-
* 序列化成JSON对象
|
|
24
|
-
*/
|
|
25
|
-
toJson(): any;
|
|
26
|
-
/**
|
|
27
|
-
* 从JSON对象反序列化(仅生成层级树)
|
|
28
|
-
* @param json JSON对象
|
|
29
|
-
*/
|
|
30
|
-
fromJson(json: any): void;
|
|
31
|
-
/**
|
|
32
|
-
* 创建(仅当前层级可见对象)
|
|
33
|
-
* @param force 是否强制
|
|
34
|
-
*/
|
|
35
|
-
build(force?: boolean): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* 拆毁(删掉网格,仅保留层级树
|
|
38
|
-
*/
|
|
39
|
-
unbuild(): void;
|
|
40
|
-
/**
|
|
41
|
-
* 附加拖动功能
|
|
42
|
-
*/
|
|
43
|
-
attachDrag(): void;
|
|
44
|
-
/**
|
|
45
|
-
* 移除拖动功能
|
|
46
|
-
*/
|
|
47
|
-
detachDrag(): void;
|
|
48
|
-
/**
|
|
49
|
-
* 设置透明度
|
|
50
|
-
* @param value 透明度
|
|
51
|
-
*/
|
|
52
|
-
setAlpha(value: number): void;
|
|
53
|
-
}
|
|
1
|
+
import { App } from '../../core/App';
|
|
2
|
+
import { Point3D } from '../../misc/Point3D';
|
|
3
|
+
import { Entity } from '../Entity';
|
|
4
|
+
/**
|
|
5
|
+
* 路径
|
|
6
|
+
*/
|
|
7
|
+
export declare class Path extends Entity {
|
|
8
|
+
private static _index;
|
|
9
|
+
/**
|
|
10
|
+
* 路径点集合
|
|
11
|
+
*/
|
|
12
|
+
readonly points: Point3D[];
|
|
13
|
+
/**
|
|
14
|
+
* 是否需要创建
|
|
15
|
+
*/
|
|
16
|
+
needBuild: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 实例化一个路径对象
|
|
19
|
+
* @param app 应用
|
|
20
|
+
*/
|
|
21
|
+
constructor(app: App);
|
|
22
|
+
/**
|
|
23
|
+
* 序列化成JSON对象
|
|
24
|
+
*/
|
|
25
|
+
toJson(): any;
|
|
26
|
+
/**
|
|
27
|
+
* 从JSON对象反序列化(仅生成层级树)
|
|
28
|
+
* @param json JSON对象
|
|
29
|
+
*/
|
|
30
|
+
fromJson(json: any): void;
|
|
31
|
+
/**
|
|
32
|
+
* 创建(仅当前层级可见对象)
|
|
33
|
+
* @param force 是否强制
|
|
34
|
+
*/
|
|
35
|
+
build(force?: boolean): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* 拆毁(删掉网格,仅保留层级树
|
|
38
|
+
*/
|
|
39
|
+
unbuild(): void;
|
|
40
|
+
/**
|
|
41
|
+
* 附加拖动功能
|
|
42
|
+
*/
|
|
43
|
+
attachDrag(): void;
|
|
44
|
+
/**
|
|
45
|
+
* 移除拖动功能
|
|
46
|
+
*/
|
|
47
|
+
detachDrag(): void;
|
|
48
|
+
/**
|
|
49
|
+
* 设置透明度
|
|
50
|
+
* @param value 透明度
|
|
51
|
+
*/
|
|
52
|
+
setAlpha(value: number): void;
|
|
53
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Path } from './Path';
|
|
2
|
-
export declare function attachDrag(this: Path): void;
|
|
1
|
+
import { Path } from './Path';
|
|
2
|
+
export declare function attachDrag(this: Path): void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Point3D } from '../../misc';
|
|
2
|
-
import { MeshFaceData } from '../MeshFaceData';
|
|
3
|
-
export declare function createLineMeshData(p1: Point3D, p2: Point3D): MeshFaceData;
|
|
1
|
+
import { Point3D } from '../../misc';
|
|
2
|
+
import { MeshFaceData } from '../MeshFaceData';
|
|
3
|
+
export declare function createLineMeshData(p1: Point3D, p2: Point3D): MeshFaceData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InstancedMesh } from '../../runtime';
|
|
2
|
-
import { App } from '../../core/App';
|
|
3
|
-
/**
|
|
4
|
-
* 创建点材质
|
|
5
|
-
*/
|
|
6
|
-
export declare function createPointInstance(app: App): InstancedMesh;
|
|
1
|
+
import { InstancedMesh } from '../../runtime';
|
|
2
|
+
import { App } from '../../core/App';
|
|
3
|
+
/**
|
|
4
|
+
* 创建点材质
|
|
5
|
+
*/
|
|
6
|
+
export declare function createPointInstance(app: App): InstancedMesh;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Path } from './Path';
|
|
2
|
-
export declare function detachDrag(this: Path): void;
|
|
1
|
+
import { Path } from './Path';
|
|
2
|
+
export declare function detachDrag(this: Path): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Point3D } from '../../misc';
|
|
2
|
-
import { Path } from './Path';
|
|
3
|
-
export declare const dragData: {
|
|
4
|
-
eventIds: string[];
|
|
5
|
-
dragging: boolean;
|
|
6
|
-
path: Path;
|
|
7
|
-
pointIndex: number;
|
|
8
|
-
oldPosition: Point3D;
|
|
9
|
-
};
|
|
1
|
+
import { Point3D } from '../../misc';
|
|
2
|
+
import { Path } from './Path';
|
|
3
|
+
export declare const dragData: {
|
|
4
|
+
eventIds: string[];
|
|
5
|
+
dragging: boolean;
|
|
6
|
+
path: Path;
|
|
7
|
+
pointIndex: number;
|
|
8
|
+
oldPosition: Point3D;
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PBRMaterial } from '../../runtime';
|
|
2
|
-
export declare function getLineMaterial(): PBRMaterial;
|
|
1
|
+
import { PBRMaterial } from '../../runtime';
|
|
2
|
+
export declare function getLineMaterial(): PBRMaterial;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Entity } from './Entity';
|
|
2
|
-
import { App } from '../core/App';
|
|
3
|
-
import { Thing } from './Thing';
|
|
4
|
-
import { Group } from './Group';
|
|
5
|
-
/**
|
|
6
|
-
* 摆件
|
|
7
|
-
*/
|
|
8
|
-
export type Placement = Thing | Group;
|
|
9
|
-
/**
|
|
10
|
-
* 判断对象是否为摆件
|
|
11
|
-
* @param obj 对象
|
|
12
|
-
*/
|
|
13
|
-
export declare function isPlacement(obj: Entity): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* 创建摆件对象
|
|
16
|
-
* @param app 应用
|
|
17
|
-
* @param parent 父亲
|
|
18
|
-
* @param json JSON对象
|
|
19
|
-
*/
|
|
20
|
-
export declare function createPlacement(app: App, parent: Entity, json: any): any;
|
|
1
|
+
import { Entity } from './Entity';
|
|
2
|
+
import { App } from '../core/App';
|
|
3
|
+
import { Thing } from './Thing';
|
|
4
|
+
import { Group } from './Group';
|
|
5
|
+
/**
|
|
6
|
+
* 摆件
|
|
7
|
+
*/
|
|
8
|
+
export type Placement = Thing | Group;
|
|
9
|
+
/**
|
|
10
|
+
* 判断对象是否为摆件
|
|
11
|
+
* @param obj 对象
|
|
12
|
+
*/
|
|
13
|
+
export declare function isPlacement(obj: Entity): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 创建摆件对象
|
|
16
|
+
* @param app 应用
|
|
17
|
+
* @param parent 父亲
|
|
18
|
+
* @param json JSON对象
|
|
19
|
+
*/
|
|
20
|
+
export declare function createPlacement(app: App, parent: Entity, json: any): any;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Img } from "./Img";
|
|
2
|
-
import { Line } from "./Line";
|
|
3
|
-
import { Txt } from "./Txt";
|
|
4
|
-
/** 容器 */
|
|
5
|
-
export declare class Container {
|
|
6
|
-
/** 图片 */
|
|
7
|
-
img: Img;
|
|
8
|
-
/** 线 */
|
|
9
|
-
line: Line;
|
|
10
|
-
/** 文本列表 */
|
|
11
|
-
txts: Txt[];
|
|
12
|
-
/** 构造函数 */
|
|
13
|
-
constructor();
|
|
14
|
-
}
|
|
1
|
+
import { Img } from "./Img";
|
|
2
|
+
import { Line } from "./Line";
|
|
3
|
+
import { Txt } from "./Txt";
|
|
4
|
+
/** 容器 */
|
|
5
|
+
export declare class Container {
|
|
6
|
+
/** 图片 */
|
|
7
|
+
img: Img;
|
|
8
|
+
/** 线 */
|
|
9
|
+
line: Line;
|
|
10
|
+
/** 文本列表 */
|
|
11
|
+
txts: Txt[];
|
|
12
|
+
/** 构造函数 */
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 图片
|
|
3
|
-
*/
|
|
4
|
-
export declare class Img {
|
|
5
|
-
/** 资源ID */
|
|
6
|
-
resId: string;
|
|
7
|
-
/** 原始宽度 */
|
|
8
|
-
srcWidth: number;
|
|
9
|
-
/** 原始高度 */
|
|
10
|
-
srcHeight: number;
|
|
11
|
-
/** 实际宽度 */
|
|
12
|
-
width: number;
|
|
13
|
-
/** 实际高度 */
|
|
14
|
-
height: number;
|
|
15
|
-
/** X 坐标 */
|
|
16
|
-
x: number;
|
|
17
|
-
/** Y 坐标 */
|
|
18
|
-
y: number;
|
|
19
|
-
/** 构造函数 */
|
|
20
|
-
constructor();
|
|
21
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 图片
|
|
3
|
+
*/
|
|
4
|
+
export declare class Img {
|
|
5
|
+
/** 资源ID */
|
|
6
|
+
resId: string;
|
|
7
|
+
/** 原始宽度 */
|
|
8
|
+
srcWidth: number;
|
|
9
|
+
/** 原始高度 */
|
|
10
|
+
srcHeight: number;
|
|
11
|
+
/** 实际宽度 */
|
|
12
|
+
width: number;
|
|
13
|
+
/** 实际高度 */
|
|
14
|
+
height: number;
|
|
15
|
+
/** X 坐标 */
|
|
16
|
+
x: number;
|
|
17
|
+
/** Y 坐标 */
|
|
18
|
+
y: number;
|
|
19
|
+
/** 构造函数 */
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { Point2D } from "../../misc";
|
|
2
|
-
/**
|
|
3
|
-
* 线
|
|
4
|
-
*/
|
|
5
|
-
export declare class Line {
|
|
6
|
-
points: Point2D[];
|
|
7
|
-
/** 线宽 */
|
|
8
|
-
width: number;
|
|
9
|
-
/** 颜色 */
|
|
10
|
-
color: string;
|
|
11
|
-
/** 是否显示 */
|
|
12
|
-
enable: boolean;
|
|
13
|
-
/** 构造函数 */
|
|
14
|
-
constructor();
|
|
15
|
-
}
|
|
1
|
+
import { Point2D } from "../../misc";
|
|
2
|
+
/**
|
|
3
|
+
* 线
|
|
4
|
+
*/
|
|
5
|
+
export declare class Line {
|
|
6
|
+
points: Point2D[];
|
|
7
|
+
/** 线宽 */
|
|
8
|
+
width: number;
|
|
9
|
+
/** 颜色 */
|
|
10
|
+
color: string;
|
|
11
|
+
/** 是否显示 */
|
|
12
|
+
enable: boolean;
|
|
13
|
+
/** 构造函数 */
|
|
14
|
+
constructor();
|
|
15
|
+
}
|
|
@@ -1,138 +1,138 @@
|
|
|
1
|
-
import { App } from "../../core/App";
|
|
2
|
-
import { Entity } from "../Entity";
|
|
3
|
-
import { Container } from "./Container";
|
|
4
|
-
import { Point2D } from "../../misc";
|
|
5
|
-
/**
|
|
6
|
-
* POI加强版
|
|
7
|
-
*/
|
|
8
|
-
export declare class POIPlus extends Entity {
|
|
9
|
-
/** 容器 */
|
|
10
|
-
container: Container;
|
|
11
|
-
/**
|
|
12
|
-
* 父物体计算包围盒时是否排除此物体,默认排除
|
|
13
|
-
*/
|
|
14
|
-
excludeBoundingBox: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* 模式
|
|
17
|
-
*/
|
|
18
|
-
mode: '2D' | '3D';
|
|
19
|
-
/**
|
|
20
|
-
* 宽度
|
|
21
|
-
*/
|
|
22
|
-
width: number;
|
|
23
|
-
/**
|
|
24
|
-
* 高度
|
|
25
|
-
*/
|
|
26
|
-
height: number;
|
|
27
|
-
/**
|
|
28
|
-
* 像素宽度
|
|
29
|
-
*/
|
|
30
|
-
pixWidth: number;
|
|
31
|
-
/**
|
|
32
|
-
* 是否默认隐藏
|
|
33
|
-
*/
|
|
34
|
-
defaultHidden: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* 链接ID
|
|
37
|
-
*/
|
|
38
|
-
linkId: string | null;
|
|
39
|
-
/**
|
|
40
|
-
* Base64图片
|
|
41
|
-
*/
|
|
42
|
-
base64: string;
|
|
43
|
-
/**
|
|
44
|
-
* Base64图片原始宽度
|
|
45
|
-
*/
|
|
46
|
-
srcWidth: number;
|
|
47
|
-
/**
|
|
48
|
-
* Base64图片原始高度
|
|
49
|
-
*/
|
|
50
|
-
srcHeight: number;
|
|
51
|
-
/**
|
|
52
|
-
* 像素高度
|
|
53
|
-
*/
|
|
54
|
-
pixHeight: number;
|
|
55
|
-
private _img2D;
|
|
56
|
-
private _canvas;
|
|
57
|
-
private _pointerClickObserver;
|
|
58
|
-
private _pointerEnterObserver;
|
|
59
|
-
private _pointerLeaveObserver;
|
|
60
|
-
private _pointerDownObserver;
|
|
61
|
-
private _pointerUpObserver;
|
|
62
|
-
private _mesh;
|
|
63
|
-
private _showBoundingBox;
|
|
64
|
-
private _visible;
|
|
65
|
-
private _pivot;
|
|
66
|
-
/**
|
|
67
|
-
* 上一次点击的时间点,用于计算双击事件
|
|
68
|
-
*/
|
|
69
|
-
private _lastClickTime;
|
|
70
|
-
/**
|
|
71
|
-
* 构造函数
|
|
72
|
-
* @param app 应用
|
|
73
|
-
*/
|
|
74
|
-
constructor(app: App);
|
|
75
|
-
get visible(): boolean;
|
|
76
|
-
set visible(value: boolean);
|
|
77
|
-
/**
|
|
78
|
-
* 获取或设置轴心点
|
|
79
|
-
*/
|
|
80
|
-
get pivot(): Point2D;
|
|
81
|
-
set pivot(value: Point2D);
|
|
82
|
-
get pickable(): boolean;
|
|
83
|
-
set pickable(value: boolean);
|
|
84
|
-
get cursor(): string;
|
|
85
|
-
set cursor(value: string);
|
|
86
|
-
get showBoundingBox(): boolean;
|
|
87
|
-
set showBoundingBox(value: boolean);
|
|
88
|
-
/**
|
|
89
|
-
* 获取或设置贴图ID
|
|
90
|
-
*/
|
|
91
|
-
get textureId(): string;
|
|
92
|
-
build(force?: boolean): Promise<void>;
|
|
93
|
-
unbuild(): void;
|
|
94
|
-
toJson(): any;
|
|
95
|
-
fromJson(json: any): void;
|
|
96
|
-
private _build2D;
|
|
97
|
-
private _onResize;
|
|
98
|
-
private _build3D;
|
|
99
|
-
private _updatePovit;
|
|
100
|
-
dispose(): void;
|
|
101
|
-
/**
|
|
102
|
-
* 获取原始贴图的像素大小,编辑器中用来实现等比缩放
|
|
103
|
-
*/
|
|
104
|
-
get _ssize(): Point2D;
|
|
105
|
-
/**
|
|
106
|
-
* 计算内容大小(编辑器用)
|
|
107
|
-
*/
|
|
108
|
-
_calaculateContentSize(): Point2D;
|
|
109
|
-
/**
|
|
110
|
-
* 获取或设置所有文本
|
|
111
|
-
*/
|
|
112
|
-
get txts(): string[];
|
|
113
|
-
set txts(value: string[]);
|
|
114
|
-
/**
|
|
115
|
-
* 获取或设置所有文本的颜色
|
|
116
|
-
*/
|
|
117
|
-
get txtColors(): string[];
|
|
118
|
-
set txtColors(value: string[]);
|
|
119
|
-
/**
|
|
120
|
-
* 设置单个文本内容
|
|
121
|
-
* @param index 索引
|
|
122
|
-
* @param value 文本内容
|
|
123
|
-
*/
|
|
124
|
-
setTxtValue(index: number, value: string): void;
|
|
125
|
-
/**
|
|
126
|
-
* 设置单个文本颜色
|
|
127
|
-
* @param index 索引
|
|
128
|
-
* @param color 颜色
|
|
129
|
-
*/
|
|
130
|
-
setTxtColor(index: number, color: string): void;
|
|
131
|
-
/**
|
|
132
|
-
* 设置单个文本
|
|
133
|
-
* @param index 索引
|
|
134
|
-
* @param value 文本内容
|
|
135
|
-
* @param color 颜色
|
|
136
|
-
*/
|
|
137
|
-
setTxt(index: number, value: string, color: string): void;
|
|
138
|
-
}
|
|
1
|
+
import { App } from "../../core/App";
|
|
2
|
+
import { Entity } from "../Entity";
|
|
3
|
+
import { Container } from "./Container";
|
|
4
|
+
import { Point2D } from "../../misc";
|
|
5
|
+
/**
|
|
6
|
+
* POI加强版
|
|
7
|
+
*/
|
|
8
|
+
export declare class POIPlus extends Entity {
|
|
9
|
+
/** 容器 */
|
|
10
|
+
container: Container;
|
|
11
|
+
/**
|
|
12
|
+
* 父物体计算包围盒时是否排除此物体,默认排除
|
|
13
|
+
*/
|
|
14
|
+
excludeBoundingBox: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 模式
|
|
17
|
+
*/
|
|
18
|
+
mode: '2D' | '3D';
|
|
19
|
+
/**
|
|
20
|
+
* 宽度
|
|
21
|
+
*/
|
|
22
|
+
width: number;
|
|
23
|
+
/**
|
|
24
|
+
* 高度
|
|
25
|
+
*/
|
|
26
|
+
height: number;
|
|
27
|
+
/**
|
|
28
|
+
* 像素宽度
|
|
29
|
+
*/
|
|
30
|
+
pixWidth: number;
|
|
31
|
+
/**
|
|
32
|
+
* 是否默认隐藏
|
|
33
|
+
*/
|
|
34
|
+
defaultHidden: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* 链接ID
|
|
37
|
+
*/
|
|
38
|
+
linkId: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Base64图片
|
|
41
|
+
*/
|
|
42
|
+
base64: string;
|
|
43
|
+
/**
|
|
44
|
+
* Base64图片原始宽度
|
|
45
|
+
*/
|
|
46
|
+
srcWidth: number;
|
|
47
|
+
/**
|
|
48
|
+
* Base64图片原始高度
|
|
49
|
+
*/
|
|
50
|
+
srcHeight: number;
|
|
51
|
+
/**
|
|
52
|
+
* 像素高度
|
|
53
|
+
*/
|
|
54
|
+
pixHeight: number;
|
|
55
|
+
private _img2D;
|
|
56
|
+
private _canvas;
|
|
57
|
+
private _pointerClickObserver;
|
|
58
|
+
private _pointerEnterObserver;
|
|
59
|
+
private _pointerLeaveObserver;
|
|
60
|
+
private _pointerDownObserver;
|
|
61
|
+
private _pointerUpObserver;
|
|
62
|
+
private _mesh;
|
|
63
|
+
private _showBoundingBox;
|
|
64
|
+
private _visible;
|
|
65
|
+
private _pivot;
|
|
66
|
+
/**
|
|
67
|
+
* 上一次点击的时间点,用于计算双击事件
|
|
68
|
+
*/
|
|
69
|
+
private _lastClickTime;
|
|
70
|
+
/**
|
|
71
|
+
* 构造函数
|
|
72
|
+
* @param app 应用
|
|
73
|
+
*/
|
|
74
|
+
constructor(app: App);
|
|
75
|
+
get visible(): boolean;
|
|
76
|
+
set visible(value: boolean);
|
|
77
|
+
/**
|
|
78
|
+
* 获取或设置轴心点
|
|
79
|
+
*/
|
|
80
|
+
get pivot(): Point2D;
|
|
81
|
+
set pivot(value: Point2D);
|
|
82
|
+
get pickable(): boolean;
|
|
83
|
+
set pickable(value: boolean);
|
|
84
|
+
get cursor(): string;
|
|
85
|
+
set cursor(value: string);
|
|
86
|
+
get showBoundingBox(): boolean;
|
|
87
|
+
set showBoundingBox(value: boolean);
|
|
88
|
+
/**
|
|
89
|
+
* 获取或设置贴图ID
|
|
90
|
+
*/
|
|
91
|
+
get textureId(): string;
|
|
92
|
+
build(force?: boolean): Promise<void>;
|
|
93
|
+
unbuild(): void;
|
|
94
|
+
toJson(): any;
|
|
95
|
+
fromJson(json: any): void;
|
|
96
|
+
private _build2D;
|
|
97
|
+
private _onResize;
|
|
98
|
+
private _build3D;
|
|
99
|
+
private _updatePovit;
|
|
100
|
+
dispose(): void;
|
|
101
|
+
/**
|
|
102
|
+
* 获取原始贴图的像素大小,编辑器中用来实现等比缩放
|
|
103
|
+
*/
|
|
104
|
+
get _ssize(): Point2D;
|
|
105
|
+
/**
|
|
106
|
+
* 计算内容大小(编辑器用)
|
|
107
|
+
*/
|
|
108
|
+
_calaculateContentSize(): Point2D;
|
|
109
|
+
/**
|
|
110
|
+
* 获取或设置所有文本
|
|
111
|
+
*/
|
|
112
|
+
get txts(): string[];
|
|
113
|
+
set txts(value: string[]);
|
|
114
|
+
/**
|
|
115
|
+
* 获取或设置所有文本的颜色
|
|
116
|
+
*/
|
|
117
|
+
get txtColors(): string[];
|
|
118
|
+
set txtColors(value: string[]);
|
|
119
|
+
/**
|
|
120
|
+
* 设置单个文本内容
|
|
121
|
+
* @param index 索引
|
|
122
|
+
* @param value 文本内容
|
|
123
|
+
*/
|
|
124
|
+
setTxtValue(index: number, value: string): void;
|
|
125
|
+
/**
|
|
126
|
+
* 设置单个文本颜色
|
|
127
|
+
* @param index 索引
|
|
128
|
+
* @param color 颜色
|
|
129
|
+
*/
|
|
130
|
+
setTxtColor(index: number, color: string): void;
|
|
131
|
+
/**
|
|
132
|
+
* 设置单个文本
|
|
133
|
+
* @param index 索引
|
|
134
|
+
* @param value 文本内容
|
|
135
|
+
* @param color 颜色
|
|
136
|
+
*/
|
|
137
|
+
setTxt(index: number, value: string, color: string): void;
|
|
138
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { TxtAlign } from "./TxtAlign";
|
|
2
|
-
/**
|
|
3
|
-
* 文本
|
|
4
|
-
*/
|
|
5
|
-
export declare class Txt {
|
|
6
|
-
/** 文本内容 */
|
|
7
|
-
value: string;
|
|
8
|
-
/** 对齐方式 */
|
|
9
|
-
align: TxtAlign;
|
|
10
|
-
/** 字体大小 */
|
|
11
|
-
fontSize: number;
|
|
12
|
-
/** 字体颜色 */
|
|
13
|
-
color: string;
|
|
14
|
-
/** X 坐标 */
|
|
15
|
-
x: number;
|
|
16
|
-
/** Y 坐标 */
|
|
17
|
-
y: number;
|
|
18
|
-
/** 构造函数 */
|
|
19
|
-
constructor();
|
|
20
|
-
}
|
|
1
|
+
import { TxtAlign } from "./TxtAlign";
|
|
2
|
+
/**
|
|
3
|
+
* 文本
|
|
4
|
+
*/
|
|
5
|
+
export declare class Txt {
|
|
6
|
+
/** 文本内容 */
|
|
7
|
+
value: string;
|
|
8
|
+
/** 对齐方式 */
|
|
9
|
+
align: TxtAlign;
|
|
10
|
+
/** 字体大小 */
|
|
11
|
+
fontSize: number;
|
|
12
|
+
/** 字体颜色 */
|
|
13
|
+
color: string;
|
|
14
|
+
/** X 坐标 */
|
|
15
|
+
x: number;
|
|
16
|
+
/** Y 坐标 */
|
|
17
|
+
y: number;
|
|
18
|
+
/** 构造函数 */
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/** 文本对齐方式 */
|
|
2
|
-
export declare enum TxtAlign {
|
|
3
|
-
/** 左对齐 */
|
|
4
|
-
Left = "left",
|
|
5
|
-
/** 居中对齐 */
|
|
6
|
-
Center = "center",
|
|
7
|
-
/** 右对齐 */
|
|
8
|
-
Right = "right"
|
|
9
|
-
}
|
|
1
|
+
/** 文本对齐方式 */
|
|
2
|
+
export declare enum TxtAlign {
|
|
3
|
+
/** 左对齐 */
|
|
4
|
+
Left = "left",
|
|
5
|
+
/** 居中对齐 */
|
|
6
|
+
Center = "center",
|
|
7
|
+
/** 右对齐 */
|
|
8
|
+
Right = "right"
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { App } from "../../core/App";
|
|
2
|
-
import { Container } from "./Container";
|
|
3
|
-
export declare function render(app: App, container: Container): Promise<{
|
|
4
|
-
base64: string;
|
|
5
|
-
width: number;
|
|
6
|
-
height: number;
|
|
7
|
-
}>;
|
|
1
|
+
import { App } from "../../core/App";
|
|
2
|
+
import { Container } from "./Container";
|
|
3
|
+
export declare function render(app: App, container: Container): Promise<{
|
|
4
|
+
base64: string;
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}>;
|