@realsee/dnalogel 2.18.1-2 → 2.18.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/typings/tag/TagConfig.d.ts +46 -12
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
- package/dist/index.cjs.js +50 -50
- package/dist/index.js +2722 -2693
- package/dist/index.umd.js +42 -42
- package/dist/shared-utils/device.d.ts +6 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +13 -13
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/CruisePlugin/Controller.js +46 -46
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +118 -118
- package/libs/PanoTagPlugin/controller/TagComputer.js +15 -13
- package/libs/PanoTagPlugin/controller/TagRender.js +1 -1
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/tag.config.js +3 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +46 -12
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +34 -30
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/device.d.ts +6 -0
- package/libs/shared-utils/device.js +8 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/loadVideoTexture.d.ts +1 -1
- package/libs/shared-utils/three/loadVideoTexture.js +28 -8
- package/package.json +1 -2
- package/dist/PanoTagPlugin/utils/device.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/device.d.ts +0 -1
- package/libs/PanoTagPlugin/utils/device.js +0 -4
|
@@ -14,18 +14,18 @@ var I = (c, l, e) => (L(c, typeof l != "symbol" ? l + "" : l, e), e);
|
|
|
14
14
|
var v = (c, l, e) => new Promise((t, i) => {
|
|
15
15
|
var r = (m) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(e.next(m));
|
|
18
18
|
} catch (o) {
|
|
19
19
|
i(o);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, n = (m) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(e.throw(m));
|
|
24
24
|
} catch (o) {
|
|
25
25
|
i(o);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (m) => m.done ? t(m.value) : Promise.resolve(m.value).then(r, n);
|
|
28
|
+
s((e = e.apply(c, l)).next());
|
|
29
29
|
});
|
|
30
30
|
import { Controller as V } from "../base/BasePluginWithData.js";
|
|
31
31
|
import { GuideLinePlugin as $ } from "../GuideLinePlugin/index.js";
|
|
@@ -94,7 +94,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
94
94
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
95
95
|
import "../vendor/svelte/store/index.js";
|
|
96
96
|
import "../vendor/svelte/internal/index.js";
|
|
97
|
-
import "../
|
|
97
|
+
import "../shared-utils/device.js";
|
|
98
98
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
99
99
|
import "../shared-utils/three/Quadrangle.js";
|
|
100
100
|
import "../shared-utils/math/pointIsRectangle.js";
|
|
@@ -240,9 +240,9 @@ class z extends V {
|
|
|
240
240
|
if (this.state.disposed)
|
|
241
241
|
return D();
|
|
242
242
|
this.privateState.fiveOriginGetProgress || (d = (a = this.five.controller) == null ? void 0 : a.cameraMotion) != null && d.getProgress || (yield this.waitFiveLoaded(), this.privateState.fiveOriginGetProgress = (u = (f = this.five.controller) == null ? void 0 : f.cameraMotion) == null ? void 0 : u.getProgress), this.clear();
|
|
243
|
-
const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0,
|
|
244
|
-
this.data =
|
|
245
|
-
let
|
|
243
|
+
const r = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
244
|
+
this.data = n, this.hooks.emit("dataChange", n, r);
|
|
245
|
+
let s = [], m;
|
|
246
246
|
const o = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
|
|
247
247
|
o.filter((p, y) => {
|
|
248
248
|
var S;
|
|
@@ -252,14 +252,14 @@ class z extends V {
|
|
|
252
252
|
const y = (S = this.five.work.observers[p]) == null ? void 0 : S.floorIndex;
|
|
253
253
|
if (y !== void 0)
|
|
254
254
|
if (m === y) {
|
|
255
|
-
const b =
|
|
256
|
-
|
|
255
|
+
const b = s.length - 1;
|
|
256
|
+
s[b] = [...(k = s[b]) != null ? k : [], p];
|
|
257
257
|
} else {
|
|
258
258
|
m = y;
|
|
259
|
-
const b =
|
|
260
|
-
|
|
259
|
+
const b = s.length;
|
|
260
|
+
s[b] = [p];
|
|
261
261
|
}
|
|
262
|
-
}), !this.GuideLine && ((h = this.config) == null ? void 0 : h.useGuideLine) !== !1 &&
|
|
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.info(`${x} loaded`, n), this.hooks.emit("dataLoaded", n);
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
/**
|
|
@@ -348,16 +348,16 @@ class z extends V {
|
|
|
348
348
|
if (i.keyframes)
|
|
349
349
|
return {
|
|
350
350
|
keyframesId: w(),
|
|
351
|
-
keyframes: i.keyframes.map((r,
|
|
351
|
+
keyframes: i.keyframes.map((r, n) => {
|
|
352
352
|
var o;
|
|
353
|
-
const
|
|
354
|
-
return C(g({ id: (o = r.uuid) != null ? o : w(), moveIndex:
|
|
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: (o = r.uuid) != null ? o : 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
|
-
const { moveEffect:
|
|
360
|
-
return this.privateState.moveToFirstPanoEffect =
|
|
359
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: m } = i;
|
|
360
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = m, i.panoIndexList.forEach((o, a) => {
|
|
361
361
|
const d = (() => {
|
|
362
362
|
var p, y, S, k;
|
|
363
363
|
const f = i.panoIndexList.slice(a).find((b) => b !== o);
|
|
@@ -372,8 +372,8 @@ class z extends V {
|
|
|
372
372
|
i.moveType === void 0 || i.moveType === "justMove" ? r.push({
|
|
373
373
|
moveIndex: a,
|
|
374
374
|
stay: i.stay,
|
|
375
|
-
data: g({ effect: "Move", panoIndex: o, moveEffect:
|
|
376
|
-
}) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: a, stay: i.stay, data: { effect: "Move", panoIndex: o, moveEffect:
|
|
375
|
+
data: g({ effect: "Move", panoIndex: o, moveEffect: n }, d != null ? d : {})
|
|
376
|
+
}) : i.moveType === "moveAndRotate" && (r.push({ moveIndex: a, stay: i.stay, data: { effect: "Move", panoIndex: o, moveEffect: n } }), d && r.push({ moveIndex: a, stay: i.stay, data: g({ effect: "Rotate", panoIndex: o }, d) }));
|
|
377
377
|
}), {
|
|
378
378
|
keyframesId: w(),
|
|
379
379
|
keyframes: r.map((o, a) => g({ id: w(), index: a }, o)),
|
|
@@ -409,13 +409,13 @@ class z extends V {
|
|
|
409
409
|
handlePlay(e) {
|
|
410
410
|
return v(this, null, function* () {
|
|
411
411
|
var u;
|
|
412
|
-
const { data: t, state: i, privateState: r, hooks:
|
|
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
|
-
const
|
|
416
|
-
r.playId =
|
|
415
|
+
const s = w();
|
|
416
|
+
r.playId = s, r.playing = !0, r.broke = !1;
|
|
417
417
|
const m = t.keyframes, o = this.getPauseData();
|
|
418
|
-
(e == null ? void 0 : e.notEmitEvent) !== !0 &&
|
|
418
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (u = e == null ? void 0 : e.userAction) != null ? u : !0 });
|
|
419
419
|
let a = !1;
|
|
420
420
|
const f = yield (() => v(this, null, function* () {
|
|
421
421
|
var h, P;
|
|
@@ -440,11 +440,11 @@ class z extends V {
|
|
|
440
440
|
}))();
|
|
441
441
|
this.clearPauseData();
|
|
442
442
|
for (const h of m) {
|
|
443
|
-
if (r.broke || !i.playing || !r.playing ||
|
|
443
|
+
if (r.broke || !i.playing || !r.playing || s !== r.playId)
|
|
444
444
|
return;
|
|
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
448
|
moveEffect: a === !1 ? r.moveToFirstPanoEffect : void 0,
|
|
449
449
|
duration: a === !1 && typeof r.moveToFirstPanoDuration == "number" ? r.moveToFirstPanoDuration : void 0
|
|
450
450
|
}), h.stay && (yield J(h.stay)), a === !1 && (a = !0);
|
|
@@ -452,16 +452,16 @@ class z extends V {
|
|
|
452
452
|
return Promise.resolve("broke");
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
i.playing &&
|
|
455
|
+
i.playing && s === r.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
456
456
|
});
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* @description: Pause and record pause state
|
|
460
460
|
*/
|
|
461
461
|
handlePause(e) {
|
|
462
|
-
var
|
|
462
|
+
var n;
|
|
463
463
|
const { state: t, privateState: i, hooks: r } = this;
|
|
464
|
-
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (
|
|
464
|
+
t.playing = !1, i.playing !== !1 && (i.playing = !1, this.setPauseData(), i.broke || this.forceInteruptUpdateCamera(), (e == null ? void 0 : e.notEmitEvent) !== !0 && r.emit("pause", { userAction: (n = e == null ? void 0 : e.userAction) != null ? n : !0 }));
|
|
465
465
|
}
|
|
466
466
|
/**
|
|
467
467
|
* @description Play single keyframe
|
|
@@ -489,10 +489,10 @@ class z extends V {
|
|
|
489
489
|
*/
|
|
490
490
|
getPlayPromise(i) {
|
|
491
491
|
return v(this, arguments, function* (e, t = {}) {
|
|
492
|
-
var
|
|
492
|
+
var n;
|
|
493
493
|
const r = e.data;
|
|
494
|
-
if (t.duration = (
|
|
495
|
-
return new Promise((
|
|
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
|
+
return new Promise((s, m) => {
|
|
496
496
|
let o = !1;
|
|
497
497
|
this.addInterruptListener(() => {
|
|
498
498
|
if (!o)
|
|
@@ -502,7 +502,7 @@ class z extends V {
|
|
|
502
502
|
if (o)
|
|
503
503
|
return;
|
|
504
504
|
const a = () => {
|
|
505
|
-
|
|
505
|
+
s(), o = !0;
|
|
506
506
|
};
|
|
507
507
|
switch (r.effect) {
|
|
508
508
|
case "Move":
|
|
@@ -569,9 +569,9 @@ class z extends V {
|
|
|
569
569
|
*/
|
|
570
570
|
updateCamera(i) {
|
|
571
571
|
return v(this, arguments, function* (e, t = {}) {
|
|
572
|
-
const { five: r, privateState:
|
|
572
|
+
const { five: r, privateState: n, state: s } = this, m = (() => {
|
|
573
573
|
var u, h;
|
|
574
|
-
const d = (u =
|
|
574
|
+
const d = (u = s.config) == null ? void 0 : u.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)
|
|
@@ -585,7 +585,7 @@ class z extends V {
|
|
|
585
585
|
}
|
|
586
586
|
return 800;
|
|
587
587
|
})();
|
|
588
|
-
|
|
588
|
+
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = o);
|
|
589
589
|
const a = this.getSpeededDuration(o);
|
|
590
590
|
return new Promise((d) => {
|
|
591
591
|
_(() => r.updateCamera(e, a)), setTimeout(() => d(), a);
|
|
@@ -597,14 +597,14 @@ class z extends V {
|
|
|
597
597
|
*/
|
|
598
598
|
changePano(e, t) {
|
|
599
599
|
return v(this, null, function* () {
|
|
600
|
-
const { five: i, privateState: r, state:
|
|
600
|
+
const { five: i, privateState: r, state: n } = this;
|
|
601
601
|
if (typeof e.panoIndex != "number" || e.panoIndex === i.panoIndex)
|
|
602
602
|
return;
|
|
603
|
-
const
|
|
604
|
-
|
|
603
|
+
const s = i.getCurrentState().mode !== "Panorama";
|
|
604
|
+
s && (this.privateState.modeChanging = !0);
|
|
605
605
|
const m = (() => {
|
|
606
606
|
var f, u;
|
|
607
|
-
const a = (f =
|
|
607
|
+
const a = (f = n.config) == null ? void 0 : f.speedConfig, d = (u = e.moveSpeed) != null ? u : a == null ? void 0 : a.moveSpeed;
|
|
608
608
|
if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
|
|
609
609
|
return d;
|
|
610
610
|
if (d !== void 0)
|
|
@@ -628,18 +628,18 @@ class z extends V {
|
|
|
628
628
|
effect: (u = (f = t == null ? void 0 : t.moveEffect) != null ? f : (d = this.state.config) == null ? void 0 : d.moveEffect) != null ? u : e.moveEffect,
|
|
629
629
|
moveCancelCallback: () => a(),
|
|
630
630
|
moveEndCallback: () => a()
|
|
631
|
-
}),
|
|
632
|
-
}),
|
|
631
|
+
}), s && i.once("panoArrived", () => a());
|
|
632
|
+
}), s && (this.privateState.modeChanging = !1);
|
|
633
633
|
});
|
|
634
634
|
}
|
|
635
635
|
/**
|
|
636
636
|
* @description: Change play speed
|
|
637
637
|
*/
|
|
638
638
|
changeSpeed(e, t = !0) {
|
|
639
|
-
const { state: i, privateState: r, hooks:
|
|
640
|
-
if (
|
|
639
|
+
const { state: i, privateState: r, hooks: n } = this, { currentPlayKeyframe: s } = r;
|
|
640
|
+
if (n.emit("speedChange", e, { userAction: t }), i.playing && s)
|
|
641
641
|
try {
|
|
642
|
-
const m =
|
|
642
|
+
const m = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(s.keyframe, { duration: m });
|
|
643
643
|
r.currentPlayQueue.push(o);
|
|
644
644
|
} catch (m) {
|
|
645
645
|
}
|
|
@@ -62,7 +62,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
62
62
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
63
63
|
import "../vendor/svelte/store/index.js";
|
|
64
64
|
import "../vendor/svelte/internal/index.js";
|
|
65
|
-
import "../
|
|
65
|
+
import "../shared-utils/device.js";
|
|
66
66
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
67
67
|
import "../shared-utils/three/Quadrangle.js";
|
|
68
68
|
import "../shared-utils/math/pointIsRectangle.js";
|
|
@@ -87,7 +87,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
87
87
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
88
88
|
import "../vendor/svelte/store/index.js";
|
|
89
89
|
import "../vendor/svelte/internal/index.js";
|
|
90
|
-
import "../
|
|
90
|
+
import "../shared-utils/device.js";
|
|
91
91
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
92
92
|
import "../shared-utils/three/Quadrangle.js";
|
|
93
93
|
import "../shared-utils/math/pointIsRectangle.js";
|
|
@@ -58,7 +58,7 @@ import "../base/BasePlugin.js";
|
|
|
58
58
|
import "../shared-utils/isAbsoluteURL.js";
|
|
59
59
|
import "../vendor/svelte/store/index.js";
|
|
60
60
|
import "../vendor/svelte/internal/index.js";
|
|
61
|
-
import "../
|
|
61
|
+
import "../shared-utils/device.js";
|
|
62
62
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
63
63
|
import "../shared-utils/three/Quadrangle.js";
|
|
64
64
|
import "../shared-utils/math/pointIsRectangle.js";
|
|
@@ -330,7 +330,7 @@ class B {
|
|
|
330
330
|
var i, r;
|
|
331
331
|
if (this.disposed)
|
|
332
332
|
return this.logError("disposed");
|
|
333
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r :
|
|
333
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((r = (i = this.five.model) == null ? void 0 : i.shownFloor) != null ? r : null);
|
|
334
334
|
}
|
|
335
335
|
setStartTag(e) {
|
|
336
336
|
this.setTag("start", e);
|
|
@@ -348,7 +348,7 @@ class B {
|
|
|
348
348
|
const o = G({}, {
|
|
349
349
|
contentType: "Custom",
|
|
350
350
|
stickType: "2DPoint",
|
|
351
|
-
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"] } },
|
|
351
|
+
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
352
352
|
style: { point: { enabled: !1 } },
|
|
353
353
|
data: {}
|
|
354
354
|
}, i), s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
@@ -56,7 +56,7 @@ import "../base/BasePlugin.js";
|
|
|
56
56
|
import "../shared-utils/isAbsoluteURL.js";
|
|
57
57
|
import "../vendor/svelte/store/index.js";
|
|
58
58
|
import "../vendor/svelte/internal/index.js";
|
|
59
|
-
import "../
|
|
59
|
+
import "../shared-utils/device.js";
|
|
60
60
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
61
61
|
import "../shared-utils/three/Quadrangle.js";
|
|
62
62
|
import "../shared-utils/math/pointIsRectangle.js";
|
|
@@ -69,7 +69,7 @@ import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
|
69
69
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
70
70
|
import "../vendor/svelte/store/index.js";
|
|
71
71
|
import "../vendor/svelte/internal/index.js";
|
|
72
|
-
import "../
|
|
72
|
+
import "../shared-utils/device.js";
|
|
73
73
|
import "../PanoTagPlugin/utils/model/mediaPlane.js";
|
|
74
74
|
import "../shared-utils/three/Quadrangle.js";
|
|
75
75
|
import "../shared-utils/math/pointIsRectangle.js";
|