@realsee/five-webgpu 1.0.0-alpha.5 → 1.0.0-alpha.6
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/ai_guides/api.md +9 -8
- package/ai_guides/features/camera-animation.md +1 -1
- package/ai_guides/features/event.md +0 -1
- package/ai_guides/features/five.md +8 -8
- package/ai_guides/features/gesture.md +1 -1
- package/ai_guides/features/load-external-model.md +6 -6
- package/ai_guides/features/load-progress.md +2 -2
- package/ai_guides/features/mode.md +3 -23
- package/ai_guides/features/model.md +1 -1
- package/ai_guides/features/state.md +2 -2
- package/ai_guides/features/ultra-hdr.md +41 -32
- package/ai_guides/quick-start.md +2 -2
- package/ai_guides/release_notes/6.8.md +2 -2
- package/ai_guides/support.md +0 -4
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/index.AdaptiveLuminancePass.html +1 -1
- package/docs/classes/index.BoundingMesh.html +1 -1
- package/docs/classes/index.EffectComposer.html +1 -1
- package/docs/classes/index.EyeDomeLightingPass.html +1 -1
- package/docs/classes/index.Five.html +68 -67
- package/docs/classes/index.FivePass.html +1 -1
- package/docs/classes/index.FlowingFireworks3DPass.html +1 -1
- package/docs/classes/index.FlowingLight2DPass.html +1 -1
- package/docs/classes/index.FlowingLight3DPass.html +1 -1
- package/docs/classes/index.GaussianBlurPass.html +1 -1
- package/docs/classes/index.InternalWebGPURenderer.html +4 -4
- package/docs/classes/index.Model.html +1 -1
- package/docs/classes/index.ModelScene.html +1 -1
- package/docs/classes/index.NetworkSubscribe.html +1 -1
- package/docs/classes/index.PBMCustomNode.html +8 -8
- package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +8 -6
- package/docs/classes/index.PBMGaussianSplattingObject.html +10 -4
- package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +26 -15
- package/docs/classes/index.PBMGroup.html +1 -1
- package/docs/classes/index.PBMMesh.html +1 -1
- package/docs/classes/index.PBMMeshBasicMaterial.html +11 -7
- package/docs/classes/index.PBMMeshBasicNodeMaterial.html +11 -7
- package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +11 -7
- package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +11 -7
- package/docs/classes/index.PBMMeshPhongMaterial.html +11 -7
- package/docs/classes/index.PBMMeshPhongNodeMaterial.html +11 -7
- package/docs/classes/index.PBMMeshPhysicalMaterial.html +11 -7
- package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +11 -7
- package/docs/classes/index.PBMPanoFilter.html +8 -8
- package/docs/classes/index.PBMPointCloud.html +1 -1
- package/docs/classes/index.PBMSkinnedMesh.html +1 -1
- package/docs/classes/index.PBMUpdateable.html +1 -1
- package/docs/classes/index.PanoCircleMesh.html +1 -1
- package/docs/classes/index.PanoCircleMeshCustom.html +5 -5
- package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/index.Parameter.html +1 -1
- package/docs/classes/index.Subscribe.html +1 -1
- package/docs/classes/index.TextureLoader.html +4 -1
- package/docs/classes/index.Tile3D.html +23 -21
- package/docs/classes/index.TileNode.html +1 -1
- package/docs/classes/index.Tileset.html +4 -4
- package/docs/classes/index.TrajectoryNode.html +3 -3
- package/docs/classes/index.Work.html +20 -18
- package/docs/classes/index.WorkResolvedObserver.html +22 -22
- package/docs/documents/api.html +11 -10
- package/docs/documents/features_camera-animation.html +1 -1
- package/docs/documents/features_event.html +0 -1
- package/docs/documents/features_five.html +7 -7
- package/docs/documents/features_gesture.html +1 -1
- package/docs/documents/features_load-external-model.html +6 -6
- package/docs/documents/features_load-progress.html +1 -1
- package/docs/documents/features_mode.html +5 -15
- package/docs/documents/features_model.html +1 -1
- package/docs/documents/features_state.html +1 -1
- package/docs/documents/features_ultra-hdr.html +50 -44
- package/docs/documents/quick-start.html +1 -1
- package/docs/documents/release_notes_6.8.html +2 -2
- package/docs/documents/support.html +1 -3
- package/docs/functions/index.customNodesCacheKey.html +1 -1
- package/docs/functions/index.parseWork.html +1 -1
- package/docs/functions/index.workToJson.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/index.AddableObject.html +1 -1
- package/docs/interfaces/index.AjaxOptions.html +1 -1
- package/docs/interfaces/index.BaseEvent.html +2 -2
- package/docs/interfaces/index.Clock.html +24 -0
- package/docs/interfaces/index.EventCallback.html +49 -47
- package/docs/interfaces/index.FiveInitArgs.html +49 -40
- package/docs/interfaces/index.GainmapCfgData.html +15 -0
- package/docs/interfaces/index.GestureEvent.html +2 -2
- package/docs/interfaces/index.IPBMMaterial.html +10 -6
- package/docs/interfaces/index.ImageOptions.html +1 -1
- package/docs/interfaces/index.IntersectEvent.html +2 -2
- package/docs/interfaces/index.IntersectMesh.html +1 -1
- package/docs/interfaces/index.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/index.Intersection.html +1 -1
- package/docs/interfaces/index.LoosePanoWork.html +2 -2
- package/docs/interfaces/index.LooseWork.html +2 -2
- package/docs/interfaces/index.LooseWorkInitial.html +2 -2
- package/docs/interfaces/index.LooseWorkModel.html +2 -2
- package/docs/interfaces/index.LooseWorkObserver.html +2 -2
- package/docs/interfaces/index.LooseWorkPanorama.html +4 -3
- package/docs/interfaces/index.LooseWorkWithExtrinsics.html +15 -9
- package/docs/interfaces/index.ModeChangeEvent.html +2 -2
- package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ModelEvent.html +2 -2
- package/docs/interfaces/index.ModelSceneEvent.html +2 -2
- package/docs/interfaces/index.ModelTileEvent.html +2 -2
- package/docs/interfaces/index.MovePanoOptions.html +1 -1
- package/docs/interfaces/index.NetworkAbortError.html +1 -1
- package/docs/interfaces/index.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/index.NetworkOptions.html +1 -1
- package/docs/interfaces/index.NetworkProxyError.html +1 -1
- package/docs/interfaces/index.NetworkResourceEvent.html +2 -2
- package/docs/interfaces/index.NetworkResponseError.html +1 -1
- package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/index.ObjectEvent.html +2 -2
- package/docs/interfaces/index.PBMClipperParameter.html +2 -2
- package/docs/interfaces/index.PBMCustomNodeContext.html +60 -12
- package/docs/interfaces/index.PBMCustomNodeOptions.html +4 -4
- package/docs/interfaces/index.PBMCustomNodePanoContext.html +12 -5
- package/docs/interfaces/index.PBMCustomNodeSlots.html +6 -6
- package/docs/interfaces/index.PBMPanoDepth.html +5 -5
- package/docs/interfaces/index.PBMPanoFilterValue.html +2 -2
- package/docs/interfaces/index.PBMPanoGainmap.html +6 -0
- package/docs/interfaces/index.PBMPanoPicture.html +9 -8
- package/docs/interfaces/index.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/index.PanoCircleMeshCustomOptions.html +2 -2
- package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/index.PanoEvent.html +2 -2
- package/docs/interfaces/index.PanoTextureEvent.html +2 -2
- package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ParameterMaterialValue.html +1 -1
- package/docs/interfaces/index.ParameterTilesetValue.html +1 -1
- package/docs/interfaces/index.ParameterValue.html +1 -1
- package/docs/interfaces/index.Pose.html +1 -1
- package/docs/interfaces/index.RenderEvent.html +2 -2
- package/docs/interfaces/index.ResolvedParameterValue.html +1 -1
- package/docs/interfaces/index.State.html +1 -1
- package/docs/interfaces/index.StateEvent.html +2 -2
- package/docs/interfaces/index.TextureOptions.html +1 -1
- package/docs/interfaces/index.TilesetOptions.html +7 -2
- package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +37 -0
- package/docs/interfaces/index.ViewLayer.html +23 -21
- package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +10 -0
- package/docs/interfaces/index.WorkCubeImage.html +5 -9
- package/docs/interfaces/index.WorkImage.html +8 -12
- package/docs/interfaces/index.WorkInitial.html +8 -8
- package/docs/interfaces/index.WorkModel.html +8 -8
- package/docs/interfaces/index.WorkModelLayer.html +6 -6
- package/docs/interfaces/index.WorkObserver.html +23 -23
- package/docs/interfaces/index.WorkPanoramaJson.html +3 -2
- package/docs/interfaces/index.WorkTile.html +8 -12
- package/docs/interfaces/index.WorksEvent.html +2 -2
- package/docs/interfaces/index.XRControllerEvent.html +2 -2
- package/docs/interfaces/index.XRGestureEvent.html +2 -2
- package/docs/interfaces/index.XRSessionEvent.html +2 -2
- package/docs/modules/index.html +1 -1
- package/docs/types/index.ControllerCustomInitTypes.html +3 -2
- package/docs/types/index.ControllerEventTypes.html +25 -23
- package/docs/types/index.EventTypes.html +26 -26
- package/docs/types/index.Mode.html +2 -1
- package/docs/types/index.ParseOptions.html +14 -8
- package/docs/variables/index.GSPLAT_PIPELINE_AUTO.html +2 -0
- package/docs/variables/index.GSPLAT_PIPELINE_RASTER_CPU_SORT.html +2 -0
- package/docs/variables/index.GSPLAT_PIPELINE_RASTER_GPU_SORT.html +2 -0
- package/docs/variables/index.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/docs/variables/index.controllersDefaultInitArgs.html +1 -1
- package/five/application/controllers.d.ts +4 -0
- package/five/application/events.d.ts +1 -1
- package/five/application/five.d.ts +4 -1
- package/five/application/fiveInitArgs.d.ts +13 -0
- package/five/application/mode.d.ts +2 -0
- package/five/cardboard/helper.d.ts +2 -0
- package/five/cardboard/index.d.ts +13 -0
- package/five/cardboard/sensor.d.ts +158 -0
- package/five/controllers/base.d.ts +3 -0
- package/five/controllers/events.d.ts +5 -3
- package/five/controllers/panorama.d.ts +2 -2
- package/five/controllers/vrPanorama.d.ts +56 -0
- package/five/core/panoVideo.d.ts +4 -1
- package/five/core/tiling.d.ts +25 -11
- package/five/gaussian-splatting/gpu-sort/prefixSumKernel.d.ts +65 -0
- package/five/gaussian-splatting/gpu-sort/radixSortModule.d.ts +128 -0
- package/five/gaussian-splatting/gpu-sort/shaders/prefixSum.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/shaders/radixHistogram.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/shaders/radixReorder.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/shaders/sortKeygen.d.ts +2 -0
- package/five/gaussian-splatting/gpu-sort/sortAdapter.d.ts +234 -0
- package/five/gaussian-splatting/pipelines/cpuSortPipeline.d.ts +159 -0
- package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +98 -0
- package/five/gaussian-splatting/pipelines/gsplatPipeline.d.ts +104 -0
- package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +42 -0
- package/five/gaussian-splatting/pipelines/sortThrottle.d.ts +45 -0
- package/five/index.d.ts +4 -1
- package/five/index.js +272 -269
- package/five/index.mjs +6979 -4610
- package/five/meshes/panoCircleMeshCustom.d.ts +1 -0
- package/five/model/index.d.ts +1 -1
- package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +4 -0
- package/five/model/materials/pbmMaterial.d.ts +113 -18
- package/five/model/materials/tsl/defines.d.ts +6 -1
- package/five/model/materials/tsl/outputBuilder.d.ts +1 -12
- package/five/model/materials/tsl/panoColor.d.ts +8 -2
- package/five/model/materials/tsl/utils.d.ts +13 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +9 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +67 -101
- package/five/model/tile3d/index.d.ts +2 -0
- package/five/model/tile3d/tileset.d.ts +5 -0
- package/five/model/tile3d/trajectory-content.d.ts +53 -0
- package/five/texture/loader.d.ts +6 -0
- package/five/types/cube.d.ts +0 -1
- package/five/utils/detector.d.ts +11 -1
- package/five/utils/error.d.ts +1 -0
- package/five/utils/event.d.ts +17 -1
- package/five/utils/gainmap-data.d.ts +23 -0
- package/five/work/index.d.ts +1 -1
- package/five/work/looseWorkType.d.ts +2 -1
- package/five/work/work.d.ts +30 -7
- package/five/work/workJsonType.d.ts +2 -1
- package/gltf-loader/gltf-object.d.ts +17 -0
- package/gltf-loader/index.d.ts +45 -0
- package/gltf-loader/index.js +255 -0
- package/gltf-loader/index.mjs +302 -0
- package/package.json +6 -1
- package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
- package/plugins/BackgroundPlugin/index.d.ts +5 -0
- package/plugins/BackgroundPlugin/typings.d.ts +44 -0
- package/plugins/CSS2DPlugin/Controller.d.ts +59 -0
- package/plugins/CSS2DPlugin/index.d.ts +5 -0
- package/plugins/CSS2DPlugin/typing.d.ts +31 -0
- package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
- package/plugins/CSS3DPlugin/index.d.ts +5 -0
- package/plugins/CSS3DPlugin/typing.d.ts +33 -0
- package/plugins/FloorplanPlugin/Controller.d.ts +100 -0
- package/plugins/FloorplanPlugin/index.d.ts +5 -0
- package/plugins/FloorplanPlugin/render/assets.d.ts +9 -0
- package/plugins/FloorplanPlugin/render/index.d.ts +35 -0
- package/plugins/FloorplanPlugin/render/isPointInPolygon.d.ts +5 -0
- package/plugins/FloorplanPlugin/render/renderFloor.d.ts +22 -0
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.d.ts +10 -0
- package/plugins/FloorplanPlugin/typing.d.ts +156 -0
- package/plugins/FloorplanPlugin/typings/floorplanData.d.ts +112 -0
- package/plugins/FloorplanPlugin/typings/floorplanServerData.d.ts +78 -0
- package/plugins/FloorplanPlugin/typings/index.d.ts +2 -0
- package/plugins/FloorplanPlugin/utils/changeMode.d.ts +5 -0
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/correctFiveState.d.ts +11 -0
- package/plugins/FloorplanPlugin/utils/equal.d.ts +9 -0
- package/plugins/FloorplanPlugin/utils/filter.d.ts +8 -0
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/formatData.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/formatPosition.d.ts +33 -0
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.d.ts +6 -0
- package/plugins/FloorplanPlugin/utils/getPxmm.d.ts +19 -0
- package/plugins/FloorplanPlugin/utils/isTruelyObject.d.ts +4 -0
- package/plugins/FloorplanPlugin/utils/nearlyEqual.d.ts +8 -0
- package/plugins/FloorplanPlugin/utils/to.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
- package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
- package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +3 -0
- package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
- package/plugins/PanoAnimePlugin/Controller.d.ts +49 -0
- package/plugins/PanoAnimePlugin/index.d.ts +5 -0
- package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
- package/plugins/index.d.ts +6 -0
- package/plugins/index.js +393 -3
- package/plugins/index.mjs +3421 -92
- package/plugins/thirdParty/CSS2DRenderer.d.ts +37 -0
- package/plugins/thirdParty/CSS3DRenderer.d.ts +45 -0
- package/plugins/thirdParty/OrbitControls.d.ts +78 -0
- package/plugins/thirdParty/domevents.d.ts +36 -0
- package/plugins/utils/clamp.d.ts +2 -0
- package/plugins/utils/uuid.d.ts +2 -0
- package/react/index.js +2 -2
- package/react/index.mjs +2 -2
- package/umd/five-gltf-loader.js +255 -0
- package/umd/five-plugins.js +461 -3
- package/umd/five-react.js +2 -2
- package/umd/five.js +350 -347
- package/docs/interfaces/index.PBMHDRConfig.html +0 -12
- package/five/gaussian-splatting/worker/dataWorker.d.ts +0 -1
- package/five/three-version-check.d.ts +0 -1
- package/five/utils/hdr-data.d.ts +0 -13
- package/five/utils/shaderContentFix.d.ts +0 -7
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import type { Object3D } from 'three/webgpu';
|
|
3
|
+
import { RotateHelperAbstract, type BaseHelperConfig } from './BaseHelper';
|
|
4
|
+
import type { Color, Direction } from '../typing';
|
|
5
|
+
import { tipsDom } from '../utils/tipsDom';
|
|
6
|
+
export declare class RotateHelper extends RotateHelperAbstract {
|
|
7
|
+
name: string;
|
|
8
|
+
xCircle?: RotateCircleGroup;
|
|
9
|
+
yCircle?: RotateCircleGroup;
|
|
10
|
+
zCircle?: RotateCircleGroup;
|
|
11
|
+
children: RotateCircleGroup[];
|
|
12
|
+
angleTips?: ReturnType<typeof tipsDom>;
|
|
13
|
+
private container?;
|
|
14
|
+
constructor(originObject3D: Object3D, config?: {
|
|
15
|
+
container?: HTMLElement;
|
|
16
|
+
yzCircleEnable?: boolean;
|
|
17
|
+
xzCircleEnable?: boolean;
|
|
18
|
+
xyCircleEnable?: boolean;
|
|
19
|
+
angleTipsEnable?: boolean;
|
|
20
|
+
} & BaseHelperConfig);
|
|
21
|
+
hide(): void;
|
|
22
|
+
show(): void;
|
|
23
|
+
setScaleByCamera(camera: THREE.PerspectiveCamera | THREE.OrthographicCamera): void;
|
|
24
|
+
update(camera: THREE.Camera): void;
|
|
25
|
+
showDraggingHelper(directions: Direction[]): void;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
}
|
|
28
|
+
declare class RotateCircleGroup extends THREE.Group {
|
|
29
|
+
direction: Direction;
|
|
30
|
+
/** 1/4 圆 */
|
|
31
|
+
circle: Circle;
|
|
32
|
+
/** 旋转过程中展示的背景圆环 */
|
|
33
|
+
ring: DashedRing;
|
|
34
|
+
/** 旋转过程中表示角度的扇形 */
|
|
35
|
+
angleSector: AngleSector;
|
|
36
|
+
constructor(options: {
|
|
37
|
+
direction: Direction;
|
|
38
|
+
color?: Color;
|
|
39
|
+
});
|
|
40
|
+
showCircle(): void;
|
|
41
|
+
showRing(): void;
|
|
42
|
+
hide(): void;
|
|
43
|
+
}
|
|
44
|
+
declare class Circle extends THREE.Mesh {
|
|
45
|
+
direction: Direction;
|
|
46
|
+
material: THREE.MeshBasicMaterial;
|
|
47
|
+
gapAngle: number;
|
|
48
|
+
geometry: THREE.RingGeometry;
|
|
49
|
+
constructor(options: {
|
|
50
|
+
direction: Direction;
|
|
51
|
+
color?: Color;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
declare class DashedRing extends THREE.Group {
|
|
55
|
+
direction: Readonly<Direction>;
|
|
56
|
+
constructor(options: {
|
|
57
|
+
direction: Direction;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
declare class AngleSector extends THREE.Mesh {
|
|
61
|
+
direction: Direction;
|
|
62
|
+
baseAxes: THREE.Vector3;
|
|
63
|
+
offsetAngle: (angle: number) => number;
|
|
64
|
+
angleDirection: 1 | -1;
|
|
65
|
+
material: THREE.MeshBasicMaterial;
|
|
66
|
+
constructor(options: {
|
|
67
|
+
direction: Direction;
|
|
68
|
+
color?: Color;
|
|
69
|
+
});
|
|
70
|
+
/**
|
|
71
|
+
* 设置扇形旋转方向为顺时针
|
|
72
|
+
*/
|
|
73
|
+
setClockwiseDirection(): void;
|
|
74
|
+
/**
|
|
75
|
+
* 设置扇形旋转方向为逆时针
|
|
76
|
+
*/
|
|
77
|
+
setCounterClockwiseDirection(): void;
|
|
78
|
+
/**
|
|
79
|
+
* 切换扇形旋转方向
|
|
80
|
+
*/
|
|
81
|
+
toggleDirection(): void;
|
|
82
|
+
/**
|
|
83
|
+
* 设置扇形的基础轴向
|
|
84
|
+
* @param axes 新的基础轴向向量
|
|
85
|
+
*/
|
|
86
|
+
setBaseAxes(axes: THREE.Vector3): void;
|
|
87
|
+
/**
|
|
88
|
+
* 获取当前旋转方向
|
|
89
|
+
* @returns 'clockwise' | 'counterclockwise'
|
|
90
|
+
*/
|
|
91
|
+
getDirection(): 'clockwise' | 'counterclockwise';
|
|
92
|
+
}
|
|
93
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
declare const AXES_COLOR: {
|
|
3
|
+
X: number;
|
|
4
|
+
Y: number;
|
|
5
|
+
Z: number;
|
|
6
|
+
};
|
|
7
|
+
declare class AXES_THREE_COLOR {
|
|
8
|
+
static get X(): THREE.Color;
|
|
9
|
+
static get Y(): THREE.Color;
|
|
10
|
+
static get Z(): THREE.Color;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Object3DHelper 渲染顺序常量
|
|
14
|
+
* 数值越大,渲染优先级越高
|
|
15
|
+
*/
|
|
16
|
+
export declare const RENDER_ORDER: {
|
|
17
|
+
readonly ROTATE_HELPER: 9992;
|
|
18
|
+
readonly MOVE_HELPER: 9993;
|
|
19
|
+
readonly SCALE_HELPER_LINE: 9994;
|
|
20
|
+
readonly SCALE_HELPER_SPHERE: 9995;
|
|
21
|
+
readonly MOVE_HELPER_ARROW: 10001;
|
|
22
|
+
readonly MOVE_HELPER_CENTER: 10002;
|
|
23
|
+
readonly DRAG_GUIDE_LINE: 10003;
|
|
24
|
+
readonly DRAG_FACE_PATCH: 10004;
|
|
25
|
+
};
|
|
26
|
+
export type RenderOrderType = (typeof RENDER_ORDER)[keyof typeof RENDER_ORDER];
|
|
27
|
+
export { AXES_COLOR, AXES_THREE_COLOR };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as Object3DHelperPluginType from './typing';
|
|
2
|
+
import type { Five } from '@realsee/five-webgpu';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export declare const Object3DHelperPlugin: (five: Five) => Controller;
|
|
5
|
+
export { Controller as Object3DHelperController };
|
|
6
|
+
export type { Object3DHelperPluginType };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type * as THREE from 'three/webgpu';
|
|
2
|
+
import type { BaseHelper, MoveHelperAbstract, RotateHelperAbstract, Circle } from './Helper/BaseHelper';
|
|
3
|
+
import type { MoveController, UseFaceNormalInterface } from './Controllers/MoveController';
|
|
4
|
+
import type { Object3DHelper, AddObject3DHelperConfig } from './Controller';
|
|
5
|
+
import type { BaseController } from './Controllers/BaseController';
|
|
6
|
+
import type { RotateController } from './Controllers/RotateController';
|
|
7
|
+
import type { BoundingBoxController } from './Controllers/BoundingBoxController';
|
|
8
|
+
export interface Object3DHelperPluginState {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
visible: boolean;
|
|
11
|
+
disposed: boolean;
|
|
12
|
+
}
|
|
13
|
+
export type HelperConfig<T extends object = object> = boolean | ({
|
|
14
|
+
enable: boolean;
|
|
15
|
+
} & T);
|
|
16
|
+
export type Object3DHelperPluginEventMap = {
|
|
17
|
+
show: (options?: {
|
|
18
|
+
userAction?: boolean;
|
|
19
|
+
}) => void;
|
|
20
|
+
hide: (options?: {
|
|
21
|
+
userAction?: boolean;
|
|
22
|
+
}) => void;
|
|
23
|
+
enable: (options?: {
|
|
24
|
+
userAction?: boolean;
|
|
25
|
+
}) => void;
|
|
26
|
+
disable: (options?: {
|
|
27
|
+
userAction?: boolean;
|
|
28
|
+
}) => void;
|
|
29
|
+
dispose: () => void;
|
|
30
|
+
stateChange: (params: {
|
|
31
|
+
state: Object3DHelperPluginState;
|
|
32
|
+
prevState?: Object3DHelperPluginState;
|
|
33
|
+
}) => void;
|
|
34
|
+
};
|
|
35
|
+
export type Direction = 'x' | 'y' | 'z' | 'xy' | 'xz' | 'yz' | 'plane';
|
|
36
|
+
export type Direction4 = 'nesw' | 'nwse' | 'ns' | 'ew';
|
|
37
|
+
export interface Scissor {
|
|
38
|
+
left: number;
|
|
39
|
+
bottom: number;
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
export type HelperEventMap = {
|
|
44
|
+
wantToMove: (position: THREE.Vector3) => void;
|
|
45
|
+
moveBefore: (position: THREE.Vector3) => void;
|
|
46
|
+
wantToRotate: (quaternion: THREE.Quaternion) => void;
|
|
47
|
+
wantToScale: (scale: THREE.Vector3) => void;
|
|
48
|
+
move: (position: THREE.Vector3) => void;
|
|
49
|
+
rotate: (quaternion: THREE.Quaternion) => void;
|
|
50
|
+
scale: (scale: THREE.Vector3) => void;
|
|
51
|
+
moveStart: (direction?: Direction) => void;
|
|
52
|
+
rotateStart: (direction?: Direction) => void;
|
|
53
|
+
scaleStart: (direction?: Direction | Direction4) => void;
|
|
54
|
+
moveEnd: () => void;
|
|
55
|
+
rotateEnd: () => void;
|
|
56
|
+
scaleEnd: () => void;
|
|
57
|
+
moveByMouseEnable: () => void;
|
|
58
|
+
moveByMouseDisable: () => void;
|
|
59
|
+
updateOtherHelpers: (params: {
|
|
60
|
+
camera: THREE.Camera;
|
|
61
|
+
}) => void;
|
|
62
|
+
};
|
|
63
|
+
export type InternalHelperEventMap = {
|
|
64
|
+
initialHelperPosition: () => void;
|
|
65
|
+
setObjectPosition: (position: THREE.Vector3) => void;
|
|
66
|
+
setObjectRotate: (quaternion: THREE.Quaternion, origin?: THREE.Vector3) => void;
|
|
67
|
+
setObjectScale: (scale: THREE.Vector3) => void;
|
|
68
|
+
applyObjectPosition: (position: {
|
|
69
|
+
matrix: THREE.Matrix4;
|
|
70
|
+
}) => void;
|
|
71
|
+
applyObjectRotate: (rotate: {
|
|
72
|
+
quaternion: THREE.Quaternion;
|
|
73
|
+
origin: THREE.Vector3;
|
|
74
|
+
}) => void;
|
|
75
|
+
applyObjectScale: (scale: {
|
|
76
|
+
matrix: THREE.Matrix4;
|
|
77
|
+
origin?: THREE.Vector3;
|
|
78
|
+
}) => void;
|
|
79
|
+
};
|
|
80
|
+
export interface Object3DHelperState {
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
visible: boolean;
|
|
83
|
+
disposed: boolean;
|
|
84
|
+
}
|
|
85
|
+
export type Object3DHelperEventMap = HelperEventMap & {
|
|
86
|
+
show: (options?: {
|
|
87
|
+
userAction?: boolean;
|
|
88
|
+
}) => void;
|
|
89
|
+
hide: (options?: {
|
|
90
|
+
userAction?: boolean;
|
|
91
|
+
}) => void;
|
|
92
|
+
enable: (options?: {
|
|
93
|
+
userAction?: boolean;
|
|
94
|
+
}) => void;
|
|
95
|
+
disable: (options?: {
|
|
96
|
+
userAction?: boolean;
|
|
97
|
+
}) => void;
|
|
98
|
+
dispose: () => void;
|
|
99
|
+
stateChange: (params: {
|
|
100
|
+
state: Object3DHelperState;
|
|
101
|
+
prevState?: Object3DHelperState;
|
|
102
|
+
}) => void;
|
|
103
|
+
};
|
|
104
|
+
export interface HelperOffset {
|
|
105
|
+
x: number | {
|
|
106
|
+
percents: number;
|
|
107
|
+
};
|
|
108
|
+
y: number | {
|
|
109
|
+
percents: number;
|
|
110
|
+
};
|
|
111
|
+
z: number | {
|
|
112
|
+
percents: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
export type Color = THREE.Color | string | number;
|
|
116
|
+
export type PositionFrom = 'objectPosition' | 'boundingBox' | 'boundingSphere' | THREE.Vector3 | ((object: THREE.Object3D) => THREE.Vector3);
|
|
117
|
+
export interface ObjectHelperControllers {
|
|
118
|
+
moveController?: MoveController;
|
|
119
|
+
rotateController?: RotateController;
|
|
120
|
+
boundingBoxController?: BoundingBoxController;
|
|
121
|
+
}
|
|
122
|
+
export type ScaleCallback = (params: {
|
|
123
|
+
intersectPoint: THREE.Vector3;
|
|
124
|
+
scalePosition: ScalePosition;
|
|
125
|
+
offset: THREE.Vector3;
|
|
126
|
+
}) => any;
|
|
127
|
+
export type ScalePosition = {
|
|
128
|
+
id?: string;
|
|
129
|
+
handlePosition: THREE.Vector3;
|
|
130
|
+
basePosition: THREE.Vector3;
|
|
131
|
+
};
|
|
132
|
+
export interface Vector3Position {
|
|
133
|
+
x: number;
|
|
134
|
+
y: number;
|
|
135
|
+
z: number;
|
|
136
|
+
}
|
|
137
|
+
export type Vector3WithArray = [number, number, number];
|
|
138
|
+
export interface Vector2Position {
|
|
139
|
+
x: number;
|
|
140
|
+
y: number;
|
|
141
|
+
}
|
|
142
|
+
export type Vector2WithArray = [number, number];
|
|
143
|
+
export type { BaseController, BoundingBoxController, MoveController, UseFaceNormalInterface, RotateController, MoveHelperAbstract, RotateHelperAbstract, Circle, BaseHelper, Object3DHelper, AddObject3DHelperConfig, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import type { Direction } from '../typing';
|
|
3
|
+
import { DirectionGroup, DirectionMesh } from './direction';
|
|
4
|
+
interface InstanceParameter {
|
|
5
|
+
direction: Direction;
|
|
6
|
+
color?: THREE.Color | string | number;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 箭头组:正方向有线段+箭头,反方向有箭头
|
|
10
|
+
* 参考 three.js TransformControls 的 gizmoTranslate
|
|
11
|
+
*/
|
|
12
|
+
export declare class ArrowGroup extends DirectionGroup {
|
|
13
|
+
line: DirectionMesh<THREE.BufferGeometry, THREE.MeshBasicMaterial>;
|
|
14
|
+
arrow: DirectionMesh<THREE.ConeGeometry, THREE.MeshBasicMaterial>;
|
|
15
|
+
arrowNeg: DirectionMesh<THREE.ConeGeometry, THREE.MeshBasicMaterial>;
|
|
16
|
+
private lineHeight;
|
|
17
|
+
private arrowHeight;
|
|
18
|
+
name: string;
|
|
19
|
+
constructor(param: InstanceParameter);
|
|
20
|
+
private formatGeometries;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import type { Direction } from '../typing';
|
|
3
|
+
import { DirectionGroup } from '../utils/direction';
|
|
4
|
+
interface InstanceParameter {
|
|
5
|
+
color?: THREE.Color | string | number;
|
|
6
|
+
size?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class CenterHandle extends DirectionGroup {
|
|
9
|
+
cube: THREE.Mesh<THREE.BoxGeometry, THREE.MeshBasicMaterial[]> & {
|
|
10
|
+
direction: Direction;
|
|
11
|
+
};
|
|
12
|
+
name: string;
|
|
13
|
+
private faceMaterials;
|
|
14
|
+
private baseColor;
|
|
15
|
+
private faceNormals;
|
|
16
|
+
constructor(param?: InstanceParameter);
|
|
17
|
+
/**
|
|
18
|
+
* 更新各个面的颜色,根据与相机的角度动态调整
|
|
19
|
+
* @param camera 相机对象
|
|
20
|
+
*/
|
|
21
|
+
update(camera: THREE.Camera): void;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import type { Direction } from '../typing';
|
|
3
|
+
import { DirectionGroup } from './direction';
|
|
4
|
+
interface PlaneHandleParams {
|
|
5
|
+
direction: Direction;
|
|
6
|
+
color?: THREE.Color | string | number;
|
|
7
|
+
size?: number;
|
|
8
|
+
offset?: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 平面移动手柄,参考 three.js TransformControls 的 XY/XZ/YZ 平面手柄
|
|
12
|
+
* 一个小的半透明方块,位于两个轴的交汇处
|
|
13
|
+
*/
|
|
14
|
+
export declare class PlaneHandle extends DirectionGroup {
|
|
15
|
+
handle: THREE.Mesh<THREE.BoxGeometry, THREE.MeshBasicMaterial>;
|
|
16
|
+
name: string;
|
|
17
|
+
constructor(params: PlaneHandleParams);
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Direction } from '../typing';
|
|
2
|
+
import * as THREE from 'three/webgpu';
|
|
3
|
+
export declare class DirectionGroup extends THREE.Group {
|
|
4
|
+
direction: Direction;
|
|
5
|
+
constructor(direction?: Direction);
|
|
6
|
+
}
|
|
7
|
+
export declare class DirectionLine<T extends THREE.BufferGeometry, K extends THREE.Material> extends THREE.Line<T, K> {
|
|
8
|
+
direction: Direction;
|
|
9
|
+
constructor(geometry?: T, material?: K, direction?: Direction);
|
|
10
|
+
}
|
|
11
|
+
export declare class DirectionMesh<T extends THREE.BufferGeometry, K extends THREE.Material> extends THREE.Mesh<T, K> {
|
|
12
|
+
direction: Direction;
|
|
13
|
+
constructor(geometry?: T, material?: K, direction?: Direction);
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
/**
|
|
3
|
+
* @description: 在指定中心点上,使用 quaternion 旋转物体。
|
|
4
|
+
* @param {THREE.Object3D} object 旋转对象
|
|
5
|
+
* @param {THREE.Quaternion} quaternion 旋转四元数
|
|
6
|
+
* @param {THREE.Vector3} rotateCenter 旋转中心
|
|
7
|
+
*/
|
|
8
|
+
export default function setObjectQuaternion(object: THREE.Object3D, quaternion: THREE.Quaternion, rotateCenter: THREE.Vector3): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
/** 将世界坐标投影为屏幕像素坐标 */
|
|
3
|
+
export declare function projectToScreen(camera: THREE.Camera, container: HTMLElement | null | undefined, point: THREE.Vector3): THREE.Vector2;
|
|
4
|
+
/** 估算某方向上线段的像素与世界长度的比例(世界单位/像素) */
|
|
5
|
+
export declare function computeWorldPerPixel(camera: THREE.Camera, container: HTMLElement | null | undefined, center: THREE.Vector3, direction: THREE.Vector3): number | undefined;
|
|
6
|
+
/** 计算直线长度:随相机距离/视口变化自适应,限制在可视范围内 */
|
|
7
|
+
export declare function computeGuideLength(camera: THREE.Camera, center: THREE.Vector3): number;
|
|
8
|
+
export type SolidGuideOptions = {
|
|
9
|
+
color?: number;
|
|
10
|
+
renderOrder?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare class SolidGuideLine {
|
|
13
|
+
private camera;
|
|
14
|
+
private container;
|
|
15
|
+
private defaults;
|
|
16
|
+
constructor(camera: THREE.Camera, container: HTMLElement | null | undefined, defaults?: SolidGuideOptions);
|
|
17
|
+
/** 创建无限长直线(Line + LineBasicMaterial),穿过整个平面 */
|
|
18
|
+
createSolidLine(center: THREE.Vector3, direction: THREE.Vector3, options?: SolidGuideOptions): THREE.Line<THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>, THREE.LineBasicMaterial, THREE.Object3DEventMap>;
|
|
19
|
+
/** 更新已创建的直线,使其始终穿过整个平面 */
|
|
20
|
+
updateSolidLine(line: THREE.Line<THREE.BufferGeometry, THREE.LineBasicMaterial>, center: THREE.Vector3, direction: THREE.Vector3, options?: SolidGuideOptions): void;
|
|
21
|
+
/** 计算"无限"直线的长度,确保穿过整个可视区域 */
|
|
22
|
+
private computeInfiniteLineLength;
|
|
23
|
+
/** 释放直线的几何与材质 */
|
|
24
|
+
dispose(line?: THREE.Line<THREE.BufferGeometry, THREE.LineBasicMaterial>): void;
|
|
25
|
+
/** 更新默认配置 */
|
|
26
|
+
updateDefaults(options: SolidGuideOptions): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function createElement(style?: Partial<CSSStyleDeclaration>, tagName?: string): HTMLElement;
|
|
2
|
+
export declare function setStyle(element: HTMLElement, style?: Partial<CSSStyleDeclaration>): HTMLElement;
|
|
3
|
+
export declare function tipsDom(style?: Partial<CSSStyleDeclaration>): {
|
|
4
|
+
element: HTMLElement;
|
|
5
|
+
show: () => void;
|
|
6
|
+
hide: () => void;
|
|
7
|
+
setLeftTop: (left: string, top: string) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Five } from '@realsee/five-webgpu';
|
|
2
|
+
import { BasePlugin } from '../BasePlugin';
|
|
3
|
+
import type * as PluginType from './typing';
|
|
4
|
+
export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
|
|
5
|
+
/** 当前使用的数据 */
|
|
6
|
+
data?: PluginType.PluginData;
|
|
7
|
+
/** 插件当前状态 */
|
|
8
|
+
state: PluginType.State;
|
|
9
|
+
/** config 的原始值 */
|
|
10
|
+
private _config;
|
|
11
|
+
get config(): {
|
|
12
|
+
maxOpacity: number;
|
|
13
|
+
};
|
|
14
|
+
private group;
|
|
15
|
+
private canvas?;
|
|
16
|
+
private ctx?;
|
|
17
|
+
private canvasTexture?;
|
|
18
|
+
private startTime?;
|
|
19
|
+
private updateState;
|
|
20
|
+
/**
|
|
21
|
+
* 更改插件 Config
|
|
22
|
+
* @param config - 插件属性 `config` 的子集。
|
|
23
|
+
* @param options - 参数
|
|
24
|
+
*/
|
|
25
|
+
updateConfig(config: Partial<PluginType.Config>, options?: BasePlugin.BaseOptions): void;
|
|
26
|
+
/** 光柱材质及其 uniform 节点集合(等价于 five 版本的 ShaderMaterial.uniforms) */
|
|
27
|
+
private materialUniforms;
|
|
28
|
+
private mesh;
|
|
29
|
+
private panoMesh;
|
|
30
|
+
constructor(five: Five, params?: PluginType.Params);
|
|
31
|
+
load(data: PluginType.ServerData): Promise<void>;
|
|
32
|
+
private stop;
|
|
33
|
+
private drawLine;
|
|
34
|
+
private anime;
|
|
35
|
+
private _enable;
|
|
36
|
+
private _disable;
|
|
37
|
+
/**
|
|
38
|
+
* 启用插件,让插件能够响应交互
|
|
39
|
+
*/
|
|
40
|
+
enable(options?: BasePlugin.BaseOptions): void;
|
|
41
|
+
/**
|
|
42
|
+
* 禁用插件,让插件停止响应交互
|
|
43
|
+
*/
|
|
44
|
+
disable(options?: BasePlugin.BaseOptions): void;
|
|
45
|
+
/** 更改插件 State */
|
|
46
|
+
setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
|
|
47
|
+
/** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
|
|
48
|
+
dispose: () => void;
|
|
49
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five-webgpu';
|
|
2
|
+
import type * as PanoAnimePluginType from './typing';
|
|
3
|
+
import { Controller } from './Controller';
|
|
4
|
+
export declare const PanoAnimePlugin: (five: Five, params?: PanoAnimePluginType.Params) => Controller;
|
|
5
|
+
export type { PanoAnimePluginType, Controller as PanoAnimeController };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { BasePlugin } from '../BasePlugin';
|
|
2
|
+
export type PluginData = {};
|
|
3
|
+
export type ServerData = {};
|
|
4
|
+
/** 插件配置 */
|
|
5
|
+
export interface Config {
|
|
6
|
+
maxOpacity: number;
|
|
7
|
+
}
|
|
8
|
+
/** 插件初始化参数 */
|
|
9
|
+
export interface Params {
|
|
10
|
+
config?: Partial<Config>;
|
|
11
|
+
initialState?: Partial<State>;
|
|
12
|
+
}
|
|
13
|
+
/** 插件状态 */
|
|
14
|
+
export interface State extends BasePlugin.State {
|
|
15
|
+
/** 插件是否启用 */
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
/** 插件整体是否可见 */
|
|
18
|
+
visible: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface ConfigChangeEvent {
|
|
21
|
+
/** 变更前的 config */
|
|
22
|
+
prevConfig: Config;
|
|
23
|
+
/** 变更后的 config */
|
|
24
|
+
config: Config;
|
|
25
|
+
/** 是否是用户操作 */
|
|
26
|
+
userAction: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** 插件事件 */
|
|
29
|
+
export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
|
|
30
|
+
drawingChange: (drawing: boolean) => void;
|
|
31
|
+
/** config 变更的回调 */
|
|
32
|
+
configChange: (event: {
|
|
33
|
+
prevConfig: Config;
|
|
34
|
+
config: Config;
|
|
35
|
+
userAction: boolean;
|
|
36
|
+
}) => void;
|
|
37
|
+
}
|
package/plugins/index.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
export * from './BackgroundPlugin';
|
|
2
|
+
export * from './Object3DHelperPlugin';
|
|
3
|
+
export * from './PanoAnimePlugin';
|
|
4
|
+
export * from './CSS2DPlugin';
|
|
5
|
+
export * from './CSS3DPlugin';
|
|
6
|
+
export * from './FloorplanPlugin';
|
|
1
7
|
export { GaussianSplattingEntranceAnimationPlugin, type GaussianSplattingEntranceAnimationPluginType, type GaussianSplattingEntranceAnimationController, } from './GaussianSplattingEntranceAnimationPlugin';
|
|
2
8
|
export { BasePlugin } from './BasePlugin';
|