@realsee/dnalogel 3.60.1-alpha.5 → 3.60.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/index.js +13 -13
- package/dist/index.cjs.js +48 -48
- package/dist/index.js +6402 -6341
- package/dist/index.umd.js +60 -60
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/AreaMakerPlugin/Controller.js +88 -134
- package/libs/AreaMakerPlugin/index.js +13 -59
- package/libs/AreaMakerPlugin/utils/Item.js +49 -100
- package/libs/CSS3DRenderPlugin/Controller.js +31 -73
- package/libs/CSS3DRenderPlugin/index.js +13 -55
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +39 -88
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +109 -153
- package/libs/CruisePlugin/BaseController.js +50 -100
- package/libs/CruisePlugin/Move.js +27 -58
- package/libs/CruisePlugin/Work.js +57 -88
- package/libs/CruisePlugin/index.js +37 -68
- package/libs/CurrentPanoImagePlugin/Controller.js +52 -101
- package/libs/CurrentPanoImagePlugin/index.js +6 -55
- package/libs/GuideLinePlugin/Controller.js +67 -98
- package/libs/GuideLinePlugin/GuideLineItem.js +34 -65
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +47 -55
- package/libs/GuideLinePlugin/GuideLineModeItem.js +34 -65
- package/libs/GuideLinePlugin/index.js +35 -66
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -1
- package/libs/ModelMakerPlugin/Controller.js +62 -86
- package/libs/ModelMakerPlugin/index.js +28 -52
- package/libs/ModelMakerPlugin/item/baseItem.js +14 -53
- package/libs/ModelMakerPlugin/item/boxItem.js +12 -51
- package/libs/ModelMakerPlugin/item/polygonItem.js +14 -53
- package/libs/ModelMakerPlugin/item/prismItem.js +23 -61
- package/libs/ModelTVVideoPlugin/Plugin.js +52 -94
- package/libs/ModelTVVideoPlugin/index.js +5 -47
- package/libs/Object3DHelperPlugin/Controller.js +82 -118
- package/libs/Object3DHelperPlugin/index.js +44 -80
- package/libs/PanoCompassPlugin/Controller.js +30 -66
- package/libs/PanoCompassPlugin/index.js +17 -53
- package/libs/PanoDoorLabelPlugin/Controller.js +107 -156
- package/libs/PanoDoorLabelPlugin/index.js +5 -54
- package/libs/PanoMeasurePlugin/Components/Controller0.js +24 -28
- package/libs/PanoMeasurePlugin/Components/Controller1.js +24 -28
- package/libs/PanoMeasurePlugin/Controller/EditController.js +61 -65
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +91 -140
- package/libs/PanoMeasurePlugin/Controller/index.js +43 -46
- package/libs/PanoMeasurePlugin/Model/area.js +37 -88
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -56
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +31 -35
- package/libs/PanoMeasurePlugin/index.js +36 -39
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +25 -79
- package/libs/PanoRulerProPlugin/Controller.js +41 -95
- package/libs/PanoRulerProPlugin/RulerItems.js +101 -155
- package/libs/PanoRulerProPlugin/index.js +6 -60
- package/libs/PanoSpatialTagPlugin/Plugin.js +116 -157
- package/libs/PanoSpatialTagPlugin/index.js +3 -44
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +54 -110
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +219 -275
- package/libs/PanoTagPlugin/Components/Tag/index.js +146 -182
- package/libs/PanoTagPlugin/Components/TagContainer.js +100 -136
- package/libs/PanoTagPlugin/Components/TagItem.js +77 -113
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +62 -104
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +39 -75
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +76 -112
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +52 -94
- package/libs/PanoTagPlugin/controller/TagRender.js +25 -71
- package/libs/PanoTagPlugin/controller/TagUtil.js +66 -112
- package/libs/PanoTagPlugin/controller/index.js +52 -83
- package/libs/PanoTagPlugin/index.js +32 -63
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +42 -98
- package/libs/PanoVideoPlugin/Controller.js +68 -117
- package/libs/PanoVideoPlugin/VideoMeshController.js +75 -130
- package/libs/PanoVideoPlugin/index.js +11 -60
- package/libs/PipelinePlugin/Controller.js +63 -111
- package/libs/PipelinePlugin/index.js +10 -58
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +26 -81
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +17 -72
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +48 -103
- package/libs/Sculpt/Meshes/Circle.js +14 -24
- package/libs/Sculpt/Meshes/Cylinder.js +22 -32
- package/libs/Sculpt/Meshes/Line.js +33 -40
- package/libs/Sculpt/Meshes/LineWithDots.js +12 -21
- package/libs/Sculpt/Meshes/Point.js +27 -36
- package/libs/Sculpt/Meshes/Polygon.js +16 -25
- package/libs/Sculpt/Meshes/Rectangle.js +18 -29
- package/libs/Sculpt/Objects/Line/Editor.js +22 -33
- package/libs/Sculpt/index.js +57 -68
- package/libs/Sculpt/utils/three/ColoredMesh.js +21 -31
- package/libs/base/BasePlugin.js +15 -26
- package/libs/components/AreaLabel/LabelItem.js +43 -42
- package/libs/components/PaintBrush/style.js +2 -2
- package/libs/components/index.js +1 -2
- package/libs/floorplan/Components/BaseImage.js +14 -13
- package/libs/floorplan/Components/Camera.js +13 -12
- package/libs/floorplan/Components/Compass.js +23 -22
- package/libs/floorplan/Components/CurrentFloor.js +19 -18
- package/libs/floorplan/Components/Main.js +14 -13
- package/libs/floorplan/Components/MissingFloor.js +40 -39
- package/libs/floorplan/Components/Normalmage.js +7 -6
- package/libs/floorplan/Components/RoomHighlight/Room.js +27 -26
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +3 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +3 -2
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +3 -2
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +60 -59
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +24 -23
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +35 -34
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +22 -21
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +55 -54
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +47 -46
- package/libs/floorplan/Components/SvgImage.js +17 -16
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +63 -111
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -54
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +60 -109
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -54
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +71 -120
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -54
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +80 -129
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -54
- package/libs/floorplan/index.js +0 -12
- package/libs/index.js +210 -210
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +13 -22
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +4 -4
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +6 -6
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +5 -7
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +8 -10
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -4
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -1
- package/libs/shared-utils/animationFrame/index.js +6 -7
- package/libs/shared-utils/exports.js +62 -62
- package/libs/shared-utils/five/index.js +2 -13
- package/libs/shared-utils/five/initialCSS3DRender.js +1 -1
- package/libs/shared-utils/five/lookObject.js +24 -33
- package/libs/shared-utils/index.js +1 -11
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/object3d2LocalMatrix.js +9 -9
- package/libs/shared-utils/tag.js +14 -23
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +9 -12
- package/libs/shared-utils/three/index.js +1 -11
- package/libs/shared-utils/three/libs/NURBSCurve.js +1 -1
- package/libs/shared-utils/three/transformPositionToVector3.js +2 -2
- package/package.json +3 -2
|
@@ -1,82 +1,33 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var l = (
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
W.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var s = (
|
|
14
|
-
import { VideoMeshController as
|
|
1
|
+
var p = Object.defineProperty, b = Object.defineProperties;
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var c = Object.getOwnPropertySymbols;
|
|
4
|
+
var m = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var l = (o, t, e) => t in o ? p(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, a = (o, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
m.call(t, e) && l(o, e, t[e]);
|
|
8
|
+
if (c)
|
|
9
|
+
for (var e of c(t))
|
|
10
|
+
W.call(t, e) && l(o, e, t[e]);
|
|
11
|
+
return o;
|
|
12
|
+
}, d = (o, t) => b(o, M(t));
|
|
13
|
+
var s = (o, t, e) => (l(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
+
import { VideoMeshController as u } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as _ } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
|
-
import "../shared-utils/tag.js";
|
|
18
|
-
import "../shared-utils/positionToVector3.js";
|
|
19
17
|
import "three";
|
|
20
|
-
import "
|
|
21
|
-
import "../
|
|
18
|
+
import "./utils/index.js";
|
|
19
|
+
import "../vendor/animejs/lib/anime.es.js";
|
|
20
|
+
import "../shared-utils/animationFrame/index.js";
|
|
21
|
+
import "../shared-utils/Subscribe.js";
|
|
22
22
|
import "../shared-utils/Utils/FiveUtil.js";
|
|
23
23
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
24
|
-
import "../shared-utils/Subscribe.js";
|
|
25
24
|
import "../shared-utils/Utils/WorkUtil.js";
|
|
26
25
|
import "../shared-utils/five/transformPosition.js";
|
|
27
|
-
import "../shared-utils/
|
|
28
|
-
import "../shared-utils/three/core/Raycaster.js";
|
|
29
|
-
import "../shared-utils/dom/resizeObserver.js";
|
|
30
|
-
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
31
|
-
import "../shared-utils/throttle.js";
|
|
32
|
-
import "../vendor/hammerjs/hammer.js";
|
|
33
|
-
import "../shared-utils/three/PointSelector/index.js";
|
|
34
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
35
|
-
import "../shared-utils/three/Magnifier.js";
|
|
36
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
37
|
-
import "../shared-utils/three/Assets/index.js";
|
|
38
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
39
|
-
import "../shared-utils/even.js";
|
|
40
|
-
import "../shared-utils/CSS3DRender/OpacityMesh.js";
|
|
41
|
-
import "../shared-utils/three/centerPoint.js";
|
|
42
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
43
|
-
import "../shared-utils/three/CSS3DRenderer/index.js";
|
|
44
|
-
import "@realsee/five/line";
|
|
45
|
-
import "../shared-utils/isNil.js";
|
|
46
|
-
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
47
|
-
import "../shared-utils/three/core/Sphere.js";
|
|
48
|
-
import "../vendor/animejs/lib/anime.es.js";
|
|
49
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
50
|
-
import "../shared-utils/five/FivePuppet.js";
|
|
51
|
-
import "@realsee/five";
|
|
52
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
53
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
54
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
55
|
-
import "../shared-utils/CSS3DRender/CSS3DRenderer.js";
|
|
56
|
-
import "../shared-utils/createResizeObserver.js";
|
|
57
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
58
|
-
import "../Sculpt/Meshes/Line.js";
|
|
59
|
-
import "../Sculpt/typings/style.js";
|
|
60
|
-
import "../shared-utils/three/IObject3D.js";
|
|
61
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
62
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
63
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
64
|
-
import "../shared-utils/util.js";
|
|
65
|
-
import "../shared-utils/three/core/LineGeometry.js";
|
|
66
|
-
import "../shared-utils/three/core/LineMaterial.js";
|
|
67
|
-
import "../shared-utils/three/core/Line2.js";
|
|
68
|
-
import "../shared-utils/three/core/LineMaterial2.js";
|
|
69
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
70
|
-
import "../shared-utils/isTouchDevice.js";
|
|
71
|
-
import "../shared-utils/five/getPosition.js";
|
|
72
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
73
|
-
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
74
|
-
import "../shared-utils/animationFrame/index.js";
|
|
75
|
-
import "./utils/index.js";
|
|
26
|
+
import "../shared-utils/five/getFiveModel.js";
|
|
76
27
|
import "../shared-utils/url/absoluteUrl.js";
|
|
77
|
-
class
|
|
78
|
-
constructor(
|
|
79
|
-
super(
|
|
28
|
+
class V extends _ {
|
|
29
|
+
constructor(e) {
|
|
30
|
+
super(e);
|
|
80
31
|
s(this, "controllerMap", /* @__PURE__ */ new Map());
|
|
81
32
|
s(this, "data");
|
|
82
33
|
s(this, "enabled", !0);
|
|
@@ -93,58 +44,58 @@ class Ir extends _ {
|
|
|
93
44
|
return this._disposed;
|
|
94
45
|
}
|
|
95
46
|
/** 加载点位视频数据,加载数据并不代表会加载点位视频。 */
|
|
96
|
-
load(
|
|
97
|
-
var
|
|
47
|
+
load(e, r) {
|
|
48
|
+
var i;
|
|
98
49
|
if (this.disposed)
|
|
99
50
|
return this.logWarning("插件已被销毁");
|
|
100
|
-
typeof ((
|
|
101
|
-
const
|
|
102
|
-
n.video_list.forEach((
|
|
51
|
+
typeof ((i = r == null ? void 0 : r.initialState) == null ? void 0 : i.enabled) != "undefined" && r.initialState.enabled !== this.enabled && (r.initialState.enabled ? this.enable() : this.disable()), e.list.forEach((n) => {
|
|
52
|
+
const g = n.pano_index, f = n.render_id;
|
|
53
|
+
n.video_list.forEach((h) => {
|
|
103
54
|
this.controllerMap.set(
|
|
104
|
-
|
|
105
|
-
new
|
|
106
|
-
panoIndex:
|
|
107
|
-
renderID:
|
|
55
|
+
h.render_id,
|
|
56
|
+
new u(this.five, d(a({}, h), {
|
|
57
|
+
panoIndex: g,
|
|
58
|
+
renderID: f,
|
|
108
59
|
hooks: this.hooks,
|
|
109
60
|
initialState: { enabled: this.enabled }
|
|
110
61
|
}))
|
|
111
62
|
);
|
|
112
63
|
});
|
|
113
|
-
}), this.data =
|
|
64
|
+
}), this.data = e, this.hooks.emit("dataLoaded", e);
|
|
114
65
|
}
|
|
115
66
|
/** 开启插件功能。 */
|
|
116
|
-
enable(
|
|
117
|
-
var
|
|
67
|
+
enable(e) {
|
|
68
|
+
var i;
|
|
118
69
|
if (this.disposed)
|
|
119
70
|
return this.logWarning("插件已被销毁");
|
|
120
71
|
if (this.enabled)
|
|
121
72
|
return;
|
|
122
73
|
this.enabled = !0, Array.from(this.controllerMap.values()).forEach((n) => n.enable());
|
|
123
|
-
const
|
|
124
|
-
this.hooks.emit("enable", { userAction:
|
|
74
|
+
const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
|
|
75
|
+
this.hooks.emit("enable", { userAction: r });
|
|
125
76
|
}
|
|
126
77
|
/** 禁用插件功能。 */
|
|
127
|
-
disable(
|
|
128
|
-
var
|
|
78
|
+
disable(e) {
|
|
79
|
+
var i;
|
|
129
80
|
if (this.disposed)
|
|
130
81
|
return this.logWarning("插件已被销毁");
|
|
131
82
|
if (!this.enabled)
|
|
132
83
|
return;
|
|
133
84
|
this.enabled = !1, Array.from(this.controllerMap.values()).forEach((n) => n.disable());
|
|
134
|
-
const
|
|
135
|
-
this.hooks.emit("disable", { userAction:
|
|
85
|
+
const r = (i = e == null ? void 0 : e.userAction) != null ? i : !0;
|
|
86
|
+
this.hooks.emit("disable", { userAction: r });
|
|
136
87
|
}
|
|
137
88
|
/** 看向某个视频。
|
|
138
89
|
* - 会自动切换到全景模式。
|
|
139
90
|
* - 如果遇到不能自动播放的问题,需要放到用户交互事件中调用。
|
|
140
91
|
*/
|
|
141
|
-
lookAtVideoItemByRenderID(
|
|
92
|
+
lookAtVideoItemByRenderID(e) {
|
|
142
93
|
if (this.disposed)
|
|
143
94
|
return this.logWarning("插件已被销毁");
|
|
144
|
-
const
|
|
145
|
-
if (!
|
|
146
|
-
return this.logWarning(`ID 为 ${
|
|
147
|
-
|
|
95
|
+
const r = this.controllerMap.get(e);
|
|
96
|
+
if (!r)
|
|
97
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
98
|
+
r.lookAtVideo();
|
|
148
99
|
}
|
|
149
100
|
/**
|
|
150
101
|
* 取消静音。
|
|
@@ -162,26 +113,26 @@ class Ir extends _ {
|
|
|
162
113
|
* }}
|
|
163
114
|
* ```
|
|
164
115
|
*/
|
|
165
|
-
unmuteByRenderID(
|
|
116
|
+
unmuteByRenderID(e) {
|
|
166
117
|
if (this.disposed)
|
|
167
118
|
return this.logWarning("插件已被销毁");
|
|
168
|
-
const
|
|
169
|
-
if (!
|
|
170
|
-
return this.logWarning(`ID 为 ${
|
|
171
|
-
|
|
119
|
+
const r = this.controllerMap.get(e);
|
|
120
|
+
if (!r)
|
|
121
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
122
|
+
r.unmute();
|
|
172
123
|
}
|
|
173
124
|
/** 为一个点位添加视频(可以是多条)。 */
|
|
174
|
-
add(
|
|
125
|
+
add(e, r) {
|
|
175
126
|
if (this.disposed)
|
|
176
127
|
return this.logWarning("插件已被销毁");
|
|
177
|
-
|
|
178
|
-
if (this.controllerMap.get(
|
|
179
|
-
return this.logWarning(`ID 为 ${
|
|
180
|
-
const n =
|
|
128
|
+
r.forEach((i) => {
|
|
129
|
+
if (this.controllerMap.get(i.render_id))
|
|
130
|
+
return this.logWarning(`ID 为 ${i.render_id} 的点位视频已存在`);
|
|
131
|
+
const n = i.render_id;
|
|
181
132
|
this.controllerMap.set(
|
|
182
|
-
|
|
183
|
-
new
|
|
184
|
-
panoIndex:
|
|
133
|
+
i.render_id,
|
|
134
|
+
new u(this.five, d(a({}, i), {
|
|
135
|
+
panoIndex: e,
|
|
185
136
|
renderID: n,
|
|
186
137
|
hooks: this.hooks,
|
|
187
138
|
initialState: { enabled: this.enabled }
|
|
@@ -190,32 +141,32 @@ class Ir extends _ {
|
|
|
190
141
|
});
|
|
191
142
|
}
|
|
192
143
|
/** 根据 VideoItem render_id 删除某个视频。 */
|
|
193
|
-
removeByRenderID(
|
|
144
|
+
removeByRenderID(e) {
|
|
194
145
|
if (this.disposed)
|
|
195
146
|
return this.logWarning("插件已被销毁");
|
|
196
|
-
const
|
|
197
|
-
if (!
|
|
198
|
-
return this.logWarning(`ID 为 ${
|
|
199
|
-
|
|
147
|
+
const r = this.controllerMap.get(e);
|
|
148
|
+
if (!r)
|
|
149
|
+
return this.logWarning(`ID 为 ${e} 的点位视频不存在`);
|
|
150
|
+
r.dispose(), this.controllerMap.delete(e);
|
|
200
151
|
}
|
|
201
152
|
/** 清空现有数据 */
|
|
202
153
|
clear() {
|
|
203
154
|
if (this.disposed)
|
|
204
155
|
return this.logWarning("插件已被销毁");
|
|
205
|
-
Array.from(this.controllerMap.values()).forEach((
|
|
156
|
+
Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
|
|
206
157
|
}
|
|
207
158
|
/** 销毁插件 */
|
|
208
159
|
dispose() {
|
|
209
160
|
if (this.disposed)
|
|
210
161
|
return this.logWarning("插件已被销毁");
|
|
211
|
-
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((
|
|
162
|
+
this._disposed = !0, Array.from(this.controllerMap.values()).forEach((e) => e.dispose()), this.controllerMap.clear();
|
|
212
163
|
}
|
|
213
164
|
/** 控制台打印警告 */
|
|
214
165
|
// TODO: 全局函数 curry 化
|
|
215
|
-
logWarning(
|
|
216
|
-
console.warn("⛔ ==> [PanoVideoPluginController]:",
|
|
166
|
+
logWarning(e) {
|
|
167
|
+
console.warn("⛔ ==> [PanoVideoPluginController]:", e);
|
|
217
168
|
}
|
|
218
169
|
}
|
|
219
170
|
export {
|
|
220
|
-
|
|
171
|
+
V as PanoVideoPluginController
|
|
221
172
|
};
|
|
@@ -1,69 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
var I = (v,
|
|
3
|
-
var t = (v,
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var I = (v, e, i) => e in v ? m(v, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : v[e] = i;
|
|
3
|
+
var t = (v, e, i) => (I(v, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
4
|
import { vertexShader as M, fragmentShader as P } from "./utils/shader.js";
|
|
5
|
-
import "
|
|
6
|
-
import
|
|
7
|
-
import "../vendor/
|
|
8
|
-
import "../shared-utils/
|
|
9
|
-
|
|
10
|
-
import "@realsee/five/line";
|
|
11
|
-
import "../shared-utils/three/core/Five_LineMaterial2.js";
|
|
12
|
-
import "../shared-utils/three/core/Sphere.js";
|
|
13
|
-
import { anime as A } from "../vendor/animejs/lib/anime.es.js";
|
|
14
|
-
import { requestAnimationFrameInterval as D } from "../shared-utils/animationFrame/index.js";
|
|
15
|
-
import "../shared-utils/five/FivePuppet.js";
|
|
16
|
-
import E from "./utils/index.js";
|
|
17
|
-
import "../shared-utils/positionToVector3.js";
|
|
18
|
-
import "../shared-utils/five/vector3ToScreen.js";
|
|
19
|
-
import "../shared-utils/five/getFiveModel.js";
|
|
20
|
-
import "../shared-utils/Utils/FiveUtil.js";
|
|
21
|
-
import "../shared-utils/Utils/BaseUtil.js";
|
|
22
|
-
import "../shared-utils/Subscribe.js";
|
|
23
|
-
import "../shared-utils/Utils/WorkUtil.js";
|
|
24
|
-
import "../shared-utils/five/transformPosition.js";
|
|
25
|
-
import "../shared-utils/three/temp.js";
|
|
26
|
-
import "../shared-utils/three/core/Raycaster.js";
|
|
27
|
-
import "../shared-utils/dom/resizeObserver.js";
|
|
28
|
-
import "../shared-utils/five/fiveEveryReadyListener.js";
|
|
29
|
-
import "../shared-utils/throttle.js";
|
|
30
|
-
import "../shared-utils/five/fiveModelLoad.js";
|
|
31
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
32
|
-
import "../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
33
|
-
import "../shared-utils/three/Magnifier.js";
|
|
34
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
35
|
-
import "../shared-utils/three/Assets/index.js";
|
|
36
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
37
|
-
import "../shared-utils/even.js";
|
|
38
|
-
import "../shared-utils/CSS3DRender/OpacityMesh.js";
|
|
39
|
-
import "../shared-utils/three/centerPoint.js";
|
|
40
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
41
|
-
import "../shared-utils/isNil.js";
|
|
42
|
-
import "../shared-utils/three/PointSelector/utils/html.js";
|
|
43
|
-
import "../shared-utils/five/initialCSS3DRender.js";
|
|
44
|
-
import "../shared-utils/CSS3DRender/CSS3DRenderer.js";
|
|
45
|
-
import "../shared-utils/createResizeObserver.js";
|
|
46
|
-
import "../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
47
|
-
import "../Sculpt/Meshes/Line.js";
|
|
48
|
-
import "../Sculpt/typings/style.js";
|
|
49
|
-
import "../shared-utils/three/IObject3D.js";
|
|
50
|
-
import "../Sculpt/utils/removeAllTag.js";
|
|
51
|
-
import "../Sculpt/utils/Meshes/getLengthHTML.js";
|
|
52
|
-
import "../shared-utils/three/applyObjectMatrixWorld.js";
|
|
53
|
-
import "../shared-utils/util.js";
|
|
54
|
-
import "../shared-utils/three/core/LineGeometry.js";
|
|
55
|
-
import "../shared-utils/three/core/LineMaterial.js";
|
|
56
|
-
import "../shared-utils/three/core/Line2.js";
|
|
57
|
-
import "../shared-utils/three/core/LineMaterial2.js";
|
|
58
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
59
|
-
import "../shared-utils/isTouchDevice.js";
|
|
60
|
-
import "../shared-utils/five/getPosition.js";
|
|
61
|
-
import "../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
62
|
-
import "../shared-utils/three/PointSelector/utils/contents.js";
|
|
63
|
-
import "@realsee/five";
|
|
64
|
-
class Gi {
|
|
5
|
+
import { VideoTexture as F, LinearFilter as g, ShaderMaterial as y, Vector4 as x, SphereBufferGeometry as L, Mesh as V, Vector3 as l, Quaternion as b } from "three";
|
|
6
|
+
import A from "./utils/index.js";
|
|
7
|
+
import { anime as D } from "../vendor/animejs/lib/anime.es.js";
|
|
8
|
+
import { requestAnimationFrameInterval as E } from "../shared-utils/animationFrame/index.js";
|
|
9
|
+
class S {
|
|
65
10
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
66
|
-
constructor(
|
|
11
|
+
constructor(e, i) {
|
|
67
12
|
t(this, "video");
|
|
68
13
|
t(this, "_id");
|
|
69
14
|
/** 视频资源地址 */
|
|
@@ -99,75 +44,75 @@ class Gi {
|
|
|
99
44
|
this.video.muted = !1;
|
|
100
45
|
});
|
|
101
46
|
/** 把 uv 值转换成位置 */
|
|
102
|
-
t(this, "uv2Position", (
|
|
103
|
-
var
|
|
104
|
-
const
|
|
105
|
-
-1 * Math.cos(a * d) * Math.sin(
|
|
106
|
-
1 * Math.cos(
|
|
107
|
-
1 * Math.sin(a * d) * Math.sin(
|
|
47
|
+
t(this, "uv2Position", (e, i) => {
|
|
48
|
+
var p;
|
|
49
|
+
const n = Math.PI, a = Math.PI * 2, d = e, s = 1 - i, r = new l(
|
|
50
|
+
-1 * Math.cos(a * d) * Math.sin(n * s),
|
|
51
|
+
1 * Math.cos(n * s),
|
|
52
|
+
1 * Math.sin(a * d) * Math.sin(n * s)
|
|
108
53
|
);
|
|
109
54
|
r.setX(-r.x);
|
|
110
|
-
const h = (
|
|
55
|
+
const h = (p = this.five.work) == null ? void 0 : p.observers[this.panoIndex];
|
|
111
56
|
if (!h)
|
|
112
57
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
113
|
-
const
|
|
114
|
-
return u.applyAxisAngle(new
|
|
58
|
+
const f = h.position.clone(), c = h.quaternion.clone(), u = r.clone();
|
|
59
|
+
return u.applyAxisAngle(new l(0, 1, 0), Math.PI / 2), u.applyQuaternion(c), u.add(f), u;
|
|
115
60
|
});
|
|
116
61
|
/** Five 数据加载后需要根据点位位姿调整点位模型位置 */
|
|
117
62
|
t(this, "onFiveDataLoaded", () => {
|
|
118
63
|
var r;
|
|
119
|
-
const
|
|
120
|
-
if (!
|
|
64
|
+
const e = (r = this.five.work) == null ? void 0 : r.observers[this.panoIndex];
|
|
65
|
+
if (!e)
|
|
121
66
|
return this.logWarning(`点位 ${this.panoIndex} 不存在,请检查 Five 数据是否正常。`);
|
|
122
|
-
this.observer =
|
|
123
|
-
const { x:
|
|
124
|
-
this.videoMesh.position.fromArray([s.x, s.y, s.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new
|
|
67
|
+
this.observer = e;
|
|
68
|
+
const { x: i, y: o, z: n, w: a } = e.quaternion, d = new b(i, o, n, a), s = e.position;
|
|
69
|
+
this.videoMesh.position.fromArray([s.x, s.y, s.z]), this.videoMesh.quaternion.set(0, 0, 0, 1), this.videoMesh.rotateOnAxis(new l(0, 1, 0), Math.PI / 2), this.videoMesh.applyQuaternion(d);
|
|
125
70
|
});
|
|
126
71
|
/** 兼容视频播放 */
|
|
127
|
-
t(this, "onFiveWantsMoveToPano", (
|
|
128
|
-
|
|
72
|
+
t(this, "onFiveWantsMoveToPano", (e) => {
|
|
73
|
+
e === this.panoIndex && (this.hasVideoEverPlayed || this.video.play().catch(() => {
|
|
129
74
|
}));
|
|
130
75
|
});
|
|
131
76
|
/** 走到某个点位上时,挂载/卸载视频 */
|
|
132
|
-
t(this, "onFivePanoArrived", (
|
|
77
|
+
t(this, "onFivePanoArrived", (e) => {
|
|
133
78
|
if (this.disposed)
|
|
134
79
|
return this.logWarning("实例已被销毁");
|
|
135
|
-
this.enabled && this.panoIndex ===
|
|
80
|
+
this.enabled && this.panoIndex === e && this.mount();
|
|
136
81
|
});
|
|
137
|
-
t(this, "onFivePanoWillArrive", (
|
|
138
|
-
if (
|
|
82
|
+
t(this, "onFivePanoWillArrive", (e) => {
|
|
83
|
+
if (e !== this.panoIndex)
|
|
139
84
|
return this.unmount();
|
|
140
|
-
this.panoIndex !==
|
|
85
|
+
this.panoIndex !== e && this.unmount();
|
|
141
86
|
});
|
|
142
87
|
/** Five 模型变化 */
|
|
143
|
-
t(this, "onFiveModeChange", (
|
|
144
|
-
|
|
88
|
+
t(this, "onFiveModeChange", (e) => {
|
|
89
|
+
e !== "Panorama" && this.hide();
|
|
145
90
|
});
|
|
146
91
|
/** Five mode change 动画结束 */
|
|
147
92
|
t(this, "onFiveInitAnimationEnded", () => {
|
|
148
|
-
const
|
|
149
|
-
|
|
93
|
+
const e = this.five.getCurrentState();
|
|
94
|
+
e.mode === "Panorama" && e.panoIndex === this.panoIndex && this.mount();
|
|
150
95
|
});
|
|
151
96
|
/** Five Canvas 点击 */
|
|
152
|
-
t(this, "onFiveWantsTapGesture", (
|
|
97
|
+
t(this, "onFiveWantsTapGesture", (e) => {
|
|
153
98
|
if (!this.five.scene.children.includes(this.videoMesh))
|
|
154
99
|
return;
|
|
155
100
|
if (this.disposed)
|
|
156
101
|
return this.logWarning("实例已被销毁");
|
|
157
102
|
if (!this.enabled)
|
|
158
103
|
return this.logWarning("实例已被禁用");
|
|
159
|
-
const [
|
|
160
|
-
if (!
|
|
104
|
+
const [i] = e.intersectObject(this.videoMesh);
|
|
105
|
+
if (!i)
|
|
161
106
|
return;
|
|
162
|
-
if (this.checkIntersectionInBounding(this.origin,
|
|
163
|
-
const
|
|
107
|
+
if (this.checkIntersectionInBounding(this.origin, i)) {
|
|
108
|
+
const n = {
|
|
164
109
|
target: this,
|
|
165
110
|
_preventDefaultReturn: !1,
|
|
166
111
|
preventDefault: () => {
|
|
167
|
-
|
|
112
|
+
n._preventDefaultReturn = !0;
|
|
168
113
|
}
|
|
169
114
|
};
|
|
170
|
-
return this.hooks.emit("click",
|
|
115
|
+
return this.hooks.emit("click", n), n._preventDefaultReturn === !1 && (this.video.muted = !this.video.muted), !1;
|
|
171
116
|
}
|
|
172
117
|
});
|
|
173
118
|
/** video canplaythrough 事件触发 */
|
|
@@ -193,19 +138,19 @@ class Gi {
|
|
|
193
138
|
this.video.addEventListener(
|
|
194
139
|
"timeupdate",
|
|
195
140
|
() => {
|
|
196
|
-
if (this.enabled && this.panoIndex === this.five.getCurrentState().panoIndex && this.five.getCurrentState().mode === "Panorama" && (this.renderFiveDisposer || (this.renderFiveDisposer =
|
|
141
|
+
if (this.enabled && this.panoIndex === this.five.getCurrentState().panoIndex && this.five.getCurrentState().mode === "Panorama" && (this.renderFiveDisposer || (this.renderFiveDisposer = E(() => {
|
|
197
142
|
this.five.needsRender = !0;
|
|
198
143
|
}, 30)), this.five.scene.add(this.videoMesh), this.videoMesh.material.uniforms.opacity.value === 0)) {
|
|
199
|
-
const
|
|
144
|
+
const e = {
|
|
200
145
|
value: 0
|
|
201
146
|
};
|
|
202
|
-
|
|
203
|
-
targets:
|
|
147
|
+
D({
|
|
148
|
+
targets: e,
|
|
204
149
|
value: 1,
|
|
205
150
|
duration: 300,
|
|
206
151
|
easing: "linear",
|
|
207
152
|
update: () => {
|
|
208
|
-
this.videoMesh.material.uniforms.opacity.value =
|
|
153
|
+
this.videoMesh.material.uniforms.opacity.value = e.value;
|
|
209
154
|
},
|
|
210
155
|
complete: () => {
|
|
211
156
|
this.videoMesh.material.uniforms.opacity.value = 1;
|
|
@@ -218,20 +163,20 @@ class Gi {
|
|
|
218
163
|
});
|
|
219
164
|
/** video pause 事件触发 */
|
|
220
165
|
t(this, "onVideoPaused", () => {
|
|
221
|
-
var
|
|
222
|
-
(
|
|
166
|
+
var e;
|
|
167
|
+
(e = this.renderFiveDisposer) == null || e.call(this), this.renderFiveDisposer = void 0;
|
|
223
168
|
});
|
|
224
169
|
var r, h;
|
|
225
|
-
this.five =
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
170
|
+
this.five = e, this.panoIndex = i.panoIndex, this._id = i.renderID, this.url = i.url, this.origin = i.origin.slice(), this.hooks = i.hooks, this._enabled = (h = (r = i.initialState) == null ? void 0 : r.enabled) != null ? h : !0;
|
|
171
|
+
const o = document.createElement("video");
|
|
172
|
+
o.crossOrigin = "anonymous", o.autoplay = !1, o.muted = !0, o.loop = !0, o.playsInline = !0, this.video = o;
|
|
173
|
+
const n = new F(this.video);
|
|
174
|
+
n.minFilter = g, n.magFilter = g;
|
|
230
175
|
const a = new y({
|
|
231
176
|
vertexShader: M,
|
|
232
177
|
fragmentShader: P,
|
|
233
178
|
uniforms: {
|
|
234
|
-
map: { value:
|
|
179
|
+
map: { value: n },
|
|
235
180
|
size: {
|
|
236
181
|
value: new x(this.origin[0], 1 - this.origin[1] - this.origin[3], this.origin[2], this.origin[3])
|
|
237
182
|
},
|
|
@@ -273,21 +218,21 @@ class Gi {
|
|
|
273
218
|
lookAtVideo() {
|
|
274
219
|
if (!this.observer)
|
|
275
220
|
return;
|
|
276
|
-
const
|
|
277
|
-
if (!i)
|
|
278
|
-
return;
|
|
279
|
-
const e = this.uv2Position(i[0], i[1]);
|
|
221
|
+
const e = this.getUVCenter();
|
|
280
222
|
if (!e)
|
|
281
223
|
return;
|
|
282
|
-
const
|
|
283
|
-
|
|
224
|
+
const i = this.uv2Position(e[0], e[1]);
|
|
225
|
+
if (!i)
|
|
226
|
+
return;
|
|
227
|
+
const o = new l().subVectors(i, this.observer.position).normalize(), { longitude: n, latitude: a } = A(o);
|
|
228
|
+
this.five.setState({ panoIndex: this.panoIndex, longitude: n, latitude: a }), this.onFiveWantsMoveToPano(this.panoIndex);
|
|
284
229
|
}
|
|
285
230
|
/** 获取视频中心点的 uv */
|
|
286
231
|
getUVCenter() {
|
|
287
232
|
if (!this.origin)
|
|
288
233
|
return;
|
|
289
|
-
const
|
|
290
|
-
return [
|
|
234
|
+
const e = this.origin[0] + this.origin[2] / 2, i = this.origin[1] + this.origin[3] / 2;
|
|
235
|
+
return [e, i];
|
|
291
236
|
}
|
|
292
237
|
/** 添加时间监听 */
|
|
293
238
|
addEventListeners() {
|
|
@@ -299,8 +244,8 @@ class Gi {
|
|
|
299
244
|
}
|
|
300
245
|
/** 如果满足 mount 条件,mount */
|
|
301
246
|
mountIfNeeded() {
|
|
302
|
-
const
|
|
303
|
-
|
|
247
|
+
const e = this.five.getCurrentState();
|
|
248
|
+
e.mode === "Panorama" && e.panoIndex === this.panoIndex && this.enabled && this.mount();
|
|
304
249
|
}
|
|
305
250
|
/** 挂载:加载视频资源;添加模型。 */
|
|
306
251
|
mount() {
|
|
@@ -308,10 +253,10 @@ class Gi {
|
|
|
308
253
|
return this.logWarning("插件已经销毁,无法挂载。");
|
|
309
254
|
if (this.url === "")
|
|
310
255
|
return this.logWarning("视频资源不存在。");
|
|
311
|
-
this.video.src !== this.url && (this.video.src = this.url), this.video.paused && this.video.play().catch((
|
|
312
|
-
this.logWarning(
|
|
313
|
-
this.video.play().catch((
|
|
314
|
-
this.logWarning(
|
|
256
|
+
this.video.src !== this.url && (this.video.src = this.url), this.video.paused && this.video.play().catch((e) => {
|
|
257
|
+
this.logWarning(e instanceof Error ? e.message : "视频播放失败。"), this.five.once("gesture", () => {
|
|
258
|
+
this.video.play().catch((i) => {
|
|
259
|
+
this.logWarning(i instanceof Error ? i.message : "自动播放视频失败。");
|
|
315
260
|
});
|
|
316
261
|
});
|
|
317
262
|
});
|
|
@@ -325,17 +270,17 @@ class Gi {
|
|
|
325
270
|
this.video.pause(), this.videoMesh.material.uniforms.opacity.value = 0, this.five.scene.remove(this.videoMesh);
|
|
326
271
|
}
|
|
327
272
|
/** 控制台打印警告 */
|
|
328
|
-
logWarning(
|
|
329
|
-
console.warn("⛔ ==> [VideoMeshController]:",
|
|
273
|
+
logWarning(e) {
|
|
274
|
+
console.warn("⛔ ==> [VideoMeshController]:", e);
|
|
330
275
|
}
|
|
331
276
|
/** 检测射线与模型的交点是不是在视频的范围内 */
|
|
332
|
-
checkIntersectionInBounding(
|
|
333
|
-
if (!
|
|
277
|
+
checkIntersectionInBounding(e, i) {
|
|
278
|
+
if (!i.uv)
|
|
334
279
|
return !1;
|
|
335
|
-
const [
|
|
336
|
-
return
|
|
280
|
+
const [o, n] = i.uv.toArray(), [a, d, s, r] = e, h = 1 - d - r, f = a + s, c = h + r;
|
|
281
|
+
return o >= a && o <= f && n >= h && n <= c;
|
|
337
282
|
}
|
|
338
283
|
}
|
|
339
284
|
export {
|
|
340
|
-
|
|
285
|
+
S as VideoMeshController
|
|
341
286
|
};
|