@realsee/dnalogel 2.28.6 → 2.29.0-dev.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/dist/PanoTagPlugin/controller/index.d.ts +7 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +7 -4
- package/dist/index.cjs.js +48 -48
- package/dist/index.js +2676 -2681
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/five/FiveDomEvents.d.ts +49 -11
- package/dist/shared-utils/three/getObjectVisible.d.ts +5 -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 +721 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +674 -0
- package/docs/classes/CSS3DRender.html +769 -0
- package/docs/classes/CruisePluginController.html +668 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +487 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +788 -0
- package/docs/classes/Magnifier.html +476 -0
- package/docs/classes/ModelRoomLabelController.html +394 -0
- package/docs/classes/Object3DHelperController.html +636 -0
- package/docs/classes/PaintBrush.html +498 -0
- package/docs/classes/PanoMeasurePluginLine.html +518 -0
- package/docs/classes/PanoMeasurePluginModel.html +567 -0
- package/docs/classes/PanoMeasurePluginPoint.html +358 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +563 -0
- package/docs/classes/PanoTagPluginController.html +1101 -0
- package/docs/classes/Util.BetterTween.html +411 -0
- package/docs/classes/Util.Interval.html +427 -0
- package/docs/classes/Util.LineSegments.html +379 -0
- package/docs/classes/Util.Magnifier.html +498 -0
- package/docs/classes/Util.Object3D.html +401 -0
- package/docs/classes/Util.PointDomHelper.html +402 -0
- package/docs/classes/Util.PointHelper.html +393 -0
- package/docs/classes/Util.PointSelectorHelper.html +449 -0
- package/docs/classes/Util.Rectangle.html +450 -0
- package/docs/enums/CameraMovementEffect.html +306 -0
- package/docs/enums/ContentType.html +442 -0
- package/docs/enums/DIRECTION.html +316 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +316 -0
- package/docs/enums/DimensionType.html +306 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +309 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +316 -0
- package/docs/enums/PaintBrushTypeEnum.html +309 -0
- package/docs/enums/PointType.html +306 -0
- package/docs/enums/Rotation.html +313 -0
- package/docs/functions/AreaMakerPlugin.html +286 -0
- package/docs/functions/CSS3DRenderPlugin.html +284 -0
- package/docs/functions/CameraMovementPlugin.html +289 -0
- package/docs/functions/CruisePlugin.html +286 -0
- package/docs/functions/GuideLinePlugin.html +286 -0
- package/docs/functions/ItemLabelPlugin.html +286 -0
- package/docs/functions/MapviewFloorplanPlugin.html +286 -0
- package/docs/functions/ModelChassisCompassPlugin.html +289 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +289 -0
- package/docs/functions/ModelFloorplanPlugin.html +286 -0
- package/docs/functions/ModelItemLabelPlugin.html +286 -0
- package/docs/functions/ModelRoomLabelPlugin.html +284 -0
- package/docs/functions/ModelTVVideoPlugin.html +286 -0
- package/docs/functions/ModelViewPlugin.html +289 -0
- package/docs/functions/Object3DHelperPlugin.html +284 -0
- package/docs/functions/PanoCompassPlugin.html +286 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +290 -0
- package/docs/functions/PanoDoorLabelPlugin.html +286 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +286 -0
- package/docs/functions/PanoMeasurePlugin.html +286 -0
- package/docs/functions/PanoRulerPlugin.html +289 -0
- package/docs/functions/PanoRulerProPlugin.html +289 -0
- package/docs/functions/PanoSpatialTagPlugin.html +289 -0
- package/docs/functions/PanoTagPlugin.html +291 -0
- package/docs/functions/PanoVideoPlugin.html +295 -0
- package/docs/functions/PipelinePlugin.html +284 -0
- package/docs/functions/TopviewFloorplanPlugin.html +286 -0
- package/docs/functions/Util.absoluteUrl.html +321 -0
- package/docs/functions/Util.equal.html +333 -0
- package/docs/functions/Util.getCoordsFromClient.html +323 -0
- package/docs/functions/Util.getCoordsFromElement.html +323 -0
- package/docs/functions/Util.getFrameTime.html +315 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +323 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +323 -0
- package/docs/functions/Util.isAbsoluteURL.html +316 -0
- package/docs/functions/Util.isModelLike.html +316 -0
- package/docs/functions/Util.isNil.html +324 -0
- package/docs/functions/Util.isPanoramaLike.html +316 -0
- package/docs/functions/Util.nextFrame.html +329 -0
- package/docs/functions/Util.notNil.html +324 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +345 -0
- package/docs/functions/Util.tweenProgress.html +318 -0
- package/docs/functions/Util.uuid.html +314 -0
- package/docs/functions/pluginFlag.html +284 -0
- package/docs/index.html +350 -0
- package/docs/interfaces/AddTagConfig.html +299 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +330 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +616 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +329 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +379 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +364 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +329 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +322 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +321 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +350 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +445 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +321 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +354 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +355 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +357 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +692 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +381 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +417 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +407 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +347 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +315 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +404 -0
- package/docs/interfaces/EventMap.html +538 -0
- package/docs/interfaces/FloorplanBounding.html +328 -0
- package/docs/interfaces/FloorplanData.html +331 -0
- package/docs/interfaces/FloorplanEntrance.html +356 -0
- package/docs/interfaces/FloorplanExtraObject.html +346 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +335 -0
- package/docs/interfaces/FloorplanFloorData.html +324 -0
- package/docs/interfaces/FloorplanImagePosition.html +310 -0
- package/docs/interfaces/FloorplanObserver.html +328 -0
- package/docs/interfaces/FloorplanOutlineItem.html +324 -0
- package/docs/interfaces/FloorplanPosition.html +310 -0
- package/docs/interfaces/FloorplanRoomItem.html +375 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +316 -0
- package/docs/interfaces/FloorplanServerBounding.html +328 -0
- package/docs/interfaces/FloorplanServerComputedData.html +327 -0
- package/docs/interfaces/FloorplanServerData.html +310 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +327 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +313 -0
- package/docs/interfaces/FloorplanServerEntrance.html +356 -0
- package/docs/interfaces/FloorplanServerFloorData.html +324 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +310 -0
- package/docs/interfaces/FloorplanServerObserver.html +328 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +324 -0
- package/docs/interfaces/FloorplanServerPosition.html +310 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +387 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +316 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +319 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +357 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +521 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +352 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +343 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +410 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +342 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +467 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +339 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +467 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +304 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +325 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +350 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +366 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +348 -0
- package/docs/interfaces/HelperOffset.html +328 -0
- package/docs/interfaces/ImagePlaneGroup.html +302 -0
- package/docs/interfaces/ItemLabelPluginData.html +299 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +384 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +320 -0
- package/docs/interfaces/MinMax.html +306 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +306 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +342 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +306 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +313 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +350 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +299 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +384 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +306 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +299 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +320 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +344 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +299 -0
- package/docs/interfaces/ModelViewPluginExportType.html +412 -0
- package/docs/interfaces/Object3DHelperState.html +313 -0
- package/docs/interfaces/ObjectHelperControllers.html +320 -0
- package/docs/interfaces/PaintBrushAction.html +359 -0
- package/docs/interfaces/PaintBrushConfigs.html +357 -0
- package/docs/interfaces/PaintBrushState.html +341 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +421 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +278 -0
- package/docs/interfaces/PanoMeasureParameterType.html +445 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +313 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +310 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +306 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +316 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +373 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +322 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +313 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +349 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +319 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +306 -0
- package/docs/interfaces/PanoRulerProPluginState.html +313 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +292 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +281 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +349 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +331 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +427 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +327 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +348 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +334 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +327 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +319 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +337 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +310 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +416 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +310 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +345 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +364 -0
- package/docs/interfaces/Point.html +313 -0
- package/docs/interfaces/Room.html +320 -0
- package/docs/interfaces/RoomInfo.html +306 -0
- package/docs/interfaces/RoomLabel.html +382 -0
- package/docs/interfaces/RoomRules.html +281 -0
- package/docs/interfaces/Rooms.html +281 -0
- package/docs/interfaces/Scissor.html +340 -0
- package/docs/interfaces/State.html +327 -0
- package/docs/interfaces/TagCacheInterface.html +358 -0
- package/docs/interfaces/TagConfig.html +544 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +302 -0
- package/docs/interfaces/TagIconUrl.html +359 -0
- package/docs/interfaces/TagObjectGroup.html +302 -0
- package/docs/interfaces/TagStyle.html +312 -0
- package/docs/interfaces/Tags.html +542 -0
- package/docs/interfaces/TemporaryState.html +299 -0
- package/docs/interfaces/Util.MagnifierParameter.html +386 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +345 -0
- package/docs/interfaces/Util.PointIntersection.html +360 -0
- package/docs/modules/AreaMakerPluginType.html +319 -0
- package/docs/modules/CruisePluginTypes.html +324 -0
- package/docs/modules/GuideLineItem.html +285 -0
- package/docs/modules/GuideLineModeItem.html +290 -0
- package/docs/modules/GuideLinePluginType.html +344 -0
- package/docs/modules/PanoVideoPluginType.html +297 -0
- package/docs/modules/Util.html +345 -0
- package/docs/modules.html +532 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +327 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +297 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +297 -0
- package/docs/types/ArrayPosition.html +275 -0
- package/docs/types/AudioAppearance.html +275 -0
- package/docs/types/AudioTagTypeConfigKey.html +275 -0
- package/docs/types/CSS3DRenderExportType.html +275 -0
- package/docs/types/CSS3DRenderPluginExportType.html +275 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +275 -0
- package/docs/types/ClassFunctionParameters.html +282 -0
- package/docs/types/Color.html +275 -0
- package/docs/types/ContentTypeConfigKey.html +275 -0
- package/docs/types/ContentTypeConfigKeySplit.html +275 -0
- package/docs/types/ContentTypeMap.html +275 -0
- package/docs/types/Create3DDomContainerReturnType.html +275 -0
- package/docs/types/Create3DElementReturnType.html +275 -0
- package/docs/types/CruisePluginExportType.html +275 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +314 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +291 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +287 -0
- package/docs/types/DeprecatedTagProperty.html +290 -0
- package/docs/types/Direction-1.html +275 -0
- package/docs/types/Direction4.html +275 -0
- package/docs/types/ElementRenderer.html +299 -0
- package/docs/types/FloorplanRuleLabels.html +278 -0
- package/docs/types/FloorplanServerRuleLabels.html +275 -0
- package/docs/types/GuideLinePluginExportType.html +275 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +347 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +368 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +301 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +304 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +304 -0
- package/docs/types/GuideLinePluginType.PathItem.html +304 -0
- package/docs/types/GuideLinePluginType.PluginData.html +313 -0
- package/docs/types/HelperEventMap.html +513 -0
- package/docs/types/LoadTagConfig.html +275 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +275 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +275 -0
- package/docs/types/MediaData.html +291 -0
- package/docs/types/MediaStore.html +280 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +282 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +275 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +275 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +275 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +275 -0
- package/docs/types/MoveArgs.html +285 -0
- package/docs/types/MoveOpts.html +283 -0
- package/docs/types/Object3DHelperEventMap.html +368 -0
- package/docs/types/ObjectFit.html +275 -0
- package/docs/types/PaintBrushEventMap.html +306 -0
- package/docs/types/PanoCompassPluginData.html +275 -0
- package/docs/types/PanoCompassPluginExportType.html +275 -0
- package/docs/types/PanoCompassPluginParameterType.html +275 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +275 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +275 -0
- package/docs/types/PanoIndex.html +275 -0
- package/docs/types/PanoMeasurePluginEvent.html +275 -0
- package/docs/types/PanoMeasureReturnType.html +275 -0
- package/docs/types/PanoSpatialTagPluginId.html +275 -0
- package/docs/types/PanoTagPluginExportInterface.html +275 -0
- package/docs/types/PanoTagPluginParamsInterface.html +275 -0
- package/docs/types/PanoVideoPluginParameterType.html +275 -0
- package/docs/types/PanoVideoPluginReturnType.html +275 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +283 -0
- package/docs/types/PipelinePluginParameterType.html +275 -0
- package/docs/types/PipelinePluginReturnType.html +275 -0
- package/docs/types/PlaneTag.html +283 -0
- package/docs/types/Point2DTag.html +283 -0
- package/docs/types/Point3DTag.html +283 -0
- package/docs/types/PointTag.html +280 -0
- package/docs/types/PointTagInstance.html +280 -0
- package/docs/types/Position.html +275 -0
- package/docs/types/RotateArgs.html +287 -0
- package/docs/types/RotateOpts.html +283 -0
- package/docs/types/RuleLabelsKey.html +275 -0
- package/docs/types/RuleLabelsValue.html +275 -0
- package/docs/types/StickType.html +275 -0
- package/docs/types/Tag.html +341 -0
- package/docs/types/Tag2D.html +283 -0
- package/docs/types/Tag3D.html +283 -0
- package/docs/types/TagConfigByKey.html +280 -0
- package/docs/types/TagContentType.html +275 -0
- package/docs/types/TagDimensionType.html +277 -0
- package/docs/types/TagElement.html +285 -0
- package/docs/types/TagEvents.html +328 -0
- package/docs/types/TagGLTFObject.html +298 -0
- package/docs/types/TagHooks.html +275 -0
- package/docs/types/TagId.html +275 -0
- package/docs/types/TagInstance.html +347 -0
- package/docs/types/TagPointType.html +278 -0
- package/docs/types/TagRendererMap.html +280 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +275 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +275 -0
- package/docs/types/WorkCode.html +275 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +285 -0
- package/docs/variables/PLUGIN.html +275 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +278 -0
- package/docs/variables/ROOM_TYPE_MAP.html +285 -0
- package/docs/variables/defaultGlobalConfig.html +275 -0
- package/docs/variables/itemLabelPluginServerParams.html +282 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +282 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +282 -0
- package/libs/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +141 -135
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +76 -114
- package/libs/PanoTagPlugin/controller/index.d.ts +7 -0
- package/libs/PanoTagPlugin/controller/index.js +32 -15
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/typings/controller.d.ts +3 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +7 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +3 -1
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +3 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +116 -115
- package/libs/shared-utils/five/FiveDomEvents.d.ts +49 -11
- package/libs/shared-utils/five/FiveDomEvents.js +93 -77
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/getObjectVisible.d.ts +5 -0
- package/libs/shared-utils/three/getObjectVisible.js +4 -0
- package/package.json +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
var P = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defaultGlobalConfig as
|
|
5
|
-
import { objectAssignDeepExports as
|
|
6
|
-
import * as
|
|
7
|
-
import { DefaultConfig as
|
|
8
|
-
import { anyPositionToVector3 as
|
|
9
|
-
import { planeNormal as
|
|
10
|
-
import { getTagCenterPosition as
|
|
11
|
-
import { normalPositionToPositions as
|
|
12
|
-
import { TagCache as
|
|
2
|
+
var D = (u, d, e) => d in u ? P(u, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[d] = e;
|
|
3
|
+
var l = (u, d, e) => (D(u, typeof d != "symbol" ? d + "" : d, e), e);
|
|
4
|
+
import { defaultGlobalConfig as k } from "../typings/tag/TagConfig.js";
|
|
5
|
+
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
6
|
+
import * as M from "three";
|
|
7
|
+
import { DefaultConfig as w } from "../tag.config.js";
|
|
8
|
+
import { anyPositionToVector3 as E, arrayPositionToVector3 as h } from "../../shared-utils/positionToVector3.js";
|
|
9
|
+
import { planeNormal as T } from "../utils/planeNormal.js";
|
|
10
|
+
import { getTagCenterPosition as C } from "../utils/tagPosition.js";
|
|
11
|
+
import { normalPositionToPositions as S } from "../utils/normalPositionToPositions.js";
|
|
12
|
+
import { TagCache as V } from "./TagCache.js";
|
|
13
13
|
import { writable as A } from "../../vendor/svelte/store/index.js";
|
|
14
|
-
import { isIOSWX as
|
|
15
|
-
import { isMediaPlaneTag as
|
|
14
|
+
import { isIOSWX as O } from "../../shared-utils/device.js";
|
|
15
|
+
import { isMediaPlaneTag as j, isMediaModelTag as v, isPlaneTag as F, isPoint3DTag as I } from "../utils/tag/tagCheck.js";
|
|
16
16
|
import { VideoPlane as W } from "../utils/model/mediaPlane.js";
|
|
17
17
|
import { FiveDomEvents as R } from "../../shared-utils/five/FiveDomEvents.js";
|
|
18
|
+
import { getObjectVisible as $ } from "../../shared-utils/three/getObjectVisible.js";
|
|
18
19
|
import "../../shared-utils/three/centerPoint.js";
|
|
19
20
|
import "../../base/BasePlugin.js";
|
|
20
21
|
import "../../shared-utils/Subscribe.js";
|
|
@@ -41,26 +42,25 @@ import "../../shared-utils/three/loadVideoTexture.js";
|
|
|
41
42
|
import "../Assets/Icon.js";
|
|
42
43
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
43
44
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
44
|
-
|
|
45
|
-
class Me extends S {
|
|
45
|
+
class Me extends V {
|
|
46
46
|
constructor(e) {
|
|
47
47
|
super(e);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
l(this, "tags", []);
|
|
49
|
+
l(this, "config", w);
|
|
50
|
+
l(this, "mediaStore", A({
|
|
51
51
|
currentMediaElement: null
|
|
52
52
|
}));
|
|
53
53
|
/** css3DRenderPlugin */
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
l(this, "css3DRenderPlugin");
|
|
55
|
+
l(this, "store", {
|
|
56
56
|
disposers: [],
|
|
57
57
|
disposed: !1,
|
|
58
58
|
resizeObserverDisposerAdding: !1,
|
|
59
59
|
css3DRenderDisposer: /* @__PURE__ */ new Map()
|
|
60
60
|
});
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
l(this, "domEvents", new R(this.five));
|
|
62
|
+
l(this, "mouseInfo");
|
|
63
|
+
l(this, "preventWhenMouseDown", () => {
|
|
64
64
|
var e;
|
|
65
65
|
if ((e = this.mouseInfo) != null && e.isDown)
|
|
66
66
|
return console.debug("preventWhenMouseDown 2"), !1;
|
|
@@ -97,41 +97,41 @@ class Me extends S {
|
|
|
97
97
|
* @description: 获取merge后的配置
|
|
98
98
|
*/
|
|
99
99
|
getTagConfig(e, t = { useCache: !0 }) {
|
|
100
|
-
var
|
|
100
|
+
var s, r, f;
|
|
101
101
|
if (!e)
|
|
102
|
-
return (
|
|
103
|
-
if (t.useCache && ((
|
|
102
|
+
return (s = this.config.globalConfig) != null ? s : {};
|
|
103
|
+
if (t.useCache && ((r = e.config) != null && r._isMerged))
|
|
104
104
|
return e.config;
|
|
105
105
|
const o = {};
|
|
106
|
-
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((
|
|
107
|
-
const n =
|
|
106
|
+
this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((p) => {
|
|
107
|
+
const n = p;
|
|
108
108
|
if (o[n])
|
|
109
109
|
return;
|
|
110
|
-
const
|
|
111
|
-
if (
|
|
112
|
-
const [
|
|
113
|
-
e.contentType ===
|
|
110
|
+
const c = n.split("-");
|
|
111
|
+
if (c.length === 1) {
|
|
112
|
+
const [a] = c;
|
|
113
|
+
e.contentType === a && (o[n] = this.config.contentTypeConfig[n]);
|
|
114
114
|
}
|
|
115
|
-
if (
|
|
116
|
-
const [
|
|
117
|
-
|
|
115
|
+
if (c.length === 2) {
|
|
116
|
+
const [a = "Any", g = "Any"] = c;
|
|
117
|
+
a === "Mixin" && e.contentType === g && (o[n] = this.config.contentTypeConfig[n]), (e.stickType === a || a === "Any") && (e.contentType === g || g === "Any") && (o[n] = this.config.contentTypeConfig[n]);
|
|
118
118
|
}
|
|
119
|
-
if (
|
|
120
|
-
const [
|
|
121
|
-
if (
|
|
119
|
+
if (c.length === 3) {
|
|
120
|
+
const [a = "Any", g, b] = c;
|
|
121
|
+
if (g === "Audio" && e.contentType === "Audio") {
|
|
122
122
|
const y = e;
|
|
123
|
-
(y.stickType ===
|
|
123
|
+
(y.stickType === a || a === "Any") && y.data.appearance === b && (o[n] = this.config.contentTypeConfig[n]);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
|
-
const i =
|
|
127
|
+
const i = m(
|
|
128
128
|
{},
|
|
129
|
-
|
|
129
|
+
k,
|
|
130
130
|
this.config.globalConfig,
|
|
131
131
|
...Object.values(o),
|
|
132
132
|
e.config
|
|
133
133
|
);
|
|
134
|
-
return typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (
|
|
134
|
+
return typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (f = i.visibleConfig) == null ? void 0 : f.visibleFiveMode }), typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), i._isMerged = !0, i;
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* @description 获取标签当前状态
|
|
@@ -140,7 +140,7 @@ class Me extends S {
|
|
|
140
140
|
return !(!this.state.enabled || !this.state.visible || !e.enabled || !e.state.visible);
|
|
141
141
|
}
|
|
142
142
|
loadVideoFirstFrame() {
|
|
143
|
-
|
|
143
|
+
O && this.hooks.emit("loadVideoFirstFrame");
|
|
144
144
|
}
|
|
145
145
|
updateTagConfig() {
|
|
146
146
|
this.clearCache(), this.tags.forEach((e) => {
|
|
@@ -148,7 +148,7 @@ class Me extends S {
|
|
|
148
148
|
const t = this.getTagConfig(e, { useCache: !1 });
|
|
149
149
|
e.config = t;
|
|
150
150
|
const o = JSON.parse(JSON.stringify(e.data));
|
|
151
|
-
e.data = (i = t.initialData) != null && i.important ?
|
|
151
|
+
e.data = (i = t.initialData) != null && i.important ? m(e.data, o, t.initialData) : m(e.data, t.initialData, o);
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
can(e, t) {
|
|
@@ -178,10 +178,10 @@ class Me extends S {
|
|
|
178
178
|
return;
|
|
179
179
|
const i = e.data.mediaData;
|
|
180
180
|
if (!(!i || i.length === 0) && o.renderType === "Mesh") {
|
|
181
|
-
if (
|
|
181
|
+
if (j(e)) {
|
|
182
182
|
if (i.length === 1 && (i[0].type === "Image" || i[0].type === "Video"))
|
|
183
183
|
return "Mesh";
|
|
184
|
-
} else if (
|
|
184
|
+
} else if (v(e))
|
|
185
185
|
return i.length === 1 && i[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
186
186
|
}
|
|
187
187
|
})();
|
|
@@ -191,7 +191,7 @@ class Me extends S {
|
|
|
191
191
|
* @description: 获取角度
|
|
192
192
|
*/
|
|
193
193
|
getAngle(e, t) {
|
|
194
|
-
var
|
|
194
|
+
var s, r;
|
|
195
195
|
const o = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
196
196
|
if (o === void 0)
|
|
197
197
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -199,24 +199,24 @@ class Me extends S {
|
|
|
199
199
|
if (i.angle !== void 0)
|
|
200
200
|
return i.angle;
|
|
201
201
|
{
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
throw new Error(`getAngleRange(): observerPosition is ${
|
|
205
|
-
const
|
|
206
|
-
if (!
|
|
202
|
+
const f = (r = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : r.position;
|
|
203
|
+
if (f === void 0)
|
|
204
|
+
throw new Error(`getAngleRange(): observerPosition is ${f}`);
|
|
205
|
+
const p = (() => e.stickType === "3DPoint" ? E(e.normal) : T(e.position))();
|
|
206
|
+
if (!p)
|
|
207
207
|
return;
|
|
208
|
-
const n =
|
|
208
|
+
const n = C(e);
|
|
209
209
|
if (!n)
|
|
210
210
|
return;
|
|
211
|
-
const
|
|
212
|
-
return i.angle =
|
|
211
|
+
const c = new M.Vector3().copy(f).sub(n), a = p.angleTo(c) * 180 / Math.PI;
|
|
212
|
+
return i.angle = a, i.angle;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* @description: 获取距离
|
|
217
217
|
*/
|
|
218
218
|
getDistance(e, t) {
|
|
219
|
-
var
|
|
219
|
+
var s, r;
|
|
220
220
|
const o = t != null ? t : this.five.getCurrentState().panoIndex;
|
|
221
221
|
if (o === void 0)
|
|
222
222
|
throw new Error(`getDistance(): fivePanoIndex is ${o}`);
|
|
@@ -224,83 +224,45 @@ class Me extends S {
|
|
|
224
224
|
if (i.distance !== void 0)
|
|
225
225
|
return i.distance;
|
|
226
226
|
{
|
|
227
|
-
const
|
|
228
|
-
if (
|
|
229
|
-
throw new Error(`getDistance(): observerPosition is ${
|
|
230
|
-
const
|
|
231
|
-
if (!
|
|
227
|
+
const f = (r = (s = this.five.work) == null ? void 0 : s.observers[o]) == null ? void 0 : r.position;
|
|
228
|
+
if (f === void 0)
|
|
229
|
+
throw new Error(`getDistance(): observerPosition is ${f}`);
|
|
230
|
+
const p = C(e);
|
|
231
|
+
if (!p)
|
|
232
232
|
return -1;
|
|
233
|
-
const n =
|
|
233
|
+
const n = f.distanceTo(p);
|
|
234
234
|
return i.distance = n, n;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
getPositions(e) {
|
|
238
|
-
if (
|
|
238
|
+
if (F(e))
|
|
239
239
|
return e.position;
|
|
240
|
-
if (
|
|
240
|
+
if (v(e))
|
|
241
241
|
return e.data.mediaPosition;
|
|
242
|
-
if (
|
|
243
|
-
return
|
|
242
|
+
if (I(e))
|
|
243
|
+
return S(this.five.camera.position, h(e.position), h(e.normal));
|
|
244
244
|
}
|
|
245
245
|
addObjectClickHandler(e, t, o) {
|
|
246
246
|
if (!t || !this.domEvents)
|
|
247
247
|
return () => {
|
|
248
248
|
};
|
|
249
|
-
const i = () => !(!this.getCurrentVisibleState(e) ||
|
|
250
|
-
if (!i())
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
const s = n.origDomEvent;
|
|
255
|
-
this.mouseInfo = {
|
|
256
|
-
x: s.clientX,
|
|
257
|
-
y: s.clientY,
|
|
258
|
-
isDown: !0,
|
|
259
|
-
mouseDownTimestamp: Date.now()
|
|
260
|
-
};
|
|
261
|
-
}, d = (n) => {
|
|
262
|
-
if (!i()) {
|
|
263
|
-
this.mouseInfo = void 0;
|
|
264
|
-
return;
|
|
265
|
-
}
|
|
266
|
-
if (!this.mouseInfo)
|
|
267
|
-
return;
|
|
268
|
-
const s = n.origDomEvent;
|
|
269
|
-
this.mouseInfo.isDown && this.mouseInfo.x === s.clientX && this.mouseInfo.y === s.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(s), this.mouseInfo = void 0;
|
|
270
|
-
}, r = (n) => {
|
|
271
|
-
if (!i()) {
|
|
272
|
-
this.mouseInfo = void 0;
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
const s = n.origDomEvent;
|
|
276
|
-
this.mouseInfo = {
|
|
277
|
-
x: Math.floor(s.touches[0].clientX),
|
|
278
|
-
y: Math.floor(s.touches[0].clientY),
|
|
279
|
-
isDown: !0,
|
|
280
|
-
mouseDownTimestamp: Date.now()
|
|
281
|
-
};
|
|
282
|
-
}, l = (n) => {
|
|
283
|
-
if (!i()) {
|
|
284
|
-
this.mouseInfo = void 0;
|
|
285
|
-
return;
|
|
286
|
-
}
|
|
287
|
-
if (!this.mouseInfo)
|
|
288
|
-
return;
|
|
289
|
-
const s = n.origDomEvent;
|
|
290
|
-
this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(s.changedTouches[s.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(s.changedTouches[s.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(s), this.mouseInfo = void 0;
|
|
249
|
+
const i = () => !(!$(t) || !this.getCurrentVisibleState(e) || v(e) && !e.mediaVisible), s = (r) => {
|
|
250
|
+
if (!i())
|
|
251
|
+
return !1;
|
|
252
|
+
o(r.origDomEvent);
|
|
291
253
|
};
|
|
292
|
-
return this.domEvents.addEventListener(t, "
|
|
293
|
-
var
|
|
294
|
-
|
|
254
|
+
return this.domEvents.addEventListener(t, "click", s), () => {
|
|
255
|
+
var r;
|
|
256
|
+
(r = this.domEvents) == null || r.removeEventListener(t, "click", s);
|
|
295
257
|
};
|
|
296
258
|
}
|
|
297
259
|
getTagNormal(e) {
|
|
298
260
|
if (e.normal)
|
|
299
|
-
return
|
|
261
|
+
return h(e.normal);
|
|
300
262
|
if (e.stickType === "Plane")
|
|
301
|
-
return
|
|
263
|
+
return T(e.position);
|
|
302
264
|
if (e.stickType === "Model")
|
|
303
|
-
return
|
|
265
|
+
return T(this.getPositions(e));
|
|
304
266
|
}
|
|
305
267
|
// TODO: 优化点:下面这些函数,调用比较频繁,可以按点位加缓存
|
|
306
268
|
get filterPointTag() {
|
|
@@ -87,6 +87,13 @@ declare class PanoTagPluginController extends TagRender {
|
|
|
87
87
|
destroyTagById(id: TagId | TagId[]): void;
|
|
88
88
|
/** 更改 tag 模型 */
|
|
89
89
|
changeTagModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>, data: PartialObjectDeep<Tag<'MediaModel'>['data']>) => Promise<void>;
|
|
90
|
+
whyHide: (tagId: TagId) => {
|
|
91
|
+
reason: string;
|
|
92
|
+
reasonObj?: undefined;
|
|
93
|
+
} | {
|
|
94
|
+
reason: any;
|
|
95
|
+
reasonObj: any;
|
|
96
|
+
};
|
|
90
97
|
/**
|
|
91
98
|
* @description: 设置 visible 和 unfolded
|
|
92
99
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var F = Object.defineProperty, w = Object.defineProperties;
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var y = Object.getOwnPropertySymbols;
|
|
4
4
|
var I = Object.prototype.hasOwnProperty, B = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var b = (d, a, e) => a in d ? F(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, g = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
7
|
I.call(a, e) && b(d, e, a[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (y)
|
|
9
|
+
for (var e of y(a))
|
|
10
10
|
B.call(a, e) && b(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, T = (d, a) => w(d, U(a));
|
|
@@ -30,22 +30,22 @@ var p = (d, a, e) => new Promise((t, i) => {
|
|
|
30
30
|
import * as C from "three";
|
|
31
31
|
import { Subscribe as R } from "@realsee/five";
|
|
32
32
|
import { objectAssignDeepExports as l } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
|
-
import { arrayPositionToVector3 as
|
|
34
|
-
import { addDebugPoints as
|
|
33
|
+
import { arrayPositionToVector3 as A } from "../../shared-utils/positionToVector3.js";
|
|
34
|
+
import { addDebugPoints as _ } from "../utils/addDebugPoints.js";
|
|
35
35
|
import { isMediaModelTag as D, isModelTag as k } from "../utils/tag/tagCheck.js";
|
|
36
|
-
import { waitFiveModelLoaded as
|
|
36
|
+
import { waitFiveModelLoaded as O } from "../utils/actionAfterFiveModelLoad.js";
|
|
37
37
|
import { debounce as S } from "../utils/debounce.js";
|
|
38
38
|
import { throttle as L } from "../utils/throttle.js";
|
|
39
39
|
import { resizeObserver as P } from "../utils/resizeObserver.js";
|
|
40
40
|
import V from "../utils/tag/format.js";
|
|
41
41
|
import { generateBlankAudio as G, AudioNamespace as N } from "../../shared-utils/audio.js";
|
|
42
42
|
import { TagRender as z } from "./TagRender.js";
|
|
43
|
-
import { uuid as
|
|
43
|
+
import { uuid as $ } from "../../shared-utils/uuid.js";
|
|
44
44
|
import "hammerjs";
|
|
45
45
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
46
46
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
47
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
48
|
-
import { tweenProgress as
|
|
48
|
+
import { tweenProgress as x } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
49
49
|
import "./TagComputer.js";
|
|
50
50
|
import "../utils/tagPosition.js";
|
|
51
51
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -81,7 +81,7 @@ import "../Assets/Icon.js";
|
|
|
81
81
|
import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
82
82
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
83
83
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
84
|
-
import "../../shared-utils/
|
|
84
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
85
85
|
import "../../shared-utils/five/getFloorIndex.js";
|
|
86
86
|
import "../../shared-utils/safeObj.js";
|
|
87
87
|
import "../../shared-utils/util.js";
|
|
@@ -175,6 +175,23 @@ class vi extends z {
|
|
|
175
175
|
m(this, "changeTagModel", (e, t) => p(this, null, function* () {
|
|
176
176
|
e.data = l({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
|
|
177
177
|
}));
|
|
178
|
+
m(this, "whyHide", (e) => {
|
|
179
|
+
var i, s;
|
|
180
|
+
if (!this.state.enabled)
|
|
181
|
+
return { reason: `plugin.state.enabled is ${this.state.enabled}` };
|
|
182
|
+
if (!this.state.visible)
|
|
183
|
+
return { reason: `plugin.state.visible is ${this.state.visible}` };
|
|
184
|
+
const t = this.getTagById(e);
|
|
185
|
+
if (!t)
|
|
186
|
+
return { reason: `tag ${e} not found` };
|
|
187
|
+
if (!t.enabled)
|
|
188
|
+
return { reason: `tag ${e} enabled is ${t.enabled}` };
|
|
189
|
+
if (!t.state.visible) {
|
|
190
|
+
const o = (i = this.getCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : i.__debug_visible_reason__.reason;
|
|
191
|
+
return { reason: (s = o.type) != null ? s : o, reasonObj: o };
|
|
192
|
+
}
|
|
193
|
+
return t.stickType === "Model" || t.stickType === "Plane" ? { reason: "maybe blocked by the five model" } : { reason: "check your eyes" };
|
|
194
|
+
});
|
|
178
195
|
m(this, "handleFiveInitAnimationEnded", () => {
|
|
179
196
|
const e = this.five.getCurrentState().mode;
|
|
180
197
|
this.tags.forEach((t) => {
|
|
@@ -209,7 +226,7 @@ class vi extends z {
|
|
|
209
226
|
const i = yield this.addTag(e.tagList, t);
|
|
210
227
|
if (this.debug)
|
|
211
228
|
try {
|
|
212
|
-
|
|
229
|
+
_(this.five, this.tags);
|
|
213
230
|
} catch (n) {
|
|
214
231
|
console.error(n);
|
|
215
232
|
}
|
|
@@ -226,7 +243,7 @@ class vi extends z {
|
|
|
226
243
|
const n = this.getTagConfig(o), r = JSON.parse(JSON.stringify(o.data)), h = o.config;
|
|
227
244
|
return o.config = n, T(g({}, o), {
|
|
228
245
|
enabled: (c = o.enabled) != null ? c : !0,
|
|
229
|
-
id: (u = o.id) != null ? u :
|
|
246
|
+
id: (u = o.id) != null ? u : $(),
|
|
230
247
|
data: (v = n.initialData) != null && v.important ? l(o.data, r, n.initialData) : l(o.data, n.initialData, r),
|
|
231
248
|
state: g({
|
|
232
249
|
visible: void 0,
|
|
@@ -243,7 +260,7 @@ class vi extends z {
|
|
|
243
260
|
changeData: (E) => this.changeDataById(o.id, E)
|
|
244
261
|
});
|
|
245
262
|
}).filter((o) => o.position);
|
|
246
|
-
return s.forEach(V), this.tags.push(...s),
|
|
263
|
+
return s.forEach(V), this.tags.push(...s), O(this.five).then(() => p(this, null, function* () {
|
|
247
264
|
var o, n, r;
|
|
248
265
|
this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
|
|
249
266
|
}));
|
|
@@ -333,7 +350,7 @@ class vi extends z {
|
|
|
333
350
|
*/
|
|
334
351
|
changeTagNormalById(e, t) {
|
|
335
352
|
const i = this.getTagById(e);
|
|
336
|
-
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal =
|
|
353
|
+
i && i.tag3DContentSvelte && (i.tag3DContentSvelte.currentNormal = A(t));
|
|
337
354
|
}
|
|
338
355
|
/**
|
|
339
356
|
* @description: 改变data
|
|
@@ -355,7 +372,7 @@ class vi extends z {
|
|
|
355
372
|
changeTagById(e, t, i = !0) {
|
|
356
373
|
const s = this.getTagById(e);
|
|
357
374
|
let o = !1;
|
|
358
|
-
t && (t.data && (o = !0), i ? l(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal =
|
|
375
|
+
t && (t.data && (o = !0), i ? l(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
359
376
|
}
|
|
360
377
|
/**
|
|
361
378
|
* @description: 销毁tag
|
|
@@ -500,7 +517,7 @@ class vi extends z {
|
|
|
500
517
|
o.position.copy(n.position), o.quaternion.copy(n.quaternion);
|
|
501
518
|
const r = this.five.camera.position;
|
|
502
519
|
o.lookAt(r.clone().setY(o.position.y));
|
|
503
|
-
const h = n.quaternion.clone(), f = o.quaternion.clone(), c =
|
|
520
|
+
const h = n.quaternion.clone(), f = o.quaternion.clone(), c = x();
|
|
504
521
|
c.onUpdate(({ progress: v }) => {
|
|
505
522
|
n.quaternion.copy(h.clone().slerp(f, v));
|
|
506
523
|
}), c.play();
|
|
@@ -53,7 +53,7 @@ import "./Assets/Icon.js";
|
|
|
53
53
|
import "../shared-utils/three/getPositionsByObjectFit.js";
|
|
54
54
|
import "../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
55
55
|
import "../shared-utils/five/FiveDomEvents.js";
|
|
56
|
-
import "../shared-utils/
|
|
56
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
57
57
|
import "../shared-utils/five/getFloorIndex.js";
|
|
58
58
|
import "../shared-utils/safeObj.js";
|
|
59
59
|
import "../shared-utils/util.js";
|
|
@@ -145,9 +145,12 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
145
145
|
/**
|
|
146
146
|
* @description: 类似 css 的 !important,会覆盖掉 tag.data 中对应的数据
|
|
147
147
|
* @code
|
|
148
|
-
* ```
|
|
149
|
-
* if (initialData.important)
|
|
150
|
-
*
|
|
148
|
+
* ```typescript
|
|
149
|
+
* if (initialData.important) {
|
|
150
|
+
* tag.data = ObjectAssignDeep(tag.data, initialData)
|
|
151
|
+
* } else {
|
|
152
|
+
* tag.data = ObjectAssignDeep(initialData, tag.data)
|
|
153
|
+
* }
|
|
151
154
|
* ```
|
|
152
155
|
*/
|
|
153
156
|
important?: boolean;
|
|
@@ -172,7 +175,7 @@ export interface TagConfig<C extends TagContentType = TagContentType> {
|
|
|
172
175
|
/**
|
|
173
176
|
* @deprecated private property
|
|
174
177
|
*/
|
|
175
|
-
|
|
178
|
+
_isMerged?: boolean;
|
|
176
179
|
}
|
|
177
180
|
export declare const defaultGlobalConfig: TagConfig;
|
|
178
181
|
export {};
|
|
@@ -202,7 +202,9 @@ class G extends P {
|
|
|
202
202
|
if (this.buttonMesh)
|
|
203
203
|
return this.buttonMesh;
|
|
204
204
|
const t = (M = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? M : 1 / 0, i = (g = (w = this.coverMesh) == null ? void 0 : w.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), n = Math.min(t, i, o) / o * 0.3, s = yield this.getImageTexture(this.buttonSrc), h = f("contain", this.cornerPoints, s.image.width / s.image.height), v = new I(h, new H(s));
|
|
205
|
-
v.position.copy(new y(0, 0, 0)), v.name = "buttonMesh", v.scale.set(n, n, n), this.domEvents.addAutoBindEventListener(v, "click", () =>
|
|
205
|
+
v.position.copy(new y(0, 0, 0)), v.name = "buttonMesh", v.scale.set(n, n, n), this.domEvents.addAutoBindEventListener(v, "click", () => {
|
|
206
|
+
this.play();
|
|
207
|
+
});
|
|
206
208
|
const p = new c.Vector3().crossVectors(new c.Vector3().subVectors(h[0], h[1]), new c.Vector3().subVectors(h[0], h[3])).normalize().multiplyScalar(1e-4);
|
|
207
209
|
return v.position.add(p), v;
|
|
208
210
|
}))();
|