@realsee/dnalogel 2.2.6 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/dist/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/dist/CSS3DRenderPlugin/index.d.ts +2 -1
- package/dist/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/dist/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/dist/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/dist/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/dist/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/dist/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/dist/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/dist/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/dist/index.cjs.js +46 -46
- package/dist/index.js +4987 -4817
- package/dist/index.umd.js +39 -39
- package/dist/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/docs/assets/highlight.css +7 -0
- package/docs/assets/main.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +533 -0
- 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 +6 -5
- package/docs/functions/CameraMovementPlugin.html +6 -5
- package/docs/functions/CruisePlugin.html +6 -5
- package/docs/functions/GuideLinePlugin.html +7 -6
- package/docs/functions/ItemLabelPlugin.html +6 -5
- package/docs/functions/MapviewFloorplanPlugin.html +6 -5
- package/docs/functions/ModelChassisCompassPlugin.html +6 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -5
- package/docs/functions/ModelFloorplanPlugin.html +6 -5
- package/docs/functions/ModelItemLabelPlugin.html +6 -5
- package/docs/functions/ModelRoomLabelPlugin.html +6 -5
- package/docs/functions/ModelTVVideoPlugin.html +6 -5
- package/docs/functions/ModelViewPlugin.html +6 -5
- package/docs/functions/Object3DHelperPlugin.html +6 -5
- package/docs/functions/PanoCompassPlugin.html +6 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -5
- package/docs/functions/PanoDoorLabelPlugin.html +6 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -5
- package/docs/functions/PanoMeasurePlugin.html +6 -5
- package/docs/functions/PanoRulerPlugin.html +6 -5
- package/docs/functions/PanoRulerProPlugin.html +6 -5
- package/docs/functions/PanoSpatialTagPlugin.html +6 -5
- package/docs/functions/PanoTagPlugin.html +6 -5
- package/docs/functions/TopviewFloorplanPlugin.html +6 -5
- 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 +7 -6
- package/docs/index.html +6 -5
- 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 +7 -6
- 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 +7 -6
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -6
- 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 +7 -6
- package/docs/interfaces/Rooms.html +7 -6
- 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 +7 -5
- package/docs/types/ArrayPosition.html +7 -6
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +7 -6
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -6
- package/docs/types/Color.html +7 -6
- package/docs/types/ContentTypeConfigKey.html +7 -6
- package/docs/types/ContentTypeConfigKeyArray.html +7 -6
- package/docs/types/Create3DDomContainerReturnType.html +7 -6
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +7 -6
- package/docs/types/Direction-1.html +7 -6
- package/docs/types/Direction4.html +7 -6
- package/docs/types/FloorplanRuleLabels.html +7 -6
- package/docs/types/FloorplanServerRuleLabels.html +7 -6
- package/docs/types/GuideLinePluginExportType.html +7 -6
- package/docs/types/HelperEventMap.html +7 -6
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -6
- package/docs/types/MediaData.html +7 -6
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -6
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -6
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -6
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -6
- package/docs/types/MoveArgs.html +7 -6
- package/docs/types/MoveOpts.html +7 -6
- package/docs/types/Object3DHelperEventMap.html +7 -6
- package/docs/types/ObjectFit.html +7 -6
- package/docs/types/PaintBrushEventMap.html +7 -6
- package/docs/types/PanoCompassPluginData.html +7 -6
- package/docs/types/PanoCompassPluginExportType.html +7 -6
- package/docs/types/PanoCompassPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -6
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -6
- package/docs/types/PanoMeasurePluginEvent.html +7 -6
- package/docs/types/PanoMeasureReturnType.html +7 -6
- package/docs/types/PanoSpatialTagPluginId.html +7 -6
- package/docs/types/PanoTagPluginExportInterface.html +7 -6
- package/docs/types/PanoTagPluginParamsInterface.html +7 -6
- package/docs/types/PlaneTag.html +7 -6
- package/docs/types/PointTag.html +7 -6
- package/docs/types/Position.html +7 -6
- package/docs/types/RotateArgs.html +7 -6
- package/docs/types/RotateOpts.html +7 -6
- package/docs/types/RuleLabelsKey.html +7 -6
- package/docs/types/RuleLabelsValue.html +7 -6
- package/docs/types/Tag.html +7 -6
- package/docs/types/Tag2D.html +7 -6
- package/docs/types/Tag3D.html +7 -6
- package/docs/types/TagId.html +7 -6
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -6
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -6
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -6
- package/docs/variables/PLUGIN.html +7 -6
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -6
- package/docs/variables/ROOM_TYPE_MAP.html +7 -6
- package/docs/variables/VERSION.html +7 -6
- package/docs/variables/itemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -6
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -6
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +48 -34
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +198 -251
- package/libs/CSS3DRenderPlugin/Controller.d.ts +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +63 -58
- package/libs/CSS3DRenderPlugin/index.d.ts +2 -1
- package/libs/CSS3DRenderPlugin/index.js +21 -3
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.d.ts +4 -0
- package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +22 -0
- package/libs/CSS3DRenderPlugin/utils/even.d.ts +9 -0
- package/libs/CSS3DRenderPlugin/utils/even.js +7 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +29 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +3 -0
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -0
- package/libs/CSS3DRenderPlugin/utils/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +25 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +53 -0
- package/libs/CSS3DRenderPlugin/utils/{CSS3DObjectPlus.d.ts → three/CSS3DObject.d.ts} +31 -11
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +115 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.d.ts +14 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +46 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.d.ts +12 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +39 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.d.ts +6 -0
- package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +18 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.d.ts +2 -0
- package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +31 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +28 -25
- package/libs/CameraMovementPlugin/index.js +13 -0
- package/libs/CruisePlugin/Controller.js +65 -54
- package/libs/CruisePlugin/index.js +26 -3
- package/libs/CruisePlugin/typing.js +1 -0
- package/libs/GuideLinePlugin/Controller.js +14 -9
- package/libs/GuideLinePlugin/index.js +14 -3
- package/libs/GuideLinePlugin/typing.js +1 -0
- package/libs/ItemLabelPlugin/Plugin.js +33 -23
- package/libs/ItemLabelPlugin/events.type.js +1 -0
- package/libs/ItemLabelPlugin/index.js +16 -2
- package/libs/ModelChassisCompassPlugin/Plugin.js +2 -1
- package/libs/ModelChassisCompassPlugin/index.js +8 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +44 -39
- package/libs/ModelEntryDoorGuidePlugin/index.js +9 -0
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +28 -22
- package/libs/ModelItemLabelPlugin/index.js +12 -2
- package/libs/ModelRoomLabelPlugin/Controller.js +6 -2
- package/libs/ModelRoomLabelPlugin/index.js +10 -3
- package/libs/ModelRoomLabelPlugin/typings.js +1 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +80 -62
- package/libs/ModelTVVideoPlugin/index.js +25 -0
- package/libs/ModelViewPlugin/Plugin.js +2 -1
- package/libs/ModelViewPlugin/index.js +6 -0
- package/libs/Object3DHelperPlugin/Controller.d.ts +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +114 -73
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +13 -9
- package/libs/Object3DHelperPlugin/index.js +48 -3
- package/libs/Object3DHelperPlugin/typings.js +1 -0
- package/libs/PanoCompassPlugin/Controller.js +60 -40
- package/libs/PanoCompassPlugin/index.js +31 -3
- package/libs/PanoCompassPlugin/typings.js +1 -0
- package/libs/PanoCursorRaycasterPlugin/index.js +4 -2
- package/libs/PanoDoorLabelPlugin/BaseController.js +27 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +7 -2
- package/libs/PanoDoorLabelPlugin/index.js +12 -2
- package/libs/PanoDoorLabelPlugin/typings.js +1 -0
- package/libs/PanoMeasurePlugin/index.js +56 -5
- package/libs/PanoRulerPlugin/Plugin.js +22 -17
- package/libs/PanoRulerPlugin/index.js +9 -0
- package/libs/PanoRulerPlugin/style.js +1 -1
- package/libs/PanoRulerPlugin/typings.js +1 -0
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/index.js +16 -3
- package/libs/PanoRulerProPlugin/typings.js +1 -0
- package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
- package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +91 -71
- package/libs/PanoSpatialTagPlugin/index.js +28 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -0
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
- package/libs/PanoTagPlugin/Components/Common/Audio.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +7 -7
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +28 -29
- package/libs/PanoTagPlugin/Components/Common/Media.js +47 -55
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +59 -68
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +5 -7
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +21 -23
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +28 -31
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +9 -10
- package/libs/PanoTagPlugin/Components/Common/Text.js +9 -9
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +19 -27
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +97 -118
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +6 -8
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +3 -5
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +54 -72
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +54 -65
- package/libs/PanoTagPlugin/Components/Tag/index.js +74 -103
- package/libs/PanoTagPlugin/Components/TagContainer.js +65 -108
- package/libs/PanoTagPlugin/Components/TagWrapper.js +78 -116
- package/libs/PanoTagPlugin/controller/index.js +2 -2
- package/libs/PanoTagPlugin/index.js +90 -3
- package/libs/PanoTagPlugin/tag.config.js +2 -1
- package/libs/floorplan/Components/BaseImage.js +7 -7
- package/libs/floorplan/Components/Camera.js +10 -10
- package/libs/floorplan/Components/Compass.js +1 -1
- package/libs/floorplan/Components/CurrentFloor.js +47 -56
- package/libs/floorplan/Components/Main.js +80 -99
- package/libs/floorplan/Components/Normalmage.js +5 -5
- package/libs/floorplan/Components/RoomHighlight/Room.js +11 -11
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +13 -14
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +47 -47
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +23 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +14 -14
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +13 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +13 -13
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +6 -6
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +14 -14
- package/libs/floorplan/Components/SvgImage.js +12 -12
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +111 -81
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +166 -135
- package/libs/floorplan/ModelFloorplanPlugin/index.js +47 -3
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +8 -12
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +51 -36
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +24 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +155 -126
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +44 -3
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +1 -0
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +11 -0
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +1 -0
- package/libs/floorplan/typings/index.js +1 -0
- package/libs/index.js +123 -114
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -7
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +2 -2
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/three/index.js +2 -1
- package/package.json +31 -30
- package/dist/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
- package/libs/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
|
@@ -1,57 +1,82 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
1
|
+
var N = Object.defineProperty;
|
|
2
|
+
var E = Object.getOwnPropertySymbols;
|
|
3
|
+
var x = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var M = (o, e, t) => e in o ? N(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, C = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
x.call(e, t) && M(o, t, e[t]);
|
|
7
|
+
if (E)
|
|
8
|
+
for (var t of E(e))
|
|
9
|
+
V.call(e, t) && M(o, t, e[t]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var d = (
|
|
12
|
+
var i = (o, e, t) => (M(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var p = (o, e, t) => new Promise((r, s) => {
|
|
14
|
+
var d = (c) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
l(t.next(c));
|
|
17
|
+
} catch (S) {
|
|
18
|
+
s(S);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, f = (c) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
l(t.throw(c));
|
|
23
|
+
} catch (S) {
|
|
24
|
+
s(S);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, l = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(d, f);
|
|
27
|
+
l((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
29
|
+
import { ICSS3DRenderer as R } from "./utils/three/CSS3DRenderer.js";
|
|
30
|
+
import { Subscribe as $ } from "../shared-utils/Subscribe.js";
|
|
31
|
+
import "three";
|
|
32
|
+
import { anyPositionToVector3 as _ } from "./utils/positionToVector3.js";
|
|
33
|
+
import { CSS3DObjectPlus as k } from "./utils/three/CSS3DObject.js";
|
|
34
|
+
import { MinRatio as ce } from "./utils/three/CSS3DObject.js";
|
|
35
|
+
import { CSS3DFrontScene as P, CSS3DBehindScene as L } from "./utils/three/CSS3DScene.js";
|
|
36
|
+
import { CSS3DFrontGroup as q, CSS3DBehindGroup as A } from "./utils/three/CSS3DGroup.js";
|
|
37
|
+
import { CSS3DObject as v } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
38
|
+
import "./utils/getAllCSS3DObject.js";
|
|
39
|
+
import "./utils/createResizeObserver.js";
|
|
40
|
+
import "./utils/even.js";
|
|
41
|
+
import "./utils/centerPoint.js";
|
|
42
|
+
import "./utils/three/OpacityMesh.js";
|
|
43
|
+
const W = 3, g = "CSS3DRenderer", b = `${g}@${W}`, u = () => {
|
|
44
|
+
console.error(`${b} is disposed`);
|
|
45
|
+
}, n = {
|
|
46
|
+
css3DObjects: [],
|
|
47
|
+
frontModeStore: {
|
|
48
|
+
css3DRenderer: new R()
|
|
49
|
+
},
|
|
50
|
+
behindModeStore: {
|
|
51
|
+
css3DRenderer: new R()
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
function B(o) {
|
|
55
|
+
return n.css3DObjects.find((e) => e.id === o);
|
|
56
|
+
}
|
|
57
|
+
function H(o) {
|
|
58
|
+
n.frontModeStore.css3DRenderer.setWrapper(o);
|
|
59
|
+
}
|
|
60
|
+
function T(o) {
|
|
61
|
+
n.behindModeStore.css3DRenderer.setWrapper(o);
|
|
62
|
+
}
|
|
63
|
+
class j {
|
|
64
|
+
constructor(e) {
|
|
65
|
+
i(this, "hooks", new $());
|
|
66
|
+
i(this, "state", {
|
|
40
67
|
enabled: !0,
|
|
41
68
|
visible: !0,
|
|
42
69
|
disposed: !1
|
|
43
70
|
});
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
frontModeCSS3DObjects: {},
|
|
48
|
-
behindModeCSS3DObjects: {}
|
|
71
|
+
i(this, "_scene");
|
|
72
|
+
i(this, "store", {
|
|
73
|
+
frontModeGroup: new q()
|
|
49
74
|
});
|
|
50
|
-
|
|
75
|
+
i(this, "create3DElement", (e, t, r) => {
|
|
51
76
|
if (this.state.disposed)
|
|
52
|
-
return
|
|
53
|
-
const
|
|
54
|
-
const
|
|
77
|
+
return u();
|
|
78
|
+
const s = (() => {
|
|
79
|
+
const h = {
|
|
55
80
|
ratio: 216e-5,
|
|
56
81
|
devicePixelRatio: 1,
|
|
57
82
|
mode: "front",
|
|
@@ -59,269 +84,191 @@ class fe {
|
|
|
59
84
|
container: document.createElement("div"),
|
|
60
85
|
pointerEvents: "none"
|
|
61
86
|
};
|
|
62
|
-
return Object.assign(
|
|
63
|
-
})(), d = t.map(
|
|
87
|
+
return Object.assign(h, r);
|
|
88
|
+
})(), d = t.map(_);
|
|
64
89
|
if ((d == null ? void 0 : d.length) < 4)
|
|
65
|
-
return console.error(`${
|
|
66
|
-
const { ratio:
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const r = () => {
|
|
88
|
-
var M, S;
|
|
89
|
-
const D = h.mode;
|
|
90
|
-
if (D === "front")
|
|
91
|
-
this.store.frontModeCSS3DObjects[h.uuid] = {
|
|
92
|
-
visible: !0,
|
|
93
|
-
enabled: !0,
|
|
94
|
-
css3DObject: h,
|
|
95
|
-
mode: "front"
|
|
96
|
-
};
|
|
97
|
-
else {
|
|
98
|
-
if (!n.scene)
|
|
99
|
-
return;
|
|
100
|
-
this.store.behindModeCSS3DObjects[h.uuid] = {
|
|
101
|
-
visible: !0,
|
|
102
|
-
enabled: !0,
|
|
103
|
-
css3DObject: h,
|
|
104
|
-
opacityMesh: O,
|
|
105
|
-
mode: "behind",
|
|
106
|
-
scene: n.scene
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
E.getObjectById(h.id) || E.add(h), D === "behind" && O && ((M = n.scene) != null && M.getObjectById(O.id) || (S = n.scene) == null || S.add(O), z.push(() => {
|
|
110
|
-
var p;
|
|
111
|
-
return O && ((p = n.scene) == null ? void 0 : p.remove(O));
|
|
112
|
-
}));
|
|
113
|
-
};
|
|
114
|
-
return Q || W ? (v.domElement.style.position = "absolute", v.domElement.style.top = "0", v.domElement.style.userSelect = "none", v.domElement.style.pointerEvents = "none", v.domElement.classList.add(V(i)), () => {
|
|
115
|
-
r(), this.render(e);
|
|
116
|
-
}) : (this.store.rendered = !0, () => r());
|
|
117
|
-
})(), k = i === "front" ? o.frontModeContainer : o.behindModeContainer;
|
|
118
|
-
if (k) {
|
|
119
|
-
this.appendToElement(k, i);
|
|
120
|
-
const r = i === "front" ? o.frontModeStore : o.behindModeStore;
|
|
121
|
-
r && (r.appendedToPage = !0);
|
|
122
|
-
}
|
|
123
|
-
const R = (r) => this.setVisibleById(h.uuid, r), A = (r) => this.setEnabledById(h.uuid, r), J = () => R(!0), K = () => R(!1), X = () => A(!0), Y = () => A(!1), $ = () => (delete this.store.frontModeCSS3DObjects[h.uuid], delete this.store.behindModeCSS3DObjects[h.uuid], z.forEach((r) => r == null ? void 0 : r()), E.remove(h), E.children.length === 0 && (typeof g.requestAnimationFrameId == "number" && cancelAnimationFrame(g.requestAnimationFrameId), v.domElement.remove(), i === "front" && (o.frontModeStore = void 0), i === "behind" && (o.behindModeStore = void 0), o.frontModeResizeObserver = void 0, o.behindModeResizeObserver = void 0), !0);
|
|
124
|
-
return this.store.disposers.push($), f && q(), {
|
|
125
|
-
id: h.uuid,
|
|
126
|
-
container: u,
|
|
127
|
-
dispose: $,
|
|
128
|
-
css3DObject: h,
|
|
129
|
-
render: f ? void 0 : q,
|
|
130
|
-
show: J,
|
|
131
|
-
hide: K,
|
|
132
|
-
setVisible: R,
|
|
133
|
-
disable: Y,
|
|
134
|
-
enable: X,
|
|
135
|
-
setEnabled: A,
|
|
136
|
-
appendToElement: (r) => this.appendToElement(r, i)
|
|
90
|
+
return console.error(`${b}: requires 4 point but params may have fewer`);
|
|
91
|
+
const { ratio: f, devicePixelRatio: l, mode: c, autoRender: S, container: G, pointerEvents: w } = s, a = this.createObject(d, { ratio: f, dpr: l, container: G, mode: c, pointerEvents: w });
|
|
92
|
+
n.css3DObjects.push(a), s.scene && this.setScene(s.scene);
|
|
93
|
+
const F = () => {
|
|
94
|
+
const h = a.mode === "front" ? this.getFrontCSS3DObjectGroup() : this.getBehindCSS3DObjectGroup();
|
|
95
|
+
!h || h.add(a);
|
|
96
|
+
}, O = () => {
|
|
97
|
+
F(), this.render(e);
|
|
98
|
+
}, D = (h) => this.setVisibleById(a.id, h), m = (h) => this.setEnabledById(a.id, h), I = () => (a.removeFromParent(), !0), y = c === "front" ? n.frontModeStore.css3DRenderer : n.behindModeStore.css3DRenderer;
|
|
99
|
+
return S && O(), {
|
|
100
|
+
id: a.uuid,
|
|
101
|
+
container: G,
|
|
102
|
+
css3DObject: a,
|
|
103
|
+
render: S ? void 0 : O,
|
|
104
|
+
show: () => D(!0),
|
|
105
|
+
hide: () => D(!1),
|
|
106
|
+
setVisible: D,
|
|
107
|
+
enable: () => m(!0),
|
|
108
|
+
disable: () => m(!1),
|
|
109
|
+
setEnabled: m,
|
|
110
|
+
dispose: I,
|
|
111
|
+
appendToElement: (h) => y.setWrapper(h)
|
|
137
112
|
};
|
|
138
113
|
});
|
|
139
|
-
|
|
140
|
-
var
|
|
141
|
-
|
|
142
|
-
if (!s)
|
|
143
|
-
return console.error("id not found", e);
|
|
144
|
-
s.visible = t, this.state.visible && (s.css3DObject.visible = t, s.mode === "behind" && (s.opacityMesh.visible = t));
|
|
114
|
+
i(this, "setVisibleById", (e, t) => {
|
|
115
|
+
var r;
|
|
116
|
+
(r = B(e)) == null || r.setVisible(t);
|
|
145
117
|
});
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
if (!s)
|
|
118
|
+
i(this, "setEnabledById", (e, t) => {
|
|
119
|
+
const r = B(e);
|
|
120
|
+
if (!r)
|
|
150
121
|
return;
|
|
151
|
-
const
|
|
152
|
-
!
|
|
122
|
+
const s = r.mode === "front" ? this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }) : this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 });
|
|
123
|
+
!s || (t ? s.add(r) : s.remove(r));
|
|
153
124
|
});
|
|
154
|
-
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
const f = c === "behind" ? this.createOpacityMesh(i) : void 0;
|
|
158
|
-
return { css3DObject: i, opacityMesh: f };
|
|
159
|
-
});
|
|
160
|
-
l(this, "createOpacityMesh", (e) => {
|
|
161
|
-
const { domWidthPx: t, domHeightPx: s } = e, n = new y.MeshBasicMaterial({
|
|
162
|
-
opacity: 0,
|
|
163
|
-
color: 0,
|
|
164
|
-
transparent: !1,
|
|
165
|
-
side: y.DoubleSide
|
|
166
|
-
}), d = new y.PlaneGeometry(t, s), c = new y.Mesh(d, n);
|
|
167
|
-
return c.name = V("mesh"), c.position.copy(e.position), c.rotation.copy(e.rotation), c.scale.copy(e.scale), e.hooks.on("applyMatrix4", (a) => c.applyMatrix4(a)), e.hooks.on("applyQuaternion", (a) => c.applyQuaternion(a)), e.hooks.on("applyScaleMatrix4", (a) => c.scale.applyMatrix4(a)), c;
|
|
168
|
-
});
|
|
169
|
-
l(this, "createResizeObserver", (e, t, s = !0) => {
|
|
170
|
-
if (!e)
|
|
171
|
-
return console.error("createResizeObserver: element is undefined"), { observe: () => {
|
|
172
|
-
}, unobserve: () => {
|
|
173
|
-
} };
|
|
174
|
-
const n = () => {
|
|
175
|
-
const c = N(e.clientWidth, { smaller: !0 }), a = N(e.clientHeight, { smaller: !0 });
|
|
176
|
-
t(c, a);
|
|
177
|
-
};
|
|
178
|
-
if (typeof ResizeObserver == "undefined" || !ResizeObserver)
|
|
179
|
-
return console.warn("createResizeObserver: ResizeObserver is undefined"), { observe: () => n(), unobserve: () => {
|
|
180
|
-
} };
|
|
181
|
-
const d = new ResizeObserver(n);
|
|
182
|
-
return s && n(), {
|
|
183
|
-
observe: () => d.observe(e),
|
|
184
|
-
unobserve: () => d.unobserve(e)
|
|
185
|
-
};
|
|
186
|
-
});
|
|
187
|
-
l(this, "disposedErrorLog", () => {
|
|
188
|
-
console.error(`${m} is disposed`);
|
|
125
|
+
i(this, "createObject", (e, t) => {
|
|
126
|
+
const r = new k(C({ cornerPoints: e }, t));
|
|
127
|
+
return r.element.classList.add(`${g}__container`), r.element.id = `${g}__container--${r.uuid}`, r;
|
|
189
128
|
});
|
|
129
|
+
e && this.setScene(e);
|
|
130
|
+
}
|
|
131
|
+
get scene() {
|
|
132
|
+
return this._scene || console.error("scene doesn't exist!, please call setScene(scene) first"), this._scene;
|
|
133
|
+
}
|
|
134
|
+
static get frontModeCSS3DRenderer() {
|
|
135
|
+
return n.frontModeStore.css3DRenderer;
|
|
136
|
+
}
|
|
137
|
+
static get behindModeCSS3DRenderer() {
|
|
138
|
+
return n.behindModeStore.css3DRenderer;
|
|
139
|
+
}
|
|
140
|
+
get frontModeCSS3DRenderer() {
|
|
141
|
+
return n.frontModeStore.css3DRenderer;
|
|
142
|
+
}
|
|
143
|
+
get behindModeCSS3DRenderer() {
|
|
144
|
+
return n.behindModeStore.css3DRenderer;
|
|
145
|
+
}
|
|
146
|
+
setScene(e) {
|
|
147
|
+
this._scene = e;
|
|
190
148
|
}
|
|
191
149
|
getCurrentState() {
|
|
192
150
|
return this.state;
|
|
193
151
|
}
|
|
194
152
|
setState(e, t = { userAction: !0 }) {
|
|
195
153
|
if (this.state.disposed)
|
|
196
|
-
return
|
|
197
|
-
const
|
|
198
|
-
this.state = Object.assign(this.state, e),
|
|
154
|
+
return u();
|
|
155
|
+
const r = C({}, this.state);
|
|
156
|
+
this.state = Object.assign(this.state, e), r.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), r.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), r.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: t.userAction });
|
|
199
157
|
}
|
|
200
158
|
dispose() {
|
|
201
|
-
this.
|
|
159
|
+
this.setState({ disposed: !0 }), this.hooks.emit("dispose");
|
|
202
160
|
}
|
|
203
161
|
show() {
|
|
204
|
-
return
|
|
162
|
+
return p(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
205
163
|
if (this.state.disposed)
|
|
206
|
-
return
|
|
164
|
+
return u();
|
|
207
165
|
this.setState({ visible: !0 }, { userAction: e }), this.hooks.emit("show", { userAction: e });
|
|
208
166
|
});
|
|
209
167
|
}
|
|
210
168
|
hide() {
|
|
211
|
-
return
|
|
169
|
+
return p(this, arguments, function* ({ userAction: e } = { userAction: !0 }) {
|
|
212
170
|
if (this.state.disposed)
|
|
213
|
-
return
|
|
171
|
+
return u();
|
|
214
172
|
this.setState({ visible: !1 }, { userAction: e }), this.hooks.emit("hide", { userAction: e });
|
|
215
173
|
});
|
|
216
174
|
}
|
|
217
175
|
enable({ userAction: e } = { userAction: !0 }) {
|
|
218
176
|
if (this.state.disposed)
|
|
219
|
-
return
|
|
177
|
+
return u();
|
|
220
178
|
this.setState({ enabled: !0 }, { userAction: e }), this.hooks.emit("enable", { userAction: e });
|
|
221
179
|
}
|
|
222
180
|
disable({ userAction: e } = { userAction: !0 }) {
|
|
223
181
|
if (this.state.disposed)
|
|
224
|
-
return
|
|
182
|
+
return u();
|
|
225
183
|
this.setState({ enabled: !1 }, { userAction: e }), this.hooks.emit("disable", { userAction: e });
|
|
226
184
|
}
|
|
227
|
-
|
|
228
|
-
|
|
185
|
+
getFrontCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
186
|
+
var r;
|
|
187
|
+
const t = (r = n.frontModeStore) == null ? void 0 : r.css3DScene;
|
|
188
|
+
if (t)
|
|
189
|
+
return t;
|
|
190
|
+
if (e) {
|
|
191
|
+
const s = new P();
|
|
192
|
+
n.frontModeStore.css3DScene = s;
|
|
193
|
+
}
|
|
194
|
+
return n.frontModeStore.css3DScene;
|
|
229
195
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
throw new Error(`${m} Cannot append to container: behind mode but container is ${e}`);
|
|
241
|
-
o.behindModeContainer = e;
|
|
196
|
+
getBehindCSS3DScene({ createSceneIfNotExists: e = !1 } = {}) {
|
|
197
|
+
var r, s;
|
|
198
|
+
const t = (r = n.behindModeStore) == null ? void 0 : r.css3DScene;
|
|
199
|
+
if (t)
|
|
200
|
+
return t;
|
|
201
|
+
if (e) {
|
|
202
|
+
const d = (s = n.behindModeStore.scene) != null ? s : this.scene;
|
|
203
|
+
if (!d) {
|
|
204
|
+
console.error(`${b}: scene is required when mode is behind`);
|
|
205
|
+
return;
|
|
242
206
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
if (s.appendedToPage)
|
|
246
|
-
return;
|
|
247
|
-
const n = t === "behind" ? o.behindModeContainer : o.frontModeContainer;
|
|
248
|
-
if (!n)
|
|
249
|
-
return console.error("wrapper is undefined");
|
|
250
|
-
if (n.appendChild(s.css3DRenderer.domElement), t === "behind" && !o.behindModeResizeObserver) {
|
|
251
|
-
const d = (i, f) => {
|
|
252
|
-
var u;
|
|
253
|
-
(u = o.behindModeStore) == null || u.css3DRenderer.setSize(i, f);
|
|
254
|
-
}, { observe: c, unobserve: a } = this.createResizeObserver(n, d, !0);
|
|
255
|
-
o.behindModeResizeObserver = { observe: c, unobserve: a }, c(), this.store.disposers.push(a);
|
|
207
|
+
const f = new L(d);
|
|
208
|
+
n.behindModeStore.css3DScene = f, n.behindModeStore.scene = d;
|
|
256
209
|
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
210
|
+
return n.behindModeStore.css3DScene;
|
|
211
|
+
}
|
|
212
|
+
getFrontCSS3DObjectGroup({ addGroupIfNotExists: e = !0 } = {}) {
|
|
213
|
+
const t = this.getFrontCSS3DScene({ createSceneIfNotExists: e });
|
|
214
|
+
return e && t && (t.getObjectById(this.store.frontModeGroup.id) || t.add(this.store.frontModeGroup)), this.store.frontModeGroup;
|
|
215
|
+
}
|
|
216
|
+
getBehindCSS3DObjectGroup({ addGroupIfNotExists: e = !0 } = {}) {
|
|
217
|
+
var r;
|
|
218
|
+
const t = this.getBehindCSS3DScene({ createSceneIfNotExists: e });
|
|
219
|
+
if (e && t && this.scene) {
|
|
220
|
+
const s = (r = this.store.behindModeGroup) != null ? r : new A(this.scene);
|
|
221
|
+
this.store.behindModeGroup = s, t.getObjectById(s.id) || t.add(s);
|
|
263
222
|
}
|
|
264
|
-
|
|
223
|
+
return this.store.behindModeGroup;
|
|
265
224
|
}
|
|
266
225
|
render(e) {
|
|
267
|
-
|
|
268
|
-
if (
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
n();
|
|
226
|
+
var t, r;
|
|
227
|
+
if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
|
|
228
|
+
const s = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
|
|
229
|
+
if (!s)
|
|
230
|
+
return console.error(`${b}: css3DScene is required when mode is front`);
|
|
231
|
+
n.frontModeStore.css3DRenderer.renderEveryFrame(s, e);
|
|
274
232
|
}
|
|
275
|
-
if (
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
n();
|
|
233
|
+
if (((r = (t = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : t.CSS3DObjectLength) != null ? r : 0) > 0) {
|
|
234
|
+
const s = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
|
|
235
|
+
if (!s)
|
|
236
|
+
return console.error(`${b}: css3DScene is required when mode is behind`);
|
|
237
|
+
n.behindModeStore.css3DRenderer.renderEveryFrame(s, e);
|
|
281
238
|
}
|
|
282
|
-
Object.keys(this.store.frontModeCSS3DObjects).length === 0 && (s == null ? void 0 : s.requestAnimationFrameId) !== void 0 && (cancelAnimationFrame(s.requestAnimationFrameId), s.requestAnimationFrameId = void 0), Object.keys(this.store.behindModeCSS3DObjects).length === 0 && (t == null ? void 0 : t.requestAnimationFrameId) !== void 0 && (cancelAnimationFrame(t.requestAnimationFrameId), t.requestAnimationFrameId = void 0);
|
|
283
|
-
}
|
|
284
|
-
initGlobalModeStore(e, t) {
|
|
285
|
-
const s = e === "front" && !o.frontModeStore;
|
|
286
|
-
e === "behind" && !o.behindModeStore && (o.behindModeStore = { scene: t, css3DScene: new y.Scene(), css3DRenderer: new H() }), s && (o.frontModeStore = { css3DScene: new y.Scene(), css3DRenderer: new H() });
|
|
287
239
|
}
|
|
288
240
|
handleShow() {
|
|
289
|
-
return
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
}), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
|
|
293
|
-
e.css3DObject.visible = e.visible, e.opacityMesh.visible = e.visible;
|
|
294
|
-
});
|
|
241
|
+
return p(this, null, function* () {
|
|
242
|
+
var e;
|
|
243
|
+
this.store.frontModeGroup.setVisible(!0), (e = this.store.behindModeGroup) == null || e.setVisible(!0);
|
|
295
244
|
});
|
|
296
245
|
}
|
|
297
246
|
handleHide() {
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
|
|
302
|
-
e.css3DObject.visible = !1, e.opacityMesh.visible = !1;
|
|
303
|
-
});
|
|
247
|
+
return p(this, null, function* () {
|
|
248
|
+
var e;
|
|
249
|
+
this.store.frontModeGroup.setVisible(!1), (e = this.store.behindModeGroup) == null || e.setVisible(!1);
|
|
304
250
|
});
|
|
305
251
|
}
|
|
306
252
|
handleEnable() {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
!e.enabled || (t = o.frontModeStore) == null || t.css3DScene.add(e.css3DObject);
|
|
310
|
-
}), Object.values(this.store.behindModeCSS3DObjects).forEach((e) => {
|
|
311
|
-
var t, s;
|
|
312
|
-
!e.enabled || ((t = o.behindModeStore) == null || t.css3DScene.add(e.css3DObject), (s = o.behindModeStore) == null || s.scene.add(e.opacityMesh));
|
|
313
|
-
});
|
|
253
|
+
var e, t;
|
|
254
|
+
(e = this.getFrontCSS3DScene()) == null || e.add(this.store.frontModeGroup), this.store.behindModeGroup && ((t = this.getBehindCSS3DScene()) == null || t.add(this.store.behindModeGroup));
|
|
314
255
|
}
|
|
315
256
|
handleDisable() {
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
}),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
257
|
+
var e, t, r;
|
|
258
|
+
this.store.frontModeGroup.children.forEach((s) => {
|
|
259
|
+
s instanceof v && s.element instanceof Element && s.element.parentNode !== null && s.element.parentNode.removeChild(s.element);
|
|
260
|
+
}), (e = this.store.behindModeGroup) == null || e.children.forEach((s) => {
|
|
261
|
+
s instanceof v && s.element instanceof Element && s.element.parentNode !== null && s.element.parentNode.removeChild(s.element);
|
|
262
|
+
}), (t = this.getFrontCSS3DScene()) == null || t.remove(this.store.frontModeGroup), this.store.behindModeGroup && ((r = this.getBehindCSS3DScene()) == null || r.remove(this.store.behindModeGroup));
|
|
263
|
+
}
|
|
264
|
+
handleDispose() {
|
|
265
|
+
this.handleDisable();
|
|
323
266
|
}
|
|
324
267
|
}
|
|
268
|
+
i(j, "setFrontModeContainer", H), i(j, "setBehindModeContainer", T);
|
|
325
269
|
export {
|
|
326
|
-
|
|
270
|
+
j as CSS3DRender,
|
|
271
|
+
ce as MinRatio,
|
|
272
|
+
b as PLUGIN,
|
|
273
|
+
n as globalStore
|
|
327
274
|
};
|
|
@@ -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
|
-
|
|
71
|
-
css3DObject: import("./utils/CSS3DObjectPlus").CSS3DObjectPlus<HTMLElement>;
|
|
70
|
+
css3DObject: import("./utils/three/CSS3DObject").CSS3DObjectPlus<HTMLElement>;
|
|
72
71
|
show: () => void;
|
|
73
72
|
hide: () => void;
|
|
74
73
|
setVisible: (visible: boolean) => void;
|
|
75
|
-
disable: () => void;
|
|
76
74
|
enable: () => void;
|
|
75
|
+
disable: () => void;
|
|
77
76
|
setEnabled: (enabled: boolean) => void;
|
|
78
|
-
|
|
77
|
+
dispose: () => boolean;
|
|
78
|
+
appendToElement: (element: HTMLElement) => import("./utils/three/CSS3DRenderer").default;
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
getBehindFiveElement(): HTMLElement;
|
|
81
81
|
}
|