@realsee/dnalogel 3.1.1 → 3.2.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/index.cjs.js +10 -10
- package/dist/index.js +94 -95
- package/dist/index.umd.js +17 -17
- 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/PanoTagPlugin/controller/TagComputer.js +73 -77
- package/libs/PanoTagPlugin/controller/TagRender.js +81 -82
- package/libs/PanoTagPlugin/controller/index.js +32 -30
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ import dl from "animejs";
|
|
|
39
39
|
import { GLTFLoader as Zf } from "@realsee/five/gltf-loader";
|
|
40
40
|
function qf() {
|
|
41
41
|
console.debug(
|
|
42
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
42
|
+
"%c %c@realsee/dnalogel %cv3.2.0-dev.0",
|
|
43
43
|
[
|
|
44
44
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
45
45
|
"background-repeat: no-repeat",
|
|
@@ -1145,7 +1145,7 @@ const _E = (n, t) => {
|
|
|
1145
1145
|
enabled: e
|
|
1146
1146
|
});
|
|
1147
1147
|
return Object.assign(window, { camera: c }), n.on("modelLoaded", g), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", B), n.on("dispose", G), n.on("renderFrame", Q), n.on("cameraPositionUpdate", B), { appendTo: I, refresh: C, changeConfigs: Y, enable: b, disable: y, getCurrentState: R };
|
|
1148
|
-
}, fm = ({ x: n, y: t, z: e }) => new ne(n, t, e),
|
|
1148
|
+
}, fm = ({ x: n, y: t, z: e }) => new ne(n, t, e), kt = (n) => new ne().fromArray(n), hn = (n) => n instanceof ne ? n : Array.isArray(n) ? kt(n) : fm(n);
|
|
1149
1149
|
function mm(n) {
|
|
1150
1150
|
if (n)
|
|
1151
1151
|
return Array.isArray(n) ? typeof n[0] == "number" ? hn(n) : n.map(hn) : hn(n);
|
|
@@ -1830,11 +1830,11 @@ class Sm {
|
|
|
1830
1830
|
return this.xInterval.contains(t.xInterval) && this.yInterval.contains(t.yInterval);
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1833
|
+
function Tt(n) {
|
|
1834
1834
|
return n.toLowerCase().includes("panorama");
|
|
1835
1835
|
}
|
|
1836
1836
|
function pn(n) {
|
|
1837
|
-
return !
|
|
1837
|
+
return !Tt(n);
|
|
1838
1838
|
}
|
|
1839
1839
|
function Tm(n) {
|
|
1840
1840
|
return n.model ? n.work ? n.model.loaded ? n.model.name !== n.work.model.file ? { result: !1, msg: "five.model.name 与 five.work.model.file 不一致" } : { result: !0, msg: "" } : { result: !1, msg: "five.model 未加载完成" } : { result: !1, msg: "five 数据未加载" } : { result: !1, msg: "five.model 不存在" };
|
|
@@ -2331,7 +2331,7 @@ const YE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2331
2331
|
isAbsoluteURL: Jh,
|
|
2332
2332
|
isModelLike: pn,
|
|
2333
2333
|
isNil: Xh,
|
|
2334
|
-
isPanoramaLike:
|
|
2334
|
+
isPanoramaLike: Tt,
|
|
2335
2335
|
nextFrame: Mo,
|
|
2336
2336
|
notNil: si,
|
|
2337
2337
|
requestAnimationFrameInterval: Sn,
|
|
@@ -7085,7 +7085,7 @@ let Vn = class {
|
|
|
7085
7085
|
/**
|
|
7086
7086
|
* @realsee/dnalogel 版本号
|
|
7087
7087
|
*/
|
|
7088
|
-
u(this, "VERSION", "3.
|
|
7088
|
+
u(this, "VERSION", "3.2.0-dev.0");
|
|
7089
7089
|
u(this, "five");
|
|
7090
7090
|
/**
|
|
7091
7091
|
* 插件事件钩子
|
|
@@ -7108,7 +7108,7 @@ let Vn = class {
|
|
|
7108
7108
|
}
|
|
7109
7109
|
}, oi = class extends Vn {
|
|
7110
7110
|
};
|
|
7111
|
-
var
|
|
7111
|
+
var Et = /* @__PURE__ */ ((n) => (n.UnknownError = "UnknownError", n.DataNotLoaded = "DataNotLoaded", n.BreakOffByHide = "BreakOffByHide", n.BreakOffByDisable = "BreakOffByDisable", n.ModelNotLoaded = "ModelNotLoaded", n.ChangeModeError = "ChangeModeError", n.UpdateCameraError = "UpdateCameraError", n))(Et || {});
|
|
7112
7112
|
const wu = 500, wA = 80;
|
|
7113
7113
|
function Cn(n, t, e = 4) {
|
|
7114
7114
|
return Math.abs(n - t) < Math.pow(10, -e);
|
|
@@ -7175,7 +7175,7 @@ function Pu(n, t, e = !0) {
|
|
|
7175
7175
|
)
|
|
7176
7176
|
), [c] = yield bn(n.updateCamera(wn(t, ["mode"]), l, e));
|
|
7177
7177
|
if (c)
|
|
7178
|
-
throw new Error(
|
|
7178
|
+
throw new Error(Et.UpdateCameraError);
|
|
7179
7179
|
});
|
|
7180
7180
|
}
|
|
7181
7181
|
function In(n, t, e = 300) {
|
|
@@ -7272,7 +7272,7 @@ let kA = class extends oi {
|
|
|
7272
7272
|
u(this, "_disable", (e) => {
|
|
7273
7273
|
var s, o, r;
|
|
7274
7274
|
const { userAction: i } = e;
|
|
7275
|
-
this.hooks.emit("disable", { userAction: i }), (s = this.showRejection) == null || s.call(this,
|
|
7275
|
+
this.hooks.emit("disable", { userAction: i }), (s = this.showRejection) == null || s.call(this, Et.BreakOffByDisable), this.showPromise = void 0, (o = this.app) == null || o.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
7276
7276
|
});
|
|
7277
7277
|
u(this, "_enable", (e) => {
|
|
7278
7278
|
const { userAction: i } = e;
|
|
@@ -7283,9 +7283,9 @@ let kA = class extends oi {
|
|
|
7283
7283
|
if (!this.state.enabled)
|
|
7284
7284
|
return;
|
|
7285
7285
|
if (!((r = this.five.model) != null && r.loaded))
|
|
7286
|
-
throw new Error(
|
|
7286
|
+
throw new Error(Et.ModelNotLoaded);
|
|
7287
7287
|
if (!this.data)
|
|
7288
|
-
throw new Error(
|
|
7288
|
+
throw new Error(Et.DataNotLoaded);
|
|
7289
7289
|
if (this.showPromise)
|
|
7290
7290
|
return this.showPromise;
|
|
7291
7291
|
const i = {
|
|
@@ -7304,7 +7304,7 @@ let kA = class extends oi {
|
|
|
7304
7304
|
if (c)
|
|
7305
7305
|
throw c;
|
|
7306
7306
|
if (a)
|
|
7307
|
-
throw l ? new Error(l) : new Error(
|
|
7307
|
+
throw l ? new Error(l) : new Error(Et.UnknownError);
|
|
7308
7308
|
this.updateSize(), this.floorIndex = s.floorIndex, this.five.model.show(this.floorIndex);
|
|
7309
7309
|
});
|
|
7310
7310
|
return this.isHiddenByHideFunc = !1, this.showPromise = o().then(() => {
|
|
@@ -7321,7 +7321,7 @@ let kA = class extends oi {
|
|
|
7321
7321
|
}));
|
|
7322
7322
|
u(this, "_hide", (e) => {
|
|
7323
7323
|
var o;
|
|
7324
|
-
(o = this.showRejection) == null || o.call(this,
|
|
7324
|
+
(o = this.showRejection) == null || o.call(this, Et.BreakOffByHide), this.showPromise = void 0;
|
|
7325
7325
|
const s = V(V({}, {
|
|
7326
7326
|
userAction: !0,
|
|
7327
7327
|
isAutoHide: !1
|
|
@@ -7607,7 +7607,7 @@ let DA = class extends oi {
|
|
|
7607
7607
|
u(this, "_disable", (e) => {
|
|
7608
7608
|
var s, o, r;
|
|
7609
7609
|
const { userAction: i } = e;
|
|
7610
|
-
this.hooks.emit("disable", { userAction: i }), (s = this.showRejection) == null || s.call(this,
|
|
7610
|
+
this.hooks.emit("disable", { userAction: i }), (s = this.showRejection) == null || s.call(this, Et.BreakOffByDisable), this.showPromise = void 0, (o = this.app) == null || o.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
7611
7611
|
});
|
|
7612
7612
|
u(this, "_enable", (e) => {
|
|
7613
7613
|
const { userAction: i } = e;
|
|
@@ -7618,9 +7618,9 @@ let DA = class extends oi {
|
|
|
7618
7618
|
if (!this.state.enabled)
|
|
7619
7619
|
return;
|
|
7620
7620
|
if (!((r = this.five.model) != null && r.loaded))
|
|
7621
|
-
throw new Error(
|
|
7621
|
+
throw new Error(Et.ModelNotLoaded);
|
|
7622
7622
|
if (!this.data)
|
|
7623
|
-
throw new Error(
|
|
7623
|
+
throw new Error(Et.DataNotLoaded);
|
|
7624
7624
|
if (this.showPromise)
|
|
7625
7625
|
return this.showPromise;
|
|
7626
7626
|
const i = {
|
|
@@ -7639,7 +7639,7 @@ let DA = class extends oi {
|
|
|
7639
7639
|
if (c)
|
|
7640
7640
|
throw c;
|
|
7641
7641
|
if (a)
|
|
7642
|
-
throw l ? new Error(l) : new Error(
|
|
7642
|
+
throw l ? new Error(l) : new Error(Et.UnknownError);
|
|
7643
7643
|
this.updateSize(), this.updatePosition(), this.floorIndex = s.floorIndex, this.five.model.show(this.floorIndex);
|
|
7644
7644
|
});
|
|
7645
7645
|
return this.isHiddenByHideFunc = !1, this.showPromise = o().then(() => {
|
|
@@ -7656,7 +7656,7 @@ let DA = class extends oi {
|
|
|
7656
7656
|
}));
|
|
7657
7657
|
u(this, "_hide", (e) => {
|
|
7658
7658
|
var o;
|
|
7659
|
-
(o = this.showRejection) == null || o.call(this,
|
|
7659
|
+
(o = this.showRejection) == null || o.call(this, Et.BreakOffByHide), this.showPromise = void 0;
|
|
7660
7660
|
const s = V(V({}, {
|
|
7661
7661
|
userAction: !0,
|
|
7662
7662
|
isAutoHide: !1
|
|
@@ -13833,7 +13833,7 @@ class F0 {
|
|
|
13833
13833
|
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((t = this.revoke) == null || t.dispose()), (e = this.mainController) == null || e.dispose(), this.disposers.forEach((i) => i()), this.disposers = [], this;
|
|
13834
13834
|
}
|
|
13835
13835
|
}
|
|
13836
|
-
var
|
|
13836
|
+
var Mt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, Re = {}, _0 = {
|
|
13837
13837
|
get exports() {
|
|
13838
13838
|
return Re;
|
|
13839
13839
|
},
|
|
@@ -15002,12 +15002,12 @@ const Br = 1e-3, Nc = 0.01, mb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15002
15002
|
};
|
|
15003
15003
|
let Be;
|
|
15004
15004
|
for (let Ge = 0, Xe = Ee.length; Ge < Xe; Ge++) {
|
|
15005
|
-
const
|
|
15006
|
-
if (It.weight >
|
|
15005
|
+
const xt = Ee[Ge];
|
|
15006
|
+
if (It.weight > xt.weight) {
|
|
15007
15007
|
Be = Ge;
|
|
15008
15008
|
break;
|
|
15009
15009
|
}
|
|
15010
|
-
if (It.distance <
|
|
15010
|
+
if (It.distance < xt.distance) {
|
|
15011
15011
|
Be = Ge;
|
|
15012
15012
|
break;
|
|
15013
15013
|
}
|
|
@@ -15033,7 +15033,7 @@ const Br = 1e-3, Nc = 0.01, mb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15033
15033
|
pt.distance + Nc
|
|
15034
15034
|
), [It] = p.intersectObjects ? Ct.intersectObjects(p.intersectObjects, !0) : n.model.loaded ? n.model.intersectRaycaster(Ct) : Ct.intersectObjects(n.model.children, !0);
|
|
15035
15035
|
if (It && pt.distance - It.distance < Nc) {
|
|
15036
|
-
const { position: Be, normal: Ge, id: Xe, replacement:
|
|
15036
|
+
const { position: Be, normal: Ge, id: Xe, replacement: xt } = pt, Gn = new P.Plane().setFromNormalAndCoplanarPoint(Ge, Be), Rt = Be.clone().sub(ge.position).cross(new P.Vector3(0, 1, 0)).setLength(Br), ri = [
|
|
15037
15037
|
Be.clone(),
|
|
15038
15038
|
Be.clone().add(Rt),
|
|
15039
15039
|
Be.clone().add(new P.Vector3(0, Br, 0)).add(Rt),
|
|
@@ -15042,7 +15042,7 @@ const Br = 1e-3, Nc = 0.01, mb = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15042
15042
|
target: Ii,
|
|
15043
15043
|
props: {
|
|
15044
15044
|
id: Xe,
|
|
15045
|
-
content: p.render(p.template,
|
|
15045
|
+
content: p.render(p.template, xt),
|
|
15046
15046
|
lineWidthZoom: 0.38 * (0.01 + ge.position.distanceTo(Be) / d),
|
|
15047
15047
|
lineHeightZoom: 0.4 + (ge.position.distanceTo(Be) - c) / d * 0.6,
|
|
15048
15048
|
contentZoom: 0.1 + ge.position.distanceTo(Be) / d,
|
|
@@ -16820,11 +16820,11 @@ function P1(n, t) {
|
|
|
16820
16820
|
if (e.position.length === 4)
|
|
16821
16821
|
e.position.forEach((r, a) => {
|
|
16822
16822
|
const l = o[a], c = new P.Mesh(i, l);
|
|
16823
|
-
c.position.copy(
|
|
16823
|
+
c.position.copy(kt(r)), s.push(c);
|
|
16824
16824
|
});
|
|
16825
16825
|
else {
|
|
16826
16826
|
const r = o[0], a = new P.Mesh(i, r);
|
|
16827
|
-
a.position.copy(
|
|
16827
|
+
a.position.copy(kt(e.position)), s.push(a);
|
|
16828
16828
|
}
|
|
16829
16829
|
s.forEach((r) => {
|
|
16830
16830
|
r.material.depthTest = !1, n.scene.add(r);
|
|
@@ -17210,8 +17210,10 @@ function X1(n, t) {
|
|
|
17210
17210
|
o();
|
|
17211
17211
|
return;
|
|
17212
17212
|
}
|
|
17213
|
-
|
|
17214
|
-
i.pause(), i.currentTime = 0, o();
|
|
17213
|
+
i.muted = !0, i.play().then(() => {
|
|
17214
|
+
e = !0, i.pause(), i.currentTime = 0, o();
|
|
17215
|
+
}).catch(() => {
|
|
17216
|
+
console.warn("video auto play error");
|
|
17215
17217
|
});
|
|
17216
17218
|
}
|
|
17217
17219
|
};
|
|
@@ -17772,13 +17774,13 @@ class K1 extends _1 {
|
|
|
17772
17774
|
*/
|
|
17773
17775
|
getDistance(e, i) {
|
|
17774
17776
|
var c, d;
|
|
17775
|
-
const s = V(V({}, this.five.getCurrentState()), i), { panoIndex: o, mode: r } = s, a =
|
|
17777
|
+
const s = V(V({}, this.five.getCurrentState()), i), { panoIndex: o, mode: r } = s, a = Tt(r) ? this.getPanoIndexCache({ panoIndex: o, id: e.id }) : void 0;
|
|
17776
17778
|
if ((a == null ? void 0 : a.distance) !== void 0)
|
|
17777
17779
|
return a.distance;
|
|
17778
17780
|
const l = fs(e);
|
|
17779
17781
|
if (!l)
|
|
17780
17782
|
return -1;
|
|
17781
|
-
if (
|
|
17783
|
+
if (Tt(r)) {
|
|
17782
17784
|
const h = (d = (c = this.five.work) == null ? void 0 : c.observers[o]) == null ? void 0 : d.position;
|
|
17783
17785
|
if (h === void 0)
|
|
17784
17786
|
return -1;
|
|
@@ -17794,7 +17796,7 @@ class K1 extends _1 {
|
|
|
17794
17796
|
if (Ht(e))
|
|
17795
17797
|
return e.data.mediaPosition;
|
|
17796
17798
|
if (k1(e))
|
|
17797
|
-
return T1(this.five.camera.position,
|
|
17799
|
+
return T1(this.five.camera.position, kt(e.position), kt(e.normal));
|
|
17798
17800
|
}
|
|
17799
17801
|
addObjectClickHandler(e, i, s) {
|
|
17800
17802
|
if (!i || !this.domEvents)
|
|
@@ -17812,7 +17814,7 @@ class K1 extends _1 {
|
|
|
17812
17814
|
}
|
|
17813
17815
|
getTagNormal(e) {
|
|
17814
17816
|
if (e.normal)
|
|
17815
|
-
return
|
|
17817
|
+
return kt(e.normal);
|
|
17816
17818
|
if (e.stickType === "Plane")
|
|
17817
17819
|
return Vr(e.position);
|
|
17818
17820
|
if (e.stickType === "Model")
|
|
@@ -17883,7 +17885,7 @@ class K1 extends _1 {
|
|
|
17883
17885
|
const l = (b = e.config) != null && b._isMerged ? e.initialConfig : e.config, c = Re({}, Q1, this.config.globalConfig, ...Object.values(o)), d = Re({}, c, l), h = {}, f = Object.values($e.Mode);
|
|
17884
17886
|
id(r).forEach(([y, I]) => {
|
|
17885
17887
|
f.forEach((C) => {
|
|
17886
|
-
(y === "PanoramaLike" &&
|
|
17888
|
+
(y === "PanoramaLike" && Tt(C) || y === "ModelLike" && pn(C)) && (h[C] = Re({}, c, ...Object.values(I), l));
|
|
17887
17889
|
});
|
|
17888
17890
|
}), id(a).forEach(([y, I]) => {
|
|
17889
17891
|
h[y] = Re({}, c, ...Object.values(I), l);
|
|
@@ -17916,7 +17918,7 @@ class ey extends K1 {
|
|
|
17916
17918
|
* @description: 获取是否可见
|
|
17917
17919
|
*/
|
|
17918
17920
|
getVisible(t, e) {
|
|
17919
|
-
const i = V(V({}, this.five.getCurrentState()), e), { panoIndex: s, mode: o } = i, r =
|
|
17921
|
+
const i = V(V({}, this.five.getCurrentState()), e), { panoIndex: s, mode: o } = i, r = Tt(o) ? this.getPanoIndexCache({ panoIndex: s, id: t.id }) : void 0;
|
|
17920
17922
|
if ((r == null ? void 0 : r.visible) !== void 0)
|
|
17921
17923
|
return r.visible;
|
|
17922
17924
|
{
|
|
@@ -17932,7 +17934,7 @@ class ey extends K1 {
|
|
|
17932
17934
|
if (c.visibleFiveMode !== void 0) {
|
|
17933
17935
|
const m = typeof c.visibleFiveMode == "function" ? c.visibleFiveMode(t) : c.visibleFiveMode;
|
|
17934
17936
|
let A = !1;
|
|
17935
|
-
if (Array.isArray(m) ? A = m.includes(o) : m === "ModelLike" ? A = pn(o) : m === "PanoramaLike" ? A = !
|
|
17937
|
+
if (Array.isArray(m) ? A = m.includes(o) : m === "ModelLike" ? A = pn(o) : m === "PanoramaLike" ? A = !Tt(o) : m === "all" ? A = !0 : typeof m == "string" && (A = m === o), A === !1)
|
|
17936
17938
|
return {
|
|
17937
17939
|
value: !1,
|
|
17938
17940
|
checkedList: a,
|
|
@@ -17943,7 +17945,7 @@ class ey extends K1 {
|
|
|
17943
17945
|
}
|
|
17944
17946
|
if (c.followModelVisibility === !0 && (o === "Floorplan" || o === "Mapview") && this.getVisibleByFloorIndex(t) === !1)
|
|
17945
17947
|
return { value: !1, checkedList: a, reason: "followModelVisibility check failed" };
|
|
17946
|
-
if (
|
|
17948
|
+
if (Tt(o) && c.visiblePanoIndex !== void 0 && c.visiblePanoIndex !== "all" && s !== void 0) {
|
|
17947
17949
|
if (a.push("visiblePanoIndex"), Array.isArray(c.visiblePanoIndex) && !c.visiblePanoIndex.includes(s))
|
|
17948
17950
|
return {
|
|
17949
17951
|
value: !1,
|
|
@@ -17957,7 +17959,7 @@ class ey extends K1 {
|
|
|
17957
17959
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(f = t.fiveState) == null ? void 0 : f.panoIndex}`
|
|
17958
17960
|
};
|
|
17959
17961
|
}
|
|
17960
|
-
if (
|
|
17962
|
+
if (c.visibleDistance !== void 0 && (a.push("visibleDistance"), c.visibleDistance !== "unLimited")) {
|
|
17961
17963
|
const m = this.getDistance(t);
|
|
17962
17964
|
if (ss(m, c.visibleDistance) === !1)
|
|
17963
17965
|
return {
|
|
@@ -17966,7 +17968,7 @@ class ey extends K1 {
|
|
|
17966
17968
|
reason: `distance is not in visibleDistance. distance: ${m}, visibleDistance: ${c.visibleDistance}`
|
|
17967
17969
|
};
|
|
17968
17970
|
}
|
|
17969
|
-
if (
|
|
17971
|
+
if (Tt(o) && c.angleRange && M1(t)) {
|
|
17970
17972
|
a.push("angleRange");
|
|
17971
17973
|
const m = this.getAngle(t);
|
|
17972
17974
|
if (ss(m, c.angleRange) === !1)
|
|
@@ -18077,21 +18079,17 @@ class ey extends K1 {
|
|
|
18077
18079
|
setPointTagPosition() {
|
|
18078
18080
|
const t = this.filterPointTag;
|
|
18079
18081
|
t.length !== 0 && t.forEach((e) => {
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18083
|
-
|
|
18084
|
-
|
|
18085
|
-
|
|
18082
|
+
var r;
|
|
18083
|
+
const i = this.getCurrentVisibleState(e), s = (r = e.__Object__) != null ? r : {
|
|
18084
|
+
timeoutId: void 0,
|
|
18085
|
+
inAnimation: !0
|
|
18086
|
+
};
|
|
18087
|
+
if (e.__Object__ = s, !i && e.screenPosition ? (s.inAnimation = !0, s.timeoutId = setTimeout(() => {
|
|
18088
|
+
this.getCurrentVisibleState(e) || (s.inAnimation = !1, e.screenPosition = null);
|
|
18089
|
+
}, 1e3)) : s.timeoutId && (s.inAnimation = !1, clearTimeout(s.timeoutId)), !i && !s.inAnimation)
|
|
18086
18090
|
return;
|
|
18087
|
-
}
|
|
18088
|
-
clearTimeout(s);
|
|
18089
18091
|
const o = this.getTagProject(e);
|
|
18090
|
-
|
|
18091
|
-
e.screenPosition = null;
|
|
18092
|
-
return;
|
|
18093
|
-
}
|
|
18094
|
-
e.screenPosition = { leftPercent: (o.x + 1) / 2 * 100, topPercent: (-o.y + 1) / 2 * 100 };
|
|
18092
|
+
o ? e.screenPosition = { leftPercent: (o.x + 1) / 2 * 100, topPercent: (-o.y + 1) / 2 * 100 } : e.screenPosition = null;
|
|
18095
18093
|
});
|
|
18096
18094
|
}
|
|
18097
18095
|
setVisible(t) {
|
|
@@ -18123,7 +18121,7 @@ class ey extends K1 {
|
|
|
18123
18121
|
/** 通过射线检测标签可用性 */
|
|
18124
18122
|
getTagEnableByIntersect(t, e) {
|
|
18125
18123
|
var c, d, h, f, m, A;
|
|
18126
|
-
const i = Io(Io((c = this.getTagConfig(t).visibleConfig) != null ? c : {}).intersectRaycaster), s = e != null ? e : this.five.getCurrentState().panoIndex, o =
|
|
18124
|
+
const i = Io(Io((c = this.getTagConfig(t).visibleConfig) != null ? c : {}).intersectRaycaster), s = e != null ? e : this.five.getCurrentState().panoIndex, o = Tt(this.five.getCurrentState().mode) ? (d = this.five.work.observers[s]) == null ? void 0 : d.position : this.five.camera.position;
|
|
18127
18125
|
if (o === void 0)
|
|
18128
18126
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: s } };
|
|
18129
18127
|
const r = Oh(
|
|
@@ -20670,7 +20668,7 @@ const gs = (n, t, e) => {
|
|
|
20670
20668
|
}, Aa = (n) => (t) => {
|
|
20671
20669
|
n[t] && n[t]();
|
|
20672
20670
|
};
|
|
20673
|
-
var Bw = "Expected a function", sf = "__lodash_hash_undefined__", of = 1 / 0, Rw = "[object Function]", Vw = "[object GeneratorFunction]", Qw = "[object Symbol]", Gw = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Nw = /^\w*$/, Hw = /^\./, Fw = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _w = /[\\^$.*+?()[\]{}|]/g, Ww = /\\(\\)?/g, Yw = /^\[object .+?Constructor\]$/, Uw = typeof
|
|
20671
|
+
var Bw = "Expected a function", sf = "__lodash_hash_undefined__", of = 1 / 0, Rw = "[object Function]", Vw = "[object GeneratorFunction]", Qw = "[object Symbol]", Gw = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Nw = /^\w*$/, Hw = /^\./, Fw = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _w = /[\\^$.*+?()[\]{}|]/g, Ww = /\\(\\)?/g, Yw = /^\[object .+?Constructor\]$/, Uw = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, Xw = typeof self == "object" && self && self.Object === Object && self, $a = Uw || Xw || Function("return this")();
|
|
20674
20672
|
function Jw(n, t) {
|
|
20675
20673
|
return n == null ? void 0 : n[t];
|
|
20676
20674
|
}
|
|
@@ -20912,7 +20910,7 @@ var $s = TC, Po = {}, LC = {
|
|
|
20912
20910
|
(function(n, t) {
|
|
20913
20911
|
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", d = "[object Function]", h = "[object GeneratorFunction]", f = "[object Map]", m = "[object Number]", A = "[object Object]", p = "[object Promise]", g = "[object RegExp]", b = "[object Set]", y = "[object String]", I = "[object Symbol]", C = "[object WeakMap]", x = "[object ArrayBuffer]", E = "[object DataView]", B = "[object Float32Array]", Q = "[object Float64Array]", G = "[object Int8Array]", Y = "[object Int16Array]", R = "[object Int32Array]", H = "[object Uint8Array]", F = "[object Uint8ClampedArray]", N = "[object Uint16Array]", W = "[object Uint32Array]", Z = /[\\^$.*+?()[\]{}|]/g, X = /\w*$/, $ = /^\[object .+?Constructor\]$/, ce = /^(?:0|[1-9]\d*)$/, oe = {};
|
|
20914
20912
|
oe[o] = oe[r] = oe[x] = oe[E] = oe[a] = oe[l] = oe[B] = oe[Q] = oe[G] = oe[Y] = oe[R] = oe[f] = oe[m] = oe[A] = oe[g] = oe[b] = oe[y] = oe[I] = oe[H] = oe[F] = oe[N] = oe[W] = !0, oe[c] = oe[d] = oe[C] = !1;
|
|
20915
|
-
var we = typeof
|
|
20913
|
+
var we = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, Ie = typeof self == "object" && self && self.Object === Object && self, Ae = we || Ie || Function("return this")(), Oe = t && !t.nodeType && t, ve = Oe && !0 && n && !n.nodeType && n, _e = ve && ve.exports === Oe;
|
|
20916
20914
|
function me(v, k) {
|
|
20917
20915
|
return v.set(k[0], k[1]), v;
|
|
20918
20916
|
}
|
|
@@ -20972,9 +20970,9 @@ var $s = TC, Po = {}, LC = {
|
|
|
20972
20970
|
var pt = Array.prototype, Xt = Function.prototype, Ct = Object.prototype, It = Ae["__core-js_shared__"], Be = function() {
|
|
20973
20971
|
var v = /[^.]+$/.exec(It && It.keys && It.keys.IE_PROTO || "");
|
|
20974
20972
|
return v ? "Symbol(src)_1." + v : "";
|
|
20975
|
-
}(), Ge = Xt.toString, Xe = Ct.hasOwnProperty,
|
|
20973
|
+
}(), Ge = Xt.toString, Xe = Ct.hasOwnProperty, xt = Ct.toString, Gn = RegExp(
|
|
20976
20974
|
"^" + Ge.call(Xe).replace(Z, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
20977
|
-
), Rt = _e ? Ae.Buffer : void 0, ri = Ae.Symbol, Ii = Ae.Uint8Array, At = Ee(Object.getPrototypeOf, Object), Ni = Object.create, Hi = Ct.propertyIsEnumerable, Ho = pt.splice, Nn = Object.getOwnPropertySymbols, Fi = Rt ? Rt.isBuffer : void 0, Is = Ee(Object.keys, Object), _i =
|
|
20975
|
+
), Rt = _e ? Ae.Buffer : void 0, ri = Ae.Symbol, Ii = Ae.Uint8Array, At = Ee(Object.getPrototypeOf, Object), Ni = Object.create, Hi = Ct.propertyIsEnumerable, Ho = pt.splice, Nn = Object.getOwnPropertySymbols, Fi = Rt ? Rt.isBuffer : void 0, Is = Ee(Object.keys, Object), _i = St(Ae, "DataView"), Pi = St(Ae, "Map"), Dt = St(Ae, "Promise"), Wi = St(Ae, "Set"), Hn = St(Ae, "WeakMap"), Ei = St(Object, "create"), Fn = ft(_i), ki = ft(Pi), _n = ft(Dt), Wn = ft(Wi), Yn = ft(Hn), ai = ri ? ri.prototype : void 0, Ps = ai ? ai.valueOf : void 0;
|
|
20978
20976
|
function Jt(v) {
|
|
20979
20977
|
var k = -1, T = v ? v.length : 0;
|
|
20980
20978
|
for (this.clear(); ++k < T; ) {
|
|
@@ -21149,7 +21147,7 @@ var $s = TC, Po = {}, LC = {
|
|
|
21149
21147
|
return qn(v) ? U : ge(U, T(v));
|
|
21150
21148
|
}
|
|
21151
21149
|
function cr(v) {
|
|
21152
|
-
return
|
|
21150
|
+
return xt.call(v);
|
|
21153
21151
|
}
|
|
21154
21152
|
function dr(v) {
|
|
21155
21153
|
if (!Gt(v) || Cr(v))
|
|
@@ -21222,13 +21220,13 @@ var $s = TC, Po = {}, LC = {
|
|
|
21222
21220
|
var T = v.__data__;
|
|
21223
21221
|
return wr(k) ? T[typeof k == "string" ? "string" : "hash"] : T.map;
|
|
21224
21222
|
}
|
|
21225
|
-
function
|
|
21223
|
+
function St(v, k) {
|
|
21226
21224
|
var T = Me(v, k);
|
|
21227
21225
|
return dr(T) ? T : void 0;
|
|
21228
21226
|
}
|
|
21229
21227
|
var Zt = Nn ? Ee(Nn, Object) : Pr, qt = cr;
|
|
21230
|
-
(_i && qt(new _i(new ArrayBuffer(1))) != E || Pi && qt(new Pi()) != f ||
|
|
21231
|
-
var k =
|
|
21228
|
+
(_i && qt(new _i(new ArrayBuffer(1))) != E || Pi && qt(new Pi()) != f || Dt && qt(Dt.resolve()) != p || Wi && qt(new Wi()) != b || Hn && qt(new Hn()) != C) && (qt = function(v) {
|
|
21229
|
+
var k = xt.call(v), T = k == A ? v.constructor : void 0, U = T ? ft(T) : void 0;
|
|
21232
21230
|
if (U)
|
|
21233
21231
|
switch (U) {
|
|
21234
21232
|
case Fn:
|
|
@@ -21318,7 +21316,7 @@ var $s = TC, Po = {}, LC = {
|
|
|
21318
21316
|
return v === k || v !== v && k !== k;
|
|
21319
21317
|
}
|
|
21320
21318
|
function Ji(v) {
|
|
21321
|
-
return Ir(v) && Xe.call(v, "callee") && (!Hi.call(v, "callee") ||
|
|
21319
|
+
return Ir(v) && Xe.call(v, "callee") && (!Hi.call(v, "callee") || xt.call(v) == o);
|
|
21322
21320
|
}
|
|
21323
21321
|
var qn = Array.isArray;
|
|
21324
21322
|
function Zi(v) {
|
|
@@ -21329,7 +21327,7 @@ var $s = TC, Po = {}, LC = {
|
|
|
21329
21327
|
}
|
|
21330
21328
|
var Ls = Fi || Er;
|
|
21331
21329
|
function Kn(v) {
|
|
21332
|
-
var k = Gt(v) ?
|
|
21330
|
+
var k = Gt(v) ? xt.call(v) : "";
|
|
21333
21331
|
return k == d || k == h;
|
|
21334
21332
|
}
|
|
21335
21333
|
function js(v) {
|
|
@@ -21365,7 +21363,7 @@ var Eo = {}, zC = {
|
|
|
21365
21363
|
(function(n, t) {
|
|
21366
21364
|
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", m = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", g = "[object Number]", b = "[object Null]", y = "[object Object]", I = "[object Promise]", C = "[object Proxy]", x = "[object RegExp]", E = "[object Set]", B = "[object String]", Q = "[object Symbol]", G = "[object Undefined]", Y = "[object WeakMap]", R = "[object ArrayBuffer]", H = "[object DataView]", F = "[object Float32Array]", N = "[object Float64Array]", W = "[object Int8Array]", Z = "[object Int16Array]", X = "[object Int32Array]", $ = "[object Uint8Array]", ce = "[object Uint8ClampedArray]", oe = "[object Uint16Array]", we = "[object Uint32Array]", Ie = /[\\^$.*+?()[\]{}|]/g, Ae = /^\[object .+?Constructor\]$/, Oe = /^(?:0|[1-9]\d*)$/, ve = {};
|
|
21367
21365
|
ve[F] = ve[N] = ve[W] = ve[Z] = ve[X] = ve[$] = ve[ce] = ve[oe] = ve[we] = !0, ve[a] = ve[l] = ve[R] = ve[d] = ve[H] = ve[h] = ve[f] = ve[m] = ve[p] = ve[g] = ve[y] = ve[x] = ve[E] = ve[B] = ve[Y] = !1;
|
|
21368
|
-
var _e = typeof
|
|
21366
|
+
var _e = typeof Mt == "object" && Mt && Mt.Object === Object && Mt, me = typeof self == "object" && self && self.Object === Object && self, ye = _e || me || Function("return this")(), Le = t && !t.nodeType && t, ge = Le && !0 && n && !n.nodeType && n, Ze = ge && ge.exports === Le, ut = Ze && _e.process, Me = function() {
|
|
21369
21367
|
try {
|
|
21370
21368
|
return ut && ut.binding && ut.binding("util");
|
|
21371
21369
|
} catch (v) {
|
|
@@ -21422,12 +21420,12 @@ var Eo = {}, zC = {
|
|
|
21422
21420
|
T[++k] = U;
|
|
21423
21421
|
}), T;
|
|
21424
21422
|
}
|
|
21425
|
-
var
|
|
21423
|
+
var xt = Array.prototype, Gn = Function.prototype, Rt = Object.prototype, ri = ye["__core-js_shared__"], Ii = Gn.toString, At = Rt.hasOwnProperty, Ni = function() {
|
|
21426
21424
|
var v = /[^.]+$/.exec(ri && ri.keys && ri.keys.IE_PROTO || "");
|
|
21427
21425
|
return v ? "Symbol(src)_1." + v : "";
|
|
21428
21426
|
}(), Hi = Rt.toString, Ho = RegExp(
|
|
21429
21427
|
"^" + Ii.call(At).replace(Ie, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
21430
|
-
), Nn = Ze ? ye.Buffer : void 0, Fi = ye.Symbol, Is = ye.Uint8Array, _i = Rt.propertyIsEnumerable, Pi =
|
|
21428
|
+
), Nn = Ze ? ye.Buffer : void 0, Fi = ye.Symbol, Is = ye.Uint8Array, _i = Rt.propertyIsEnumerable, Pi = xt.splice, Dt = Fi ? Fi.toStringTag : void 0, Wi = Object.getOwnPropertySymbols, Hn = Nn ? Nn.isBuffer : void 0, Ei = Ge(Object.keys, Object), Fn = Zt(ye, "DataView"), ki = Zt(ye, "Map"), _n = Zt(ye, "Promise"), Wn = Zt(ye, "Set"), Yn = Zt(ye, "WeakMap"), ai = Zt(Object, "create"), Ps = ft(Fn), Jt = ft(ki), Fo = ft(_n), _o = ft(Wn), Wo = ft(Yn), Es = Fi ? Fi.prototype : void 0, Un = Es ? Es.valueOf : void 0;
|
|
21431
21429
|
function qe(v) {
|
|
21432
21430
|
var k = -1, T = v == null ? 0 : v.length;
|
|
21433
21431
|
for (this.clear(); ++k < T; ) {
|
|
@@ -21503,17 +21501,17 @@ var Eo = {}, zC = {
|
|
|
21503
21501
|
};
|
|
21504
21502
|
}
|
|
21505
21503
|
function nr(v) {
|
|
21506
|
-
var k =
|
|
21504
|
+
var k = St(this, v).delete(v);
|
|
21507
21505
|
return this.size -= k ? 1 : 0, k;
|
|
21508
21506
|
}
|
|
21509
21507
|
function sr(v) {
|
|
21510
|
-
return
|
|
21508
|
+
return St(this, v).get(v);
|
|
21511
21509
|
}
|
|
21512
21510
|
function or(v) {
|
|
21513
|
-
return
|
|
21511
|
+
return St(this, v).has(v);
|
|
21514
21512
|
}
|
|
21515
21513
|
function rr(v, k) {
|
|
21516
|
-
var T =
|
|
21514
|
+
var T = St(this, v), U = T.size;
|
|
21517
21515
|
return T.set(v, k), this.size += T.size == U ? 0 : 1, this;
|
|
21518
21516
|
}
|
|
21519
21517
|
vt.prototype.clear = ir, vt.prototype.delete = nr, vt.prototype.get = sr, vt.prototype.has = or, vt.prototype.set = rr;
|
|
@@ -21578,7 +21576,7 @@ var Eo = {}, zC = {
|
|
|
21578
21576
|
return Ji(v) ? U : Ee(U, T(v));
|
|
21579
21577
|
}
|
|
21580
21578
|
function Mi(v) {
|
|
21581
|
-
return v == null ? v === void 0 ? G : b :
|
|
21579
|
+
return v == null ? v === void 0 ? G : b : Dt && Dt in Object(v) ? qt(v) : Ds(v);
|
|
21582
21580
|
}
|
|
21583
21581
|
function Ms(v) {
|
|
21584
21582
|
return Gt(v) && Mi(v) == a;
|
|
@@ -21725,7 +21723,7 @@ var Eo = {}, zC = {
|
|
|
21725
21723
|
function xi(v) {
|
|
21726
21724
|
return Jn(v, $n, vr);
|
|
21727
21725
|
}
|
|
21728
|
-
function
|
|
21726
|
+
function St(v, k) {
|
|
21729
21727
|
var T = v.__data__;
|
|
21730
21728
|
return yr(k) ? T[typeof k == "string" ? "string" : "hash"] : T.map;
|
|
21731
21729
|
}
|
|
@@ -21734,14 +21732,14 @@ var Eo = {}, zC = {
|
|
|
21734
21732
|
return fr(T) ? T : void 0;
|
|
21735
21733
|
}
|
|
21736
21734
|
function qt(v) {
|
|
21737
|
-
var k = At.call(v,
|
|
21735
|
+
var k = At.call(v, Dt), T = v[Dt];
|
|
21738
21736
|
try {
|
|
21739
|
-
v[
|
|
21737
|
+
v[Dt] = void 0;
|
|
21740
21738
|
var U = !0;
|
|
21741
21739
|
} catch (pe) {
|
|
21742
21740
|
}
|
|
21743
21741
|
var Pe = Hi.call(v);
|
|
21744
|
-
return U && (k ? v[
|
|
21742
|
+
return U && (k ? v[Dt] = T : delete v[Dt]), Pe;
|
|
21745
21743
|
}
|
|
21746
21744
|
var vr = Wi ? function(v) {
|
|
21747
21745
|
return v == null ? [] : (v = Object(v), le(Wi(v), function(k) {
|
|
@@ -27712,8 +27710,8 @@ class e2 extends ey {
|
|
|
27712
27710
|
const r = this.gltfObjectGroup.children.find((l) => l.customID === e.id);
|
|
27713
27711
|
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), Ht(e)) {
|
|
27714
27712
|
if (this.getRenderType(e) === "Mesh" && !e.mediaPlane) {
|
|
27715
|
-
const l = e.data.mediaPosition.map(
|
|
27716
|
-
e.mediaPlane = new ed(e.data.mediaData[0].url, e.data.mediaPosition.map(
|
|
27713
|
+
const l = e.data.mediaPosition.map(kt);
|
|
27714
|
+
e.mediaPlane = new ed(e.data.mediaData[0].url, e.data.mediaPosition.map(kt), {
|
|
27717
27715
|
objectFit: e.data.objectFit
|
|
27718
27716
|
});
|
|
27719
27717
|
const c = new ne().addVectors(l[0], l[2]).divideScalar(2);
|
|
@@ -27753,7 +27751,7 @@ class e2 extends ey {
|
|
|
27753
27751
|
var s, o;
|
|
27754
27752
|
return ((o = (s = i.data.mediaData) == null ? void 0 : s[0]) == null ? void 0 : o.type) === "Video";
|
|
27755
27753
|
}).forEach((i) => {
|
|
27756
|
-
var h, f, m
|
|
27754
|
+
var h, f, m;
|
|
27757
27755
|
const s = i.data.mediaData[0];
|
|
27758
27756
|
if (!s)
|
|
27759
27757
|
return;
|
|
@@ -27761,22 +27759,22 @@ class e2 extends ey {
|
|
|
27761
27759
|
if (!o)
|
|
27762
27760
|
return;
|
|
27763
27761
|
i.mediaPlane && !((f = (h = i.state) == null ? void 0 : h.visible) == null || f) && i.mediaPlane instanceof pa && i.mediaPlane.pause();
|
|
27764
|
-
const r = i.position.map(
|
|
27765
|
-
if ((l || d) &&
|
|
27766
|
-
const
|
|
27762
|
+
const r = i.position.map(kt), a = this.getCurrentVisibleState(i), l = (() => !!(i.mediaPlane && !a))(), c = (() => !!(!i.mediaPlane && a))(), d = (() => !!(i.mediaPlane && i.mediaPlane.src !== o))();
|
|
27763
|
+
if ((l || d) && i.mediaPlane && (this.imagePlaneGroup.remove(i.mediaPlane), i.mediaPlane.dispose(), i.mediaPlane.removeFromParent(), i.mediaPlane = void 0), c || d) {
|
|
27764
|
+
const A = new pa(o, r, {
|
|
27767
27765
|
videoCoverSrc: s.videoCoverUrl,
|
|
27768
27766
|
playButton: i.data.playIcon,
|
|
27769
|
-
paused: !((
|
|
27767
|
+
paused: !((m = i.data.autoplayConfig) != null && m.autoplayVideo),
|
|
27770
27768
|
objectFit: i.data.objectFit,
|
|
27771
27769
|
videoTextureMap: KP,
|
|
27772
27770
|
ImageTextureMap: $P,
|
|
27773
27771
|
domEvents: this.domEvents
|
|
27774
27772
|
});
|
|
27775
|
-
|
|
27776
|
-
|
|
27773
|
+
A.onVideoReady = (g) => {
|
|
27774
|
+
g.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: A.videoInstance }));
|
|
27777
27775
|
};
|
|
27778
|
-
const
|
|
27779
|
-
|
|
27776
|
+
const p = (g) => (this.five.on("renderFrame", g), () => this.five.off("renderFrame", g));
|
|
27777
|
+
A.initialRenderHooks(p), i.mediaPlane = A, this.imagePlaneGroup.add(i.mediaPlane);
|
|
27780
27778
|
}
|
|
27781
27779
|
});
|
|
27782
27780
|
}
|
|
@@ -27788,13 +27786,12 @@ class e2 extends ey {
|
|
|
27788
27786
|
var s, o;
|
|
27789
27787
|
return ((o = (s = i.data.mediaData) == null ? void 0 : s[0]) == null ? void 0 : o.type) === "Image";
|
|
27790
27788
|
}).forEach((i) => {
|
|
27791
|
-
var d, h;
|
|
27792
27789
|
const { url: s } = i.data.mediaData[0];
|
|
27793
27790
|
if (!s)
|
|
27794
27791
|
return;
|
|
27795
|
-
const o = i.position.map(
|
|
27796
|
-
(a || c) &&
|
|
27797
|
-
this.hooks.emit("click", { tag: i, target: "TagContent", event:
|
|
27792
|
+
const o = i.position.map(kt), r = this.getCurrentVisibleState(i), a = (() => !!(i.mediaPlane && !r))(), l = (() => !!(!i.mediaPlane && r))(), c = (() => !!(i.mediaPlane && i.mediaPlane.src !== s))();
|
|
27793
|
+
(a || c) && i.mediaPlane && (this.imagePlaneGroup.remove(i.mediaPlane), i.mediaPlane.dispose(), i.mediaPlane.removeFromParent(), i.mediaPlane = void 0), (l || c) && (i.mediaPlane = new ed(s, o, { objectFit: i.data.objectFit }), i.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(i.mediaPlane, "click", (d) => {
|
|
27794
|
+
this.hooks.emit("click", { tag: i, target: "TagContent", event: d.origDomEvent });
|
|
27798
27795
|
}), this.imagePlaneGroup.add(i.mediaPlane));
|
|
27799
27796
|
});
|
|
27800
27797
|
}
|
|
@@ -28013,11 +28010,13 @@ class va extends e2 {
|
|
|
28013
28010
|
return { reason: `tag ${e} not found` };
|
|
28014
28011
|
if (!i.enabled)
|
|
28015
28012
|
return { reason: `tag ${e} enabled is ${i.enabled}` };
|
|
28013
|
+
if (i.stickType === "Model" || i.stickType === "Plane")
|
|
28014
|
+
return { reason: "maybe blocked by the five model" };
|
|
28016
28015
|
if (!i.state.visible) {
|
|
28017
28016
|
const a = (o = (s = this.getPanoIndexCache({ panoIndex: this.five.panoIndex, id: e })) == null ? void 0 : s.__debug_visible_reason__) == null ? void 0 : o.reason;
|
|
28018
|
-
return { reason: (r = a.type) != null ? r : a, reasonObj: a };
|
|
28017
|
+
return { reason: (r = a == null ? void 0 : a.type) != null ? r : a, reasonObj: a };
|
|
28019
28018
|
}
|
|
28020
|
-
return
|
|
28019
|
+
return { reason: "check your eyes" };
|
|
28021
28020
|
});
|
|
28022
28021
|
u(this, "updateVisible", () => {
|
|
28023
28022
|
const e = this.five.getCurrentState().mode;
|
|
@@ -28086,7 +28085,7 @@ class va extends e2 {
|
|
|
28086
28085
|
this.setVisible(), this.updateRenderAllTags();
|
|
28087
28086
|
});
|
|
28088
28087
|
u(this, "onFiveEveryReady", () => {
|
|
28089
|
-
this.setUnfoldedByCamera(), pn(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(
|
|
28088
|
+
this.setUnfoldedByCamera(), pn(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane();
|
|
28090
28089
|
});
|
|
28091
28090
|
this.params = Re({}, { debug: !1, config: this.config }, V({}, i)), this.debug = this.params.debug, this.config = this.params.config, R1(1, { namespace: Ja.PlayAudio });
|
|
28092
28091
|
try {
|
|
@@ -28232,7 +28231,7 @@ class va extends e2 {
|
|
|
28232
28231
|
*/
|
|
28233
28232
|
changeTagNormalById(e, i) {
|
|
28234
28233
|
const s = this.getTagById(e);
|
|
28235
|
-
s && s.tag3DContentSvelte && (s.tag3DContentSvelte.currentNormal =
|
|
28234
|
+
s && s.tag3DContentSvelte && (s.tag3DContentSvelte.currentNormal = kt(i));
|
|
28236
28235
|
}
|
|
28237
28236
|
/**
|
|
28238
28237
|
* @description: 改变data
|
|
@@ -28254,7 +28253,7 @@ class va extends e2 {
|
|
|
28254
28253
|
changeTagById(e, i, s = !0) {
|
|
28255
28254
|
const o = this.getTagById(e);
|
|
28256
28255
|
let r = !1;
|
|
28257
|
-
i && (i.data && (r = !0), s ? Re(o, i) : Object.assign(o, i), o != null && o.tag3DContentSvelte && (i != null && i.normal) && (o.tag3DContentSvelte.currentNormal =
|
|
28256
|
+
i && (i.data && (r = !0), s ? Re(o, i) : Object.assign(o, i), o != null && o.tag3DContentSvelte && (i != null && i.normal) && (o.tag3DContentSvelte.currentNormal = kt(i.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag(), r && o.hooks.emit("dataChanged", o.data));
|
|
28258
28257
|
}
|
|
28259
28258
|
/**
|
|
28260
28259
|
* @description: 销毁tag
|
|
@@ -28673,7 +28672,7 @@ class ba {
|
|
|
28673
28672
|
});
|
|
28674
28673
|
/** 模型状态变更 */
|
|
28675
28674
|
u(this, "onFiveModeChange", (t) => {
|
|
28676
|
-
this.modeVisible = this.mode === "panorama" ?
|
|
28675
|
+
this.modeVisible = this.mode === "panorama" ? Tt(t) : pn(t), this.updateVisible();
|
|
28677
28676
|
});
|
|
28678
28677
|
u(this, "onFiveModelShownFloorChange", (t) => {
|
|
28679
28678
|
this.floorVisible = t === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(t), this.updateVisible();
|