@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,23 +1,40 @@
|
|
|
1
|
-
var F = (s, b, e) => new Promise((m,
|
|
1
|
+
var F = (s, b, e) => new Promise((m, x) => {
|
|
2
2
|
var w = (l) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
5
|
-
} catch (
|
|
6
|
-
y
|
|
4
|
+
h(e.next(l));
|
|
5
|
+
} catch (y) {
|
|
6
|
+
x(y);
|
|
7
7
|
}
|
|
8
8
|
}, E = (l) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
} catch (
|
|
12
|
-
y
|
|
10
|
+
h(e.throw(l));
|
|
11
|
+
} catch (y) {
|
|
12
|
+
x(y);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, h = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(w, E);
|
|
15
|
+
h((e = e.apply(s, b)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as d from "three";
|
|
18
18
|
import { parseModelTVVideoPoints as I } from "./utils/parseData.js";
|
|
19
19
|
import { CSS3DRenderPlugin as O } from "../CSS3DRenderPlugin/index.js";
|
|
20
|
-
|
|
20
|
+
import "./typings.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
23
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
24
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
25
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
26
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
27
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
28
|
+
import "../shared-utils/Subscribe.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
30
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
32
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
33
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
35
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
37
|
+
const te = (s, { videoElement: b }) => {
|
|
21
38
|
const e = {
|
|
22
39
|
videoMeshes: [],
|
|
23
40
|
videoTextureEnabled: !1,
|
|
@@ -25,22 +42,22 @@ const C = (s, { videoElement: b }) => {
|
|
|
25
42
|
rectPoints: [],
|
|
26
43
|
enabled: !1,
|
|
27
44
|
videoElement: b
|
|
28
|
-
}, m = O(s),
|
|
45
|
+
}, m = O(s), x = /* @__PURE__ */ new Map(), w = (t) => {
|
|
29
46
|
e.videoTexture && (e.videoTexture.image.muted = t);
|
|
30
|
-
}, E = () => e.videoTexture ? e.videoTexture.image.muted : !0,
|
|
47
|
+
}, E = () => e.videoTexture ? e.videoTexture.image.muted : !0, h = () => {
|
|
31
48
|
if (e.enabled || !e.videoTexture)
|
|
32
49
|
return;
|
|
33
|
-
e.enabled = !0, e.videoMeshes =
|
|
50
|
+
e.enabled = !0, e.videoMeshes = y(), e.videoMeshes.forEach((o) => s.scene.add(o));
|
|
34
51
|
const t = () => {
|
|
35
52
|
if (!e.videoTexture)
|
|
36
53
|
return;
|
|
37
|
-
const
|
|
54
|
+
const o = () => {
|
|
38
55
|
var i;
|
|
39
|
-
!e.videoTexture || ((i = e.videoTexture) == null || i.image.removeEventListener("timeupdate",
|
|
40
|
-
|
|
56
|
+
!e.videoTexture || ((i = e.videoTexture) == null || i.image.removeEventListener("timeupdate", o), e.videoTextureEnabled = !0, e.videoMeshes.forEach((n) => {
|
|
57
|
+
n.material.map !== e.videoTexture && (n.material.map = e.videoTexture);
|
|
41
58
|
}), s.needsRender = !0);
|
|
42
59
|
};
|
|
43
|
-
e.videoTexture.image.addEventListener("timeupdate",
|
|
60
|
+
e.videoTexture.image.addEventListener("timeupdate", o), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
44
61
|
m.hide();
|
|
45
62
|
}, e.videoTexture.image.onpause = () => {
|
|
46
63
|
m.show();
|
|
@@ -56,42 +73,42 @@ const C = (s, { videoElement: b }) => {
|
|
|
56
73
|
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
57
74
|
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
58
75
|
}), e.videoMeshes = [], s.needsRender = !0);
|
|
59
|
-
},
|
|
60
|
-
const i = new d.BufferGeometry(),
|
|
76
|
+
}, y = () => e.rectPoints.map((t, o) => {
|
|
77
|
+
const i = new d.BufferGeometry(), n = 128, a = [];
|
|
61
78
|
a.push(...t[0].toArray());
|
|
62
|
-
for (let r = 1; r <
|
|
79
|
+
for (let r = 1; r < n; r++)
|
|
63
80
|
a.push(
|
|
64
|
-
t[0].x + (t[1].x - t[0].x) * r /
|
|
65
|
-
t[0].y + (t[1].y - t[0].y) * r /
|
|
66
|
-
t[0].z + (t[1].z - t[0].z) * r /
|
|
81
|
+
t[0].x + (t[1].x - t[0].x) * r / n,
|
|
82
|
+
t[0].y + (t[1].y - t[0].y) * r / n,
|
|
83
|
+
t[0].z + (t[1].z - t[0].z) * r / n
|
|
67
84
|
);
|
|
68
85
|
a.push(...t[1].toArray()), a.push(...t[2].toArray());
|
|
69
|
-
for (let r = 1; r <
|
|
86
|
+
for (let r = 1; r < n; r++)
|
|
70
87
|
a.push(
|
|
71
|
-
t[2].x + (t[3].x - t[2].x) * r /
|
|
72
|
-
t[2].y + (t[3].y - t[2].y) * r /
|
|
73
|
-
t[2].z + (t[3].z - t[2].z) * r /
|
|
88
|
+
t[2].x + (t[3].x - t[2].x) * r / n,
|
|
89
|
+
t[2].y + (t[3].y - t[2].y) * r / n,
|
|
90
|
+
t[2].z + (t[3].z - t[2].z) * r / n
|
|
74
91
|
);
|
|
75
92
|
a.push(...t[3].toArray());
|
|
76
93
|
const c = [];
|
|
77
94
|
c.push(0, 1);
|
|
78
|
-
for (let r = 1; r <
|
|
79
|
-
c.push(0, 1 - r /
|
|
95
|
+
for (let r = 1; r < n; r++)
|
|
96
|
+
c.push(0, 1 - r / n);
|
|
80
97
|
c.push(0, 0), c.push(1, 0);
|
|
81
|
-
for (let r = 1; r <
|
|
82
|
-
c.push(1, r /
|
|
98
|
+
for (let r = 1; r < n; r++)
|
|
99
|
+
c.push(1, r / n);
|
|
83
100
|
c.push(1, 1);
|
|
84
101
|
const u = [];
|
|
85
|
-
for (let r = 0; r <
|
|
86
|
-
u.push(r, r + 1,
|
|
102
|
+
for (let r = 0; r < n; r++)
|
|
103
|
+
u.push(r, r + 1, n * 2 - r, r, n * 2 - r, n * 2 + 1 - r);
|
|
87
104
|
i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
|
|
88
|
-
const
|
|
89
|
-
s.scene.add(
|
|
90
|
-
const
|
|
105
|
+
const p = new d.AxesHelper(10);
|
|
106
|
+
s.scene.add(p);
|
|
107
|
+
const f = new d.MeshBasicMaterial({
|
|
91
108
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
92
109
|
side: d.DoubleSide
|
|
93
|
-
}), v = new d.Mesh(i,
|
|
94
|
-
v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${
|
|
110
|
+
}), v = new d.Mesh(i, f);
|
|
111
|
+
v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${o}-${performance.now()}`;
|
|
95
112
|
const z = [t[1], t[2], t[3], t[0]], T = m.create3DDomContainer(z);
|
|
96
113
|
if (T != null && T.container) {
|
|
97
114
|
const r = document.createElement("div");
|
|
@@ -99,32 +116,32 @@ const C = (s, { videoElement: b }) => {
|
|
|
99
116
|
const g = document.createElement("img");
|
|
100
117
|
g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
|
|
101
118
|
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
102
|
-
}, r.appendChild(g),
|
|
119
|
+
}, r.appendChild(g), x.set(v, T);
|
|
103
120
|
}
|
|
104
121
|
return v;
|
|
105
122
|
}), L = (t) => {
|
|
106
|
-
const
|
|
107
|
-
return
|
|
108
|
-
}, P = (t,
|
|
123
|
+
const o = new d.TextureLoader().load(t);
|
|
124
|
+
return o.minFilter = d.LinearFilter, o.magFilter = d.LinearFilter, o.format = d.RGBFormat, o;
|
|
125
|
+
}, P = (t, o) => new Promise((i, n) => {
|
|
109
126
|
const a = new XMLHttpRequest();
|
|
110
127
|
a.onreadystatechange = () => {
|
|
111
128
|
if (a.readyState == 4)
|
|
112
129
|
if (a.status == 200) {
|
|
113
130
|
const c = window.URL || window.webkitURL;
|
|
114
|
-
|
|
115
|
-
const u = new d.VideoTexture(
|
|
131
|
+
o = o || document.createElement("video"), o.crossOrigin = "anonymous", o.muted = !0, o.loop = !0, o.playsInline = !0, o.src = c.createObjectURL(a.response);
|
|
132
|
+
const u = new d.VideoTexture(o);
|
|
116
133
|
u.minFilter = d.LinearFilter, u.magFilter = d.LinearFilter, u.format = d.RGBFormat, i(Object.assign(u, { videoSource: t }));
|
|
117
134
|
} else
|
|
118
|
-
|
|
119
|
-
}, a.onerror = (c) =>
|
|
120
|
-
}), V = (t,
|
|
121
|
-
const { video_src: i, video_poster_src:
|
|
122
|
-
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y:
|
|
135
|
+
n(new Error("Video download Error: " + a.status));
|
|
136
|
+
}, a.onerror = (c) => n(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
137
|
+
}), V = (t, o) => F(void 0, null, function* () {
|
|
138
|
+
const { video_src: i, video_poster_src: n, points: a } = t;
|
|
139
|
+
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: p, z: f }) => new d.Vector3(u, p, f))), e.imageTexture = L(n), o && (e.videoElement = o), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && h();
|
|
123
140
|
}), M = (t) => {
|
|
124
141
|
if (!e.enabled)
|
|
125
142
|
return;
|
|
126
|
-
const
|
|
127
|
-
if (!(!
|
|
143
|
+
const o = e.videoMeshes;
|
|
144
|
+
if (!(!o || t.intersectObjects(o).length === 0))
|
|
128
145
|
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
129
146
|
}, A = (t) => {
|
|
130
147
|
t === "Floorplan" ? m.hide() : m.show();
|
|
@@ -132,18 +149,18 @@ const C = (s, { videoElement: b }) => {
|
|
|
132
149
|
if (!e.enabled)
|
|
133
150
|
return;
|
|
134
151
|
const t = s.camera.position;
|
|
135
|
-
if (
|
|
136
|
-
const
|
|
137
|
-
u && u.distance +
|
|
152
|
+
if (x.forEach((o, i) => {
|
|
153
|
+
const n = o.css3DObject.position.clone(), a = n.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], p = n.distanceTo(t), f = 0.01;
|
|
154
|
+
u && u.distance + f < p ? o.hide() : o.show();
|
|
138
155
|
}), !E()) {
|
|
139
|
-
const
|
|
140
|
-
const
|
|
141
|
-
return i.map((a) => a.clone().add(
|
|
142
|
-
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()),
|
|
143
|
-
return !(
|
|
156
|
+
const o = e.rectPoints.find((i) => {
|
|
157
|
+
const n = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
|
|
158
|
+
return i.map((a) => a.clone().add(n).divideScalar(2)).filter((a) => {
|
|
159
|
+
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), p = s.model.intersectRaycaster(u)[0], f = 0.01;
|
|
160
|
+
return !(p && p.distance + f < c);
|
|
144
161
|
}).length >= 2;
|
|
145
162
|
});
|
|
146
|
-
(!
|
|
163
|
+
(!o || o.length === 0) && w(!0);
|
|
147
164
|
}
|
|
148
165
|
}, S = () => {
|
|
149
166
|
l(), e.videoTexture = void 0, s.off("modeChange", A), s.off("wantsTapGesture", M), s.off("panoArrived", R), s.off("renderFrame", () => {
|
|
@@ -156,8 +173,9 @@ const C = (s, { videoElement: b }) => {
|
|
|
156
173
|
e.videoMeshes.forEach((t) => {
|
|
157
174
|
t && (t.needsRender = !0);
|
|
158
175
|
});
|
|
159
|
-
}), { enable:
|
|
176
|
+
}), { enable: h, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
|
|
160
177
|
};
|
|
161
178
|
export {
|
|
162
|
-
|
|
179
|
+
te as ModelTVVideoPlugin,
|
|
180
|
+
te as default
|
|
163
181
|
};
|
|
@@ -1,2 +1,27 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { ModelTVVideoPlugin as E, ModelTVVideoPlugin as N } from "./Plugin.js";
|
|
3
|
+
import { DIRECTION as R } from "./typings.js";
|
|
1
4
|
import "three";
|
|
5
|
+
import "./utils/parseData.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
2
10
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
14
|
+
import "../shared-utils/Subscribe.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
+
export {
|
|
24
|
+
R as DIRECTION,
|
|
25
|
+
E as ModelTVVideoPlugin,
|
|
26
|
+
N as default
|
|
27
|
+
};
|
|
@@ -102,5 +102,6 @@ const S = (o, i) => {
|
|
|
102
102
|
return Object.assign(window, { camera: f }), o.on("modelLoaded", k), o.on("modelWillLoad", L), o.on("cameraDirectionUpdate", p), o.on("dispose", R), o.on("renderFrame", D), o.on("cameraPositionUpdate", p), { appendTo: P, refresh: b, changeConfigs: j };
|
|
103
103
|
};
|
|
104
104
|
export {
|
|
105
|
-
S as ModelViewPlugin
|
|
105
|
+
S as ModelViewPlugin,
|
|
106
|
+
S as default
|
|
106
107
|
};
|
|
@@ -11,6 +11,8 @@ 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;
|
|
14
16
|
constructor(five: Five);
|
|
15
17
|
/**
|
|
16
18
|
* @description Show guide line
|
|
@@ -1,61 +1,92 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = Object.prototype.hasOwnProperty,
|
|
4
|
-
var b = (i, s, e) => s in i ?
|
|
1
|
+
var O = Object.defineProperty;
|
|
2
|
+
var w = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var b = (i, s, e) => s in i ? O(i, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[s] = e, f = (i, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
6
|
M.call(s, e) && b(i, e, s[e]);
|
|
7
|
-
if (
|
|
8
|
-
for (var e of
|
|
9
|
-
|
|
7
|
+
if (w)
|
|
8
|
+
for (var e of w(s))
|
|
9
|
+
E.call(s, e) && b(i, e, s[e]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var u = (i, s, e) => new Promise((
|
|
14
|
-
var l = (
|
|
12
|
+
var p = (i, s, e) => (b(i, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var u = (i, s, e) => new Promise((r, t) => {
|
|
14
|
+
var l = (n) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
d(e.next(n));
|
|
17
|
+
} catch (h) {
|
|
18
|
+
t(h);
|
|
19
19
|
}
|
|
20
|
-
}, c = (
|
|
20
|
+
}, c = (n) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
d(e.throw(n));
|
|
23
|
+
} catch (h) {
|
|
24
|
+
t(h);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, d = (n) => n.done ? r(n.value) : Promise.resolve(n.value).then(l, c);
|
|
27
|
+
d((e = e.apply(i, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
29
|
+
import { Controller as R } from "../base/BasePlugin.js";
|
|
30
30
|
import "three";
|
|
31
|
-
import { MoveHelper as
|
|
32
|
-
import { RotateHelper as
|
|
33
|
-
import { RectangleScaleHelper as
|
|
31
|
+
import { MoveHelper as j } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import { RotateHelper as P } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
|
+
import { RectangleScaleHelper as y } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
34
|
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
35
|
import { MoveController as F } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
|
-
import { ControllerWrapper as
|
|
37
|
-
import { Object3DHelper as
|
|
38
|
-
import { RotateController as
|
|
39
|
-
import { CSS3DScaleController as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
|
|
37
|
+
import { Object3DHelper as I } from "../shared-utils/Object3DHelper/index.js";
|
|
38
|
+
import { RotateController as k } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
|
+
import { CSS3DScaleController as B } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
|
+
import { CSS3DRender as L } from "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
41
|
+
import { fiveModelLoaded as $ } from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import { generateBehindFiveElement as W } from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
+
import "../shared-utils/Subscribe.js";
|
|
44
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
45
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
46
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
47
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
48
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
49
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
50
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
51
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
52
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
53
|
+
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
54
|
+
import "../shared-utils/isNil.js";
|
|
55
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
56
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
57
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
58
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
59
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
60
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
61
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
62
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
63
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
64
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
65
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
66
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
67
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
68
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
69
|
+
const g = "v1.0.0", H = "Object3DHelperPlugin", C = `${H}@${g}`, _ = () => {
|
|
70
|
+
console.error(`${C} is disposed`);
|
|
71
|
+
}, G = () => {
|
|
72
|
+
console.warn(`${C} is disabled`);
|
|
73
|
+
}, N = () => {
|
|
74
|
+
console.error(`${C} is disabled`);
|
|
46
75
|
};
|
|
47
|
-
class
|
|
76
|
+
class je extends R {
|
|
48
77
|
constructor(e) {
|
|
49
78
|
super(e);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
79
|
+
p(this, "version", g);
|
|
80
|
+
p(this, "name", H);
|
|
81
|
+
p(this, "state", {
|
|
53
82
|
visible: !0,
|
|
54
83
|
enabled: !0,
|
|
55
84
|
disposed: !1
|
|
56
85
|
});
|
|
57
|
-
|
|
58
|
-
this
|
|
86
|
+
p(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
87
|
+
p(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
88
|
+
p(this, "css3DRender");
|
|
89
|
+
this.five = e, this.css3DRender = new L(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${H.toUpperCase()}_DEBUG__`]: this });
|
|
59
90
|
}
|
|
60
91
|
show(e) {
|
|
61
92
|
return u(this, null, function* () {
|
|
@@ -76,70 +107,80 @@ class K extends D {
|
|
|
76
107
|
dispose() {
|
|
77
108
|
this.setState({ disposed: !0 });
|
|
78
109
|
}
|
|
79
|
-
setState(e,
|
|
110
|
+
setState(e, r) {
|
|
80
111
|
if (this.state.disposed)
|
|
81
|
-
return
|
|
112
|
+
return _();
|
|
82
113
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
83
|
-
return
|
|
84
|
-
const
|
|
85
|
-
this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !==
|
|
114
|
+
return N();
|
|
115
|
+
const t = f({}, this.state);
|
|
116
|
+
this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
86
117
|
}
|
|
87
118
|
getObject3DHelper(e) {
|
|
88
119
|
return this.objectHelperMap.get(e);
|
|
89
120
|
}
|
|
90
|
-
addObject3DHelper(e,
|
|
91
|
-
var
|
|
121
|
+
addObject3DHelper(e, r = {}) {
|
|
122
|
+
var S;
|
|
92
123
|
if (!e)
|
|
93
124
|
return console.error("Object3D is undefined");
|
|
94
125
|
if (this.objectHelperMap.has(e)) {
|
|
95
126
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
96
127
|
return;
|
|
97
128
|
}
|
|
98
|
-
const
|
|
99
|
-
this.objectHelperMap.set(e,
|
|
100
|
-
const l = (
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
103
|
-
|
|
129
|
+
const t = new I();
|
|
130
|
+
this.objectHelperMap.set(e, t);
|
|
131
|
+
const l = (S = this.five.getElement()) == null ? void 0 : S.parentElement, c = this.five.camera, { moveHelper: d = !0, rotateHelper: n = !0, scaleHelper: h = !0 } = r;
|
|
132
|
+
if (d) {
|
|
133
|
+
const o = new j(e), a = new v(this.five, F, e, o);
|
|
134
|
+
t.addControllers({ moveController: a.helperController });
|
|
104
135
|
}
|
|
105
|
-
if (
|
|
106
|
-
let
|
|
107
|
-
l && c && (
|
|
108
|
-
const
|
|
109
|
-
|
|
136
|
+
if (n) {
|
|
137
|
+
let o;
|
|
138
|
+
l && c && (o = { container: l });
|
|
139
|
+
const a = new P(e, o), m = new v(this.five, k, e, a);
|
|
140
|
+
t.addControllers({ rotateController: m.helperController });
|
|
110
141
|
}
|
|
111
|
-
if (
|
|
112
|
-
const
|
|
113
|
-
|
|
142
|
+
if (h && l) {
|
|
143
|
+
const o = new y(e, l, c, this.five.scene), a = new v(this.five, B, e, o);
|
|
144
|
+
t.addControllers({ scaleController: a.helperController });
|
|
114
145
|
}
|
|
115
|
-
e.isCSS3DObjectPlus &&
|
|
146
|
+
e.isCSS3DObjectPlus && $(this.five).then(() => {
|
|
147
|
+
var m, D;
|
|
148
|
+
const o = e, a = (m = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? m : W(this.five);
|
|
149
|
+
a && (this.css3DObjectParentMap.set(o, o.parent), o.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(a), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(o), this.css3DRender.render(this.five.camera));
|
|
150
|
+
});
|
|
116
151
|
}
|
|
117
152
|
removeObject3DHelper(e) {
|
|
118
|
-
const
|
|
119
|
-
|
|
153
|
+
const r = this.objectHelperMap.get(e);
|
|
154
|
+
if (!!r) {
|
|
155
|
+
if (e.isCSS3DObjectPlus) {
|
|
156
|
+
const t = e, l = this.css3DObjectParentMap.get(t);
|
|
157
|
+
l == null || l.add(t), this.css3DRender.render(this.five.camera);
|
|
158
|
+
}
|
|
159
|
+
this.objectHelperMap.delete(e), r.dispose();
|
|
160
|
+
}
|
|
120
161
|
}
|
|
121
|
-
handleEnable(e,
|
|
122
|
-
e ? (this.everyHelperDo((
|
|
162
|
+
handleEnable(e, r = !0) {
|
|
163
|
+
e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: r })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: r })), this.state.enabled = e;
|
|
123
164
|
}
|
|
124
|
-
handleVisible(e,
|
|
125
|
-
e ? (this.everyHelperDo((
|
|
165
|
+
handleVisible(e, r = !0) {
|
|
166
|
+
e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: r }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: r }))), this.state.visible = e;
|
|
126
167
|
}
|
|
127
168
|
handleDispose() {
|
|
128
169
|
this.everyHelperDo((e) => e.dispose());
|
|
129
170
|
}
|
|
130
171
|
everyHelperDo(e) {
|
|
131
|
-
this.objectHelperMap.forEach((
|
|
132
|
-
|
|
172
|
+
this.objectHelperMap.forEach((r) => {
|
|
173
|
+
r && e(r);
|
|
133
174
|
});
|
|
134
175
|
}
|
|
135
|
-
actionIfStateIsEnabled(e,
|
|
176
|
+
actionIfStateIsEnabled(e, r) {
|
|
136
177
|
if (this.state.enabled)
|
|
137
178
|
return e();
|
|
138
|
-
|
|
179
|
+
r != null && r.warnLog && G();
|
|
139
180
|
}
|
|
140
181
|
}
|
|
141
182
|
export {
|
|
142
|
-
|
|
143
|
-
|
|
183
|
+
je as Object3DHelperController,
|
|
184
|
+
C as PLUGIN,
|
|
144
185
|
g as VERSION
|
|
145
186
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (t, e, r) => e in t ?
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var c = (t, e, r) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var n = (t, e, r) => (c(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
class
|
|
5
|
-
constructor(e, r,
|
|
4
|
+
class W {
|
|
5
|
+
constructor(e, r, i, p) {
|
|
6
6
|
n(this, "helperController");
|
|
7
7
|
n(this, "five");
|
|
8
8
|
n(this, "onFiveWantsTapGesture", (e) => {
|
|
@@ -17,15 +17,19 @@ class G {
|
|
|
17
17
|
const r = this.helperController.onWantsGesture(...e);
|
|
18
18
|
return this.five.needsRender = !0, r;
|
|
19
19
|
});
|
|
20
|
-
const { camera: s, model: o, scene: l } = e,
|
|
21
|
-
if (this.five = e, !s || !o || !
|
|
20
|
+
const { camera: s, model: o, scene: l } = e, a = e.getElement();
|
|
21
|
+
if (this.five = e, !s || !o || !a || !l)
|
|
22
22
|
return;
|
|
23
|
-
const
|
|
23
|
+
const u = () => {
|
|
24
24
|
e.needsRender = !0;
|
|
25
25
|
};
|
|
26
|
-
this.helperController = new r(s, o,
|
|
26
|
+
this.helperController = new r(s, o, i, p, a, l, u), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
+
const C = (...t) => new W(...t);
|
|
29
30
|
export {
|
|
30
|
-
|
|
31
|
+
W as ControllerWrapper,
|
|
32
|
+
W as FiveControllerWrapper,
|
|
33
|
+
C as controllerWrapper,
|
|
34
|
+
C as fiveControllerWrapper
|
|
31
35
|
};
|
|
@@ -1,5 +1,50 @@
|
|
|
1
|
-
import { Object3DHelperController as
|
|
2
|
-
|
|
1
|
+
import { Object3DHelperController as o } from "./Controller.js";
|
|
2
|
+
import { Object3DHelperController as Q, PLUGIN as T, VERSION as W } from "./Controller.js";
|
|
3
|
+
import "../base/BasePlugin.js";
|
|
4
|
+
import "../shared-utils/Subscribe.js";
|
|
5
|
+
import "three";
|
|
6
|
+
import "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
7
|
+
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
8
|
+
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
9
|
+
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
10
|
+
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
13
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
15
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
16
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
17
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
18
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
21
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
22
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
23
|
+
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
24
|
+
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
25
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
26
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
27
|
+
import "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
28
|
+
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
29
|
+
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
30
|
+
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
31
|
+
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
32
|
+
import "../shared-utils/isNil.js";
|
|
33
|
+
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
34
|
+
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
35
|
+
import "./FiveControllerWrapper.js";
|
|
36
|
+
import "../shared-utils/Object3DHelper/index.js";
|
|
37
|
+
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
38
|
+
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
39
|
+
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
40
|
+
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
42
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
43
|
+
const J = (r) => new o(r);
|
|
3
44
|
export {
|
|
4
|
-
|
|
45
|
+
Q as Object3DHelperController,
|
|
46
|
+
J as Object3DHelperPlugin,
|
|
47
|
+
T as PLUGIN,
|
|
48
|
+
W as VERSION,
|
|
49
|
+
J as default
|
|
5
50
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|