@realsee/dnalogel 2.1.2-alpha.2 → 2.1.2-alpha.3
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/docs/classes/CruisePluginController.html +4 -4
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/classes/Object3DHelperController.html +4 -4
- package/docs/classes/PaintBrush.html +4 -4
- package/docs/classes/PanoTagPluginController.html +4 -4
- package/docs/classes/Util.BetterTween.html +4 -4
- package/docs/classes/Util.FivePointSelector.html +4 -4
- package/docs/classes/Util.Interval.html +4 -4
- package/docs/classes/Util.Magnifier.html +4 -4
- package/docs/classes/Util.PointDomHelper.html +4 -4
- package/docs/classes/Util.PointHelper.html +4 -4
- package/docs/classes/Util.Rectangle.html +4 -4
- package/docs/enums/CameraMovementEffect.html +4 -4
- package/docs/enums/ContentType.html +4 -4
- package/docs/enums/DIRECTION.html +4 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/DimensionType.html +4 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
- package/docs/enums/LinkType.html +4 -4
- package/docs/enums/PaintBrushTypeEnum.html +4 -4
- package/docs/enums/PointType.html +4 -4
- package/docs/enums/Rotation.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
- package/docs/interfaces/ContentTypeMap.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +4 -4
- package/docs/interfaces/FloorplanEntrance.html +4 -4
- package/docs/interfaces/FloorplanExtraObject.html +4 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
- package/docs/interfaces/FloorplanFloorData.html +4 -4
- package/docs/interfaces/FloorplanImagePosition.html +4 -4
- package/docs/interfaces/FloorplanObserver.html +4 -4
- package/docs/interfaces/FloorplanOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanPosition.html +4 -4
- package/docs/interfaces/FloorplanRoomItem.html +4 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +4 -4
- package/docs/interfaces/FloorplanServerData.html +4 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
- package/docs/interfaces/FloorplanServerEntrance.html +4 -4
- package/docs/interfaces/FloorplanServerFloorData.html +4 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
- package/docs/interfaces/FloorplanServerObserver.html +4 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
- package/docs/interfaces/FloorplanServerPosition.html +4 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/ItemLabelPluginData.html +4 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/LineJson.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
- package/docs/interfaces/ModelViewPluginExportType.html +4 -4
- package/docs/interfaces/Object3DHelperState.html +4 -4
- package/docs/interfaces/OpenParameter.html +4 -4
- package/docs/interfaces/PaintBrushAction.html +4 -4
- package/docs/interfaces/PaintBrushConfigs.html +4 -4
- package/docs/interfaces/PaintBrushState.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
- package/docs/interfaces/PanoRulerProPluginState.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
- package/docs/interfaces/Point.html +4 -4
- package/docs/interfaces/PointJson.html +4 -4
- package/docs/interfaces/Room.html +4 -4
- package/docs/interfaces/RoomInfo.html +4 -4
- package/docs/interfaces/RoomLabel.html +4 -4
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +4 -4
- package/docs/interfaces/TagConfig.html +4 -4
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/Util.MagnifierParameter.html +4 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeyArray.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/VERSION.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/esm/CSS3DRenderPlugin/CSS3DRender.d.ts +167 -0
- package/esm/CSS3DRenderPlugin/CSS3DRender.js +327 -0
- package/esm/CSS3DRenderPlugin/Controller.d.ts +81 -0
- package/esm/CSS3DRenderPlugin/Controller.js +83 -0
- package/esm/CSS3DRenderPlugin/index.d.ts +5 -0
- package/esm/CSS3DRenderPlugin/index.js +14 -0
- package/esm/CSS3DRenderPlugin/typing.d.ts +26 -0
- package/esm/CSS3DRenderPlugin/typing.js +1 -0
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +34 -0
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -0
- package/esm/CSS3DRenderPlugin/utils/centerPoint.d.ts +2 -0
- package/esm/CSS3DRenderPlugin/utils/centerPoint.js +10 -0
- package/esm/CSS3DRenderPlugin/utils/evenNumber.d.ts +3 -0
- package/esm/CSS3DRenderPlugin/utils/evenNumber.js +7 -0
- package/esm/CSS3DRenderPlugin/utils/index.d.ts +4 -0
- package/esm/CSS3DRenderPlugin/utils/index.js +1 -0
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.d.ts +13 -0
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.js +6 -0
- package/esm/CSS3DRenderPlugin/utils/random.d.ts +1 -0
- package/esm/CSS3DRenderPlugin/utils/random.js +1 -0
- package/esm/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
- package/esm/CameraMovementPlugin/CameraMovementPlugin.js +87 -0
- package/esm/CameraMovementPlugin/index.d.ts +5 -0
- package/esm/CameraMovementPlugin/index.js +16 -0
- package/esm/CameraMovementPlugin/typing.d.ts +68 -0
- package/esm/CameraMovementPlugin/typing.js +5 -0
- package/esm/CruisePlugin/Controller.d.ts +172 -0
- package/esm/CruisePlugin/Controller.js +484 -0
- package/esm/CruisePlugin/index.d.ts +6 -0
- package/esm/CruisePlugin/index.js +28 -0
- package/esm/CruisePlugin/typing.d.ts +134 -0
- package/esm/CruisePlugin/utils/coordinatesAngle.d.ts +12 -0
- package/esm/CruisePlugin/utils/coordinatesAngle.js +8 -0
- package/esm/CruisePlugin/utils/coordinatesToVector.d.ts +7 -0
- package/esm/CruisePlugin/utils/coordinatesToVector.js +12 -0
- package/esm/CruisePlugin/utils/formatRad.d.ts +7 -0
- package/esm/CruisePlugin/utils/formatRad.js +7 -0
- package/esm/CruisePlugin/utils/linerValue.d.ts +1 -0
- package/esm/CruisePlugin/utils/linerValue.js +7 -0
- package/esm/CruisePlugin/utils/safeCall.d.ts +1 -0
- package/esm/CruisePlugin/utils/safeCall.js +28 -0
- package/esm/CruisePlugin/utils/sleep.d.ts +1 -0
- package/esm/CruisePlugin/utils/sleep.js +10 -0
- package/esm/CruisePlugin/utils/vectorToCoordinates.d.ts +7 -0
- package/esm/CruisePlugin/utils/vectorToCoordinates.js +10 -0
- package/esm/GuideLinePlugin/Controller.d.ts +51 -0
- package/esm/GuideLinePlugin/Controller.js +143 -0
- package/esm/GuideLinePlugin/index.d.ts +5 -0
- package/esm/GuideLinePlugin/index.js +16 -0
- package/esm/GuideLinePlugin/typing.d.ts +34 -0
- package/esm/GuideLinePlugin/utils/getArrowMaterial.d.ts +4 -0
- package/esm/GuideLinePlugin/utils/getArrowMaterial.js +13 -0
- package/esm/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/esm/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/esm/GuideLinePlugin/utils/polyline-normals.d.ts +3 -0
- package/esm/ItemLabelPlugin/ItemLabelComponent.js +271 -0
- package/esm/ItemLabelPlugin/ItemLabelItem.js +134 -0
- package/esm/ItemLabelPlugin/Plugin.d.ts +4 -0
- package/esm/ItemLabelPlugin/Plugin.js +81 -0
- package/esm/ItemLabelPlugin/events.type.d.ts +9 -0
- package/esm/ItemLabelPlugin/index.d.ts +9 -0
- package/esm/ItemLabelPlugin/index.js +26 -0
- package/esm/ItemLabelPlugin/typings.d.ts +65 -0
- package/esm/ItemLabelPlugin/typings.js +4 -0
- package/esm/ItemLabelPlugin/utils/getLabelTransform.d.ts +1 -0
- package/esm/ItemLabelPlugin/utils/getLabelTransform.js +4 -0
- package/esm/ItemLabelPlugin/utils/getStrokeLength.d.ts +5 -0
- package/esm/ItemLabelPlugin/utils/getStrokeLength.js +16 -0
- package/esm/ItemLabelPlugin/utils/isImpacted.d.ts +8 -0
- package/esm/ItemLabelPlugin/utils/isImpacted.js +10 -0
- package/esm/ItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ItemLabelPlugin/utils/parseData.js +21 -0
- package/esm/ItemLabelPlugin/utils/transform2RenderData.d.ts +3 -0
- package/esm/ItemLabelPlugin/utils/transform2RenderData.js +21 -0
- package/esm/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
- package/esm/ModelChassisCompassPlugin/Plugin.js +70 -0
- package/esm/ModelChassisCompassPlugin/index.d.ts +4 -0
- package/esm/ModelChassisCompassPlugin/index.js +10 -0
- package/esm/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
- package/esm/ModelEntryDoorGuidePlugin/Plugin.js +77 -0
- package/esm/ModelEntryDoorGuidePlugin/index.d.ts +4 -0
- package/esm/ModelEntryDoorGuidePlugin/index.js +11 -0
- package/esm/ModelItemLabelPlugin/ItemLabelComponent.js +212 -0
- package/esm/ModelItemLabelPlugin/ItemLabelItem.js +43 -0
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.js +79 -0
- package/esm/ModelItemLabelPlugin/events.type.d.ts +9 -0
- package/esm/ModelItemLabelPlugin/events.type.js +1 -0
- package/esm/ModelItemLabelPlugin/index.d.ts +9 -0
- package/esm/ModelItemLabelPlugin/index.js +22 -0
- package/esm/ModelItemLabelPlugin/typings.d.ts +56 -0
- package/esm/ModelItemLabelPlugin/typings.js +4 -0
- package/esm/ModelItemLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ModelItemLabelPlugin/utils/parseData.js +19 -0
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +1 -0
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -0
- package/esm/ModelRoomLabelPlugin/Controller.d.ts +36 -0
- package/esm/ModelRoomLabelPlugin/Controller.js +60 -0
- package/esm/ModelRoomLabelPlugin/RoomLabelItem.js +45 -0
- package/esm/ModelRoomLabelPlugin/RoomLabelItems.js +162 -0
- package/esm/ModelRoomLabelPlugin/index.d.ts +12 -0
- package/esm/ModelRoomLabelPlugin/index.js +17 -0
- package/esm/ModelRoomLabelPlugin/typings.d.ts +35 -0
- package/esm/ModelRoomLabelPlugin/utils/parseData.d.ts +3 -0
- package/esm/ModelRoomLabelPlugin/utils/parseData.js +16 -0
- package/esm/ModelTVVideoPlugin/Plugin.d.ts +4 -0
- package/esm/ModelTVVideoPlugin/Plugin.js +163 -0
- package/esm/ModelTVVideoPlugin/index.d.ts +5 -0
- package/esm/ModelTVVideoPlugin/index.js +19 -0
- package/esm/ModelTVVideoPlugin/typings.d.ts +25 -0
- package/esm/ModelTVVideoPlugin/typings.js +4 -0
- package/esm/ModelTVVideoPlugin/utils/parseData.d.ts +2 -0
- package/esm/ModelTVVideoPlugin/utils/parseData.js +20 -0
- package/esm/ModelViewPlugin/Plugin.d.ts +28 -0
- package/esm/ModelViewPlugin/Plugin.js +106 -0
- package/esm/ModelViewPlugin/index.d.ts +4 -0
- package/esm/ModelViewPlugin/index.js +8 -0
- package/esm/Object3DHelperPlugin/Controller.d.ts +65 -0
- package/esm/Object3DHelperPlugin/Controller.js +145 -0
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.d.ts +19 -0
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.js +31 -0
- package/esm/Object3DHelperPlugin/index.d.ts +6 -0
- package/esm/Object3DHelperPlugin/index.js +42 -0
- package/esm/Object3DHelperPlugin/typings.d.ts +24 -0
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +1 -0
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -0
- package/esm/PanoCompassPlugin/Controller.d.ts +84 -0
- package/esm/PanoCompassPlugin/Controller.js +224 -0
- package/esm/PanoCompassPlugin/getRoomInfoInstance.d.ts +8 -0
- package/esm/PanoCompassPlugin/getRoomInfoInstance.js +24 -0
- package/esm/PanoCompassPlugin/index.d.ts +7 -0
- package/esm/PanoCompassPlugin/index.js +25 -0
- package/esm/PanoCompassPlugin/typings.d.ts +57 -0
- package/esm/PanoCursorRaycasterPlugin/index.d.ts +48 -0
- package/esm/PanoCursorRaycasterPlugin/index.js +60 -0
- package/esm/PanoDoorLabelPlugin/BaseController.d.ts +60 -0
- package/esm/PanoDoorLabelPlugin/BaseController.js +59 -0
- package/esm/PanoDoorLabelPlugin/Controller.d.ts +37 -0
- package/esm/PanoDoorLabelPlugin/Controller.js +219 -0
- package/esm/PanoDoorLabelPlugin/DoorLabelItem.js +65 -0
- package/esm/PanoDoorLabelPlugin/index.d.ts +7 -0
- package/esm/PanoDoorLabelPlugin/index.js +15 -0
- package/esm/PanoDoorLabelPlugin/typings.d.ts +38 -0
- package/esm/PanoDoorLabelPlugin/utils.d.ts +5 -0
- package/esm/PanoDoorLabelPlugin/utils.js +23 -0
- package/esm/PanoMeasurePlugin/Controller/BaseController.d.ts +43 -0
- package/esm/PanoMeasurePlugin/Controller/BaseController.js +53 -0
- package/esm/PanoMeasurePlugin/Controller/EditController.d.ts +48 -0
- package/esm/PanoMeasurePlugin/Controller/EditController.js +102 -0
- package/esm/PanoMeasurePlugin/Controller/MixedController.d.ts +42 -0
- package/esm/PanoMeasurePlugin/Controller/MixedController.js +125 -0
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +12 -0
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -0
- package/esm/PanoMeasurePlugin/Controller/ViewController.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Controller/ViewController.js +90 -0
- package/esm/PanoMeasurePlugin/Controller/WatchController.d.ts +26 -0
- package/esm/PanoMeasurePlugin/Controller/WatchController.js +154 -0
- package/esm/PanoMeasurePlugin/Controller/index.d.ts +73 -0
- package/esm/PanoMeasurePlugin/Controller/index.js +140 -0
- package/esm/PanoMeasurePlugin/Model/index.d.ts +35 -0
- package/esm/PanoMeasurePlugin/Model/index.js +92 -0
- package/esm/PanoMeasurePlugin/Model/line.d.ts +30 -0
- package/esm/PanoMeasurePlugin/Model/line.js +56 -0
- package/esm/PanoMeasurePlugin/Model/point.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Model/point.js +30 -0
- package/esm/PanoMeasurePlugin/Model/polyline.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Model/polyline.js +47 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +14 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +25 -0
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.js +68 -0
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.d.ts +11 -0
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.js +28 -0
- package/esm/PanoMeasurePlugin/Modules/GuideController.d.ts +18 -0
- package/esm/PanoMeasurePlugin/Modules/GuideController.js +41 -0
- package/esm/PanoMeasurePlugin/Modules/Magnifier.d.ts +59 -0
- package/esm/PanoMeasurePlugin/Modules/Magnifier.js +103 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +2 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.js +129 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +15 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +13 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/index.d.ts +20 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/index.js +48 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +4 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +82 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +12 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/style.d.ts +16 -0
- package/esm/PanoMeasurePlugin/Modules/UIController/style.js +62 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +4 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.js +66 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +44 -0
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -0
- package/esm/PanoMeasurePlugin/index.d.ts +10 -0
- package/esm/PanoMeasurePlugin/index.js +61 -0
- package/esm/PanoMeasurePlugin/typings/data.d.ts +37 -0
- package/esm/PanoMeasurePlugin/typings/event.type.d.ts +37 -0
- package/esm/PanoMeasurePlugin/typings/index.d.ts +8 -0
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -0
- package/esm/PanoMeasurePlugin/utils/constants.d.ts +4 -0
- package/esm/PanoMeasurePlugin/utils/constants.js +36 -0
- package/esm/PanoMeasurePlugin/utils/distanceDom.d.ts +28 -0
- package/esm/PanoMeasurePlugin/utils/distanceDom.js +62 -0
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +2 -0
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -0
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.js +15 -0
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +4 -0
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -0
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +10 -0
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -0
- package/esm/PanoMeasurePlugin/utils/ironbox.d.ts +1 -0
- package/esm/PanoMeasurePlugin/utils/ironbox.js +4 -0
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +2 -0
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -0
- package/esm/PanoMeasurePlugin/utils/line.d.ts +17 -0
- package/esm/PanoMeasurePlugin/utils/line.js +17 -0
- package/esm/PanoMeasurePlugin/utils/math.d.ts +17 -0
- package/esm/PanoMeasurePlugin/utils/math.js +12 -0
- package/esm/PanoMeasurePlugin/utils/mouseGroup.d.ts +7 -0
- package/esm/PanoMeasurePlugin/utils/mouseGroup.js +46 -0
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.d.ts +5 -0
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.js +8 -0
- package/esm/PanoRulerPlugin/Plugin.d.ts +34 -0
- package/esm/PanoRulerPlugin/Plugin.js +268 -0
- package/esm/PanoRulerPlugin/index.d.ts +5 -0
- package/esm/PanoRulerPlugin/index.js +11 -0
- package/esm/PanoRulerPlugin/style.d.ts +2 -0
- package/esm/PanoRulerPlugin/style.js +90 -0
- package/esm/PanoRulerPlugin/typings.d.ts +21 -0
- package/esm/PanoRulerProPlugin/Controller.d.ts +15 -0
- package/esm/PanoRulerProPlugin/Controller.js +93 -0
- package/esm/PanoRulerProPlugin/RulerItem.js +128 -0
- package/esm/PanoRulerProPlugin/RulerItems.js +180 -0
- package/esm/PanoRulerProPlugin/index.d.ts +8 -0
- package/esm/PanoRulerProPlugin/index.js +19 -0
- package/esm/PanoRulerProPlugin/typings.d.ts +46 -0
- package/esm/PanoSpatialTagPlugin/Components/origins.js +81 -0
- package/esm/PanoSpatialTagPlugin/Components/tag.js +124 -0
- package/esm/PanoSpatialTagPlugin/Plugin.d.ts +35 -0
- package/esm/PanoSpatialTagPlugin/Plugin.js +246 -0
- package/esm/PanoSpatialTagPlugin/index.d.ts +5 -0
- package/esm/PanoSpatialTagPlugin/index.js +25 -0
- package/esm/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/esm/PanoSpatialTagPlugin/store.js +5 -0
- package/esm/PanoSpatialTagPlugin/style.d.ts +1 -0
- package/esm/PanoSpatialTagPlugin/style.js +11 -0
- package/esm/PanoSpatialTagPlugin/typings.d.ts +40 -0
- package/esm/PanoSpatialTagPlugin/typings.js +1 -0
- package/esm/PanoTagPlugin/Assets/Icon.d.ts +3 -0
- package/esm/PanoTagPlugin/Assets/Icon.js +6 -0
- package/esm/PanoTagPlugin/Components/Common/Arrow.js +103 -0
- package/esm/PanoTagPlugin/Components/Common/Audio.js +166 -0
- package/esm/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -0
- package/esm/PanoTagPlugin/Components/Common/Line/Straight.js +90 -0
- package/esm/PanoTagPlugin/Components/Common/Media.js +393 -0
- package/esm/PanoTagPlugin/Components/Common/MediaItem.js +139 -0
- package/esm/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
- package/esm/PanoTagPlugin/Components/Common/Point/CustomPoint.js +51 -0
- package/esm/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +51 -0
- package/esm/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
- package/esm/PanoTagPlugin/Components/Common/Shadow.js +124 -0
- package/esm/PanoTagPlugin/Components/Common/Text.js +131 -0
- package/esm/PanoTagPlugin/Components/Tag/AudioTag.js +134 -0
- package/esm/PanoTagPlugin/Components/Tag/CustomTag.js +73 -0
- package/esm/PanoTagPlugin/Components/Tag/ImageTextTag.js +192 -0
- package/esm/PanoTagPlugin/Components/Tag/LinkTag.js +126 -0
- package/esm/PanoTagPlugin/Components/Tag/MarketingTag.js +258 -0
- package/esm/PanoTagPlugin/Components/Tag/MediaPlane.js +87 -0
- package/esm/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
- package/esm/PanoTagPlugin/Components/Tag/index.js +290 -0
- package/esm/PanoTagPlugin/Components/TagContainer.js +156 -0
- package/esm/PanoTagPlugin/Components/TagWrapper.js +153 -0
- package/esm/PanoTagPlugin/controller/TagCacheController.d.ts +22 -0
- package/esm/PanoTagPlugin/controller/TagCacheController.js +31 -0
- package/esm/PanoTagPlugin/controller/TagComputer.d.ts +69 -0
- package/esm/PanoTagPlugin/controller/TagComputer.js +264 -0
- package/esm/PanoTagPlugin/controller/index.d.ts +144 -0
- package/esm/PanoTagPlugin/controller/index.js +376 -0
- package/esm/PanoTagPlugin/index.d.ts +8 -0
- package/esm/PanoTagPlugin/index.js +85 -0
- package/esm/PanoTagPlugin/tag.config.d.ts +7 -0
- package/esm/PanoTagPlugin/tag.config.js +43 -0
- package/esm/PanoTagPlugin/typings/controller.d.ts +103 -0
- package/esm/PanoTagPlugin/typings/controller.js +1 -0
- package/esm/PanoTagPlugin/typings/index.d.ts +2 -0
- package/esm/PanoTagPlugin/typings/index.js +1 -0
- package/esm/PanoTagPlugin/typings/tag.d.ts +247 -0
- package/esm/PanoTagPlugin/typings/tag.js +7 -0
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +2 -0
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -0
- package/esm/PanoTagPlugin/utils/addDebugPoints.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/addDebugPoints.js +27 -0
- package/esm/PanoTagPlugin/utils/checkRange.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/checkRange.js +10 -0
- package/esm/PanoTagPlugin/utils/constants.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/constants.js +7 -0
- package/esm/PanoTagPlugin/utils/debounce.d.ts +7 -0
- package/esm/PanoTagPlugin/utils/debounce.js +12 -0
- package/esm/PanoTagPlugin/utils/doUtil.d.ts +1 -0
- package/esm/PanoTagPlugin/utils/doUtil.js +12 -0
- package/esm/PanoTagPlugin/utils/index.d.ts +12 -0
- package/esm/PanoTagPlugin/utils/index.js +1 -0
- package/esm/PanoTagPlugin/utils/noTypecheck.d.ts +1 -0
- package/esm/PanoTagPlugin/utils/noTypecheck.js +4 -0
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.d.ts +2 -0
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.js +13 -0
- package/esm/PanoTagPlugin/utils/planeNormal.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/planeNormal.js +11 -0
- package/esm/PanoTagPlugin/utils/resizeObserver.d.ts +4 -0
- package/esm/PanoTagPlugin/utils/resizeObserver.js +17 -0
- package/esm/PanoTagPlugin/utils/search.d.ts +11 -0
- package/esm/PanoTagPlugin/utils/search.js +15 -0
- package/esm/PanoTagPlugin/utils/tagPosition.d.ts +3 -0
- package/esm/PanoTagPlugin/utils/tagPosition.js +13 -0
- package/esm/PanoTagPlugin/utils/throttle.d.ts +7 -0
- package/esm/PanoTagPlugin/utils/throttle.js +11 -0
- package/esm/base/BasePlugin.d.ts +106 -0
- package/esm/base/BasePlugin.js +18 -0
- package/esm/base/BasePluginWithData.d.ts +34 -0
- package/esm/base/BasePluginWithData.js +6 -0
- package/esm/components/PaintBrush/Controller.d.ts +43 -0
- package/esm/components/PaintBrush/Controller.js +308 -0
- package/esm/components/PaintBrush/Subscribe.d.ts +76 -0
- package/esm/components/PaintBrush/Subscribe.js +47 -0
- package/esm/components/PaintBrush/index.d.ts +27 -0
- package/esm/components/PaintBrush/index.js +52 -0
- package/esm/components/PaintBrush/style.d.ts +2 -0
- package/esm/components/PaintBrush/style.js +104 -0
- package/esm/components/PaintBrush/tween.d.ts +7 -0
- package/esm/components/PaintBrush/tween.js +11 -0
- package/esm/components/PaintBrush/typings.d.ts +58 -0
- package/esm/components/PaintBrush/typings.js +4 -0
- package/esm/components/PaintBrush/utils.d.ts +26 -0
- package/esm/components/PaintBrush/utils.js +45 -0
- package/esm/components/index.d.ts +2 -0
- package/esm/components/index.js +13 -0
- package/esm/env.d.ts +1 -0
- package/esm/floorplan/Assets/camera.d.ts +1 -0
- package/esm/floorplan/Assets/camera.js +4 -0
- package/esm/floorplan/Assets/compass.d.ts +1 -0
- package/esm/floorplan/Assets/compass.js +4 -0
- package/esm/floorplan/Assets/floorplanExtraObject.d.ts +1 -0
- package/esm/floorplan/Assets/floorplanExtraObject.js +4 -0
- package/esm/floorplan/Components/BaseImage.js +103 -0
- package/esm/floorplan/Components/Camera.js +62 -0
- package/esm/floorplan/Components/Compass.js +60 -0
- package/esm/floorplan/Components/CurrentFloor.js +246 -0
- package/esm/floorplan/Components/Main.js +264 -0
- package/esm/floorplan/Components/Normalmage.js +37 -0
- package/esm/floorplan/Components/RoomHighlight/Room.js +61 -0
- package/esm/floorplan/Components/RoomHighlight/RoomHighlight.js +121 -0
- package/esm/floorplan/Components/RoomLabels/RoomLabel.js +153 -0
- package/esm/floorplan/Components/RoomLabels/RoomLabels.js +174 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -0
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -0
- package/esm/floorplan/Components/RuleLabels/RuleItem.js +134 -0
- package/esm/floorplan/Components/RuleLabels/RuleLabels.js +139 -0
- package/esm/floorplan/Components/SvgImage.js +47 -0
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.d.ts +97 -0
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.js +321 -0
- package/esm/floorplan/MapviewFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/MapviewFloorplanPlugin/index.js +50 -0
- package/esm/floorplan/MapviewFloorplanPlugin/typing.d.ts +1 -0
- package/esm/floorplan/ModelFloorplanPlugin/Controller.d.ts +99 -0
- package/esm/floorplan/ModelFloorplanPlugin/Controller.js +316 -0
- package/esm/floorplan/ModelFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/ModelFloorplanPlugin/index.js +50 -0
- package/esm/floorplan/ModelFloorplanPlugin/typing.d.ts +1 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +129 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +183 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +36 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.d.ts +7 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.js +27 -0
- package/esm/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +52 -0
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.d.ts +69 -0
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.js +273 -0
- package/esm/floorplan/TopviewFloorplanPlugin/index.d.ts +7 -0
- package/esm/floorplan/TopviewFloorplanPlugin/index.js +47 -0
- package/esm/floorplan/TopviewFloorplanPlugin/typing.d.ts +11 -0
- package/esm/floorplan/constant.d.ts +5 -0
- package/esm/floorplan/constant.js +4 -0
- package/esm/floorplan/index.d.ts +7 -0
- package/esm/floorplan/index.js +6 -0
- package/esm/floorplan/typings/floorplanData.d.ts +137 -0
- package/esm/floorplan/typings/floorplanData.js +1 -0
- package/esm/floorplan/typings/floorplanServerData.d.ts +144 -0
- package/esm/floorplan/typings/floorplanServerData.js +101 -0
- package/esm/floorplan/typings/index.d.ts +117 -0
- package/esm/floorplan/typings/utility.d.ts +2 -0
- package/esm/floorplan/utils/constant.d.ts +22 -0
- package/esm/floorplan/utils/constant.js +7 -0
- package/esm/floorplan/utils/correctFiveState.d.ts +15 -0
- package/esm/floorplan/utils/correctFiveState.js +54 -0
- package/esm/floorplan/utils/formatData.d.ts +5 -0
- package/esm/floorplan/utils/formatData.js +104 -0
- package/esm/floorplan/utils/formatPosition.d.ts +36 -0
- package/esm/floorplan/utils/formatPosition.js +35 -0
- package/esm/index.d.ts +23 -0
- package/esm/index.js +346 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseController.d.ts +48 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseController.js +151 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +91 -0
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -0
- package/esm/shared-utils/Object3DHelper/Constants/color.d.ts +12 -0
- package/esm/shared-utils/Object3DHelper/Constants/color.js +20 -0
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +6 -0
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -0
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.d.ts +13 -0
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.js +66 -0
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +37 -0
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -0
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.d.ts +22 -0
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.js +134 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +11 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +6 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -0
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +13 -0
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -0
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +17 -0
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -0
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +11 -0
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -0
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +40 -0
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -0
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +55 -0
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -0
- package/esm/shared-utils/Object3DHelper/Helper/index.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/Helper/index.js +3 -0
- package/esm/shared-utils/Object3DHelper/index.d.ts +71 -0
- package/esm/shared-utils/Object3DHelper/index.js +169 -0
- package/esm/shared-utils/Object3DHelper/typings/Direction.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/Hooks.d.ts +45 -0
- package/esm/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/Scissor.d.ts +17 -0
- package/esm/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/esm/shared-utils/Object3DHelper/typings/index.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +14 -0
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -0
- package/esm/shared-utils/Object3DHelper/utils/direction.d.ts +14 -0
- package/esm/shared-utils/Object3DHelper/utils/direction.js +22 -0
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -0
- package/esm/shared-utils/Object3DHelper/utils/getPoint.d.ts +3 -0
- package/esm/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/index.d.ts +8 -0
- package/esm/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +5 -0
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +1 -0
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +34 -0
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -0
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +2 -0
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -0
- package/esm/shared-utils/Subscribe.d.ts +60 -0
- package/esm/shared-utils/Subscribe.js +50 -0
- package/esm/shared-utils/animationFrame/BetterTween.d.ts +11 -0
- package/esm/shared-utils/animationFrame/BetterTween.js +26 -0
- package/esm/shared-utils/animationFrame/calculateProgress.d.ts +8 -0
- package/esm/shared-utils/animationFrame/calculateProgress.js +6 -0
- package/esm/shared-utils/animationFrame/formatRad.d.ts +15 -0
- package/esm/shared-utils/animationFrame/formatRad.js +11 -0
- package/esm/shared-utils/animationFrame/index.d.ts +16 -0
- package/esm/shared-utils/animationFrame/index.js +28 -0
- package/esm/shared-utils/animationFrame/tween.d.ts +75 -0
- package/esm/shared-utils/animationFrame/tween.js +28 -0
- package/esm/shared-utils/changeModelCanvasOpacity.d.ts +2 -0
- package/esm/shared-utils/changeModelCanvasOpacity.js +12 -0
- package/esm/shared-utils/createCanvasTextTexture.d.ts +8 -0
- package/esm/shared-utils/createCanvasTextTexture.js +11 -0
- package/esm/shared-utils/createLine/index.d.ts +3 -0
- package/esm/shared-utils/createLine/index.js +9 -0
- package/esm/shared-utils/debounce.d.ts +6 -0
- package/esm/shared-utils/debounce.js +11 -0
- package/esm/shared-utils/equal.d.ts +11 -0
- package/esm/shared-utils/equal.js +54 -0
- package/esm/shared-utils/filter.d.ts +27 -0
- package/esm/shared-utils/filter.js +10 -0
- package/esm/shared-utils/five/changeMode.d.ts +5 -0
- package/esm/shared-utils/five/changeMode.js +39 -0
- package/esm/shared-utils/getPxmm.d.ts +19 -0
- package/esm/shared-utils/getPxmm.js +20 -0
- package/esm/shared-utils/index.d.ts +4 -0
- package/esm/shared-utils/index.js +35 -0
- package/esm/shared-utils/isNil.d.ts +10 -0
- package/esm/shared-utils/isNil.js +10 -0
- package/esm/shared-utils/isTruelyObject.d.ts +18 -0
- package/esm/shared-utils/isTruelyObject.js +6 -0
- package/esm/shared-utils/math/Interval.d.ts +13 -0
- package/esm/shared-utils/math/Interval.js +23 -0
- package/esm/shared-utils/math/Rectangle.d.ts +27 -0
- package/esm/shared-utils/math/Rectangle.js +23 -0
- package/esm/shared-utils/math/index.d.ts +2 -0
- package/esm/shared-utils/math/index.js +1 -0
- package/esm/shared-utils/math/planimetry.d.ts +116 -0
- package/esm/shared-utils/math/planimetry.js +43 -0
- package/esm/shared-utils/math/rad2Deg.d.ts +1 -0
- package/esm/shared-utils/math/rad2Deg.js +6 -0
- package/esm/shared-utils/nearlyEqual.d.ts +7 -0
- package/esm/shared-utils/nearlyEqual.js +6 -0
- package/esm/shared-utils/nextFrame.d.ts +1 -0
- package/esm/shared-utils/nextFrame.js +6 -0
- package/esm/shared-utils/noop.d.ts +5 -0
- package/esm/shared-utils/noop.js +5 -0
- package/esm/shared-utils/object3d2LocalMatrix.d.ts +12 -0
- package/esm/shared-utils/object3d2LocalMatrix.js +18 -0
- package/esm/shared-utils/removeArrayItem.d.ts +7 -0
- package/esm/shared-utils/removeArrayItem.js +8 -0
- package/esm/shared-utils/tap.d.ts +8 -0
- package/esm/shared-utils/tap.js +6 -0
- package/esm/shared-utils/three/Assets/index.d.ts +3 -0
- package/esm/shared-utils/three/Assets/index.js +4 -0
- package/esm/shared-utils/three/FivePointSelector.d.ts +36 -0
- package/esm/shared-utils/three/FivePointSelector.js +49 -0
- package/esm/shared-utils/three/Magnifier.d.ts +53 -0
- package/esm/shared-utils/three/Magnifier.js +104 -0
- package/esm/shared-utils/three/PointDomHelper.d.ts +18 -0
- package/esm/shared-utils/three/PointDomHelper.js +60 -0
- package/esm/shared-utils/three/PointHelper.d.ts +21 -0
- package/esm/shared-utils/three/PointHelper.js +73 -0
- package/esm/shared-utils/three/getCoords.d.ts +9 -0
- package/esm/shared-utils/three/getCoords.js +13 -0
- package/esm/shared-utils/three/getIntersect.d.ts +6 -0
- package/esm/shared-utils/three/getIntersect.js +8 -0
- package/esm/shared-utils/three/getRaycaster.d.ts +6 -0
- package/esm/shared-utils/three/getRaycaster.js +12 -0
- package/esm/shared-utils/three/index.d.ts +7 -0
- package/esm/shared-utils/three/index.js +6 -0
- package/esm/shared-utils/three/loadTexture.d.ts +2 -0
- package/esm/shared-utils/three/loadTexture.js +28 -0
- package/esm/shared-utils/three/transformPositionToVector3.d.ts +7 -0
- package/esm/shared-utils/three/transformPositionToVector3.js +5 -0
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.d.ts +2 -0
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.js +24 -0
- package/esm/shared-utils/throttle.d.ts +7 -0
- package/esm/shared-utils/throttle.js +11 -0
- package/esm/shared-utils/tinyEJSrender.d.ts +5 -0
- package/esm/shared-utils/tinyEJSrender.js +140 -0
- package/esm/shared-utils/to.d.ts +8 -0
- package/esm/shared-utils/to.js +28 -0
- package/esm/shared-utils/uuid.d.ts +5 -0
- package/esm/shared-utils/uuid.js +9 -0
- package/esm/typings/math.type.d.ts +44 -0
- package/esm/vendor/swiper/components-shared/get-changed-params.js +29 -0
- package/esm/vendor/swiper/components-shared/get-params.js +23 -0
- package/esm/vendor/swiper/components-shared/mount-swiper.js +14 -0
- package/esm/vendor/swiper/components-shared/params-list.js +120 -0
- package/esm/vendor/swiper/components-shared/update-swiper.js +36 -0
- package/esm/vendor/swiper/components-shared/utils.js +32 -0
- package/esm/vendor/swiper/svelte/swiper-slide.js +182 -0
- package/esm/vendor/swiper/svelte/swiper-svelte.js +3 -0
- package/esm/vendor/swiper/svelte/swiper.js +254 -0
- package/package.json +2 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Five } from '@realsee/five';
|
|
2
|
+
import { BaseOptions, Controller, EventMap, State } from '../base/BasePlugin';
|
|
3
|
+
/**
|
|
4
|
+
* pano plugin controller 基类
|
|
5
|
+
* @author kyleju
|
|
6
|
+
*/
|
|
7
|
+
export declare abstract class BasePanoPluginController<T extends State, E extends EventMap<T>> extends Controller<T, E> {
|
|
8
|
+
state: T;
|
|
9
|
+
container: Element;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
constructor(five: Five);
|
|
12
|
+
/**
|
|
13
|
+
* 启用组件
|
|
14
|
+
* @param options
|
|
15
|
+
*/
|
|
16
|
+
enable(options?: BaseOptions): void;
|
|
17
|
+
/**
|
|
18
|
+
* 禁用组件
|
|
19
|
+
* @param options
|
|
20
|
+
*/
|
|
21
|
+
disable(options?: BaseOptions): void;
|
|
22
|
+
/**
|
|
23
|
+
* 显示 UI
|
|
24
|
+
* @param options
|
|
25
|
+
* @returns
|
|
26
|
+
*/
|
|
27
|
+
show(options?: BaseOptions): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* 隐藏 UI
|
|
30
|
+
* @param options
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
hide(options: BaseOptions): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* 销毁对象
|
|
36
|
+
*/
|
|
37
|
+
dispose(): void;
|
|
38
|
+
/**
|
|
39
|
+
* 设置状态
|
|
40
|
+
* @param state @T 状态
|
|
41
|
+
* @param options @BaseOptions 可选配置
|
|
42
|
+
* @returns
|
|
43
|
+
*/
|
|
44
|
+
setState(state: Partial<T>, options?: BaseOptions): void;
|
|
45
|
+
get visible(): boolean;
|
|
46
|
+
appendTo(container: Element): void;
|
|
47
|
+
private updateState;
|
|
48
|
+
/**
|
|
49
|
+
* 组件 渲染
|
|
50
|
+
*/
|
|
51
|
+
abstract render(): any;
|
|
52
|
+
/**
|
|
53
|
+
* State 初始化
|
|
54
|
+
*/
|
|
55
|
+
abstract initState(): T;
|
|
56
|
+
/**
|
|
57
|
+
* State 改变回调
|
|
58
|
+
*/
|
|
59
|
+
abstract stateChangedCallback(prevState: T, options?: BaseOptions): any;
|
|
60
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var d = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var o = Object.getOwnPropertySymbols;
|
|
4
|
+
var p = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var n = (s, t, e) => t in s ? d(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, i = (s, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
p.call(t, e) && n(s, e, t[e]);
|
|
8
|
+
if (o)
|
|
9
|
+
for (var e of o(t))
|
|
10
|
+
v.call(t, e) && n(s, e, t[e]);
|
|
11
|
+
return s;
|
|
12
|
+
}, a = (s, t) => u(s, b(t));
|
|
13
|
+
var r = (s, t, e) => (n(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
import { Five as c } from "@realsee/five";
|
|
15
|
+
import { C as f } from "../base/BasePlugin.js";
|
|
16
|
+
class P extends f {
|
|
17
|
+
constructor(e) {
|
|
18
|
+
super(e);
|
|
19
|
+
r(this, "state");
|
|
20
|
+
r(this, "container");
|
|
21
|
+
r(this, "enabled");
|
|
22
|
+
this.five = e, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
23
|
+
}
|
|
24
|
+
enable(e) {
|
|
25
|
+
this.enabled = !0, this.updateState(a(i({}, e), { userAction: !0 }));
|
|
26
|
+
}
|
|
27
|
+
disable(e) {
|
|
28
|
+
this.enabled = !1, this.updateState(a(i({}, e), { userAction: !0 }));
|
|
29
|
+
}
|
|
30
|
+
show(e) {
|
|
31
|
+
if (!!this.state.enabled)
|
|
32
|
+
return this.setState(a(i({}, this.state), { visible: !0 }), e), Promise.resolve();
|
|
33
|
+
}
|
|
34
|
+
hide(e) {
|
|
35
|
+
if (!!this.state.enabled)
|
|
36
|
+
return this.setState(a(i({}, this.state), { visible: !1 }), e), Promise.resolve();
|
|
37
|
+
}
|
|
38
|
+
dispose() {
|
|
39
|
+
this.container.remove();
|
|
40
|
+
}
|
|
41
|
+
setState(e, h) {
|
|
42
|
+
if (!this.enabled)
|
|
43
|
+
return;
|
|
44
|
+
const l = i({}, this.state);
|
|
45
|
+
this.state = i(i(i({}, this.state), e), h), this.stateChangedCallback(l, h);
|
|
46
|
+
}
|
|
47
|
+
get visible() {
|
|
48
|
+
return this.five.state.mode === c.Mode.Panorama;
|
|
49
|
+
}
|
|
50
|
+
appendTo(e) {
|
|
51
|
+
!this.enabled || (this.container = e, this.render());
|
|
52
|
+
}
|
|
53
|
+
updateState(e) {
|
|
54
|
+
this.setState(a(i({}, this.state), { enabled: this.enabled, visible: this.visible }), e);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
P as B
|
|
59
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import type { BaseOptions, EventMap, State } from '../base/BasePlugin';
|
|
3
|
+
import type { FloorplanServerData } from '../floorplan/typings/floorplanServerData';
|
|
4
|
+
import { BasePanoPluginController } from './BaseController';
|
|
5
|
+
import type { DoorLabelConfig } from './typings';
|
|
6
|
+
/**
|
|
7
|
+
* 分间标签插件
|
|
8
|
+
* @author kyleju
|
|
9
|
+
*/
|
|
10
|
+
export declare class PanoDoorLabelPluginController extends BasePanoPluginController<State, EventMap<State>> {
|
|
11
|
+
private MinVisibledistance;
|
|
12
|
+
private MaxVisibledistance;
|
|
13
|
+
private OffsetHeight;
|
|
14
|
+
private rooms;
|
|
15
|
+
private floorplanServerData;
|
|
16
|
+
/** 标签项 */
|
|
17
|
+
private doorLabelItems;
|
|
18
|
+
/** 每个点位 visible 标签的缓存 */
|
|
19
|
+
private visibleLabelMap;
|
|
20
|
+
/** 标签项Prop值 */
|
|
21
|
+
private labelItems;
|
|
22
|
+
/** 数据 */
|
|
23
|
+
private doorLabels;
|
|
24
|
+
private roomObservers;
|
|
25
|
+
constructor(five: Five);
|
|
26
|
+
loadData: (floorplanServerData: FloorplanServerData, doorLabelConfig?: DoorLabelConfig) => void;
|
|
27
|
+
stateChangedCallback(prevState: State, options?: BaseOptions): void;
|
|
28
|
+
render(): void;
|
|
29
|
+
initState(): State;
|
|
30
|
+
dispose(): void;
|
|
31
|
+
private initRoomObservers;
|
|
32
|
+
private hideAllLabels;
|
|
33
|
+
private fixDoorVisibleAndPosition;
|
|
34
|
+
private fixDoorPosition;
|
|
35
|
+
private onClick;
|
|
36
|
+
private initData;
|
|
37
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
var y = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var O = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var w = Object.getOwnPropertySymbols;
|
|
4
|
+
var _ = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var D = (b, l, e) => l in b ? y(b, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : b[l] = e, L = (b, l) => {
|
|
6
|
+
for (var e in l || (l = {}))
|
|
7
|
+
_.call(l, e) && D(b, e, l[e]);
|
|
8
|
+
if (w)
|
|
9
|
+
for (var e of w(l))
|
|
10
|
+
S.call(l, e) && D(b, e, l[e]);
|
|
11
|
+
return b;
|
|
12
|
+
}, V = (b, l) => E(b, O(l));
|
|
13
|
+
var a = (b, l, e) => (D(b, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
|
+
import { Raycaster as k, Vector3 as P, Quaternion as C, Euler as A } from "three";
|
|
15
|
+
import { B as H } from "./BaseController.js";
|
|
16
|
+
import { D as W } from "./DoorLabelItem.js";
|
|
17
|
+
import { g as z, i as R, a as F, b as $ } from "./utils.js";
|
|
18
|
+
const B = { userAction: !0 };
|
|
19
|
+
class q extends H {
|
|
20
|
+
constructor(e) {
|
|
21
|
+
super(e);
|
|
22
|
+
a(this, "MinVisibledistance", 1.8);
|
|
23
|
+
a(this, "MaxVisibledistance", 5);
|
|
24
|
+
a(this, "OffsetHeight", -1.3);
|
|
25
|
+
a(this, "rooms");
|
|
26
|
+
a(this, "floorplanServerData");
|
|
27
|
+
a(this, "doorLabelItems");
|
|
28
|
+
a(this, "visibleLabelMap", /* @__PURE__ */ new Map());
|
|
29
|
+
a(this, "labelItems", []);
|
|
30
|
+
a(this, "doorLabels");
|
|
31
|
+
a(this, "roomObservers");
|
|
32
|
+
a(this, "loadData", (e, n) => {
|
|
33
|
+
n && (this.MaxVisibledistance = n.MaxVisibledistance, this.MinVisibledistance = n.MinVisibledistance, this.OffsetHeight = n.OffsetHeight), this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((f) => {
|
|
34
|
+
f.$destroy();
|
|
35
|
+
}), this.labelItems = [], this.doorLabels = [], this.doorLabelItems = [], this.floorplanServerData = e, this.five.once("panoArrived", () => {
|
|
36
|
+
console.log("doorplugin", "panoArrived"), this.initData();
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
a(this, "initRoomObservers", () => {
|
|
40
|
+
var h, c;
|
|
41
|
+
const e = this.floorplanServerData.computed_data.floor_datas || [], f = (((c = (h = this.five) == null ? void 0 : h.work) == null ? void 0 : c.observers) || []).map((s) => {
|
|
42
|
+
const o = s.panoIndex, d = s.floorIndex, i = e == null ? void 0 : e.find((t) => t.floor_index === d);
|
|
43
|
+
if (i) {
|
|
44
|
+
const t = i.rooms.find((r) => r.observer_indexs.includes(o));
|
|
45
|
+
if (t)
|
|
46
|
+
return { panoIndex: o, floorIndex: d, name: t.name };
|
|
47
|
+
}
|
|
48
|
+
}).filter(Boolean);
|
|
49
|
+
this.roomObservers = f;
|
|
50
|
+
});
|
|
51
|
+
a(this, "hideAllLabels", () => {
|
|
52
|
+
this.labelItems.forEach((e) => {
|
|
53
|
+
e.visible = !1, e.inSight = !1;
|
|
54
|
+
}), this.render();
|
|
55
|
+
});
|
|
56
|
+
a(this, "fixDoorVisibleAndPosition", () => {
|
|
57
|
+
this.initRoomObservers();
|
|
58
|
+
const { panoIndex: e } = this.five;
|
|
59
|
+
if (!this.visible || this.five.model.empty || e === null || !this.roomObservers.find((s) => s.panoIndex === e))
|
|
60
|
+
return;
|
|
61
|
+
const n = this.roomObservers.find((s) => s.panoIndex === e), h = this.five.work.observers.find((s) => s.panoIndex === e).position.clone(), c = (() => {
|
|
62
|
+
if (this.visibleLabelMap.has(e))
|
|
63
|
+
return this.visibleLabelMap.get(e);
|
|
64
|
+
{
|
|
65
|
+
const s = [];
|
|
66
|
+
return this.doorLabels.forEach((o, d) => {
|
|
67
|
+
if (o.roomName === n.name)
|
|
68
|
+
return;
|
|
69
|
+
const i = o.position.clone(), t = i.distanceTo(h);
|
|
70
|
+
if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
|
|
71
|
+
return;
|
|
72
|
+
const r = new k(), m = i.clone().sub(h).normalize();
|
|
73
|
+
r.set(h, m);
|
|
74
|
+
const [u] = this.five.model.intersectRaycaster(r);
|
|
75
|
+
u && u.distance + 0.1 < t || s.push(d);
|
|
76
|
+
}), this.visibleLabelMap.set(e, s), s;
|
|
77
|
+
}
|
|
78
|
+
})();
|
|
79
|
+
this.labelItems.forEach((s, o) => {
|
|
80
|
+
s.visible = c.includes(o);
|
|
81
|
+
}), this.fixDoorPosition();
|
|
82
|
+
});
|
|
83
|
+
a(this, "fixDoorPosition", () => {
|
|
84
|
+
const { panoIndex: e, camera: n } = this.five;
|
|
85
|
+
if (e === null)
|
|
86
|
+
return;
|
|
87
|
+
if (this.five.currentMode !== "Panorama")
|
|
88
|
+
return this.hideAllLabels();
|
|
89
|
+
const f = this.five.getElement(), h = f.clientWidth, c = f.clientHeight, s = n.getWorldDirection(new P()), o = [], d = [...this.labelItems];
|
|
90
|
+
if (d.forEach((i, t) => {
|
|
91
|
+
if (i.visible) {
|
|
92
|
+
const r = n.position.distanceTo(i.position), m = i.position.clone().add(new P(0, this.OffsetHeight, 0)), g = m.clone().sub(n.position).normalize().angleTo(s), x = m.clone().project(n), p = (x.x + 1) / 2.2 * 100, v = (-x.y + 1) / 2.2 * 100, I = p >= 0 && p <= 100 && v >= 0 && v <= 100 && r > this.MinVisibledistance && r <= this.MaxVisibledistance;
|
|
93
|
+
i.left = p, i.top = v, i.inSight = I && g < Math.PI / 2, i.cameraToward = z(this.five), I ? o.push({ disFromCameraToLabel: r, left: p, top: v, index: t }) : i.transform = "translate(-50%, -50%)";
|
|
94
|
+
} else
|
|
95
|
+
i.inSight = !1;
|
|
96
|
+
}), o.length > 1) {
|
|
97
|
+
let i = 0;
|
|
98
|
+
o.sort((t, r) => r.disFromCameraToLabel - t.disFromCameraToLabel);
|
|
99
|
+
for (let t = 1; t < o.length; t++) {
|
|
100
|
+
const { index: r, left: m, top: u } = o[t - 1], { index: g, left: x, top: p } = o[t], v = this.container.children[r], I = this.container.children[g];
|
|
101
|
+
if (!v || !I)
|
|
102
|
+
return;
|
|
103
|
+
const M = {
|
|
104
|
+
left: h * m / 100,
|
|
105
|
+
top: c * u / 100,
|
|
106
|
+
width: v.children[0].clientWidth,
|
|
107
|
+
height: v.children[0].clientHeight
|
|
108
|
+
}, T = {
|
|
109
|
+
left: h * x / 100,
|
|
110
|
+
top: c * p / 100,
|
|
111
|
+
width: I.children[0].clientWidth,
|
|
112
|
+
height: I.children[0].clientHeight
|
|
113
|
+
};
|
|
114
|
+
R(M, T) && (i++, d[r].transform = `translate(-50%, ${(i - 1) * 100 - 50}%)`, d[g].transform = `translate(-50%, ${i * 100 - 50}%)`);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
this.labelItems = d, this.render();
|
|
118
|
+
});
|
|
119
|
+
a(this, "onClick", (e, n) => {
|
|
120
|
+
if (!this.roomObservers)
|
|
121
|
+
return;
|
|
122
|
+
const { work: f } = this.five;
|
|
123
|
+
let h, c, s = 1 / 0;
|
|
124
|
+
for (let o = 0; o < f.observers.length; o++) {
|
|
125
|
+
if (this.roomObservers[o].name !== e)
|
|
126
|
+
continue;
|
|
127
|
+
const i = f.observers[o].standingPosition, t = n.distanceTo(i);
|
|
128
|
+
t < s && (h = o, c = i.clone().sub(n).normalize(), s = t);
|
|
129
|
+
}
|
|
130
|
+
if (c !== null && h !== null) {
|
|
131
|
+
const o = {};
|
|
132
|
+
if (s > 0) {
|
|
133
|
+
const i = new P(0, 0, -1), t = c.clone(), r = new C();
|
|
134
|
+
r.setFromUnitVectors(i, t);
|
|
135
|
+
const m = new A();
|
|
136
|
+
m.setFromQuaternion(r, "YXZ"), o.longitude = m.y;
|
|
137
|
+
}
|
|
138
|
+
this.five.emit("wantsToMoveToPano", h, {}, !0) || this.five.moveToPano(h, { longitude: o.longitude });
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
a(this, "initData", () => {
|
|
142
|
+
var h;
|
|
143
|
+
this.doorLabels = [];
|
|
144
|
+
const e = this.five.panoIndex, n = this.floorplanServerData.computed_data.observers[e].floor_index, f = n !== void 0 && ((h = this.floorplanServerData.computed_data.floor_datas[n]) == null ? void 0 : h.rooms);
|
|
145
|
+
this.rooms = f, this.rooms && this.rooms.length > 0 && this.rooms.forEach((c) => {
|
|
146
|
+
var d;
|
|
147
|
+
const s = (d = this.floorplanServerData.computed_data.doors) == null ? void 0 : d.filter((i) => !!(i && i.name === c.name)), o = this.five.work.observers.filter((i, t) => !!c.observer_indexs.find((r) => r === t));
|
|
148
|
+
s && s.forEach((i) => {
|
|
149
|
+
const t = i.position;
|
|
150
|
+
let r = 1 / 0, m;
|
|
151
|
+
o.forEach((g) => {
|
|
152
|
+
const x = g.standingPosition, p = {
|
|
153
|
+
x: x.x,
|
|
154
|
+
y: x.y,
|
|
155
|
+
z: x.z
|
|
156
|
+
}, v = F(t, p);
|
|
157
|
+
v < r && (r = v, m = p);
|
|
158
|
+
}), m && (t.y = m.y + 0.01);
|
|
159
|
+
const u = new P(t.x, t.y, t.z);
|
|
160
|
+
u.add(new P(-0.2, 1.8, 0).applyEuler(new A(0, i.rad, 0))), this.doorLabels.push({
|
|
161
|
+
roomName: c.name,
|
|
162
|
+
name: i.name,
|
|
163
|
+
position: u,
|
|
164
|
+
toward: $(i.rad)
|
|
165
|
+
});
|
|
166
|
+
});
|
|
167
|
+
}), this.labelItems = this.doorLabels.map((c) => V(L({}, c), {
|
|
168
|
+
left: 0,
|
|
169
|
+
top: 0,
|
|
170
|
+
visible: !1,
|
|
171
|
+
inSight: !1,
|
|
172
|
+
transform: "",
|
|
173
|
+
cameraToward: ""
|
|
174
|
+
})), console.log("doorplugin", "labelItems", this.labelItems), this.five.on("wantsToMoveToPano", this.hideAllLabels), this.five.on("modelLoaded", this.fixDoorVisibleAndPosition), this.five.on("panoArrived", this.fixDoorVisibleAndPosition), this.five.on("initAnimationEnded", this.fixDoorPosition), this.five.on("cameraUpdate", this.fixDoorPosition), this.five.on("mouseWheel", this.fixDoorPosition), this.five.on("pinchGesture", this.fixDoorPosition), this.fixDoorVisibleAndPosition();
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
stateChangedCallback(e, n) {
|
|
178
|
+
if (this.hooks.hasListener("stateChange")) {
|
|
179
|
+
const f = {
|
|
180
|
+
state: this.state,
|
|
181
|
+
prevState: e,
|
|
182
|
+
userAction: n ? n.userAction : B.userAction
|
|
183
|
+
};
|
|
184
|
+
this.hooks.emit("stateChange", f);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
render() {
|
|
188
|
+
if (!this.enabled) {
|
|
189
|
+
this.doorLabelItems && this.doorLabelItems.length > 0 && this.doorLabelItems.forEach((e) => {
|
|
190
|
+
e == null || e.$destroy();
|
|
191
|
+
}), this.doorLabels = void 0;
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
this.doorLabelItems && this.doorLabelItems.forEach((e) => {
|
|
195
|
+
e.$destroy();
|
|
196
|
+
}), this.doorLabelItems = [], this.labelItems.forEach((e) => {
|
|
197
|
+
this.doorLabelItems.push(
|
|
198
|
+
new W({
|
|
199
|
+
target: this.container,
|
|
200
|
+
props: {
|
|
201
|
+
props: e,
|
|
202
|
+
onClick: () => {
|
|
203
|
+
this.onClick(e.name, e.position);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
})
|
|
207
|
+
);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
initState() {
|
|
211
|
+
return { enabled: !0, visible: !0 };
|
|
212
|
+
}
|
|
213
|
+
dispose() {
|
|
214
|
+
this.five && (this.five.off("wantsToMoveToPano", this.hideAllLabels), this.five.off("modelLoaded", this.fixDoorVisibleAndPosition), this.five.off("panoArrived", this.fixDoorVisibleAndPosition), this.five.off("initAnimationEnded", this.fixDoorPosition), this.five.off("cameraUpdate", this.fixDoorPosition), this.five.off("mouseWheel", this.fixDoorPosition), this.five.off("pinchGesture", this.fixDoorPosition), super.dispose());
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
export {
|
|
218
|
+
q as P
|
|
219
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { SvelteComponent as k, init as _, safe_not_equal as C, append_styles as I, element as d, space as j, attr as p, null_to_empty as v, insert as B, append as b, listen as x, noop as f, detach as H, binding_callbacks as S } from "svelte/internal";
|
|
2
|
+
import y from "classnames";
|
|
3
|
+
function W(e) {
|
|
4
|
+
I(e, "svelte-wpy7pz", '.plugin-DoorLabelPlugin-item.svelte-wpy7pz.svelte-wpy7pz{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;transition:opacity 0.3s ease}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz{position:absolute;top:50%;left:50%;border-radius:0.125rem;background:rgba(0, 0, 0, 0.35);line-height:0.75rem;padding:0.375rem;white-space:nowrap;font-size:0.75rem;font-style:normal;color:white;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform ease 1s, background ease 0.3s, color ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz::after{content:"";display:block;position:absolute;top:-0.0625rem;left:-0.0625rem;bottom:-0.0625rem;right:-0.0625rem;border-radius:0.125rem;border:0.0625rem solid rgba(0, 0, 0, 0);-o-border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;border-image:url("//vrlab-image4.ljcdn.com/release/web/highlightCarouseal-border-image.14b51834.png") 4;transition:opacity ease 0.3s}.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(255, 255, 255, 0.5)}.plugin-DoorLabelPlugin-icon.svelte-wpy7pz.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/DoorLabel-icon.de1304ae.svg") no-repeat;background-size:100%;display:inline-block;width:0.625rem;height:0.625rem;margin-left:0.25rem;transform-origin:center}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=forward].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=right].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].back.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=left].forward.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].right.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(90deg)}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-txt.svelte-wpy7pz{order:1}.plugin-DoorLabelPlugin-cnt[data-camera-toward=back].left.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{transform:rotate(-90deg);margin-left:0;margin-right:0.25rem;order:0}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz{color:#f9eac1}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz .plugin-DoorLabelPlugin-icon.svelte-wpy7pz{background:url("//vrlab-image4.ljcdn.com/release/web/arrow.6e8ec00e.svg") no-repeat}.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:active,.plugin-DoorLabelPlugin-cnt--customBrand.svelte-wpy7pz.svelte-wpy7pz:focus{background:rgba(0, 0, 0, 0.5);color:rgba(249, 234, 193, 0.5)}');
|
|
5
|
+
}
|
|
6
|
+
function q(e) {
|
|
7
|
+
let l, t, a, s, o, n, i, c;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
l = d("div"), t = d("div"), a = d("span"), a.textContent = `${e[8]}`, s = j(), o = d("i"), p(a, "class", "plugin-DoorLabelPlugin-txt svelte-wpy7pz"), p(o, "class", "plugin-DoorLabelPlugin-icon svelte-wpy7pz"), p(t, "class", n = v(y("plugin-DoorLabelPlugin-cnt", e[0].toward)) + " svelte-wpy7pz"), p(t, "style", `transform: ${e[6] || "initial"};pointer-events: ${e[5] ? "auto" : "none"};opacity: ${e[5] ? 1 : 0}`), p(t, "data-camera-toward", e[7]), p(l, "style", `left: ${e[3] || 0}%;top: ${e[4] || 0}%;opacity: ${e[5] ? 1 : 0}`), p(l, "class", "plugin-DoorLabelPlugin-item svelte-wpy7pz");
|
|
11
|
+
},
|
|
12
|
+
m(g, u) {
|
|
13
|
+
B(g, l, u), b(l, t), b(t, a), b(t, s), b(t, o), e[10](l), i || (c = x(t, "click", e[9]), i = !0);
|
|
14
|
+
},
|
|
15
|
+
p(g, [u]) {
|
|
16
|
+
u & 1 && n !== (n = v(y("plugin-DoorLabelPlugin-cnt", g[0].toward)) + " svelte-wpy7pz") && p(t, "class", n);
|
|
17
|
+
},
|
|
18
|
+
i: f,
|
|
19
|
+
o: f,
|
|
20
|
+
d(g) {
|
|
21
|
+
g && H(l), e[10](null), i = !1, c();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function E(e, l, t) {
|
|
26
|
+
let { props: a } = l, { onClick: s } = l, o, { left: n, top: i, inSight: c, transform: g, panoIndex: u, cameraToward: z, name: P } = a, m = 0;
|
|
27
|
+
const D = () => {
|
|
28
|
+
if (!n || !i || !c || !o)
|
|
29
|
+
return;
|
|
30
|
+
const r = o.current.clientWidth / window.innerWidth * 100, w = o.current.clientHeight / window.innerHeight * 100;
|
|
31
|
+
if (n <= r / 2 || n >= 100 - r / 2 || i <= w / 2 || i >= 100 - w / 2)
|
|
32
|
+
return;
|
|
33
|
+
u !== m && (console.log("panoDoorLabelPlugin", u, "\u89E6\u53D1\u57CB\u70B9"), m = u);
|
|
34
|
+
}, L = (r) => {
|
|
35
|
+
s && s();
|
|
36
|
+
};
|
|
37
|
+
function h(r) {
|
|
38
|
+
S[r ? "unshift" : "push"](() => {
|
|
39
|
+
o = r, t(2, o);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
return e.$$set = (r) => {
|
|
43
|
+
"props" in r && t(0, a = r.props), "onClick" in r && t(1, s = r.onClick);
|
|
44
|
+
}, D(), [
|
|
45
|
+
a,
|
|
46
|
+
s,
|
|
47
|
+
o,
|
|
48
|
+
n,
|
|
49
|
+
i,
|
|
50
|
+
c,
|
|
51
|
+
g,
|
|
52
|
+
z,
|
|
53
|
+
P,
|
|
54
|
+
L,
|
|
55
|
+
h
|
|
56
|
+
];
|
|
57
|
+
}
|
|
58
|
+
class A extends k {
|
|
59
|
+
constructor(l) {
|
|
60
|
+
super(), _(this, l, E, q, C, { props: 0, onClick: 1 }, W);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
A as D
|
|
65
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { FivePlugin } from '@realsee/five';
|
|
2
|
+
import type { FloorplanServerData } from '../floorplan';
|
|
3
|
+
import type { PanoDoorLabelPluginController } from './Controller';
|
|
4
|
+
export type { FloorplanServerData, FloorplanServerRoomItem, } from '../floorplan/typings/floorplanServerData';
|
|
5
|
+
declare const PanoDoorLabelPlugin: FivePlugin<FloorplanServerData, PanoDoorLabelPluginController>;
|
|
6
|
+
export { PanoDoorLabelPlugin };
|
|
7
|
+
export default PanoDoorLabelPlugin;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { P as r } from "./Controller.js";
|
|
2
|
+
import "three";
|
|
3
|
+
import "./BaseController.js";
|
|
4
|
+
import "@realsee/five";
|
|
5
|
+
import "../base/BasePlugin.js";
|
|
6
|
+
import "../shared-utils/Subscribe.js";
|
|
7
|
+
import "./DoorLabelItem.js";
|
|
8
|
+
import "svelte/internal";
|
|
9
|
+
import "classnames";
|
|
10
|
+
import "./utils.js";
|
|
11
|
+
const s = (o) => new r(o);
|
|
12
|
+
export {
|
|
13
|
+
s as PanoDoorLabelPlugin,
|
|
14
|
+
s as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type * as THREE from 'three';
|
|
2
|
+
export interface DoorLabel {
|
|
3
|
+
/** 观察点的房间 */
|
|
4
|
+
roomName: string;
|
|
5
|
+
/** 标签展示的房间名 */
|
|
6
|
+
name: string;
|
|
7
|
+
/** 标签的三维坐标位置 */
|
|
8
|
+
position: THREE.Vector3;
|
|
9
|
+
/** 标签的朝向 */
|
|
10
|
+
toward: '' | 'left' | 'right' | 'back' | 'forward';
|
|
11
|
+
[props: string]: any;
|
|
12
|
+
}
|
|
13
|
+
export interface LabelItemProp extends DoorLabel {
|
|
14
|
+
/** css left */
|
|
15
|
+
left: number;
|
|
16
|
+
/** css top */
|
|
17
|
+
top: number;
|
|
18
|
+
/** css transform */
|
|
19
|
+
transform: string;
|
|
20
|
+
/** 当前点位有哪些标签可以展示 */
|
|
21
|
+
visible: boolean;
|
|
22
|
+
/** 是否能够展示在用户视线内(inSight 是 visible 的一个子集,当切换户型图模式或是有模型遮挡时,inSight 为 false) */
|
|
23
|
+
inSight: boolean;
|
|
24
|
+
/** icon 朝向 */
|
|
25
|
+
cameraToward: '' | 'left' | 'right' | 'back' | 'forward';
|
|
26
|
+
}
|
|
27
|
+
export interface NeverOverlapLabel {
|
|
28
|
+
left: number;
|
|
29
|
+
top: number;
|
|
30
|
+
disFromCameraToLabel: number;
|
|
31
|
+
index: number;
|
|
32
|
+
transform?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface DoorLabelConfig {
|
|
35
|
+
MinVisibledistance: number;
|
|
36
|
+
MaxVisibledistance: number;
|
|
37
|
+
OffsetHeight: number;
|
|
38
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
export declare function isTwoRectOverlaped(rect1: any, rect2: any): boolean;
|
|
3
|
+
export declare function getCameraToward(five: Five): "" | "left" | "right" | "back" | "forward";
|
|
4
|
+
export declare function getDistance(p1: any, p2: any): number;
|
|
5
|
+
export declare function getToward(rad: number): "" | "left" | "right" | "back" | "forward";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Vector3 as r } from "three";
|
|
2
|
+
function s(t, e) {
|
|
3
|
+
const n = Math.abs(t.top + t.height / 2 - e.top - e.height / 2), i = Math.abs(t.left + t.width / 2 - e.left - e.width / 2), o = (t.height + e.height) / 2, a = (t.width + e.width) / 2;
|
|
4
|
+
return !(n > o && i > a);
|
|
5
|
+
}
|
|
6
|
+
function f(t) {
|
|
7
|
+
const { camera: e } = t, n = e.getWorldDirection(new r());
|
|
8
|
+
let i = Math.atan(n.z / n.x) * 180 / Math.PI, o = "";
|
|
9
|
+
return n.x < 0 && (i += 180), i < 0 && (i += 360), i > 315 || i <= 45 ? o = "right" : i > 45 && i <= 135 ? o = "back" : i > 135 && i <= 225 ? o = "left" : i > 225 && i <= 315 && (o = "forward"), o;
|
|
10
|
+
}
|
|
11
|
+
function l(t, e) {
|
|
12
|
+
return Math.sqrt(Math.pow(t.z - e.z, 2) + Math.pow(t.x - e.x, 2));
|
|
13
|
+
}
|
|
14
|
+
function c(t) {
|
|
15
|
+
const e = Math.PI / 4;
|
|
16
|
+
return t > -e && t <= e ? "left" : t > e * 3 || t <= -e * 3 ? "right" : t > -e * 3 && t <= -e ? "forward" : t > e && t <= e * 3 ? "back" : "";
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
l as a,
|
|
20
|
+
c as b,
|
|
21
|
+
f as g,
|
|
22
|
+
s as i
|
|
23
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type Magnifier from '../Modules/Magnifier';
|
|
2
|
+
import type FiveHelper from '../Modules/FiveHelper';
|
|
3
|
+
import type { Group } from 'three';
|
|
4
|
+
import type { Model } from '../Model';
|
|
5
|
+
import type { Config } from '../typings';
|
|
6
|
+
import type { PanoMeasurePluginEvent } from '../typings/event.type';
|
|
7
|
+
import type { UserDistanceItem } from '../utils/distanceDom';
|
|
8
|
+
import type { Five, Intersection, IntersectMeshInterface, Subscribe } from '@realsee/five';
|
|
9
|
+
import type { OpenParameter } from '../typings/data';
|
|
10
|
+
import Line from '../Model/line';
|
|
11
|
+
export interface IControllerParams {
|
|
12
|
+
five: Five;
|
|
13
|
+
group: Group;
|
|
14
|
+
model: Model;
|
|
15
|
+
config: Config;
|
|
16
|
+
mouseGroup: Group;
|
|
17
|
+
container: Element;
|
|
18
|
+
magnifier: Magnifier;
|
|
19
|
+
fiveHelper: FiveHelper;
|
|
20
|
+
openParams: OpenParameter;
|
|
21
|
+
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
22
|
+
userDistanceItemCreator?: () => UserDistanceItem;
|
|
23
|
+
}
|
|
24
|
+
export default class BaseController {
|
|
25
|
+
model: Model;
|
|
26
|
+
protected five: Five;
|
|
27
|
+
protected group: Group;
|
|
28
|
+
protected config: Config;
|
|
29
|
+
protected dashed: Line;
|
|
30
|
+
protected disposed: boolean;
|
|
31
|
+
protected isMobile: boolean;
|
|
32
|
+
protected mouseGroup: Group;
|
|
33
|
+
protected container: Element;
|
|
34
|
+
protected fiveHelper: FiveHelper;
|
|
35
|
+
protected hook: IControllerParams['hook'];
|
|
36
|
+
protected magnifier: IControllerParams['magnifier'];
|
|
37
|
+
protected userDistanceItemCreator: IControllerParams['userDistanceItemCreator'];
|
|
38
|
+
constructor(params: IControllerParams);
|
|
39
|
+
updateDistanceUI: () => void;
|
|
40
|
+
protected removeLine(line: Line): void;
|
|
41
|
+
protected updateMouseGroup(intersection: Intersection, mesh?: IntersectMeshInterface): Group;
|
|
42
|
+
protected dispose(): void;
|
|
43
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var m = (i, e, o) => e in i ? a(i, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : i[e] = o;
|
|
3
|
+
var t = (i, e, o) => (m(i, typeof e != "symbol" ? e + "" : e, o), o);
|
|
4
|
+
import { L as l } from "../Model/line.js";
|
|
5
|
+
import { P as d } from "../Model/point.js";
|
|
6
|
+
import { p as r } from "../utils/ironbox.js";
|
|
7
|
+
class G {
|
|
8
|
+
constructor(e) {
|
|
9
|
+
t(this, "model");
|
|
10
|
+
t(this, "five");
|
|
11
|
+
t(this, "group");
|
|
12
|
+
t(this, "config");
|
|
13
|
+
t(this, "dashed");
|
|
14
|
+
t(this, "disposed", !1);
|
|
15
|
+
t(this, "isMobile");
|
|
16
|
+
t(this, "mouseGroup");
|
|
17
|
+
t(this, "container");
|
|
18
|
+
t(this, "fiveHelper");
|
|
19
|
+
t(this, "hook");
|
|
20
|
+
t(this, "magnifier");
|
|
21
|
+
t(this, "userDistanceItemCreator");
|
|
22
|
+
t(this, "updateDistanceUI", () => {
|
|
23
|
+
this.dashed.distanceItem.update(this.five), this.model.lines.forEach((e) => e.distanceItem.update(this.five));
|
|
24
|
+
});
|
|
25
|
+
var s, n;
|
|
26
|
+
this.five = e.five, this.hook = e.hook, this.model = e.model, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.isMobile = (n = (s = e.openParams) == null ? void 0 : s.isMobile) != null ? n : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new l(new d([0, 0, 0]), new d([0, 0, 0]), this.model), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine";
|
|
27
|
+
const o = this.five.getElement();
|
|
28
|
+
o && (o.addEventListener("touchstart", r), o.addEventListener("contextmenu", r));
|
|
29
|
+
}
|
|
30
|
+
removeLine(e) {
|
|
31
|
+
this.group.remove(e.mesh, e.lightMesh), e.distanceItem.remove(), this.five.needsRender = !0;
|
|
32
|
+
}
|
|
33
|
+
updateMouseGroup(e, o) {
|
|
34
|
+
if (!e)
|
|
35
|
+
return this.mouseGroup;
|
|
36
|
+
const s = this.fiveHelper.getAdsorbentPoint(e), n = s || e.point;
|
|
37
|
+
if (this.mouseGroup.position.copy(n), o)
|
|
38
|
+
this.mouseGroup.quaternion.copy(o.quaternion);
|
|
39
|
+
else if (e.face) {
|
|
40
|
+
const h = e.face.normal.clone().multiplyScalar(0.05), u = e.point.clone().add(h).clone().add(h);
|
|
41
|
+
this.mouseGroup.lookAt(u);
|
|
42
|
+
}
|
|
43
|
+
return this.mouseGroup;
|
|
44
|
+
}
|
|
45
|
+
dispose() {
|
|
46
|
+
this.disposed = !0, this.magnifier.remove(), this.model.lines.forEach((o) => this.removeLine(o));
|
|
47
|
+
const e = this.five.getElement();
|
|
48
|
+
e && (e.removeEventListener("touchstart", r), e.removeEventListener("contextmenu", r));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
G as B
|
|
53
|
+
};
|