@realsee/dnalogel 2.19.1 → 2.20.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/Archive/deprecated.d.ts +4 -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 +9 -13
- package/dist/PanoTagPlugin/typings/index.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +6 -8
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +17 -18
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +11 -7
- 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 +661 -658
- package/dist/index.umd.js +32 -32
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +39 -37
- package/docs/classes/CruisePluginController.html +34 -32
- package/docs/classes/GuideLineItem.GuideLineItem.html +28 -26
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +39 -37
- package/docs/classes/Magnifier.html +28 -26
- package/docs/classes/ModelRoomLabelController.html +19 -17
- package/docs/classes/Object3DHelperController.html +33 -31
- package/docs/classes/PaintBrush.html +23 -21
- package/docs/classes/PanoMeasurePluginLine.html +31 -29
- package/docs/classes/PanoMeasurePluginModel.html +30 -28
- package/docs/classes/PanoMeasurePluginPoint.html +22 -20
- package/docs/classes/PanoMeasurePluginPolyline.html +34 -32
- package/docs/classes/PanoTagPluginController.html +80 -78
- package/docs/classes/Util.BetterTween.html +17 -15
- package/docs/classes/Util.FivePointSelector.html +20 -18
- package/docs/classes/Util.Interval.html +20 -18
- package/docs/classes/Util.Magnifier.html +25 -23
- package/docs/classes/Util.PointDomHelper.html +19 -17
- package/docs/classes/Util.PointHelper.html +19 -17
- package/docs/classes/Util.Rectangle.html +21 -19
- package/docs/enums/CameraMovementEffect.html +15 -13
- package/docs/enums/ContentType.html +63 -57
- package/docs/enums/DIRECTION.html +17 -15
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +17 -15
- package/docs/enums/DimensionType.html +15 -13
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +16 -14
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +17 -15
- package/docs/enums/PaintBrushTypeEnum.html +16 -14
- package/docs/enums/PointType.html +385 -0
- package/docs/enums/Rotation.html +16 -14
- package/docs/functions/CSS3DRenderPlugin.html +12 -10
- package/docs/functions/CameraMovementPlugin.html +12 -10
- package/docs/functions/CruisePlugin.html +12 -10
- package/docs/functions/GuideLinePlugin.html +13 -11
- package/docs/functions/ItemLabelPlugin.html +12 -10
- package/docs/functions/MapviewFloorplanPlugin.html +12 -10
- package/docs/functions/ModelChassisCompassPlugin.html +12 -10
- package/docs/functions/ModelEntryDoorGuidePlugin.html +12 -10
- package/docs/functions/ModelFloorplanPlugin.html +12 -10
- package/docs/functions/ModelItemLabelPlugin.html +12 -10
- package/docs/functions/ModelRoomLabelPlugin.html +12 -10
- package/docs/functions/ModelTVVideoPlugin.html +12 -10
- package/docs/functions/ModelViewPlugin.html +12 -10
- package/docs/functions/Object3DHelperPlugin.html +12 -10
- package/docs/functions/PanoCompassPlugin.html +12 -10
- package/docs/functions/PanoCursorRaycasterPlugin.html +12 -10
- package/docs/functions/PanoDoorLabelPlugin.html +12 -10
- package/docs/functions/PanoFloorplanRadarPlugin.html +12 -10
- package/docs/functions/PanoMeasurePlugin.html +12 -10
- package/docs/functions/PanoRulerPlugin.html +12 -10
- package/docs/functions/PanoRulerProPlugin.html +12 -10
- package/docs/functions/PanoSpatialTagPlugin.html +12 -10
- package/docs/functions/PanoTagPlugin.html +12 -10
- package/docs/functions/PanoVideoPlugin.html +12 -10
- package/docs/functions/TopviewFloorplanPlugin.html +12 -10
- package/docs/functions/Util.getCoordsFromClient.html +13 -11
- package/docs/functions/Util.getCoordsFromElement.html +13 -11
- package/docs/functions/Util.getFrameTime.html +13 -11
- package/docs/functions/Util.getIntersectFromRelativePosition.html +13 -11
- package/docs/functions/Util.getRaycasterFromFivePointer.html +13 -11
- package/docs/functions/Util.isAbsoluteURL.html +13 -11
- package/docs/functions/Util.isModelLike.html +13 -11
- package/docs/functions/Util.isNil.html +13 -11
- package/docs/functions/Util.isPanoramaLike.html +13 -11
- package/docs/functions/Util.nextFrame.html +13 -11
- package/docs/functions/Util.notNil.html +13 -11
- package/docs/functions/Util.requestAnimationFrameInterval.html +13 -11
- package/docs/functions/Util.tweenProgress.html +13 -11
- package/docs/functions/Util.uuid.html +13 -11
- package/docs/functions/pluginFlag.html +13 -11
- package/docs/index.html +13 -11
- package/docs/interfaces/AddTagConfig.html +14 -12
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +19 -17
- package/docs/interfaces/CSS3DRenderPluginState.html +16 -14
- package/docs/interfaces/CameraMovementPluginExportType.html +15 -13
- package/docs/interfaces/CruisePluginTypes.Config.html +16 -14
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +20 -18
- package/docs/interfaces/CruisePluginTypes.EventMap.html +28 -26
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +20 -18
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +22 -20
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +22 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +17 -15
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +15 -13
- package/docs/interfaces/CruisePluginTypes.PluginState.html +19 -17
- package/docs/interfaces/EventMap.html +25 -23
- package/docs/interfaces/FloorplanBounding.html +16 -14
- package/docs/interfaces/FloorplanData.html +18 -16
- package/docs/interfaces/FloorplanEntrance.html +19 -17
- package/docs/interfaces/FloorplanExtraObject.html +18 -16
- package/docs/interfaces/FloorplanExtraObject3D.html +16 -14
- package/docs/interfaces/FloorplanFloorData.html +17 -15
- package/docs/interfaces/FloorplanImagePosition.html +15 -13
- package/docs/interfaces/FloorplanObserver.html +17 -15
- package/docs/interfaces/FloorplanOutlineItem.html +17 -15
- package/docs/interfaces/FloorplanPosition.html +15 -13
- package/docs/interfaces/FloorplanRoomItem.html +21 -19
- package/docs/interfaces/FloorplanRoomLabelItem.html +15 -13
- package/docs/interfaces/FloorplanServerBounding.html +16 -14
- package/docs/interfaces/FloorplanServerComputedData.html +18 -16
- package/docs/interfaces/FloorplanServerData.html +15 -13
- package/docs/interfaces/FloorplanServerDoorItem.html +18 -16
- package/docs/interfaces/FloorplanServerDoorPosition.html +16 -14
- package/docs/interfaces/FloorplanServerEntrance.html +19 -17
- package/docs/interfaces/FloorplanServerFloorData.html +17 -15
- package/docs/interfaces/FloorplanServerImagePosition.html +15 -13
- package/docs/interfaces/FloorplanServerObserver.html +17 -15
- package/docs/interfaces/FloorplanServerOutlineItem.html +17 -15
- package/docs/interfaces/FloorplanServerPosition.html +15 -13
- package/docs/interfaces/FloorplanServerRoomItem.html +22 -20
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +15 -13
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +16 -14
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +18 -16
- package/docs/interfaces/GuideLinePluginType.EventMap.html +21 -19
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +14 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +21 -19
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +16 -14
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +26 -24
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +15 -13
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +26 -24
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +13 -11
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +15 -13
- package/docs/interfaces/GuideLinePluginType.PluginState.html +16 -14
- package/docs/interfaces/GuideLinePluginType.Route.html +19 -17
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +17 -15
- package/docs/interfaces/HelperOffset.html +16 -14
- package/docs/interfaces/ImagePlaneGroup.html +14 -12
- package/docs/interfaces/ItemLabelPluginData.html +14 -12
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +19 -17
- package/docs/interfaces/ItemLabelPluginParametersType.html +17 -15
- package/docs/interfaces/MinMax.html +15 -13
- package/docs/interfaces/ModelChassisCompassPluginData.html +15 -13
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +16 -14
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +15 -13
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +16 -14
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +16 -14
- package/docs/interfaces/ModelItemLabelPluginData.html +14 -12
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +19 -17
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +15 -13
- package/docs/interfaces/ModelRoomLabelPluginData.html +14 -12
- package/docs/interfaces/ModelTVVideoPluginData.html +17 -15
- package/docs/interfaces/ModelTVVideoPluginExportType.html +16 -14
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +14 -12
- package/docs/interfaces/ModelViewPluginExportType.html +19 -17
- package/docs/interfaces/Object3DHelperState.html +16 -14
- package/docs/interfaces/ObjectHelperControllers.html +17 -15
- package/docs/interfaces/PaintBrushAction.html +20 -18
- package/docs/interfaces/PaintBrushConfigs.html +20 -18
- package/docs/interfaces/PaintBrushState.html +18 -16
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +18 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +13 -11
- package/docs/interfaces/PanoMeasureParameterType.html +22 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +16 -14
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +15 -13
- package/docs/interfaces/PanoMeasurePluginPointJson.html +15 -13
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +16 -14
- package/docs/interfaces/PanoRulerPluginExportType.html +18 -16
- package/docs/interfaces/PanoRulerPluginOptions.html +15 -13
- package/docs/interfaces/PanoRulerPluginParameterType.html +16 -14
- package/docs/interfaces/PanoRulerProPluginExportType.html +17 -15
- package/docs/interfaces/PanoRulerProPluginOptions.html +15 -13
- package/docs/interfaces/PanoRulerProPluginParameterType.html +15 -13
- package/docs/interfaces/PanoRulerProPluginState.html +16 -14
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginData.html +19 -17
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +18 -16
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +21 -19
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +18 -16
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +21 -19
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +19 -17
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +18 -16
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +14 -12
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +16 -14
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +14 -12
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +17 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +14 -12
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +16 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +18 -16
- package/docs/interfaces/Point.html +16 -14
- package/docs/interfaces/Room.html +17 -15
- package/docs/interfaces/RoomInfo.html +15 -13
- package/docs/interfaces/RoomLabel.html +22 -20
- package/docs/interfaces/RoomRules.html +13 -11
- package/docs/interfaces/Rooms.html +13 -11
- package/docs/interfaces/Scissor.html +17 -15
- package/docs/interfaces/State.html +16 -14
- package/docs/interfaces/TagCacheInterface.html +20 -18
- package/docs/interfaces/TagConfig.html +26 -26
- package/docs/interfaces/TagGLTFObjectGroup.html +14 -12
- package/docs/interfaces/TagIconUrl.html +20 -18
- package/docs/interfaces/TagObjectGroup.html +14 -12
- package/docs/interfaces/TagStyle.html +14 -12
- package/docs/interfaces/Tags.html +120 -118
- package/docs/interfaces/TemporaryState.html +14 -12
- package/docs/interfaces/Util.MagnifierParameter.html +19 -17
- package/docs/interfaces/Util.MouseGroupParameter.html +16 -14
- package/docs/modules/CruisePluginTypes.html +13 -11
- package/docs/modules/GuideLineItem.html +13 -11
- package/docs/modules/GuideLineModeItem.html +13 -11
- package/docs/modules/GuideLinePluginType.html +13 -11
- package/docs/modules/PanoVideoPluginType.html +13 -11
- package/docs/modules/Util.html +13 -11
- package/docs/modules.html +22 -18
- package/docs/types/ArrayPosition.html +13 -11
- package/docs/types/AudioAppearance.html +14 -12
- package/docs/types/AudioTagTypeConfigKey.html +13 -11
- package/docs/types/CSS3DRenderExportType.html +13 -11
- package/docs/types/CSS3DRenderPluginExportType.html +13 -11
- package/docs/types/CSS3DRenderPluginParameterType.html +13 -11
- package/docs/types/ClassFunctionParameters.html +13 -11
- package/docs/types/Color.html +13 -11
- package/docs/types/ContentTypeConfigKey.html +13 -11
- package/docs/types/ContentTypeConfigKeySplit.html +13 -11
- package/docs/types/ContentTypeMap.html +13 -11
- package/docs/types/Create3DDomContainerReturnType.html +13 -11
- package/docs/types/Create3DElementReturnType.html +13 -11
- package/docs/types/CruisePluginExportType.html +13 -11
- package/docs/types/CruisePluginTypes.CruiseData.html +13 -11
- package/docs/types/CruisePluginTypes.MoveEffect.html +13 -11
- package/docs/types/{Point2DElement.html → DeprecatedMediaPlaneProperty.html} +28 -19
- package/docs/types/{Point3DElement.html → DeprecatedTagProperty.html} +31 -19
- package/docs/types/Direction-1.html +13 -11
- package/docs/types/Direction4.html +13 -11
- package/docs/types/ElementRenderer.html +13 -11
- package/docs/types/FloorplanRuleLabels.html +13 -11
- package/docs/types/FloorplanServerRuleLabels.html +13 -11
- package/docs/types/GuideLinePluginExportType.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineItem.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +13 -11
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +13 -11
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +13 -11
- package/docs/types/GuideLinePluginType.PathItem.html +13 -11
- package/docs/types/GuideLinePluginType.PluginData.html +13 -11
- package/docs/types/HelperEventMap.html +13 -11
- package/docs/types/LoadTagConfig.html +13 -11
- package/docs/types/MapviewFloorplanPluginParameterType.html +13 -11
- package/docs/types/MapviewFloorplanPluginReturnType.html +13 -11
- package/docs/types/MediaData.html +13 -11
- package/docs/types/MediaStore.html +13 -11
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +13 -11
- package/docs/types/ModelFloorplanPluginParameterType.html +13 -11
- package/docs/types/ModelFloorplanPluginReturnType.html +13 -11
- package/docs/types/ModelRoomLabelPluginParameters.html +13 -11
- package/docs/types/ModelRoomLabelPluginReturnType.html +13 -11
- package/docs/types/MoveArgs.html +13 -11
- package/docs/types/MoveOpts.html +13 -11
- package/docs/types/Object3DHelperEventMap.html +13 -11
- package/docs/types/ObjectFit.html +13 -11
- package/docs/types/PaintBrushEventMap.html +13 -11
- package/docs/types/PanoCompassPluginData.html +13 -11
- package/docs/types/PanoCompassPluginExportType.html +13 -11
- package/docs/types/PanoCompassPluginParameterType.html +13 -11
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +13 -11
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +13 -11
- package/docs/types/PanoIndex.html +13 -11
- package/docs/types/PanoMeasurePluginEvent.html +13 -11
- package/docs/types/PanoMeasureReturnType.html +13 -11
- package/docs/types/PanoSpatialTagPluginId.html +13 -11
- package/docs/types/PanoTagPluginExportInterface.html +13 -11
- package/docs/types/PanoTagPluginParamsInterface.html +13 -11
- package/docs/types/PanoVideoPluginParameterType.html +13 -11
- package/docs/types/PanoVideoPluginReturnType.html +13 -11
- package/docs/types/{PlaneTagElement.html → PartialObjectDeep.html} +17 -15
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +14 -12
- package/docs/types/PlaneTag.html +14 -12
- package/docs/types/Point2DTag.html +14 -12
- package/docs/types/Point3DTag.html +14 -12
- package/docs/types/PointTag.html +14 -12
- package/docs/types/{PointTagElement.html → PointTagInstance.html} +16 -14
- package/docs/types/Position.html +13 -11
- package/docs/types/RotateArgs.html +13 -11
- package/docs/types/RotateOpts.html +13 -11
- package/docs/types/RuleLabelsKey.html +13 -11
- package/docs/types/RuleLabelsValue.html +13 -11
- package/docs/types/StickType.html +13 -11
- package/docs/types/Tag.html +14 -12
- package/docs/types/Tag2D.html +13 -11
- package/docs/types/Tag3D.html +13 -11
- package/docs/types/TagContentType.html +13 -11
- package/docs/types/TagDimensionType.html +13 -11
- package/docs/types/TagElement.html +17 -12
- package/docs/types/TagEvents.html +13 -11
- package/docs/types/TagGLTFObject.html +13 -11
- package/docs/types/TagHooks.html +13 -11
- package/docs/types/TagIconSize.html +13 -11
- package/docs/types/TagId.html +13 -11
- package/docs/types/TagInstance.html +361 -0
- package/docs/types/{ModelElement.html → TagPointType.html} +19 -19
- package/docs/types/TopviewFloorplanPluginParameterType.html +13 -11
- package/docs/types/TopviewFloorplanPluginReturnType.html +13 -11
- package/docs/types/WorkCode.html +13 -11
- package/docs/variables/FLOOR_TYPE_MAP.html +13 -11
- package/docs/variables/PLUGIN.html +13 -11
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +13 -11
- package/docs/variables/ROOM_TYPE_MAP.html +13 -11
- package/docs/variables/itemLabelPluginServerParams.html +13 -11
- package/docs/variables/modelItemLabelPluginServerParams.html +13 -11
- package/docs/variables/modelRoomLabelPluginServerParams.html +13 -11
- package/libs/CruisePlugin/Controller.js +74 -74
- package/libs/GuideLinePlugin/Controller.js +7 -7
- package/libs/PanoTagPlugin/Archive/deprecated.d.ts +4 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +30 -30
- 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 +7 -5
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +20 -20
- package/libs/PanoTagPlugin/controller/TagUtil.js +16 -19
- package/libs/PanoTagPlugin/controller/index.d.ts +7 -7
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +6 -4
- package/libs/PanoTagPlugin/typings/controller.d.ts +9 -13
- package/libs/PanoTagPlugin/typings/index.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +6 -8
- package/libs/PanoTagPlugin/typings/tag/Tag.js +1 -4
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +17 -18
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +11 -7
- 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 +19 -17
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -2,30 +2,30 @@ var T = Object.defineProperty, K = Object.defineProperties;
|
|
|
2
2
|
var O = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var F = Object.getOwnPropertySymbols;
|
|
4
4
|
var U = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var L = (c,
|
|
6
|
-
for (var e in
|
|
7
|
-
U.call(
|
|
5
|
+
var L = (c, u, e) => u in c ? T(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e, g = (c, u) => {
|
|
6
|
+
for (var e in u || (u = {}))
|
|
7
|
+
U.call(u, e) && L(c, e, u[e]);
|
|
8
8
|
if (F)
|
|
9
|
-
for (var e of F(
|
|
10
|
-
A.call(
|
|
9
|
+
for (var e of F(u))
|
|
10
|
+
A.call(u, e) && L(c, e, u[e]);
|
|
11
11
|
return c;
|
|
12
|
-
}, C = (c,
|
|
13
|
-
var I = (c,
|
|
14
|
-
var v = (c,
|
|
12
|
+
}, C = (c, u) => K(c, O(u));
|
|
13
|
+
var I = (c, u, e) => (L(c, typeof u != "symbol" ? u + "" : u, e), e);
|
|
14
|
+
var v = (c, u, e) => new Promise((t, i) => {
|
|
15
15
|
var r = (m) => {
|
|
16
16
|
try {
|
|
17
17
|
s(e.next(m));
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
18
|
+
} catch (a) {
|
|
19
|
+
i(a);
|
|
20
20
|
}
|
|
21
21
|
}, n = (m) => {
|
|
22
22
|
try {
|
|
23
23
|
s(e.throw(m));
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
24
|
+
} catch (a) {
|
|
25
|
+
i(a);
|
|
26
26
|
}
|
|
27
27
|
}, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(r, n);
|
|
28
|
-
s((e = e.apply(c,
|
|
28
|
+
s((e = e.apply(c, u)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Controller as V } from "../base/BasePluginWithData.js";
|
|
31
31
|
import { GuideLinePlugin as $ } from "../GuideLinePlugin/index.js";
|
|
@@ -236,17 +236,17 @@ class z extends V {
|
|
|
236
236
|
*/
|
|
237
237
|
load(e, t, i) {
|
|
238
238
|
return v(this, null, function* () {
|
|
239
|
-
var
|
|
239
|
+
var o, d, f, l, h, P;
|
|
240
240
|
if (this.state.disposed)
|
|
241
241
|
return D();
|
|
242
|
-
this.privateState.fiveOriginGetProgress || (d = (
|
|
242
|
+
this.privateState.fiveOriginGetProgress || (d = (o = this.five.controller) == null ? void 0 : o.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (l = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : l.getProgress), this.clear();
|
|
243
243
|
const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
244
244
|
this.data = n, this.hooks.emit("dataChange", n, r);
|
|
245
245
|
let s = [], m;
|
|
246
|
-
const
|
|
247
|
-
|
|
246
|
+
const a = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
|
|
247
|
+
a.filter((p, y) => {
|
|
248
248
|
var S;
|
|
249
|
-
return p.data.panoIndex !== ((S =
|
|
249
|
+
return p.data.panoIndex !== ((S = a[y - 1]) == null ? void 0 : S.data.panoIndex);
|
|
250
250
|
}).map((p) => p.data.panoIndex).forEach((p) => {
|
|
251
251
|
var S, k;
|
|
252
252
|
const y = (S = this.five.work.observers[p]) == null ? void 0 : S.floorIndex;
|
|
@@ -259,7 +259,7 @@ class z extends V {
|
|
|
259
259
|
const b = s.length;
|
|
260
260
|
s[b] = [p];
|
|
261
261
|
}
|
|
262
|
-
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.
|
|
262
|
+
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (P = this.GuideLine) == null || P.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed), t && this.setState(t, { userAction: i }), console.debug(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
@@ -349,34 +349,34 @@ class z extends V {
|
|
|
349
349
|
return {
|
|
350
350
|
keyframesId: w(),
|
|
351
351
|
keyframes: i.keyframes.map((r, n) => {
|
|
352
|
-
var
|
|
352
|
+
var a;
|
|
353
353
|
const s = i.keyframes[n + 1], m = (() => !s || s.start === void 0 || r.end === void 0 ? 0 : s.start - r.end)();
|
|
354
|
-
return C(g({ id: (
|
|
354
|
+
return C(g({ id: (a = r.uuid) != null ? a : w(), moveIndex: n, stay: m, index: n }, r), { guildPluginOptions: i.guildPluginOptions });
|
|
355
355
|
})
|
|
356
356
|
};
|
|
357
357
|
if (i.panoIndexList) {
|
|
358
358
|
let r = [];
|
|
359
359
|
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = i;
|
|
360
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((
|
|
360
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((a, o) => {
|
|
361
361
|
const d = (() => {
|
|
362
362
|
var p, y, S, k;
|
|
363
|
-
const f = i.panoIndexList.slice(
|
|
363
|
+
const f = i.panoIndexList.slice(o).find((b) => b !== a);
|
|
364
364
|
if (f === void 0)
|
|
365
365
|
return;
|
|
366
|
-
const
|
|
367
|
-
if (!h || !
|
|
366
|
+
const l = (p = t[a]) == null ? void 0 : p.position, h = (y = t[f]) == null ? void 0 : y.position;
|
|
367
|
+
if (!h || !l || ((S = t[a]) == null ? void 0 : S.floorIndex) !== ((k = t[f]) == null ? void 0 : k.floorIndex))
|
|
368
368
|
return;
|
|
369
|
-
const P = new j.Vector3().subVectors(h,
|
|
369
|
+
const P = new j.Vector3().subVectors(h, l);
|
|
370
370
|
return N(P.normalize());
|
|
371
371
|
})();
|
|
372
372
|
i.moveType === void 0 || i.moveType === "justMove" ? r.push({
|
|
373
|
-
moveIndex:
|
|
373
|
+
moveIndex: o,
|
|
374
374
|
stay: i.stay,
|
|
375
|
-
data: g({ effect: "Move", panoIndex:
|
|
376
|
-
}) : i.moveType === "moveAndRotate" && (r.push({ moveIndex:
|
|
375
|
+
data: g({ effect: "Move", panoIndex: a, moveEffect: n }, d != null ? d : {})
|
|
376
|
+
}) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: o, stay: i.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), d && r.push({ moveIndex: o, stay: i.stay, data: g({ effect: "Rotate", panoIndex: a }, d) }));
|
|
377
377
|
}), {
|
|
378
378
|
keyframesId: w(),
|
|
379
|
-
keyframes: r.map((
|
|
379
|
+
keyframes: r.map((a, o) => g({ id: w(), index: o }, a)),
|
|
380
380
|
guildPluginOptions: i.guildPluginOptions,
|
|
381
381
|
useGuildLine: i.useGuildLine
|
|
382
382
|
};
|
|
@@ -408,32 +408,32 @@ class z extends V {
|
|
|
408
408
|
// eslint-disable-next-line complexity
|
|
409
409
|
handlePlay(e) {
|
|
410
410
|
return v(this, null, function* () {
|
|
411
|
-
var
|
|
411
|
+
var l;
|
|
412
412
|
const { data: t, state: i, privateState: r, hooks: n } = this;
|
|
413
413
|
if (r.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
414
414
|
return;
|
|
415
415
|
const s = w();
|
|
416
416
|
r.playId = s, r.playing = !0, r.broke = !1;
|
|
417
|
-
const m = t.keyframes,
|
|
418
|
-
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (
|
|
419
|
-
let
|
|
417
|
+
const m = t.keyframes, a = this.getPauseData();
|
|
418
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
419
|
+
let o = !1;
|
|
420
420
|
const f = yield (() => v(this, null, function* () {
|
|
421
421
|
var h, P;
|
|
422
422
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
423
423
|
return e.playFromIndex;
|
|
424
424
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
425
425
|
return (h = this.data) == null ? void 0 : h.keyframes.findIndex((p) => p.id === e.playFromId);
|
|
426
|
-
if (
|
|
427
|
-
const p = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id ===
|
|
428
|
-
if (
|
|
426
|
+
if (a != null && a.keyframeId) {
|
|
427
|
+
const p = (P = this.data) == null ? void 0 : P.keyframes.find((y) => y.id === a.keyframeId);
|
|
428
|
+
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
429
429
|
moveEffect: r.moveToFirstPanoEffect,
|
|
430
430
|
duration: r.moveToFirstPanoDuration
|
|
431
431
|
})), p) {
|
|
432
432
|
if (p.data.effect === "Move")
|
|
433
433
|
return p.index;
|
|
434
434
|
if (p.data.effect === "Rotate") {
|
|
435
|
-
const y =
|
|
436
|
-
return yield this.playKeyframe(p, { duration: y }),
|
|
435
|
+
const y = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
|
|
436
|
+
return yield this.playKeyframe(p, { duration: y }), o = !0, p.index + 1;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
}
|
|
@@ -445,9 +445,9 @@ class z extends V {
|
|
|
445
445
|
if (!(f !== void 0 && h.index < f))
|
|
446
446
|
try {
|
|
447
447
|
n.emit("playIndexChange", h.index, h), yield this.playKeyframe(h, {
|
|
448
|
-
moveEffect:
|
|
449
|
-
duration:
|
|
450
|
-
}), h.stay && (yield J(h.stay)),
|
|
448
|
+
moveEffect: o === !1 ? r.moveToFirstPanoEffect : void 0,
|
|
449
|
+
duration: o === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
|
|
450
|
+
}), h.stay && (yield J(h.stay)), o === !1 && (o = !0);
|
|
451
451
|
} catch (P) {
|
|
452
452
|
return Promise.resolve("broke");
|
|
453
453
|
}
|
|
@@ -493,28 +493,28 @@ class z extends V {
|
|
|
493
493
|
const r = e.data;
|
|
494
494
|
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!r)
|
|
495
495
|
return new Promise((s, m) => {
|
|
496
|
-
let
|
|
496
|
+
let a = !1;
|
|
497
497
|
this.addInterruptListener(() => {
|
|
498
|
-
if (!
|
|
499
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }),
|
|
498
|
+
if (!a)
|
|
499
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, m(new Error("play is interupted"));
|
|
500
500
|
});
|
|
501
501
|
try {
|
|
502
|
-
if (
|
|
502
|
+
if (a)
|
|
503
503
|
return;
|
|
504
|
-
const
|
|
505
|
-
s(),
|
|
504
|
+
const o = () => {
|
|
505
|
+
s(), a = !0;
|
|
506
506
|
};
|
|
507
507
|
switch (r.effect) {
|
|
508
508
|
case "Move":
|
|
509
|
-
this.move(r, t).then(
|
|
509
|
+
this.move(r, t).then(o);
|
|
510
510
|
break;
|
|
511
511
|
case "Rotate":
|
|
512
|
-
this.rotate(r, t).then(
|
|
512
|
+
this.rotate(r, t).then(o);
|
|
513
513
|
break;
|
|
514
514
|
default:
|
|
515
|
-
this.rotate(r, t).then(
|
|
515
|
+
this.rotate(r, t).then(o);
|
|
516
516
|
}
|
|
517
|
-
} catch (
|
|
517
|
+
} catch (o) {
|
|
518
518
|
}
|
|
519
519
|
});
|
|
520
520
|
});
|
|
@@ -570,13 +570,13 @@ class z extends V {
|
|
|
570
570
|
updateCamera(i) {
|
|
571
571
|
return v(this, arguments, function* (e, t = {}) {
|
|
572
572
|
const { five: r, privateState: n, state: s } = this, m = (() => {
|
|
573
|
-
var
|
|
574
|
-
const d = (
|
|
573
|
+
var l, h;
|
|
574
|
+
const d = (l = s.config) == null ? void 0 : l.speedConfig, f = (h = e.rotateSpeed) != null ? h : d == null ? void 0 : d.rotateSpeed;
|
|
575
575
|
if ((d == null ? void 0 : d.rotateSpeedUnit) === void 0)
|
|
576
576
|
return f;
|
|
577
577
|
if (f !== void 0)
|
|
578
578
|
return d.rotateSpeedUnit === "rad/ms" ? f : f / 1e3;
|
|
579
|
-
})(),
|
|
579
|
+
})(), a = (() => {
|
|
580
580
|
if (t.duration)
|
|
581
581
|
return t.duration;
|
|
582
582
|
if (m) {
|
|
@@ -585,10 +585,10 @@ class z extends V {
|
|
|
585
585
|
}
|
|
586
586
|
return 800;
|
|
587
587
|
})();
|
|
588
|
-
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration =
|
|
589
|
-
const
|
|
588
|
+
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = a);
|
|
589
|
+
const o = this.getSpeededDuration(a);
|
|
590
590
|
return new Promise((d) => {
|
|
591
|
-
_(() => r.updateCamera(e,
|
|
591
|
+
_(() => r.updateCamera(e, o)), setTimeout(() => d(), o);
|
|
592
592
|
});
|
|
593
593
|
});
|
|
594
594
|
}
|
|
@@ -603,32 +603,32 @@ class z extends V {
|
|
|
603
603
|
const s = i.getCurrentState().mode !== "Panorama";
|
|
604
604
|
s && (this.privateState.modeChanging = !0);
|
|
605
605
|
const m = (() => {
|
|
606
|
-
var f,
|
|
607
|
-
const
|
|
608
|
-
if ((
|
|
606
|
+
var f, l;
|
|
607
|
+
const o = (f = n.config) == null ? void 0 : f.speedConfig, d = (l = e.moveSpeed) != null ? l : o == null ? void 0 : o.moveSpeed;
|
|
608
|
+
if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
|
|
609
609
|
return d;
|
|
610
610
|
if (d !== void 0)
|
|
611
|
-
return
|
|
612
|
-
})(),
|
|
611
|
+
return o.moveSpeedUnit === "m/ms" ? d : d / 1e3;
|
|
612
|
+
})(), a = (() => {
|
|
613
613
|
if (t != null && t.duration)
|
|
614
614
|
return t.duration;
|
|
615
615
|
if (m && typeof i.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
616
|
-
const
|
|
617
|
-
return
|
|
616
|
+
const o = i.work.observers[i.panoIndex].position, d = i.work.observers[e.panoIndex].position;
|
|
617
|
+
return o.distanceTo(d) / m;
|
|
618
618
|
}
|
|
619
619
|
return 800;
|
|
620
620
|
})();
|
|
621
|
-
r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration =
|
|
622
|
-
var d, f,
|
|
621
|
+
r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
622
|
+
var d, f, l;
|
|
623
623
|
i.moveToPano(e.panoIndex, {
|
|
624
624
|
latitude: e.latitude,
|
|
625
625
|
longitude: e.longitude,
|
|
626
626
|
fov: e.fov,
|
|
627
|
-
duration: this.getSpeededDuration(
|
|
628
|
-
effect: (
|
|
629
|
-
moveCancelCallback: () =>
|
|
630
|
-
moveEndCallback: () =>
|
|
631
|
-
}), s && i.once("panoArrived", () =>
|
|
627
|
+
duration: this.getSpeededDuration(a),
|
|
628
|
+
effect: (l = (f = t == null ? void 0 : t.moveEffect) != null ? f : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? l : e.moveEffect,
|
|
629
|
+
moveCancelCallback: () => o(),
|
|
630
|
+
moveEndCallback: () => o()
|
|
631
|
+
}), s && i.once("panoArrived", () => o());
|
|
632
632
|
}), s && (this.privateState.modeChanging = !1);
|
|
633
633
|
});
|
|
634
634
|
}
|
|
@@ -639,8 +639,8 @@ class z extends V {
|
|
|
639
639
|
const { state: i, privateState: r, hooks: n } = this, { currentPlayKeyframe: s } = r;
|
|
640
640
|
if (n.emit("speedChange", e, { userAction: t }), i.playing && s)
|
|
641
641
|
try {
|
|
642
|
-
const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0,
|
|
643
|
-
r.currentPlayQueue.push(
|
|
642
|
+
const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: m });
|
|
643
|
+
r.currentPlayQueue.push(a);
|
|
644
644
|
} catch (m) {
|
|
645
645
|
}
|
|
646
646
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var V = Object.defineProperty;
|
|
2
2
|
var S = Object.getOwnPropertySymbols;
|
|
3
3
|
var M = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var f = (p, o, t) => o in p ? V(p, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : p[o] = t, c = (p, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
M.call(o, t) &&
|
|
6
|
+
M.call(o, t) && f(p, t, o[t]);
|
|
7
7
|
if (S)
|
|
8
8
|
for (var t of S(o))
|
|
9
|
-
N.call(o, t) &&
|
|
9
|
+
N.call(o, t) && f(p, t, o[t]);
|
|
10
10
|
return p;
|
|
11
11
|
};
|
|
12
|
-
var d = (p, o, t) => (
|
|
12
|
+
var d = (p, o, t) => (f(p, typeof o != "symbol" ? o + "" : o, t), t);
|
|
13
13
|
var u = (p, o, t) => new Promise((i, s) => {
|
|
14
14
|
var a = (m) => {
|
|
15
15
|
try {
|
|
@@ -233,7 +233,7 @@ class Wr extends O {
|
|
|
233
233
|
})) != null ? y : [], h = (D = (L = e.lines) == null ? void 0 : L.map((l) => T({}, m, l))) != null ? D : [], C = [...n, ...h];
|
|
234
234
|
yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
|
|
235
235
|
this.addGuideLineItem(l);
|
|
236
|
-
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", e), console.
|
|
236
|
+
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
formatData(t) {
|
|
@@ -269,8 +269,8 @@ class Wr extends O {
|
|
|
269
269
|
var a;
|
|
270
270
|
if (this.disposed)
|
|
271
271
|
return this.disposedErrorLog();
|
|
272
|
-
const s =
|
|
273
|
-
this.state =
|
|
272
|
+
const s = c({}, this.state);
|
|
273
|
+
this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !== s.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== s.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), P(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 }), this.five.needsRender = !0);
|
|
274
274
|
}
|
|
275
275
|
/** 添加一个 GuideLineItem */
|
|
276
276
|
addGuideLineItem(t) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { StickType, TagContentType, TagInstance } from '../typings';
|
|
1
2
|
/** @deprecated 改用具体的string */
|
|
2
3
|
export declare enum PointType {
|
|
3
4
|
PointTag = "PointTag",
|
|
@@ -16,7 +17,9 @@ export type DeprecatedTagProperty = {
|
|
|
16
17
|
export type DeprecatedMediaPlaneProperty = {
|
|
17
18
|
/**
|
|
18
19
|
* @description stretch: 拉伸适配, proportional: 等比适配,默认值 'proportional'
|
|
19
|
-
* @deprecated
|
|
20
|
+
* @deprecated Use {@link ObjectFit} instead
|
|
20
21
|
*/
|
|
21
22
|
adaptationMode?: 'stretch' | 'proportional';
|
|
22
23
|
};
|
|
24
|
+
/** @deprecated Use {@link TagInstance} instead */
|
|
25
|
+
export type TagElement<C extends TagContentType = TagContentType, S extends StickType = StickType> = TagInstance<C, S>;
|
|
@@ -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 d, 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"), d(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"), d(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,24 +221,24 @@ 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], u = [];
|
|
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 = u[o] =
|
|
232
|
-
const
|
|
233
|
-
function
|
|
231
|
+
o = p(i), a = u[o] = z[o](i);
|
|
232
|
+
const P = [rt, ot], c = [];
|
|
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 = c[s] = P[s](i), {
|
|
240
240
|
c() {
|
|
241
|
-
e =
|
|
241
|
+
e = A("div"), t = A("div"), a.c(), m = Y(), f.c(), d(t, "class", g = B(J(
|
|
242
242
|
"wrapper",
|
|
243
243
|
/*tag*/
|
|
244
244
|
i[1].className ? `${/*tag*/
|
|
@@ -297,17 +297,17 @@ function nt(i) {
|
|
|
297
297
|
);
|
|
298
298
|
},
|
|
299
299
|
m(n, r) {
|
|
300
|
-
|
|
300
|
+
C(n, e, r), E(e, t), u[o].m(t, null), E(t, m), c[s].m(t, null), l = !0;
|
|
301
301
|
},
|
|
302
302
|
p(n, [r]) {
|
|
303
303
|
let b = o;
|
|
304
|
-
o = p(n), o === b ? u[o].p(n, r) : (G(),
|
|
304
|
+
o = p(n), o === b ? u[o].p(n, r) : (G(), v(u[b], 1, 1, () => {
|
|
305
305
|
u[b] = null;
|
|
306
|
-
}), F(), a = u[o], a ? a.p(n, r) : (a = u[o] =
|
|
306
|
+
}), F(), a = u[o], a ? a.p(n, r) : (a = u[o] = z[o](n), a.c()), y(a, 1), a.m(t, m));
|
|
307
307
|
let k = s;
|
|
308
|
-
s =
|
|
308
|
+
s = T(n), s === k ? c[s].p(n, r) : (G(), v(c[k], 1, 1, () => {
|
|
309
309
|
c[k] = null;
|
|
310
|
-
}), F(), f = c[s], f ? f.p(n, r) : (f = c[s] =
|
|
310
|
+
}), F(), f = c[s], f ? f.p(n, r) : (f = c[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*/
|
|
@@ -378,10 +378,10 @@ 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
387
|
n && N(e), u[o].d(), c[s].d();
|
|
@@ -389,10 +389,10 @@ function nt(i) {
|
|
|
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: u = !1 } = e, { tag: p } = e, { mediaStore: P } = e, { state: c } = e, { temporaryState: T } = e;
|
|
393
393
|
const n = Z("hooks");
|
|
394
394
|
return i.$$set = (r) => {
|
|
395
|
-
"withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, p = r.tag), "mediaStore" in r && t(2,
|
|
395
|
+
"withAnimation" in r && t(0, u = r.withAnimation), "tag" in r && t(1, p = r.tag), "mediaStore" in r && t(2, P = r.mediaStore), "state" in r && t(3, c = 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
412
|
u,
|
|
413
413
|
p,
|
|
414
|
-
|
|
414
|
+
P,
|
|
415
415
|
c,
|
|
416
|
-
A,
|
|
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
|
}
|