@realsee/dnalogel 2.1.1 → 2.1.2-alpha.1
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/README.md +3 -12
- package/components/index.js +242 -569
- package/dist/index.cjs.js +58 -73
- package/dist/index.es.js +7842 -12958
- package/dist/index.js +7842 -12958
- package/dist/index.umd.js +46 -61
- package/docs/assets/highlight.css +3 -3
- package/docs/assets/main.js +4 -2
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +462 -619
- package/docs/classes/CruisePluginController.html +397 -23
- package/docs/classes/Magnifier.html +187 -9
- package/docs/classes/ModelRoomLabelController.html +149 -11
- package/docs/classes/Object3DHelperController.html +356 -0
- package/docs/classes/PaintBrush.html +260 -0
- package/docs/classes/PanoTagPluginController.html +940 -0
- package/docs/classes/Util.BetterTween.html +134 -0
- package/docs/classes/Util.FivePointSelector.html +144 -0
- package/docs/classes/Util.Interval.html +158 -0
- package/docs/classes/Util.Magnifier.html +196 -0
- package/docs/classes/Util.PointDomHelper.html +135 -0
- package/docs/classes/Util.PointHelper.html +127 -0
- package/docs/classes/Util.Rectangle.html +181 -0
- package/docs/enums/CameraMovementEffect.html +70 -3
- package/docs/enums/ContentType.html +116 -0
- package/docs/enums/DIRECTION.html +81 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +81 -1
- package/docs/enums/DimensionType.html +67 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +74 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +81 -1
- package/docs/enums/LinkType.html +67 -0
- package/docs/enums/PaintBrushTypeEnum.html +74 -0
- package/docs/enums/PointType.html +67 -0
- package/docs/enums/Rotation.html +77 -3
- package/docs/functions/CSS3DRenderPlugin.html +233 -0
- package/docs/functions/CameraMovementPlugin.html +237 -0
- package/docs/functions/CruisePlugin.html +233 -0
- package/docs/functions/GuideLinePlugin.html +235 -0
- package/docs/functions/ItemLabelPlugin.html +235 -0
- package/docs/functions/MapviewFloorplanPlugin.html +235 -0
- package/docs/functions/ModelChassisCompassPlugin.html +237 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +237 -0
- package/docs/functions/ModelFloorplanPlugin.html +235 -0
- package/docs/functions/ModelItemLabelPlugin.html +235 -0
- package/docs/functions/ModelRoomLabelPlugin.html +233 -0
- package/docs/functions/ModelTVVideoPlugin.html +235 -0
- package/docs/functions/ModelViewPlugin.html +237 -0
- package/docs/functions/Object3DHelperPlugin.html +233 -0
- package/docs/functions/PanoCompassPlugin.html +235 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +238 -0
- package/docs/functions/PanoDoorLabelPlugin.html +235 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +235 -0
- package/docs/functions/PanoMeasurePlugin.html +235 -0
- package/docs/functions/PanoRulerPlugin.html +237 -0
- package/docs/functions/PanoRulerProPlugin.html +237 -0
- package/docs/functions/PanoSpatialTagPlugin.html +237 -0
- package/docs/functions/PanoTagPlugin.html +249 -0
- package/docs/functions/TopviewFloorplanPlugin.html +235 -0
- package/docs/functions/Util.getCoordsFromClient.html +78 -0
- package/docs/functions/Util.getCoordsFromElement.html +78 -0
- package/docs/functions/Util.getFrameTime.html +70 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +78 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +78 -0
- package/docs/functions/Util.isNil.html +79 -0
- package/docs/functions/Util.nextFrame.html +73 -0
- package/docs/functions/Util.notNil.html +78 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +98 -0
- package/docs/functions/Util.tweenProgress.html +84 -0
- package/docs/functions/pluginFlag.html +233 -0
- package/docs/index.html +222 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +205 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +85 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +111 -17
- package/docs/interfaces/ContentTypeMap.html +212 -0
- package/docs/interfaces/FloorplanBounding.html +89 -10
- package/docs/interfaces/FloorplanData.html +95 -3
- package/docs/interfaces/FloorplanEntrance.html +114 -15
- package/docs/interfaces/FloorplanExtraObject.html +108 -7
- package/docs/interfaces/FloorplanExtraObject3D.html +99 -3
- package/docs/interfaces/FloorplanFloorData.html +88 -3
- package/docs/interfaces/FloorplanImagePosition.html +74 -3
- package/docs/interfaces/FloorplanObserver.html +92 -5
- package/docs/interfaces/FloorplanOutlineItem.html +88 -3
- package/docs/interfaces/FloorplanPosition.html +74 -3
- package/docs/interfaces/FloorplanRoomItem.html +134 -17
- package/docs/interfaces/FloorplanRoomLabelItem.html +78 -7
- package/docs/interfaces/FloorplanServerBounding.html +89 -10
- package/docs/interfaces/FloorplanServerComputedData.html +92 -1
- package/docs/interfaces/FloorplanServerData.html +74 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +92 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +78 -1
- package/docs/interfaces/FloorplanServerEntrance.html +114 -15
- package/docs/interfaces/FloorplanServerFloorData.html +88 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +74 -3
- package/docs/interfaces/FloorplanServerObserver.html +92 -5
- package/docs/interfaces/FloorplanServerOutlineItem.html +88 -3
- package/docs/interfaces/FloorplanServerPosition.html +74 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +145 -20
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +78 -7
- package/docs/interfaces/ItemLabelPluginData.html +64 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +149 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +85 -1
- package/docs/interfaces/LineJson.html +71 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +71 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +107 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +71 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +78 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +115 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +64 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +149 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +71 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +64 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +85 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +109 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +64 -1
- package/docs/interfaces/ModelViewPluginExportType.html +129 -1
- package/docs/interfaces/Object3DHelperState.html +78 -0
- package/docs/interfaces/OpenParameter.html +74 -3
- package/docs/interfaces/PaintBrushAction.html +118 -0
- package/docs/interfaces/PaintBrushConfigs.html +122 -0
- package/docs/interfaces/PaintBrushState.html +99 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +186 -11
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +227 -1
- package/docs/interfaces/PanoMeasureParameterType.html +128 -5
- package/docs/interfaces/PanoRulerPluginExportType.html +138 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +87 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +78 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +114 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +84 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +71 -1
- package/docs/interfaces/PanoRulerProPluginState.html +78 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +241 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +230 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +114 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +96 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +192 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +92 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +113 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +99 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +92 -1
- package/docs/interfaces/Point.html +78 -1
- package/docs/interfaces/PointJson.html +78 -1
- package/docs/interfaces/Room.html +85 -1
- package/docs/interfaces/RoomInfo.html +71 -1
- package/docs/interfaces/RoomLabel.html +141 -13
- package/docs/interfaces/RoomRules.html +230 -1
- package/docs/interfaces/Rooms.html +230 -1
- package/docs/interfaces/Scissor.html +100 -0
- package/docs/interfaces/TagConfig.html +120 -0
- package/docs/interfaces/Tags.html +89 -0
- package/docs/interfaces/Util.MagnifierParameter.html +116 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +79 -0
- package/docs/modules/Util.html +91 -0
- package/docs/modules.html +425 -36
- package/docs/types/ArrayPosition.html +224 -0
- package/docs/types/CSS3DRenderExportType.html +224 -0
- package/docs/types/CSS3DRenderPluginExportType.html +224 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +224 -0
- package/docs/types/Color.html +224 -0
- package/docs/types/ContentTypeConfigKey.html +224 -0
- package/docs/types/ContentTypeConfigKeyArray.html +224 -0
- package/docs/types/Create3DDomContainerReturnType.html +224 -0
- package/docs/types/Create3DElementReturnType.html +224 -0
- package/docs/types/CruisePluginExportType.html +224 -0
- package/docs/types/Direction-1.html +224 -0
- package/docs/types/Direction4.html +224 -0
- package/docs/types/FloorplanRuleLabels.html +226 -0
- package/docs/types/FloorplanServerRuleLabels.html +224 -0
- package/docs/types/GuideLinePluginExportType.html +224 -0
- package/docs/types/HelperEventMap.html +314 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +224 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +224 -0
- package/docs/types/MediaData.html +224 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +224 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +224 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +224 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +224 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +224 -0
- package/docs/types/MoveArgs.html +226 -0
- package/docs/types/MoveOpts.html +226 -0
- package/docs/types/Object3DHelperEventMap.html +317 -0
- package/docs/types/ObjectFit.html +224 -0
- package/docs/types/PaintBrushEventMap.html +255 -0
- package/docs/types/PanoCompassPluginData.html +224 -0
- package/docs/types/PanoCompassPluginExportType.html +224 -0
- package/docs/types/PanoCompassPluginParameterType.html +224 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +224 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +224 -0
- package/docs/types/PanoMeasurePluginEvent.html +224 -0
- package/docs/types/PanoMeasureReturnType.html +224 -0
- package/docs/types/PanoSpatialTagPluginId.html +224 -0
- package/docs/types/PanoTagPluginExportInterface.html +224 -0
- package/docs/types/PanoTagPluginParamsInterface.html +224 -0
- package/docs/types/PlaneTag.html +233 -0
- package/docs/types/PointTag.html +235 -0
- package/docs/types/Position.html +224 -0
- package/docs/types/RotateArgs.html +226 -0
- package/docs/types/RotateOpts.html +226 -0
- package/docs/types/RuleLabelsKey.html +224 -0
- package/docs/types/RuleLabelsValue.html +224 -0
- package/docs/types/Tag.html +235 -0
- package/docs/types/Tag2D.html +233 -0
- package/docs/types/Tag3D.html +233 -0
- package/docs/types/TagId.html +224 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +224 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +224 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +226 -0
- package/docs/variables/PLUGIN.html +224 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +226 -0
- package/docs/variables/ROOM_TYPE_MAP.html +226 -0
- package/docs/variables/VERSION.html +224 -0
- package/docs/variables/itemLabelPluginServerParams.html +231 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +231 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +231 -0
- package/libs/CSS3DRenderPlugin/CSS3DRender.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -300
- package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -3
- package/libs/CSS3DRenderPlugin/Controller.js +1 -81
- package/libs/CSS3DRenderPlugin/index.js +1 -14
- package/libs/CSS3DRenderPlugin/typing.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -13
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -71
- package/libs/CameraMovementPlugin/index.js +1 -15
- package/libs/CameraMovementPlugin/typing.js +1 -5
- package/libs/CruisePlugin/Controller.js +1 -440
- package/libs/CruisePlugin/index.js +1 -27
- package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -9
- package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
- package/libs/CruisePlugin/utils/formatRad.js +1 -7
- package/libs/CruisePlugin/utils/linerValue.js +1 -7
- package/libs/CruisePlugin/utils/safeCall.js +1 -12
- package/libs/CruisePlugin/utils/sleep.js +1 -10
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
- package/libs/GuideLinePlugin/Controller.js +1 -112
- package/libs/GuideLinePlugin/index.js +1 -15
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -118
- package/libs/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -254
- package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
- package/libs/ItemLabelPlugin/Plugin.js +2 -85
- package/libs/ItemLabelPlugin/index.js +1 -25
- package/libs/ItemLabelPlugin/typings.js +1 -4
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
- package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
- package/libs/ItemLabelPlugin/utils/parseData.js +1 -10
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -11
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -55
- package/libs/ModelChassisCompassPlugin/index.js +1 -10
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -66
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -11
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -196
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -79
- package/libs/ModelItemLabelPlugin/events.type.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +1 -21
- package/libs/ModelItemLabelPlugin/typings.js +1 -4
- package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -9
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -64
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -151
- package/libs/ModelRoomLabelPlugin/index.js +1 -16
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -157
- package/libs/ModelTVVideoPlugin/index.js +1 -19
- package/libs/ModelTVVideoPlugin/typings.js +1 -4
- package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
- package/libs/ModelViewPlugin/Plugin.js +1 -96
- package/libs/ModelViewPlugin/index.js +1 -8
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +1 -137
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.d.ts +1 -1
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -35
- package/libs/Object3DHelperPlugin/index.js +1 -42
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -205
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
- package/libs/PanoCompassPlugin/index.js +1 -24
- package/libs/PanoCursorRaycasterPlugin/index.js +1 -60
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -50
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -215
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
- package/libs/PanoDoorLabelPlugin/index.d.ts +1 -1
- package/libs/PanoDoorLabelPlugin/index.js +1 -15
- package/libs/PanoDoorLabelPlugin/utils.d.ts +2 -2
- package/libs/PanoDoorLabelPlugin/utils.js +1 -23
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -63
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -114
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -138
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -101
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -169
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -167
- package/libs/PanoMeasurePlugin/Model/index.d.ts +4 -4
- package/libs/PanoMeasurePlugin/Model/index.js +1 -99
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/line.js +1 -60
- package/libs/PanoMeasurePlugin/Model/point.js +1 -30
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -70
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -123
- package/libs/PanoMeasurePlugin/index.js +1 -60
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
- package/libs/PanoMeasurePlugin/utils/constants.js +1 -23
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -16
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
- package/libs/PanoMeasurePlugin/utils/line.js +1 -18
- package/libs/PanoMeasurePlugin/utils/math.js +1 -13
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
- package/libs/PanoRulerPlugin/Plugin.js +3 -241
- package/libs/PanoRulerPlugin/index.js +1 -11
- package/libs/PanoRulerPlugin/style.js +2 -5
- package/libs/PanoRulerProPlugin/Controller.js +1 -74
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -118
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -181
- package/libs/PanoRulerProPlugin/index.js +1 -17
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -82
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -258
- package/libs/PanoSpatialTagPlugin/index.js +1 -24
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -1
- package/libs/PanoSpatialTagPlugin/store.js +1 -6
- package/libs/PanoSpatialTagPlugin/style.js +1 -11
- package/libs/PanoSpatialTagPlugin/typings.js +1 -1
- package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -163
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -91
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -3438
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -181
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -52
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -52
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -170
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -125
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -984
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -140
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -72
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -202
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -128
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -231
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -95
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -134
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -308
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -187
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -183
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -32
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -15
- package/libs/PanoTagPlugin/controller/index.js +1 -386
- package/libs/PanoTagPlugin/index.js +1 -71
- package/libs/PanoTagPlugin/tag.config.js +1 -44
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +1 -7
- package/libs/PanoTagPlugin/typings/tag.js +1 -7
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
- package/libs/PanoTagPlugin/utils/checkRange.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
- package/libs/PanoTagPlugin/utils/constants.js +1 -8
- package/libs/PanoTagPlugin/utils/debounce.js +1 -12
- package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
- package/libs/PanoTagPlugin/utils/index.js +1 -36
- package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
- package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
- package/libs/PanoTagPlugin/utils/search.js +1 -33
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
- package/libs/PanoTagPlugin/utils/throttle.js +1 -11
- package/libs/base/BasePlugin.js +1 -18
- package/libs/base/BasePluginWithData.js +1 -7
- package/libs/components/PaintBrush/Controller.d.ts +2 -2
- package/libs/components/PaintBrush/Controller.js +1 -309
- package/libs/components/PaintBrush/Subscribe.js +1 -47
- package/libs/components/PaintBrush/index.js +1 -52
- package/libs/components/PaintBrush/style.js +2 -5
- package/libs/components/PaintBrush/tween.js +1 -15
- package/libs/components/PaintBrush/typings.js +1 -4
- package/libs/components/PaintBrush/utils.d.ts +1 -1
- package/libs/components/PaintBrush/utils.js +1 -45
- package/libs/components/index.js +1 -13
- package/libs/env.d.ts +1 -0
- package/libs/floorplan/Assets/camera.js +1 -4
- package/libs/floorplan/Assets/compass.js +1 -4
- package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
- package/libs/floorplan/Components/BaseImage.js +1 -104
- package/libs/floorplan/Components/Camera.js +1 -62
- package/libs/floorplan/Components/Compass.js +1 -60
- package/libs/floorplan/Components/CurrentFloor.js +1 -255
- package/libs/floorplan/Components/Main.js +1 -282
- package/libs/floorplan/Components/Normalmage.js +1 -37
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -122
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -152
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -184
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
- package/libs/floorplan/Components/SvgImage.js +2 -39
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -322
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -49
- package/libs/floorplan/ModelFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -318
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -49
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -84
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -133
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -191
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -146
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -26
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.d.ts +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -265
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -46
- package/libs/floorplan/constant.js +1 -4
- package/libs/floorplan/index.js +1 -67
- package/libs/floorplan/typings/floorplanData.js +1 -1
- package/libs/floorplan/typings/floorplanServerData.js +1 -101
- package/libs/floorplan/utils/constant.js +1 -8
- package/libs/floorplan/utils/correctFiveState.js +1 -36
- package/libs/floorplan/utils/formatData.js +1 -82
- package/libs/floorplan/utils/formatPosition.js +1 -35
- package/libs/index.js +1 -330
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -155
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
- package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -29
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -74
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -117
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -142
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -81
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -31
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -31
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -103
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -143
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -137
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -30
- package/libs/shared-utils/Object3DHelper/index.js +1 -140
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
- package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -30
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -18
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -18
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -29
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -13
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -5
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
- package/libs/shared-utils/Subscribe.js +1 -50
- package/libs/shared-utils/animationFrame/BetterTween.js +1 -6
- package/libs/shared-utils/animationFrame/calculateProgress.js +1 -12
- package/libs/shared-utils/animationFrame/formatRad.js +1 -13
- package/libs/shared-utils/animationFrame/index.js +1 -51
- package/libs/shared-utils/animationFrame/tween.js +1 -30
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
- package/libs/shared-utils/createCanvasTextTexture.js +1 -11
- package/libs/shared-utils/createLine/index.js +1 -9
- package/libs/shared-utils/debounce.js +1 -11
- package/libs/shared-utils/equal.js +1 -54
- package/libs/shared-utils/filter.js +1 -30
- package/libs/shared-utils/five/changeMode.js +1 -21
- package/libs/shared-utils/getPxmm.js +1 -21
- package/libs/shared-utils/index.js +1 -45
- package/libs/shared-utils/isNil.js +1 -10
- package/libs/shared-utils/isTruelyObject.js +1 -6
- package/libs/shared-utils/math/Interval.js +1 -23
- package/libs/shared-utils/math/Rectangle.js +1 -23
- package/libs/shared-utils/math/index.js +1 -6
- package/libs/shared-utils/math/planimetry.d.ts +5 -5
- package/libs/shared-utils/math/planimetry.js +1 -135
- package/libs/shared-utils/math/rad2Deg.js +1 -6
- package/libs/shared-utils/nearlyEqual.js +1 -6
- package/libs/shared-utils/nextFrame.js +1 -6
- package/libs/shared-utils/noop.js +1 -5
- package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
- package/libs/shared-utils/removeArrayItem.d.ts +1 -1
- package/libs/shared-utils/removeArrayItem.js +1 -8
- package/libs/shared-utils/tap.js +1 -6
- package/libs/shared-utils/three/Assets/index.js +1 -5
- package/libs/shared-utils/three/FivePointSelector.d.ts +1 -1
- package/libs/shared-utils/three/FivePointSelector.js +1 -63
- package/libs/shared-utils/three/Magnifier.d.ts +2 -2
- package/libs/shared-utils/three/Magnifier.js +1 -104
- package/libs/shared-utils/three/PointDomHelper.js +1 -68
- package/libs/shared-utils/three/PointHelper.js +3 -60
- package/libs/shared-utils/three/getCoords.js +1 -13
- package/libs/shared-utils/three/getIntersect.d.ts +1 -1
- package/libs/shared-utils/three/getIntersect.js +1 -8
- package/libs/shared-utils/three/getRaycaster.d.ts +1 -1
- package/libs/shared-utils/three/getRaycaster.js +1 -12
- package/libs/shared-utils/three/index.js +1 -33
- package/libs/shared-utils/three/loadTexture.js +1 -10
- package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -13
- package/libs/shared-utils/throttle.js +1 -11
- package/libs/shared-utils/tinyEJSrender.js +14 -138
- package/libs/shared-utils/to.js +1 -11
- package/libs/shared-utils/uuid.js +1 -10
- package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
- package/libs/vendor/swiper/components-shared/get-params.js +1 -0
- package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/params-list.js +1 -0
- package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/utils.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
- package/libs/vendor/swiper/svelte/swiper.js +1 -0
- package/package.json +218 -31
- package/dist/style.css +0 -1
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/interfaces/CSS3DRenderPluginExportType.html +0 -4
- package/libs/CruisePlugin/typing.js +0 -1
- package/libs/GuideLinePlugin/typing.js +0 -1
- package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
- package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
- package/libs/GuideLinePlugin/utils/polyline-normals.d.js +0 -1
- package/libs/ItemLabelPlugin/events.type.js +0 -1
- package/libs/ModelRoomLabelPlugin/typings.js +0 -1
- package/libs/Object3DHelperPlugin/mocks/addObject3D.d.ts +0 -2
- package/libs/Object3DHelperPlugin/mocks/addObject3D.js +0 -1377
- package/libs/Object3DHelperPlugin/mocks/objects.d.ts +0 -7
- package/libs/Object3DHelperPlugin/mocks/objects.js +0 -47
- package/libs/Object3DHelperPlugin/typings.js +0 -1
- package/libs/PanoCompassPlugin/typings.js +0 -1
- package/libs/PanoDoorLabelPlugin/typings.js +0 -1
- package/libs/PanoMeasurePlugin/typings/data.js +0 -1
- package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
- package/libs/PanoMeasurePlugin/typings/index.js +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
- package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
- package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
- package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
- package/libs/PanoRulerPlugin/typings.js +0 -1
- package/libs/PanoRulerProPlugin/typings.js +0 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
- package/libs/TagComputer.2bc444dc.js +0 -315
- package/libs/floorplan/MapviewFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/ModelFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/typing.js +0 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.d.ts +0 -1
- package/libs/floorplan/TopviewFloorplanPlugin/style.js +0 -11
- package/libs/floorplan/TopviewFloorplanPlugin/typing.js +0 -1
- package/libs/floorplan/typings/index.js +0 -1
- package/libs/floorplan/typings/utility.js +0 -1
- package/libs/hammer.b5b6115e.js +0 -882
- package/libs/index.164f1850.js +0 -641
- package/libs/index.5d5d1089.js +0 -34
- package/libs/index.6a0eead1.js +0 -12
- package/libs/index.ad783a2f.js +0 -31
- package/libs/index.dca207cb.js +0 -37
- package/libs/index.f2f85d71.js +0 -40
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.d.ts +0 -1
- package/libs/shared-utils/Object3DHelper/utils/finiteNumber.js +0 -6
- package/libs/shared-utils/Object3DHelper/utils/negateScale.d.ts +0 -2
- package/libs/shared-utils/Object3DHelper/utils/negateScale.js +0 -7
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.d.js +0 -4
- package/libs/shared-utils/Preloader.d.ts +0 -6
- package/libs/shared-utils/Preloader.js +0 -18
- package/libs/shared-utils/formatRad.d.ts +0 -7
- package/libs/shared-utils/formatRad.js +0 -7
- package/libs/shared-utils/getRandomColor.d.ts +0 -1
- package/libs/shared-utils/getRandomColor.js +0 -6
- package/libs/shared-utils/logger.d.ts +0 -16
- package/libs/shared-utils/logger.js +0 -27
- package/libs/shared-utils/math/evenNumber.d.ts +0 -3
- package/libs/shared-utils/math/evenNumber.js +0 -7
- package/libs/shared-utils/px2rem.d.ts +0 -1
- package/libs/shared-utils/px2rem.js +0 -6
- package/libs/shared-utils/three/getExtraModelLoader.d.ts +0 -6
- package/libs/shared-utils/three/getExtraModelLoader.js +0 -18
- package/libs/shared-utils/three/getNormal.d.ts +0 -2
- package/libs/shared-utils/three/getNormal.js +0 -7
- package/libs/shared-utils/three/getTextureLoader.d.ts +0 -6
- package/libs/shared-utils/three/getTextureLoader.js +0 -16
- package/libs/shared-utils/three/loadFbxObj.d.ts +0 -2
- package/libs/shared-utils/three/loadFbxObj.js +0 -16
- package/libs/shared-utils/vectorTocoordinates.d.ts +0 -7
- package/libs/shared-utils/vectorTocoordinates.js +0 -10
- package/libs/style.css +0 -1
- package/libs/tween.esm.bad2b2b4.js +0 -340
- package/libs/typings/math.type.js +0 -1
- package/libs/typings/utils.type.d.ts +0 -2
- package/libs/typings/utils.type.js +0 -1
|
@@ -1,137 +1 @@
|
|
|
1
|
-
var C = Object.
|
|
2
|
-
var S = (o, i, e) => i in o ? C(o, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[i] = e;
|
|
3
|
-
var n = (o, i, e) => (S(o, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
-
import { Controller as g } from "../base/BasePlugin.js";
|
|
5
|
-
import "three";
|
|
6
|
-
import { MoveHelper as w } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
7
|
-
import { RotateHelper as E } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
8
|
-
import { RectangleScaleHelper as M } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
9
|
-
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
10
|
-
import { MoveController as O } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
11
|
-
import { ControllerWrapper as p } from "./FiveControllerWrapper.js";
|
|
12
|
-
import { Object3DHelper as D } from "../shared-utils/Object3DHelper/index.js";
|
|
13
|
-
import { RotateController as y } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
14
|
-
import { CSS3DScaleController as I } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
15
|
-
import "../shared-utils/Subscribe.js";
|
|
16
|
-
import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
17
|
-
import "../shared-utils/Object3DHelper/Constants/color.js";
|
|
18
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
19
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
20
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
21
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
22
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
23
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
25
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
26
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
27
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
28
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
29
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
30
|
-
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
31
|
-
import "../shared-utils/isNil.js";
|
|
32
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
33
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
34
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
35
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
36
|
-
const f = "v1.0.0", d = "Object3DHelperPlugin", h = `${d}@${f}`, k = () => {
|
|
37
|
-
console.error(`${h} is disposed`);
|
|
38
|
-
}, F = () => {
|
|
39
|
-
console.warn(`${h} is disabled`);
|
|
40
|
-
}, P = () => {
|
|
41
|
-
console.error(`${h} is disabled`);
|
|
42
|
-
};
|
|
43
|
-
class he extends g {
|
|
44
|
-
constructor(e) {
|
|
45
|
-
super(e);
|
|
46
|
-
n(this, "version", f);
|
|
47
|
-
n(this, "name", d);
|
|
48
|
-
n(this, "state", {
|
|
49
|
-
visible: !0,
|
|
50
|
-
enabled: !0,
|
|
51
|
-
disposed: !1
|
|
52
|
-
});
|
|
53
|
-
n(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
54
|
-
this.five = e, 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, { [`__${d.toUpperCase()}_DEBUG__`]: this });
|
|
55
|
-
}
|
|
56
|
-
async show(e) {
|
|
57
|
-
this.setState({ visible: !0 }, e);
|
|
58
|
-
}
|
|
59
|
-
async hide(e) {
|
|
60
|
-
this.setState({ visible: !1 }, e);
|
|
61
|
-
}
|
|
62
|
-
enable(e) {
|
|
63
|
-
this.setState({ enabled: !0 }, e);
|
|
64
|
-
}
|
|
65
|
-
disable(e) {
|
|
66
|
-
this.setState({ enabled: !1 }, e);
|
|
67
|
-
}
|
|
68
|
-
dispose() {
|
|
69
|
-
this.setState({ disposed: !0 });
|
|
70
|
-
}
|
|
71
|
-
setState(e, t) {
|
|
72
|
-
if (this.state.disposed)
|
|
73
|
-
return k();
|
|
74
|
-
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
75
|
-
return P();
|
|
76
|
-
const r = { ...this.state };
|
|
77
|
-
this.state = { ...this.state, ...e }, e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
|
|
78
|
-
}
|
|
79
|
-
getObject3DHelper(e) {
|
|
80
|
-
return this.objectHelperMap.get(e);
|
|
81
|
-
}
|
|
82
|
-
addObject3DHelper(e, t = {}) {
|
|
83
|
-
var c;
|
|
84
|
-
if (!e)
|
|
85
|
-
return console.error("Object3D is undefined");
|
|
86
|
-
if (this.objectHelperMap.has(e)) {
|
|
87
|
-
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
const r = new D();
|
|
91
|
-
this.objectHelperMap.set(e, r);
|
|
92
|
-
const a = (c = this.five.getElement()) == null ? void 0 : c.parentElement, m = this.five.camera, { moveHelper: b = !0, rotateHelper: u = !0, scaleHelper: v = !0 } = t;
|
|
93
|
-
if (b) {
|
|
94
|
-
const s = new w(e), l = new p(this.five, O, e, s);
|
|
95
|
-
r.addControllers({ moveController: l.helperController });
|
|
96
|
-
}
|
|
97
|
-
if (u) {
|
|
98
|
-
let s;
|
|
99
|
-
a && m && (s = { container: a });
|
|
100
|
-
const l = new E(e, s), H = new p(this.five, y, e, l);
|
|
101
|
-
r.addControllers({ rotateController: H.helperController });
|
|
102
|
-
}
|
|
103
|
-
if (v && a) {
|
|
104
|
-
const s = new M(e, a, m, this.five.scene), l = new p(this.five, I, e, s);
|
|
105
|
-
r.addControllers({ scaleController: l.helperController });
|
|
106
|
-
}
|
|
107
|
-
e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
|
|
108
|
-
}
|
|
109
|
-
removeObject3DHelper(e) {
|
|
110
|
-
const t = this.objectHelperMap.get(e);
|
|
111
|
-
!t || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), t.dispose());
|
|
112
|
-
}
|
|
113
|
-
handleEnable(e, t = !0) {
|
|
114
|
-
e ? (this.everyHelperDo((r) => r.enable()), this.hooks.emit("enable", { userAction: t })) : (this.everyHelperDo((r) => r.disable()), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
115
|
-
}
|
|
116
|
-
handleVisible(e, t = !0) {
|
|
117
|
-
e ? (this.everyHelperDo((r) => r.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : (this.everyHelperDo((r) => r.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
118
|
-
}
|
|
119
|
-
handleDispose() {
|
|
120
|
-
this.everyHelperDo((e) => e.dispose());
|
|
121
|
-
}
|
|
122
|
-
everyHelperDo(e) {
|
|
123
|
-
this.objectHelperMap.forEach((t) => {
|
|
124
|
-
t && e(t);
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
actionIfStateIsEnabled(e, t) {
|
|
128
|
-
if (this.state.enabled)
|
|
129
|
-
return e();
|
|
130
|
-
t != null && t.warnLog && F();
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
export {
|
|
134
|
-
he as Object3DHelperController,
|
|
135
|
-
h as PLUGIN,
|
|
136
|
-
f as VERSION
|
|
137
|
-
};
|
|
1
|
+
"use strict";var _=Object.defineProperty;var D=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var H=(s,l,e)=>l in s?_(s,l,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[l]=e,u=(s,l)=>{for(var e in l||(l={}))g.call(l,e)&&H(s,e,l[e]);if(D)for(var e of D(l))w.call(l,e)&&H(s,e,l[e]);return s};var h=(s,l,e)=>(H(s,typeof l!="symbol"?l+"":l,e),e);var C=(s,l,e)=>new Promise((r,t)=>{var i=o=>{try{a(e.next(o))}catch(p){t(p)}},c=o=>{try{a(e.throw(o))}catch(p){t(p)}},a=o=>o.done?r(o.value):Promise.resolve(o.value).then(i,c);a((e=e.apply(s,l)).next())});const E=require("../base/BasePlugin.js");require("three");const M=require("../shared-utils/Object3DHelper/Helper/MoveHelper.js"),m=require("../shared-utils/Object3DHelper/Helper/RotateHelper.js"),U=require("../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js");require("../shared-utils/Object3DHelper/Helper/OutlineHelper.js");const q=require("../shared-utils/Object3DHelper/Controller/MoveController.js"),f=require("./FiveControllerWrapper.js"),I=require("../shared-utils/Object3DHelper/index.js"),P=require("../shared-utils/Object3DHelper/Controller/RotateController.js"),R=require("../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js"),j="v1.0.0",v="Object3DHelperPlugin",b=`${v}@${j}`,y=()=>{console.error(`${b} is disposed`)},F=()=>{console.warn(`${b} is disabled`)},W=()=>{console.error(`${b} is disabled`)};class k extends E.Controller{constructor(e){super(e);h(this,"version",j);h(this,"name",v);h(this,"state",{visible:!0,enabled:!0,disposed:!1});h(this,"objectHelperMap",new Map);this.five=e,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,{[`__${v.toUpperCase()}_DEBUG__`]:this})}show(e){return C(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return C(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,r){if(this.state.disposed)return y();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return W();const t=u({},this.state);this.state=u(u({},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})}getObject3DHelper(e){return this.objectHelperMap.get(e)}addObject3DHelper(e,r={}){var O;if(!e)return console.error("Object3D is undefined");if(this.objectHelperMap.has(e)){console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);return}const t=new I.Object3DHelper;this.objectHelperMap.set(e,t);const i=(O=this.five.getElement())==null?void 0:O.parentElement,c=this.five.camera,{moveHelper:a=!0,rotateHelper:o=!0,scaleHelper:p=!0}=r;if(a){const n=new M.MoveHelper(e),d=new f.ControllerWrapper(this.five,q.MoveController,e,n);t.addControllers({moveController:d.helperController})}if(o){let n;i&&c&&(n={container:i});const d=new m.RotateHelper(e,n),S=new f.ControllerWrapper(this.five,P.RotateController,e,d);t.addControllers({rotateController:S.helperController})}if(p&&i){const n=new U.RectangleScaleHelper(e,i,c,this.five.scene),d=new f.ControllerWrapper(this.five,R.CSS3DScaleController,e,n);t.addControllers({scaleController:d.helperController})}e.isCSS3DObjectPlus&&e.changeMode("behind",this.five.scene)}removeObject3DHelper(e){const r=this.objectHelperMap.get(e);!r||(e.isCSS3DObjectPlus&&e.changeMode("front"),this.objectHelperMap.delete(e),r.dispose())}handleEnable(e,r=!0){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}handleVisible(e,r=!0){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}handleDispose(){this.everyHelperDo(e=>e.dispose())}everyHelperDo(e){this.objectHelperMap.forEach(r=>{r&&e(r)})}actionIfStateIsEnabled(e,r){if(this.state.enabled)return e();r!=null&&r.warnLog&&F()}}exports.Object3DHelperController=k;exports.PLUGIN=b;exports.VERSION=j;
|
|
@@ -12,7 +12,7 @@ declare class ControllerWrapper<Helper extends BaseHelper = BaseHelper, Controll
|
|
|
12
12
|
private onFiveWantsTapGesture;
|
|
13
13
|
private onFiveWantsGesture;
|
|
14
14
|
}
|
|
15
|
-
declare const controllerWrapper: <Helper extends BaseHelper<THREE.Object3D> = BaseHelper<THREE.Object3D>, Controller extends BaseController<BaseHelper<THREE.Object3D>, THREE.Object3D> = BaseController<Helper, THREE.Object3D>>(five: Five, HelperController: new (camera: THREE.Camera, model: THREE.Object3D, originObject3D: THREE.Object3D, helperObject3D: Helper, container: HTMLElement, scene: THREE.Scene, onRender?: (
|
|
15
|
+
declare const controllerWrapper: <Helper extends BaseHelper<THREE.Object3D> = BaseHelper<THREE.Object3D>, Controller extends BaseController<BaseHelper<THREE.Object3D>, THREE.Object3D> = BaseController<Helper, THREE.Object3D>>(five: Five, HelperController: new (camera: THREE.Camera, model: THREE.Object3D, originObject3D: THREE.Object3D, helperObject3D: Helper, container: HTMLElement, scene: THREE.Scene, onRender?: () => void) => Controller, object: THREE.Object3D, helperObjects: Helper) => ControllerWrapper<Helper, Controller>;
|
|
16
16
|
export { ControllerWrapper };
|
|
17
17
|
export { controllerWrapper };
|
|
18
18
|
export { ControllerWrapper as FiveControllerWrapper };
|
|
@@ -1,35 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
var c = (t, e, r) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var n = (t, e, r) => (c(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
class W {
|
|
5
|
-
constructor(e, r, i, p) {
|
|
6
|
-
n(this, "helperController");
|
|
7
|
-
n(this, "five");
|
|
8
|
-
n(this, "onFiveWantsTapGesture", (e) => {
|
|
9
|
-
if (!this.helperController)
|
|
10
|
-
return;
|
|
11
|
-
const r = this.helperController.onWantsTapGesture(e);
|
|
12
|
-
return this.five.needsRender = !0, r;
|
|
13
|
-
});
|
|
14
|
-
n(this, "onFiveWantsGesture", (...e) => {
|
|
15
|
-
if (!this.helperController)
|
|
16
|
-
return;
|
|
17
|
-
const r = this.helperController.onWantsGesture(...e);
|
|
18
|
-
return this.five.needsRender = !0, r;
|
|
19
|
-
});
|
|
20
|
-
const { camera: s, model: o, scene: l } = e, a = e.getElement();
|
|
21
|
-
if (this.five = e, !s || !o || !a || !l)
|
|
22
|
-
return;
|
|
23
|
-
const u = () => {
|
|
24
|
-
e.needsRender = !0;
|
|
25
|
-
};
|
|
26
|
-
this.helperController = new r(s, o, i, p, a, l, u), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
const C = (...t) => new W(...t);
|
|
30
|
-
export {
|
|
31
|
-
W as ControllerWrapper,
|
|
32
|
-
W as FiveControllerWrapper,
|
|
33
|
-
C as controllerWrapper,
|
|
34
|
-
C as fiveControllerWrapper
|
|
35
|
-
};
|
|
1
|
+
"use strict";var p=Object.defineProperty;var c=(t,e,r)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var n=(t,e,r)=>(c(t,typeof e!="symbol"?e+"":e,r),r);class d{constructor(e,r,a,i){n(this,"helperController");n(this,"five");n(this,"onFiveWantsTapGesture",e=>{if(!this.helperController)return;const r=this.helperController.onWantsTapGesture(e);return this.five.needsRender=!0,r});n(this,"onFiveWantsGesture",(...e)=>{if(!this.helperController)return;const r=this.helperController.onWantsGesture(...e);return this.five.needsRender=!0,r});const{camera:s,model:o,scene:l}=e,u=e.getElement();if(this.five=e,!s||!o||!u||!l)return;const h=()=>{e.needsRender=!0};this.helperController=new r(s,o,a,i,u,l,h),e.on("wantsTapGesture",this.onFiveWantsTapGesture),e.on("wantsGesture",this.onFiveWantsGesture)}}exports.ControllerWrapper=d;
|
|
@@ -1,42 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Object3DHelperController as y, PLUGIN as z, VERSION as A } 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/Constants/color.js";
|
|
9
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
-
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
11
|
-
import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
12
|
-
import "../shared-utils/Object3DHelper/utils/direction.js";
|
|
13
|
-
import "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
14
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
15
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
16
|
-
import "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
18
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
19
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
22
|
-
import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
23
|
-
import "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
24
|
-
import "../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
25
|
-
import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
|
|
26
|
-
import "../shared-utils/isNil.js";
|
|
27
|
-
import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
28
|
-
import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
29
|
-
import "./FiveControllerWrapper.js";
|
|
30
|
-
import "../shared-utils/Object3DHelper/index.js";
|
|
31
|
-
import "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
32
|
-
import "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
33
|
-
import "../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
34
|
-
import "../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
35
|
-
const k = (r) => new o(r);
|
|
36
|
-
export {
|
|
37
|
-
y as Object3DHelperController,
|
|
38
|
-
k as Object3DHelperPlugin,
|
|
39
|
-
z as PLUGIN,
|
|
40
|
-
A as VERSION,
|
|
41
|
-
k as default
|
|
42
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Controller.js");require("../base/BasePlugin.js");require("../shared-utils/Subscribe.js");require("three");require("../shared-utils/Object3DHelper/Helper/MoveHelper.js");require("../shared-utils/Object3DHelper/Base/BaseHelper.js");require("../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js");require("../shared-utils/Object3DHelper/utils/direction.js");require("../shared-utils/Object3DHelper/Constants/color.js");require("three/examples/jsm/renderers/CSS3DRenderer");require("../shared-utils/Object3DHelper/Helper/OutlineHelper.js");require("../shared-utils/Object3DHelper/Helper/RotateHelper.js");require("../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js");require("../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js");require("../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js");require("../CSS3DRenderPlugin/CSS3DRender.js");require("../CSS3DRenderPlugin/utils/evenNumber.js");require("../CSS3DRenderPlugin/utils/positionToVector3.js");require("../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js");require("../CSS3DRenderPlugin/utils/centerPoint.js");require("../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js");require("../shared-utils/Object3DHelper/Controller/MoveController.js");require("../shared-utils/Object3DHelper/Base/BaseController.js");require("../shared-utils/Object3DHelper/utils/threex/domevents/index.js");require("../shared-utils/isNil.js");require("../shared-utils/Object3DHelper/utils/getMouseRaycaster.js");require("../shared-utils/Object3DHelper/utils/calculateThreeMouse.js");require("./FiveControllerWrapper.js");require("../shared-utils/Object3DHelper/index.js");require("../shared-utils/Object3DHelper/Controller/RotateController.js");require("../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js");require("../shared-utils/Object3DHelper/Controller/RectangleScaleController.js");require("../shared-utils/Object3DHelper/utils/vectorIsEqual.js");const r=l=>new e.Object3DHelperController(l);exports.Object3DHelperController=e.Object3DHelperController;exports.PLUGIN=e.PLUGIN;exports.VERSION=e.VERSION;exports.Object3DHelperPlugin=r;exports.default=r;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
const A
|
|
2
|
-
export {
|
|
3
|
-
A as roomInfoIcon
|
|
4
|
-
};
|
|
1
|
+
"use strict";const A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZIAAABCCAYAAAB9y1BhAAAAAXNSR0IArs4c6QAADh5JREFUeAHtnVuPLDcVhedwC/dACKAICDxEIBQpygNI/Ab+MX8B8YCQEAjxgBAQLsm5Jjkn58r6Sl4jT52qnu4zXd121dqSx67q7ip7eXsv721XzcVFJAgEgSAQBIJAEAgCQeC4CLx48eKbSu+RH/fKuVoQWB8Cn1tfk9KiIHAUBH6tq/xKiTwSBILADgRCJDvAyUebRuAbpfXxSDatBmn8Pgh8YZ8v5TtBYIMIvFCbSZEgEASuQSBEcg1A+XizCDzfbMvT8CBwIAIhkgMBy9c3g0CIZDNdnYbeFIEQyU0RzO/XikCIZK09m3YdHYEQydEhzQVXgkCIZCUdmWYsj0CIZHmMc4c+EchCe5/9llqfAYEQyRlAzy27QCAeSRfdlEq2gECIpIVeSB1aRAAiudVixVKnINAaAiGS1nok9WkFAUJb8Upa6Y3Uo2kEQiRNd08qd0YEQiJnBD+37guBEElf/ZXang6BEMnpsM6dOkcgRNJ5B66x+nrjLmsTX1J6bSJHZ7+o9HklynWaOse1eKcc+XVlvxYFEnlfaThWfb7mcsn5nPRM6WmVU55KfO+J0mdKj8f5rVu3skNMoET6RSBE0m/fdVNzGWII4StKXy65y18t58aEAVGcUjDkGHsLhIOYfCC1xUT4QDJjgnmkc58qkT8saSiLeCCkSBBoBoEQSTNd0V9FZADRH8iAGfvXS06Zc5CFCePQt0y3EFaq61CX1ayjC56U8br24sKd+kAuJhkI55OSPi75pyIcvKNIEFgcgRDJ4hD3ewMZLDwDXqfOq9RNFCYOCAMPYx851BDjIXiWzky9Tpyvw0kOL/nc+Jh7DyGqko+P+cznVLwMf31Uypz7jZLJ0GEy8jqURnl8zPjyObDEsxknztsDUnFvMfF8e+4X6j88F4hlTDT3de6BiAYsI0HgxgiESG4MYd8XkLEhrARZTKUxUWB0MXrkiA3wdYYQg8Xs2cmzaR977cCE8eSM6wYDsQiXSyOrulDPRUT3AbsxydAnYO9kz87HfH9Kxv3D976lNEk2ujf9ANE8GCe1OeEzgRLZD4EQyX44df8tGQ08iNdHCU+jnhGPDVG9bgAGGD3Iw8TB5xgjz3jr3CTxSEapxxAL7VxcCmGaQPe6n/qScWtSIcdLrD1FhxbtRZn4x/3rtanvlBtffq57UCcI5l6dVF9CaJEgcAWBEMkVOPo+0ODHwGNEIAxIwsRBea6vdxlMPsNwYFAcIoEsnB4WQ6hTqxOMqg1wU40rxEx/kCal6AKejEnGOSFKvE8mFiYaFV8S9AVP5oo3o+syKSA0ZoJxmTWZJvFSXSMLIzBnXBa+bS5/UwQ0oDECEIRDF87n+nSOMDAMkIUNU51v2TjM4SWo2pdi1E34L1W4mnRALFOJtZ0pQe/QNVItT3XNOzpxV8n5fdWjaxzrBqY8j8Cc0Zn/RT45OQIaoPQT3oUHMDnHUzPKuYFLqGJYZFXObNILroSmIi8jMIfjy9/s8EwhGu/0+s+4CdI5vBkmKngv6Bo5x3NbodFFQmQOk6l48VzXQdcgF6d7unePoU7aE5lBIEQyA8y5TmvgEZ5iwBJSeKMkBrHXJVS8lCljZ8IwaZgwFlswvqzNugpT2K6rhTtaI2PPBIN0hWSkn6zJmFSc7yIYSIj0Y6VBdA108nZJd5TjuSQsNqDT558QyZn7rQxMSKNO435hkE0NNEIXzPhIzPiY7cXDEBBHkE0TyRx+0i9vovhf/R3pMR6MPWWTB+syU+JQ2tvlQ8Ji6C/kArHcKfcpHydrHYGxwWq9vl3XT4MFr4JZHO4/3gbkMTXYxkYMEmHtAsJgNsegYxaH9xFZBgH6YMoLXOZunV+1TGCYxHzgpkjfCYPhrUAw5BAMJDLGlbAY44E0iH7LJAlSgVw+UuK5l6nJlD6KnBuBEMmCPaDBwACpiYOBwuCqB0S9xZYBxmfs4YcsGEjkiSsLhBML/VD304lv3//tykTnQ7WENIjGBDYHQoFcSEym2IaMWP/JCaG9VZKyi8f6LaRSE8t4wsX3ImdAIERyRNALcTBIGByeYY13v4yJg+P7SiaOhKcERgMSI7VAJ4hcWGjHwyANonFTh8UYO3gv440kjKPvlqTs4llFLEy4GDfpM5A5g4RIbgi6lNkeh8NV4wEwVm7CUSg+CfLAZR9/R6cjZ0YgfXKiDpD+e2F/CIuVCRnjyh4L5DLeLYbXUu8Sg1gYUwNJ6ZoPVI6cCAE6I3IAAlJW3HCTBl6H3fK5qxCmMnGwiMiWy0jjCKiff6kqDuNDffbbxqu7+uqpP3iAEkJx2mfcOQx2W32YV74sqCUhkmvAlQLjUjMzcqiKxcJdwuwKT2NIUmAWDSOdIaB+/4WrrD78ncvJ20BA/cMmFcalE+GxXcJmFa+x3FWf1iHmXb/LZ3sgkNDWBEhSUhb67DYzA6rDVeOQBy/3gzQGJZWC5nkNgbECGffzCpq0niaUCRqTtH/RqjJmPdmDXMYvtoR4SD9U4kHJOgyWMStQbiLxSISelAoc6rUOFG5O2MnD4ni9xpHdPXNodXpeOvG+qy6j9XuXk7ePQDWeIRQmgizeT9k6zjF2IaRhbUV5thkLhENlCtxDr9Hl96VseGMommcxu7wzwlUmDnaHxC3ustf3r7T04z1/W/39B5eT94eA+pLw9OtKJpZdYTB2ldUhsLzOZY8u32U89/h5X1+RQuHuQhyErVCsmkjrUAazlHtKkEeeshUIGxT0odaPDUKwjiaXiZ/JwWEwL9qP7QBh7DdLkskY3hWGt8KC/eX/qFkHMsdrxeoHihSBbYP2OnBx58RrHZBHvI45lDZyXnrzrpsqA/JHl5OvCwH1s70ViAWPZby2Ujf4vg4GQpJO5K0SFTKrJBIpB1sDUQwIZNcuK2Kjd0v6RMqRtQ6BERnWzX5uHKQXf3I5+XoRkN3AHrLNGEIh7Vor9S4wIhab31q8GiKpyAMCQRmmBKLgOQ68DrYAbl4BpkDKuYFIfiYchvEhPflzMNkeAsWmQCi2KXP2kgkpnspmSWUOmC60Rh3NGg+dTJrzPCAPZg+D5yGjkDinwIjsRkC69VN/QzrzF5eTbxMB6QMhL3sq2Jo524mt8drqZhbq58BoVlvUocQ0WeswebA45pAU7XGZVyTcI8kQbKZD1d7IERCQnr3jy0h//upy8iAg3WACyyI9iccGbEexPbZBnsBCKrype9U7PbvYtaWOgyyYBTAjgET8gCCdxe4ak4c9j9V3nNocWRaBehffsnfK1btCoExMh+dOqokttslRERMLIXbO8QAkC/VERT7W71enW26w2teeCPz6raB4IlPiV5JAHvE8phDKuYMRkO79xD+SXv3N5eRBYA4B6QwTcya6kMrcsyp4JkRKWKPFdq1CmiOSUWfMvZiNRXIYPv/caRVq2F4jpIdvu1Ya8H93OXkQ2AcB6Q+PHUAqpDk7xqtZIJXuJ8FNEIlApx64gYA+t5DFIjnrHrzCIO/GERCR5RCQTv5IVx9CptK3fyx3p1x57QhIl/x/7llPmXpOBT1jNymk0uVjCGclkoq1AXhqvQaAWffA+3ioAe21EB1GgsByCEg3f+CrS+/+6XLyIPCqCEinsLeEvHZNmAnPM2HuKtpyciIpYNr7AFTIwfVwGY8DMFe5MKV2RRpHQHr6lqsoIvnA5eRB4BgISL+8gYhJNB4LYvvnCTN2kEl0816KDTiNWFQEHC4doBG68q6r+p7sZMD7gDzy+oEamZRPjoD09fu66TA+pI//PnkFcsPNICBdYz0Fu3idbSSs3+RzcIsSiQDi+ngdAGTWVfGKsHOB+GBCV1dgycE5EZDufs/31+D9r8vJg8BSCFT2kojN3K4vvBQm3E3Zy0WIRICwVRcwSFPbdu194LKt+kEdtT/SIQLS4Tddbenohy4nDwKnQGAPG4rdZALehA09KpGo8bhou9iUbbs0/jMNTscBdRgJAm0hIF1+wzWSrt52OXkQOCUC0kNsNNuHsatz24iHqI709GxLAjcmktJQEwj5WPA+aCiuWB4YHKOT4yYRkF7zUNkg0lueSI4EgbMiIJ1kZyshL9LUOjNEwkT9sXT2pBP1VyaSQiCse9Coqa27LApBIPE+BEKkLwSk32zRHESDkp0zkSDQBALF9uKdYHunnkthwo7tfXQqQjmYSNQImBACIU2xIuGreB8CIdIvAtJzNogMosHI4mYkCDSHgPTUXspU2ItoEIvzEArlxWRvIlGFWTSnsnWF+b1dKAhk8QrrHpEgsDgC0ndi0oNoEBIuiASBZhGQvnqCz/KCJ/jYZtto7DPRoUU2N11LJIXxqNyUC0VFqeCTpRlP94gEgZMhIL0nbDCIdJswQSQINI9AIRRsNRP+KfvOkgNrKEddr5660YUqw3k8EAhkbvsuCztPVSF7JDqMBIF1IKAxcOl5S8eZLEWCQDcIFBtO2Kv2UOr645lAKkex4VeIpLo5jHbls1KD4eYaWIu4R+UeyYLA2RHQWGAADiJ9P9u2StcheRB4VQSkyzgD2PQppwBH4MaEMpBFRSDcqCYQx9ggDphr0QUb3SMSBJpAQGPiciei9P6oYYAmGphKbA4B6TRrJ+j1HKHYzh8cZbpVBowXZ8bgQhzPNJAOvvD4QjkOAj0hUAbdUOVMoHrqudT1OgSk2zgLkAl2n/LYvh9s900kutYV4UIvQiBXMMlBEAgCQWA1CBRCgUjmHAkI5vk+PACR1BcZmGmfH64GzTQkCASBILBhBAqhgEC9rDFGJI7FGJEcB4EgEASCQBAIAkEgCASBIBAEgkAQCAJBIAgEgSAQBIJAEAgCm0fg/x4jQQWGalpFAAAAAElFTkSuQmCC";exports.roomInfoIcon=A;
|
|
@@ -1,205 +1 @@
|
|
|
1
|
-
var y = Object.defineProperty;
|
|
2
|
-
var g = (h, a, e) => a in h ? y(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e;
|
|
3
|
-
var i = (h, a, e) => (g(h, typeof a != "symbol" ? a + "" : a, e), e);
|
|
4
|
-
import * as n from "three";
|
|
5
|
-
import { Five as M } from "@realsee/five";
|
|
6
|
-
import { Controller as b } from "../base/BasePluginWithData.js";
|
|
7
|
-
import { getRoomInfoInstance as D } from "./getRoomInfoInstance.js";
|
|
8
|
-
import { loadTexture as u } from "../shared-utils/three/loadTexture.js";
|
|
9
|
-
import { CSS3DRenderPlugin as w } from "../CSS3DRenderPlugin/index.js";
|
|
10
|
-
import { tweenProgress as P } from "../shared-utils/animationFrame/index.js";
|
|
11
|
-
import "../base/BasePlugin.js";
|
|
12
|
-
import "../shared-utils/Subscribe.js";
|
|
13
|
-
import "./Assets/roomInfoIcon.js";
|
|
14
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
15
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
16
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
17
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
18
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
19
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
21
|
-
import "../tween.esm.bad2b2b4.js";
|
|
22
|
-
const p = { userAction: !0 };
|
|
23
|
-
class z extends b {
|
|
24
|
-
constructor(e, t) {
|
|
25
|
-
super(e);
|
|
26
|
-
i(this, "state", {
|
|
27
|
-
visible: !0,
|
|
28
|
-
enabled: !0,
|
|
29
|
-
config: {
|
|
30
|
-
compassImageUrl: "//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png",
|
|
31
|
-
entryDoorImageUrl: "//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png"
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
i(this, "data");
|
|
35
|
-
i(this, "group", new n.Group());
|
|
36
|
-
i(this, "roomInfoInstance");
|
|
37
|
-
i(this, "roomInfoWrapperInstance");
|
|
38
|
-
i(this, "compassMeshTween");
|
|
39
|
-
i(this, "compassMesh");
|
|
40
|
-
i(this, "entryDoorMesh");
|
|
41
|
-
i(this, "dispose", () => {
|
|
42
|
-
var e, t, s, o;
|
|
43
|
-
this.five.scene.remove(this.group), this.group.remove(...this.group.children), (t = (e = this.compassMesh) == null ? void 0 : e.material.map) == null || t.dispose(), (o = (s = this.entryDoorMesh) == null ? void 0 : s.material.map) == null || o.dispose(), this.five.off("dispose", this.dispose), this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
44
|
-
});
|
|
45
|
-
i(this, "_addEventListener", () => {
|
|
46
|
-
this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("panoWillArrive", this.onFivePanoWillArrive), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
47
|
-
});
|
|
48
|
-
i(this, "_removeEventListener", () => {
|
|
49
|
-
this.five.off("panoArrived", this.onFivePanoArrived), this.five.off("panoWillArrive", this.onFivePanoWillArrive), this.five.off("modeChange", this.onFiveModeChange), this.five.off("cameraDirectionUpdate", this.onFiveCameraDirectionUpdate);
|
|
50
|
-
});
|
|
51
|
-
i(this, "_enable", () => {
|
|
52
|
-
this.five.scene.add(this.group), this.init(), this.onFivePanoArrived(this.five.panoIndex || 0), this._addEventListener();
|
|
53
|
-
});
|
|
54
|
-
i(this, "_disable", () => {
|
|
55
|
-
this._clearCompassIfNeed(), this._clearEntryDoorIfNeed(), this.five.scene.remove(this.group), this._removeEventListener();
|
|
56
|
-
});
|
|
57
|
-
i(this, "_toggleVisible", () => {
|
|
58
|
-
this.group.visible = this.state.visible, this.five.needsRender = !0;
|
|
59
|
-
});
|
|
60
|
-
i(this, "_clearCompassIfNeed", () => {
|
|
61
|
-
var e;
|
|
62
|
-
this.compassMesh && (this.group.remove(this.compassMesh), (e = this.compassMesh.material.map) == null || e.dispose(), this.compassMesh = null);
|
|
63
|
-
});
|
|
64
|
-
i(this, "_clearEntryDoorIfNeed", () => {
|
|
65
|
-
var e;
|
|
66
|
-
this.entryDoorMesh && (this.group.remove(this.entryDoorMesh), (e = this.entryDoorMesh.material.map) == null || e.dispose(), this.entryDoorMesh = null), this.roomInfoInstance && (this.roomInfoInstance.dispose(), this.roomInfoInstance = null), this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.dispose(), this.roomInfoWrapperInstance = null);
|
|
67
|
-
});
|
|
68
|
-
i(this, "onFivePanoWillArrive", (e) => {
|
|
69
|
-
var t, s;
|
|
70
|
-
e !== this.five.panoIndex && ((t = this.compassMeshTween) == null || t.dispose(), (s = this.compassMesh) == null || s.material.setValues({ opacity: 0 }));
|
|
71
|
-
});
|
|
72
|
-
i(this, "onFivePanoArrived", (e) => {
|
|
73
|
-
var s, o, r, c, l, f, d;
|
|
74
|
-
const t = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
|
|
75
|
-
if (this.compassMesh && (this.compassMesh.position.copy(t.clone().setY(t.y + 0.01)), this.compassMesh.material.opacity === 0 && ((c = this.compassMeshTween) == null || c.dispose(), this.compassMeshTween = P(1e3).onUpdate(({ progress: v }) => {
|
|
76
|
-
var m;
|
|
77
|
-
(m = this.compassMesh) == null || m.material.setValues({ opacity: v }), this.five.needsRender = !0;
|
|
78
|
-
}).play())), this.entryDoorMesh) {
|
|
79
|
-
const m = new n.Vector3(
|
|
80
|
-
this.data.entrance.position.x,
|
|
81
|
-
this.data.entrance.position.y,
|
|
82
|
-
this.data.entrance.position.z
|
|
83
|
-
).clone().setY(t.y).sub(t).normalize(), I = t.clone().add(m.clone().multiplyScalar(0.7)).setY(t.y + 0.01);
|
|
84
|
-
this.entryDoorMesh.rotation.z = new n.Vector3(0, 0, -1).angleTo(m), this.entryDoorMesh.position.copy(I), ((l = this.data) == null ? void 0 : l.room_observers[e].room.type) === 1 ? (f = this.entryDoorMesh) == null || f.material.setValues({ opacity: 1 }) : (d = this.entryDoorMesh) == null || d.material.setValues({ opacity: 0 });
|
|
85
|
-
}
|
|
86
|
-
this.roomInfoInstance && this.roomInfoWrapperInstance && (this.roomInfoWrapperInstance.css3DObject.position.copy(
|
|
87
|
-
t.clone().setY(t.y + 0.01)
|
|
88
|
-
), this.roomInfoInstance.setRoom(this.data.room_observers[e].room)), this.five.needsRender = !0;
|
|
89
|
-
});
|
|
90
|
-
i(this, "onFiveCameraDirectionUpdate", ({
|
|
91
|
-
longitude: e,
|
|
92
|
-
latitude: t
|
|
93
|
-
}) => {
|
|
94
|
-
var s, o;
|
|
95
|
-
!this.roomInfoWrapperInstance || (this.roomInfoWrapperInstance.css3DObject.rotation.z = e, t > 0.66 && this.five.getCurrentState().mode === "Panorama" ? (s = this.roomInfoInstance) == null || s.show() : (o = this.roomInfoInstance) == null || o.hide());
|
|
96
|
-
});
|
|
97
|
-
i(this, "onFiveModeChange", (e, t, s, o, r) => {
|
|
98
|
-
e !== t && this.setState(
|
|
99
|
-
{
|
|
100
|
-
visible: e === M.Mode.Panorama
|
|
101
|
-
},
|
|
102
|
-
{ userAction: r }
|
|
103
|
-
);
|
|
104
|
-
});
|
|
105
|
-
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
106
|
-
visible: !0,
|
|
107
|
-
enabled: !0,
|
|
108
|
-
config: {
|
|
109
|
-
...this.state.config,
|
|
110
|
-
...t || {}
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
enable(e = p) {
|
|
115
|
-
this.setState(
|
|
116
|
-
{
|
|
117
|
-
enabled: !0
|
|
118
|
-
},
|
|
119
|
-
e
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
disable(e = p) {
|
|
123
|
-
this.setState(
|
|
124
|
-
{
|
|
125
|
-
enabled: !1
|
|
126
|
-
},
|
|
127
|
-
e
|
|
128
|
-
);
|
|
129
|
-
}
|
|
130
|
-
show(e = p) {
|
|
131
|
-
if (!!this.state.enabled)
|
|
132
|
-
return this.setState(
|
|
133
|
-
{
|
|
134
|
-
visible: !0
|
|
135
|
-
},
|
|
136
|
-
e
|
|
137
|
-
), Promise.resolve();
|
|
138
|
-
}
|
|
139
|
-
hide(e = p) {
|
|
140
|
-
if (!!this.state.enabled)
|
|
141
|
-
return this.setState(
|
|
142
|
-
{
|
|
143
|
-
visible: !1
|
|
144
|
-
},
|
|
145
|
-
e
|
|
146
|
-
), Promise.resolve();
|
|
147
|
-
}
|
|
148
|
-
setState(e, t = { userAction: !0 }) {
|
|
149
|
-
var o, r;
|
|
150
|
-
const s = JSON.parse(JSON.stringify(this.state));
|
|
151
|
-
this.state = {
|
|
152
|
-
visible: (o = e.visible) != null ? o : s.visible,
|
|
153
|
-
enabled: (r = e.enabled) != null ? r : s.enabled,
|
|
154
|
-
config: { ...s.config, ...e.config || {} }
|
|
155
|
-
}, this.hooks.emit("stateChange", {
|
|
156
|
-
state: this.state,
|
|
157
|
-
prevState: s,
|
|
158
|
-
userAction: t.userAction
|
|
159
|
-
}), e.enabled === !0 && (this._enable(), this.hooks.emit("enable", t)), e.enabled === !1 && (this._disable(), this.hooks.emit("disable", t)), e.visible === !1 && (this._toggleVisible(), this.hooks.emit("hide", t)), e.visible === !0 && (this._toggleVisible(), this.hooks.emit("show", t)), e.config && this.init();
|
|
160
|
-
}
|
|
161
|
-
async load(e, t, s = !0) {
|
|
162
|
-
const o = await this.formatData(e);
|
|
163
|
-
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = { ...o }, this.init(), t && this.setState(t, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
|
|
164
|
-
}
|
|
165
|
-
formatData(e) {
|
|
166
|
-
return e.version && e.data ? Promise.resolve(e.data) : Promise.resolve(e);
|
|
167
|
-
}
|
|
168
|
-
async init() {
|
|
169
|
-
var s, o, r, c;
|
|
170
|
-
const e = (o = (s = this.data) == null ? void 0 : s.north_rad) != null ? o : null;
|
|
171
|
-
this._clearCompassIfNeed(), e !== null && (this.compassMesh = await this.loadCompassMesh(), this.compassMesh.rotateX(-Math.PI / 2), this.compassMesh.rotateZ(e - Math.PI / 2), this.group.add(this.compassMesh));
|
|
172
|
-
const t = (c = (r = this.data) == null ? void 0 : r.entrance) != null ? c : null;
|
|
173
|
-
this._clearEntryDoorIfNeed(), t !== null && (this.entryDoorMesh = await this.loadEntryDoorMesh(), this.roomInfoWrapperInstance = this.loadRoomInfo(), this.roomInfoInstance = D(), this.entryDoorMesh.rotateX(-Math.PI / 2), this.roomInfoWrapperInstance && this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container), this.group.add(this.entryDoorMesh)), this.onFivePanoArrived(this.five.panoIndex || 0), this.five.needsRender = !0;
|
|
174
|
-
}
|
|
175
|
-
async loadCompassMesh() {
|
|
176
|
-
const e = this.state.config.compassImageUrl, t = await u(e), s = new n.CircleGeometry(0.7, 32), o = new n.MeshBasicMaterial({
|
|
177
|
-
map: t,
|
|
178
|
-
transparent: !0,
|
|
179
|
-
opacity: 0,
|
|
180
|
-
depthTest: !1
|
|
181
|
-
}), r = new n.Mesh(s, o);
|
|
182
|
-
return r.name = "pano-compass-mesh", r;
|
|
183
|
-
}
|
|
184
|
-
async loadEntryDoorMesh() {
|
|
185
|
-
const e = this.state.config.entryDoorImageUrl, t = await u(e), s = new n.PlaneGeometry(0.2, 0.16), o = new n.MeshBasicMaterial({
|
|
186
|
-
map: t,
|
|
187
|
-
transparent: !0,
|
|
188
|
-
opacity: 0.8,
|
|
189
|
-
depthTest: !1
|
|
190
|
-
}), r = new n.Mesh(s, o);
|
|
191
|
-
return r.name = "pano-compass-entry-door", r;
|
|
192
|
-
}
|
|
193
|
-
loadRoomInfo() {
|
|
194
|
-
const e = [
|
|
195
|
-
new n.Vector3(-0.7, 0, -0.7),
|
|
196
|
-
new n.Vector3(0.7, 0, -0.7),
|
|
197
|
-
new n.Vector3(0.7, 0, 0.7),
|
|
198
|
-
new n.Vector3(-0.7, 0, 0.7)
|
|
199
|
-
];
|
|
200
|
-
return w(this.five).create3DDomContainer(e);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
export {
|
|
204
|
-
z as PanoCompassController
|
|
205
|
-
};
|
|
1
|
+
"use strict";var D=Object.defineProperty;var y=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;var v=(i,n,e)=>n in i?D(i,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[n]=e,m=(i,n)=>{for(var e in n||(n={}))P.call(n,e)&&v(i,e,n[e]);if(y)for(var e of y(n))_.call(n,e)&&v(i,e,n[e]);return i};var r=(i,n,e)=>(v(i,typeof n!="symbol"?n+"":n,e),e);var f=(i,n,e)=>new Promise((t,s)=>{var o=c=>{try{l(e.next(c))}catch(p){s(p)}},a=c=>{try{l(e.throw(c))}catch(p){s(p)}},l=c=>c.done?t(c.value):Promise.resolve(c.value).then(o,a);l((e=e.apply(i,n)).next())});const w=require("three"),C=require("@realsee/five"),S=require("../base/BasePluginWithData.js"),A=require("./getRoomInfoInstance.js"),M=require("../shared-utils/three/loadTexture.js"),F=require("../CSS3DRenderPlugin/index.js"),T=require("../shared-utils/animationFrame/BetterTween.js");function W(i){if(i&&i.__esModule)return i;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const e in i)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(n,e,t.get?t:{enumerable:!0,get:()=>i[e]})}}return n.default=i,Object.freeze(n)}const h=W(w),u={userAction:!0};class R extends S.Controller{constructor(e,t){super(e);r(this,"state",{visible:!0,enabled:!0,config:{compassImageUrl:"//vrlab-image4.ljcdn.com/release/web/v3/north-point-circle.96498e69.png",entryDoorImageUrl:"//vrlab-image4.ljcdn.com/release/web/enterDoor.831b8208.png"}});r(this,"data");r(this,"group",new h.Group);r(this,"roomInfoInstance");r(this,"roomInfoWrapperInstance");r(this,"compassMeshTween");r(this,"compassMesh");r(this,"entryDoorMesh");r(this,"dispose",()=>{var e,t,s,o;this.five.scene.remove(this.group),this.group.remove(...this.group.children),(t=(e=this.compassMesh)==null?void 0:e.material.map)==null||t.dispose(),(o=(s=this.entryDoorMesh)==null?void 0:s.material.map)==null||o.dispose(),this.five.off("dispose",this.dispose),this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});r(this,"_addEventListener",()=>{this.five.on("panoArrived",this.onFivePanoArrived),this.five.on("panoWillArrive",this.onFivePanoWillArrive),this.five.on("modeChange",this.onFiveModeChange),this.five.on("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});r(this,"_removeEventListener",()=>{this.five.off("panoArrived",this.onFivePanoArrived),this.five.off("panoWillArrive",this.onFivePanoWillArrive),this.five.off("modeChange",this.onFiveModeChange),this.five.off("cameraDirectionUpdate",this.onFiveCameraDirectionUpdate)});r(this,"_enable",()=>{this.five.scene.add(this.group),this.init(),this.onFivePanoArrived(this.five.panoIndex||0),this._addEventListener()});r(this,"_disable",()=>{this._clearCompassIfNeed(),this._clearEntryDoorIfNeed(),this.five.scene.remove(this.group),this._removeEventListener()});r(this,"_toggleVisible",()=>{this.group.visible=this.state.visible,this.five.needsRender=!0});r(this,"_clearCompassIfNeed",()=>{var e;this.compassMesh&&(this.group.remove(this.compassMesh),(e=this.compassMesh.material.map)==null||e.dispose(),this.compassMesh=null)});r(this,"_clearEntryDoorIfNeed",()=>{var e;this.entryDoorMesh&&(this.group.remove(this.entryDoorMesh),(e=this.entryDoorMesh.material.map)==null||e.dispose(),this.entryDoorMesh=null),this.roomInfoInstance&&(this.roomInfoInstance.dispose(),this.roomInfoInstance=null),this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.dispose(),this.roomInfoWrapperInstance=null)});r(this,"onFivePanoWillArrive",e=>{var t,s;e!==this.five.panoIndex&&((t=this.compassMeshTween)==null||t.dispose(),(s=this.compassMesh)==null||s.material.setValues({opacity:0}))});r(this,"onFivePanoArrived",e=>{var s,o,a,l,c,p,I;const t=(a=(o=(s=this.five.work)==null?void 0:s.observers)==null?void 0:o[e])==null?void 0:a.standingPosition;if(this.compassMesh&&(this.compassMesh.position.copy(t.clone().setY(t.y+.01)),this.compassMesh.material.opacity===0&&((l=this.compassMeshTween)==null||l.dispose(),this.compassMeshTween=T.tweenProgress(1e3).onUpdate(({progress:g})=>{var d;(d=this.compassMesh)==null||d.material.setValues({opacity:g}),this.five.needsRender=!0}).play())),this.entryDoorMesh){const d=new h.Vector3(this.data.entrance.position.x,this.data.entrance.position.y,this.data.entrance.position.z).clone().setY(t.y).sub(t).normalize(),b=t.clone().add(d.clone().multiplyScalar(.7)).setY(t.y+.01);this.entryDoorMesh.rotation.z=new h.Vector3(0,0,-1).angleTo(d),this.entryDoorMesh.position.copy(b),((c=this.data)==null?void 0:c.room_observers[e].room.type)===1?(p=this.entryDoorMesh)==null||p.material.setValues({opacity:1}):(I=this.entryDoorMesh)==null||I.material.setValues({opacity:0})}this.roomInfoInstance&&this.roomInfoWrapperInstance&&(this.roomInfoWrapperInstance.css3DObject.position.copy(t.clone().setY(t.y+.01)),this.roomInfoInstance.setRoom(this.data.room_observers[e].room)),this.five.needsRender=!0});r(this,"onFiveCameraDirectionUpdate",({longitude:e,latitude:t})=>{var s,o;!this.roomInfoWrapperInstance||(this.roomInfoWrapperInstance.css3DObject.rotation.z=e,t>.66&&this.five.getCurrentState().mode==="Panorama"?(s=this.roomInfoInstance)==null||s.show():(o=this.roomInfoInstance)==null||o.hide())});r(this,"onFiveModeChange",(e,t,s,o,a)=>{e!==t&&this.setState({visible:e===C.Five.Mode.Panorama},{userAction:a})});this.five.scene.add(this.group),this.five.once("dispose",this.dispose),this.setState({visible:!0,enabled:!0,config:m(m({},this.state.config),t||{})})}enable(e=u){this.setState({enabled:!0},e)}disable(e=u){this.setState({enabled:!1},e)}show(e=u){if(!!this.state.enabled)return this.setState({visible:!0},e),Promise.resolve()}hide(e=u){if(!!this.state.enabled)return this.setState({visible:!1},e),Promise.resolve()}setState(e,t={userAction:!0}){var o,a;const s=JSON.parse(JSON.stringify(this.state));this.state={visible:(o=e.visible)!=null?o:s.visible,enabled:(a=e.enabled)!=null?a:s.enabled,config:m(m({},s.config),e.config||{})},this.hooks.emit("stateChange",{state:this.state,prevState:s,userAction:t.userAction}),e.enabled===!0&&(this._enable(),this.hooks.emit("enable",t)),e.enabled===!1&&(this._disable(),this.hooks.emit("disable",t)),e.visible===!1&&(this._toggleVisible(),this.hooks.emit("hide",t)),e.visible===!0&&(this._toggleVisible(),this.hooks.emit("show",t)),e.config&&this.init()}load(e,t,s=!0){return f(this,null,function*(){const o=yield this.formatData(e);JSON.stringify(this.data)!==JSON.stringify(o)&&(this.hooks.emit("dataChange",o,this.data),this.data=m({},o),this.init(),t&&this.setState(t,{userAction:s}),this.hooks.emit("dataLoaded",this.data))})}formatData(e){return e.version&&e.data?Promise.resolve(e.data):Promise.resolve(e)}init(){return f(this,null,function*(){var s,o,a,l;const e=(o=(s=this.data)==null?void 0:s.north_rad)!=null?o:null;this._clearCompassIfNeed(),e!==null&&(this.compassMesh=yield this.loadCompassMesh(),this.compassMesh.rotateX(-Math.PI/2),this.compassMesh.rotateZ(e-Math.PI/2),this.group.add(this.compassMesh));const t=(l=(a=this.data)==null?void 0:a.entrance)!=null?l:null;this._clearEntryDoorIfNeed(),t!==null&&(this.entryDoorMesh=yield this.loadEntryDoorMesh(),this.roomInfoWrapperInstance=this.loadRoomInfo(),this.roomInfoInstance=A.getRoomInfoInstance(),this.entryDoorMesh.rotateX(-Math.PI/2),this.roomInfoWrapperInstance&&this.roomInfoInstance.appendTo(this.roomInfoWrapperInstance.container),this.group.add(this.entryDoorMesh)),this.onFivePanoArrived(this.five.panoIndex||0),this.five.needsRender=!0})}loadCompassMesh(){return f(this,null,function*(){const e=this.state.config.compassImageUrl,t=yield M.loadTexture(e),s=new h.CircleGeometry(.7,32),o=new h.MeshBasicMaterial({map:t,transparent:!0,opacity:0,depthTest:!1}),a=new h.Mesh(s,o);return a.name="pano-compass-mesh",a})}loadEntryDoorMesh(){return f(this,null,function*(){const e=this.state.config.entryDoorImageUrl,t=yield M.loadTexture(e),s=new h.PlaneGeometry(.2,.16),o=new h.MeshBasicMaterial({map:t,transparent:!0,opacity:.8,depthTest:!1}),a=new h.Mesh(s,o);return a.name="pano-compass-entry-door",a})}loadRoomInfo(){const e=[new h.Vector3(-.7,0,-.7),new h.Vector3(.7,0,-.7),new h.Vector3(.7,0,.7),new h.Vector3(-.7,0,.7)];return F.CSS3DRenderPlugin(this.five).create3DDomContainer(e)}}exports.PanoCompassController=R;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
function i() {
|
|
3
|
-
const e = document.createElement("div"), o = document.createElement("i"), t = document.createElement("span");
|
|
4
|
-
return e.appendChild(o), e.appendChild(t), e.style.position = "relative", e.style.width = "100%", e.style.display = "flex", e.style.flexDirection = "column", e.style.alignItems = "center", e.style.marginTop = `${150 / 16}rem`, e.style.opacity = "0", e.style.transition = "opacity 1000ms linear", o.style.display = "block", o.style.width = `${134 / 16}rem`, o.style.height = `${22 / 16}rem`, o.style.backgroundSize = "100%", o.style.backgroundRepeat = "no-repeat", o.style.backgroundImage = `url(${l})`, t.style.marginTop = `${10 / 16}rem`, t.style.fontSize = `${16 / 16}rem`, t.style.color = "#fff", t.style.opacity = "0.7", t.style.textShadow = "0 2px 16px rgb(22 34 83 / 24%)", t.style.fontWeight = "bold", {
|
|
5
|
-
appendTo(n) {
|
|
6
|
-
n.appendChild(e);
|
|
7
|
-
},
|
|
8
|
-
dispose() {
|
|
9
|
-
e.remove();
|
|
10
|
-
},
|
|
11
|
-
setRoom(n) {
|
|
12
|
-
t.innerHTML = n.name + " " + Math.floor(n.size / 1e6) + "\u33A1";
|
|
13
|
-
},
|
|
14
|
-
show() {
|
|
15
|
-
e.style.opacity = "1";
|
|
16
|
-
},
|
|
17
|
-
hide() {
|
|
18
|
-
e.style.opacity = "0";
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
i as getRoomInfoInstance
|
|
24
|
-
};
|
|
1
|
+
"use strict";const s=require("./Assets/roomInfoIcon.js");function l(){const e=document.createElement("div"),o=document.createElement("i"),t=document.createElement("span");return e.appendChild(o),e.appendChild(t),e.style.position="relative",e.style.width="100%",e.style.display="flex",e.style.flexDirection="column",e.style.alignItems="center",e.style.marginTop=`${150/16}rem`,e.style.opacity="0",e.style.transition="opacity 1000ms linear",o.style.display="block",o.style.width=`${134/16}rem`,o.style.height=`${22/16}rem`,o.style.backgroundSize="100%",o.style.backgroundRepeat="no-repeat",o.style.backgroundImage=`url(${s.roomInfoIcon})`,t.style.marginTop=`${10/16}rem`,t.style.fontSize=`${16/16}rem`,t.style.color="#fff",t.style.opacity="0.7",t.style.textShadow="0 2px 16px rgb(22 34 83 / 24%)",t.style.fontWeight="bold",{appendTo(n){n.appendChild(e)},dispose(){e.remove()},setRoom(n){t.innerHTML=n.name+" "+Math.floor(n.size/1e6)+"\u33A1"},show(){e.style.opacity="1"},hide(){e.style.opacity="0"}}}exports.getRoomInfoInstance=l;
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "three";
|
|
3
|
-
import "@realsee/five";
|
|
4
|
-
import "../base/BasePluginWithData.js";
|
|
5
|
-
import "../base/BasePlugin.js";
|
|
6
|
-
import "../shared-utils/Subscribe.js";
|
|
7
|
-
import "./getRoomInfoInstance.js";
|
|
8
|
-
import "./Assets/roomInfoIcon.js";
|
|
9
|
-
import "../shared-utils/three/loadTexture.js";
|
|
10
|
-
import "../CSS3DRenderPlugin/index.js";
|
|
11
|
-
import "../CSS3DRenderPlugin/Controller.js";
|
|
12
|
-
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
13
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
15
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
16
|
-
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
18
|
-
import "../shared-utils/animationFrame/index.js";
|
|
19
|
-
import "../tween.esm.bad2b2b4.js";
|
|
20
|
-
const j = (o, r) => new t(o, r);
|
|
21
|
-
export {
|
|
22
|
-
j as PanoCompassPlugin,
|
|
23
|
-
j as default
|
|
24
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./Controller.js");require("three");require("@realsee/five");require("../base/BasePluginWithData.js");require("../base/BasePlugin.js");require("../shared-utils/Subscribe.js");require("./getRoomInfoInstance.js");require("./Assets/roomInfoIcon.js");require("../shared-utils/three/loadTexture.js");require("../CSS3DRenderPlugin/index.js");require("../CSS3DRenderPlugin/Controller.js");require("../CSS3DRenderPlugin/CSS3DRender.js");require("three/examples/jsm/renderers/CSS3DRenderer");require("../CSS3DRenderPlugin/utils/evenNumber.js");require("../CSS3DRenderPlugin/utils/positionToVector3.js");require("../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js");require("../CSS3DRenderPlugin/utils/centerPoint.js");require("../shared-utils/animationFrame/BetterTween.js");require("@tweenjs/tween.js");require("../shared-utils/animationFrame/index.js");const e=(r,s)=>new i.PanoCompassController(r,s);exports.PanoCompassPlugin=e;exports.default=e;
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import m from "../shared-utils/createLine/index.js";
|
|
3
|
-
import "@realsee/five/line";
|
|
4
|
-
const O = (e) => {
|
|
5
|
-
const a = {
|
|
6
|
-
intersection: null,
|
|
7
|
-
disposers: []
|
|
8
|
-
}, p = (t) => {
|
|
9
|
-
a.intersection = t;
|
|
10
|
-
}, l = () => {
|
|
11
|
-
a.intersection = null;
|
|
12
|
-
};
|
|
13
|
-
e.on("modelLoaded", () => {
|
|
14
|
-
e.on("intersectionOnModelUpdate", p), e.on("intersectionHidden", l);
|
|
15
|
-
}), e.on("dispose", () => {
|
|
16
|
-
e.off("intersectionOnModelUpdate", p), e.off("intersectionHidden", l);
|
|
17
|
-
});
|
|
18
|
-
const P = (t, c = 2, o = 0.1) => {
|
|
19
|
-
const s = c / 2, n = x(t, o), i = new g();
|
|
20
|
-
i.add(
|
|
21
|
-
m(
|
|
22
|
-
new r(n.x + s, n.y, n.z),
|
|
23
|
-
new r(n.x - s, n.y, n.z),
|
|
24
|
-
new r(1, 0, 0)
|
|
25
|
-
),
|
|
26
|
-
m(
|
|
27
|
-
new r(n.x, n.y + s, n.z),
|
|
28
|
-
new r(n.x, n.y - s, n.z),
|
|
29
|
-
new r(0, 1, 0)
|
|
30
|
-
),
|
|
31
|
-
m(
|
|
32
|
-
new r(n.x, n.y, n.z + s),
|
|
33
|
-
new r(n.x, n.y, n.z - s),
|
|
34
|
-
new r(0, 0, 1)
|
|
35
|
-
)
|
|
36
|
-
), e.scene.add(i), e.needsRender = !0;
|
|
37
|
-
const d = () => {
|
|
38
|
-
e.scene.remove(i);
|
|
39
|
-
};
|
|
40
|
-
return a.disposers.push(d), { clear: d, pointAxesHelperMesh: i };
|
|
41
|
-
}, h = (t, c = 0) => {
|
|
42
|
-
var d, y;
|
|
43
|
-
const o = (d = e == null ? void 0 : e.camera) == null ? void 0 : d.position;
|
|
44
|
-
if (!o)
|
|
45
|
-
return !1;
|
|
46
|
-
const s = t.distanceTo(o), u = t.sub(o).normalize(), n = new C(o, u), i = (y = e.model.intersectRaycaster(n)) == null ? void 0 : y[0];
|
|
47
|
-
return !(i && i.distance + c < s);
|
|
48
|
-
}, z = () => a.intersection, w = () => {
|
|
49
|
-
var t, c;
|
|
50
|
-
(c = (t = a.disposers) == null ? void 0 : t.forEach) == null || c.call(t, (o) => o == null ? void 0 : o()), e.off("intersectionOnModelUpdate", p), e.off("intersectionHidden", l);
|
|
51
|
-
}, H = w, x = (t, c) => {
|
|
52
|
-
const o = t.clone();
|
|
53
|
-
return e.camera.position.clone().sub(o).setLength(c).add(o);
|
|
54
|
-
};
|
|
55
|
-
return { intersection: z, pointAxesHelper: P, movePointTowardsCamera: x, destroy: w, dispose: H, canSeePoint: h };
|
|
56
|
-
};
|
|
57
|
-
export {
|
|
58
|
-
O as PanoCursorRaycasterPlugin,
|
|
59
|
-
O as default
|
|
60
|
-
};
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("three"),y=require("../shared-utils/createLine/index.js");require("@realsee/five/line");const x=n=>{const a={intersection:null,disposers:[]},l=t=>{a.intersection=t},u=()=>{a.intersection=null};n.on("modelLoaded",()=>{n.on("intersectionOnModelUpdate",l),n.on("intersectionHidden",u)}),n.on("dispose",()=>{n.off("intersectionOnModelUpdate",l),n.off("intersectionHidden",u)});const h=(t,c=2,o=.1)=>{const s=c/2,e=m(t,o),i=new r.Group;i.add(y.createLine(new r.Vector3(e.x+s,e.y,e.z),new r.Vector3(e.x-s,e.y,e.z),new r.Vector3(1,0,0)),y.createLine(new r.Vector3(e.x,e.y+s,e.z),new r.Vector3(e.x,e.y-s,e.z),new r.Vector3(0,1,0)),y.createLine(new r.Vector3(e.x,e.y,e.z+s),new r.Vector3(e.x,e.y,e.z-s),new r.Vector3(0,0,1))),n.scene.add(i),n.needsRender=!0;const d=()=>{n.scene.remove(i)};return a.disposers.push(d),{clear:d,pointAxesHelperMesh:i}},V=(t,c=0)=>{var d,w;const o=(d=n==null?void 0:n.camera)==null?void 0:d.position;if(!o)return!1;const s=t.distanceTo(o),p=t.sub(o).normalize(),e=new r.Raycaster(o,p),i=(w=n.model.intersectRaycaster(e))==null?void 0:w[0];return!(i&&i.distance+c<s)},L=()=>a.intersection,P=()=>{var t,c;(c=(t=a.disposers)==null?void 0:t.forEach)==null||c.call(t,o=>o==null?void 0:o()),n.off("intersectionOnModelUpdate",l),n.off("intersectionHidden",u)},g=P,m=(t,c)=>{const o=t.clone();return n.camera.position.clone().sub(o).setLength(c).add(o)};return{intersection:L,pointAxesHelper:h,movePointTowardsCamera:m,destroy:P,dispose:g,canSeePoint:V}};exports.PanoCursorRaycasterPlugin=x;exports.default=x;
|