@realsee/dnalogel 2.2.5-alpha.0 → 2.2.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/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +34 -47
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +1 -2
- package/dist/CSS3DRenderPlugin/utils/{three/CSS3DObject.d.ts → CSS3DObjectPlus.d.ts} +11 -25
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +0 -2
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +4897 -5028
- package/dist/index.umd.js +38 -38
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/dist/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/docs/assets/highlight.css +0 -7
- package/docs/assets/search.js +1 -1
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +12 -12
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -6
- package/docs/functions/CameraMovementPlugin.html +5 -6
- package/docs/functions/CruisePlugin.html +5 -6
- package/docs/functions/GuideLinePlugin.html +6 -7
- package/docs/functions/ItemLabelPlugin.html +5 -6
- package/docs/functions/MapviewFloorplanPlugin.html +5 -6
- package/docs/functions/ModelChassisCompassPlugin.html +5 -6
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -6
- package/docs/functions/ModelFloorplanPlugin.html +5 -6
- package/docs/functions/ModelItemLabelPlugin.html +5 -6
- package/docs/functions/ModelRoomLabelPlugin.html +5 -6
- package/docs/functions/ModelTVVideoPlugin.html +5 -6
- package/docs/functions/ModelViewPlugin.html +5 -6
- package/docs/functions/Object3DHelperPlugin.html +5 -6
- package/docs/functions/PanoCompassPlugin.html +5 -6
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -6
- package/docs/functions/PanoDoorLabelPlugin.html +5 -6
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -6
- package/docs/functions/PanoMeasurePlugin.html +5 -6
- package/docs/functions/PanoRulerPlugin.html +5 -6
- package/docs/functions/PanoRulerProPlugin.html +5 -6
- package/docs/functions/PanoSpatialTagPlugin.html +5 -6
- package/docs/functions/PanoTagPlugin.html +5 -6
- package/docs/functions/TopviewFloorplanPlugin.html +5 -6
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +6 -7
- package/docs/index.html +5 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -7
- package/docs/interfaces/PanoMeasureParameterType.html +11 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -7
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/PointJson.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +6 -7
- package/docs/interfaces/Rooms.html +6 -7
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +5 -7
- package/docs/types/ArrayPosition.html +6 -7
- package/docs/types/CSS3DRenderExportType.html +7 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -7
- package/docs/types/Color.html +6 -7
- package/docs/types/ContentTypeConfigKey.html +6 -7
- package/docs/types/ContentTypeConfigKeyArray.html +6 -7
- package/docs/types/Create3DDomContainerReturnType.html +6 -7
- package/docs/types/Create3DElementReturnType.html +7 -8
- package/docs/types/CruisePluginExportType.html +6 -7
- package/docs/types/Direction-1.html +6 -7
- package/docs/types/Direction4.html +6 -7
- package/docs/types/FloorplanRuleLabels.html +6 -7
- package/docs/types/FloorplanServerRuleLabels.html +6 -7
- package/docs/types/GuideLinePluginExportType.html +6 -7
- package/docs/types/HelperEventMap.html +6 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -7
- package/docs/types/MediaData.html +6 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -7
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -7
- package/docs/types/MoveArgs.html +6 -7
- package/docs/types/MoveOpts.html +6 -7
- package/docs/types/Object3DHelperEventMap.html +6 -7
- package/docs/types/ObjectFit.html +6 -7
- package/docs/types/PaintBrushEventMap.html +6 -7
- package/docs/types/PanoCompassPluginData.html +6 -7
- package/docs/types/PanoCompassPluginExportType.html +6 -7
- package/docs/types/PanoCompassPluginParameterType.html +6 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -7
- package/docs/types/PanoMeasurePluginEvent.html +6 -7
- package/docs/types/PanoMeasureReturnType.html +6 -7
- package/docs/types/PanoSpatialTagPluginId.html +6 -7
- package/docs/types/PanoTagPluginExportInterface.html +6 -7
- package/docs/types/PanoTagPluginParamsInterface.html +6 -7
- package/docs/types/PlaneTag.html +6 -7
- package/docs/types/PointTag.html +6 -7
- package/docs/types/Position.html +6 -7
- package/docs/types/RotateArgs.html +6 -7
- package/docs/types/RotateOpts.html +6 -7
- package/docs/types/RuleLabelsKey.html +6 -7
- package/docs/types/RuleLabelsValue.html +6 -7
- package/docs/types/Tag.html +6 -7
- package/docs/types/Tag2D.html +6 -7
- package/docs/types/Tag3D.html +6 -7
- package/docs/types/TagId.html +6 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -7
- package/docs/variables/PLUGIN.html +6 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -7
- package/docs/variables/ROOM_TYPE_MAP.html +6 -7
- package/docs/variables/VERSION.html +6 -7
- package/docs/variables/itemLabelPluginServerParams.html +6 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -7
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +34 -47
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +251 -187
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +57 -48
- package/libs/CSS3DRenderPlugin/index.d.ts +1 -2
- package/libs/CSS3DRenderPlugin/index.js +2 -3
- package/libs/CSS3DRenderPlugin/utils/{three/CSS3DObject.d.ts → CSS3DObjectPlus.d.ts} +11 -25
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -0
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CruisePlugin/Controller.js +16 -16
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +42 -39
- package/libs/ModelTVVideoPlugin/index.js +1 -2
- package/libs/Object3DHelperPlugin/Controller.d.ts +0 -2
- package/libs/Object3DHelperPlugin/Controller.js +74 -89
- package/libs/PanoSpatialTagPlugin/index.js +1 -2
- package/libs/index.js +98 -107
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +7 -8
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +0 -1
- package/libs/shared-utils/three/index.js +1 -2
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.d.ts → transformToMeshBasicMaterial.d.ts} +0 -0
- package/libs/shared-utils/three/{transfromToMeshBasicMaterial.js → transformToMeshBasicMaterial.js} +0 -0
- package/package.json +14 -15
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -4
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +0 -9
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +0 -2
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +0 -3
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -12
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +0 -14
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +0 -12
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +0 -6
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- package/docs/classes/CSS3DRender.html +0 -533
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +0 -4
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +0 -22
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +0 -9
- package/libs/CSS3DRenderPlugin/utils/even.js +0 -7
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +0 -2
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +0 -29
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +0 -9
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -12
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +0 -39
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +0 -93
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +0 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +0 -46
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +0 -12
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +0 -39
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +0 -6
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +0 -18
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +0 -2
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +0 -31
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
3
3
|
import { Subscribe } from '../shared-utils/Subscribe';
|
|
4
4
|
import { AnyPosition } from './utils';
|
|
5
|
-
import { CSS3DObjectPlus } from './utils/
|
|
6
|
-
|
|
7
|
-
export
|
|
5
|
+
import { CSS3DObjectPlus, Mode } from './utils/CSS3DObjectPlus';
|
|
6
|
+
export { MinRatio } from './utils/CSS3DObjectPlus';
|
|
7
|
+
export declare const __ELEMENT__ = "__CSS3DOBJECT_CSS3DRENDER_CONTAINER__";
|
|
8
8
|
export declare const PLUGIN: string;
|
|
9
9
|
export interface CSS3DRenderState {
|
|
10
10
|
enabled: boolean;
|
|
@@ -62,35 +62,26 @@ export declare const globalStore: {
|
|
|
62
62
|
observe: () => void;
|
|
63
63
|
unobserve: () => void;
|
|
64
64
|
};
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
frontModeContainer?: Element;
|
|
66
|
+
behindModeContainer?: Element;
|
|
67
|
+
frontModeStore?: {
|
|
68
|
+
css3DScene: THREE.Scene;
|
|
68
69
|
css3DRenderer: CSS3DRenderer;
|
|
69
|
-
|
|
70
|
+
requestAnimationFrameId?: number;
|
|
71
|
+
appendedToPage?: boolean;
|
|
70
72
|
};
|
|
71
|
-
behindModeStore
|
|
72
|
-
|
|
73
|
+
behindModeStore?: {
|
|
74
|
+
scene: THREE.Scene;
|
|
75
|
+
css3DScene: THREE.Scene;
|
|
73
76
|
css3DRenderer: CSS3DRenderer;
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
requestAnimationFrameId?: number;
|
|
78
|
+
appendedToPage?: boolean;
|
|
76
79
|
};
|
|
77
80
|
};
|
|
78
|
-
declare function setFrontModeContainer(container: HTMLElement): void;
|
|
79
|
-
declare function setBehindModeContainer(container: HTMLElement): void;
|
|
80
81
|
export declare class CSS3DRender {
|
|
81
|
-
static setFrontModeContainer: typeof setFrontModeContainer;
|
|
82
|
-
static setBehindModeContainer: typeof setBehindModeContainer;
|
|
83
82
|
hooks: Subscribe<CSS3DRenderEventMap>;
|
|
84
83
|
state: CSS3DRenderState;
|
|
85
|
-
get scene(): THREE.Scene;
|
|
86
|
-
private _scene?;
|
|
87
84
|
private store;
|
|
88
|
-
static get frontModeCSS3DRenderer(): CSS3DRenderer;
|
|
89
|
-
static get behindModeCSS3DRenderer(): CSS3DRenderer;
|
|
90
|
-
get frontModeCSS3DRenderer(): CSS3DRenderer;
|
|
91
|
-
get behindModeCSS3DRenderer(): CSS3DRenderer;
|
|
92
|
-
constructor(scene?: THREE.Scene);
|
|
93
|
-
setScene(scene: THREE.Scene): void;
|
|
94
85
|
getCurrentState(): CSS3DRenderState;
|
|
95
86
|
setState(state: Partial<CSS3DRenderState>, options?: {
|
|
96
87
|
userAction: boolean;
|
|
@@ -111,8 +102,8 @@ export declare class CSS3DRender {
|
|
|
111
102
|
/**
|
|
112
103
|
* @description 根据传入的四个点位创建一个 3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
|
|
113
104
|
* @param { Vector3Position[] } points 矩形四个点坐标
|
|
114
|
-
* @param
|
|
115
|
-
* @config_document `
|
|
105
|
+
* @param config 均为可选值
|
|
106
|
+
* @config_document `config` 均为可选值
|
|
116
107
|
* | key | type | defaultValue | comment |
|
|
117
108
|
* | - | - | - | - |
|
|
118
109
|
* | `ratio` | *`number`* | `0.00216` | 1px对应多少米,默认为 0.00216,即1px对应2.16mm |
|
|
@@ -142,39 +133,35 @@ export declare class CSS3DRender {
|
|
|
142
133
|
* } | void
|
|
143
134
|
* ```
|
|
144
135
|
*/
|
|
145
|
-
create3DElement: (camera: THREE.Camera, points: Create3DDElementParamsType['points'],
|
|
136
|
+
create3DElement: (camera: THREE.Camera, points: Create3DDElementParamsType['points'], config?: Create3DDElementParamsType['config']) => void | {
|
|
146
137
|
id: string;
|
|
147
138
|
container: HTMLElement;
|
|
139
|
+
dispose: () => boolean;
|
|
148
140
|
css3DObject: CSS3DObjectPlus<HTMLElement>;
|
|
149
141
|
render: () => void;
|
|
150
142
|
show: () => void;
|
|
151
143
|
hide: () => void;
|
|
152
144
|
setVisible: (visible: boolean) => void;
|
|
153
|
-
enable: () => void;
|
|
154
145
|
disable: () => void;
|
|
146
|
+
enable: () => void;
|
|
155
147
|
setEnabled: (enabled: boolean) => void;
|
|
156
|
-
|
|
157
|
-
appendToElement: (element: HTMLElement) => CSS3DRenderer;
|
|
148
|
+
appendToElement: (container: Element) => void;
|
|
158
149
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}): CSS3DBehindScene;
|
|
165
|
-
getFrontCSS3DObjectGroup({ addGroupIfNotExists }?: {
|
|
166
|
-
addGroupIfNotExists?: boolean;
|
|
167
|
-
}): THREE.Group;
|
|
168
|
-
getBehindCSS3DObjectGroup({ addGroupIfNotExists }?: {
|
|
169
|
-
addGroupIfNotExists?: boolean;
|
|
170
|
-
}): THREE.Group;
|
|
171
|
-
setVisibleById: (id: number, visible: boolean) => void;
|
|
172
|
-
setEnabledById: (id: number, enabled: boolean) => void;
|
|
173
|
-
render(camera: THREE.Camera): void;
|
|
150
|
+
setContainer(container: Element, mode: Mode): void;
|
|
151
|
+
appendToElement(container: Element | undefined, mode: Mode): void;
|
|
152
|
+
setVisibleById: (id: string, visible: boolean) => void;
|
|
153
|
+
setEnabledById: (id: string, enabled: boolean) => void;
|
|
154
|
+
private render;
|
|
174
155
|
private createObject;
|
|
156
|
+
private initGlobalModeStore;
|
|
157
|
+
/**
|
|
158
|
+
* @description: 生成透明Mesh
|
|
159
|
+
*/
|
|
160
|
+
private createOpacityMesh;
|
|
175
161
|
private handleShow;
|
|
176
162
|
private handleHide;
|
|
177
163
|
private handleEnable;
|
|
178
164
|
private handleDisable;
|
|
179
|
-
private
|
|
165
|
+
private createResizeObserver;
|
|
166
|
+
private disposedErrorLog;
|
|
180
167
|
}
|
|
@@ -67,15 +67,15 @@ export default class Controller extends CSS3DRender implements BasePlugin.Contro
|
|
|
67
67
|
render: () => void;
|
|
68
68
|
id: string;
|
|
69
69
|
container: HTMLElement;
|
|
70
|
-
|
|
70
|
+
dispose: () => boolean;
|
|
71
|
+
css3DObject: import("./utils/CSS3DObjectPlus").CSS3DObjectPlus<HTMLElement>;
|
|
71
72
|
show: () => void;
|
|
72
73
|
hide: () => void;
|
|
73
74
|
setVisible: (visible: boolean) => void;
|
|
74
|
-
enable: () => void;
|
|
75
75
|
disable: () => void;
|
|
76
|
+
enable: () => void;
|
|
76
77
|
setEnabled: (enabled: boolean) => void;
|
|
77
|
-
|
|
78
|
-
appendToElement: (element: HTMLElement) => import("./utils/three/CSS3DRenderer").default;
|
|
78
|
+
appendToElement: (container: Element) => void;
|
|
79
79
|
};
|
|
80
|
-
getBehindFiveElement
|
|
80
|
+
private getBehindFiveElement;
|
|
81
81
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
2
|
import Controller from './Controller';
|
|
3
|
-
export declare const CSS3DRenderPlugin: FivePlugin<void, InstanceType<typeof Controller>>;
|
|
4
|
-
export { CSS3DRender } from './CSS3DRender';
|
|
5
3
|
export * from './typing';
|
|
4
|
+
export declare const CSS3DRenderPlugin: FivePlugin<void, InstanceType<typeof Controller>>;
|
|
6
5
|
export default CSS3DRenderPlugin;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
|
|
2
2
|
import { Matrix4, Quaternion, Vector3 } from 'three';
|
|
3
|
-
import { Subscribe } from '
|
|
4
|
-
import
|
|
3
|
+
import { Subscribe } from '../../shared-utils/Subscribe';
|
|
4
|
+
import type * as THREE from 'three';
|
|
5
5
|
export declare const MinRatio = 0.00216;
|
|
6
6
|
export declare const DefaultRatio = 0.003;
|
|
7
7
|
export declare type Mode = 'front' | 'behind';
|
|
@@ -10,39 +10,25 @@ export declare type CSS3DRenderEventMap = {
|
|
|
10
10
|
applyMatrix4: (matrix: Matrix4) => void;
|
|
11
11
|
applyQuaternion: (quaternion: Quaternion) => void;
|
|
12
12
|
applyScaleMatrix4: (matrix: Matrix4) => void;
|
|
13
|
+
changeMode: <T extends Mode = Mode>(mode: T, prevMode: Mode, scene: T extends 'behind' ? THREE.Scene : undefined) => void;
|
|
13
14
|
};
|
|
14
15
|
export declare class CSS3DObjectPlus<T extends HTMLElement = HTMLElement> extends CSS3DObject {
|
|
15
|
-
version:
|
|
16
|
-
readonly isCSS3DObjectPlus: true;
|
|
17
|
-
container: T;
|
|
16
|
+
version: string;
|
|
18
17
|
width: number;
|
|
19
18
|
height: number;
|
|
20
19
|
domWidthPx: number;
|
|
21
20
|
domHeightPx: number;
|
|
22
21
|
cornerPoints: CornerPoints;
|
|
23
|
-
centerPosition: Vector3;
|
|
24
22
|
ratio: number;
|
|
23
|
+
container: T;
|
|
24
|
+
centerPosition: Vector3;
|
|
25
25
|
mode: 'front' | 'behind';
|
|
26
26
|
readonly hooks: Subscribe<CSS3DRenderEventMap>;
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
ratio?: number;
|
|
33
|
-
dpr?: number;
|
|
34
|
-
pointerEvents?: 'none' | 'auto';
|
|
35
|
-
});
|
|
36
|
-
setVisible(visible: boolean): void;
|
|
37
|
-
removeFromParent(): this;
|
|
38
|
-
removeOpacityMesh(): this;
|
|
39
|
-
dispose(): void;
|
|
40
|
-
getOpacityMesh(): OpacityMesh;
|
|
27
|
+
readonly isCSS3DObjectPlus: true;
|
|
28
|
+
constructor(container: T, cornerPoints: CornerPoints, ratio?: number, dpr?: number, mode?: Mode);
|
|
29
|
+
changeMode(mode: 'front'): void;
|
|
30
|
+
changeMode(mode: 'behind', scene: THREE.Scene): void;
|
|
31
|
+
applyScaleMatrix4(matrix: Matrix4): void;
|
|
41
32
|
applyMatrix4(matrix: Matrix4): void;
|
|
42
33
|
applyQuaternion(quaternion: Quaternion): this;
|
|
43
|
-
applyScaleMatrix4(matrix: Matrix4): void;
|
|
44
|
-
/**
|
|
45
|
-
* @description: 生成透明Mesh
|
|
46
|
-
*/
|
|
47
|
-
private createOpacityMesh;
|
|
48
34
|
}
|
|
@@ -7,6 +7,7 @@ export interface ModelEntryDoorGuidePluginData {
|
|
|
7
7
|
}
|
|
8
8
|
export declare type ModelEntryDoorGuidePluginParameterType = {
|
|
9
9
|
animationEnabled?: boolean;
|
|
10
|
+
name?: string;
|
|
10
11
|
} & ModelEntryDoorGuidePluginData;
|
|
11
12
|
export interface ModelEntryDoorGuidePluginExportType {
|
|
12
13
|
enable: (config?: {
|
|
@@ -11,8 +11,6 @@ export declare class Object3DHelperController extends BasePlugin.Controller<Obje
|
|
|
11
11
|
name: string;
|
|
12
12
|
state: Object3DHelperState;
|
|
13
13
|
objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
|
|
14
|
-
private css3DObjectParentMap;
|
|
15
|
-
private css3DRender;
|
|
16
14
|
constructor(five: Five);
|
|
17
15
|
/**
|
|
18
16
|
* @description Show guide line
|