@realsee/dnalogel 2.30.3 → 3.0.0-2
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/dist/CSS3DRenderPlugin/Controller.d.ts +3 -2
- package/dist/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +5 -7
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
- package/dist/PanoTagPlugin/controller/TagCache.d.ts +3 -3
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -6
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +66 -20
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
- package/dist/PanoTagPlugin/utils/index.d.ts +0 -2
- package/dist/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
- package/dist/floorplan/utils/correctFiveState.d.ts +1 -1
- package/dist/index.cjs.js +61 -61
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5316 -5318
- package/dist/index.umd.js +48 -48
- package/dist/shared-utils/five/FiveDomEvents.d.ts +1 -3
- package/dist/shared-utils/five/adapt.d.ts +9 -0
- package/dist/shared-utils/five/fiveModelLoad.d.ts +9 -0
- package/dist/shared-utils/getPxmm.d.ts +1 -1
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/nearlyEqual.d.ts +7 -0
- package/dist/shared-utils/three/getNormal.d.ts +2 -0
- package/dist/shared-utils/typescript/entries.d.ts +2 -0
- package/dist/shared-utils/url/getUrl.d.ts +4 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
- package/docs/classes/CSS3DRender.html +773 -0
- package/docs/classes/CruisePluginController.html +672 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +491 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +792 -0
- package/docs/classes/Magnifier.html +480 -0
- package/docs/classes/ModelRoomLabelController.html +398 -0
- package/docs/classes/Object3DHelperController.html +640 -0
- package/docs/classes/PaintBrush.html +502 -0
- package/docs/classes/PanoMeasurePluginLine.html +522 -0
- package/docs/classes/PanoMeasurePluginModel.html +571 -0
- package/docs/classes/PanoMeasurePluginPoint.html +362 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
- package/docs/classes/PanoTagPluginController.html +1050 -0
- package/docs/classes/Util.BetterTween.html +416 -0
- package/docs/classes/Util.Interval.html +432 -0
- package/docs/classes/Util.LineSegments.html +384 -0
- package/docs/classes/Util.Magnifier.html +503 -0
- package/docs/classes/Util.Object3D.html +406 -0
- package/docs/classes/Util.PointDomHelper.html +407 -0
- package/docs/classes/Util.PointHelper.html +398 -0
- package/docs/classes/Util.PointSelectorHelper.html +454 -0
- package/docs/classes/Util.Rectangle.html +455 -0
- package/docs/enums/CameraMovementEffect.html +310 -0
- package/docs/enums/ContentType.html +446 -0
- package/docs/enums/DIRECTION.html +320 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/DimensionType.html +310 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/PaintBrushTypeEnum.html +313 -0
- package/docs/enums/PointType.html +310 -0
- package/docs/enums/Rotation.html +317 -0
- package/docs/functions/AreaMakerPlugin.html +290 -0
- package/docs/functions/CSS3DRenderPlugin.html +288 -0
- package/docs/functions/CameraMovementPlugin.html +293 -0
- package/docs/functions/CruisePlugin.html +290 -0
- package/docs/functions/CurrentPanoImagePlugin.html +290 -0
- package/docs/functions/GuideLinePlugin.html +290 -0
- package/docs/functions/ItemLabelPlugin.html +290 -0
- package/docs/functions/MapviewFloorplanPlugin.html +290 -0
- package/docs/functions/ModelChassisCompassPlugin.html +293 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
- package/docs/functions/ModelFloorplanPlugin.html +290 -0
- package/docs/functions/ModelItemLabelPlugin.html +290 -0
- package/docs/functions/ModelRoomLabelPlugin.html +288 -0
- package/docs/functions/ModelTVVideoPlugin.html +290 -0
- package/docs/functions/ModelViewPlugin.html +293 -0
- package/docs/functions/Object3DHelperPlugin.html +288 -0
- package/docs/functions/PanoCompassPlugin.html +290 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
- package/docs/functions/PanoDoorLabelPlugin.html +290 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
- package/docs/functions/PanoMeasurePlugin.html +290 -0
- package/docs/functions/PanoRulerPlugin.html +293 -0
- package/docs/functions/PanoRulerProPlugin.html +293 -0
- package/docs/functions/PanoSpatialTagPlugin.html +293 -0
- package/docs/functions/PanoTagPlugin.html +295 -0
- package/docs/functions/PanoVideoPlugin.html +299 -0
- package/docs/functions/PipelinePlugin.html +288 -0
- package/docs/functions/TopviewFloorplanPlugin.html +290 -0
- package/docs/functions/Util.absoluteUrl.html +326 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
- package/docs/functions/Util.equal.html +338 -0
- package/docs/functions/Util.getCoordsFromClient.html +328 -0
- package/docs/functions/Util.getCoordsFromElement.html +328 -0
- package/docs/functions/Util.getFrameTime.html +320 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
- package/docs/functions/Util.isAbsoluteURL.html +321 -0
- package/docs/functions/Util.isModelLike.html +321 -0
- package/docs/functions/Util.isNil.html +329 -0
- package/docs/functions/Util.isPanoramaLike.html +321 -0
- package/docs/functions/Util.nextFrame.html +334 -0
- package/docs/functions/Util.notNil.html +329 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
- package/docs/functions/Util.tweenProgress.html +323 -0
- package/docs/functions/Util.uuid.html +319 -0
- package/docs/functions/pluginFlag.html +288 -0
- package/docs/index.html +354 -0
- package/docs/interfaces/AddTagConfig.html +303 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
- package/docs/interfaces/EventMap.html +542 -0
- package/docs/interfaces/FloorplanBounding.html +332 -0
- package/docs/interfaces/FloorplanData.html +335 -0
- package/docs/interfaces/FloorplanEntrance.html +360 -0
- package/docs/interfaces/FloorplanExtraObject.html +350 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
- package/docs/interfaces/FloorplanFloorData.html +328 -0
- package/docs/interfaces/FloorplanImagePosition.html +314 -0
- package/docs/interfaces/FloorplanObserver.html +332 -0
- package/docs/interfaces/FloorplanOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanPosition.html +314 -0
- package/docs/interfaces/FloorplanRoomItem.html +379 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
- package/docs/interfaces/FloorplanServerBounding.html +332 -0
- package/docs/interfaces/FloorplanServerComputedData.html +331 -0
- package/docs/interfaces/FloorplanServerData.html +314 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
- package/docs/interfaces/FloorplanServerEntrance.html +360 -0
- package/docs/interfaces/FloorplanServerFloorData.html +328 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
- package/docs/interfaces/FloorplanServerObserver.html +332 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanServerPosition.html +314 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +361 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +525 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +356 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +347 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +414 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +346 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +471 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +343 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +471 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +308 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +329 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +354 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +370 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +352 -0
- package/docs/interfaces/HelperOffset.html +332 -0
- package/docs/interfaces/ImagePlaneGroup.html +306 -0
- package/docs/interfaces/ItemLabelPluginData.html +303 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
- package/docs/interfaces/MinMax.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
- package/docs/interfaces/ModelViewPluginExportType.html +416 -0
- package/docs/interfaces/Object3DHelperState.html +317 -0
- package/docs/interfaces/ObjectHelperControllers.html +324 -0
- package/docs/interfaces/PaintBrushAction.html +363 -0
- package/docs/interfaces/PaintBrushConfigs.html +361 -0
- package/docs/interfaces/PaintBrushState.html +345 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
- package/docs/interfaces/PanoMeasureParameterType.html +449 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
- package/docs/interfaces/PanoRulerProPluginState.html +317 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
- package/docs/interfaces/Point.html +317 -0
- package/docs/interfaces/Room.html +324 -0
- package/docs/interfaces/RoomInfo.html +310 -0
- package/docs/interfaces/RoomLabel.html +386 -0
- package/docs/interfaces/RoomRules.html +285 -0
- package/docs/interfaces/Rooms.html +285 -0
- package/docs/interfaces/Scissor.html +344 -0
- package/docs/interfaces/State.html +331 -0
- package/docs/interfaces/TagCacheInterface.html +362 -0
- package/docs/interfaces/TagConfig.html +565 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
- package/docs/interfaces/TagIconUrl.html +363 -0
- package/docs/interfaces/TagObjectGroup.html +306 -0
- package/docs/interfaces/TagStyle.html +316 -0
- package/docs/interfaces/Tags.html +2688 -0
- package/docs/interfaces/TemporaryState.html +303 -0
- package/docs/interfaces/Util.MagnifierParameter.html +391 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
- package/docs/interfaces/Util.PointIntersection.html +365 -0
- package/docs/modules/AreaMakerPluginType.html +323 -0
- package/docs/modules/CruisePluginTypes.html +328 -0
- package/docs/modules/CurrentPanoImagePluginType.html +297 -0
- package/docs/modules/GuideLineItem.html +289 -0
- package/docs/modules/GuideLineModeItem.html +294 -0
- package/docs/modules/GuideLinePluginType.html +348 -0
- package/docs/modules/PanoVideoPluginType.html +301 -0
- package/docs/modules/Util.html +351 -0
- package/docs/modules.html +540 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
- package/docs/types/ArrayPosition.html +279 -0
- package/docs/types/AudioAppearance.html +279 -0
- package/docs/types/AudioTagTypeConfigKey.html +279 -0
- package/docs/types/CSS3DRenderExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
- package/docs/types/ClassFunctionParameters.html +286 -0
- package/docs/types/Color.html +279 -0
- package/docs/types/ContentTypeConfigKey.html +279 -0
- package/docs/types/ContentTypeConfigKeySplit.html +279 -0
- package/docs/types/ContentTypeMap.html +279 -0
- package/docs/types/Create3DDomContainerReturnType.html +279 -0
- package/docs/types/Create3DElementReturnType.html +279 -0
- package/docs/types/CruisePluginExportType.html +279 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
- package/docs/types/DeprecatedTagProperty.html +294 -0
- package/docs/types/Direction-1.html +279 -0
- package/docs/types/Direction4.html +279 -0
- package/docs/types/ElementRenderer.html +303 -0
- package/docs/types/FloorplanRuleLabels.html +282 -0
- package/docs/types/FloorplanServerRuleLabels.html +279 -0
- package/docs/types/GuideLinePluginExportType.html +279 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +351 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +372 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +305 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +308 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +308 -0
- package/docs/types/GuideLinePluginType.PathItem.html +308 -0
- package/docs/types/GuideLinePluginType.PluginData.html +317 -0
- package/docs/types/HelperEventMap.html +517 -0
- package/docs/types/LoadTagConfig.html +279 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/MediaData.html +295 -0
- package/docs/types/MediaStore.html +284 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
- package/docs/types/ModelId.html +279 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
- package/docs/types/MoveArgs.html +289 -0
- package/docs/types/MoveOpts.html +287 -0
- package/docs/types/Object3DHelperEventMap.html +372 -0
- package/docs/types/ObjectFit.html +279 -0
- package/docs/types/PaintBrushEventMap.html +310 -0
- package/docs/types/PanoCompassPluginData.html +279 -0
- package/docs/types/PanoCompassPluginExportType.html +279 -0
- package/docs/types/PanoCompassPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
- package/docs/types/PanoIndex.html +279 -0
- package/docs/types/PanoMeasurePluginEvent.html +279 -0
- package/docs/types/PanoMeasureReturnType.html +279 -0
- package/docs/types/PanoSpatialTagPluginId.html +279 -0
- package/docs/types/PanoTagPluginExportInterface.html +279 -0
- package/docs/types/PanoTagPluginParamsInterface.html +279 -0
- package/docs/types/PanoVideoPluginParameterType.html +279 -0
- package/docs/types/PanoVideoPluginReturnType.html +279 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
- package/docs/types/PipelinePluginParameterType.html +279 -0
- package/docs/types/PipelinePluginReturnType.html +279 -0
- package/docs/types/PlaneTag.html +287 -0
- package/docs/types/Point2DTag.html +287 -0
- package/docs/types/Point3DTag.html +287 -0
- package/docs/types/PointTag.html +284 -0
- package/docs/types/PointTagInstance.html +284 -0
- package/docs/types/Position.html +279 -0
- package/docs/types/RotateArgs.html +291 -0
- package/docs/types/RotateOpts.html +287 -0
- package/docs/types/RuleLabelsKey.html +279 -0
- package/docs/types/RuleLabelsValue.html +279 -0
- package/docs/types/StickType.html +279 -0
- package/docs/types/Tag.html +345 -0
- package/docs/types/Tag2D.html +287 -0
- package/docs/types/Tag3D.html +287 -0
- package/docs/types/TagConfigByKey.html +284 -0
- package/docs/types/TagContentType.html +279 -0
- package/docs/types/TagDimensionType.html +281 -0
- package/docs/types/TagElement.html +289 -0
- package/docs/types/TagEvents.html +332 -0
- package/docs/types/TagGLTFObject.html +302 -0
- package/docs/types/TagHooks.html +279 -0
- package/docs/types/TagId.html +279 -0
- package/docs/types/TagInstance.html +353 -0
- package/docs/types/TagPointType.html +282 -0
- package/docs/types/TagRendererMap.html +284 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/WorkCode.html +279 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
- package/docs/variables/PLUGIN.html +279 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
- package/docs/variables/ROOM_TYPE_MAP.html +289 -0
- package/docs/variables/defaultGlobalConfig.html +279 -0
- package/docs/variables/itemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
- package/libs/AreaMakerPlugin/Controller.js +5 -3
- package/libs/AreaMakerPlugin/index.js +5 -3
- package/libs/AreaMakerPlugin/utils/Item.js +9 -7
- package/libs/CSS3DRenderPlugin/Controller.d.ts +3 -2
- package/libs/CSS3DRenderPlugin/Controller.js +9 -6
- package/libs/CSS3DRenderPlugin/index.js +8 -6
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +9 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.d.ts +0 -4
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +23 -22
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +5 -7
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +43 -53
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +70 -66
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -3
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -10
- package/libs/CruisePlugin/Controller.js +42 -38
- package/libs/CruisePlugin/index.js +13 -9
- package/libs/CurrentPanoImagePlugin/Controller.js +27 -22
- package/libs/CurrentPanoImagePlugin/index.js +7 -4
- package/libs/GuideLinePlugin/Controller.js +29 -25
- package/libs/GuideLinePlugin/GuideLineItem.js +10 -6
- package/libs/GuideLinePlugin/GuideLineModeItem.js +10 -6
- package/libs/GuideLinePlugin/index.js +15 -11
- package/libs/ModelTVVideoPlugin/Plugin.js +6 -4
- package/libs/ModelTVVideoPlugin/index.js +5 -3
- package/libs/Object3DHelperPlugin/Controller.js +5 -3
- package/libs/Object3DHelperPlugin/index.js +8 -6
- package/libs/PanoCompassPlugin/Controller.js +5 -3
- package/libs/PanoCompassPlugin/index.js +6 -4
- package/libs/PanoDoorLabelPlugin/BaseController.js +9 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -3
- package/libs/PanoDoorLabelPlugin/index.js +6 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +5 -3
- package/libs/PanoMeasurePlugin/Components/Controller1.js +55 -53
- package/libs/PanoMeasurePlugin/Controller/EditController.js +5 -3
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +5 -3
- package/libs/PanoMeasurePlugin/Model/area.js +4 -2
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +25 -23
- package/libs/PanoMeasurePlugin/index.js +16 -14
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +14 -12
- package/libs/PanoSpatialTagPlugin/Plugin.js +12 -22
- package/libs/PanoSpatialTagPlugin/index.js +3 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +206 -205
- package/libs/PanoTagPlugin/Components/TagContainer.js +12 -11
- package/libs/PanoTagPlugin/Components/TagItem.js +129 -128
- package/libs/PanoTagPlugin/controller/TagCache.d.ts +3 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +17 -15
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +6 -12
- package/libs/PanoTagPlugin/controller/TagComputer.js +172 -201
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +143 -120
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -6
- package/libs/PanoTagPlugin/controller/TagUtil.js +186 -153
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -6
- package/libs/PanoTagPlugin/controller/index.js +145 -151
- package/libs/PanoTagPlugin/index.js +21 -16
- package/libs/PanoTagPlugin/tag.config.js +11 -3
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -2
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +66 -20
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +7 -2
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +8 -3
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
- package/libs/PanoTagPlugin/utils/index.d.ts +0 -2
- package/libs/PanoTagPlugin/utils/index.js +23 -31
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +97 -99
- package/libs/PanoTagPlugin/utils/planeNormal.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/adaptConfig.js +7 -0
- package/libs/PanoVideoPlugin/Controller.js +5 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
- package/libs/PanoVideoPlugin/index.js +8 -6
- package/libs/PipelinePlugin/Controller.js +5 -3
- package/libs/PipelinePlugin/index.js +6 -4
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +14 -12
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +2 -0
- package/libs/base/BasePlugin.js +2 -2
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +6 -5
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +33 -31
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -4
- package/libs/floorplan/index.js +1 -0
- package/libs/floorplan/utils/correctFiveState.d.ts +1 -1
- package/libs/floorplan/utils/correctFiveState.js +30 -29
- package/libs/index.d.ts +1 -0
- package/libs/index.js +125 -120
- package/libs/shared-utils/five/FiveDomEvents.d.ts +1 -3
- package/libs/shared-utils/five/FiveDomEvents.js +50 -56
- package/libs/shared-utils/five/adapt.d.ts +9 -0
- package/libs/shared-utils/five/adapt.js +16 -0
- package/libs/shared-utils/five/changeMode.js +11 -11
- package/libs/shared-utils/five/fiveModelLoad.d.ts +9 -0
- package/libs/shared-utils/five/fiveModelLoad.js +29 -0
- package/libs/shared-utils/five/mode.js +5 -5
- package/libs/shared-utils/getPxmm.d.ts +1 -1
- package/libs/shared-utils/getPxmm.js +1 -3
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/nearlyEqual.d.ts +7 -0
- package/libs/shared-utils/nearlyEqual.js +9 -3
- package/libs/shared-utils/three/getNormal.d.ts +2 -0
- package/libs/shared-utils/three/getNormal.js +10 -0
- package/libs/shared-utils/typescript/entries.d.ts +2 -0
- package/libs/shared-utils/typescript/entries.js +6 -0
- package/libs/shared-utils/url/getUrl.d.ts +4 -0
- package/libs/shared-utils/url/getUrl.js +7 -0
- package/package.json +2 -6
- package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -4
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +0 -16
- /package/dist/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.d.ts → url/absoluteUrl.d.ts} +0 -0
- /package/libs/shared-utils/{absoluteUrl.js → url/absoluteUrl.js} +0 -0
|
@@ -5,26 +5,59 @@ import type { MinMax } from './Utils';
|
|
|
5
5
|
import type { TagInstance } from './TagInstance';
|
|
6
6
|
import type { PartialObjectDeep } from '../../../typings/typings';
|
|
7
7
|
import type { Vector3 } from 'three';
|
|
8
|
-
type ConfigFunction = (five: Five, tagState: {
|
|
9
|
-
tag: TagInstance<any>;
|
|
10
|
-
/** 标签点或中心点的到摄像机的距离 */
|
|
11
|
-
distance: number;
|
|
12
|
-
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
13
|
-
angleRange?: number;
|
|
14
|
-
}) => boolean;
|
|
15
8
|
export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
16
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* @description: 显示/隐藏相关配置
|
|
11
|
+
*/
|
|
17
12
|
visibleConfig?: {
|
|
18
13
|
/**
|
|
19
|
-
* @description
|
|
14
|
+
* @description 在 `visibleFiveMode` 指定的 `mode` 中,保持可见/不可见。设置后 `visibleConfig` 中除了 `visibleFiveMode` 外的所有其他配置都不生效
|
|
20
15
|
* @default null
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* // 在 Panorama 和 Floorplan 模式下永远保持可见
|
|
19
|
+
* const config = {
|
|
20
|
+
* keep: 'visible',
|
|
21
|
+
* visibleFiveMode: ['Panorama', 'Floorplan'],
|
|
22
|
+
* }
|
|
23
|
+
* // 在 tag.fiveState.mode 中时,永远保持可见
|
|
24
|
+
* const config = {
|
|
25
|
+
* keep: 'visible',
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
21
28
|
*/
|
|
22
29
|
keep?: 'visible' | 'hidden' | null;
|
|
23
30
|
/**
|
|
24
|
-
* @description 在哪些 five mode 下可见
|
|
25
|
-
* @
|
|
31
|
+
* @description 在哪些 `five mode` 下可见
|
|
32
|
+
* @tips 默认值的设定是在 config 合并后,而不是合并前
|
|
33
|
+
* @default
|
|
34
|
+
* ```
|
|
35
|
+
* visibleFiveMode = tag.fiveState?.mode ?? 'Panorama'
|
|
36
|
+
* ```
|
|
37
|
+
* @example
|
|
38
|
+
* ```typescript
|
|
39
|
+
* const tag = {
|
|
40
|
+
* ...
|
|
41
|
+
* fiveState: {
|
|
42
|
+
* mode: 'Floorplan',
|
|
43
|
+
* }
|
|
44
|
+
* ...
|
|
45
|
+
* config: {},
|
|
46
|
+
* }
|
|
47
|
+
* // 相当于
|
|
48
|
+
* const tag = {
|
|
49
|
+
* ...
|
|
50
|
+
* fiveState: {
|
|
51
|
+
* mode: 'Floorplan',
|
|
52
|
+
* }
|
|
53
|
+
* ...
|
|
54
|
+
* config: {
|
|
55
|
+
* visibleFiveMode: 'Floorplan',
|
|
56
|
+
* },
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
26
59
|
*/
|
|
27
|
-
visibleFiveMode?: Mode[];
|
|
60
|
+
visibleFiveMode?: Mode | Mode[] | 'PanoramaLike' | 'ModelLike' | 'all';
|
|
28
61
|
/**
|
|
29
62
|
* @description 当 visibleFiveMode 包含 'Floorplan' 或者 'MapView' 时,是否仅在当前楼层模型下可见
|
|
30
63
|
* @default false
|
|
@@ -32,24 +65,27 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
32
65
|
followModelVisibility?: boolean;
|
|
33
66
|
/**
|
|
34
67
|
* @description 走点时不隐藏
|
|
68
|
+
* @fivemode 只在全景模式下生效
|
|
35
69
|
* @default false
|
|
36
70
|
*/
|
|
37
|
-
alwaysShowWhenMovePano?:
|
|
71
|
+
alwaysShowWhenMovePano?: boolean;
|
|
38
72
|
/**
|
|
39
|
-
* @description
|
|
73
|
+
* @description 配置可见距离
|
|
74
|
+
* @fivemode 只在全景模式下生效
|
|
40
75
|
* @default 'unLimited'
|
|
41
76
|
*/
|
|
42
77
|
visibleDistance?: MinMax | 'unLimited';
|
|
43
78
|
/**
|
|
44
|
-
* @description
|
|
45
|
-
* @
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
79
|
+
* @description 配置标签可见点位
|
|
80
|
+
* @fivemode 只在全景模式下生效
|
|
81
|
+
* @param all 不限制
|
|
82
|
+
* @param current 仅当前点位可见
|
|
83
|
+
* @param number[] 仅指定点位可见
|
|
48
84
|
* @default 'all'
|
|
49
85
|
*/
|
|
50
86
|
visiblePanoIndex?: 'all' | 'current' | number[];
|
|
51
87
|
/**
|
|
52
|
-
* @description
|
|
88
|
+
* @description 碰撞检测配置
|
|
53
89
|
* @default true
|
|
54
90
|
*/
|
|
55
91
|
intersectRaycaster?: boolean | {
|
|
@@ -76,11 +112,14 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
76
112
|
};
|
|
77
113
|
/**
|
|
78
114
|
* @description 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角,范围内自动展开,范围外自动收起
|
|
115
|
+
* @fivemode 只在全景模式下生效
|
|
79
116
|
* @default undefined
|
|
80
117
|
*/
|
|
81
118
|
angleRange?: MinMax;
|
|
82
119
|
} | ConfigFunction;
|
|
83
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* @description: 展开/收起相关配置
|
|
122
|
+
*/
|
|
84
123
|
unfoldedConfig?: {
|
|
85
124
|
/**
|
|
86
125
|
* @description: 保持展开/收起,设置后unfoldedConfig下所有其他配置都不生效
|
|
@@ -178,4 +217,11 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
178
217
|
_isMerged?: boolean;
|
|
179
218
|
}
|
|
180
219
|
export declare const defaultGlobalConfig: TagConfig;
|
|
220
|
+
type ConfigFunction = (five: Five, tagState: {
|
|
221
|
+
tag: TagInstance<any>;
|
|
222
|
+
/** 标签点或中心点的到摄像机的距离 */
|
|
223
|
+
distance: number;
|
|
224
|
+
/** 3D标签中 「标签所在平面或垂直于标签法线的平面」 与 「摄像机到标签点或中心点的向量」 的夹角 */
|
|
225
|
+
angleRange?: number;
|
|
226
|
+
}) => boolean;
|
|
181
227
|
export {};
|
|
@@ -7,7 +7,7 @@ import type { Vector3 } from 'three';
|
|
|
7
7
|
import type { ImagePlane, VideoPlane } from '../../utils/model/mediaPlane';
|
|
8
8
|
import type { TagEvents } from '../controller';
|
|
9
9
|
import type { TagConfig } from './TagConfig';
|
|
10
|
-
import type { Subscribe } from '@realsee/five';
|
|
10
|
+
import type { Mode, Subscribe } from '@realsee/five';
|
|
11
11
|
import type { SetRequired } from 'type-fest';
|
|
12
12
|
import type { PartialObjectDeep } from '../../../typings/typings';
|
|
13
13
|
type RequiredTag<C extends TagContentType = TagContentType, S extends StickType = StickType> = SetRequired<Tag<C, S>, 'id' | 'data' | 'enabled' | 'config' | 'stickType' | 'contentType'>;
|
|
@@ -35,7 +35,7 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
35
35
|
promise: Promise<TagGLTFObject>;
|
|
36
36
|
object?: TagGLTFObject;
|
|
37
37
|
};
|
|
38
|
-
|
|
38
|
+
loading: boolean;
|
|
39
39
|
play: () => void;
|
|
40
40
|
pause: () => void;
|
|
41
41
|
}> & {
|
|
@@ -43,6 +43,11 @@ export type TagInstance<C extends TagContentType = TagContentType, S extends Sti
|
|
|
43
43
|
visible?: boolean;
|
|
44
44
|
unfolded: boolean;
|
|
45
45
|
};
|
|
46
|
+
config: TagConfig<C> & {
|
|
47
|
+
configWithFiveMode?: {
|
|
48
|
+
[key in Mode]?: TagConfig<C>;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
46
51
|
hooks: Subscribe<TagEvents<C>>;
|
|
47
52
|
unfold: () => void;
|
|
48
53
|
fold: () => void;
|
|
@@ -4,11 +4,13 @@ import type { TagContentType } from './TagData';
|
|
|
4
4
|
import type { ImagePlane } from '../../utils/model/mediaPlane';
|
|
5
5
|
import type { TagInstance } from './TagInstance';
|
|
6
6
|
import type { TagConfig } from '../..';
|
|
7
|
+
import type { Mode } from '@realsee/five';
|
|
7
8
|
export type TagId = string | number;
|
|
8
9
|
export type ArrayPosition = number[];
|
|
9
10
|
export type Position = ArrayPosition;
|
|
10
11
|
export type PanoIndex = number;
|
|
11
12
|
export type WorkCode = string;
|
|
13
|
+
export type ModelId = string;
|
|
12
14
|
export interface MinMax {
|
|
13
15
|
min?: number;
|
|
14
16
|
max?: number;
|
|
@@ -61,13 +63,15 @@ export interface ImagePlaneGroup extends Group {
|
|
|
61
63
|
}
|
|
62
64
|
export type AudioAppearance = TagInstance<'Audio'>['data']['appearance'];
|
|
63
65
|
export type AudioTagTypeConfigKey = `${StickType | 'Any'}-Audio-${AudioAppearance}`;
|
|
64
|
-
|
|
66
|
+
type _ContentTypeConfigKey = `${StickType | 'Any'}-${TagContentType | 'Any'}` | TagContentType | AudioTagTypeConfigKey | `Mixin-${string}` | 'Any';
|
|
67
|
+
export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance] | ['Mixin', string] | ['Any'] | [];
|
|
68
|
+
type FiveModeType = `[${Mode | 'PanoramaLike' | 'ModelLike'}]`;
|
|
69
|
+
export type ContentTypeConfigKey = FiveModeType | `${FiveModeType}-${_ContentTypeConfigKey}` | _ContentTypeConfigKey;
|
|
65
70
|
/**
|
|
66
71
|
* @description: 从 ContentTypeConfigKey 中提取 ContentTypeConfigKey 对应的 TagContentType 是啥,没找到就是 never
|
|
67
72
|
*/
|
|
68
|
-
export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends `${any}-Audio-${any}` ? 'Audio' : T extends `Mixin-${string}` ? string : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
|
|
73
|
+
export type PickTagContentTypeInContentTypeConfigKey<T extends ContentTypeConfigKey> = T extends FiveModeType ? never : T extends `${FiveModeType}-${infer P extends _ContentTypeConfigKey}` ? PickTagContentTypeInContentTypeConfigKey<P> : T extends `${any}-Audio-${any}` ? 'Audio' : T extends `Mixin-${string}` ? string : T extends `${any}-${infer C}` ? C : T extends TagContentType ? T : never;
|
|
69
74
|
export type TagConfigByKey<T extends ContentTypeConfigKey> = PickTagContentTypeInContentTypeConfigKey<T> extends TagContentType ? TagConfig<PickTagContentTypeInContentTypeConfigKey<T>> : TagConfig<any>;
|
|
70
|
-
export type ContentTypeConfigKeySplit = [StickType | 'Any', TagContentType | 'Any'] | ['Mixin', string] | [TagContentType] | [StickType | 'Any', 'Audio', AudioAppearance];
|
|
71
75
|
export type PointTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint' | '3DPoint'>;
|
|
72
76
|
/** 二维标签 */
|
|
73
77
|
export type Point2DTag<C extends TagContentType = TagContentType> = TagInstance<C, '2DPoint'>;
|
|
@@ -75,3 +79,4 @@ export type Point2DTag<C extends TagContentType = TagContentType> = TagInstance<
|
|
|
75
79
|
export type Point3DTag<C extends TagContentType = TagContentType> = TagInstance<C, '3DPoint'>;
|
|
76
80
|
/** 三维贴片 */
|
|
77
81
|
export type PlaneTag<C extends TagContentType = TagContentType> = TagInstance<C, 'Plane'>;
|
|
82
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { arrayPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
|
|
2
1
|
import * as o from "three";
|
|
2
|
+
import { arrayPositionToVector3 as c } from "../../shared-utils/positionToVector3.js";
|
|
3
3
|
function M(h, p) {
|
|
4
4
|
p.forEach((t) => {
|
|
5
5
|
const r = new o.SphereGeometry(0.02, 16, 16), i = [], a = [
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export * from '../../shared-utils/positionToVector3';
|
|
2
1
|
export * from './addDebugPoints';
|
|
3
2
|
export * from './noTypecheck';
|
|
4
3
|
export * from './planeNormal';
|
|
5
4
|
export * from './tagPosition';
|
|
6
5
|
export * from './checkRange';
|
|
7
|
-
export * from './actionAfterFiveModelLoad';
|
|
8
6
|
export * from './normalPositionToPositions';
|
|
9
7
|
export * from './debounce';
|
|
10
8
|
export * from './throttle';
|
|
@@ -1,36 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { binarySearchFirstBig as A, searchFirstValueSmallThanLastValue as B } from "./search.js";
|
|
12
|
-
import { resizeObserver as D } from "./resizeObserver.js";
|
|
1
|
+
import { addDebugPoints as p } from "./addDebugPoints.js";
|
|
2
|
+
import { noTypecheck as n } from "./noTypecheck.js";
|
|
3
|
+
import { planeNormal as f } from "./planeNormal.js";
|
|
4
|
+
import { getTagCenterPosition as l, getTagPosition as c } from "./tagPosition.js";
|
|
5
|
+
import { checkRange as h } from "./checkRange.js";
|
|
6
|
+
import { normalPositionToPositions as T } from "./normalPositionToPositions.js";
|
|
7
|
+
import { debounce as u } from "./debounce.js";
|
|
8
|
+
import { throttle as k } from "./throttle.js";
|
|
9
|
+
import { binarySearchFirstBig as F, searchFirstValueSmallThanLastValue as S } from "./search.js";
|
|
10
|
+
import { resizeObserver as v } from "./resizeObserver.js";
|
|
13
11
|
import "three";
|
|
12
|
+
import "../../shared-utils/positionToVector3.js";
|
|
14
13
|
import "../../shared-utils/three/centerPoint.js";
|
|
15
14
|
import "./tag/tagCheck.js";
|
|
16
15
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
l as planeNormal,
|
|
30
|
-
m as positionToVector3,
|
|
31
|
-
D as resizeObserver,
|
|
32
|
-
B as searchFirstValueSmallThanLastValue,
|
|
33
|
-
w as throttle,
|
|
34
|
-
p as vector3Position,
|
|
35
|
-
y as waitFiveModelLoaded
|
|
16
|
+
p as addDebugPoints,
|
|
17
|
+
F as binarySearchFirstBig,
|
|
18
|
+
h as checkRange,
|
|
19
|
+
u as debounce,
|
|
20
|
+
l as getTagCenterPosition,
|
|
21
|
+
c as getTagPosition,
|
|
22
|
+
n as noTypecheck,
|
|
23
|
+
T as normalPositionToPositions,
|
|
24
|
+
f as planeNormal,
|
|
25
|
+
v as resizeObserver,
|
|
26
|
+
S as searchFirstValueSmallThanLastValue,
|
|
27
|
+
k as throttle
|
|
36
28
|
};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var r = (
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var B = (c, d, e) => d in c ? C(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
|
|
3
|
+
var r = (c, d, e) => (B(c, typeof d != "symbol" ? d + "" : d, e), e);
|
|
4
|
+
var v = (c, d, e) => new Promise((i, t) => {
|
|
5
|
+
var n = (s) => {
|
|
6
6
|
try {
|
|
7
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
o(e.next(s));
|
|
8
|
+
} catch (a) {
|
|
9
|
+
t(a);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, h = (s) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
o(e.throw(s));
|
|
14
|
+
} catch (a) {
|
|
15
|
+
t(a);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
17
|
+
}, o = (s) => s.done ? i(s.value) : Promise.resolve(s.value).then(n, h);
|
|
18
|
+
o((e = e.apply(c, d)).next());
|
|
19
19
|
});
|
|
20
|
-
import * as
|
|
21
|
-
import { Vector3 as
|
|
20
|
+
import * as p from "three";
|
|
21
|
+
import { Vector3 as I } from "three";
|
|
22
22
|
import { centerPoint as T } from "../../../shared-utils/three/centerPoint.js";
|
|
23
|
-
import { loadTexture as
|
|
24
|
-
import { QuadrangleGeometry as
|
|
25
|
-
import { getVideoTexture as
|
|
26
|
-
import { Image_Play_Icon_With_Text as
|
|
23
|
+
import { loadTexture as b } from "../../../shared-utils/three/loadTexture.js";
|
|
24
|
+
import { QuadrangleGeometry as L, QuadrangleMesh as w } from "../../../shared-utils/three/Quadrangle.js";
|
|
25
|
+
import { getVideoTexture as V } from "../../../shared-utils/three/loadVideoTexture.js";
|
|
26
|
+
import { Image_Play_Icon_With_Text as H, Image_Play_Icon as P } from "../../Assets/Icon.js";
|
|
27
27
|
import { getPositionsByObjectFit as f } from "../../../shared-utils/three/getPositionsByObjectFit.js";
|
|
28
|
-
import { FragmentTransparencyMaterial as
|
|
28
|
+
import { FragmentTransparencyMaterial as R } from "../../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
29
|
+
import { getNormal as x } from "../../../shared-utils/three/getNormal.js";
|
|
29
30
|
import "../../../shared-utils/math/pointIsRectangle.js";
|
|
30
31
|
import "../../../shared-utils/device.js";
|
|
31
|
-
class
|
|
32
|
+
class E extends p.Mesh {
|
|
32
33
|
constructor() {
|
|
33
34
|
super(...arguments);
|
|
34
35
|
r(this, "name", "MediaPlane");
|
|
@@ -41,56 +42,53 @@ class P extends c.Mesh {
|
|
|
41
42
|
dispose() {
|
|
42
43
|
this.traverse((e) => {
|
|
43
44
|
if (e.isMesh) {
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
const i = e;
|
|
46
|
+
i.geometry.dispose(), (i.material instanceof Array ? i.material : [i.material]).forEach((n) => {
|
|
47
|
+
n.dispose();
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
class
|
|
53
|
-
constructor(e,
|
|
54
|
-
var
|
|
53
|
+
class $ extends E {
|
|
54
|
+
constructor(e, i, t) {
|
|
55
|
+
var o;
|
|
55
56
|
super();
|
|
56
57
|
r(this, "name", "PanoTagPluginImagePlane");
|
|
57
58
|
this.src = e;
|
|
58
|
-
const
|
|
59
|
-
let
|
|
60
|
-
if (
|
|
61
|
-
const s =
|
|
62
|
-
|
|
63
|
-
new c.Vector3().subVectors(t[0], t[3])
|
|
64
|
-
).normalize().multiplyScalar(5e-4);
|
|
65
|
-
a = t.map((h) => h.clone().add(s));
|
|
59
|
+
const n = (o = t == null ? void 0 : t.resolveZFighting) != null ? o : !0;
|
|
60
|
+
let h = i;
|
|
61
|
+
if (n) {
|
|
62
|
+
const s = x(i, 5e-4);
|
|
63
|
+
h = i.map((a) => a.clone().add(s));
|
|
66
64
|
}
|
|
67
|
-
|
|
65
|
+
b(e).then((s) => {
|
|
68
66
|
var g;
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
(g =
|
|
73
|
-
|
|
67
|
+
const a = new URL(e, location.href).pathname.toLowerCase().endsWith(".png");
|
|
68
|
+
a && (s.minFilter = p.NearestFilter, s.magFilter = p.NearestFilter);
|
|
69
|
+
const u = new p.MeshBasicMaterial({ map: s, transparent: a }), M = f(
|
|
70
|
+
(g = t == null ? void 0 : t.objectFit) != null ? g : "contain",
|
|
71
|
+
h,
|
|
74
72
|
s.image.width / s.image.height
|
|
75
|
-
),
|
|
76
|
-
this.position.copy(
|
|
73
|
+
), l = T(...M), m = M.map((F) => F.clone().sub(l)), y = new L(m);
|
|
74
|
+
this.position.copy(l), this.geometry = y, this.material = u;
|
|
77
75
|
}).catch((s) => {
|
|
78
76
|
console.error(`Imageplane error ${s == null ? void 0 : s.message}`);
|
|
79
77
|
});
|
|
80
78
|
}
|
|
81
79
|
}
|
|
82
|
-
class
|
|
80
|
+
class q extends E {
|
|
83
81
|
// eslint-disable-next-line max-params
|
|
84
|
-
constructor(e,
|
|
82
|
+
constructor(e, i, t) {
|
|
85
83
|
const {
|
|
86
|
-
videoCoverSrc:
|
|
87
|
-
objectFit:
|
|
88
|
-
playButton:
|
|
84
|
+
videoCoverSrc: n,
|
|
85
|
+
objectFit: h = "contain",
|
|
86
|
+
playButton: o = "withText",
|
|
89
87
|
paused: s = !0,
|
|
90
|
-
videoTextureMap:
|
|
91
|
-
ImageTextureMap:
|
|
92
|
-
domEvents:
|
|
93
|
-
} =
|
|
88
|
+
videoTextureMap: a,
|
|
89
|
+
ImageTextureMap: u,
|
|
90
|
+
domEvents: M
|
|
91
|
+
} = t != null ? t : {};
|
|
94
92
|
super();
|
|
95
93
|
r(this, "isVideoPlane", !0);
|
|
96
94
|
r(this, "name", "PanoTagPluginImagePlane");
|
|
@@ -107,19 +105,19 @@ class G extends P {
|
|
|
107
105
|
r(this, "buttonMesh");
|
|
108
106
|
r(this, "videoTextureMap");
|
|
109
107
|
r(this, "ImageTextureMap");
|
|
110
|
-
this.cornerPoints =
|
|
108
|
+
this.cornerPoints = i, this.src = e, this.buttonSrc = (() => o === "withText" ? H : o === "withoutText" ? P : typeof o == "string" ? o : P)(), this.videoCoverSrc = n, this.objectFit = h, this.videoTextureMap = a, this.ImageTextureMap = u, this.domEvents = M, this.position.copy(T(...i)), this.videoCoverSrc && s ? this.addCoverMesh().then(() => this.addButtonMesh()) : this.addVideoMesh().then(() => {
|
|
111
109
|
s ? this.addButtonMesh() : this.play(!0);
|
|
112
110
|
}), this.addEventListener("removed", () => {
|
|
113
111
|
this.remove(...this.children);
|
|
114
112
|
}), this.addEventListener("dispose", () => {
|
|
115
|
-
var
|
|
116
|
-
(
|
|
113
|
+
var l;
|
|
114
|
+
(l = this.disposers) == null || l.forEach((m) => m == null ? void 0 : m());
|
|
117
115
|
});
|
|
118
116
|
}
|
|
119
117
|
play(e = !1) {
|
|
120
|
-
return
|
|
121
|
-
this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((
|
|
122
|
-
this.pause(), console.error("play error",
|
|
118
|
+
return v(this, null, function* () {
|
|
119
|
+
this.videoMesh || (yield this.addVideoMesh()), this.showPlayUI(), this.videoInstance.paused && this.videoInstance.play().then(() => this.showPlayUI()).catch((i) => {
|
|
120
|
+
this.pause(), console.error("play error", i);
|
|
123
121
|
}), this.videoInstance.muted = e, this.render();
|
|
124
122
|
});
|
|
125
123
|
}
|
|
@@ -127,17 +125,17 @@ class G extends P {
|
|
|
127
125
|
this.videoInstance && (this.videoInstance.pause(), this.showPauseUI().then(() => this.render()));
|
|
128
126
|
}
|
|
129
127
|
initialRenderHooks(e) {
|
|
130
|
-
const
|
|
131
|
-
var
|
|
132
|
-
this.videoMesh && ((
|
|
128
|
+
const t = e(() => {
|
|
129
|
+
var n;
|
|
130
|
+
this.videoMesh && ((n = this.videoInstance) == null ? void 0 : n.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
133
131
|
});
|
|
134
|
-
this.disposers.push(() =>
|
|
132
|
+
this.disposers.push(() => t);
|
|
135
133
|
}
|
|
136
134
|
showPlayUI() {
|
|
137
135
|
this.coverMesh && (this.coverMesh.visible = !1), this.remove(this.buttonMesh), this.videoMesh.visible = !0;
|
|
138
136
|
}
|
|
139
137
|
showPauseUI() {
|
|
140
|
-
return
|
|
138
|
+
return v(this, null, function* () {
|
|
141
139
|
this.coverMesh ? (this.coverMesh.visible = !0, this.videoMesh && (this.videoMesh.visible = !1)) : (yield this.addCoverMesh(), this.coverMesh && (this.videoMesh.visible = !1)), this.addButtonMesh().then(() => this.render());
|
|
142
140
|
});
|
|
143
141
|
}
|
|
@@ -146,89 +144,89 @@ class G extends P {
|
|
|
146
144
|
this.videoMesh && (this.videoMesh.needsRender = !0), this.coverMesh && (this.coverMesh.needsRender = !0), this.buttonMesh && (this.buttonMesh.needsRender = !0), this.videoMesh && ((e = this.videoInstance) == null ? void 0 : e.paused) === !1 && (this.videoMesh.needsRender = !0);
|
|
147
145
|
}
|
|
148
146
|
addCoverMesh() {
|
|
149
|
-
return
|
|
147
|
+
return v(this, null, function* () {
|
|
150
148
|
if (this.children.includes(this.coverMesh))
|
|
151
149
|
return;
|
|
152
|
-
const e = yield (() =>
|
|
150
|
+
const e = yield (() => v(this, null, function* () {
|
|
153
151
|
if (this.coverMesh)
|
|
154
152
|
return this.coverMesh;
|
|
155
153
|
if (!this.videoCoverSrc)
|
|
156
154
|
return;
|
|
157
|
-
const
|
|
158
|
-
if (!
|
|
155
|
+
const i = yield this.getImageTexture(this.videoCoverSrc);
|
|
156
|
+
if (!i)
|
|
159
157
|
return;
|
|
160
|
-
const
|
|
161
|
-
return
|
|
158
|
+
const t = new p.MeshBasicMaterial({ transparent: !1, map: i }), n = f(this.objectFit, this.cornerPoints, i.image.width / i.image.height), h = new w(n, t);
|
|
159
|
+
return h.position.copy(new I(0, 0, 0)), h.name = "videoCoverMesh", h;
|
|
162
160
|
}))();
|
|
163
161
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
164
162
|
});
|
|
165
163
|
}
|
|
166
164
|
addVideoMesh() {
|
|
167
|
-
return
|
|
165
|
+
return v(this, null, function* () {
|
|
168
166
|
if (this.children.includes(this.videoMesh))
|
|
169
167
|
return;
|
|
170
|
-
const e = yield (() =>
|
|
168
|
+
const e = yield (() => v(this, null, function* () {
|
|
171
169
|
if (this.videoMesh)
|
|
172
170
|
return this.videoMesh;
|
|
173
171
|
if (!this.src)
|
|
174
172
|
return;
|
|
175
|
-
const
|
|
176
|
-
|
|
173
|
+
const t = this.getVideoTexture(this.src), n = new p.MeshBasicMaterial({ transparent: !1, map: t }), h = yield new Promise((s) => {
|
|
174
|
+
t.metadataLoaded ? s(f(this.objectFit, this.cornerPoints, t.image.videoWidth / t.image.videoHeight)) : t.addEventListener(
|
|
177
175
|
"videoLoaded",
|
|
178
|
-
() => s(f(this.objectFit, this.cornerPoints,
|
|
176
|
+
() => s(f(this.objectFit, this.cornerPoints, t.image.videoWidth / t.image.videoHeight))
|
|
179
177
|
);
|
|
180
|
-
}),
|
|
181
|
-
return
|
|
178
|
+
}), o = new w(h, n);
|
|
179
|
+
return o.name = "videoMesh", o.position.copy(new I(0, 0, 0)), o;
|
|
182
180
|
}))();
|
|
183
181
|
if (!e)
|
|
184
182
|
return;
|
|
185
183
|
this.domEvents.addAutoBindEventListener(e, "click", () => {
|
|
186
184
|
!this.videoInstance.paused && this.videoInstance.muted ? this.videoInstance.muted = !1 : this.pause();
|
|
187
185
|
});
|
|
188
|
-
const
|
|
189
|
-
return
|
|
186
|
+
const i = e.material.map.image;
|
|
187
|
+
return i.addEventListener("playing", () => {
|
|
190
188
|
this.coverMesh || this.remove(this.buttonMesh), this.render();
|
|
191
|
-
}),
|
|
189
|
+
}), i.addEventListener("pause", () => {
|
|
192
190
|
this.videoInstance.paused && (this.showPauseUI(), this.render());
|
|
193
|
-
}), this.children.includes(this.videoMesh) || (this.add(e), this.videoMesh = e, this.videoInstance =
|
|
191
|
+
}), this.children.includes(this.videoMesh) || (this.add(e), this.videoMesh = e, this.videoInstance = i), e;
|
|
194
192
|
});
|
|
195
193
|
}
|
|
196
194
|
addButtonMesh() {
|
|
197
|
-
return
|
|
195
|
+
return v(this, null, function* () {
|
|
198
196
|
if (this.children.includes(this.buttonMesh))
|
|
199
197
|
return;
|
|
200
|
-
const e = yield (() =>
|
|
201
|
-
var
|
|
198
|
+
const e = yield (() => v(this, null, function* () {
|
|
199
|
+
var l, m, y, g;
|
|
202
200
|
if (this.buttonMesh)
|
|
203
201
|
return this.buttonMesh;
|
|
204
|
-
const
|
|
205
|
-
|
|
202
|
+
const i = (m = (l = this.videoMesh) == null ? void 0 : l.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? m : 1 / 0, t = (g = (y = this.coverMesh) == null ? void 0 : y.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, n = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), o = Math.min(i, t, n) / n * 0.3, s = yield this.getImageTexture(this.buttonSrc), a = f("contain", this.cornerPoints, s.image.width / s.image.height), u = new w(a, new R(s));
|
|
203
|
+
u.position.copy(new I(0, 0, 0)), u.name = "buttonMesh", u.scale.set(o, o, o), this.domEvents.addAutoBindEventListener(u, "click", () => {
|
|
206
204
|
this.play();
|
|
207
205
|
});
|
|
208
|
-
const
|
|
209
|
-
return
|
|
206
|
+
const M = x(a, 5e-4);
|
|
207
|
+
return u.position.add(M), u;
|
|
210
208
|
}))();
|
|
211
209
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
212
210
|
});
|
|
213
211
|
}
|
|
214
212
|
getImageTexture(e) {
|
|
215
|
-
return
|
|
216
|
-
var
|
|
217
|
-
if ((
|
|
213
|
+
return v(this, null, function* () {
|
|
214
|
+
var t, n;
|
|
215
|
+
if ((t = this.ImageTextureMap) != null && t.has(e))
|
|
218
216
|
return this.ImageTextureMap.get(e);
|
|
219
|
-
const
|
|
220
|
-
return (
|
|
217
|
+
const i = yield b(e);
|
|
218
|
+
return (n = this.ImageTextureMap) == null || n.set(e, i), i;
|
|
221
219
|
});
|
|
222
220
|
}
|
|
223
221
|
getVideoTexture(e) {
|
|
224
|
-
var
|
|
225
|
-
if ((
|
|
222
|
+
var t, n;
|
|
223
|
+
if ((t = this.videoTextureMap) != null && t.has(e))
|
|
226
224
|
return this.videoTextureMap.get(e);
|
|
227
|
-
const
|
|
228
|
-
return (
|
|
225
|
+
const i = V(e);
|
|
226
|
+
return (n = this.videoTextureMap) == null || n.set(e, i), i;
|
|
229
227
|
}
|
|
230
228
|
}
|
|
231
229
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
$ as ImagePlane,
|
|
231
|
+
q as VideoPlane
|
|
234
232
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Vector3 } from 'three';
|
|
2
|
-
import { type AnyPosition } from '
|
|
2
|
+
import { type AnyPosition } from '../../shared-utils/positionToVector3';
|
|
3
3
|
export declare function planeNormal(points: [AnyPosition, AnyPosition, AnyPosition] | [AnyPosition, AnyPosition, AnyPosition, AnyPosition]): Vector3;
|
|
4
4
|
export declare function planeNormal(points: AnyPosition[]): Vector3 | void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
function v(e, i) {
|
|
2
|
+
var d, l, f, o;
|
|
3
|
+
typeof e.visibleConfig == "object" && (e.visibleConfig.visibleFiveMode = (f = (l = e.visibleConfig.visibleFiveMode) != null ? l : (d = i == null ? void 0 : i.fiveState) == null ? void 0 : d.mode) != null ? f : "Panorama", e.visibleConfig.keep && (e.visibleConfig.keep === "visible" ? e.visibleConfig = { keep: e.visibleConfig.keep, visibleFiveMode: (o = e.visibleConfig) == null ? void 0 : o.visibleFiveMode } : e.visibleConfig.keep === "hidden" && (e.visibleConfig = { keep: e.visibleConfig.keep }))), typeof e.unfoldedConfig == "object" && (e.unfoldedConfig.disableFold && (e.unfoldedConfig = { keep: "unfolded" }), e.unfoldedConfig.disableUnfold && (e.unfoldedConfig = { keep: "folded" }), e.unfoldedConfig.keep && (e.unfoldedConfig = { keep: e.unfoldedConfig.keep }));
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
v as default
|
|
7
|
+
};
|