@realsee/dnalogel 2.13.2 → 2.14.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/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/index.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/typing.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -3
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -4
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
- package/dist/PanoTagPlugin/typings/controller.d.ts +4 -6
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
- package/{libs/PanoTagPlugin/utils/model/imageModel.d.ts → dist/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
- package/dist/index.cjs.js +47 -47
- package/dist/index.js +5101 -5083
- package/dist/index.umd.js +43 -43
- package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
- package/{libs/shared-utils/Object3DHelper/utils → dist/shared-utils}/threex/domevents/index.d.ts +9 -7
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -31
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +90 -222
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -8
- package/docs/functions/CameraMovementPlugin.html +5 -8
- package/docs/functions/CruisePlugin.html +5 -8
- package/docs/functions/GuideLinePlugin.html +5 -8
- package/docs/functions/ItemLabelPlugin.html +5 -8
- package/docs/functions/MapviewFloorplanPlugin.html +5 -8
- package/docs/functions/ModelChassisCompassPlugin.html +5 -8
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -8
- package/docs/functions/ModelFloorplanPlugin.html +5 -8
- package/docs/functions/ModelItemLabelPlugin.html +5 -8
- package/docs/functions/ModelRoomLabelPlugin.html +5 -8
- package/docs/functions/ModelTVVideoPlugin.html +5 -8
- package/docs/functions/ModelViewPlugin.html +5 -8
- package/docs/functions/Object3DHelperPlugin.html +5 -8
- package/docs/functions/PanoCompassPlugin.html +5 -8
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -8
- package/docs/functions/PanoDoorLabelPlugin.html +5 -8
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -8
- package/docs/functions/PanoMeasurePlugin.html +5 -8
- package/docs/functions/PanoRulerPlugin.html +5 -8
- package/docs/functions/PanoRulerProPlugin.html +5 -8
- package/docs/functions/PanoSpatialTagPlugin.html +5 -8
- package/docs/functions/PanoTagPlugin.html +5 -8
- package/docs/functions/PanoVideoPlugin.html +5 -8
- package/docs/functions/TopviewFloorplanPlugin.html +5 -8
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -8
- package/docs/index.html +4 -7
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +7 -7
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -8
- package/docs/interfaces/Rooms.html +5 -8
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +10 -10
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -10
- package/docs/types/ArrayPosition.html +5 -8
- package/docs/types/AudioAppearance.html +5 -8
- package/docs/types/AudioTagTypeConfigKey.html +5 -8
- package/docs/types/CSS3DRenderExportType.html +5 -8
- package/docs/types/CSS3DRenderPluginExportType.html +5 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -8
- package/docs/types/ClassFunctionParameters.html +5 -8
- package/docs/types/Color.html +5 -8
- package/docs/types/ContentTypeConfigKey.html +5 -8
- package/docs/types/ContentTypeConfigKeySplit.html +5 -8
- package/docs/types/ContentTypeMap.html +5 -8
- package/docs/types/Create3DDomContainerReturnType.html +5 -8
- package/docs/types/Create3DElementReturnType.html +5 -8
- package/docs/types/CruisePluginExportType.html +5 -8
- package/docs/types/Direction-1.html +5 -8
- package/docs/types/Direction4.html +5 -8
- package/docs/types/FloorplanRuleLabels.html +5 -8
- package/docs/types/FloorplanServerRuleLabels.html +5 -8
- package/docs/types/GuideLinePluginExportType.html +5 -8
- package/docs/types/HelperEventMap.html +5 -8
- package/docs/types/LoadTagConfig.html +5 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -8
- package/docs/types/MediaData.html +5 -8
- package/docs/types/MediaStore.html +5 -8
- package/docs/types/ModelElement.html +5 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -8
- package/docs/types/MoveArgs.html +5 -8
- package/docs/types/MoveOpts.html +5 -8
- package/docs/types/Object3DHelperEventMap.html +5 -8
- package/docs/types/ObjectFit.html +5 -8
- package/docs/types/PaintBrushEventMap.html +5 -8
- package/docs/types/PanoCompassPluginData.html +5 -8
- package/docs/types/PanoCompassPluginExportType.html +5 -8
- package/docs/types/PanoCompassPluginParameterType.html +5 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -8
- package/docs/types/PanoIndex.html +5 -8
- package/docs/types/PanoMeasurePluginEvent.html +5 -8
- package/docs/types/PanoMeasureReturnType.html +5 -8
- package/docs/types/PanoSpatialTagPluginId.html +5 -8
- package/docs/types/PanoTagPluginExportInterface.html +5 -8
- package/docs/types/PanoTagPluginParamsInterface.html +5 -8
- package/docs/types/PanoVideoPluginParameterType.html +5 -8
- package/docs/types/PanoVideoPluginReturnType.html +5 -8
- package/docs/types/PlaneTag.html +5 -8
- package/docs/types/PlaneTagElement.html +5 -8
- package/docs/types/Point2DElement.html +5 -8
- package/docs/types/Point2DTag.html +5 -8
- package/docs/types/Point3DElement.html +5 -8
- package/docs/types/Point3DTag.html +5 -8
- package/docs/types/PointTag.html +5 -8
- package/docs/types/PointTagElement.html +5 -8
- package/docs/types/Position.html +5 -8
- package/docs/types/RotateArgs.html +5 -8
- package/docs/types/RotateOpts.html +5 -8
- package/docs/types/RuleLabelsKey.html +5 -8
- package/docs/types/RuleLabelsValue.html +5 -8
- package/docs/types/StickType.html +5 -8
- package/docs/types/Tag.html +6 -9
- package/docs/types/Tag2D.html +5 -8
- package/docs/types/Tag3D.html +5 -8
- package/docs/types/TagContentType.html +5 -8
- package/docs/types/TagDimensionType.html +5 -8
- package/docs/types/TagElement.html +6 -9
- package/docs/types/TagEvents.html +5 -8
- package/docs/types/TagGLTFObject.html +5 -8
- package/docs/types/TagHooks.html +5 -8
- package/docs/types/TagIconSize.html +5 -8
- package/docs/types/TagId.html +5 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -8
- package/docs/types/WorkCode.html +5 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -8
- package/docs/variables/PLUGIN.html +6 -9
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -8
- package/docs/variables/ROOM_TYPE_MAP.html +5 -8
- package/docs/variables/itemLabelPluginServerParams.html +5 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/Controller.js +2 -4
- package/libs/CSS3DRenderPlugin/index.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CSS3DRenderPlugin/typing.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +21 -21
- package/libs/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
- package/libs/CSS3DRenderPlugin/{CSS3DRender.js → utils/three/CSS3DRender.js} +13 -13
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -11
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
- package/libs/ModelTVVideoPlugin/index.js +1 -1
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -3
- package/libs/Object3DHelperPlugin/Controller.js +50 -52
- package/libs/Object3DHelperPlugin/index.js +3 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -1
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +7 -0
- package/libs/PanoTagPlugin/Archive/deprecated.js +4 -0
- package/libs/PanoTagPlugin/Archive/index.d.ts +1 -0
- package/libs/PanoTagPlugin/Archive/index.js +4 -0
- package/libs/PanoTagPlugin/Components/Common/Audio.js +93 -97
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +206 -205
- package/libs/PanoTagPlugin/Components/Common/Media.js +115 -109
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +100 -100
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +66 -68
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +14 -15
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +101 -106
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +82 -84
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +62 -61
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +49 -48
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +52 -51
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +108 -115
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +25 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +49 -50
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +68 -70
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +55 -54
- package/libs/PanoTagPlugin/Components/Tag/index.js +153 -163
- package/libs/PanoTagPlugin/Components/TagContainer.js +5 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +80 -87
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
- package/libs/PanoTagPlugin/controller/TagComputer.js +80 -58
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -4
- package/libs/PanoTagPlugin/controller/TagRender.js +161 -153
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
- package/libs/PanoTagPlugin/controller/TagUtil.js +179 -77
- package/libs/PanoTagPlugin/controller/index.js +54 -49
- package/libs/PanoTagPlugin/index.js +16 -16
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/typings/controller.d.ts +4 -6
- package/libs/PanoTagPlugin/typings/index.js +7 -5
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +31 -33
- package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
- package/libs/shared-utils/three/index.js +1 -1
- package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
- package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
- package/package.json +1 -1
- package/docs/enums/PointType.html +0 -72
- package/docs/types/TagPointType.html +0 -272
- package/docs/variables/VERSION.html +0 -269
- package/libs/PanoTagPlugin/tsconfig.js +0 -9
- package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
1
|
+
import { SvelteComponent as K, init as M, safe_not_equal as N, append_styles as O, element as A, space as Q, attr as u, set_style as k, toggle_class as g, insert as C, append as j, transition_out as h, check_outros as B, transition_in as y, detach as P, getContext as U, group_outros as E, noop as v, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import W from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as F } from "../utils/noTypecheck.js";
|
|
5
|
-
import
|
|
5
|
+
import "@realsee/five/gltf-loader";
|
|
6
|
+
import "../../shared-utils/three/loadTexture.js";
|
|
7
|
+
import X from "./Common/TagPoint.js";
|
|
6
8
|
import "./Tag/TextTag/index.js";
|
|
7
9
|
import "./Tag/TextTag/TextTag.js";
|
|
8
10
|
import "./Common/Line/Straight.js";
|
|
@@ -61,7 +63,7 @@ import "./Tag/MarketingTag.js";
|
|
|
61
63
|
import "hammerjs";
|
|
62
64
|
import "@realsee/five";
|
|
63
65
|
import "@tweenjs/tween.js";
|
|
64
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
65
67
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
66
68
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
67
69
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -90,29 +92,29 @@ import "./Tag/LinkTag.js";
|
|
|
90
92
|
import "./Common/Icon/Icon.js";
|
|
91
93
|
import "../utils/getImageInfo.js";
|
|
92
94
|
import "./Tag/CustomTag.js";
|
|
93
|
-
function
|
|
94
|
-
|
|
95
|
+
function Y(o) {
|
|
96
|
+
O(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
|
|
95
97
|
}
|
|
96
|
-
function
|
|
98
|
+
function Z(o) {
|
|
97
99
|
let e;
|
|
98
100
|
return {
|
|
99
101
|
c() {
|
|
100
|
-
e =
|
|
102
|
+
e = A("div"), u(e, "data-info", "tag content is disable");
|
|
101
103
|
},
|
|
102
104
|
m(t, i) {
|
|
103
|
-
|
|
105
|
+
C(t, e, i);
|
|
104
106
|
},
|
|
105
|
-
p:
|
|
106
|
-
i:
|
|
107
|
-
o:
|
|
107
|
+
p: v,
|
|
108
|
+
i: v,
|
|
109
|
+
o: v,
|
|
108
110
|
d(t) {
|
|
109
|
-
t &&
|
|
111
|
+
t && P(e);
|
|
110
112
|
}
|
|
111
113
|
};
|
|
112
114
|
}
|
|
113
|
-
function
|
|
115
|
+
function x(o) {
|
|
114
116
|
let e, t;
|
|
115
|
-
return e = new
|
|
117
|
+
return e = new W({
|
|
116
118
|
props: {
|
|
117
119
|
mediaStore: o[2],
|
|
118
120
|
withAnimation: o[0],
|
|
@@ -129,40 +131,40 @@ function $(o) {
|
|
|
129
131
|
H(e, i, n), t = !0;
|
|
130
132
|
},
|
|
131
133
|
p(i, n) {
|
|
132
|
-
const
|
|
133
|
-
n & 4 && (
|
|
134
|
+
const l = {};
|
|
135
|
+
n & 4 && (l.mediaStore = i[2]), n & 1 && (l.withAnimation = i[0]), n & 2 && (l.tag = F(i[1])), n & 8 && (l.state = i[3]), n & 16 && (l.temporaryState = i[4]), e.$set(l);
|
|
134
136
|
},
|
|
135
137
|
i(i) {
|
|
136
|
-
t || (
|
|
138
|
+
t || (y(e.$$.fragment, i), t = !0);
|
|
137
139
|
},
|
|
138
140
|
o(i) {
|
|
139
|
-
|
|
141
|
+
h(e.$$.fragment, i), t = !1;
|
|
140
142
|
},
|
|
141
143
|
d(i) {
|
|
142
144
|
J(e, i);
|
|
143
145
|
}
|
|
144
146
|
};
|
|
145
147
|
}
|
|
146
|
-
function
|
|
148
|
+
function $(o) {
|
|
147
149
|
let e;
|
|
148
150
|
return {
|
|
149
151
|
c() {
|
|
150
|
-
e =
|
|
152
|
+
e = A("div"), u(e, "data-info", "tag point is disable");
|
|
151
153
|
},
|
|
152
154
|
m(t, i) {
|
|
153
|
-
|
|
155
|
+
C(t, e, i);
|
|
154
156
|
},
|
|
155
|
-
p:
|
|
156
|
-
i:
|
|
157
|
-
o:
|
|
157
|
+
p: v,
|
|
158
|
+
i: v,
|
|
159
|
+
o: v,
|
|
158
160
|
d(t) {
|
|
159
|
-
t &&
|
|
161
|
+
t && P(e);
|
|
160
162
|
}
|
|
161
163
|
};
|
|
162
164
|
}
|
|
163
|
-
function
|
|
165
|
+
function tt(o) {
|
|
164
166
|
let e, t;
|
|
165
|
-
return e = new
|
|
167
|
+
return e = new X({ props: { tag: o[1] } }), {
|
|
166
168
|
c() {
|
|
167
169
|
G(e.$$.fragment);
|
|
168
170
|
},
|
|
@@ -170,102 +172,93 @@ function et(o) {
|
|
|
170
172
|
H(e, i, n), t = !0;
|
|
171
173
|
},
|
|
172
174
|
p(i, n) {
|
|
173
|
-
const
|
|
174
|
-
n & 2 && (
|
|
175
|
+
const l = {};
|
|
176
|
+
n & 2 && (l.tag = i[1]), e.$set(l);
|
|
175
177
|
},
|
|
176
178
|
i(i) {
|
|
177
|
-
t || (
|
|
179
|
+
t || (y(e.$$.fragment, i), t = !0);
|
|
178
180
|
},
|
|
179
181
|
o(i) {
|
|
180
|
-
|
|
182
|
+
h(e.$$.fragment, i), t = !1;
|
|
181
183
|
},
|
|
182
184
|
d(i) {
|
|
183
185
|
J(e, i);
|
|
184
186
|
}
|
|
185
187
|
};
|
|
186
188
|
}
|
|
187
|
-
function
|
|
188
|
-
let e, t, i, n,
|
|
189
|
-
const
|
|
190
|
-
function
|
|
189
|
+
function et(o) {
|
|
190
|
+
let e, t, i, n, l, s, d, w, f;
|
|
191
|
+
const S = [x, Z], c = [];
|
|
192
|
+
function T(r, a) {
|
|
191
193
|
return r[12] ? 0 : 1;
|
|
192
194
|
}
|
|
193
|
-
i =
|
|
194
|
-
const
|
|
195
|
-
function
|
|
195
|
+
i = T(o), n = c[i] = S[i](o);
|
|
196
|
+
const p = [tt, $], _ = [];
|
|
197
|
+
function z(r, a) {
|
|
196
198
|
return r[13] ? 0 : 1;
|
|
197
199
|
}
|
|
198
|
-
return
|
|
200
|
+
return s = z(o), d = _[s] = p[s](o), {
|
|
199
201
|
c() {
|
|
200
|
-
e =
|
|
202
|
+
e = A("div"), t = A("div"), n.c(), l = Q(), d.c(), u(t, "class", "wrapper svelte-pzwdws"), u(t, "data-tag-unfolded", o[8]), u(t, "data-tag-id", o[11]), u(t, "data-content-type", w = o[1].contentType), k(t, "left", o[7]), k(t, "top", o[6]), k(t, "z-index", o[5]), u(e, "class", "tag svelte-pzwdws"), u(e, "data-tag-id", o[11]), g(e, "unClickable", o[1].mergedConfig.clickable === !1), g(e, "disable", o[10]), g(e, "hide", o[9]), g(e, "withAnimation", o[0]);
|
|
201
203
|
},
|
|
202
|
-
m(r,
|
|
203
|
-
|
|
204
|
+
m(r, a) {
|
|
205
|
+
C(r, e, a), j(e, t), c[i].m(t, null), j(t, l), _[s].m(t, null), f = !0;
|
|
204
206
|
},
|
|
205
|
-
p(r, [
|
|
206
|
-
let
|
|
207
|
-
i =
|
|
208
|
-
c[
|
|
209
|
-
}), B(), n = c[i], n ? n.p(r,
|
|
210
|
-
let
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
}), B(),
|
|
207
|
+
p(r, [a]) {
|
|
208
|
+
let m = i;
|
|
209
|
+
i = T(r), i === m ? c[i].p(r, a) : (E(), h(c[m], 1, 1, () => {
|
|
210
|
+
c[m] = null;
|
|
211
|
+
}), B(), n = c[i], n ? n.p(r, a) : (n = c[i] = S[i](r), n.c()), y(n, 1), n.m(t, l));
|
|
212
|
+
let b = s;
|
|
213
|
+
s = z(r), s === b ? _[s].p(r, a) : (E(), h(_[b], 1, 1, () => {
|
|
214
|
+
_[b] = null;
|
|
215
|
+
}), B(), d = _[s], d ? d.p(r, a) : (d = _[s] = p[s](r), d.c()), y(d, 1), d.m(t, null)), (!f || a & 256) && u(t, "data-tag-unfolded", r[8]), (!f || a & 2048) && u(t, "data-tag-id", r[11]), (!f || a & 2 && w !== (w = r[1].contentType)) && u(t, "data-content-type", w), a & 128 && k(t, "left", r[7]), a & 64 && k(t, "top", r[6]), a & 32 && k(t, "z-index", r[5]), (!f || a & 2048) && u(e, "data-tag-id", r[11]), (!f || a & 2) && g(e, "unClickable", r[1].mergedConfig.clickable === !1), (!f || a & 1024) && g(e, "disable", r[10]), (!f || a & 512) && g(e, "hide", r[9]), (!f || a & 1) && g(e, "withAnimation", r[0]);
|
|
214
216
|
},
|
|
215
217
|
i(r) {
|
|
216
|
-
|
|
218
|
+
f || (y(n), y(d), f = !0);
|
|
217
219
|
},
|
|
218
220
|
o(r) {
|
|
219
|
-
|
|
221
|
+
h(n), h(d), f = !1;
|
|
220
222
|
},
|
|
221
223
|
d(r) {
|
|
222
|
-
r &&
|
|
224
|
+
r && P(e), c[i].d(), _[s].d();
|
|
223
225
|
}
|
|
224
226
|
};
|
|
225
227
|
}
|
|
226
|
-
function
|
|
227
|
-
let i, n,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
return o.$$set = (_) => {
|
|
232
|
-
"withAnimation" in _ && t(0, q = _.withAnimation), "tag" in _ && t(1, m = _.tag), "mediaStore" in _ && t(2, D = _.mediaStore), "state" in _ && t(3, R = _.state), "temporaryState" in _ && t(4, V = _.temporaryState);
|
|
228
|
+
function it(o, e, t) {
|
|
229
|
+
let i, n, l, s, d, w, f, S, c, { withAnimation: T = !1 } = e, { tag: p } = e, { mediaStore: _ } = e, { state: z } = e, { temporaryState: r } = e;
|
|
230
|
+
const a = U("hooks");
|
|
231
|
+
return o.$$set = (m) => {
|
|
232
|
+
"withAnimation" in m && t(0, T = m.withAnimation), "tag" in m && t(1, p = m.tag), "mediaStore" in m && t(2, _ = m.mediaStore), "state" in m && t(3, z = m.state), "temporaryState" in m && t(4, r = m.temporaryState);
|
|
233
233
|
}, o.$$.update = () => {
|
|
234
|
-
|
|
234
|
+
var m, b, L, I, q, D, R, V;
|
|
235
|
+
o.$$.dirty & 2 && t(13, i = (() => !(p.contentType === "Sticker" || p.contentType === "Link" || p.contentType === "VRLink" || p.contentType === "PanoLink" || p.contentType === "Audio" && p.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => p.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = p.id), o.$$.dirty & 2 && t(10, s = !((m = p.pointTagStyle) != null && m.leftPercent) || !((b = p.pointTagStyle) != null && b.topPercent) || p.enabled === !1 || !p.state), o.$$.dirty & 2 && t(9, d = !((L = p.state) != null && L.visible) || ((I = p.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, w = (q = p.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, f = ((D = p.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, S = ((R = p.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = p.state) != null && V.unfolded ? 1 : 0);
|
|
235
236
|
}, [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
T,
|
|
238
|
+
p,
|
|
239
|
+
_,
|
|
240
|
+
z,
|
|
241
|
+
r,
|
|
241
242
|
c,
|
|
242
|
-
|
|
243
|
-
s,
|
|
244
|
-
k,
|
|
243
|
+
S,
|
|
245
244
|
f,
|
|
245
|
+
w,
|
|
246
|
+
d,
|
|
247
|
+
s,
|
|
246
248
|
l,
|
|
247
|
-
a,
|
|
248
249
|
n,
|
|
249
250
|
i,
|
|
250
|
-
|
|
251
|
-
v,
|
|
252
|
-
h,
|
|
253
|
-
d,
|
|
254
|
-
y,
|
|
255
|
-
r,
|
|
256
|
-
p,
|
|
257
|
-
g,
|
|
258
|
-
w
|
|
251
|
+
a
|
|
259
252
|
];
|
|
260
253
|
}
|
|
261
|
-
class
|
|
254
|
+
class Me extends K {
|
|
262
255
|
constructor(e) {
|
|
263
|
-
super(),
|
|
256
|
+
super(), M(
|
|
264
257
|
this,
|
|
265
258
|
e,
|
|
266
|
-
ot,
|
|
267
259
|
it,
|
|
268
|
-
|
|
260
|
+
et,
|
|
261
|
+
N,
|
|
269
262
|
{
|
|
270
263
|
withAnimation: 0,
|
|
271
264
|
tag: 1,
|
|
@@ -273,10 +266,10 @@ class Ke extends M {
|
|
|
273
266
|
state: 3,
|
|
274
267
|
temporaryState: 4
|
|
275
268
|
},
|
|
276
|
-
|
|
269
|
+
Y
|
|
277
270
|
);
|
|
278
271
|
}
|
|
279
272
|
}
|
|
280
273
|
export {
|
|
281
|
-
|
|
274
|
+
Me as default
|
|
282
275
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Five, Mode } from '@realsee/five';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import type { Tag } from '../typings';
|
|
3
|
+
import type { Tag, TagElement } from '../typings';
|
|
4
4
|
import { Raycaster } from 'three';
|
|
5
5
|
import { TagUtil } from './TagUtil';
|
|
6
6
|
export declare abstract class TagComputer extends TagUtil {
|
|
@@ -12,10 +12,15 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
12
12
|
getVisibleByPanoIndex(tag: Tag<any, any>, panoIndex?: number): boolean;
|
|
13
13
|
getVisibleByFiveMode(tag: Tag<any, any>, mode: Mode): boolean;
|
|
14
14
|
/** 检测是否匹配当前楼层 */
|
|
15
|
-
getVisibleByFloorIndex(tag:
|
|
16
|
-
|
|
15
|
+
getVisibleByFloorIndex(tag: TagElement<any, any>): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @description 获取标签当前状态
|
|
18
|
+
* @return (this.state.visible && tag.state.visible) ?? true
|
|
19
|
+
*/
|
|
20
|
+
getCurrentVisibleState(tag: TagElement<any, any>): boolean;
|
|
21
|
+
getVisible(tag: TagElement<any, any>): boolean;
|
|
17
22
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
18
|
-
getModelMedialVisibleByPanoIndex(tag:
|
|
23
|
+
getModelMedialVisibleByPanoIndex(tag: TagElement<any, any>): boolean;
|
|
19
24
|
/**
|
|
20
25
|
* @description: 获取是否展开
|
|
21
26
|
*/
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
var B = Object.defineProperty, U = Object.defineProperties;
|
|
2
|
-
var
|
|
2
|
+
var M = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var x = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var R = Object.prototype.hasOwnProperty, D = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var y = (d, f, e) => f in d ? B(d, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[f] = e, I = (d, f) => {
|
|
6
6
|
for (var e in f || (f = {}))
|
|
7
|
-
|
|
7
|
+
R.call(f, e) && y(d, e, f[e]);
|
|
8
8
|
if (x)
|
|
9
9
|
for (var e of x(f))
|
|
10
10
|
D.call(f, e) && y(d, e, f[e]);
|
|
11
11
|
return d;
|
|
12
|
-
}, P = (d, f) => U(d,
|
|
12
|
+
}, P = (d, f) => U(d, M(f));
|
|
13
13
|
var T = (d, f, e) => (y(d, typeof f != "symbol" ? f + "" : f, e), e);
|
|
14
|
-
import * as
|
|
14
|
+
import * as C from "three";
|
|
15
15
|
import { isMediaModelTag as h, is3DTag as j } from "../utils/tag/tagCheck.js";
|
|
16
|
-
import { tagPosition as
|
|
16
|
+
import { tagPosition as V } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as g } from "../utils/checkRange.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "@tweenjs/tween.js";
|
|
21
|
-
import "../../CSS3DRenderPlugin/CSS3DRender.js";
|
|
21
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { notNil as
|
|
23
|
+
import { notNil as k } from "../../shared-utils/isNil.js";
|
|
24
24
|
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
25
|
-
import { TagUtil as
|
|
25
|
+
import { TagUtil as S } from "./TagUtil.js";
|
|
26
26
|
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
27
|
import "../../shared-utils/three/centerPoint.js";
|
|
28
|
+
import "@realsee/five/gltf-loader";
|
|
29
|
+
import "../../shared-utils/three/loadTexture.js";
|
|
28
30
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
29
31
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
30
32
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -39,15 +41,17 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
39
41
|
import "object-assign-deep";
|
|
40
42
|
import "../tag.config.js";
|
|
41
43
|
import "../utils/planeNormal.js";
|
|
44
|
+
import "../utils/normalPositionToPositions.js";
|
|
42
45
|
import "./TagCache.js";
|
|
43
46
|
import "../../base/BasePlugin.js";
|
|
44
47
|
import "../../vendor/svelte/store/index.js";
|
|
45
48
|
import "../../vendor/svelte/internal/index.js";
|
|
46
49
|
import "../utils/device.js";
|
|
47
|
-
|
|
50
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
51
|
+
class he extends S {
|
|
48
52
|
constructor(e) {
|
|
49
53
|
super(e);
|
|
50
|
-
T(this, "raycaster", new
|
|
54
|
+
T(this, "raycaster", new C.Raycaster());
|
|
51
55
|
}
|
|
52
56
|
getVisibleByPanoIndex(e, i) {
|
|
53
57
|
var t;
|
|
@@ -59,44 +63,47 @@ class be extends $ {
|
|
|
59
63
|
{
|
|
60
64
|
const l = (() => {
|
|
61
65
|
var v, p, a;
|
|
62
|
-
const
|
|
63
|
-
if (typeof
|
|
64
|
-
return { value:
|
|
65
|
-
if (
|
|
66
|
+
const r = (v = this.getTagConfig(e).visibleConfig) != null ? v : {}, u = this.getDistance(e);
|
|
67
|
+
if (typeof r == "function")
|
|
68
|
+
return { value: r(this.five, { tag: e, distance: u }), reason: "config function result" };
|
|
69
|
+
if (r.keep === "hidden")
|
|
66
70
|
return { value: !1, reason: "config.keep is hidden" };
|
|
67
|
-
if (
|
|
71
|
+
if (r.keep === "visible")
|
|
68
72
|
return { value: !0, reason: "config.keep is visible" };
|
|
69
|
-
if (
|
|
70
|
-
if (Array.isArray(
|
|
73
|
+
if (r.visiblePanoIndex !== void 0 && r.visiblePanoIndex !== "all" && s !== void 0) {
|
|
74
|
+
if (Array.isArray(r.visiblePanoIndex) && !r.visiblePanoIndex.includes(s))
|
|
71
75
|
return {
|
|
72
76
|
value: !1,
|
|
73
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${
|
|
77
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${r.visiblePanoIndex}`
|
|
74
78
|
};
|
|
75
|
-
if (
|
|
79
|
+
if (r.visiblePanoIndex === "current" && s !== ((p = e.fiveState) == null ? void 0 : p.panoIndex))
|
|
76
80
|
return {
|
|
77
81
|
value: !1,
|
|
78
82
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(a = e.fiveState) == null ? void 0 : a.panoIndex}`
|
|
79
83
|
};
|
|
80
84
|
}
|
|
81
|
-
if (
|
|
85
|
+
if (r.visibleDistance !== void 0 && r.visibleDistance !== "unLimited" && g(u, r.visibleDistance) === !1)
|
|
82
86
|
return {
|
|
83
87
|
value: !1,
|
|
84
|
-
reason: `distance is not in visibleDistance. distance: ${u}, visibleDistance: ${
|
|
88
|
+
reason: `distance is not in visibleDistance. distance: ${u}, visibleDistance: ${r.visibleDistance}`
|
|
85
89
|
};
|
|
86
|
-
if (
|
|
90
|
+
if (r.intersectRaycaster !== !1 && (typeof r.intersectRaycaster != "object" || r.intersectRaycaster.enabled !== !1)) {
|
|
87
91
|
if (s === void 0)
|
|
88
92
|
return {
|
|
89
93
|
value: !1,
|
|
90
94
|
reason: `intersectRaycaster check failed: fivePanoIndex is ${s}`
|
|
91
95
|
};
|
|
92
|
-
const
|
|
96
|
+
const o = this.getRaycasterFromPanoIndex(e, s);
|
|
97
|
+
if (!o)
|
|
98
|
+
return { value: !1, reason: `intersectRaycaster check failed: raycaster is ${o}` };
|
|
99
|
+
const c = this.getTagEnableByIntersect(e, o);
|
|
93
100
|
if (c.value === !1)
|
|
94
101
|
return c;
|
|
95
102
|
}
|
|
96
|
-
if (
|
|
97
|
-
const
|
|
98
|
-
if (g(
|
|
99
|
-
return { value: !1, reason: `angle is not in angleRange. angle: ${
|
|
103
|
+
if (r.angleRange && j(e)) {
|
|
104
|
+
const o = this.getAngle(e);
|
|
105
|
+
if (g(o, r.angleRange) === !1)
|
|
106
|
+
return { value: !1, reason: `angle is not in angleRange. angle: ${o}, angleRange: ${r.angleRange}` };
|
|
100
107
|
}
|
|
101
108
|
return {
|
|
102
109
|
value: !0,
|
|
@@ -122,15 +129,24 @@ class be extends $ {
|
|
|
122
129
|
const n = i.panoIndex, s = (l = this.five.work.observers[n]) == null ? void 0 : l.floorIndex, t = this.five.model.shownFloor;
|
|
123
130
|
return t === null || t === s;
|
|
124
131
|
}
|
|
132
|
+
getCurrentVisibleState(e) {
|
|
133
|
+
var i;
|
|
134
|
+
return (i = this.state.visible && e.state.visible) != null ? i : !0;
|
|
135
|
+
}
|
|
125
136
|
getVisible(e) {
|
|
126
137
|
const i = this.five.getCurrentState(), n = this.getVisibleByFiveMode(e, i.mode), s = h(e) ? this.getVisibleByFloorIndex(e) : !0, t = i.mode === "Panorama" ? this.getVisibleByPanoIndex(e, i.panoIndex) : !0;
|
|
127
138
|
return n && t && s;
|
|
128
139
|
}
|
|
129
140
|
getModelMedialVisibleByPanoIndex(e) {
|
|
141
|
+
if (!this.getCurrentVisibleState(e))
|
|
142
|
+
return !1;
|
|
130
143
|
const i = this.five.getCurrentState().panoIndex, n = this.getCache({ panoIndex: i, id: e.id });
|
|
131
144
|
if (n.modelMedialVisible !== void 0)
|
|
132
145
|
return n.modelMedialVisible;
|
|
133
|
-
const s = this.getRaycasterFromPanoIndex(e, i)
|
|
146
|
+
const s = this.getRaycasterFromPanoIndex(e, i);
|
|
147
|
+
if (!s)
|
|
148
|
+
return !1;
|
|
149
|
+
const t = this.getTagEnableByIntersect(e, s);
|
|
134
150
|
return n.modelMedialVisible = t.value, n.__debug_visible_reason__ = t, t.value !== !1;
|
|
135
151
|
}
|
|
136
152
|
getUnfoldedByPanoIndex(e, i) {
|
|
@@ -155,8 +171,8 @@ class be extends $ {
|
|
|
155
171
|
return !1;
|
|
156
172
|
})();
|
|
157
173
|
s.unfolded = l;
|
|
158
|
-
const
|
|
159
|
-
return
|
|
174
|
+
const r = this.getUnfoldedByCamera(e);
|
|
175
|
+
return r !== void 0 ? r : s.unfolded;
|
|
160
176
|
}
|
|
161
177
|
}
|
|
162
178
|
getUnfoldedByCamera(e) {
|
|
@@ -173,24 +189,24 @@ class be extends $ {
|
|
|
173
189
|
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
174
190
|
return;
|
|
175
191
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
192
|
+
const r = this.getTagProject(e);
|
|
193
|
+
if (r && g(r.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
178
194
|
return !1;
|
|
179
195
|
}
|
|
180
196
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
181
197
|
const v = this.filterPointTag.filter((a) => this.getVisibleByPanoIndex(a)).filter((a) => {
|
|
182
|
-
const
|
|
183
|
-
if (!
|
|
198
|
+
const o = this.getTagProject(a);
|
|
199
|
+
if (!o)
|
|
184
200
|
return !1;
|
|
185
|
-
const { x: c, y: b, z: m } =
|
|
201
|
+
const { x: c, y: b, z: m } = o;
|
|
186
202
|
return !(Math.abs(m) > 1 || Math.abs(c) > 1 || Math.abs(b) > 1);
|
|
187
|
-
}).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig:
|
|
203
|
+
}).map((a) => ({ tag: a, id: a.id, tagConfig: this.getTagConfig(a).unfoldedConfig })).filter(({ tag: a, tagConfig: o }) => {
|
|
188
204
|
var c, b;
|
|
189
|
-
return !(typeof
|
|
190
|
-
}).map((a) => P(I({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig:
|
|
205
|
+
return !(typeof o != "object" || o.keep || o.autoUnfold === !1 || ((c = o.autoUnfold) == null ? void 0 : c.enable) === !1 || ((b = o.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance");
|
|
206
|
+
}).map((a) => P(I({}, a), { distance: this.getDistance(a.tag) })).filter(({ distance: a, tagConfig: o }) => {
|
|
191
207
|
var c, b;
|
|
192
|
-
return !(a === void 0 || typeof
|
|
193
|
-
}).sort((a,
|
|
208
|
+
return !(a === void 0 || typeof o != "object" || o.autoUnfold === !1 || ((c = o.autoUnfold) == null ? void 0 : c.enable) === !1 || ((b = o.autoUnfold) == null ? void 0 : b.strategy) !== "MinimumDistance" || o.autoUnfold.distance && g(a, o.autoUnfold.distance) === !1);
|
|
209
|
+
}).sort((a, o) => a.distance - o.distance).findIndex((a) => a.id === e.id);
|
|
194
210
|
if (v === -1 || v <= ((l = t.autoUnfold.maxNumber) != null ? l : 1) - 1 === !1)
|
|
195
211
|
return !1;
|
|
196
212
|
}
|
|
@@ -250,9 +266,12 @@ class be extends $ {
|
|
|
250
266
|
});
|
|
251
267
|
}
|
|
252
268
|
getTagProject(e) {
|
|
253
|
-
if (!this.getVisibleByPanoIndex(e)
|
|
269
|
+
if (!this.getVisibleByPanoIndex(e))
|
|
270
|
+
return;
|
|
271
|
+
const n = V(e.position);
|
|
272
|
+
if (!n)
|
|
254
273
|
return;
|
|
255
|
-
const
|
|
274
|
+
const { x: s, y: t, z: l } = n.project(this.five.camera);
|
|
256
275
|
if (!(l > 1))
|
|
257
276
|
return { x: s, y: t, z: l };
|
|
258
277
|
}
|
|
@@ -261,30 +280,33 @@ class be extends $ {
|
|
|
261
280
|
const n = (v = this.getTagConfig(e).visibleConfig) != null ? v : {}, s = this.getDistance(e), [t] = this.five.model.intersectRaycaster(i), l = (() => {
|
|
262
281
|
if (!h(e))
|
|
263
282
|
return;
|
|
264
|
-
const
|
|
283
|
+
const o = this.tags.filter(h).map((b) => {
|
|
265
284
|
var m;
|
|
266
285
|
return (m = b.model) == null ? void 0 : m.object;
|
|
267
|
-
}).filter(
|
|
268
|
-
return i.intersectObjects(
|
|
269
|
-
})(),
|
|
270
|
-
var
|
|
271
|
-
return typeof n == "object" && typeof n.intersectRaycaster == "object" && (
|
|
272
|
-
})();
|
|
273
|
-
return
|
|
286
|
+
}).filter(k);
|
|
287
|
+
return i.intersectObjects(o, !0)[0];
|
|
288
|
+
})(), r = (() => {
|
|
289
|
+
var o;
|
|
290
|
+
return typeof n == "object" && typeof n.intersectRaycaster == "object" && (o = n.intersectRaycaster.distanceAccuracy) != null ? o : 0.01;
|
|
291
|
+
})(), u = Math.min((p = t == null ? void 0 : t.distance) != null ? p : 1 / 0, (a = l == null ? void 0 : l.distance) != null ? a : 1 / 0);
|
|
292
|
+
return u + r < s ? {
|
|
274
293
|
value: !1,
|
|
275
|
-
reason: `intersectRaycaster check failed: distance is ${s}, intersection.point is ${t == null ? void 0 : t.point.toArray()},
|
|
276
|
-
customModelIntersection.point is ${l == null ? void 0 : l.point.toArray()}
|
|
294
|
+
reason: `intersectRaycaster check failed: distance is ${s}, intersection.distance is ${t == null ? void 0 : t.distance}, intersection.point is ${t == null ? void 0 : t.point.toArray()},
|
|
295
|
+
customModelIntersection.point is ${l == null ? void 0 : l.point.toArray()}, minIntersectionDistance is ${u}`
|
|
277
296
|
} : { value: !0, reason: "" };
|
|
278
297
|
}
|
|
279
298
|
getRaycasterFromPanoIndex(e, i) {
|
|
280
|
-
var
|
|
281
|
-
const n = (
|
|
299
|
+
var l;
|
|
300
|
+
const n = (l = this.five.work.observers[i]) == null ? void 0 : l.position;
|
|
282
301
|
if (n === void 0)
|
|
283
302
|
throw new Error(`getVisible(): observerPosition is ${n}`);
|
|
284
|
-
const s =
|
|
285
|
-
|
|
303
|
+
const s = V(e.position);
|
|
304
|
+
if (!s)
|
|
305
|
+
return;
|
|
306
|
+
const t = s.sub(n).normalize();
|
|
307
|
+
return this.raycaster.set(n, t), this.raycaster;
|
|
286
308
|
}
|
|
287
309
|
}
|
|
288
310
|
export {
|
|
289
|
-
|
|
311
|
+
he as TagComputer
|
|
290
312
|
};
|
|
@@ -20,11 +20,14 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
20
20
|
* @description: 更新所有标签
|
|
21
21
|
*/
|
|
22
22
|
protected updateRenderAllTags(): void;
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @description: 渲染图片贴片
|
|
25
|
+
*/
|
|
26
|
+
protected updateRenderImagePlane(): void;
|
|
24
27
|
/**
|
|
25
28
|
* @description: 渲染3D贴片
|
|
26
29
|
*/
|
|
27
|
-
protected
|
|
30
|
+
protected updateRender3DDomTag(): void;
|
|
28
31
|
/** 更新所有模型标签
|
|
29
32
|
*
|
|
30
33
|
* 1. 移除不应该在场景中的模型
|
|
@@ -37,7 +40,6 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
37
40
|
/** 更新标签中多媒体面片的位置
|
|
38
41
|
* @param tag 标签
|
|
39
42
|
* @param model 模型
|
|
40
|
-
* @param scale css3DObject 原始缩放比例
|
|
41
43
|
*/
|
|
42
44
|
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagElement<any, S>, model: Object3D): void;
|
|
43
45
|
/** 添加模型标签 */
|
|
@@ -54,5 +56,4 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
54
56
|
protected clearUnusedPanelTag(): void;
|
|
55
57
|
/** 加载外部模型 */
|
|
56
58
|
protected loadModel: (tag: TagElement<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
|
|
57
|
-
private updateTagCss3DObjectVisible;
|
|
58
59
|
}
|