@realsee/dnalogel 2.19.1 → 2.20.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/Archive/deprecated.d.ts +48 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/dist/PanoTagPlugin/controller/index.d.ts +7 -7
- package/dist/PanoTagPlugin/typings/controller.d.ts +8 -58
- package/dist/PanoTagPlugin/typings/index.d.ts +7 -5
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
- package/dist/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/dist/index.cjs.js +39 -39
- package/dist/index.js +677 -672
- package/dist/index.umd.js +32 -32
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +45 -38
- package/docs/classes/CruisePluginController.html +40 -33
- package/docs/classes/GuideLineItem.GuideLineItem.html +34 -27
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +45 -38
- package/docs/classes/Magnifier.html +34 -27
- package/docs/classes/ModelRoomLabelController.html +25 -18
- package/docs/classes/Object3DHelperController.html +39 -32
- package/docs/classes/PaintBrush.html +29 -22
- package/docs/classes/PanoMeasurePluginLine.html +37 -30
- package/docs/classes/PanoMeasurePluginModel.html +36 -29
- package/docs/classes/PanoMeasurePluginPoint.html +28 -21
- package/docs/classes/PanoMeasurePluginPolyline.html +40 -33
- package/docs/classes/PanoTagPluginController.html +86 -79
- package/docs/classes/Util.BetterTween.html +23 -16
- package/docs/classes/Util.FivePointSelector.html +26 -19
- package/docs/classes/Util.Interval.html +26 -19
- package/docs/classes/Util.Magnifier.html +31 -24
- package/docs/classes/Util.PointDomHelper.html +25 -18
- package/docs/classes/Util.PointHelper.html +25 -18
- package/docs/classes/Util.Rectangle.html +27 -20
- package/docs/enums/CameraMovementEffect.html +21 -14
- package/docs/enums/ContentType.html +69 -58
- package/docs/enums/DIRECTION.html +23 -16
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +23 -16
- package/docs/enums/DimensionType.html +21 -14
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +22 -15
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +23 -16
- package/docs/enums/PaintBrushTypeEnum.html +22 -15
- package/docs/enums/PointType.html +390 -0
- package/docs/enums/Rotation.html +22 -15
- package/docs/functions/CSS3DRenderPlugin.html +18 -11
- package/docs/functions/CameraMovementPlugin.html +18 -11
- package/docs/functions/CruisePlugin.html +18 -11
- package/docs/functions/GuideLinePlugin.html +19 -12
- package/docs/functions/ItemLabelPlugin.html +18 -11
- package/docs/functions/MapviewFloorplanPlugin.html +18 -11
- package/docs/functions/ModelChassisCompassPlugin.html +18 -11
- package/docs/functions/ModelEntryDoorGuidePlugin.html +18 -11
- package/docs/functions/ModelFloorplanPlugin.html +18 -11
- package/docs/functions/ModelItemLabelPlugin.html +18 -11
- package/docs/functions/ModelRoomLabelPlugin.html +18 -11
- package/docs/functions/ModelTVVideoPlugin.html +18 -11
- package/docs/functions/ModelViewPlugin.html +18 -11
- package/docs/functions/Object3DHelperPlugin.html +18 -11
- package/docs/functions/PanoCompassPlugin.html +18 -11
- package/docs/functions/PanoCursorRaycasterPlugin.html +18 -11
- package/docs/functions/PanoDoorLabelPlugin.html +18 -11
- package/docs/functions/PanoFloorplanRadarPlugin.html +18 -11
- package/docs/functions/PanoMeasurePlugin.html +18 -11
- package/docs/functions/PanoRulerPlugin.html +18 -11
- package/docs/functions/PanoRulerProPlugin.html +18 -11
- package/docs/functions/PanoSpatialTagPlugin.html +18 -11
- package/docs/functions/PanoTagPlugin.html +18 -11
- package/docs/functions/PanoVideoPlugin.html +18 -11
- package/docs/functions/TopviewFloorplanPlugin.html +18 -11
- package/docs/functions/Util.getCoordsFromClient.html +19 -12
- package/docs/functions/Util.getCoordsFromElement.html +19 -12
- package/docs/functions/Util.getFrameTime.html +19 -12
- package/docs/functions/Util.getIntersectFromRelativePosition.html +19 -12
- package/docs/functions/Util.getRaycasterFromFivePointer.html +19 -12
- package/docs/functions/Util.isAbsoluteURL.html +19 -12
- package/docs/functions/Util.isModelLike.html +19 -12
- package/docs/functions/Util.isNil.html +19 -12
- package/docs/functions/Util.isPanoramaLike.html +19 -12
- package/docs/functions/Util.nextFrame.html +19 -12
- package/docs/functions/Util.notNil.html +19 -12
- package/docs/functions/Util.requestAnimationFrameInterval.html +19 -12
- package/docs/functions/Util.tweenProgress.html +19 -12
- package/docs/functions/Util.uuid.html +19 -12
- package/docs/functions/pluginFlag.html +19 -12
- package/docs/index.html +19 -12
- package/docs/interfaces/AddTagConfig.html +20 -13
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +25 -18
- package/docs/interfaces/CSS3DRenderPluginState.html +22 -15
- package/docs/interfaces/CameraMovementPluginExportType.html +21 -14
- package/docs/interfaces/ContentTypeMapInterface.html +724 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +22 -15
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +26 -19
- package/docs/interfaces/CruisePluginTypes.EventMap.html +34 -27
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +26 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +28 -21
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +28 -21
- package/docs/interfaces/CruisePluginTypes.PluginData.html +23 -16
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +21 -14
- package/docs/interfaces/CruisePluginTypes.PluginState.html +25 -18
- package/docs/interfaces/EventMap.html +31 -24
- package/docs/interfaces/FloorplanBounding.html +22 -15
- package/docs/interfaces/FloorplanData.html +24 -17
- package/docs/interfaces/FloorplanEntrance.html +25 -18
- package/docs/interfaces/FloorplanExtraObject.html +24 -17
- package/docs/interfaces/FloorplanExtraObject3D.html +22 -15
- package/docs/interfaces/FloorplanFloorData.html +23 -16
- package/docs/interfaces/FloorplanImagePosition.html +21 -14
- package/docs/interfaces/FloorplanObserver.html +23 -16
- package/docs/interfaces/FloorplanOutlineItem.html +23 -16
- package/docs/interfaces/FloorplanPosition.html +21 -14
- package/docs/interfaces/FloorplanRoomItem.html +27 -20
- package/docs/interfaces/FloorplanRoomLabelItem.html +21 -14
- package/docs/interfaces/FloorplanServerBounding.html +22 -15
- package/docs/interfaces/FloorplanServerComputedData.html +24 -17
- package/docs/interfaces/FloorplanServerData.html +21 -14
- package/docs/interfaces/FloorplanServerDoorItem.html +24 -17
- package/docs/interfaces/FloorplanServerDoorPosition.html +22 -15
- package/docs/interfaces/FloorplanServerEntrance.html +25 -18
- package/docs/interfaces/FloorplanServerFloorData.html +23 -16
- package/docs/interfaces/FloorplanServerImagePosition.html +21 -14
- package/docs/interfaces/FloorplanServerObserver.html +23 -16
- package/docs/interfaces/FloorplanServerOutlineItem.html +23 -16
- package/docs/interfaces/FloorplanServerPosition.html +21 -14
- package/docs/interfaces/FloorplanServerRoomItem.html +28 -21
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +21 -14
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +22 -15
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +24 -17
- package/docs/interfaces/GuideLinePluginType.EventMap.html +27 -20
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +22 -15
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +20 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +27 -20
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +22 -15
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +32 -25
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +21 -14
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +32 -25
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +19 -12
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +21 -14
- package/docs/interfaces/GuideLinePluginType.PluginState.html +22 -15
- package/docs/interfaces/GuideLinePluginType.Route.html +25 -18
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +23 -16
- package/docs/interfaces/HelperOffset.html +22 -15
- package/docs/interfaces/ImagePlaneGroup.html +20 -13
- package/docs/interfaces/ItemLabelPluginData.html +20 -13
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +25 -18
- package/docs/interfaces/ItemLabelPluginParametersType.html +23 -16
- package/docs/interfaces/MinMax.html +21 -14
- package/docs/interfaces/ModelChassisCompassPluginData.html +21 -14
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +22 -15
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +21 -14
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +22 -15
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +22 -15
- package/docs/interfaces/ModelItemLabelPluginData.html +20 -13
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +25 -18
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +21 -14
- package/docs/interfaces/ModelRoomLabelPluginData.html +20 -13
- package/docs/interfaces/ModelTVVideoPluginData.html +23 -16
- package/docs/interfaces/ModelTVVideoPluginExportType.html +22 -15
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +20 -13
- package/docs/interfaces/ModelViewPluginExportType.html +25 -18
- package/docs/interfaces/Object3DHelperState.html +22 -15
- package/docs/interfaces/ObjectHelperControllers.html +23 -16
- package/docs/interfaces/PaintBrushAction.html +26 -19
- package/docs/interfaces/PaintBrushConfigs.html +26 -19
- package/docs/interfaces/PaintBrushState.html +24 -17
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +24 -17
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +19 -12
- package/docs/interfaces/PanoMeasureParameterType.html +28 -21
- package/docs/interfaces/PanoMeasurePluginLineJson.html +22 -15
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +21 -14
- package/docs/interfaces/PanoMeasurePluginPointJson.html +21 -14
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +22 -15
- package/docs/interfaces/PanoRulerPluginExportType.html +24 -17
- package/docs/interfaces/PanoRulerPluginOptions.html +21 -14
- package/docs/interfaces/PanoRulerPluginParameterType.html +22 -15
- package/docs/interfaces/PanoRulerProPluginExportType.html +23 -16
- package/docs/interfaces/PanoRulerProPluginOptions.html +21 -14
- package/docs/interfaces/PanoRulerProPluginParameterType.html +21 -14
- package/docs/interfaces/PanoRulerProPluginState.html +22 -15
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +19 -12
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +19 -12
- package/docs/interfaces/PanoSpatialTagPluginData.html +25 -18
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +24 -17
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +27 -20
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +24 -17
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +27 -20
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +25 -18
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +24 -17
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +20 -13
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +22 -15
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +20 -13
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +23 -16
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +20 -13
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +22 -15
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +24 -17
- package/docs/interfaces/Point.html +22 -15
- package/docs/interfaces/Room.html +23 -16
- package/docs/interfaces/RoomInfo.html +21 -14
- package/docs/interfaces/RoomLabel.html +28 -21
- package/docs/interfaces/RoomRules.html +19 -12
- package/docs/interfaces/Rooms.html +19 -12
- package/docs/interfaces/Scissor.html +23 -16
- package/docs/interfaces/State.html +22 -15
- package/docs/interfaces/TagCacheInterface.html +26 -19
- package/docs/interfaces/TagConfig.html +32 -27
- package/docs/interfaces/TagGLTFObjectGroup.html +20 -13
- package/docs/interfaces/TagIconUrl.html +26 -19
- package/docs/interfaces/TagObjectGroup.html +20 -13
- package/docs/interfaces/TagStyle.html +20 -13
- package/docs/interfaces/Tags.html +116 -129
- package/docs/interfaces/TemporaryState.html +20 -13
- package/docs/interfaces/Util.MagnifierParameter.html +25 -18
- package/docs/interfaces/Util.MouseGroupParameter.html +22 -15
- package/docs/modules/CruisePluginTypes.html +19 -12
- package/docs/modules/GuideLineItem.html +19 -12
- package/docs/modules/GuideLineModeItem.html +19 -12
- package/docs/modules/GuideLinePluginType.html +19 -12
- package/docs/modules/PanoVideoPluginType.html +19 -12
- package/docs/modules/Util.html +19 -12
- package/docs/modules.html +34 -20
- package/docs/types/ArrayPosition.html +19 -12
- package/docs/types/AudioAppearance.html +20 -13
- package/docs/types/AudioTagTypeConfigKey.html +19 -12
- package/docs/types/CSS3DRenderExportType.html +19 -12
- package/docs/types/CSS3DRenderPluginExportType.html +19 -12
- package/docs/types/CSS3DRenderPluginParameterType.html +19 -12
- package/docs/types/ClassFunctionParameters.html +19 -12
- package/docs/types/Color.html +19 -12
- package/docs/types/ConfigFunction.html +390 -0
- package/docs/types/ContentTypeConfigKey.html +19 -12
- package/docs/types/ContentTypeConfigKeySplit.html +19 -12
- package/docs/types/ContentTypeMap.html +20 -13
- package/docs/types/ContentTypeMapInterfaceWithExtraData.html +359 -0
- package/docs/types/Create3DDomContainerReturnType.html +19 -12
- package/docs/types/Create3DElementReturnType.html +19 -12
- package/docs/types/CruisePluginExportType.html +19 -12
- package/docs/types/CruisePluginTypes.CruiseData.html +19 -12
- package/docs/types/CruisePluginTypes.MoveEffect.html +19 -12
- package/docs/types/DeprecatedMediaPlaneProperty.html +371 -0
- package/docs/types/DeprecatedTagProperty.html +374 -0
- package/docs/types/Direction-1.html +19 -12
- package/docs/types/Direction4.html +19 -12
- package/docs/types/ElementRenderer.html +19 -12
- package/docs/types/FloorplanRuleLabels.html +19 -12
- package/docs/types/FloorplanServerRuleLabels.html +19 -12
- package/docs/types/GuideLinePluginExportType.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineItem.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +19 -12
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +19 -12
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +19 -12
- package/docs/types/GuideLinePluginType.PathItem.html +19 -12
- package/docs/types/GuideLinePluginType.PluginData.html +19 -12
- package/docs/types/HelperEventMap.html +19 -12
- package/docs/types/LoadTagConfig.html +19 -12
- package/docs/types/MapviewFloorplanPluginParameterType.html +19 -12
- package/docs/types/MapviewFloorplanPluginReturnType.html +19 -12
- package/docs/types/MediaData.html +19 -12
- package/docs/types/MediaStore.html +19 -12
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +19 -12
- package/docs/types/ModelFloorplanPluginParameterType.html +19 -12
- package/docs/types/ModelFloorplanPluginReturnType.html +19 -12
- package/docs/types/ModelRoomLabelPluginParameters.html +19 -12
- package/docs/types/ModelRoomLabelPluginReturnType.html +19 -12
- package/docs/types/MoveArgs.html +19 -12
- package/docs/types/MoveOpts.html +19 -12
- package/docs/types/{Point2DElement.html → Object.html} +22 -20
- package/docs/types/Object3DHelperEventMap.html +19 -12
- package/docs/types/ObjectFit.html +19 -12
- package/docs/types/PaintBrushEventMap.html +19 -12
- package/docs/types/PanoCompassPluginData.html +19 -12
- package/docs/types/PanoCompassPluginExportType.html +19 -12
- package/docs/types/PanoCompassPluginParameterType.html +19 -12
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +19 -12
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +19 -12
- package/docs/types/PanoIndex.html +19 -12
- package/docs/types/PanoMeasurePluginEvent.html +19 -12
- package/docs/types/PanoMeasureReturnType.html +19 -12
- package/docs/types/PanoSpatialTagPluginId.html +19 -12
- package/docs/types/PanoTagPluginExportInterface.html +19 -12
- package/docs/types/PanoTagPluginParamsInterface.html +19 -12
- package/docs/types/PanoVideoPluginParameterType.html +19 -12
- package/docs/types/PanoVideoPluginReturnType.html +19 -12
- package/docs/types/{Point3DElement.html → PartialObjectDeep.html} +23 -16
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +20 -13
- package/docs/types/PlaneTag.html +20 -13
- package/docs/types/Point2DTag.html +20 -13
- package/docs/types/Point3DTag.html +20 -13
- package/docs/types/PointTag.html +20 -13
- package/docs/types/{PointTagElement.html → PointTagInstance.html} +22 -15
- package/docs/types/Position.html +19 -12
- package/docs/types/{ModelElement.html → RequiredTag.html} +25 -16
- package/docs/types/RotateArgs.html +19 -12
- package/docs/types/RotateOpts.html +19 -12
- package/docs/types/RuleLabelsKey.html +19 -12
- package/docs/types/RuleLabelsValue.html +19 -12
- package/docs/types/StickType.html +19 -12
- package/docs/types/Tag.html +20 -13
- package/docs/types/Tag2D.html +19 -12
- package/docs/types/Tag3D.html +19 -12
- package/docs/types/TagContentType.html +19 -12
- package/docs/types/TagDimensionType.html +22 -13
- package/docs/types/TagElement.html +23 -13
- package/docs/types/TagEvents.html +19 -12
- package/docs/types/TagGLTFObject.html +19 -12
- package/docs/types/TagHooks.html +19 -12
- package/docs/types/TagIconSize.html +19 -12
- package/docs/types/TagId.html +19 -12
- package/docs/types/TagInstance.html +366 -0
- package/docs/types/{PlaneTagElement.html → TagPointType.html} +25 -20
- package/docs/types/TopviewFloorplanPluginParameterType.html +19 -12
- package/docs/types/TopviewFloorplanPluginReturnType.html +19 -12
- package/docs/types/WorkCode.html +19 -12
- package/docs/variables/FLOOR_TYPE_MAP.html +19 -12
- package/docs/variables/PLUGIN.html +19 -12
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +19 -12
- package/docs/variables/ROOM_TYPE_MAP.html +19 -12
- package/docs/variables/itemLabelPluginServerParams.html +19 -12
- package/docs/variables/modelItemLabelPluginServerParams.html +19 -12
- package/docs/variables/modelRoomLabelPluginServerParams.html +19 -12
- package/libs/CruisePlugin/Controller.js +74 -74
- package/libs/GuideLinePlugin/Controller.js +7 -7
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +48 -1
- package/libs/PanoTagPlugin/Archive/deprecated.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +21 -21
- package/libs/PanoTagPlugin/Components/TagItem.js +46 -46
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +12 -12
- package/libs/PanoTagPlugin/controller/TagComputer.js +27 -27
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +33 -31
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/libs/PanoTagPlugin/controller/TagUtil.js +17 -20
- package/libs/PanoTagPlugin/controller/index.d.ts +7 -7
- package/libs/PanoTagPlugin/controller/index.js +36 -34
- package/libs/PanoTagPlugin/index.js +11 -11
- package/libs/PanoTagPlugin/typings/controller.d.ts +8 -58
- package/libs/PanoTagPlugin/typings/index.d.ts +7 -5
- package/libs/PanoTagPlugin/typings/index.js +4 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.js +1 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +4 -4
- package/libs/PanoTagPlugin/utils/planeNormal.js +5 -5
- package/libs/PanoTagPlugin/utils/resizeObserver.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +11 -11
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +2 -2
- package/libs/base/BasePlugin.js +3 -3
- package/libs/index.js +7 -7
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -50
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -133
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -184
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -83
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -50
- package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -133
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -184
- package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -83
- package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -4
- /package/libs/PanoTagPlugin/typings/tag/{TagConfig.js → Tag.d.js} +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var i = /* @__PURE__ */ ((a) => (a.PointTag = "PointTag", a.PlaneTag = "PlaneTag", a))(i || {}), r = /* @__PURE__ */ ((a) => (a.Audio = "Audio", a.Text = "Text", a.ImageText = "ImageText", a.Image = "Image", a.Video = "Video", a.Link = "Link", a.Sticker = "Sticker", a.VRLink = "VRLink", a.PanoLink = "PanoLink", a.Marketing = "Marketing", a.MediaPlane = "MediaPlane", a.MediaModel = "MediaModel", a.Model = "Model", a.Custom = "Custom", a.Unknown = "Unknown", a))(r || {}), d = /* @__PURE__ */ ((a) => (a.Two = "2D", a.Three = "3D", a))(d || {});
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
r as ContentType,
|
|
4
|
+
d as DimensionType,
|
|
5
|
+
i as PointType
|
|
4
6
|
};
|
|
@@ -115,9 +115,9 @@ function cA(o) {
|
|
|
115
115
|
}
|
|
116
116
|
function pA(o) {
|
|
117
117
|
let A, t, e, i, n, s, u, r, g, l;
|
|
118
|
-
const
|
|
119
|
-
wA,
|
|
118
|
+
const w = [
|
|
120
119
|
CA,
|
|
120
|
+
wA,
|
|
121
121
|
vA,
|
|
122
122
|
QA,
|
|
123
123
|
BA,
|
|
@@ -150,7 +150,7 @@ function pA(o) {
|
|
|
150
150
|
)
|
|
151
151
|
);
|
|
152
152
|
}
|
|
153
|
-
return ~(i = D(o)) && (n = d[i] =
|
|
153
|
+
return ~(i = D(o)) && (n = d[i] = w[i](o)), {
|
|
154
154
|
c() {
|
|
155
155
|
var a;
|
|
156
156
|
A = y("div"), t = y("div"), e = y("div"), n && n.c(), B(e, "class", "content svelte-1r4fqvg"), c(
|
|
@@ -182,7 +182,7 @@ function pA(o) {
|
|
|
182
182
|
A,
|
|
183
183
|
"unClickable",
|
|
184
184
|
/*tag*/
|
|
185
|
-
o[1].
|
|
185
|
+
o[1].config.clickable === !1
|
|
186
186
|
), I(
|
|
187
187
|
A,
|
|
188
188
|
"width",
|
|
@@ -205,10 +205,10 @@ function pA(o) {
|
|
|
205
205
|
},
|
|
206
206
|
p(a, m) {
|
|
207
207
|
var T;
|
|
208
|
-
let
|
|
209
|
-
i = D(a), i ===
|
|
210
|
-
d[
|
|
211
|
-
}), K()), ~i ? (n = d[i], n ? n.p(a, m) : (n = d[i] =
|
|
208
|
+
let C = i;
|
|
209
|
+
i = D(a), i === C ? ~i && d[i].p(a, m) : (n && (N(), Q(d[C], 1, 1, () => {
|
|
210
|
+
d[C] = null;
|
|
211
|
+
}), K()), ~i ? (n = d[i], n ? n.p(a, m) : (n = d[i] = w[i](a), n.c()), v(n, 1), n.m(e, null)) : n = null), (!r || m & /*tag*/
|
|
212
212
|
2) && c(
|
|
213
213
|
e,
|
|
214
214
|
"unfolded",
|
|
@@ -244,7 +244,7 @@ function pA(o) {
|
|
|
244
244
|
A,
|
|
245
245
|
"unClickable",
|
|
246
246
|
/*tag*/
|
|
247
|
-
a[1].
|
|
247
|
+
a[1].config.clickable === !1
|
|
248
248
|
), m & /*tag*/
|
|
249
249
|
2 && I(
|
|
250
250
|
A,
|
|
@@ -476,7 +476,7 @@ function vA(o) {
|
|
|
476
476
|
}
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function wA(o) {
|
|
480
480
|
let A, t;
|
|
481
481
|
return A = new nA({
|
|
482
482
|
props: { tag: p(
|
|
@@ -509,7 +509,7 @@ function CA(o) {
|
|
|
509
509
|
}
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function CA(o) {
|
|
513
513
|
let A, t;
|
|
514
514
|
return A = new oA({
|
|
515
515
|
props: { tag: p(
|
|
@@ -579,19 +579,19 @@ function _A(o) {
|
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
581
|
function kA(o, A, t) {
|
|
582
|
-
let e, i, n, s, u, r, { withAnimation: g = !1 } = A, { tag: l } = A, { hooks:
|
|
583
|
-
L("hooks",
|
|
584
|
-
let m,
|
|
582
|
+
let e, i, n, s, u, r, { withAnimation: g = !1 } = A, { tag: l } = A, { hooks: w } = A, { state: d } = A, { mediaStore: D } = A, { temporaryState: a } = A;
|
|
583
|
+
L("hooks", w), L("mediaStore", D);
|
|
584
|
+
let m, C;
|
|
585
585
|
function T(f) {
|
|
586
|
-
f ?
|
|
586
|
+
f ? w.emit("exposure", { id: s, type: "start" }) : w.emit("exposure", { id: s, type: "end" });
|
|
587
587
|
}
|
|
588
588
|
function R(f, E, G) {
|
|
589
589
|
var h, M;
|
|
590
590
|
return !(!E.visible || !E.enabled || !G.visible || !((h = f.state) != null && h.visible) || ((M = f.temporaryState) == null ? void 0 : M.visible) === !1 || aA(f) && !f.mediaVisible);
|
|
591
591
|
}
|
|
592
|
-
const X = (f) =>
|
|
592
|
+
const X = (f) => w.emit("click", { event: f, target: "TagContent", tag: l }), j = (f) => w.emit("click", { event: f, target: "TagContent", tag: l });
|
|
593
593
|
return o.$$set = (f) => {
|
|
594
|
-
"withAnimation" in f && t(0, g = f.withAnimation), "tag" in f && t(1, l = f.tag), "hooks" in f && t(2,
|
|
594
|
+
"withAnimation" in f && t(0, g = f.withAnimation), "tag" in f && t(1, l = f.tag), "hooks" in f && t(2, w = f.hooks), "state" in f && t(5, d = f.state), "mediaStore" in f && t(6, D = f.mediaStore), "temporaryState" in f && t(7, a = f.temporaryState);
|
|
595
595
|
}, o.$$.update = () => {
|
|
596
596
|
var f, E, G, h, M, U, W, S, F, O, q;
|
|
597
597
|
o.$$.dirty & /*tag*/
|
|
@@ -601,19 +601,19 @@ function kA(o, A, t) {
|
|
|
601
601
|
2 && (s = l.id), o.$$.dirty & /*tag, state, temporaryState*/
|
|
602
602
|
162 && t(4, u = !R(l, d, a)), o.$$.dirty & /*isVisible*/
|
|
603
603
|
4096 && T(n), o.$$.dirty & /*tag, unfolded, lastUnfoldedState, visible, lastVisibleState*/
|
|
604
|
-
3842 && l.hooks && (e !== void 0 && e !==
|
|
605
|
-
2 && t(3, r = (() => !(typeof l.
|
|
604
|
+
3842 && l.hooks && (e !== void 0 && e !== C && (t(9, C = e), e ? (M = (h = l.hooks).emit) == null || M.call(h, "unfolded") : (W = l == null ? void 0 : (U = l.hooks).emit) == null || W.call(U, "folded")), i !== void 0 && i !== m && (t(8, m = i), i ? (F = (S = l.hooks).emit) == null || F.call(S, "show") : (q = (O = l.hooks).emit) == null || q.call(O, "hide"))), o.$$.dirty & /*tag*/
|
|
605
|
+
2 && t(3, r = (() => !(typeof l.config.unfoldedConfig == "object" && l.config.unfoldedConfig.keep === "folded"))());
|
|
606
606
|
}, [
|
|
607
607
|
g,
|
|
608
608
|
l,
|
|
609
|
-
|
|
609
|
+
w,
|
|
610
610
|
r,
|
|
611
611
|
u,
|
|
612
612
|
d,
|
|
613
613
|
D,
|
|
614
614
|
a,
|
|
615
615
|
m,
|
|
616
|
-
|
|
616
|
+
C,
|
|
617
617
|
i,
|
|
618
618
|
e,
|
|
619
619
|
n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as Q, init as U, safe_not_equal as W, append_styles as X, element as
|
|
1
|
+
import { SvelteComponent as Q, init as U, safe_not_equal as W, append_styles as X, element as A, space as Y, attr as u, null_to_empty as B, set_style as h, toggle_class as _, insert as C, append as E, transition_out as v, check_outros as F, transition_in as y, detach as N, getContext as Z, group_outros as G, noop as S, create_component as K, mount_component as M, destroy_component as O } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import x from "./Tag/index.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import { noTypecheck as H } from "../utils/noTypecheck.js";
|
|
@@ -97,10 +97,10 @@ function et(i) {
|
|
|
97
97
|
let e;
|
|
98
98
|
return {
|
|
99
99
|
c() {
|
|
100
|
-
e =
|
|
100
|
+
e = A("div"), u(e, "data-info", "tag content is disable");
|
|
101
101
|
},
|
|
102
102
|
m(t, o) {
|
|
103
|
-
|
|
103
|
+
C(t, e, o);
|
|
104
104
|
},
|
|
105
105
|
p: S,
|
|
106
106
|
i: S,
|
|
@@ -163,10 +163,10 @@ function it(i) {
|
|
|
163
163
|
o[4]), e.$set(m);
|
|
164
164
|
},
|
|
165
165
|
i(o) {
|
|
166
|
-
t || (
|
|
166
|
+
t || (y(e.$$.fragment, o), t = !0);
|
|
167
167
|
},
|
|
168
168
|
o(o) {
|
|
169
|
-
|
|
169
|
+
v(e.$$.fragment, o), t = !1;
|
|
170
170
|
},
|
|
171
171
|
d(o) {
|
|
172
172
|
O(e, o);
|
|
@@ -177,10 +177,10 @@ function ot(i) {
|
|
|
177
177
|
let e;
|
|
178
178
|
return {
|
|
179
179
|
c() {
|
|
180
|
-
e =
|
|
180
|
+
e = A("div"), u(e, "data-info", "tag point is disable");
|
|
181
181
|
},
|
|
182
182
|
m(t, o) {
|
|
183
|
-
|
|
183
|
+
C(t, e, o);
|
|
184
184
|
},
|
|
185
185
|
p: S,
|
|
186
186
|
i: S,
|
|
@@ -209,10 +209,10 @@ function rt(i) {
|
|
|
209
209
|
o[1]), e.$set(m);
|
|
210
210
|
},
|
|
211
211
|
i(o) {
|
|
212
|
-
t || (
|
|
212
|
+
t || (y(e.$$.fragment, o), t = !0);
|
|
213
213
|
},
|
|
214
214
|
o(o) {
|
|
215
|
-
|
|
215
|
+
v(e.$$.fragment, o), t = !1;
|
|
216
216
|
},
|
|
217
217
|
d(o) {
|
|
218
218
|
O(e, o);
|
|
@@ -221,39 +221,39 @@ function rt(i) {
|
|
|
221
221
|
}
|
|
222
222
|
function nt(i) {
|
|
223
223
|
let e, t, o, a, m, s, f, g, w, l;
|
|
224
|
-
const
|
|
224
|
+
const z = [it, et], c = [];
|
|
225
225
|
function p(n, r) {
|
|
226
226
|
return (
|
|
227
227
|
/*haveContent*/
|
|
228
228
|
n[12] ? 0 : 1
|
|
229
229
|
);
|
|
230
230
|
}
|
|
231
|
-
o = p(i), a =
|
|
232
|
-
const
|
|
233
|
-
function
|
|
231
|
+
o = p(i), a = c[o] = z[o](i);
|
|
232
|
+
const P = [rt, ot], d = [];
|
|
233
|
+
function T(n, r) {
|
|
234
234
|
return (
|
|
235
235
|
/*havePoint*/
|
|
236
236
|
n[13] ? 0 : 1
|
|
237
237
|
);
|
|
238
238
|
}
|
|
239
|
-
return s =
|
|
239
|
+
return s = T(i), f = d[s] = P[s](i), {
|
|
240
240
|
c() {
|
|
241
|
-
e =
|
|
241
|
+
e = A("div"), t = A("div"), a.c(), m = Y(), f.c(), u(t, "class", g = B(J(
|
|
242
242
|
"wrapper",
|
|
243
243
|
/*tag*/
|
|
244
244
|
i[1].className ? `${/*tag*/
|
|
245
245
|
i[1].className}__wrapper` : void 0
|
|
246
|
-
)) + " svelte-pzwdws"),
|
|
246
|
+
)) + " svelte-pzwdws"), u(
|
|
247
247
|
t,
|
|
248
248
|
"data-tag-unfolded",
|
|
249
249
|
/*unfolded*/
|
|
250
250
|
i[8]
|
|
251
|
-
),
|
|
251
|
+
), u(
|
|
252
252
|
t,
|
|
253
253
|
"data-tag-id",
|
|
254
254
|
/*id*/
|
|
255
255
|
i[11]
|
|
256
|
-
),
|
|
256
|
+
), u(t, "data-content-type", w = /*tag*/
|
|
257
257
|
i[1].contentType), h(
|
|
258
258
|
t,
|
|
259
259
|
"left",
|
|
@@ -269,7 +269,7 @@ function nt(i) {
|
|
|
269
269
|
"z-index",
|
|
270
270
|
/*zIndex*/
|
|
271
271
|
i[5]
|
|
272
|
-
),
|
|
272
|
+
), u(e, "class", "tag svelte-pzwdws"), u(
|
|
273
273
|
e,
|
|
274
274
|
"data-tag-id",
|
|
275
275
|
/*id*/
|
|
@@ -278,7 +278,7 @@ function nt(i) {
|
|
|
278
278
|
e,
|
|
279
279
|
"unClickable",
|
|
280
280
|
/*tag*/
|
|
281
|
-
i[1].
|
|
281
|
+
i[1].config.clickable === !1
|
|
282
282
|
), _(
|
|
283
283
|
e,
|
|
284
284
|
"disable",
|
|
@@ -297,37 +297,37 @@ function nt(i) {
|
|
|
297
297
|
);
|
|
298
298
|
},
|
|
299
299
|
m(n, r) {
|
|
300
|
-
|
|
300
|
+
C(n, e, r), E(e, t), c[o].m(t, null), E(t, m), d[s].m(t, null), l = !0;
|
|
301
301
|
},
|
|
302
302
|
p(n, [r]) {
|
|
303
303
|
let b = o;
|
|
304
|
-
o = p(n), o === b ?
|
|
305
|
-
|
|
306
|
-
}), F(), a =
|
|
304
|
+
o = p(n), o === b ? c[o].p(n, r) : (G(), v(c[b], 1, 1, () => {
|
|
305
|
+
c[b] = null;
|
|
306
|
+
}), F(), a = c[o], a ? a.p(n, r) : (a = c[o] = z[o](n), a.c()), y(a, 1), a.m(t, m));
|
|
307
307
|
let k = s;
|
|
308
|
-
s =
|
|
309
|
-
|
|
310
|
-
}), F(), f =
|
|
308
|
+
s = T(n), s === k ? d[s].p(n, r) : (G(), v(d[k], 1, 1, () => {
|
|
309
|
+
d[k] = null;
|
|
310
|
+
}), F(), f = d[s], f ? f.p(n, r) : (f = d[s] = P[s](n), f.c()), y(f, 1), f.m(t, null)), (!l || r & /*tag*/
|
|
311
311
|
2 && g !== (g = B(J(
|
|
312
312
|
"wrapper",
|
|
313
313
|
/*tag*/
|
|
314
314
|
n[1].className ? `${/*tag*/
|
|
315
315
|
n[1].className}__wrapper` : void 0
|
|
316
|
-
)) + " svelte-pzwdws")) &&
|
|
317
|
-
256) &&
|
|
316
|
+
)) + " svelte-pzwdws")) && u(t, "class", g), (!l || r & /*unfolded*/
|
|
317
|
+
256) && u(
|
|
318
318
|
t,
|
|
319
319
|
"data-tag-unfolded",
|
|
320
320
|
/*unfolded*/
|
|
321
321
|
n[8]
|
|
322
322
|
), (!l || r & /*id*/
|
|
323
|
-
2048) &&
|
|
323
|
+
2048) && u(
|
|
324
324
|
t,
|
|
325
325
|
"data-tag-id",
|
|
326
326
|
/*id*/
|
|
327
327
|
n[11]
|
|
328
328
|
), (!l || r & /*tag*/
|
|
329
329
|
2 && w !== (w = /*tag*/
|
|
330
|
-
n[1].contentType)) &&
|
|
330
|
+
n[1].contentType)) && u(t, "data-content-type", w), r & /*left*/
|
|
331
331
|
128 && h(
|
|
332
332
|
t,
|
|
333
333
|
"left",
|
|
@@ -346,7 +346,7 @@ function nt(i) {
|
|
|
346
346
|
/*zIndex*/
|
|
347
347
|
n[5]
|
|
348
348
|
), (!l || r & /*id*/
|
|
349
|
-
2048) &&
|
|
349
|
+
2048) && u(
|
|
350
350
|
e,
|
|
351
351
|
"data-tag-id",
|
|
352
352
|
/*id*/
|
|
@@ -356,7 +356,7 @@ function nt(i) {
|
|
|
356
356
|
e,
|
|
357
357
|
"unClickable",
|
|
358
358
|
/*tag*/
|
|
359
|
-
n[1].
|
|
359
|
+
n[1].config.clickable === !1
|
|
360
360
|
), (!l || r & /*disable*/
|
|
361
361
|
1024) && _(
|
|
362
362
|
e,
|
|
@@ -378,21 +378,21 @@ function nt(i) {
|
|
|
378
378
|
);
|
|
379
379
|
},
|
|
380
380
|
i(n) {
|
|
381
|
-
l || (
|
|
381
|
+
l || (y(a), y(f), l = !0);
|
|
382
382
|
},
|
|
383
383
|
o(n) {
|
|
384
|
-
|
|
384
|
+
v(a), v(f), l = !1;
|
|
385
385
|
},
|
|
386
386
|
d(n) {
|
|
387
|
-
n && N(e),
|
|
387
|
+
n && N(e), c[o].d(), d[s].d();
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
function at(i, e, t) {
|
|
392
|
-
let o, a, m, s, f, g, w, l,
|
|
392
|
+
let o, a, m, s, f, g, w, l, z, { withAnimation: c = !1 } = e, { tag: p } = e, { mediaStore: P } = e, { state: d } = e, { temporaryState: T } = e;
|
|
393
393
|
const n = Z("hooks");
|
|
394
394
|
return i.$$set = (r) => {
|
|
395
|
-
"withAnimation" in r && t(0,
|
|
395
|
+
"withAnimation" in r && t(0, c = r.withAnimation), "tag" in r && t(1, p = r.tag), "mediaStore" in r && t(2, P = r.mediaStore), "state" in r && t(3, d = r.state), "temporaryState" in r && t(4, T = r.temporaryState);
|
|
396
396
|
}, i.$$.update = () => {
|
|
397
397
|
var r, b, k, L, I, q, D, R;
|
|
398
398
|
i.$$.dirty & /*tag*/
|
|
@@ -402,19 +402,19 @@ function at(i, e, t) {
|
|
|
402
402
|
})()), i.$$.dirty & /*tag*/
|
|
403
403
|
2 && t(12, a = (() => p.stickType === "2DPoint")()), i.$$.dirty & /*tag*/
|
|
404
404
|
2 && t(11, m = p.id), i.$$.dirty & /*tag*/
|
|
405
|
-
2 && t(10, s = !((r = p.
|
|
405
|
+
2 && t(10, s = !((r = p.screenPosition) != null && r.leftPercent) || !((b = p.screenPosition) != null && b.topPercent) || p.enabled === !1 || !p.state), i.$$.dirty & /*tag*/
|
|
406
406
|
2 && t(9, f = !((k = p.state) != null && k.visible) || ((L = p.temporaryState) == null ? void 0 : L.visible) === !1), i.$$.dirty & /*tag*/
|
|
407
407
|
2 && t(8, g = (I = p.state) == null ? void 0 : I.unfolded), i.$$.dirty & /*tag*/
|
|
408
|
-
2 && t(7, w = ((q = p.
|
|
409
|
-
2 && t(6, l = ((D = p.
|
|
410
|
-
2 && t(5,
|
|
408
|
+
2 && t(7, w = ((q = p.screenPosition) == null ? void 0 : q.leftPercent) + "%"), i.$$.dirty & /*tag*/
|
|
409
|
+
2 && t(6, l = ((D = p.screenPosition) == null ? void 0 : D.topPercent) + "%"), i.$$.dirty & /*tag*/
|
|
410
|
+
2 && t(5, z = (R = p.state) != null && R.unfolded ? 1 : 0);
|
|
411
411
|
}, [
|
|
412
|
-
u,
|
|
413
|
-
p,
|
|
414
|
-
z,
|
|
415
412
|
c,
|
|
416
|
-
|
|
413
|
+
p,
|
|
414
|
+
P,
|
|
415
|
+
d,
|
|
417
416
|
T,
|
|
417
|
+
z,
|
|
418
418
|
l,
|
|
419
419
|
w,
|
|
420
420
|
g,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Five, Mode } from '@realsee/five';
|
|
2
2
|
import * as THREE from 'three';
|
|
3
|
-
import type {
|
|
3
|
+
import type { TagInstance } from '../typings';
|
|
4
4
|
import type { Raycaster } from 'three';
|
|
5
5
|
import { TagUtil } from './TagUtil';
|
|
6
6
|
export declare abstract class TagComputer extends TagUtil {
|
|
@@ -9,25 +9,25 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
9
9
|
/**
|
|
10
10
|
* @description: 获取是否可见
|
|
11
11
|
*/
|
|
12
|
-
getVisibleByPanoIndex(tag:
|
|
13
|
-
getVisibleByFiveMode(tag:
|
|
12
|
+
getVisibleByPanoIndex(tag: TagInstance, panoIndex?: number): boolean;
|
|
13
|
+
getVisibleByFiveMode(tag: TagInstance, mode?: Mode): boolean;
|
|
14
14
|
/**
|
|
15
15
|
* @description 获取标签当前状态
|
|
16
16
|
* @return (this.state.visible && tag.state.visible) ?? true
|
|
17
17
|
*/
|
|
18
|
-
getCurrentVisibleState(tag:
|
|
19
|
-
getVisible(tag:
|
|
18
|
+
getCurrentVisibleState(tag: TagInstance): boolean;
|
|
19
|
+
getVisible(tag: TagInstance): boolean;
|
|
20
20
|
/** 获取当前点位上模型中的多媒体是否应该展示 */
|
|
21
|
-
getModelMedialVisibleByPanoIndex(tag:
|
|
21
|
+
getModelMedialVisibleByPanoIndex(tag: TagInstance): boolean;
|
|
22
22
|
/**
|
|
23
23
|
* @description: 获取是否展开
|
|
24
24
|
*/
|
|
25
|
-
getUnfoldedByPanoIndex(tag:
|
|
25
|
+
getUnfoldedByPanoIndex(tag: TagInstance, panoIndex?: number): boolean;
|
|
26
26
|
/**
|
|
27
27
|
* @description: 获取是否展开
|
|
28
28
|
*/
|
|
29
|
-
getUnfoldedByCamera(tag:
|
|
30
|
-
protected sort<T extends
|
|
29
|
+
getUnfoldedByCamera(tag: TagInstance): boolean;
|
|
30
|
+
protected sort<T extends TagInstance>(tags: T[]): T[];
|
|
31
31
|
/**
|
|
32
32
|
* @description: 一个点的标签
|
|
33
33
|
*/
|
|
@@ -39,18 +39,18 @@ export declare abstract class TagComputer extends TagUtil {
|
|
|
39
39
|
/**
|
|
40
40
|
* @description: 一个点的标签
|
|
41
41
|
*/
|
|
42
|
-
protected getTagProject(tag:
|
|
42
|
+
protected getTagProject(tag: TagInstance): {
|
|
43
43
|
x: number;
|
|
44
44
|
y: number;
|
|
45
45
|
z: number;
|
|
46
46
|
};
|
|
47
47
|
/** 通过射线检测标签可用性 */
|
|
48
|
-
protected getTagEnableByIntersect(tag:
|
|
48
|
+
protected getTagEnableByIntersect(tag: TagInstance, raycaster: Raycaster): {
|
|
49
49
|
value: boolean;
|
|
50
50
|
reason: string;
|
|
51
51
|
};
|
|
52
52
|
/** 获取点位看向标签的射线 */
|
|
53
|
-
protected getRaycasterFromPanoIndex(tag:
|
|
53
|
+
protected getRaycasterFromPanoIndex(tag: TagInstance, panoIndex: number): THREE.Raycaster;
|
|
54
54
|
/** 检测是否匹配当前楼层 */
|
|
55
55
|
private getVisibleByFloorIndex;
|
|
56
56
|
}
|
|
@@ -2,26 +2,26 @@ var M = Object.defineProperty, U = Object.defineProperties;
|
|
|
2
2
|
var R = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
4
|
var B = Object.prototype.hasOwnProperty, C = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var g = (
|
|
5
|
+
var g = (d, l, e) => l in d ? M(d, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[l] = e, x = (d, l) => {
|
|
6
6
|
for (var e in l || (l = {}))
|
|
7
|
-
B.call(l, e) && g(
|
|
7
|
+
B.call(l, e) && g(d, e, l[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(l))
|
|
10
|
-
C.call(l, e) && g(
|
|
11
|
-
return
|
|
12
|
-
}, I = (
|
|
13
|
-
var
|
|
10
|
+
C.call(l, e) && g(d, e, l[e]);
|
|
11
|
+
return d;
|
|
12
|
+
}, I = (d, l) => U(d, R(l));
|
|
13
|
+
var V = (d, l, e) => (g(d, typeof l != "symbol" ? l + "" : l, e), e);
|
|
14
14
|
import * as D from "three";
|
|
15
15
|
import { is3DTag as j, isMediaModelTag as y } from "../utils/tag/tagCheck.js";
|
|
16
|
-
import { tagPosition as
|
|
16
|
+
import { tagPosition as T, getTagPosition as k } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as h } from "../utils/checkRange.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { notNil as
|
|
24
|
-
import { TagUtil as
|
|
23
|
+
import { notNil as $ } from "../../shared-utils/isNil.js";
|
|
24
|
+
import { TagUtil as S } from "./TagUtil.js";
|
|
25
25
|
import { getFloorIndex as E } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
26
|
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
27
|
import "../../shared-utils/three/centerPoint.js";
|
|
@@ -55,10 +55,10 @@ import "../../shared-utils/three/getPositionsByObjectFit.js";
|
|
|
55
55
|
import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
56
56
|
import "../../shared-utils/five/FiveDomEvents.js";
|
|
57
57
|
import "../../shared-utils/threex/domevents/index.js";
|
|
58
|
-
class Ue extends
|
|
58
|
+
class Ue extends S {
|
|
59
59
|
constructor(e) {
|
|
60
60
|
super(e);
|
|
61
|
-
|
|
61
|
+
V(this, "raycaster", new D.Raycaster());
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* @description: 获取是否可见
|
|
@@ -71,8 +71,8 @@ class Ue extends $ {
|
|
|
71
71
|
return s.visible;
|
|
72
72
|
{
|
|
73
73
|
const i = (() => {
|
|
74
|
-
var
|
|
75
|
-
const o = (
|
|
74
|
+
var c, u, v;
|
|
75
|
+
const o = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, f = this.getDistance(e);
|
|
76
76
|
if (typeof o == "function")
|
|
77
77
|
return { value: o(this.five, { tag: e, distance: f }), reason: "config function result" };
|
|
78
78
|
if (o.keep === "hidden")
|
|
@@ -172,14 +172,14 @@ class Ue extends $ {
|
|
|
172
172
|
if (!i)
|
|
173
173
|
return;
|
|
174
174
|
const o = (() => {
|
|
175
|
-
const
|
|
175
|
+
const c = this.getDistance(e);
|
|
176
176
|
if (typeof i == "function")
|
|
177
|
-
return i(this.five, { tag: e, distance:
|
|
177
|
+
return i(this.five, { tag: e, distance: c });
|
|
178
178
|
if (i.keep === "folded")
|
|
179
179
|
return !1;
|
|
180
180
|
if (i.keep === "unfolded")
|
|
181
181
|
return !0;
|
|
182
|
-
if (i.unfoldDistance && h(
|
|
182
|
+
if (i.unfoldDistance && h(c, i.unfoldDistance) === !1)
|
|
183
183
|
return !1;
|
|
184
184
|
})();
|
|
185
185
|
n.unfolded = o;
|
|
@@ -243,15 +243,15 @@ class Ue extends $ {
|
|
|
243
243
|
e.length !== 0 && e.forEach((t) => {
|
|
244
244
|
var n;
|
|
245
245
|
if (!((n = t.state) != null && n.visible)) {
|
|
246
|
-
t.
|
|
246
|
+
t.screenPosition = null;
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
const s = this.getTagProject(t);
|
|
250
250
|
if (!s) {
|
|
251
|
-
t.
|
|
251
|
+
t.screenPosition = null;
|
|
252
252
|
return;
|
|
253
253
|
}
|
|
254
|
-
t.
|
|
254
|
+
t.screenPosition = { leftPercent: (s.x + 1) / 2 * 100, topPercent: (-s.y + 1) / 2 * 100 };
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
setVisible() {
|
|
@@ -295,7 +295,7 @@ class Ue extends $ {
|
|
|
295
295
|
getTagProject(e) {
|
|
296
296
|
if (!this.getVisible(e))
|
|
297
297
|
return;
|
|
298
|
-
const s =
|
|
298
|
+
const s = T(e.position);
|
|
299
299
|
if (!s)
|
|
300
300
|
return;
|
|
301
301
|
const { x: n, y: i, z: o } = s.project(this.five.camera);
|
|
@@ -311,16 +311,16 @@ class Ue extends $ {
|
|
|
311
311
|
const a = this.tags.filter(y).map((b) => {
|
|
312
312
|
var m;
|
|
313
313
|
return (m = b.model) == null ? void 0 : m.object;
|
|
314
|
-
}).filter(
|
|
314
|
+
}).filter($);
|
|
315
315
|
return t.intersectObjects(a, !0)[0];
|
|
316
316
|
})(), f = (() => {
|
|
317
317
|
var a;
|
|
318
318
|
return typeof s == "object" && typeof s.intersectRaycaster == "object" && (a = s.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
|
|
319
|
-
})(),
|
|
320
|
-
return
|
|
319
|
+
})(), c = Math.min((v = i == null ? void 0 : i.distance) != null ? v : 1 / 0, (r = o == null ? void 0 : o.distance) != null ? r : 1 / 0);
|
|
320
|
+
return c + f < n ? {
|
|
321
321
|
value: !1,
|
|
322
322
|
reason: `intersectRaycaster check failed: distance is ${n}, intersection.distance is ${i == null ? void 0 : i.distance}, intersection.point is ${i == null ? void 0 : i.point.toArray()},
|
|
323
|
-
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${
|
|
323
|
+
customModelIntersection.point is ${o == null ? void 0 : o.point.toArray()}, minIntersectionDistance is ${c}`
|
|
324
324
|
} : { value: !0, reason: "" };
|
|
325
325
|
}
|
|
326
326
|
/** 获取点位看向标签的射线 */
|
|
@@ -329,7 +329,7 @@ class Ue extends $ {
|
|
|
329
329
|
const s = (o = this.five.work.observers[t]) == null ? void 0 : o.position;
|
|
330
330
|
if (s === void 0)
|
|
331
331
|
throw new Error(`getVisible(): observerPosition is ${s}`);
|
|
332
|
-
const n =
|
|
332
|
+
const n = T(e.position);
|
|
333
333
|
if (!n)
|
|
334
334
|
return;
|
|
335
335
|
const i = n.sub(s).normalize();
|
|
@@ -337,10 +337,10 @@ class Ue extends $ {
|
|
|
337
337
|
}
|
|
338
338
|
/** 检测是否匹配当前楼层 */
|
|
339
339
|
getVisibleByFloorIndex(e) {
|
|
340
|
-
var i, o, f,
|
|
340
|
+
var i, o, f, c, u, v, r;
|
|
341
341
|
let t = 0;
|
|
342
342
|
const s = (i = e.fiveState) == null ? void 0 : i.panoIndex;
|
|
343
|
-
s !== void 0 ? t = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (
|
|
343
|
+
s !== void 0 ? t = (o = this.five.work.observers[s]) == null ? void 0 : o.floorIndex : t = E(this.five.work.observers, (r = (v = (c = (f = e.model) == null ? void 0 : f.object) == null ? void 0 : c.position) != null ? v : (u = e.mediaPlane) == null ? void 0 : u.position) != null ? r : k(e));
|
|
344
344
|
const n = this.five.model.shownFloor;
|
|
345
345
|
return n === null || n === t;
|
|
346
346
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TagComputer } from './TagComputer';
|
|
2
|
-
import type { Tag,
|
|
2
|
+
import type { Tag, TagInstance, TagGLTFObject, TagObjectGroup, TagGLTFObjectGroup, ImagePlaneGroup, TagContentType } from '../typings';
|
|
3
3
|
import type { TemporaryState } from '../typings';
|
|
4
|
-
import { Object3D } from 'three';
|
|
4
|
+
import { type Object3D } from 'three';
|
|
5
5
|
import TagContainerSvelte from '../Components/TagContainer.svelte';
|
|
6
|
-
import { Five } from '@realsee/five';
|
|
6
|
+
import type { Five } from '@realsee/five';
|
|
7
7
|
export declare abstract class TagRender extends TagComputer {
|
|
8
8
|
protected group: TagObjectGroup;
|
|
9
9
|
protected imagePlaneGroup: ImagePlaneGroup;
|
|
@@ -41,7 +41,7 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
41
41
|
* @param tag 标签
|
|
42
42
|
* @param model 模型
|
|
43
43
|
*/
|
|
44
|
-
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag:
|
|
44
|
+
protected updateTagCss3DObjectMatrix<S extends 'Model' | 'Plane' = 'Model'>(tag: TagInstance<TagContentType, S>, model: Object3D): void;
|
|
45
45
|
/** 添加模型标签 */
|
|
46
46
|
protected addMediaModelTag(tags: Tag[]): Promise<void>;
|
|
47
47
|
/**
|
|
@@ -55,5 +55,5 @@ export declare abstract class TagRender extends TagComputer {
|
|
|
55
55
|
*/
|
|
56
56
|
protected clearUnusedPanelTag(): void;
|
|
57
57
|
/** 加载外部模型 */
|
|
58
|
-
protected loadModel: (tag:
|
|
58
|
+
protected loadModel: (tag: TagInstance<'Model', 'Model'> | TagInstance<'MediaModel', 'Model'>) => Promise<TagGLTFObject>;
|
|
59
59
|
}
|