@realsee/dnalogel 2.1.2-alpha.7 → 2.1.2-alpha.9
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/libs/CSS3DRenderPlugin/CSS3DRender.js +327 -1
- package/libs/CSS3DRenderPlugin/Controller.js +83 -1
- package/libs/CSS3DRenderPlugin/index.js +5 -1
- package/libs/CSS3DRenderPlugin/typing.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +65 -1
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +10 -1
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +7 -1
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +6 -1
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +87 -1
- package/libs/CameraMovementPlugin/index.js +3 -1
- package/libs/CameraMovementPlugin/typing.js +5 -1
- package/libs/CruisePlugin/Controller.js +484 -1
- package/libs/CruisePlugin/index.js +5 -1
- package/libs/CruisePlugin/utils/coordinatesAngle.js +8 -1
- package/libs/CruisePlugin/utils/coordinatesToVector.js +12 -1
- package/libs/CruisePlugin/utils/formatRad.js +7 -1
- package/libs/CruisePlugin/utils/linerValue.js +7 -1
- package/libs/CruisePlugin/utils/safeCall.js +28 -1
- package/libs/CruisePlugin/utils/sleep.js +10 -1
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +10 -1
- package/libs/GuideLinePlugin/Controller.js +143 -1
- package/libs/GuideLinePlugin/index.js +5 -1
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +13 -1
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -1
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +273 -1
- package/libs/ItemLabelPlugin/ItemLabelItem.js +133 -2
- package/libs/ItemLabelPlugin/Plugin.js +75 -2
- package/libs/ItemLabelPlugin/index.js +12 -1
- package/libs/ItemLabelPlugin/typings.js +4 -1
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +4 -1
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +16 -1
- package/libs/ItemLabelPlugin/utils/isImpacted.js +10 -1
- package/libs/ItemLabelPlugin/utils/parseData.js +21 -1
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +21 -1
- package/libs/ModelChassisCompassPlugin/Plugin.js +70 -1
- package/libs/ModelChassisCompassPlugin/index.js +2 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +77 -1
- package/libs/ModelEntryDoorGuidePlugin/index.js +2 -1
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +213 -1
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +42 -2
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +73 -2
- package/libs/ModelItemLabelPlugin/events.type.js +1 -1
- package/libs/ModelItemLabelPlugin/index.js +12 -1
- package/libs/ModelItemLabelPlugin/typings.js +4 -1
- package/libs/ModelItemLabelPlugin/utils/parseData.js +19 -1
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +4 -1
- package/libs/ModelRoomLabelPlugin/Controller.js +60 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +45 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +163 -1
- package/libs/ModelRoomLabelPlugin/index.js +9 -1
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +16 -1
- package/libs/ModelTVVideoPlugin/Plugin.js +163 -1
- package/libs/ModelTVVideoPlugin/index.js +2 -1
- package/libs/ModelTVVideoPlugin/typings.js +4 -1
- package/libs/ModelTVVideoPlugin/utils/parseData.js +20 -1
- package/libs/ModelViewPlugin/Plugin.js +106 -1
- package/libs/ModelViewPlugin/index.js +2 -1
- package/libs/Object3DHelperPlugin/Controller.js +145 -1
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +31 -1
- package/libs/Object3DHelperPlugin/index.js +5 -1
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +4 -1
- package/libs/PanoCompassPlugin/Controller.js +224 -1
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +24 -1
- package/libs/PanoCompassPlugin/index.js +5 -1
- package/libs/PanoCursorRaycasterPlugin/index.js +58 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +59 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +219 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +65 -1
- package/libs/PanoDoorLabelPlugin/index.js +5 -1
- package/libs/PanoDoorLabelPlugin/utils.js +23 -1
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +53 -1
- package/libs/PanoMeasurePlugin/Controller/EditController.js +102 -1
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +125 -1
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +33 -1
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +90 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +154 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +140 -1
- package/libs/PanoMeasurePlugin/Model/index.js +92 -1
- package/libs/PanoMeasurePlugin/Model/line.js +56 -1
- package/libs/PanoMeasurePlugin/Model/point.js +30 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +47 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +5 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +4 -1
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +67 -3
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +28 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +41 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +103 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +12 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +50 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +36 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +48 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +8 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +39 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +62 -1
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +6 -2
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +130 -1
- package/libs/PanoMeasurePlugin/index.js +10 -1
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +12 -1
- package/libs/PanoMeasurePlugin/utils/constants.js +36 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +62 -1
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +13 -1
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +15 -1
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +9 -1
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +8 -1
- package/libs/PanoMeasurePlugin/utils/ironbox.js +4 -1
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +7 -1
- package/libs/PanoMeasurePlugin/utils/line.js +17 -1
- package/libs/PanoMeasurePlugin/utils/math.js +12 -1
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +33 -3
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +8 -1
- package/libs/PanoRulerPlugin/Plugin.js +262 -2
- package/libs/PanoRulerPlugin/index.js +2 -1
- package/libs/PanoRulerPlugin/style.js +5 -2
- package/libs/PanoRulerProPlugin/Controller.js +93 -1
- package/libs/PanoRulerProPlugin/RulerItem.js +128 -1
- package/libs/PanoRulerProPlugin/RulerItems.js +183 -1
- package/libs/PanoRulerProPlugin/index.js +5 -1
- package/libs/PanoSpatialTagPlugin/Components/origins.js +82 -1
- package/libs/PanoSpatialTagPlugin/Components/tag.js +125 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +246 -1
- package/libs/PanoSpatialTagPlugin/index.js +6 -1
- package/libs/PanoSpatialTagPlugin/store.js +5 -1
- package/libs/PanoSpatialTagPlugin/style.js +11 -1
- package/libs/PanoSpatialTagPlugin/typings.js +1 -1
- package/libs/PanoTagPlugin/Assets/Icon.js +6 -1
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +103 -1
- package/libs/PanoTagPlugin/Components/Common/Audio.js +166 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +93 -1
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +90 -1
- package/libs/PanoTagPlugin/Components/Common/Media.js +400 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +139 -1
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +180 -1
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +52 -1
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +52 -1
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +169 -1
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +124 -15
- package/libs/PanoTagPlugin/Components/Common/Text.js +131 -1
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +106 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +140 -1
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +73 -1
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +214 -1
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +127 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +259 -1
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +106 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +134 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +318 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +200 -1
- package/libs/PanoTagPlugin/Components/TagWrapper.js +191 -1
- package/libs/PanoTagPlugin/controller/TagCacheController.js +31 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +264 -1
- package/libs/PanoTagPlugin/controller/index.js +376 -1
- package/libs/PanoTagPlugin/index.js +5 -1
- package/libs/PanoTagPlugin/tag.config.js +43 -1
- package/libs/PanoTagPlugin/typings/controller.js +1 -1
- package/libs/PanoTagPlugin/typings/index.js +1 -1
- package/libs/PanoTagPlugin/typings/tag.js +7 -1
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +6 -1
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +27 -1
- package/libs/PanoTagPlugin/utils/checkRange.js +10 -1
- package/libs/PanoTagPlugin/utils/constants.js +7 -1
- package/libs/PanoTagPlugin/utils/debounce.js +12 -1
- package/libs/PanoTagPlugin/utils/doUtil.js +12 -1
- package/libs/PanoTagPlugin/utils/index.js +1 -1
- package/libs/PanoTagPlugin/utils/noTypecheck.js +4 -1
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +13 -1
- package/libs/PanoTagPlugin/utils/planeNormal.js +11 -1
- package/libs/PanoTagPlugin/utils/resizeObserver.js +17 -1
- package/libs/PanoTagPlugin/utils/search.js +15 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +13 -1
- package/libs/PanoTagPlugin/utils/throttle.js +11 -1
- package/libs/base/BasePlugin.js +18 -1
- package/libs/base/BasePluginWithData.js +6 -1
- package/libs/components/PaintBrush/Controller.js +308 -1
- package/libs/components/PaintBrush/Subscribe.js +47 -1
- package/libs/components/PaintBrush/index.js +45 -1
- package/libs/components/PaintBrush/style.js +5 -2
- package/libs/components/PaintBrush/tween.js +11 -1
- package/libs/components/PaintBrush/typings.js +4 -1
- package/libs/components/PaintBrush/utils.js +45 -1
- package/libs/components/index.js +2 -1
- package/libs/floorplan/Assets/camera.js +4 -1
- package/libs/floorplan/Assets/compass.js +4 -1
- package/libs/floorplan/Assets/floorplanExtraObject.js +4 -1
- package/libs/floorplan/Components/BaseImage.js +103 -1
- package/libs/floorplan/Components/Camera.js +62 -1
- package/libs/floorplan/Components/Compass.js +60 -1
- package/libs/floorplan/Components/CurrentFloor.js +256 -1
- package/libs/floorplan/Components/Main.js +283 -1
- package/libs/floorplan/Components/Normalmage.js +37 -1
- package/libs/floorplan/Components/RoomHighlight/Room.js +61 -1
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +122 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +153 -1
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +175 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +196 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +37 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +39 -1
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -1
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +134 -1
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +139 -1
- package/libs/floorplan/Components/SvgImage.js +39 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +321 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +316 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +85 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +133 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +72 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +192 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +164 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +273 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -1
- package/libs/floorplan/constant.js +4 -1
- package/libs/floorplan/index.js +6 -1
- package/libs/floorplan/typings/floorplanData.js +1 -1
- package/libs/floorplan/typings/floorplanServerData.js +101 -1
- package/libs/floorplan/utils/constant.js +7 -1
- package/libs/floorplan/utils/correctFiveState.js +54 -1
- package/libs/floorplan/utils/formatData.js +104 -1
- package/libs/floorplan/utils/formatPosition.js +35 -1
- package/libs/index.js +346 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +151 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +51 -1
- package/libs/shared-utils/Object3DHelper/Constants/color.js +20 -1
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +18 -1
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +66 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +109 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +134 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +79 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +41 -1
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +13 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +30 -1
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +35 -1
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +2 -1
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +137 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +136 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +3 -1
- package/libs/shared-utils/Object3DHelper/index.js +169 -1
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +11 -1
- package/libs/shared-utils/Object3DHelper/utils/direction.js +22 -1
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +14 -1
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -1
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +191 -1
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +6 -1
- package/libs/shared-utils/Subscribe.js +50 -1
- package/libs/shared-utils/animationFrame/BetterTween.js +26 -1
- package/libs/shared-utils/animationFrame/calculateProgress.js +6 -1
- package/libs/shared-utils/animationFrame/formatRad.js +11 -1
- package/libs/shared-utils/animationFrame/index.js +28 -1
- package/libs/shared-utils/animationFrame/tween.js +28 -1
- package/libs/shared-utils/changeModelCanvasOpacity.js +12 -1
- package/libs/shared-utils/createCanvasTextTexture.js +11 -1
- package/libs/shared-utils/createLine/index.js +9 -1
- package/libs/shared-utils/debounce.js +11 -1
- package/libs/shared-utils/equal.js +54 -1
- package/libs/shared-utils/filter.js +10 -1
- package/libs/shared-utils/five/changeMode.js +39 -1
- package/libs/shared-utils/getPxmm.js +20 -1
- package/libs/shared-utils/index.js +35 -1
- package/libs/shared-utils/isNil.js +10 -1
- package/libs/shared-utils/isTruelyObject.js +6 -1
- package/libs/shared-utils/math/Interval.js +23 -1
- package/libs/shared-utils/math/Rectangle.js +23 -1
- package/libs/shared-utils/math/index.js +1 -1
- package/libs/shared-utils/math/planimetry.js +43 -1
- package/libs/shared-utils/math/rad2Deg.js +6 -1
- package/libs/shared-utils/nearlyEqual.js +6 -1
- package/libs/shared-utils/nextFrame.js +6 -1
- package/libs/shared-utils/noop.js +5 -1
- package/libs/shared-utils/object3d2LocalMatrix.js +18 -1
- package/libs/shared-utils/removeArrayItem.js +8 -1
- package/libs/shared-utils/tap.js +6 -1
- package/libs/shared-utils/three/Assets/index.js +4 -1
- package/libs/shared-utils/three/FivePointSelector.js +49 -1
- package/libs/shared-utils/three/Magnifier.js +104 -1
- package/libs/shared-utils/three/PointDomHelper.js +60 -1
- package/libs/shared-utils/three/PointHelper.js +60 -3
- package/libs/shared-utils/three/getCoords.js +13 -1
- package/libs/shared-utils/three/getIntersect.js +8 -1
- package/libs/shared-utils/three/getRaycaster.js +12 -1
- package/libs/shared-utils/three/index.js +6 -1
- package/libs/shared-utils/three/loadTexture.js +28 -1
- package/libs/shared-utils/three/transformPositionToVector3.js +5 -1
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +24 -1
- package/libs/shared-utils/throttle.js +11 -1
- package/libs/shared-utils/tinyEJSrender.js +138 -14
- package/libs/shared-utils/to.js +28 -1
- package/libs/shared-utils/uuid.js +9 -1
- package/libs/vendor/swiper/components-shared/get-changed-params.js +29 -1
- package/libs/vendor/swiper/components-shared/get-params.js +23 -1
- package/libs/vendor/swiper/components-shared/mount-swiper.js +14 -1
- package/libs/vendor/swiper/components-shared/params-list.js +120 -1
- package/libs/vendor/swiper/components-shared/update-swiper.js +36 -1
- package/libs/vendor/swiper/components-shared/utils.js +32 -1
- package/libs/vendor/swiper/svelte/swiper-slide.js +182 -1
- package/libs/vendor/swiper/svelte/swiper-svelte.js +3 -1
- package/libs/vendor/swiper/svelte/swiper.js +254 -1
- package/package.json +8 -197
- package/esm/CSS3DRenderPlugin/CSS3DRender.d.ts +0 -167
- package/esm/CSS3DRenderPlugin/CSS3DRender.js +0 -327
- package/esm/CSS3DRenderPlugin/Controller.d.ts +0 -81
- package/esm/CSS3DRenderPlugin/Controller.js +0 -83
- package/esm/CSS3DRenderPlugin/index.d.ts +0 -5
- package/esm/CSS3DRenderPlugin/index.js +0 -14
- package/esm/CSS3DRenderPlugin/typing.d.ts +0 -26
- package/esm/CSS3DRenderPlugin/typing.js +0 -1
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.d.ts +0 -34
- package/esm/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +0 -65
- package/esm/CSS3DRenderPlugin/utils/centerPoint.d.ts +0 -2
- package/esm/CSS3DRenderPlugin/utils/centerPoint.js +0 -10
- package/esm/CSS3DRenderPlugin/utils/evenNumber.d.ts +0 -3
- package/esm/CSS3DRenderPlugin/utils/evenNumber.js +0 -7
- package/esm/CSS3DRenderPlugin/utils/index.d.ts +0 -4
- package/esm/CSS3DRenderPlugin/utils/index.js +0 -1
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.d.ts +0 -13
- package/esm/CSS3DRenderPlugin/utils/positionToVector3.js +0 -6
- package/esm/CSS3DRenderPlugin/utils/random.d.ts +0 -1
- package/esm/CSS3DRenderPlugin/utils/random.js +0 -1
- package/esm/CameraMovementPlugin/CameraMovementPlugin.d.ts +0 -7
- package/esm/CameraMovementPlugin/CameraMovementPlugin.js +0 -87
- package/esm/CameraMovementPlugin/index.d.ts +0 -5
- package/esm/CameraMovementPlugin/index.js +0 -16
- package/esm/CameraMovementPlugin/typing.d.ts +0 -68
- package/esm/CameraMovementPlugin/typing.js +0 -5
- package/esm/CruisePlugin/Controller.d.ts +0 -172
- package/esm/CruisePlugin/Controller.js +0 -484
- package/esm/CruisePlugin/index.d.ts +0 -6
- package/esm/CruisePlugin/index.js +0 -28
- package/esm/CruisePlugin/typing.d.ts +0 -134
- package/esm/CruisePlugin/utils/coordinatesAngle.d.ts +0 -12
- package/esm/CruisePlugin/utils/coordinatesAngle.js +0 -8
- package/esm/CruisePlugin/utils/coordinatesToVector.d.ts +0 -7
- package/esm/CruisePlugin/utils/coordinatesToVector.js +0 -12
- package/esm/CruisePlugin/utils/formatRad.d.ts +0 -7
- package/esm/CruisePlugin/utils/formatRad.js +0 -7
- package/esm/CruisePlugin/utils/linerValue.d.ts +0 -1
- package/esm/CruisePlugin/utils/linerValue.js +0 -7
- package/esm/CruisePlugin/utils/safeCall.d.ts +0 -1
- package/esm/CruisePlugin/utils/safeCall.js +0 -28
- package/esm/CruisePlugin/utils/sleep.d.ts +0 -1
- package/esm/CruisePlugin/utils/sleep.js +0 -10
- package/esm/CruisePlugin/utils/vectorToCoordinates.d.ts +0 -7
- package/esm/CruisePlugin/utils/vectorToCoordinates.js +0 -10
- package/esm/GuideLinePlugin/Controller.d.ts +0 -51
- package/esm/GuideLinePlugin/Controller.js +0 -143
- package/esm/GuideLinePlugin/index.d.ts +0 -5
- package/esm/GuideLinePlugin/index.js +0 -16
- package/esm/GuideLinePlugin/typing.d.ts +0 -34
- package/esm/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
- package/esm/GuideLinePlugin/utils/getArrowMaterial.js +0 -13
- package/esm/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/esm/GuideLinePlugin/utils/getLineGeometries.js +0 -64
- package/esm/GuideLinePlugin/utils/polyline-normals.d.ts +0 -3
- package/esm/ItemLabelPlugin/ItemLabelComponent.js +0 -271
- package/esm/ItemLabelPlugin/ItemLabelItem.js +0 -134
- package/esm/ItemLabelPlugin/Plugin.d.ts +0 -4
- package/esm/ItemLabelPlugin/Plugin.js +0 -81
- package/esm/ItemLabelPlugin/events.type.d.ts +0 -9
- package/esm/ItemLabelPlugin/index.d.ts +0 -9
- package/esm/ItemLabelPlugin/index.js +0 -26
- package/esm/ItemLabelPlugin/typings.d.ts +0 -65
- package/esm/ItemLabelPlugin/typings.js +0 -4
- package/esm/ItemLabelPlugin/utils/getLabelTransform.d.ts +0 -1
- package/esm/ItemLabelPlugin/utils/getLabelTransform.js +0 -4
- package/esm/ItemLabelPlugin/utils/getStrokeLength.d.ts +0 -5
- package/esm/ItemLabelPlugin/utils/getStrokeLength.js +0 -16
- package/esm/ItemLabelPlugin/utils/isImpacted.d.ts +0 -8
- package/esm/ItemLabelPlugin/utils/isImpacted.js +0 -10
- package/esm/ItemLabelPlugin/utils/parseData.d.ts +0 -3
- package/esm/ItemLabelPlugin/utils/parseData.js +0 -21
- package/esm/ItemLabelPlugin/utils/transform2RenderData.d.ts +0 -3
- package/esm/ItemLabelPlugin/utils/transform2RenderData.js +0 -21
- package/esm/ModelChassisCompassPlugin/Plugin.d.ts +0 -19
- package/esm/ModelChassisCompassPlugin/Plugin.js +0 -70
- package/esm/ModelChassisCompassPlugin/index.d.ts +0 -4
- package/esm/ModelChassisCompassPlugin/index.js +0 -10
- package/esm/ModelEntryDoorGuidePlugin/Plugin.d.ts +0 -26
- package/esm/ModelEntryDoorGuidePlugin/Plugin.js +0 -77
- package/esm/ModelEntryDoorGuidePlugin/index.d.ts +0 -4
- package/esm/ModelEntryDoorGuidePlugin/index.js +0 -11
- package/esm/ModelItemLabelPlugin/ItemLabelComponent.js +0 -212
- package/esm/ModelItemLabelPlugin/ItemLabelItem.js +0 -43
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +0 -4
- package/esm/ModelItemLabelPlugin/ModelItemLabelPlugin.js +0 -79
- package/esm/ModelItemLabelPlugin/events.type.d.ts +0 -9
- package/esm/ModelItemLabelPlugin/events.type.js +0 -1
- package/esm/ModelItemLabelPlugin/index.d.ts +0 -9
- package/esm/ModelItemLabelPlugin/index.js +0 -22
- package/esm/ModelItemLabelPlugin/typings.d.ts +0 -56
- package/esm/ModelItemLabelPlugin/typings.js +0 -4
- package/esm/ModelItemLabelPlugin/utils/parseData.d.ts +0 -3
- package/esm/ModelItemLabelPlugin/utils/parseData.js +0 -19
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.d.ts +0 -1
- package/esm/ModelRoomLabelPlugin/Assets/roomLabelBg.js +0 -4
- package/esm/ModelRoomLabelPlugin/Controller.d.ts +0 -36
- package/esm/ModelRoomLabelPlugin/Controller.js +0 -60
- package/esm/ModelRoomLabelPlugin/RoomLabelItem.js +0 -45
- package/esm/ModelRoomLabelPlugin/RoomLabelItems.js +0 -162
- package/esm/ModelRoomLabelPlugin/index.d.ts +0 -12
- package/esm/ModelRoomLabelPlugin/index.js +0 -17
- package/esm/ModelRoomLabelPlugin/typings.d.ts +0 -35
- package/esm/ModelRoomLabelPlugin/utils/parseData.d.ts +0 -3
- package/esm/ModelRoomLabelPlugin/utils/parseData.js +0 -16
- package/esm/ModelTVVideoPlugin/Plugin.d.ts +0 -4
- package/esm/ModelTVVideoPlugin/Plugin.js +0 -163
- package/esm/ModelTVVideoPlugin/index.d.ts +0 -5
- package/esm/ModelTVVideoPlugin/index.js +0 -19
- package/esm/ModelTVVideoPlugin/typings.d.ts +0 -25
- package/esm/ModelTVVideoPlugin/typings.js +0 -4
- package/esm/ModelTVVideoPlugin/utils/parseData.d.ts +0 -2
- package/esm/ModelTVVideoPlugin/utils/parseData.js +0 -20
- package/esm/ModelViewPlugin/Plugin.d.ts +0 -28
- package/esm/ModelViewPlugin/Plugin.js +0 -106
- package/esm/ModelViewPlugin/index.d.ts +0 -4
- package/esm/ModelViewPlugin/index.js +0 -8
- package/esm/Object3DHelperPlugin/Controller.d.ts +0 -65
- package/esm/Object3DHelperPlugin/Controller.js +0 -145
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.d.ts +0 -19
- package/esm/Object3DHelperPlugin/FiveControllerWrapper.js +0 -31
- package/esm/Object3DHelperPlugin/index.d.ts +0 -6
- package/esm/Object3DHelperPlugin/index.js +0 -42
- package/esm/Object3DHelperPlugin/typings.d.ts +0 -24
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.d.ts +0 -1
- package/esm/PanoCompassPlugin/Assets/roomInfoIcon.js +0 -4
- package/esm/PanoCompassPlugin/Controller.d.ts +0 -84
- package/esm/PanoCompassPlugin/Controller.js +0 -224
- package/esm/PanoCompassPlugin/getRoomInfoInstance.d.ts +0 -8
- package/esm/PanoCompassPlugin/getRoomInfoInstance.js +0 -24
- package/esm/PanoCompassPlugin/index.d.ts +0 -7
- package/esm/PanoCompassPlugin/index.js +0 -25
- package/esm/PanoCompassPlugin/typings.d.ts +0 -57
- package/esm/PanoCursorRaycasterPlugin/index.d.ts +0 -48
- package/esm/PanoCursorRaycasterPlugin/index.js +0 -60
- package/esm/PanoDoorLabelPlugin/BaseController.d.ts +0 -60
- package/esm/PanoDoorLabelPlugin/BaseController.js +0 -59
- package/esm/PanoDoorLabelPlugin/Controller.d.ts +0 -37
- package/esm/PanoDoorLabelPlugin/Controller.js +0 -219
- package/esm/PanoDoorLabelPlugin/DoorLabelItem.js +0 -65
- package/esm/PanoDoorLabelPlugin/index.d.ts +0 -7
- package/esm/PanoDoorLabelPlugin/index.js +0 -15
- package/esm/PanoDoorLabelPlugin/typings.d.ts +0 -38
- package/esm/PanoDoorLabelPlugin/utils.d.ts +0 -5
- package/esm/PanoDoorLabelPlugin/utils.js +0 -23
- package/esm/PanoMeasurePlugin/Controller/BaseController.d.ts +0 -43
- package/esm/PanoMeasurePlugin/Controller/BaseController.js +0 -53
- package/esm/PanoMeasurePlugin/Controller/EditController.d.ts +0 -48
- package/esm/PanoMeasurePlugin/Controller/EditController.js +0 -102
- package/esm/PanoMeasurePlugin/Controller/MixedController.d.ts +0 -42
- package/esm/PanoMeasurePlugin/Controller/MixedController.js +0 -125
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.d.ts +0 -12
- package/esm/PanoMeasurePlugin/Controller/ShortcutKeyController.js +0 -33
- package/esm/PanoMeasurePlugin/Controller/ViewController.d.ts +0 -16
- package/esm/PanoMeasurePlugin/Controller/ViewController.js +0 -90
- package/esm/PanoMeasurePlugin/Controller/WatchController.d.ts +0 -26
- package/esm/PanoMeasurePlugin/Controller/WatchController.js +0 -154
- package/esm/PanoMeasurePlugin/Controller/index.d.ts +0 -73
- package/esm/PanoMeasurePlugin/Controller/index.js +0 -140
- package/esm/PanoMeasurePlugin/Model/index.d.ts +0 -35
- package/esm/PanoMeasurePlugin/Model/index.js +0 -92
- package/esm/PanoMeasurePlugin/Model/line.d.ts +0 -30
- package/esm/PanoMeasurePlugin/Model/line.js +0 -56
- package/esm/PanoMeasurePlugin/Model/point.d.ts +0 -16
- package/esm/PanoMeasurePlugin/Model/point.js +0 -30
- package/esm/PanoMeasurePlugin/Model/polyline.d.ts +0 -16
- package/esm/PanoMeasurePlugin/Model/polyline.js +0 -47
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.d.ts +0 -2
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +0 -14
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.d.ts +0 -2
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +0 -4
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.d.ts +0 -2
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +0 -4
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +0 -25
- package/esm/PanoMeasurePlugin/Modules/DeleteDom/index.js +0 -68
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.d.ts +0 -11
- package/esm/PanoMeasurePlugin/Modules/FiveHelper.js +0 -28
- package/esm/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -18
- package/esm/PanoMeasurePlugin/Modules/GuideController.js +0 -41
- package/esm/PanoMeasurePlugin/Modules/Magnifier.d.ts +0 -59
- package/esm/PanoMeasurePlugin/Modules/Magnifier.js +0 -103
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.d.ts +0 -2
- package/esm/PanoMeasurePlugin/Modules/UIController/HTML.js +0 -129
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +0 -15
- package/esm/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +0 -50
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +0 -13
- package/esm/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +0 -36
- package/esm/PanoMeasurePlugin/Modules/UIController/index.d.ts +0 -20
- package/esm/PanoMeasurePlugin/Modules/UIController/index.js +0 -48
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.d.ts +0 -4
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +0 -82
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +0 -12
- package/esm/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +0 -39
- package/esm/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -16
- package/esm/PanoMeasurePlugin/Modules/UIController/style.js +0 -62
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.d.ts +0 -4
- package/esm/PanoMeasurePlugin/Modules/rangePiece/html.js +0 -66
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.d.ts +0 -44
- package/esm/PanoMeasurePlugin/Modules/rangePiece/index.js +0 -130
- package/esm/PanoMeasurePlugin/index.d.ts +0 -10
- package/esm/PanoMeasurePlugin/index.js +0 -61
- package/esm/PanoMeasurePlugin/typings/data.d.ts +0 -37
- package/esm/PanoMeasurePlugin/typings/event.type.d.ts +0 -37
- package/esm/PanoMeasurePlugin/typings/index.d.ts +0 -8
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.d.ts +0 -10
- package/esm/PanoMeasurePlugin/utils/calculateThreeMouse.js +0 -12
- package/esm/PanoMeasurePlugin/utils/constants.d.ts +0 -4
- package/esm/PanoMeasurePlugin/utils/constants.js +0 -36
- package/esm/PanoMeasurePlugin/utils/distanceDom.d.ts +0 -28
- package/esm/PanoMeasurePlugin/utils/distanceDom.js +0 -62
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.d.ts +0 -2
- package/esm/PanoMeasurePlugin/utils/findAssociatedLines.js +0 -13
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.d.ts +0 -10
- package/esm/PanoMeasurePlugin/utils/findClosestPoint.js +0 -15
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +0 -4
- package/esm/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +0 -9
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.d.ts +0 -10
- package/esm/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +0 -8
- package/esm/PanoMeasurePlugin/utils/ironbox.d.ts +0 -1
- package/esm/PanoMeasurePlugin/utils/ironbox.js +0 -4
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.d.ts +0 -2
- package/esm/PanoMeasurePlugin/utils/isNDCPointInScreen.js +0 -7
- package/esm/PanoMeasurePlugin/utils/line.d.ts +0 -17
- package/esm/PanoMeasurePlugin/utils/line.js +0 -17
- package/esm/PanoMeasurePlugin/utils/math.d.ts +0 -17
- package/esm/PanoMeasurePlugin/utils/math.js +0 -12
- package/esm/PanoMeasurePlugin/utils/mouseGroup.d.ts +0 -7
- package/esm/PanoMeasurePlugin/utils/mouseGroup.js +0 -46
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.d.ts +0 -5
- package/esm/PanoMeasurePlugin/utils/ndc2Screen.js +0 -8
- package/esm/PanoRulerPlugin/Plugin.d.ts +0 -34
- package/esm/PanoRulerPlugin/Plugin.js +0 -268
- package/esm/PanoRulerPlugin/index.d.ts +0 -5
- package/esm/PanoRulerPlugin/index.js +0 -11
- package/esm/PanoRulerPlugin/style.d.ts +0 -2
- package/esm/PanoRulerPlugin/style.js +0 -90
- package/esm/PanoRulerPlugin/typings.d.ts +0 -21
- package/esm/PanoRulerProPlugin/Controller.d.ts +0 -15
- package/esm/PanoRulerProPlugin/Controller.js +0 -93
- package/esm/PanoRulerProPlugin/RulerItem.js +0 -128
- package/esm/PanoRulerProPlugin/RulerItems.js +0 -180
- package/esm/PanoRulerProPlugin/index.d.ts +0 -8
- package/esm/PanoRulerProPlugin/index.js +0 -19
- package/esm/PanoRulerProPlugin/typings.d.ts +0 -46
- package/esm/PanoSpatialTagPlugin/Components/origins.js +0 -81
- package/esm/PanoSpatialTagPlugin/Components/tag.js +0 -124
- package/esm/PanoSpatialTagPlugin/Plugin.d.ts +0 -35
- package/esm/PanoSpatialTagPlugin/Plugin.js +0 -246
- package/esm/PanoSpatialTagPlugin/index.d.ts +0 -5
- package/esm/PanoSpatialTagPlugin/index.js +0 -25
- package/esm/PanoSpatialTagPlugin/store.d.ts +0 -1
- package/esm/PanoSpatialTagPlugin/store.js +0 -5
- package/esm/PanoSpatialTagPlugin/style.d.ts +0 -1
- package/esm/PanoSpatialTagPlugin/style.js +0 -11
- package/esm/PanoSpatialTagPlugin/typings.d.ts +0 -40
- package/esm/PanoSpatialTagPlugin/typings.js +0 -1
- package/esm/PanoTagPlugin/Assets/Icon.d.ts +0 -3
- package/esm/PanoTagPlugin/Assets/Icon.js +0 -6
- package/esm/PanoTagPlugin/Components/Common/Arrow.js +0 -103
- package/esm/PanoTagPlugin/Components/Common/Audio.js +0 -166
- package/esm/PanoTagPlugin/Components/Common/Line/Polyline.js +0 -93
- package/esm/PanoTagPlugin/Components/Common/Line/Straight.js +0 -90
- package/esm/PanoTagPlugin/Components/Common/Media.js +0 -393
- package/esm/PanoTagPlugin/Components/Common/MediaItem.js +0 -139
- package/esm/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
- package/esm/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -51
- package/esm/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -51
- package/esm/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
- package/esm/PanoTagPlugin/Components/Common/Shadow.js +0 -124
- package/esm/PanoTagPlugin/Components/Common/Text.js +0 -131
- package/esm/PanoTagPlugin/Components/Tag/AudioTag.js +0 -134
- package/esm/PanoTagPlugin/Components/Tag/CustomTag.js +0 -73
- package/esm/PanoTagPlugin/Components/Tag/ImageTextTag.js +0 -192
- package/esm/PanoTagPlugin/Components/Tag/LinkTag.js +0 -126
- package/esm/PanoTagPlugin/Components/Tag/MarketingTag.js +0 -258
- package/esm/PanoTagPlugin/Components/Tag/MediaPlane.js +0 -87
- package/esm/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
- package/esm/PanoTagPlugin/Components/Tag/index.js +0 -290
- package/esm/PanoTagPlugin/Components/TagContainer.js +0 -156
- package/esm/PanoTagPlugin/Components/TagWrapper.js +0 -153
- package/esm/PanoTagPlugin/controller/TagCacheController.d.ts +0 -22
- package/esm/PanoTagPlugin/controller/TagCacheController.js +0 -31
- package/esm/PanoTagPlugin/controller/TagComputer.d.ts +0 -69
- package/esm/PanoTagPlugin/controller/TagComputer.js +0 -264
- package/esm/PanoTagPlugin/controller/index.d.ts +0 -144
- package/esm/PanoTagPlugin/controller/index.js +0 -376
- package/esm/PanoTagPlugin/index.d.ts +0 -8
- package/esm/PanoTagPlugin/index.js +0 -85
- package/esm/PanoTagPlugin/tag.config.d.ts +0 -7
- package/esm/PanoTagPlugin/tag.config.js +0 -43
- package/esm/PanoTagPlugin/typings/controller.d.ts +0 -103
- package/esm/PanoTagPlugin/typings/controller.js +0 -1
- package/esm/PanoTagPlugin/typings/index.d.ts +0 -2
- package/esm/PanoTagPlugin/typings/index.js +0 -1
- package/esm/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/esm/PanoTagPlugin/typings/tag.js +0 -7
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -2
- package/esm/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -6
- package/esm/PanoTagPlugin/utils/addDebugPoints.d.ts +0 -3
- package/esm/PanoTagPlugin/utils/addDebugPoints.js +0 -27
- package/esm/PanoTagPlugin/utils/checkRange.d.ts +0 -4
- package/esm/PanoTagPlugin/utils/checkRange.js +0 -10
- package/esm/PanoTagPlugin/utils/constants.d.ts +0 -3
- package/esm/PanoTagPlugin/utils/constants.js +0 -7
- package/esm/PanoTagPlugin/utils/debounce.d.ts +0 -7
- package/esm/PanoTagPlugin/utils/debounce.js +0 -12
- package/esm/PanoTagPlugin/utils/doUtil.d.ts +0 -1
- package/esm/PanoTagPlugin/utils/doUtil.js +0 -12
- package/esm/PanoTagPlugin/utils/index.d.ts +0 -12
- package/esm/PanoTagPlugin/utils/index.js +0 -1
- package/esm/PanoTagPlugin/utils/noTypecheck.d.ts +0 -1
- package/esm/PanoTagPlugin/utils/noTypecheck.js +0 -4
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.d.ts +0 -2
- package/esm/PanoTagPlugin/utils/normalPositionToPositions.js +0 -13
- package/esm/PanoTagPlugin/utils/planeNormal.d.ts +0 -4
- package/esm/PanoTagPlugin/utils/planeNormal.js +0 -11
- package/esm/PanoTagPlugin/utils/resizeObserver.d.ts +0 -4
- package/esm/PanoTagPlugin/utils/resizeObserver.js +0 -17
- package/esm/PanoTagPlugin/utils/search.d.ts +0 -11
- package/esm/PanoTagPlugin/utils/search.js +0 -15
- package/esm/PanoTagPlugin/utils/tagPosition.d.ts +0 -3
- package/esm/PanoTagPlugin/utils/tagPosition.js +0 -13
- package/esm/PanoTagPlugin/utils/throttle.d.ts +0 -7
- package/esm/PanoTagPlugin/utils/throttle.js +0 -11
- package/esm/base/BasePlugin.d.ts +0 -106
- package/esm/base/BasePlugin.js +0 -18
- package/esm/base/BasePluginWithData.d.ts +0 -34
- package/esm/base/BasePluginWithData.js +0 -6
- package/esm/components/PaintBrush/Controller.d.ts +0 -43
- package/esm/components/PaintBrush/Controller.js +0 -308
- package/esm/components/PaintBrush/Subscribe.d.ts +0 -76
- package/esm/components/PaintBrush/Subscribe.js +0 -47
- package/esm/components/PaintBrush/index.d.ts +0 -27
- package/esm/components/PaintBrush/index.js +0 -52
- package/esm/components/PaintBrush/style.d.ts +0 -2
- package/esm/components/PaintBrush/style.js +0 -104
- package/esm/components/PaintBrush/tween.d.ts +0 -7
- package/esm/components/PaintBrush/tween.js +0 -11
- package/esm/components/PaintBrush/typings.d.ts +0 -58
- package/esm/components/PaintBrush/typings.js +0 -4
- package/esm/components/PaintBrush/utils.d.ts +0 -26
- package/esm/components/PaintBrush/utils.js +0 -45
- package/esm/components/index.d.ts +0 -2
- package/esm/components/index.js +0 -13
- package/esm/env.d.ts +0 -1
- package/esm/floorplan/Assets/camera.d.ts +0 -1
- package/esm/floorplan/Assets/camera.js +0 -4
- package/esm/floorplan/Assets/compass.d.ts +0 -1
- package/esm/floorplan/Assets/compass.js +0 -4
- package/esm/floorplan/Assets/floorplanExtraObject.d.ts +0 -1
- package/esm/floorplan/Assets/floorplanExtraObject.js +0 -4
- package/esm/floorplan/Components/BaseImage.js +0 -103
- package/esm/floorplan/Components/Camera.js +0 -62
- package/esm/floorplan/Components/Compass.js +0 -60
- package/esm/floorplan/Components/CurrentFloor.js +0 -246
- package/esm/floorplan/Components/Main.js +0 -264
- package/esm/floorplan/Components/Normalmage.js +0 -37
- package/esm/floorplan/Components/RoomHighlight/Room.js +0 -61
- package/esm/floorplan/Components/RoomHighlight/RoomHighlight.js +0 -121
- package/esm/floorplan/Components/RoomLabels/RoomLabel.js +0 -153
- package/esm/floorplan/Components/RoomLabels/RoomLabels.js +0 -174
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial.js +0 -196
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_0.js +0 -37
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_1.js +0 -39
- package/esm/floorplan/Components/RoomMaterials/RoomMaterial_2.js +0 -37
- package/esm/floorplan/Components/RuleLabels/RuleItem.js +0 -134
- package/esm/floorplan/Components/RuleLabels/RuleLabels.js +0 -139
- package/esm/floorplan/Components/SvgImage.js +0 -47
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.d.ts +0 -97
- package/esm/floorplan/MapviewFloorplanPlugin/Controller.js +0 -321
- package/esm/floorplan/MapviewFloorplanPlugin/index.d.ts +0 -7
- package/esm/floorplan/MapviewFloorplanPlugin/index.js +0 -50
- package/esm/floorplan/MapviewFloorplanPlugin/typing.d.ts +0 -1
- package/esm/floorplan/ModelFloorplanPlugin/Controller.d.ts +0 -99
- package/esm/floorplan/ModelFloorplanPlugin/Controller.js +0 -316
- package/esm/floorplan/ModelFloorplanPlugin/index.d.ts +0 -7
- package/esm/floorplan/ModelFloorplanPlugin/index.js +0 -50
- package/esm/floorplan/ModelFloorplanPlugin/typing.d.ts +0 -1
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +0 -85
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +0 -129
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +0 -72
- package/esm/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +0 -183
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.d.ts +0 -36
- package/esm/floorplan/PanoFloorplanRadarPlugin/Controller.js +0 -164
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.d.ts +0 -7
- package/esm/floorplan/PanoFloorplanRadarPlugin/index.js +0 -27
- package/esm/floorplan/PanoFloorplanRadarPlugin/typing.d.ts +0 -52
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.d.ts +0 -69
- package/esm/floorplan/TopviewFloorplanPlugin/Controller.js +0 -273
- package/esm/floorplan/TopviewFloorplanPlugin/index.d.ts +0 -7
- package/esm/floorplan/TopviewFloorplanPlugin/index.js +0 -47
- package/esm/floorplan/TopviewFloorplanPlugin/typing.d.ts +0 -11
- package/esm/floorplan/constant.d.ts +0 -5
- package/esm/floorplan/constant.js +0 -4
- package/esm/floorplan/index.d.ts +0 -7
- package/esm/floorplan/index.js +0 -6
- package/esm/floorplan/typings/floorplanData.d.ts +0 -137
- package/esm/floorplan/typings/floorplanData.js +0 -1
- package/esm/floorplan/typings/floorplanServerData.d.ts +0 -144
- package/esm/floorplan/typings/floorplanServerData.js +0 -101
- package/esm/floorplan/typings/index.d.ts +0 -117
- package/esm/floorplan/typings/utility.d.ts +0 -2
- package/esm/floorplan/utils/constant.d.ts +0 -22
- package/esm/floorplan/utils/constant.js +0 -7
- package/esm/floorplan/utils/correctFiveState.d.ts +0 -15
- package/esm/floorplan/utils/correctFiveState.js +0 -54
- package/esm/floorplan/utils/formatData.d.ts +0 -5
- package/esm/floorplan/utils/formatData.js +0 -104
- package/esm/floorplan/utils/formatPosition.d.ts +0 -36
- package/esm/floorplan/utils/formatPosition.js +0 -35
- package/esm/index.d.ts +0 -23
- package/esm/index.js +0 -346
- package/esm/shared-utils/Object3DHelper/Base/BaseController.d.ts +0 -48
- package/esm/shared-utils/Object3DHelper/Base/BaseController.js +0 -151
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.d.ts +0 -91
- package/esm/shared-utils/Object3DHelper/Base/BaseHelper.js +0 -51
- package/esm/shared-utils/Object3DHelper/Constants/color.d.ts +0 -12
- package/esm/shared-utils/Object3DHelper/Constants/color.js +0 -20
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +0 -6
- package/esm/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +0 -18
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.d.ts +0 -13
- package/esm/shared-utils/Object3DHelper/Controller/MoveController.js +0 -66
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.d.ts +0 -37
- package/esm/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +0 -109
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.d.ts +0 -22
- package/esm/shared-utils/Object3DHelper/Controller/RotateController.js +0 -134
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.d.ts +0 -11
- package/esm/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +0 -79
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.d.ts +0 -6
- package/esm/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +0 -41
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.d.ts +0 -2
- package/esm/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +0 -13
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.d.ts +0 -13
- package/esm/shared-utils/Object3DHelper/Helper/MoveHelper.js +0 -30
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.d.ts +0 -17
- package/esm/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +0 -35
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.d.ts +0 -11
- package/esm/shared-utils/Object3DHelper/Helper/OutlineHelper.js +0 -2
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.d.ts +0 -40
- package/esm/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +0 -137
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.d.ts +0 -55
- package/esm/shared-utils/Object3DHelper/Helper/RotateHelper.js +0 -136
- package/esm/shared-utils/Object3DHelper/Helper/index.d.ts +0 -5
- package/esm/shared-utils/Object3DHelper/Helper/index.js +0 -3
- package/esm/shared-utils/Object3DHelper/index.d.ts +0 -71
- package/esm/shared-utils/Object3DHelper/index.js +0 -169
- package/esm/shared-utils/Object3DHelper/typings/Direction.d.ts +0 -2
- package/esm/shared-utils/Object3DHelper/typings/Direction.js +0 -1
- package/esm/shared-utils/Object3DHelper/typings/Hooks.d.ts +0 -45
- package/esm/shared-utils/Object3DHelper/typings/Hooks.js +0 -1
- package/esm/shared-utils/Object3DHelper/typings/Scissor.d.ts +0 -17
- package/esm/shared-utils/Object3DHelper/typings/Scissor.js +0 -1
- package/esm/shared-utils/Object3DHelper/typings/index.d.ts +0 -5
- package/esm/shared-utils/Object3DHelper/typings/index.js +0 -1
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.d.ts +0 -14
- package/esm/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +0 -11
- package/esm/shared-utils/Object3DHelper/utils/direction.d.ts +0 -14
- package/esm/shared-utils/Object3DHelper/utils/direction.js +0 -22
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.d.ts +0 -2
- package/esm/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +0 -1
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.d.ts +0 -5
- package/esm/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +0 -14
- package/esm/shared-utils/Object3DHelper/utils/getPoint.d.ts +0 -3
- package/esm/shared-utils/Object3DHelper/utils/getPoint.js +0 -1
- package/esm/shared-utils/Object3DHelper/utils/index.d.ts +0 -8
- package/esm/shared-utils/Object3DHelper/utils/index.js +0 -1
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.d.ts +0 -5
- package/esm/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +0 -1
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.d.ts +0 -1
- package/esm/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +0 -1
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.d.ts +0 -34
- package/esm/shared-utils/Object3DHelper/utils/threex/domevents/index.js +0 -191
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.d.ts +0 -2
- package/esm/shared-utils/Object3DHelper/utils/vectorIsEqual.js +0 -6
- package/esm/shared-utils/Subscribe.d.ts +0 -60
- package/esm/shared-utils/Subscribe.js +0 -50
- package/esm/shared-utils/animationFrame/BetterTween.d.ts +0 -11
- package/esm/shared-utils/animationFrame/BetterTween.js +0 -26
- package/esm/shared-utils/animationFrame/calculateProgress.d.ts +0 -8
- package/esm/shared-utils/animationFrame/calculateProgress.js +0 -6
- package/esm/shared-utils/animationFrame/formatRad.d.ts +0 -15
- package/esm/shared-utils/animationFrame/formatRad.js +0 -11
- package/esm/shared-utils/animationFrame/index.d.ts +0 -16
- package/esm/shared-utils/animationFrame/index.js +0 -28
- package/esm/shared-utils/animationFrame/tween.d.ts +0 -75
- package/esm/shared-utils/animationFrame/tween.js +0 -28
- package/esm/shared-utils/changeModelCanvasOpacity.d.ts +0 -2
- package/esm/shared-utils/changeModelCanvasOpacity.js +0 -12
- package/esm/shared-utils/createCanvasTextTexture.d.ts +0 -8
- package/esm/shared-utils/createCanvasTextTexture.js +0 -11
- package/esm/shared-utils/createLine/index.d.ts +0 -3
- package/esm/shared-utils/createLine/index.js +0 -9
- package/esm/shared-utils/debounce.d.ts +0 -6
- package/esm/shared-utils/debounce.js +0 -11
- package/esm/shared-utils/equal.d.ts +0 -11
- package/esm/shared-utils/equal.js +0 -54
- package/esm/shared-utils/filter.d.ts +0 -27
- package/esm/shared-utils/filter.js +0 -10
- package/esm/shared-utils/five/changeMode.d.ts +0 -5
- package/esm/shared-utils/five/changeMode.js +0 -39
- package/esm/shared-utils/getPxmm.d.ts +0 -19
- package/esm/shared-utils/getPxmm.js +0 -20
- package/esm/shared-utils/index.d.ts +0 -4
- package/esm/shared-utils/index.js +0 -35
- package/esm/shared-utils/isNil.d.ts +0 -10
- package/esm/shared-utils/isNil.js +0 -10
- package/esm/shared-utils/isTruelyObject.d.ts +0 -18
- package/esm/shared-utils/isTruelyObject.js +0 -6
- package/esm/shared-utils/math/Interval.d.ts +0 -13
- package/esm/shared-utils/math/Interval.js +0 -23
- package/esm/shared-utils/math/Rectangle.d.ts +0 -27
- package/esm/shared-utils/math/Rectangle.js +0 -23
- package/esm/shared-utils/math/index.d.ts +0 -2
- package/esm/shared-utils/math/index.js +0 -1
- package/esm/shared-utils/math/planimetry.d.ts +0 -116
- package/esm/shared-utils/math/planimetry.js +0 -43
- package/esm/shared-utils/math/rad2Deg.d.ts +0 -1
- package/esm/shared-utils/math/rad2Deg.js +0 -6
- package/esm/shared-utils/nearlyEqual.d.ts +0 -7
- package/esm/shared-utils/nearlyEqual.js +0 -6
- package/esm/shared-utils/nextFrame.d.ts +0 -1
- package/esm/shared-utils/nextFrame.js +0 -6
- package/esm/shared-utils/noop.d.ts +0 -5
- package/esm/shared-utils/noop.js +0 -5
- package/esm/shared-utils/object3d2LocalMatrix.d.ts +0 -12
- package/esm/shared-utils/object3d2LocalMatrix.js +0 -18
- package/esm/shared-utils/removeArrayItem.d.ts +0 -7
- package/esm/shared-utils/removeArrayItem.js +0 -8
- package/esm/shared-utils/tap.d.ts +0 -8
- package/esm/shared-utils/tap.js +0 -6
- package/esm/shared-utils/three/Assets/index.d.ts +0 -3
- package/esm/shared-utils/three/Assets/index.js +0 -4
- package/esm/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/esm/shared-utils/three/FivePointSelector.js +0 -49
- package/esm/shared-utils/three/Magnifier.d.ts +0 -53
- package/esm/shared-utils/three/Magnifier.js +0 -104
- package/esm/shared-utils/three/PointDomHelper.d.ts +0 -18
- package/esm/shared-utils/three/PointDomHelper.js +0 -60
- package/esm/shared-utils/three/PointHelper.d.ts +0 -21
- package/esm/shared-utils/three/PointHelper.js +0 -73
- package/esm/shared-utils/three/getCoords.d.ts +0 -9
- package/esm/shared-utils/three/getCoords.js +0 -13
- package/esm/shared-utils/three/getIntersect.d.ts +0 -6
- package/esm/shared-utils/three/getIntersect.js +0 -8
- package/esm/shared-utils/three/getRaycaster.d.ts +0 -6
- package/esm/shared-utils/three/getRaycaster.js +0 -12
- package/esm/shared-utils/three/index.d.ts +0 -7
- package/esm/shared-utils/three/index.js +0 -6
- package/esm/shared-utils/three/loadTexture.d.ts +0 -2
- package/esm/shared-utils/three/loadTexture.js +0 -28
- package/esm/shared-utils/three/transformPositionToVector3.d.ts +0 -7
- package/esm/shared-utils/three/transformPositionToVector3.js +0 -5
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.d.ts +0 -2
- package/esm/shared-utils/three/transfromToMeshBasicMaterial.js +0 -24
- package/esm/shared-utils/throttle.d.ts +0 -7
- package/esm/shared-utils/throttle.js +0 -11
- package/esm/shared-utils/tinyEJSrender.d.ts +0 -5
- package/esm/shared-utils/tinyEJSrender.js +0 -140
- package/esm/shared-utils/to.d.ts +0 -8
- package/esm/shared-utils/to.js +0 -28
- package/esm/shared-utils/uuid.d.ts +0 -5
- package/esm/shared-utils/uuid.js +0 -9
- package/esm/typings/math.type.d.ts +0 -44
- package/esm/vendor/swiper/components-shared/get-changed-params.js +0 -29
- package/esm/vendor/swiper/components-shared/get-params.js +0 -23
- package/esm/vendor/swiper/components-shared/mount-swiper.js +0 -14
- package/esm/vendor/swiper/components-shared/params-list.js +0 -120
- package/esm/vendor/swiper/components-shared/update-swiper.js +0 -36
- package/esm/vendor/swiper/components-shared/utils.js +0 -32
- package/esm/vendor/swiper/svelte/swiper-slide.js +0 -182
- package/esm/vendor/swiper/svelte/swiper-svelte.js +0 -3
- package/esm/vendor/swiper/svelte/swiper.js +0 -254
|
@@ -1 +1,87 @@
|
|
|
1
|
-
|
|
1
|
+
var b = (e, o, a) => new Promise((m, p) => {
|
|
2
|
+
var t = (d) => {
|
|
3
|
+
try {
|
|
4
|
+
n(a.next(d));
|
|
5
|
+
} catch (f) {
|
|
6
|
+
p(f);
|
|
7
|
+
}
|
|
8
|
+
}, i = (d) => {
|
|
9
|
+
try {
|
|
10
|
+
n(a.throw(d));
|
|
11
|
+
} catch (f) {
|
|
12
|
+
p(f);
|
|
13
|
+
}
|
|
14
|
+
}, n = (d) => d.done ? m(d.value) : Promise.resolve(d.value).then(t, i);
|
|
15
|
+
n((a = a.apply(e, o)).next());
|
|
16
|
+
});
|
|
17
|
+
import { Five as y } from "@realsee/five";
|
|
18
|
+
import * as h from "@tweenjs/tween.js";
|
|
19
|
+
import { tweenProgress as T } from "../shared-utils/animationFrame/tween.js";
|
|
20
|
+
import { Rotation as r } from "./typing.js";
|
|
21
|
+
import { formatLatitude as P, formatLongitude as v } from "../shared-utils/animationFrame/formatRad.js";
|
|
22
|
+
import { progressNumber as I } from "../shared-utils/animationFrame/calculateProgress.js";
|
|
23
|
+
const w = (e, o, a) => {
|
|
24
|
+
const m = Math.PI, p = m * 2;
|
|
25
|
+
return e = v(e), o = v(o), a === r.Anticlockwise && e < o && (e += p), a === r.Clockwise && o < e && (o += p), a === r.Loop && o - e > m ? w(e, o, r.Anticlockwise) : a === r.Loop && e - o > m ? w(e, o, r.Clockwise) : { from: e, to: o };
|
|
26
|
+
}, R = (e) => {
|
|
27
|
+
const o = {}, a = (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, n = { preload: !0 }) {
|
|
28
|
+
return o.interruptCallback && o.interruptCallback(!1), n.asyncStartCallback && (yield n.asyncStartCallback()), t.mode && t.mode !== e.currentMode && (yield e.changeMode(t.mode)), n.preload && t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (yield e.preloadPano(t.panoIndex)), n.asyncEndCallback && (yield n.asyncEndCallback()), t.panoIndex === void 0 && t.fov === void 0 && t.latitude === void 0 && t.longitude === void 0 ? !0 : yield new Promise((u, l) => {
|
|
29
|
+
const c = t.panoIndex !== void 0 ? t.panoIndex : e.panoIndex;
|
|
30
|
+
c !== void 0 ? e.moveToPano(
|
|
31
|
+
c,
|
|
32
|
+
Object.assign(
|
|
33
|
+
{
|
|
34
|
+
duration: i,
|
|
35
|
+
moveEndCallback: () => u(!0),
|
|
36
|
+
moveCancelCallback: () => l(!1)
|
|
37
|
+
},
|
|
38
|
+
t
|
|
39
|
+
)
|
|
40
|
+
) : l(!1);
|
|
41
|
+
});
|
|
42
|
+
}), m = (t) => {
|
|
43
|
+
const i = e.state, n = P(i.latitude), d = P(t.latitude), { from: f, to: L } = w(
|
|
44
|
+
i.longitude,
|
|
45
|
+
t.longitude,
|
|
46
|
+
t.rotation || r.Loop
|
|
47
|
+
), u = i.fov, l = t.fov;
|
|
48
|
+
return {
|
|
49
|
+
from: { latitude: n, longitude: f, fov: u },
|
|
50
|
+
to: { latitude: d, longitude: L, fov: l }
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
move: a,
|
|
55
|
+
rotate: (d, f, ...L) => b(void 0, [d, f, ...L], function* (t, i, n = {}) {
|
|
56
|
+
o.interruptCallback && o.interruptCallback(!1), n.asyncStartCallback && (yield n.asyncStartCallback()), e.currentMode !== y.Mode.Panorama && (yield e.changeMode(y.Mode.Panorama)), t.panoIndex !== void 0 && t.panoIndex !== e.panoIndex && (n.preload && (yield e.preloadPano(t.panoIndex)), yield new Promise((c, k) => {
|
|
57
|
+
if (!t.panoIndex) {
|
|
58
|
+
c(!0);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
e.moveToPano(t.panoIndex, {
|
|
62
|
+
moveEndCallback: () => c(!0),
|
|
63
|
+
moveCancelCallback: () => k(!1)
|
|
64
|
+
});
|
|
65
|
+
})), n.asyncEndCallback && (yield n.asyncEndCallback());
|
|
66
|
+
const { from: u, to: l } = m(t);
|
|
67
|
+
return yield new Promise((c) => {
|
|
68
|
+
const k = ({ progress: s }) => {
|
|
69
|
+
const C = {};
|
|
70
|
+
C.longitude = I(u.longitude, l.longitude, s), C.latitude = I(u.latitude, l.latitude, s), C.fov = I(u.fov, l.fov, s), e.setState(C, !0);
|
|
71
|
+
}, M = () => {
|
|
72
|
+
c(!0);
|
|
73
|
+
}, E = () => {
|
|
74
|
+
c(!1);
|
|
75
|
+
}, S = t.rotateSpeed ? Math.ceil(Math.abs(l.longitude - u.longitude) / t.rotateSpeed * 1e3) : i, x = T(S, h.Easing.Linear.None).onUpdate(k).onComplete(M).onDestroy(E);
|
|
76
|
+
t.rotation === r.Loop && x.repeat(1 / 0).yoyo(!0), o.interruptCallback = (s = !0) => {
|
|
77
|
+
x.destroy(), o.interruptCallback = void 0, o.timeoutId && (clearTimeout(o.timeoutId), o.timeoutId = void 0), c(s);
|
|
78
|
+
}, o.timeoutId = setTimeout(() => {
|
|
79
|
+
o.interruptCallback && o.interruptCallback(!0);
|
|
80
|
+
}, i);
|
|
81
|
+
});
|
|
82
|
+
})
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export {
|
|
86
|
+
R as CameraMovementPlugin
|
|
87
|
+
};
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import "@realsee/five";
|
|
2
|
+
import "@tweenjs/tween.js";
|
|
3
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
var e = /* @__PURE__ */ ((o) => (o.Move = "Move", o.Rotate = "Rotate", o))(e || {}), r = /* @__PURE__ */ ((o) => (o.Clockwise = "Clockwise", o.Anticlockwise = "Anticlockwise", o.Loop = "Loop", o))(r || {});
|
|
2
|
+
export {
|
|
3
|
+
e as CameraMovementEffect,
|
|
4
|
+
r as Rotation
|
|
5
|
+
};
|
|
@@ -1 +1,484 @@
|
|
|
1
|
-
"use strict";var G=Object.defineProperty,K=Object.defineProperties;var T=Object.getOwnPropertyDescriptors;var E=Object.getOwnPropertySymbols;var U=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var w=(h,f,e)=>f in h?G(h,f,{enumerable:!0,configurable:!0,writable:!0,value:e}):h[f]=e,P=(h,f)=>{for(var e in f||(f={}))U.call(f,e)&&w(h,e,f[e]);if(E)for(var e of E(f))j.call(f,e)&&w(h,e,f[e]);return h},L=(h,f)=>K(h,T(f));var S=(h,f,e)=>(w(h,typeof f!="symbol"?f+"":f,e),e);var m=(h,f,e)=>new Promise((t,i)=>{var a=r=>{try{n(e.next(r))}catch(s){i(s)}},o=r=>{try{n(e.throw(r))}catch(s){i(s)}},n=r=>r.done?t(r.value):Promise.resolve(r.value).then(a,o);n((e=e.apply(h,f)).next())});const O=require("../base/BasePluginWithData.js"),A=require("../GuideLinePlugin/index.js"),k=require("../shared-utils/uuid.js"),q=require("./utils/coordinatesAngle.js"),V=require("./utils/safeCall.js"),Q=require("../shared-utils/equal.js"),R=require("./utils/vectorToCoordinates.js"),$=require("three"),N=require("./utils/linerValue.js"),H=require("./utils/sleep.js");function B(h){if(h&&h.__esModule)return h;const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(h){for(const e in h)if(e!=="default"){const t=Object.getOwnPropertyDescriptor(h,e);Object.defineProperty(f,e,t.get?t:{enumerable:!0,get:()=>h[e]})}}return f.default=h,Object.freeze(f)}const W=B($),M="v1.0.6",_="CruisePlugin",C=`${_}@${M}`,F=()=>{console.error(`${C} is disposed`)},J=()=>{console.warn(`${C} is disabled`)},z=()=>{console.error(`${C} is disabled`)},x=new Map;class D extends O.Controller{constructor(e,t){super(e,t);S(this,"state",{visible:!0,enabled:!0,disposed:!1,playing:!1,speed:1,config:{speedConfig:{rotateSpeed:.001,rotateSpeedUnit:"rad/ms",moveSpeed:.002,moveSpeedUnit:"m/ms"}}});S(this,"data");S(this,"config");S(this,"privateState",{playing:!1,currentPlayQueue:[],currentPlayKeyframe:null,broke:!1,disposers:[],modeChanging:!1});S(this,"GuideLine");this.config=t,Object.assign(window,{[`__${_}_DEBUG__`]:this});const i=this.setFiveLinearUpdateCamera.bind(this),a=this.setFiveOriginUpdateCamera.bind(this);this.hooks.on("play",i),this.hooks.on("broke",a),this.hooks.on("end",a),this.hooks.on("pause",a),this.privateState.disposers.push(()=>{this.hooks.off("play",i),this.hooks.off("broke",a),this.hooks.off("end",a),this.hooks.off("pause",a)})}load(e,t,i){return m(this,null,function*(){var d,g,u,c,v;if(this.state.disposed)return F();this.privateState.fiveOriginGetProgress||(g=(d=this.five.controller)==null?void 0:d.cameraMotion)!=null&&g.getProgress||(yield this.waitFiveLoaded(),this.privateState.fiveOriginGetProgress=(c=(u=this.five.controller)==null?void 0:u.cameraMotion)==null?void 0:c.getProgress),this.clear();const a=this.data?JSON.parse(JSON.stringify(this.data)):void 0,o=yield this.formatData(e);this.data=o,this.hooks.emit("dataChange",o,a);let n=[],r;const s=this.data.keyframes.filter(l=>l.data.panoIndex!==void 0);s.filter((l,y)=>{var p;return l.data.panoIndex!==((p=s[y-1])==null?void 0:p.data.panoIndex)}).map(l=>l.data.panoIndex).forEach(l=>{var p,I;const y=(p=this.five.work.observers[l])==null?void 0:p.floorIndex;if(y!==void 0)if(r===y){const b=n.length-1;n[b]=[...(I=n[b])!=null?I:[],l]}else{r=y;const b=n.length;n[b]=[l]}}),this.GuideLine||(this.GuideLine=A.GuideLinePlugin(this.five,this.config)),(v=this.GuideLine)==null||v.load({routes:n.map(l=>({panoIndexList:l}))}),this.setState({playing:!1}),this.handleVisible(this.state.visible),this.handleEnable(this.state.enabled),this.changePlayState(this.state.playing),this.changeSpeed(this.state.speed),t&&this.setState(t,{userAction:i}),console.log(`${C} loaded`,o),this.hooks.emit("dataLoaded",o)})}play(e){this.setState({playing:!0},e)}playFrom(e){const{index:t,id:i,userAction:a}=e;this.state.playing&&this.setState({playing:!1},{userAction:a}),this.setState({playing:!0},{userAction:a,playFromIndex:t,playFromId:i})}playFromStart(e){return this.playFrom(L(P({},e),{index:0}))}pause(e){this.setState({playing:!1},e)}show(e){return m(this,null,function*(){this.setState({visible:!0},e)})}hide(e){return m(this,null,function*(){this.setState({visible:!1},e)})}enable(e){this.setState({enabled:!0},e)}disable(e){this.setState({enabled:!1},e)}dispose(){this.setState({disposed:!0})}setState(e,t){var a;if(this.state.disposed)return F();if(!this.state.enabled&&e.enabled!==!0&&e.disposed!==!0)return z();const i=P({},this.state);this.state=P(P({},this.state),e),e.disposed!==void 0&&e.disposed!==i.disposed&&e.disposed&&this.handleDispose(),e.visible!==void 0&&e.visible!==i.visible&&this.handleVisible(e.visible,t==null?void 0:t.userAction),e.enabled!==void 0&&e.enabled!==i.enabled&&this.handleEnable(e.enabled,t==null?void 0:t.userAction),e.playing!==void 0&&e.playing!==i.playing&&this.changePlayState(e.playing,t),e.speed!==void 0&&e.speed!==i.speed&&this.changeSpeed(e.speed,t==null?void 0:t.userAction),Q.equal(i,this.state,{deep:!0})||this.hooks.emit("stateChange",{state:this.state,prevState:i,userAction:(a=t==null?void 0:t.userAction)!=null?a:!0})}formatData(e){return m(this,null,function*(){this.five.work||(yield this.waitFiveLoaded());const t=this.five.work.observers,i=(()=>{const a=e;return typeof a=="object"&&a!==null&&a.version&&a.data?a.data:a})();if(i.keyframes)return{keyframesId:k.uuid(),keyframes:i.keyframes.map((a,o)=>{var s;const n=i.keyframes[o+1],r=(()=>!n||n.start===void 0||a.end===void 0?0:n.start-a.end)();return P({id:(s=a.uuid)!=null?s:k.uuid(),moveIndex:o,stay:r,index:o},a)})};if(i.panoIndexList){let a=[];const{moveEffect:o,moveToFirstPanoEffect:n}=i;return this.privateState.moveToFirstPanoEffect=n,i.panoIndexList.forEach((r,s)=>{const d=(()=>{var l,y,p,I;const g=i.panoIndexList.slice(s).find(b=>b!==r);if(g===void 0)return;const u=(l=t[r])==null?void 0:l.position,c=(y=t[g])==null?void 0:y.position;if(!c||!u||((p=t[r])==null?void 0:p.floorIndex)!==((I=t[g])==null?void 0:I.floorIndex))return;const v=new W.Vector3().subVectors(c,u);return R.vectorToCoordinates(v)})();i.moveType===void 0||i.moveType==="justMove"?a.push({moveIndex:s,stay:i.stay,data:P({effect:"Move",panoIndex:r,moveEffect:o},d!=null?d:{})}):i.moveType==="moveAndRotate"&&(a.push({moveIndex:s,stay:i.stay,data:{effect:"Move",panoIndex:r,moveEffect:o}}),d&&a.push({moveIndex:s,stay:i.stay,data:P({effect:"Rotate",panoIndex:r},d)}))}),{keyframesId:k.uuid(),keyframes:a.map((r,s)=>P({id:k.uuid(),index:s},r))}}else throw new Error("format error: data no keyframes or no panoIndexList")})}handleEnable(e,t=!0){var i,a;e?((i=this.GuideLine)==null||i.enable(),this.hooks.emit("enable",{userAction:t})):((a=this.GuideLine)==null||a.disable(),this.changePlayState(!1,{userAction:t}),this.hooks.emit("disable",{userAction:t})),this.state.enabled=e}handleVisible(e,t=!0){var i,a;e?((i=this.GuideLine)==null||i.show(),this.actionIfStateIsEnabled(()=>this.hooks.emit("show",{userAction:t}))):((a=this.GuideLine)==null||a.hide(),this.actionIfStateIsEnabled(()=>this.hooks.emit("hide",{userAction:t}))),this.state.visible=e}changePlayState(e,t){this.actionIfStateIsEnabled(()=>{var i;return this.hooks.emit("playStateChange",e?"playing":"pause",{userAction:(i=t==null?void 0:t.userAction)!=null?i:!0})}),e?this.handlePlay(t):this.handlePause(t),this.state.playing=e}handlePlay(e){return m(this,null,function*(){var c;const{data:t,state:i,privateState:a,hooks:o}=this;if(a.playing||!(t!=null&&t.keyframes)||(t==null?void 0:t.keyframes.length)===0)return;const n=k.uuid();a.playId=n,a.playing=!0,a.broke=!1;const r=t.keyframes,s=this.getPauseData();(e==null?void 0:e.notEmitEvent)!==!0&&o.emit("play",{userAction:(c=e==null?void 0:e.userAction)!=null?c:!0});let d=!1;const u=yield(()=>m(this,null,function*(){var v,l;if((e==null?void 0:e.playFromIndex)!==void 0)return e.playFromIndex;if((e==null?void 0:e.playFromId)!==void 0)return(v=this.data)==null?void 0:v.keyframes.findIndex(y=>y.id===e.playFromId);if(s!=null&&s.keyframeId){const y=(l=this.data)==null?void 0:l.keyframes.find(p=>p.id===s.keyframeId);if(s!=null&&s.fiveState&&(yield this.move(s.fiveState,{moveEffect:a.moveToFirstPanoEffect})),y){if(y.data.effect==="Move")return y.index;if(y.data.effect==="Rotate"){const p=s.duration!==void 0?s.duration*(1-s.playedProgress):void 0;return yield this.playKeyframe(y,{duration:p}),d=!0,y.index+1}}}}))();this.clearPauseData();for(const v of r){if(a.broke||!i.playing||!a.playing||n!==a.playId)return;if(!(u!==void 0&&v.index<u))try{o.emit("playIndexChange",v.index,v),yield this.playKeyframe(v,{moveEffect:d===!1?a.moveToFirstPanoEffect:void 0,duration:800}),v.stay&&(yield H.sleep(v.stay)),d===!1&&(d=!0)}catch(l){return Promise.resolve("broke")}}i.playing&&n===a.playId&&(this.setState({playing:!1},{userAction:!1}),o.emit("end"),this.clearPauseData())})}handlePause(e){var o;const{state:t,privateState:i,hooks:a}=this;t.playing=!1,i.playing!==!1&&(i.playing=!1,this.setPauseData(),i.broke||this.forceInteruptUpdateCamera(),(e==null?void 0:e.notEmitEvent)!==!0&&a.emit("pause",{userAction:(o=e==null?void 0:e.userAction)!=null?o:!0}))}playKeyframe(e,t){return m(this,null,function*(){var a;const{privateState:i}=this;return((a=this.privateState.currentPlayKeyframe)==null?void 0:a.keyframe.id)!==e.id&&(this.privateState.currentPlayKeyframe={keyframe:e}),i.currentPlayQueue.push(this.getPlayPromise(e,t)),this.actionPromiseQueue()})}addInterruptListener(e){const t=()=>{this.privateState.modeChanging||e()},i=e;return this.five.once("gesture",i),this.five.once("wantsChangeMode",t),()=>{this.five.off("gesture",i),this.five.once("wantsChangeMode",t)}}getPlayPromise(e,t){return m(this,null,function*(){var a;const i=e.data;if((a=t==null?void 0:t.duration)!=null||e.start!==void 0&&e.end!==void 0&&e.end-e.start,!!i)return new Promise((o,n)=>{let r=!1;this.addInterruptListener(()=>{if(!r)return this.hooks.emit("broke"),this.privateState.broke=!0,this.setState({playing:!1}),r=!0,n(new Error("play is interupted"))});try{if(r)return;const s=()=>{o(),r=!0};switch(i.effect){case"Move":this.move(i,t).then(s);break;case"Rotate":this.rotate(i,t).then(s);break;default:this.rotate(i,t).then(s)}}catch(s){}})})}actionPromiseQueue(){return m(this,null,function*(){const{privateState:e}=this;return new Promise((t,i)=>{if(e.currentPlayQueue.length===0){t();return}const a=e.currentPlayQueue.shift();if(!a){t();return}a.then(t,i)}).then(()=>e.currentPlayQueue.length===0?Promise.resolve():this.actionPromiseQueue())})}move(e,t){return m(this,null,function*(){if(e.mode&&e.mode!==this.five.currentMode)yield this.changeMode(e);else if(e.panoIndex!==this.five.panoIndex)yield this.changePano(e,t);else return Promise.resolve()})}rotate(e,t){return m(this,null,function*(){if(e.mode&&e.mode!==this.five.currentMode)yield this.changeMode({mode:e.mode,panoIndex:e.panoIndex});else if(e.panoIndex&&e.panoIndex!==this.five.panoIndex)return yield this.changePano(e,t);yield this.updateCamera(e,t==null?void 0:t.duration)})}updateCamera(e,t=800){return m(this,null,function*(){const{five:i,privateState:a,state:o}=this;let n=t;const r=(()=>{var u,c;const d=(u=o.config)==null?void 0:u.speedConfig,g=(c=e.rotateSpeed)!=null?c:d==null?void 0:d.rotateSpeed;if((d==null?void 0:d.rotateSpeedUnit)===void 0)return g;if(g!==void 0)return d.rotateSpeedUnit==="rad/ms"?g:g/1e3})();if(r){const d=this.five.getCurrentState(),g=e;n=q.coordinatesAngle(d,g)/r}a.currentPlayKeyframe&&(a.currentPlayKeyframe.originDuration=n);const s=this.getSpeededDuration(n);return new Promise(d=>{V.safeCall(()=>i.updateCamera(e,s)),setTimeout(()=>d(),s)})})}changePano(e,t){return m(this,null,function*(){var g;const{five:i,privateState:a,state:o}=this;if(typeof e.panoIndex!="number"||e.panoIndex===i.panoIndex)return;i.getCurrentState().mode;const n=i.getCurrentState().mode!=="Panorama";n&&(this.privateState.modeChanging=!0);let r=(g=t==null?void 0:t.duration)!=null?g:800;const s=(()=>{var v,l;const u=(v=o.config)==null?void 0:v.speedConfig,c=(l=e.moveSpeed)!=null?l:u==null?void 0:u.moveSpeed;if((u==null?void 0:u.moveSpeedUnit)===void 0)return c;if(c!==void 0)return u.moveSpeedUnit==="m/ms"?c:c/1e3})();if(s&&typeof i.panoIndex=="number"&&typeof e.panoIndex=="number"){const u=i.work.observers[i.panoIndex].position,c=i.work.observers[e.panoIndex].position;r=u.distanceTo(c)/s}a.currentPlayKeyframe&&(a.currentPlayKeyframe.originDuration=r);const d=this.getSpeededDuration(r);yield new Promise(u=>{var c,v,l;i.moveToPano(e.panoIndex,{latitude:e.latitude,longitude:e.longitude,fov:e.fov,duration:d,effect:(l=(v=t==null?void 0:t.moveEffect)!=null?v:(c=this.state.config)==null?void 0:c.moveEffect)!=null?l:e.moveEffect,moveCancelCallback:()=>u(),moveEndCallback:()=>u()}),n&&i.once("panoArrived",()=>u())}),n&&(this.privateState.modeChanging=!1)})}changeSpeed(e,t=!0){const{state:i,privateState:a,hooks:o}=this,{currentPlayKeyframe:n}=a;if(o.emit("speedChange",e,{userAction:t}),i.playing&&n)try{const r=n.originDuration!==void 0?n.originDuration*(1-this.getProgress()):void 0,s=this.playKeyframe(n.keyframe,{duration:r});a.currentPlayQueue.push(s)}catch(r){}}getSpeededDuration(e){return e/this.state.speed}getProgress(){return this.five.controller.cameraMotion.progress}changeMode(e,t){return m(this,null,function*(){e.mode&&e.mode!==this.five.currentMode&&(this.privateState.modeChanging=!0,console.log("this.privateState.modeChanging",this.privateState.modeChanging),yield this.five.changeMode(e.mode,e,t),this.privateState.modeChanging=!1)})}forceInteruptUpdateCamera(){this.five.updateCamera({},0)}getPauseData(){var e,t;if((e=this.data)!=null&&e.keyframesId)return x.get((t=this.data)==null?void 0:t.keyframesId)}setPauseData(){var e,t,i,a;if((e=this.data)!=null&&e.keyframesId)return x.set((t=this.data)==null?void 0:t.keyframesId,{keyframeId:(i=this.privateState.currentPlayKeyframe)==null?void 0:i.keyframe.id,fiveState:this.five.getCurrentState(),duration:(a=this.privateState.currentPlayKeyframe)==null?void 0:a.originDuration,playedProgress:this.getProgress()})}clearPauseData(){var e,t;if((e=this.data)!=null&&e.keyframesId)return x.delete((t=this.data)==null?void 0:t.keyframesId)}clear(){this.clearPauseData(),this.privateState.currentPlayKeyframe=null}handleDispose(){var e,t;this.setState({playing:!1}),this.clearPauseData(),this.clear(),(e=this.GuideLine)==null||e.dispose(),this.GuideLine=void 0,(t=this.privateState.disposers)==null||t.forEach(i=>i==null?void 0:i())}actionIfStateIsEnabled(e,t){if(this.state.enabled)return e();t!=null&&t.warnLog&&J()}waitFiveLoaded(){return m(this,null,function*(){return new Promise(e=>{if(this.five.work){e();return}this.five.once("loaded",()=>{e()})})})}setFiveLinearUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=e=>{const t=this.five.controller.cameraMotion,i=e-t.startTime;return i<0?0:i>=t.duration?1:1-N.linerValue(1,t.startVelocity,t.duration,i)})}setFiveOriginUpdateCamera(){!this.privateState.fiveOriginGetProgress||(this.five.controller.cameraMotion.getProgress=this.privateState.fiveOriginGetProgress)}}S(D,"PluginVersion",M);exports.CruisePluginController=D;
|
|
1
|
+
var G = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
|
+
var T = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var x = (g, c, e) => c in g ? G(g, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[c] = e, S = (g, c) => {
|
|
6
|
+
for (var e in c || (c = {}))
|
|
7
|
+
T.call(c, e) && x(g, e, c[e]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var e of E(c))
|
|
10
|
+
A.call(c, e) && x(g, e, c[e]);
|
|
11
|
+
return g;
|
|
12
|
+
}, L = (g, c) => K(g, U(c));
|
|
13
|
+
var P = (g, c, e) => (x(g, typeof c != "symbol" ? c + "" : c, e), e);
|
|
14
|
+
var y = (g, c, e) => new Promise((t, i) => {
|
|
15
|
+
var a = (s) => {
|
|
16
|
+
try {
|
|
17
|
+
n(e.next(s));
|
|
18
|
+
} catch (r) {
|
|
19
|
+
i(r);
|
|
20
|
+
}
|
|
21
|
+
}, o = (s) => {
|
|
22
|
+
try {
|
|
23
|
+
n(e.throw(s));
|
|
24
|
+
} catch (r) {
|
|
25
|
+
i(r);
|
|
26
|
+
}
|
|
27
|
+
}, n = (s) => s.done ? t(s.value) : Promise.resolve(s.value).then(a, o);
|
|
28
|
+
n((e = e.apply(g, c)).next());
|
|
29
|
+
});
|
|
30
|
+
import { Controller as O } from "../base/BasePluginWithData.js";
|
|
31
|
+
import { GuideLinePlugin as V } from "../GuideLinePlugin/index.js";
|
|
32
|
+
import { uuid as k } from "../shared-utils/uuid.js";
|
|
33
|
+
import { coordinatesAngle as Q } from "./utils/coordinatesAngle.js";
|
|
34
|
+
import { safeCall as _ } from "./utils/safeCall.js";
|
|
35
|
+
import { equal as $ } from "../shared-utils/equal.js";
|
|
36
|
+
import { vectorToCoordinates as R } from "./utils/vectorToCoordinates.js";
|
|
37
|
+
import * as N from "three";
|
|
38
|
+
import { linerValue as j } from "./utils/linerValue.js";
|
|
39
|
+
import { sleep as H } from "./utils/sleep.js";
|
|
40
|
+
const M = "v1.0.6", D = "CruisePlugin", w = `${D}@${M}`, F = () => {
|
|
41
|
+
console.error(`${w} is disposed`);
|
|
42
|
+
}, J = () => {
|
|
43
|
+
console.warn(`${w} is disabled`);
|
|
44
|
+
}, q = () => {
|
|
45
|
+
console.error(`${w} is disabled`);
|
|
46
|
+
}, C = /* @__PURE__ */ new Map();
|
|
47
|
+
class B extends O {
|
|
48
|
+
constructor(e, t) {
|
|
49
|
+
super(e, t);
|
|
50
|
+
P(this, "state", {
|
|
51
|
+
visible: !0,
|
|
52
|
+
enabled: !0,
|
|
53
|
+
disposed: !1,
|
|
54
|
+
playing: !1,
|
|
55
|
+
speed: 1,
|
|
56
|
+
config: {
|
|
57
|
+
speedConfig: {
|
|
58
|
+
rotateSpeed: 1e-3,
|
|
59
|
+
rotateSpeedUnit: "rad/ms",
|
|
60
|
+
moveSpeed: 2e-3,
|
|
61
|
+
moveSpeedUnit: "m/ms"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
P(this, "data");
|
|
66
|
+
P(this, "config");
|
|
67
|
+
P(this, "privateState", {
|
|
68
|
+
playing: !1,
|
|
69
|
+
currentPlayQueue: [],
|
|
70
|
+
currentPlayKeyframe: null,
|
|
71
|
+
broke: !1,
|
|
72
|
+
disposers: [],
|
|
73
|
+
modeChanging: !1
|
|
74
|
+
});
|
|
75
|
+
P(this, "GuideLine");
|
|
76
|
+
this.config = t, Object.assign(window, { [`__${D}_DEBUG__`]: this });
|
|
77
|
+
const i = this.setFiveLinearUpdateCamera.bind(this), a = this.setFiveOriginUpdateCamera.bind(this);
|
|
78
|
+
this.hooks.on("play", i), this.hooks.on("broke", a), this.hooks.on("end", a), this.hooks.on("pause", a), this.privateState.disposers.push(() => {
|
|
79
|
+
this.hooks.off("play", i), this.hooks.off("broke", a), this.hooks.off("end", a), this.hooks.off("pause", a);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
load(e, t, i) {
|
|
83
|
+
return y(this, null, function* () {
|
|
84
|
+
var d, v, f, l, u;
|
|
85
|
+
if (this.state.disposed)
|
|
86
|
+
return F();
|
|
87
|
+
this.privateState.fiveOriginGetProgress || (v = (d = this.five.controller) == null ? void 0 : d.cameraMotion) != null && v.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
|
|
88
|
+
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, o = yield this.formatData(e);
|
|
89
|
+
this.data = o, this.hooks.emit("dataChange", o, a);
|
|
90
|
+
let n = [], s;
|
|
91
|
+
const r = this.data.keyframes.filter((h) => h.data.panoIndex !== void 0);
|
|
92
|
+
r.filter((h, m) => {
|
|
93
|
+
var p;
|
|
94
|
+
return h.data.panoIndex !== ((p = r[m - 1]) == null ? void 0 : p.data.panoIndex);
|
|
95
|
+
}).map((h) => h.data.panoIndex).forEach((h) => {
|
|
96
|
+
var p, b;
|
|
97
|
+
const m = (p = this.five.work.observers[h]) == null ? void 0 : p.floorIndex;
|
|
98
|
+
if (m !== void 0)
|
|
99
|
+
if (s === m) {
|
|
100
|
+
const I = n.length - 1;
|
|
101
|
+
n[I] = [...(b = n[I]) != null ? b : [], h];
|
|
102
|
+
} else {
|
|
103
|
+
s = m;
|
|
104
|
+
const I = n.length;
|
|
105
|
+
n[I] = [h];
|
|
106
|
+
}
|
|
107
|
+
}), this.GuideLine || (this.GuideLine = V(this.five, this.config)), (u = this.GuideLine) == null || u.load({ routes: n.map((h) => ({ panoIndexList: h })) }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.log(`${w} loaded`, o), this.hooks.emit("dataLoaded", o);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
play(e) {
|
|
111
|
+
this.setState({ playing: !0 }, e);
|
|
112
|
+
}
|
|
113
|
+
playFrom(e) {
|
|
114
|
+
const { index: t, id: i, userAction: a } = e;
|
|
115
|
+
this.state.playing && this.setState({ playing: !1 }, { userAction: a }), this.setState({ playing: !0 }, { userAction: a, playFromIndex: t, playFromId: i });
|
|
116
|
+
}
|
|
117
|
+
playFromStart(e) {
|
|
118
|
+
return this.playFrom(L(S({}, e), { index: 0 }));
|
|
119
|
+
}
|
|
120
|
+
pause(e) {
|
|
121
|
+
this.setState({ playing: !1 }, e);
|
|
122
|
+
}
|
|
123
|
+
show(e) {
|
|
124
|
+
return y(this, null, function* () {
|
|
125
|
+
this.setState({ visible: !0 }, e);
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
hide(e) {
|
|
129
|
+
return y(this, null, function* () {
|
|
130
|
+
this.setState({ visible: !1 }, e);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
enable(e) {
|
|
134
|
+
this.setState({ enabled: !0 }, e);
|
|
135
|
+
}
|
|
136
|
+
disable(e) {
|
|
137
|
+
this.setState({ enabled: !1 }, e);
|
|
138
|
+
}
|
|
139
|
+
dispose() {
|
|
140
|
+
this.setState({ disposed: !0 });
|
|
141
|
+
}
|
|
142
|
+
setState(e, t) {
|
|
143
|
+
var a;
|
|
144
|
+
if (this.state.disposed)
|
|
145
|
+
return F();
|
|
146
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
147
|
+
return q();
|
|
148
|
+
const i = S({}, this.state);
|
|
149
|
+
this.state = S(S({}, this.state), e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), $(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (a = t == null ? void 0 : t.userAction) != null ? a : !0 });
|
|
150
|
+
}
|
|
151
|
+
formatData(e) {
|
|
152
|
+
return y(this, null, function* () {
|
|
153
|
+
this.five.work || (yield this.waitFiveLoaded());
|
|
154
|
+
const t = this.five.work.observers, i = (() => {
|
|
155
|
+
const a = e;
|
|
156
|
+
return typeof a == "object" && a !== null && a.version && a.data ? a.data : a;
|
|
157
|
+
})();
|
|
158
|
+
if (i.keyframes)
|
|
159
|
+
return {
|
|
160
|
+
keyframesId: k(),
|
|
161
|
+
keyframes: i.keyframes.map((a, o) => {
|
|
162
|
+
var r;
|
|
163
|
+
const n = i.keyframes[o + 1], s = (() => !n || n.start === void 0 || a.end === void 0 ? 0 : n.start - a.end)();
|
|
164
|
+
return S({ id: (r = a.uuid) != null ? r : k(), moveIndex: o, stay: s, index: o }, a);
|
|
165
|
+
})
|
|
166
|
+
};
|
|
167
|
+
if (i.panoIndexList) {
|
|
168
|
+
let a = [];
|
|
169
|
+
const { moveEffect: o, moveToFirstPanoEffect: n } = i;
|
|
170
|
+
return this.privateState.moveToFirstPanoEffect = n, i.panoIndexList.forEach((s, r) => {
|
|
171
|
+
const d = (() => {
|
|
172
|
+
var h, m, p, b;
|
|
173
|
+
const v = i.panoIndexList.slice(r).find((I) => I !== s);
|
|
174
|
+
if (v === void 0)
|
|
175
|
+
return;
|
|
176
|
+
const f = (h = t[s]) == null ? void 0 : h.position, l = (m = t[v]) == null ? void 0 : m.position;
|
|
177
|
+
if (!l || !f || ((p = t[s]) == null ? void 0 : p.floorIndex) !== ((b = t[v]) == null ? void 0 : b.floorIndex))
|
|
178
|
+
return;
|
|
179
|
+
const u = new N.Vector3().subVectors(l, f);
|
|
180
|
+
return R(u);
|
|
181
|
+
})();
|
|
182
|
+
i.moveType === void 0 || i.moveType === "justMove" ? a.push({
|
|
183
|
+
moveIndex: r,
|
|
184
|
+
stay: i.stay,
|
|
185
|
+
data: S({ effect: "Move", panoIndex: s, moveEffect: o }, d != null ? d : {})
|
|
186
|
+
}) : i.moveType === "moveAndRotate" && (a.push({ moveIndex: r, stay: i.stay, data: { effect: "Move", panoIndex: s, moveEffect: o } }), d && a.push({ moveIndex: r, stay: i.stay, data: S({ effect: "Rotate", panoIndex: s }, d) }));
|
|
187
|
+
}), { keyframesId: k(), keyframes: a.map((s, r) => S({ id: k(), index: r }, s)) };
|
|
188
|
+
} else
|
|
189
|
+
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
handleEnable(e, t = !0) {
|
|
193
|
+
var i, a;
|
|
194
|
+
e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((a = this.GuideLine) == null || a.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
195
|
+
}
|
|
196
|
+
handleVisible(e, t = !0) {
|
|
197
|
+
var i, a;
|
|
198
|
+
e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((a = this.GuideLine) == null || a.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
199
|
+
}
|
|
200
|
+
changePlayState(e, t) {
|
|
201
|
+
this.actionIfStateIsEnabled(
|
|
202
|
+
() => {
|
|
203
|
+
var i;
|
|
204
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
205
|
+
}
|
|
206
|
+
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
207
|
+
}
|
|
208
|
+
handlePlay(e) {
|
|
209
|
+
return y(this, null, function* () {
|
|
210
|
+
var l;
|
|
211
|
+
const { data: t, state: i, privateState: a, hooks: o } = this;
|
|
212
|
+
if (a.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
213
|
+
return;
|
|
214
|
+
const n = k();
|
|
215
|
+
a.playId = n, a.playing = !0, a.broke = !1;
|
|
216
|
+
const s = t.keyframes, r = this.getPauseData();
|
|
217
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && o.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
218
|
+
let d = !1;
|
|
219
|
+
const f = yield (() => y(this, null, function* () {
|
|
220
|
+
var u, h;
|
|
221
|
+
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
222
|
+
return e.playFromIndex;
|
|
223
|
+
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
224
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((m) => m.id === e.playFromId);
|
|
225
|
+
if (r != null && r.keyframeId) {
|
|
226
|
+
const m = (h = this.data) == null ? void 0 : h.keyframes.find((p) => p.id === r.keyframeId);
|
|
227
|
+
if (r != null && r.fiveState && (yield this.move(r.fiveState, { moveEffect: a.moveToFirstPanoEffect })), m) {
|
|
228
|
+
if (m.data.effect === "Move")
|
|
229
|
+
return m.index;
|
|
230
|
+
if (m.data.effect === "Rotate") {
|
|
231
|
+
const p = r.duration !== void 0 ? r.duration * (1 - r.playedProgress) : void 0;
|
|
232
|
+
return yield this.playKeyframe(m, { duration: p }), d = !0, m.index + 1;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}))();
|
|
237
|
+
this.clearPauseData();
|
|
238
|
+
for (const u of s) {
|
|
239
|
+
if (a.broke || !i.playing || !a.playing || n !== a.playId)
|
|
240
|
+
return;
|
|
241
|
+
if (!(f !== void 0 && u.index < f))
|
|
242
|
+
try {
|
|
243
|
+
o.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
244
|
+
moveEffect: d === !1 ? a.moveToFirstPanoEffect : void 0,
|
|
245
|
+
duration: 800
|
|
246
|
+
}), u.stay && (yield H(u.stay)), d === !1 && (d = !0);
|
|
247
|
+
} catch (h) {
|
|
248
|
+
return Promise.resolve("broke");
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
i.playing && n === a.playId && (this.setState({ playing: !1 }, { userAction: !1 }), o.emit("end"), this.clearPauseData());
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
handlePause(e) {
|
|
255
|
+
var o;
|
|
256
|
+
const { state: t, privateState: i, hooks: a } = this;
|
|
257
|
+
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && a.emit("pause", { userAction: (o = e == null ? void 0 : e.userAction) != null ? o : !0 }));
|
|
258
|
+
}
|
|
259
|
+
playKeyframe(e, t) {
|
|
260
|
+
return y(this, null, function* () {
|
|
261
|
+
var a;
|
|
262
|
+
const { privateState: i } = this;
|
|
263
|
+
return ((a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), i.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
addInterruptListener(e) {
|
|
267
|
+
const t = () => {
|
|
268
|
+
this.privateState.modeChanging || e();
|
|
269
|
+
}, i = e;
|
|
270
|
+
return this.five.once("gesture", i), this.five.once("wantsChangeMode", t), () => {
|
|
271
|
+
this.five.off("gesture", i), this.five.once("wantsChangeMode", t);
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
getPlayPromise(e, t) {
|
|
275
|
+
return y(this, null, function* () {
|
|
276
|
+
var a;
|
|
277
|
+
const i = e.data;
|
|
278
|
+
if ((a = t == null ? void 0 : t.duration) != null || e.start !== void 0 && e.end !== void 0 && e.end - e.start, !!i)
|
|
279
|
+
return new Promise((o, n) => {
|
|
280
|
+
let s = !1;
|
|
281
|
+
this.addInterruptListener(() => {
|
|
282
|
+
if (!s)
|
|
283
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), s = !0, n(new Error("play is interupted"));
|
|
284
|
+
});
|
|
285
|
+
try {
|
|
286
|
+
if (s)
|
|
287
|
+
return;
|
|
288
|
+
const r = () => {
|
|
289
|
+
o(), s = !0;
|
|
290
|
+
};
|
|
291
|
+
switch (i.effect) {
|
|
292
|
+
case "Move":
|
|
293
|
+
this.move(i, t).then(r);
|
|
294
|
+
break;
|
|
295
|
+
case "Rotate":
|
|
296
|
+
this.rotate(i, t).then(r);
|
|
297
|
+
break;
|
|
298
|
+
default:
|
|
299
|
+
this.rotate(i, t).then(r);
|
|
300
|
+
}
|
|
301
|
+
} catch (r) {
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
actionPromiseQueue() {
|
|
307
|
+
return y(this, null, function* () {
|
|
308
|
+
const { privateState: e } = this;
|
|
309
|
+
return new Promise((t, i) => {
|
|
310
|
+
if (e.currentPlayQueue.length === 0) {
|
|
311
|
+
t();
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
const a = e.currentPlayQueue.shift();
|
|
315
|
+
if (!a) {
|
|
316
|
+
t();
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
a.then(t, i);
|
|
320
|
+
}).then(() => e.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
move(e, t) {
|
|
324
|
+
return y(this, null, function* () {
|
|
325
|
+
if (e.mode && e.mode !== this.five.currentMode)
|
|
326
|
+
yield this.changeMode(e);
|
|
327
|
+
else if (e.panoIndex !== this.five.panoIndex)
|
|
328
|
+
yield this.changePano(e, t);
|
|
329
|
+
else
|
|
330
|
+
return Promise.resolve();
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
rotate(e, t) {
|
|
334
|
+
return y(this, null, function* () {
|
|
335
|
+
if (e.mode && e.mode !== this.five.currentMode)
|
|
336
|
+
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
337
|
+
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
338
|
+
return yield this.changePano(e, t);
|
|
339
|
+
yield this.updateCamera(e, t == null ? void 0 : t.duration);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
updateCamera(e, t = 800) {
|
|
343
|
+
return y(this, null, function* () {
|
|
344
|
+
const { five: i, privateState: a, state: o } = this;
|
|
345
|
+
let n = t;
|
|
346
|
+
const s = (() => {
|
|
347
|
+
var f, l;
|
|
348
|
+
const d = (f = o.config) == null ? void 0 : f.speedConfig, v = (l = e.rotateSpeed) != null ? l : d == null ? void 0 : d.rotateSpeed;
|
|
349
|
+
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
350
|
+
return v;
|
|
351
|
+
if (v !== void 0)
|
|
352
|
+
return d.rotateSpeedUnit === "rad/ms" ? v : v / 1e3;
|
|
353
|
+
})();
|
|
354
|
+
if (s) {
|
|
355
|
+
const d = this.five.getCurrentState();
|
|
356
|
+
n = Q(d, e) / s;
|
|
357
|
+
}
|
|
358
|
+
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = n);
|
|
359
|
+
const r = this.getSpeededDuration(n);
|
|
360
|
+
return new Promise((d) => {
|
|
361
|
+
_(() => i.updateCamera(e, r)), setTimeout(() => d(), r);
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
changePano(e, t) {
|
|
366
|
+
return y(this, null, function* () {
|
|
367
|
+
var v;
|
|
368
|
+
const { five: i, privateState: a, state: o } = this;
|
|
369
|
+
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
370
|
+
return;
|
|
371
|
+
i.getCurrentState().mode;
|
|
372
|
+
const n = i.getCurrentState().mode !== "Panorama";
|
|
373
|
+
n && (this.privateState.modeChanging = !0);
|
|
374
|
+
let s = (v = t == null ? void 0 : t.duration) != null ? v : 800;
|
|
375
|
+
const r = (() => {
|
|
376
|
+
var u, h;
|
|
377
|
+
const f = (u = o.config) == null ? void 0 : u.speedConfig, l = (h = e.moveSpeed) != null ? h : f == null ? void 0 : f.moveSpeed;
|
|
378
|
+
if ((f == null ? void 0 : f.moveSpeedUnit) === void 0)
|
|
379
|
+
return l;
|
|
380
|
+
if (l !== void 0)
|
|
381
|
+
return f.moveSpeedUnit === "m/ms" ? l : l / 1e3;
|
|
382
|
+
})();
|
|
383
|
+
if (r && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
384
|
+
const f = i.work.observers[i.panoIndex].position, l = i.work.observers[e.panoIndex].position;
|
|
385
|
+
s = f.distanceTo(l) / r;
|
|
386
|
+
}
|
|
387
|
+
a.currentPlayKeyframe && (a.currentPlayKeyframe.originDuration = s);
|
|
388
|
+
const d = this.getSpeededDuration(s);
|
|
389
|
+
yield new Promise((f) => {
|
|
390
|
+
var l, u, h;
|
|
391
|
+
i.moveToPano(e.panoIndex, {
|
|
392
|
+
latitude: e.latitude,
|
|
393
|
+
longitude: e.longitude,
|
|
394
|
+
fov: e.fov,
|
|
395
|
+
duration: d,
|
|
396
|
+
effect: (h = (u = t == null ? void 0 : t.moveEffect) != null ? u : (l = this.state.config) == null ? void 0 : l.moveEffect) != null ? h : e.moveEffect,
|
|
397
|
+
moveCancelCallback: () => f(),
|
|
398
|
+
moveEndCallback: () => f()
|
|
399
|
+
}), n && i.once("panoArrived", () => f());
|
|
400
|
+
}), n && (this.privateState.modeChanging = !1);
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
changeSpeed(e, t = !0) {
|
|
404
|
+
const { state: i, privateState: a, hooks: o } = this, { currentPlayKeyframe: n } = a;
|
|
405
|
+
if (o.emit("speedChange", e, { userAction: t }), i.playing && n)
|
|
406
|
+
try {
|
|
407
|
+
const s = n.originDuration !== void 0 ? n.originDuration * (1 - this.getProgress()) : void 0, r = this.playKeyframe(n.keyframe, { duration: s });
|
|
408
|
+
a.currentPlayQueue.push(r);
|
|
409
|
+
} catch (s) {
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
getSpeededDuration(e) {
|
|
413
|
+
return e / this.state.speed;
|
|
414
|
+
}
|
|
415
|
+
getProgress() {
|
|
416
|
+
return this.five.controller.cameraMotion.progress;
|
|
417
|
+
}
|
|
418
|
+
changeMode(e, t) {
|
|
419
|
+
return y(this, null, function* () {
|
|
420
|
+
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, console.log("this.privateState.modeChanging", this.privateState.modeChanging), yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
forceInteruptUpdateCamera() {
|
|
424
|
+
this.five.updateCamera({}, 0);
|
|
425
|
+
}
|
|
426
|
+
getPauseData() {
|
|
427
|
+
var e, t;
|
|
428
|
+
if ((e = this.data) != null && e.keyframesId)
|
|
429
|
+
return C.get((t = this.data) == null ? void 0 : t.keyframesId);
|
|
430
|
+
}
|
|
431
|
+
setPauseData() {
|
|
432
|
+
var e, t, i, a;
|
|
433
|
+
if ((e = this.data) != null && e.keyframesId)
|
|
434
|
+
return C.set((t = this.data) == null ? void 0 : t.keyframesId, {
|
|
435
|
+
keyframeId: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id,
|
|
436
|
+
fiveState: this.five.getCurrentState(),
|
|
437
|
+
duration: (a = this.privateState.currentPlayKeyframe) == null ? void 0 : a.originDuration,
|
|
438
|
+
playedProgress: this.getProgress()
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
clearPauseData() {
|
|
442
|
+
var e, t;
|
|
443
|
+
if ((e = this.data) != null && e.keyframesId)
|
|
444
|
+
return C.delete((t = this.data) == null ? void 0 : t.keyframesId);
|
|
445
|
+
}
|
|
446
|
+
clear() {
|
|
447
|
+
this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
|
|
448
|
+
}
|
|
449
|
+
handleDispose() {
|
|
450
|
+
var e, t;
|
|
451
|
+
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0, (t = this.privateState.disposers) == null || t.forEach((i) => i == null ? void 0 : i());
|
|
452
|
+
}
|
|
453
|
+
actionIfStateIsEnabled(e, t) {
|
|
454
|
+
if (this.state.enabled)
|
|
455
|
+
return e();
|
|
456
|
+
t != null && t.warnLog && J();
|
|
457
|
+
}
|
|
458
|
+
waitFiveLoaded() {
|
|
459
|
+
return y(this, null, function* () {
|
|
460
|
+
return new Promise((e) => {
|
|
461
|
+
if (this.five.work) {
|
|
462
|
+
e();
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
this.five.once("loaded", () => {
|
|
466
|
+
e();
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
setFiveLinearUpdateCamera() {
|
|
472
|
+
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = (e) => {
|
|
473
|
+
const t = this.five.controller.cameraMotion, i = e - t.startTime;
|
|
474
|
+
return i < 0 ? 0 : i >= t.duration ? 1 : 1 - j(1, t.startVelocity, t.duration, i);
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
setFiveOriginUpdateCamera() {
|
|
478
|
+
!this.privateState.fiveOriginGetProgress || (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
P(B, "PluginVersion", M);
|
|
482
|
+
export {
|
|
483
|
+
B as CruisePluginController
|
|
484
|
+
};
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { CruisePluginController as o } from "./Controller.js";
|
|
2
|
+
const i = (r) => new o(r);
|
|
3
|
+
export {
|
|
4
|
+
i as CruisePlugin
|
|
5
|
+
};
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { coordinatesToVector as o } from "./coordinatesToVector.js";
|
|
2
|
+
function s(n, t) {
|
|
3
|
+
const e = o(n), r = o(t);
|
|
4
|
+
return e.angleTo(r);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
s as coordinatesAngle
|
|
8
|
+
};
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import * as e from "three";
|
|
2
|
+
function n(t) {
|
|
3
|
+
const a = Math.abs(Math.cos(t.latitude));
|
|
4
|
+
return new e.Vector3(
|
|
5
|
+
-Math.sin(t.longitude) * a,
|
|
6
|
+
-Math.sin(t.latitude),
|
|
7
|
+
-Math.cos(t.longitude) * a
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
n as coordinatesToVector
|
|
12
|
+
};
|