@realsee/dnalogel 2.1.2-alpha.2 → 2.1.2-alpha.4
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 +4 -3
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
var F = (s, b, e) => new Promise((m, y) => {
|
|
2
|
+
var w = (l) => {
|
|
3
|
+
try {
|
|
4
|
+
x(e.next(l));
|
|
5
|
+
} catch (p) {
|
|
6
|
+
y(p);
|
|
7
|
+
}
|
|
8
|
+
}, M = (l) => {
|
|
9
|
+
try {
|
|
10
|
+
x(e.throw(l));
|
|
11
|
+
} catch (p) {
|
|
12
|
+
y(p);
|
|
13
|
+
}
|
|
14
|
+
}, x = (l) => l.done ? m(l.value) : Promise.resolve(l.value).then(w, M);
|
|
15
|
+
x((e = e.apply(s, b)).next());
|
|
16
|
+
});
|
|
17
|
+
import * as d from "three";
|
|
18
|
+
import { p as I } from "./utils/parseData.js";
|
|
19
|
+
import { CSS3DRenderPlugin as O } from "../CSS3DRenderPlugin/index.js";
|
|
20
|
+
const C = (s, { videoElement: b }) => {
|
|
21
|
+
const e = {
|
|
22
|
+
videoMeshes: [],
|
|
23
|
+
videoTextureEnabled: !1,
|
|
24
|
+
videoSource: "",
|
|
25
|
+
rectPoints: [],
|
|
26
|
+
enabled: !1,
|
|
27
|
+
videoElement: b
|
|
28
|
+
}, m = O(s), y = /* @__PURE__ */ new Map(), w = (t) => {
|
|
29
|
+
e.videoTexture && (e.videoTexture.image.muted = t);
|
|
30
|
+
}, M = () => e.videoTexture ? e.videoTexture.image.muted : !0, x = () => {
|
|
31
|
+
if (e.enabled || !e.videoTexture)
|
|
32
|
+
return;
|
|
33
|
+
e.enabled = !0, e.videoMeshes = p(), e.videoMeshes.forEach((n) => s.scene.add(n));
|
|
34
|
+
const t = () => {
|
|
35
|
+
if (!e.videoTexture)
|
|
36
|
+
return;
|
|
37
|
+
const n = () => {
|
|
38
|
+
var i;
|
|
39
|
+
!e.videoTexture || ((i = e.videoTexture) == null || i.image.removeEventListener("timeupdate", n), e.videoTextureEnabled = !0, e.videoMeshes.forEach((o) => {
|
|
40
|
+
o.material.map !== e.videoTexture && (o.material.map = e.videoTexture);
|
|
41
|
+
}), s.needsRender = !0);
|
|
42
|
+
};
|
|
43
|
+
e.videoTexture.image.addEventListener("timeupdate", n), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
44
|
+
m.hide();
|
|
45
|
+
}, e.videoTexture.image.onpause = () => {
|
|
46
|
+
m.show();
|
|
47
|
+
}, e.videoTexture.image.onclick = () => {
|
|
48
|
+
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
if (s.model.loaded)
|
|
52
|
+
t();
|
|
53
|
+
else
|
|
54
|
+
return s.once("modelLoaded", () => t());
|
|
55
|
+
}, l = () => {
|
|
56
|
+
!e.enabled || (e.enabled = !1, e.videoMeshes.forEach((t) => {
|
|
57
|
+
t.geometry.dispose(), t.material.dispose(), s.scene.remove(t), e.videoTexture && e.videoTexture.image.pause();
|
|
58
|
+
}), e.videoMeshes = [], s.needsRender = !0);
|
|
59
|
+
}, p = () => e.rectPoints.map((t, n) => {
|
|
60
|
+
const i = new d.BufferGeometry(), o = 128, a = [];
|
|
61
|
+
a.push(...t[0].toArray());
|
|
62
|
+
for (let r = 1; r < o; r++)
|
|
63
|
+
a.push(
|
|
64
|
+
t[0].x + (t[1].x - t[0].x) * r / o,
|
|
65
|
+
t[0].y + (t[1].y - t[0].y) * r / o,
|
|
66
|
+
t[0].z + (t[1].z - t[0].z) * r / o
|
|
67
|
+
);
|
|
68
|
+
a.push(...t[1].toArray()), a.push(...t[2].toArray());
|
|
69
|
+
for (let r = 1; r < o; r++)
|
|
70
|
+
a.push(
|
|
71
|
+
t[2].x + (t[3].x - t[2].x) * r / o,
|
|
72
|
+
t[2].y + (t[3].y - t[2].y) * r / o,
|
|
73
|
+
t[2].z + (t[3].z - t[2].z) * r / o
|
|
74
|
+
);
|
|
75
|
+
a.push(...t[3].toArray());
|
|
76
|
+
const c = [];
|
|
77
|
+
c.push(0, 1);
|
|
78
|
+
for (let r = 1; r < o; r++)
|
|
79
|
+
c.push(0, 1 - r / o);
|
|
80
|
+
c.push(0, 0), c.push(1, 0);
|
|
81
|
+
for (let r = 1; r < o; r++)
|
|
82
|
+
c.push(1, r / o);
|
|
83
|
+
c.push(1, 1);
|
|
84
|
+
const u = [];
|
|
85
|
+
for (let r = 0; r < o; r++)
|
|
86
|
+
u.push(r, r + 1, o * 2 - r, r, o * 2 - r, o * 2 + 1 - r);
|
|
87
|
+
i.setAttribute("position", new d.BufferAttribute(new Float32Array(a), 3)), i.setAttribute("uv", new d.BufferAttribute(new Float32Array(c), 2)), i.setIndex(new d.BufferAttribute(new Uint32Array(u), 1));
|
|
88
|
+
const f = new d.AxesHelper(10);
|
|
89
|
+
s.scene.add(f);
|
|
90
|
+
const h = new d.MeshBasicMaterial({
|
|
91
|
+
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
92
|
+
side: d.DoubleSide
|
|
93
|
+
}), v = new d.Mesh(i, h);
|
|
94
|
+
v.renderOrder = 1, v.name = `ModelTVVideoPlugin-${n}-${performance.now()}`;
|
|
95
|
+
const z = [t[1], t[2], t[3], t[0]], T = m.create3DDomContainer(z);
|
|
96
|
+
if (T != null && T.container) {
|
|
97
|
+
const r = document.createElement("div");
|
|
98
|
+
r.classList.add("play-icon"), r.style.width = "100%", r.style.height = "100%", r.style.display = "flex", r.style.justifyContent = "center", r.style.alignItems = "center", r.style.pointerEvents = "none", T.container.appendChild(r);
|
|
99
|
+
const g = document.createElement("img");
|
|
100
|
+
g.src = "//vrlab-static.ljcdn.com/release/web/play.2ada5b6f.png", g.style.width = "200px", g.style.pointerEvents = "auto", g.onclick = () => {
|
|
101
|
+
e.videoTexture.image.muted = !1, e.videoTexture.image.play();
|
|
102
|
+
}, r.appendChild(g), y.set(v, T);
|
|
103
|
+
}
|
|
104
|
+
return v;
|
|
105
|
+
}), L = (t) => {
|
|
106
|
+
const n = new d.TextureLoader().load(t);
|
|
107
|
+
return n.minFilter = d.LinearFilter, n.magFilter = d.LinearFilter, n.format = d.RGBFormat, n;
|
|
108
|
+
}, P = (t, n) => new Promise((i, o) => {
|
|
109
|
+
const a = new XMLHttpRequest();
|
|
110
|
+
a.onreadystatechange = () => {
|
|
111
|
+
if (a.readyState == 4)
|
|
112
|
+
if (a.status == 200) {
|
|
113
|
+
const c = window.URL || window.webkitURL;
|
|
114
|
+
n = n || document.createElement("video"), n.crossOrigin = "anonymous", n.muted = !0, n.loop = !0, n.playsInline = !0, n.src = c.createObjectURL(a.response);
|
|
115
|
+
const u = new d.VideoTexture(n);
|
|
116
|
+
u.minFilter = d.LinearFilter, u.magFilter = d.LinearFilter, u.format = d.RGBFormat, i(Object.assign(u, { videoSource: t }));
|
|
117
|
+
} else
|
|
118
|
+
o(new Error("Video download Error: " + a.status));
|
|
119
|
+
}, a.onerror = (c) => o(c), a.open("GET", t), a.responseType = "blob", a.send();
|
|
120
|
+
}), V = (t, n) => F(void 0, null, function* () {
|
|
121
|
+
const { video_src: i, video_poster_src: o, points: a } = t;
|
|
122
|
+
e.videoSource = i, e.rectPoints = I(a).map((c) => c.map(({ x: u, y: f, z: h }) => new d.Vector3(u, f, h))), e.imageTexture = L(o), n && (e.videoElement = n), e.videoTexture = yield P(e.videoSource, e.videoElement), e.enabled = !!t.enable, e.enabled && x();
|
|
123
|
+
}), E = (t) => {
|
|
124
|
+
if (!e.enabled)
|
|
125
|
+
return;
|
|
126
|
+
const n = e.videoMeshes;
|
|
127
|
+
if (!(!n || t.intersectObjects(n).length === 0))
|
|
128
|
+
return e.videoTexture && (e.videoTexture.image.paused || e.videoTexture.image.pause()), !1;
|
|
129
|
+
}, A = (t) => {
|
|
130
|
+
t === "Floorplan" ? m.hide() : m.show();
|
|
131
|
+
}, R = () => {
|
|
132
|
+
if (!e.enabled)
|
|
133
|
+
return;
|
|
134
|
+
const t = s.camera.position;
|
|
135
|
+
if (y.forEach((n, i) => {
|
|
136
|
+
const o = n.css3DObject.position.clone(), a = o.clone().sub(t).normalize(), c = new d.Raycaster(t, a), u = s.model.intersectRaycaster(c)[0], f = o.distanceTo(t), h = 0.01;
|
|
137
|
+
u && u.distance + h < f ? n.hide() : n.show();
|
|
138
|
+
}), !M()) {
|
|
139
|
+
const n = e.rectPoints.find((i) => {
|
|
140
|
+
const o = i[0].clone().add(i[1]).add(i[2]).add(i[3]).divideScalar(4);
|
|
141
|
+
return i.map((a) => a.clone().add(o).divideScalar(2)).filter((a) => {
|
|
142
|
+
const c = a.distanceTo(t), u = new d.Raycaster(t, a.clone().sub(t).normalize()), f = s.model.intersectRaycaster(u)[0], h = 0.01;
|
|
143
|
+
return !(f && f.distance + h < c);
|
|
144
|
+
}).length >= 2;
|
|
145
|
+
});
|
|
146
|
+
(!n || n.length === 0) && w(!0);
|
|
147
|
+
}
|
|
148
|
+
}, S = () => {
|
|
149
|
+
l(), e.videoTexture = void 0, s.off("modeChange", A), s.off("wantsTapGesture", E), s.off("panoArrived", R), s.off("renderFrame", () => {
|
|
150
|
+
e.videoMeshes.forEach((t) => {
|
|
151
|
+
t && (t.needsRender = !0);
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
};
|
|
155
|
+
return s.on("modeChange", A), s.on("wantsTapGesture", E), s.on("panoArrived", R), s.on("renderFrame", () => {
|
|
156
|
+
e.videoMeshes.forEach((t) => {
|
|
157
|
+
t && (t.needsRender = !0);
|
|
158
|
+
});
|
|
159
|
+
}), { enable: x, disable: l, load: V, dispose: S, state: e, css3DRenderPlugin: m };
|
|
160
|
+
};
|
|
161
|
+
export {
|
|
162
|
+
C as M
|
|
163
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import ModelTVVideoPlugin from './Plugin';
|
|
2
|
+
export { ModelTVVideoPlugin };
|
|
3
|
+
export default ModelTVVideoPlugin;
|
|
4
|
+
export type { ModelTVVideoPluginParameterType, ModelTVVideoPluginData, Point, ModelTVVideoPluginExportType } from './typings';
|
|
5
|
+
export { DIRECTION } from './typings';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "./Plugin.js";
|
|
2
|
+
import { M as T, M as g } from "./Plugin.js";
|
|
3
|
+
import { D as x } from "./typings.js";
|
|
4
|
+
import "three";
|
|
5
|
+
import "./utils/parseData.js";
|
|
6
|
+
import "../CSS3DRenderPlugin/index.js";
|
|
7
|
+
import "../CSS3DRenderPlugin/Controller.js";
|
|
8
|
+
import "../CSS3DRenderPlugin/CSS3DRender.js";
|
|
9
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
+
import "../shared-utils/Subscribe.js";
|
|
11
|
+
import "../CSS3DRenderPlugin/utils/evenNumber.js";
|
|
12
|
+
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
13
|
+
import "../CSS3DRenderPlugin/utils/CSS3DObjectPlus.js";
|
|
14
|
+
import "../CSS3DRenderPlugin/utils/centerPoint.js";
|
|
15
|
+
export {
|
|
16
|
+
x as DIRECTION,
|
|
17
|
+
T as ModelTVVideoPlugin,
|
|
18
|
+
g as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ModelTVVideoPluginParameterType {
|
|
2
|
+
videoElement?: HTMLVideoElement;
|
|
3
|
+
}
|
|
4
|
+
export declare enum DIRECTION {
|
|
5
|
+
TOP_LEFT = "topLeft",
|
|
6
|
+
TOP_RIGHT = "topRight",
|
|
7
|
+
BOTTOM_LEFT = "bottomLeft",
|
|
8
|
+
BOTTOM_RIGHT = "bottomRight"
|
|
9
|
+
}
|
|
10
|
+
export interface Point {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
z: number;
|
|
14
|
+
}
|
|
15
|
+
export interface ModelTVVideoPluginData {
|
|
16
|
+
enable?: boolean;
|
|
17
|
+
video_src: string;
|
|
18
|
+
video_poster_src: string;
|
|
19
|
+
points: Point[][] | Record<DIRECTION, Point>[];
|
|
20
|
+
}
|
|
21
|
+
export interface ModelTVVideoPluginExportType {
|
|
22
|
+
enable: () => void;
|
|
23
|
+
disable: () => void;
|
|
24
|
+
load: (data: ModelTVVideoPluginData, videoElement?: HTMLVideoElement) => Promise<void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { D as e } from "../typings.js";
|
|
2
|
+
function t(r) {
|
|
3
|
+
if (r.length === 0)
|
|
4
|
+
return [];
|
|
5
|
+
if (Array.isArray(r[0]))
|
|
6
|
+
return r;
|
|
7
|
+
let O = [];
|
|
8
|
+
return r.forEach((T) => {
|
|
9
|
+
const a = [
|
|
10
|
+
T[e.TOP_LEFT],
|
|
11
|
+
T[e.BOTTOM_LEFT],
|
|
12
|
+
T[e.BOTTOM_RIGHT],
|
|
13
|
+
T[e.TOP_RIGHT]
|
|
14
|
+
];
|
|
15
|
+
O.push(a);
|
|
16
|
+
}), O;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
t as p
|
|
20
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { PartialDeep } from 'type-fest';
|
|
2
|
+
import { FivePlugin } from '@realsee/five';
|
|
3
|
+
export interface Config {
|
|
4
|
+
lookAtCurrentCamera: boolean;
|
|
5
|
+
lockedPanoIndex: number | null;
|
|
6
|
+
lockedLatitude: number | null;
|
|
7
|
+
lockedLongitude: number | null;
|
|
8
|
+
}
|
|
9
|
+
export interface ModelViewPluginExportType {
|
|
10
|
+
appendTo: (element: HTMLElement, size?: {
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
}) => void;
|
|
14
|
+
refresh: (size?: {
|
|
15
|
+
width?: number;
|
|
16
|
+
height?: number;
|
|
17
|
+
}) => void;
|
|
18
|
+
changeConfigs: (config: Partial<Config>) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface ModelViewPluginParameterType {
|
|
21
|
+
config: Config;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Five 模型插件
|
|
25
|
+
* @template ExportType 导出方法
|
|
26
|
+
*/
|
|
27
|
+
export declare const ModelViewPlugin: FivePlugin<PartialDeep<ModelViewPluginParameterType> | undefined, ModelViewPluginExportType>;
|
|
28
|
+
export default ModelViewPlugin;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var y = Object.getOwnPropertySymbols;
|
|
3
|
+
var I = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var x = (o, i, d) => i in o ? A(o, i, { enumerable: !0, configurable: !0, writable: !0, value: d }) : o[i] = d, M = (o, i) => {
|
|
5
|
+
for (var d in i || (i = {}))
|
|
6
|
+
I.call(i, d) && x(o, d, i[d]);
|
|
7
|
+
if (y)
|
|
8
|
+
for (var d of y(i))
|
|
9
|
+
O.call(i, d) && x(o, d, i[d]);
|
|
10
|
+
return o;
|
|
11
|
+
};
|
|
12
|
+
import { Camera as W } from "@realsee/five";
|
|
13
|
+
import * as a from "three";
|
|
14
|
+
const S = (o, i) => {
|
|
15
|
+
let d = !0, r = null;
|
|
16
|
+
const u = M(M({}, {
|
|
17
|
+
lookAtCurrentCamera: !1,
|
|
18
|
+
lockedPanoIndex: null,
|
|
19
|
+
lockedLatitude: null,
|
|
20
|
+
lockedLongitude: null
|
|
21
|
+
}), i == null ? void 0 : i.config), l = new a.Scene(), f = new W(60);
|
|
22
|
+
let m = new a.Object3D(), h, w;
|
|
23
|
+
{
|
|
24
|
+
const e = new a.DirectionalLight(16777215, 0.5);
|
|
25
|
+
e.position.copy(new a.Vector3(1, 1, 1)), l.add(e);
|
|
26
|
+
}
|
|
27
|
+
{
|
|
28
|
+
const e = new a.DirectionalLight(16777215, 0.3);
|
|
29
|
+
l.add(e);
|
|
30
|
+
}
|
|
31
|
+
{
|
|
32
|
+
const e = new a.AmbientLight(16777215, 0.3);
|
|
33
|
+
l.add(e);
|
|
34
|
+
}
|
|
35
|
+
l.add(m);
|
|
36
|
+
const C = () => {
|
|
37
|
+
if (!!o.renderer)
|
|
38
|
+
return r || (r = new a.WebGLRenderer({ antialias: !1, alpha: !0 }), r.setPixelRatio(o.renderer.getPixelRatio()), r.outputEncoding = a.sRGBEncoding, r.setClearColor(1579548, 0), r.autoClear = !0), r;
|
|
39
|
+
}, L = () => {
|
|
40
|
+
m.traverse((e) => {
|
|
41
|
+
e instanceof a.Mesh && [].concat(e.material).forEach((n) => n.dispose());
|
|
42
|
+
}), l.remove(m), m = new a.Object3D(), l.add(m), p();
|
|
43
|
+
}, k = () => {
|
|
44
|
+
h = E(o.model, f.fov, f.aspect), w = o.model.bounding.getCenter(new a.Vector3());
|
|
45
|
+
function e(n) {
|
|
46
|
+
const t = n.clone();
|
|
47
|
+
return t.uniforms.modelAlpha.value = 1, t.uniforms.map.value && (t.uniforms.map.value.needsUpdate = !0), t;
|
|
48
|
+
}
|
|
49
|
+
function c(n) {
|
|
50
|
+
if (n instanceof a.Mesh) {
|
|
51
|
+
const t = n.geometry, s = Array.isArray(n.material) ? n.material.map(e) : e(n.material);
|
|
52
|
+
return new a.Mesh(t, s);
|
|
53
|
+
} else if (n instanceof a.Group) {
|
|
54
|
+
const t = new a.Group();
|
|
55
|
+
return n.children.forEach((s) => t.add(c(s))), t;
|
|
56
|
+
} else {
|
|
57
|
+
const t = new a.Object3D();
|
|
58
|
+
return n.children.forEach((s) => t.add(c(s))), t;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
l.remove(m), m = c(o.model), l.add(m), p();
|
|
62
|
+
}, P = (e, c = {}) => {
|
|
63
|
+
const n = C();
|
|
64
|
+
if (!n)
|
|
65
|
+
return;
|
|
66
|
+
e.appendChild(n.domElement), b(c);
|
|
67
|
+
const t = window.getComputedStyle(e).position;
|
|
68
|
+
t !== "relative" && t !== "absolute" && t !== "fixed" && t !== "sticky" && (e.style.position = "relative");
|
|
69
|
+
}, b = (e = {}) => {
|
|
70
|
+
if (!r)
|
|
71
|
+
return;
|
|
72
|
+
const n = r.domElement.parentNode;
|
|
73
|
+
if (n != null && n.nodeName) {
|
|
74
|
+
const { width: t = n.offsetWidth, height: s = n.offsetHeight } = e;
|
|
75
|
+
r.setSize(t, s), f.aspect = t / s, f.updateProjectionMatrix();
|
|
76
|
+
}
|
|
77
|
+
p();
|
|
78
|
+
};
|
|
79
|
+
function E(e, c, n) {
|
|
80
|
+
const t = e.bounding, s = Math.pow(
|
|
81
|
+
Math.pow(t.max.x - t.min.x + 1, 2) + Math.pow(t.max.y - t.min.y + 1, 2) + Math.pow(t.max.z - t.min.z + 1, 2),
|
|
82
|
+
1 / 2
|
|
83
|
+
);
|
|
84
|
+
let g = s / 2 / Math.tan(Math.PI * c / 360);
|
|
85
|
+
return n < 1 && (g = g / n), isNaN(g) ? s : g;
|
|
86
|
+
}
|
|
87
|
+
function N(e) {
|
|
88
|
+
return o.work.observers[e].standingPosition.clone();
|
|
89
|
+
}
|
|
90
|
+
const p = () => {
|
|
91
|
+
if (!h || !w)
|
|
92
|
+
return;
|
|
93
|
+
const e = o.getPose();
|
|
94
|
+
e.fov = f.fov, e.offset = w, e.distance = h, typeof u.lockedLatitude == "number" && (e.latitude = u.lockedLatitude), typeof u.lockedLongitude == "number" && (e.longitude = u.lockedLongitude), typeof u.lockedPanoIndex == "number" && (e.offset = N(u.lockedPanoIndex)), u.lookAtCurrentCamera && (e.offset = o.camera.position.clone().setY(o.camera.position.y + 1)), f.setFromPose(e), d = !0;
|
|
95
|
+
}, D = () => {
|
|
96
|
+
d !== !0 || !r || !r.domElement.parentNode || r.domElement.parentNode.offsetWidth === 0 || (r.render(l, f), d = !1);
|
|
97
|
+
}, R = () => {
|
|
98
|
+
r && r.dispose(), r = null;
|
|
99
|
+
}, j = (e) => {
|
|
100
|
+
Object.assign(u, e), p();
|
|
101
|
+
};
|
|
102
|
+
return Object.assign(window, { camera: f }), o.on("modelLoaded", k), o.on("modelWillLoad", L), o.on("cameraDirectionUpdate", p), o.on("dispose", R), o.on("renderFrame", D), o.on("cameraPositionUpdate", p), { appendTo: P, refresh: b, changeConfigs: j };
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
S as M
|
|
106
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import * as BasePlugin from '../base/BasePlugin';
|
|
3
|
+
import type * as THREE from 'three';
|
|
4
|
+
import { Object3DHelper } from '../shared-utils/Object3DHelper';
|
|
5
|
+
import type { Object3DHelperState } from '../shared-utils/Object3DHelper/typings';
|
|
6
|
+
import type { Object3DHelperPluginEventMap, Object3DHelperPluginState } from './typings';
|
|
7
|
+
export declare const VERSION = "v1.0.0";
|
|
8
|
+
export declare const PLUGIN: string;
|
|
9
|
+
export declare class Object3DHelperController extends BasePlugin.Controller<Object3DHelperPluginState, Object3DHelperPluginEventMap> {
|
|
10
|
+
version: string;
|
|
11
|
+
name: string;
|
|
12
|
+
state: Object3DHelperState;
|
|
13
|
+
objectHelperMap: Map<THREE.Object3D, Object3DHelper>;
|
|
14
|
+
constructor(five: Five);
|
|
15
|
+
/**
|
|
16
|
+
* @description Show guide line
|
|
17
|
+
*/
|
|
18
|
+
show(options?: {
|
|
19
|
+
userAction?: boolean;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* @description Hide guide line
|
|
23
|
+
*/
|
|
24
|
+
hide(options?: {
|
|
25
|
+
userAction?: boolean;
|
|
26
|
+
}): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @description Enable
|
|
29
|
+
*/
|
|
30
|
+
enable(options?: {
|
|
31
|
+
userAction?: boolean;
|
|
32
|
+
}): void;
|
|
33
|
+
/**
|
|
34
|
+
* @description Disable
|
|
35
|
+
*/
|
|
36
|
+
disable(options?: {
|
|
37
|
+
userAction?: boolean;
|
|
38
|
+
}): void;
|
|
39
|
+
/**
|
|
40
|
+
* @description Dispose
|
|
41
|
+
*/
|
|
42
|
+
dispose(): void;
|
|
43
|
+
setState(state: Partial<Object3DHelperState>, options?: {
|
|
44
|
+
userAction?: boolean;
|
|
45
|
+
} & Record<string, any>): void;
|
|
46
|
+
getObject3DHelper(object3D: THREE.Object3D): Object3DHelper;
|
|
47
|
+
/**
|
|
48
|
+
* @description 添加 helper
|
|
49
|
+
* @param { THREE.Object3D } object3D 要添加helper的物体
|
|
50
|
+
* @param { boolean } config.moveHelper 位移helper
|
|
51
|
+
* @param { boolean } config.rotateHelper 旋转helper
|
|
52
|
+
* @param { boolean } config.scaleHelper 缩放helper
|
|
53
|
+
*/
|
|
54
|
+
addObject3DHelper(object3D: THREE.Object3D, config?: {
|
|
55
|
+
moveHelper?: boolean;
|
|
56
|
+
rotateHelper?: boolean;
|
|
57
|
+
scaleHelper?: boolean;
|
|
58
|
+
}): void;
|
|
59
|
+
removeObject3DHelper(object3D: THREE.Object3D): void;
|
|
60
|
+
private handleEnable;
|
|
61
|
+
private handleVisible;
|
|
62
|
+
private handleDispose;
|
|
63
|
+
private everyHelperDo;
|
|
64
|
+
private actionIfStateIsEnabled;
|
|
65
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var S = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var b = (i, r, e) => r in i ? E(i, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[r] = e, f = (i, r) => {
|
|
5
|
+
for (var e in r || (r = {}))
|
|
6
|
+
M.call(r, e) && b(i, e, r[e]);
|
|
7
|
+
if (S)
|
|
8
|
+
for (var e of S(r))
|
|
9
|
+
O.call(r, e) && b(i, e, r[e]);
|
|
10
|
+
return i;
|
|
11
|
+
};
|
|
12
|
+
var h = (i, r, e) => (b(i, typeof r != "symbol" ? r + "" : r, e), e);
|
|
13
|
+
var u = (i, r, e) => new Promise((s, t) => {
|
|
14
|
+
var l = (o) => {
|
|
15
|
+
try {
|
|
16
|
+
n(e.next(o));
|
|
17
|
+
} catch (p) {
|
|
18
|
+
t(p);
|
|
19
|
+
}
|
|
20
|
+
}, c = (o) => {
|
|
21
|
+
try {
|
|
22
|
+
n(e.throw(o));
|
|
23
|
+
} catch (p) {
|
|
24
|
+
t(p);
|
|
25
|
+
}
|
|
26
|
+
}, n = (o) => o.done ? s(o.value) : Promise.resolve(o.value).then(l, c);
|
|
27
|
+
n((e = e.apply(i, r)).next());
|
|
28
|
+
});
|
|
29
|
+
import { C as D } from "../base/BasePlugin.js";
|
|
30
|
+
import "three";
|
|
31
|
+
import { M as y } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
32
|
+
import { R as I } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
33
|
+
import { R as P } from "../shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js";
|
|
34
|
+
import "../shared-utils/Object3DHelper/Helper/OutlineHelper.js";
|
|
35
|
+
import { M as k } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
36
|
+
import { C as m } from "./FiveControllerWrapper.js";
|
|
37
|
+
import { O as F } from "../shared-utils/Object3DHelper/index.js";
|
|
38
|
+
import { R } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
39
|
+
import { C as $ } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
40
|
+
const g = "v1.0.0", v = "Object3DHelperPlugin", H = `${v}@${g}`, j = () => {
|
|
41
|
+
console.error(`${H} is disposed`);
|
|
42
|
+
}, L = () => {
|
|
43
|
+
console.warn(`${H} is disabled`);
|
|
44
|
+
}, _ = () => {
|
|
45
|
+
console.error(`${H} is disabled`);
|
|
46
|
+
};
|
|
47
|
+
class K extends D {
|
|
48
|
+
constructor(e) {
|
|
49
|
+
super(e);
|
|
50
|
+
h(this, "version", g);
|
|
51
|
+
h(this, "name", v);
|
|
52
|
+
h(this, "state", {
|
|
53
|
+
visible: !0,
|
|
54
|
+
enabled: !0,
|
|
55
|
+
disposed: !1
|
|
56
|
+
});
|
|
57
|
+
h(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
58
|
+
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 });
|
|
59
|
+
}
|
|
60
|
+
show(e) {
|
|
61
|
+
return u(this, null, function* () {
|
|
62
|
+
this.setState({ visible: !0 }, e);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
hide(e) {
|
|
66
|
+
return u(this, null, function* () {
|
|
67
|
+
this.setState({ visible: !1 }, e);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
enable(e) {
|
|
71
|
+
this.setState({ enabled: !0 }, e);
|
|
72
|
+
}
|
|
73
|
+
disable(e) {
|
|
74
|
+
this.setState({ enabled: !1 }, e);
|
|
75
|
+
}
|
|
76
|
+
dispose() {
|
|
77
|
+
this.setState({ disposed: !0 });
|
|
78
|
+
}
|
|
79
|
+
setState(e, s) {
|
|
80
|
+
if (this.state.disposed)
|
|
81
|
+
return j();
|
|
82
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
83
|
+
return _();
|
|
84
|
+
const t = f({}, this.state);
|
|
85
|
+
this.state = f(f({}, this.state), e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: t });
|
|
86
|
+
}
|
|
87
|
+
getObject3DHelper(e) {
|
|
88
|
+
return this.objectHelperMap.get(e);
|
|
89
|
+
}
|
|
90
|
+
addObject3DHelper(e, s = {}) {
|
|
91
|
+
var C;
|
|
92
|
+
if (!e)
|
|
93
|
+
return console.error("Object3D is undefined");
|
|
94
|
+
if (this.objectHelperMap.has(e)) {
|
|
95
|
+
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const t = new F();
|
|
99
|
+
this.objectHelperMap.set(e, t);
|
|
100
|
+
const l = (C = this.five.getElement()) == null ? void 0 : C.parentElement, c = this.five.camera, { moveHelper: n = !0, rotateHelper: o = !0, scaleHelper: p = !0 } = s;
|
|
101
|
+
if (n) {
|
|
102
|
+
const a = new y(e), d = new m(this.five, k, e, a);
|
|
103
|
+
t.addControllers({ moveController: d.helperController });
|
|
104
|
+
}
|
|
105
|
+
if (o) {
|
|
106
|
+
let a;
|
|
107
|
+
l && c && (a = { container: l });
|
|
108
|
+
const d = new I(e, a), w = new m(this.five, R, e, d);
|
|
109
|
+
t.addControllers({ rotateController: w.helperController });
|
|
110
|
+
}
|
|
111
|
+
if (p && l) {
|
|
112
|
+
const a = new P(e, l, c, this.five.scene), d = new m(this.five, $, e, a);
|
|
113
|
+
t.addControllers({ scaleController: d.helperController });
|
|
114
|
+
}
|
|
115
|
+
e.isCSS3DObjectPlus && e.changeMode("behind", this.five.scene);
|
|
116
|
+
}
|
|
117
|
+
removeObject3DHelper(e) {
|
|
118
|
+
const s = this.objectHelperMap.get(e);
|
|
119
|
+
!s || (e.isCSS3DObjectPlus && e.changeMode("front"), this.objectHelperMap.delete(e), s.dispose());
|
|
120
|
+
}
|
|
121
|
+
handleEnable(e, s = !0) {
|
|
122
|
+
e ? (this.everyHelperDo((t) => t.enable()), this.hooks.emit("enable", { userAction: s })) : (this.everyHelperDo((t) => t.disable()), this.hooks.emit("disable", { userAction: s })), this.state.enabled = e;
|
|
123
|
+
}
|
|
124
|
+
handleVisible(e, s = !0) {
|
|
125
|
+
e ? (this.everyHelperDo((t) => t.show()), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: s }))) : (this.everyHelperDo((t) => t.hide()), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: s }))), this.state.visible = e;
|
|
126
|
+
}
|
|
127
|
+
handleDispose() {
|
|
128
|
+
this.everyHelperDo((e) => e.dispose());
|
|
129
|
+
}
|
|
130
|
+
everyHelperDo(e) {
|
|
131
|
+
this.objectHelperMap.forEach((s) => {
|
|
132
|
+
s && e(s);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
actionIfStateIsEnabled(e, s) {
|
|
136
|
+
if (this.state.enabled)
|
|
137
|
+
return e();
|
|
138
|
+
s != null && s.warnLog && L();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export {
|
|
142
|
+
K as O,
|
|
143
|
+
H as P,
|
|
144
|
+
g as V
|
|
145
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description: 将手势操作绑定到controller上
|
|
3
|
+
*/
|
|
4
|
+
import type { Five } from '@realsee/five';
|
|
5
|
+
import type { BaseController } from '../shared-utils/Object3DHelper/Base/BaseController';
|
|
6
|
+
import type * as THREE from 'three';
|
|
7
|
+
import type { BaseHelper } from '../shared-utils/Object3DHelper/Helper';
|
|
8
|
+
declare class ControllerWrapper<Helper extends BaseHelper = BaseHelper, Controller extends BaseController = BaseController<Helper>> {
|
|
9
|
+
helperController?: Controller;
|
|
10
|
+
private five;
|
|
11
|
+
constructor(five: Five, HelperController: new (...params: ConstructorParameters<typeof BaseController<Helper>>) => Controller, object: THREE.Object3D, helperObjects: Helper);
|
|
12
|
+
private onFiveWantsTapGesture;
|
|
13
|
+
private onFiveWantsGesture;
|
|
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?: () => void) => Controller, object: THREE.Object3D, helperObjects: Helper) => ControllerWrapper<Helper, Controller>;
|
|
16
|
+
export { ControllerWrapper };
|
|
17
|
+
export { controllerWrapper };
|
|
18
|
+
export { ControllerWrapper as FiveControllerWrapper };
|
|
19
|
+
export { controllerWrapper as fiveControllerWrapper };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var c = (t, e, r) => e in t ? p(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 C {
|
|
5
|
+
constructor(e, r, a, i) {
|
|
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, u = e.getElement();
|
|
21
|
+
if (this.five = e, !s || !o || !u || !l)
|
|
22
|
+
return;
|
|
23
|
+
const h = () => {
|
|
24
|
+
e.needsRender = !0;
|
|
25
|
+
};
|
|
26
|
+
this.helperController = new r(s, o, a, i, u, l, h), e.on("wantsTapGesture", this.onFiveWantsTapGesture), e.on("wantsGesture", this.onFiveWantsGesture);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
C
|
|
31
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from '../shared-utils/Object3DHelper/typings';
|
|
2
|
+
export * from './Controller';
|
|
3
|
+
import type { FivePlugin } from '@realsee/five';
|
|
4
|
+
import { Object3DHelperController } from './Controller';
|
|
5
|
+
export declare const Object3DHelperPlugin: FivePlugin<void, InstanceType<typeof Object3DHelperController>>;
|
|
6
|
+
export default Object3DHelperPlugin;
|