@realsee/dnalogel 2.15.0 → 2.16.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/dist/CruisePlugin/Controller.d.ts +1 -2
- package/dist/CruisePlugin/typing.d.ts +12 -2
- package/dist/GuideLinePlugin/Controller.d.ts +17 -11
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +26 -0
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
- package/dist/GuideLinePlugin/index.d.ts +3 -0
- package/dist/GuideLinePlugin/typing.d.ts +78 -1
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
- package/dist/GuideLinePlugin/utils/index.d.ts +7 -0
- package/dist/base/BasePlugin.d.ts +1 -0
- package/dist/index.cjs.js +118 -118
- package/dist/index.js +4431 -4294
- package/dist/index.umd.js +117 -117
- package/dist/shared-utils/five/index.d.ts +1 -0
- package/dist/shared-utils/five/mode.d.ts +3 -0
- package/dist/shared-utils/index.d.ts +3 -0
- package/dist/shared-utils/isAbsoluteURL.d.ts +1 -0
- package/dist/shared-utils/log.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/CruisePluginController.html +43 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +168 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +283 -0
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/Object3DHelperController.html +42 -24
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +25 -23
- package/docs/classes/PanoMeasurePluginModel.html +24 -22
- package/docs/classes/PanoMeasurePluginPoint.html +16 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +28 -26
- package/docs/classes/PanoTagPluginController.html +64 -46
- package/docs/classes/Util.BetterTween.html +10 -8
- package/docs/classes/Util.FivePointSelector.html +14 -12
- package/docs/classes/Util.Interval.html +14 -12
- package/docs/classes/Util.Magnifier.html +19 -17
- package/docs/classes/Util.PointDomHelper.html +13 -11
- package/docs/classes/Util.PointHelper.html +13 -11
- package/docs/classes/Util.Rectangle.html +15 -13
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +21 -19
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +6 -4
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.getCoordsFromClient.html +12 -6
- package/docs/functions/Util.getCoordsFromElement.html +12 -6
- package/docs/functions/Util.getFrameTime.html +12 -6
- package/docs/functions/Util.getIntersectFromRelativePosition.html +12 -6
- package/docs/functions/Util.getRaycasterFromFivePointer.html +12 -6
- package/docs/functions/Util.isAbsoluteURL.html +78 -0
- package/docs/functions/Util.isModelLike.html +78 -0
- package/docs/functions/Util.isNil.html +12 -6
- package/docs/functions/Util.isPanoramaLike.html +78 -0
- package/docs/functions/Util.nextFrame.html +12 -6
- package/docs/functions/Util.notNil.html +12 -6
- package/docs/functions/Util.requestAnimationFrameInterval.html +12 -6
- package/docs/functions/Util.tweenProgress.html +12 -6
- package/docs/functions/Util.uuid.html +75 -0
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +6 -4
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +16 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +13 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +13 -11
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +13 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
- package/docs/modules/GuideLineItem.html +52 -0
- package/docs/modules/GuideLineModeItem.html +52 -0
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +16 -6
- package/docs/modules.html +9 -5
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelElement.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/PlaneTagElement.html +7 -5
- package/docs/types/Point2DElement.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DElement.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagElement.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +7 -5
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagIconSize.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
- package/libs/CSS3DRenderPlugin/Controller.js +40 -31
- package/libs/CSS3DRenderPlugin/index.js +12 -6
- package/libs/CruisePlugin/Controller.d.ts +1 -2
- package/libs/CruisePlugin/Controller.js +197 -174
- package/libs/CruisePlugin/index.js +33 -10
- package/libs/CruisePlugin/typing.d.ts +12 -2
- package/libs/GuideLinePlugin/Controller.d.ts +17 -11
- package/libs/GuideLinePlugin/Controller.js +111 -85
- package/libs/GuideLinePlugin/GuideLineItem/index.js +35 -0
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +26 -0
- package/libs/GuideLinePlugin/GuideLineItem.js +31 -0
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +148 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +61 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.js +29 -0
- package/libs/GuideLinePlugin/index.d.ts +3 -0
- package/libs/GuideLinePlugin/index.js +33 -7
- package/libs/GuideLinePlugin/typing.d.ts +78 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +19 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +35 -0
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +2 -0
- package/libs/GuideLinePlugin/utils/dataFormatter.js +6 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/index.js +32 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +37 -31
- package/libs/ModelTVVideoPlugin/index.js +11 -5
- package/libs/Object3DHelperPlugin/Controller.js +33 -28
- package/libs/Object3DHelperPlugin/index.js +18 -13
- package/libs/PanoCompassPlugin/Controller.js +8 -6
- package/libs/PanoCompassPlugin/index.js +12 -10
- package/libs/PanoDoorLabelPlugin/BaseController.js +47 -28
- package/libs/PanoDoorLabelPlugin/Controller.js +40 -22
- package/libs/PanoDoorLabelPlugin/index.js +21 -3
- package/libs/PanoMeasurePlugin/typings/index.js +20 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +8 -3
- package/libs/PanoSpatialTagPlugin/index.js +8 -3
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
- package/libs/PanoTagPlugin/Components/TagItem.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +42 -22
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -3
- package/libs/PanoTagPlugin/controller/TagRender.js +3 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +8 -3
- package/libs/PanoTagPlugin/controller/index.js +6 -5
- package/libs/PanoTagPlugin/index.js +11 -10
- package/libs/PanoVideoPlugin/Controller.js +4 -3
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +7 -6
- package/libs/base/BasePlugin.d.ts +1 -0
- package/libs/base/BasePlugin.js +21 -10
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +57 -38
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +48 -29
- package/libs/floorplan/ModelFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +31 -11
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +23 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +59 -40
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +22 -3
- package/libs/floorplan/index.js +6 -0
- package/libs/index.js +116 -110
- package/libs/shared-utils/five/index.d.ts +1 -0
- package/libs/shared-utils/five/index.js +1 -0
- package/libs/shared-utils/five/mode.d.ts +3 -0
- package/libs/shared-utils/five/mode.js +11 -0
- package/libs/shared-utils/index.d.ts +3 -0
- package/libs/shared-utils/index.js +36 -29
- package/libs/shared-utils/isAbsoluteURL.d.ts +1 -0
- package/libs/shared-utils/isAbsoluteURL.js +6 -0
- package/libs/shared-utils/log.d.ts +2 -0
- package/libs/shared-utils/log.js +10 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/package.json +2 -2
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +0 -16
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +0 -64
|
@@ -59,8 +59,8 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
59
59
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
60
60
|
import "./Common/MediaItem.js";
|
|
61
61
|
import "./Tag/MarketingTag.js";
|
|
62
|
-
import "hammerjs";
|
|
63
62
|
import "@realsee/five";
|
|
63
|
+
import "hammerjs";
|
|
64
64
|
import "@tweenjs/tween.js";
|
|
65
65
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
66
66
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -61,8 +61,8 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
|
|
|
61
61
|
import "../../vendor/svelte-carousel/src/utils/interval.js";
|
|
62
62
|
import "./Common/MediaItem.js";
|
|
63
63
|
import "./Tag/MarketingTag.js";
|
|
64
|
-
import "hammerjs";
|
|
65
64
|
import "@realsee/five";
|
|
65
|
+
import "hammerjs";
|
|
66
66
|
import "@tweenjs/tween.js";
|
|
67
67
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
68
68
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -1,27 +1,47 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Controller as
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var l = (r, o, t) => o in r ? f(r, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[o] = t;
|
|
3
|
+
var d = (r, o, t) => (l(r, typeof o != "symbol" ? o + "" : o, t), t);
|
|
4
|
+
import { Controller as x } from "../../base/BasePlugin.js";
|
|
5
5
|
import "../../shared-utils/Subscribe.js";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
import "@realsee/five";
|
|
7
|
+
import "hammerjs";
|
|
8
|
+
import "three";
|
|
9
|
+
import "@tweenjs/tween.js";
|
|
10
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
11
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
12
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
13
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
14
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
15
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
16
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
17
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
18
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
19
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
20
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
21
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
24
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
25
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
26
|
+
class L extends x {
|
|
27
|
+
constructor(t) {
|
|
28
|
+
super(t);
|
|
29
|
+
d(this, "tagCacheByPanoIndex", {});
|
|
10
30
|
}
|
|
11
|
-
getCache({ panoIndex:
|
|
12
|
-
var
|
|
13
|
-
const { five:
|
|
14
|
-
if (
|
|
15
|
-
throw new Error(`TagCacheController getCache(): fivePanoIndex is ${
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
if (
|
|
21
|
-
const
|
|
22
|
-
return
|
|
31
|
+
getCache({ panoIndex: t, id: i, key: p }) {
|
|
32
|
+
var c, h, s, C;
|
|
33
|
+
const { five: a } = this, n = (c = a.panoIndex) != null ? c : t;
|
|
34
|
+
if (n === void 0)
|
|
35
|
+
throw new Error(`TagCacheController getCache(): fivePanoIndex is ${n}`);
|
|
36
|
+
const m = `${(s = (h = a.work) == null ? void 0 : h.workCode) != null ? s : a.model.uuid}-${n}`;
|
|
37
|
+
let e = this.tagCacheByPanoIndex[m];
|
|
38
|
+
if (e || (e = /* @__PURE__ */ new Map(), this.tagCacheByPanoIndex[m] = e), i === void 0)
|
|
39
|
+
return e;
|
|
40
|
+
if (p === void 0) {
|
|
41
|
+
const g = e.get(i);
|
|
42
|
+
return g || (e.set(i, {}), e.get(i));
|
|
23
43
|
}
|
|
24
|
-
return (
|
|
44
|
+
return (C = e.get(i)) == null ? void 0 : C[p];
|
|
25
45
|
}
|
|
26
46
|
clearCache() {
|
|
27
47
|
this.tagCacheByPanoIndex = {};
|
|
@@ -30,5 +50,5 @@ class m extends v {
|
|
|
30
50
|
}
|
|
31
51
|
}
|
|
32
52
|
export {
|
|
33
|
-
|
|
53
|
+
L as TagCache
|
|
34
54
|
};
|
|
@@ -15,8 +15,8 @@ import * as C from "three";
|
|
|
15
15
|
import { isMediaModelTag as h, is3DTag as j } from "../utils/tag/tagCheck.js";
|
|
16
16
|
import { tagPosition as V } from "../utils/tagPosition.js";
|
|
17
17
|
import { checkRange as g } from "../utils/checkRange.js";
|
|
18
|
-
import "hammerjs";
|
|
19
18
|
import "@realsee/five";
|
|
19
|
+
import "hammerjs";
|
|
20
20
|
import "@tweenjs/tween.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
@@ -44,11 +44,12 @@ import "../utils/planeNormal.js";
|
|
|
44
44
|
import "../utils/normalPositionToPositions.js";
|
|
45
45
|
import "./TagCache.js";
|
|
46
46
|
import "../../base/BasePlugin.js";
|
|
47
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
47
48
|
import "../../vendor/svelte/store/index.js";
|
|
48
49
|
import "../../vendor/svelte/internal/index.js";
|
|
49
50
|
import "../utils/device.js";
|
|
50
51
|
import "../../shared-utils/threex/domevents/index.js";
|
|
51
|
-
class
|
|
52
|
+
class ge extends S {
|
|
52
53
|
constructor(e) {
|
|
53
54
|
super(e);
|
|
54
55
|
T(this, "raycaster", new C.Raycaster());
|
|
@@ -308,5 +309,5 @@ class he extends S {
|
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
311
|
export {
|
|
311
|
-
|
|
312
|
+
ge as TagComputer
|
|
312
313
|
};
|
|
@@ -56,6 +56,7 @@ import "../utils/planeNormal.js";
|
|
|
56
56
|
import "../utils/normalPositionToPositions.js";
|
|
57
57
|
import "./TagCache.js";
|
|
58
58
|
import "../../base/BasePlugin.js";
|
|
59
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
59
60
|
import "../../vendor/svelte/store/index.js";
|
|
60
61
|
import "../../vendor/svelte/internal/index.js";
|
|
61
62
|
import "../utils/device.js";
|
|
@@ -132,7 +133,7 @@ import "../Components/Tag/LinkTag.js";
|
|
|
132
133
|
import "../Components/Tag/CustomTag.js";
|
|
133
134
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
134
135
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
135
|
-
class
|
|
136
|
+
class Qe extends O {
|
|
136
137
|
constructor(t) {
|
|
137
138
|
super(t);
|
|
138
139
|
d(this, "group", new P());
|
|
@@ -321,5 +322,5 @@ class Le extends O {
|
|
|
321
322
|
}
|
|
322
323
|
}
|
|
323
324
|
export {
|
|
324
|
-
|
|
325
|
+
Qe as TagRender
|
|
325
326
|
};
|
|
@@ -14,6 +14,9 @@ import { isIOSWX as A } from "../utils/device.js";
|
|
|
14
14
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
15
15
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
16
16
|
import "@realsee/five";
|
|
17
|
+
import "hammerjs";
|
|
18
|
+
import "@tweenjs/tween.js";
|
|
19
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
17
20
|
import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as V } from "../utils/tag/tagCheck.js";
|
|
18
21
|
import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
|
|
19
22
|
import "@realsee/five/gltf-loader";
|
|
@@ -21,7 +24,7 @@ import "../../shared-utils/three/loadTexture.js";
|
|
|
21
24
|
import "../../shared-utils/three/centerPoint.js";
|
|
22
25
|
import "../../base/BasePlugin.js";
|
|
23
26
|
import "../../shared-utils/Subscribe.js";
|
|
24
|
-
import "../../
|
|
27
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
25
28
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
26
29
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
27
30
|
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
@@ -31,7 +34,9 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
|
31
34
|
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
35
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
33
36
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
34
|
-
|
|
37
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
38
|
+
import "../../vendor/svelte/internal/index.js";
|
|
39
|
+
class he extends b {
|
|
35
40
|
constructor(e) {
|
|
36
41
|
super(e);
|
|
37
42
|
a(this, "tags", []);
|
|
@@ -288,5 +293,5 @@ class le extends b {
|
|
|
288
293
|
}
|
|
289
294
|
}
|
|
290
295
|
export {
|
|
291
|
-
|
|
296
|
+
he as TagUtil
|
|
292
297
|
};
|
|
@@ -69,6 +69,7 @@ import "../utils/planeNormal.js";
|
|
|
69
69
|
import "../utils/normalPositionToPositions.js";
|
|
70
70
|
import "./TagCache.js";
|
|
71
71
|
import "../../base/BasePlugin.js";
|
|
72
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
72
73
|
import "../../vendor/svelte/store/index.js";
|
|
73
74
|
import "../../vendor/svelte/internal/index.js";
|
|
74
75
|
import "../utils/device.js";
|
|
@@ -149,8 +150,8 @@ import "../../CSS3DRenderPlugin/index.js";
|
|
|
149
150
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
150
151
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
151
152
|
import "../../shared-utils/three/GLTFLoader.js";
|
|
152
|
-
const D = "Dnalogel-PanoTagPlugin",
|
|
153
|
-
class
|
|
153
|
+
const D = "Dnalogel-PanoTagPlugin", Zt = (d) => `${D}--${d}`;
|
|
154
|
+
class ei extends k {
|
|
154
155
|
constructor(e, t) {
|
|
155
156
|
super(e);
|
|
156
157
|
p(this, "state", { enabled: !0, visible: !0 });
|
|
@@ -418,7 +419,7 @@ class Zt extends k {
|
|
|
418
419
|
}
|
|
419
420
|
}
|
|
420
421
|
export {
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
422
|
+
ei as PanoTagPluginController,
|
|
423
|
+
ei as default,
|
|
424
|
+
Zt as pluginFlag
|
|
424
425
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./controller/index.js";
|
|
2
|
-
import { default as
|
|
3
|
-
import { ContentType as
|
|
4
|
-
import { DimensionType as
|
|
2
|
+
import { default as Fr, pluginFlag as br } from "./controller/index.js";
|
|
3
|
+
import { ContentType as jr } from "./typings/tag/TagData.js";
|
|
4
|
+
import { DimensionType as qr } from "./typings/tag/Utils.js";
|
|
5
5
|
import "@realsee/five";
|
|
6
6
|
import "object-assign-deep";
|
|
7
7
|
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
@@ -44,6 +44,7 @@ import "./utils/planeNormal.js";
|
|
|
44
44
|
import "./utils/normalPositionToPositions.js";
|
|
45
45
|
import "./controller/TagCache.js";
|
|
46
46
|
import "../base/BasePlugin.js";
|
|
47
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
47
48
|
import "../vendor/svelte/store/index.js";
|
|
48
49
|
import "../vendor/svelte/internal/index.js";
|
|
49
50
|
import "./utils/device.js";
|
|
@@ -124,12 +125,12 @@ import "../CSS3DRenderPlugin/index.js";
|
|
|
124
125
|
import "../CSS3DRenderPlugin/Controller.js";
|
|
125
126
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
126
127
|
import "../shared-utils/three/GLTFLoader.js";
|
|
127
|
-
const
|
|
128
|
+
const cr = (o, r) => new t(o, r);
|
|
128
129
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
jr as ContentType,
|
|
131
|
+
qr as DimensionType,
|
|
132
|
+
cr as PanoTagPlugin,
|
|
133
|
+
Fr as PanoTagPluginController,
|
|
134
|
+
cr as default,
|
|
135
|
+
br as pluginFlag
|
|
135
136
|
};
|
|
@@ -14,9 +14,9 @@ var u = (o, r, e) => (s(o, typeof r != "symbol" ? r + "" : r, e), e);
|
|
|
14
14
|
import { VideoMeshController as p } from "./VideoMeshController.js";
|
|
15
15
|
import { Controller as A } from "../base/BasePlugin.js";
|
|
16
16
|
import "./utils/shader.js";
|
|
17
|
+
import "@realsee/five";
|
|
17
18
|
import "hammerjs";
|
|
18
19
|
import "three";
|
|
19
|
-
import "@realsee/five";
|
|
20
20
|
import "@tweenjs/tween.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -35,7 +35,8 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
35
35
|
import "../shared-utils/animationFrame/index.js";
|
|
36
36
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
37
37
|
import "./utils/index.js";
|
|
38
|
-
|
|
38
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
39
|
+
class O extends A {
|
|
39
40
|
constructor(e) {
|
|
40
41
|
super(e);
|
|
41
42
|
u(this, "enabled", !0);
|
|
@@ -137,5 +138,5 @@ class N extends A {
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
export {
|
|
140
|
-
|
|
141
|
+
O as PanoVideoPluginController
|
|
141
142
|
};
|
|
@@ -2,9 +2,9 @@ var g = Object.defineProperty;
|
|
|
2
2
|
var F = (h, e, i) => e in h ? g(h, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : h[e] = i;
|
|
3
3
|
var t = (h, e, i) => (F(h, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
4
|
import { vertexShader as E, fragmentShader as I } from "./utils/shader.js";
|
|
5
|
+
import "@realsee/five";
|
|
5
6
|
import "hammerjs";
|
|
6
7
|
import { VideoTexture as D, LinearFilter as m, ShaderMaterial as P, Vector4 as A, SphereBufferGeometry as M, Mesh as x, Vector3 as f, Quaternion as C } from "three";
|
|
7
|
-
import "@realsee/five";
|
|
8
8
|
import "@tweenjs/tween.js";
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
10
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PanoVideoPluginController as r } from "./Controller.js";
|
|
2
|
-
import { typings as
|
|
2
|
+
import { typings as B } from "./typings/index.js";
|
|
3
3
|
import "./VideoMeshController.js";
|
|
4
4
|
import "./utils/shader.js";
|
|
5
|
+
import "@realsee/five";
|
|
5
6
|
import "hammerjs";
|
|
6
7
|
import "three";
|
|
7
|
-
import "@realsee/five";
|
|
8
8
|
import "@tweenjs/tween.js";
|
|
9
9
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
10
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -24,9 +24,10 @@ import "../shared-utils/animationFrame/index.js";
|
|
|
24
24
|
import "../shared-utils/animationFrame/BetterTween.js";
|
|
25
25
|
import "./utils/index.js";
|
|
26
26
|
import "../base/BasePlugin.js";
|
|
27
|
-
|
|
27
|
+
import "../shared-utils/isAbsoluteURL.js";
|
|
28
|
+
const v = (o) => new r(o);
|
|
28
29
|
export {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
v as PanoVideoPlugin,
|
|
31
|
+
B as PanoVideoPluginType,
|
|
32
|
+
v as default
|
|
32
33
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
4
|
-
import { Subscribe as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var e = Object.defineProperty;
|
|
2
|
+
var o = (i, t, r) => t in i ? e(i, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : i[t] = r;
|
|
3
|
+
var s = (i, t, r) => (o(i, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import { Subscribe as m } from "../shared-utils/Subscribe.js";
|
|
5
|
+
import "@realsee/five";
|
|
6
|
+
import "hammerjs";
|
|
7
|
+
import "three";
|
|
8
|
+
import "@tweenjs/tween.js";
|
|
9
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
11
|
+
import { isAbsoluteURL as a } from "../shared-utils/isAbsoluteURL.js";
|
|
12
|
+
import "../shared-utils/animationFrame/BetterTween.js";
|
|
13
|
+
class R {
|
|
14
|
+
constructor(t, r) {
|
|
15
|
+
s(this, "VERSION", "2.16.0-0");
|
|
8
16
|
s(this, "five");
|
|
9
|
-
s(this, "hooks", new
|
|
17
|
+
s(this, "hooks", new m());
|
|
10
18
|
s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
|
|
11
|
-
this.five =
|
|
19
|
+
this.five = t, r != null && r.staticPrefix && (this.staticPrefix = r.staticPrefix);
|
|
12
20
|
}
|
|
13
21
|
getCurrentState() {
|
|
14
22
|
return this.state;
|
|
15
23
|
}
|
|
24
|
+
isAbsoluteURL(t) {
|
|
25
|
+
return a(t) ? t : `${this.staticPrefix}${t}`;
|
|
26
|
+
}
|
|
16
27
|
}
|
|
17
28
|
export {
|
|
18
|
-
|
|
29
|
+
R as Controller
|
|
19
30
|
};
|
|
@@ -2,30 +2,30 @@ var A = Object.defineProperty, F = Object.defineProperties;
|
|
|
2
2
|
var C = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var w = Object.getOwnPropertySymbols;
|
|
4
4
|
var P = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var m = (h,
|
|
6
|
-
for (var t in
|
|
7
|
-
P.call(
|
|
5
|
+
var m = (h, r, t) => r in h ? A(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t, l = (h, r) => {
|
|
6
|
+
for (var t in r || (r = {}))
|
|
7
|
+
P.call(r, t) && m(h, t, r[t]);
|
|
8
8
|
if (w)
|
|
9
|
-
for (var t of w(
|
|
10
|
-
y.call(
|
|
9
|
+
for (var t of w(r))
|
|
10
|
+
y.call(r, t) && m(h, t, r[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, v = (h,
|
|
13
|
-
var o = (h,
|
|
14
|
-
var c = (h,
|
|
12
|
+
}, v = (h, r) => F(h, C(r));
|
|
13
|
+
var o = (h, r, t) => (m(h, typeof r != "symbol" ? r + "" : r, t), t);
|
|
14
|
+
var c = (h, r, t) => new Promise((e, i) => {
|
|
15
15
|
var s = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
n(t.next(d));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, a = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
n(t.throw(d));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, n = (d) => d.done ? e(d.value) : Promise.resolve(d.value).then(s, a);
|
|
28
|
+
n((t = t.apply(h, r)).next());
|
|
29
29
|
});
|
|
30
30
|
import * as x from "three";
|
|
31
31
|
import { to as I } from "../../shared-utils/to.js";
|
|
@@ -39,7 +39,7 @@ import { Controller as T } from "../../base/BasePluginWithData.js";
|
|
|
39
39
|
import { getPxmm as k, getAttachedY as B } from "../../shared-utils/getPxmm.js";
|
|
40
40
|
import { checkShowState as H, correctFiveState as R } from "../utils/correctFiveState.js";
|
|
41
41
|
import { changeModelCanvasOpacity as E } from "../../shared-utils/changeModelCanvasOpacity.js";
|
|
42
|
-
import { FloorplanErrorType as
|
|
42
|
+
import { FloorplanErrorType as p, SHOW_ANIME_DURATION as G } from "../utils/constant.js";
|
|
43
43
|
import "../../shared-utils/isTruelyObject.js";
|
|
44
44
|
import "../../vendor/svelte/internal/index.js";
|
|
45
45
|
import "../../vendor/svelte/transition/index.js";
|
|
@@ -70,17 +70,36 @@ import "../Assets/floorplanExtraObject.js";
|
|
|
70
70
|
import "../../shared-utils/tap.js";
|
|
71
71
|
import "../../base/BasePlugin.js";
|
|
72
72
|
import "../../shared-utils/Subscribe.js";
|
|
73
|
+
import "@realsee/five";
|
|
74
|
+
import "hammerjs";
|
|
75
|
+
import "@tweenjs/tween.js";
|
|
76
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
77
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
78
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
79
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
80
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
81
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
82
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
83
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
84
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
85
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
86
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
87
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
88
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
89
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
90
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
91
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
73
92
|
import "../../shared-utils/nearlyEqual.js";
|
|
74
93
|
import "../../shared-utils/five/changeMode.js";
|
|
75
94
|
function W(h) {
|
|
76
|
-
const { latitude:
|
|
95
|
+
const { latitude: r, longitude: t } = h, e = Math.abs(r - Math.PI / 2) > 5 * Math.PI / 180, i = t > 5 * (Math.PI / 180) && t < 355 * (Math.PI / 180);
|
|
77
96
|
return e || i;
|
|
78
97
|
}
|
|
79
98
|
function N(h) {
|
|
80
|
-
const { latitude:
|
|
99
|
+
const { latitude: r, longitude: t } = h, e = Math.abs(r - Math.PI / 2) < 10 * Math.PI / 180, i = t < 30 * (Math.PI / 180) || t > 330 * (Math.PI / 180);
|
|
81
100
|
return e && i;
|
|
82
101
|
}
|
|
83
|
-
class
|
|
102
|
+
class Xt extends T {
|
|
84
103
|
constructor(t, e) {
|
|
85
104
|
super(t);
|
|
86
105
|
o(this, "name", "modelFloorplanPlugin");
|
|
@@ -116,7 +135,7 @@ class Ot extends T {
|
|
|
116
135
|
o(this, "updateSize", () => {
|
|
117
136
|
if (!this.data || !H(this.five, this.showState) || !this.container || !this.wrapper)
|
|
118
137
|
return;
|
|
119
|
-
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0,
|
|
138
|
+
const { min: t, max: e } = this.data.bounding, i = e.x - t.x, s = e.y - t.y, a = this.state.config.attachedTo ? { attachedTo: this.state.config.attachedTo } : void 0, n = k(this.five, this.wrapper, this.floorIndex, a), d = Math.ceil(i * n), u = Math.ceil(s * n);
|
|
120
139
|
this.size.width === d && this.size.height === u || (this.container.style.width = d + "px", this.container.style.height = u + "px", this.size = { width: d, height: u });
|
|
121
140
|
});
|
|
122
141
|
o(this, "highlight", (t) => {
|
|
@@ -128,7 +147,7 @@ class Ot extends T {
|
|
|
128
147
|
o(this, "_disable", (t) => {
|
|
129
148
|
var i, s, a;
|
|
130
149
|
const { userAction: e } = t;
|
|
131
|
-
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this,
|
|
150
|
+
this.hooks.emit("disable", { userAction: e }), (i = this.showRejection) == null || i.call(this, p.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (a = this.container) == null || a.remove(), this.removeEventListener();
|
|
132
151
|
});
|
|
133
152
|
o(this, "_enable", (t) => {
|
|
134
153
|
const { userAction: e } = t;
|
|
@@ -139,9 +158,9 @@ class Ot extends T {
|
|
|
139
158
|
if (!this.state.enabled)
|
|
140
159
|
return;
|
|
141
160
|
if (!((a = this.five.model) != null && a.loaded))
|
|
142
|
-
throw new Error(
|
|
161
|
+
throw new Error(p.ModelNotLoaded);
|
|
143
162
|
if (!this.data)
|
|
144
|
-
throw new Error(
|
|
163
|
+
throw new Error(p.DataNotLoaded);
|
|
145
164
|
this.isHiddenByHideFunc = !1;
|
|
146
165
|
const e = {
|
|
147
166
|
floorIndex: this.floorIndex,
|
|
@@ -151,34 +170,34 @@ class Ot extends T {
|
|
|
151
170
|
userAction: !0
|
|
152
171
|
}, i = l(l({}, e), t), s = () => c(this, null, function* () {
|
|
153
172
|
this.hooks.emit("show", { userAction: i.userAction, auto: i.isAutoShow });
|
|
154
|
-
let
|
|
173
|
+
let n = !1, d;
|
|
155
174
|
this.showRejection = (S) => {
|
|
156
|
-
|
|
175
|
+
n = !0, d = S;
|
|
157
176
|
};
|
|
158
177
|
const [u] = yield I(R(this.five, this.showState, i.userAction));
|
|
159
178
|
if (u)
|
|
160
179
|
throw u;
|
|
161
|
-
if (
|
|
162
|
-
throw d ? new Error(d) : new Error(
|
|
180
|
+
if (n)
|
|
181
|
+
throw d ? new Error(d) : new Error(p.UnknownError);
|
|
163
182
|
this.updateSize(), this.updatePosition(), this.floorIndex = i.floorIndex, this.five.model.show(this.floorIndex);
|
|
164
|
-
const
|
|
165
|
-
E(this.five,
|
|
183
|
+
const f = i.modelOpacity, g = i.immediately ? 0 : G;
|
|
184
|
+
E(this.five, f, g), this.render(g);
|
|
166
185
|
});
|
|
167
186
|
return this.showPromise = s().then(() => {
|
|
168
187
|
this.hooks.emit("showAnimationEnded", {
|
|
169
188
|
auto: i.isAutoShow,
|
|
170
189
|
userAction: i.userAction
|
|
171
190
|
});
|
|
172
|
-
}).catch((
|
|
173
|
-
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow &&
|
|
174
|
-
throw
|
|
191
|
+
}).catch((n) => {
|
|
192
|
+
if (this.updateState({ visible: !1 }, i.userAction), !i.isAutoShow && n instanceof Error)
|
|
193
|
+
throw n;
|
|
175
194
|
}).finally(() => {
|
|
176
195
|
this.showPromise = void 0, this.showRejection = void 0;
|
|
177
196
|
}), this.showPromise;
|
|
178
197
|
}));
|
|
179
198
|
o(this, "_hide", (t) => {
|
|
180
199
|
var s;
|
|
181
|
-
(s = this.showRejection) == null || s.call(this,
|
|
200
|
+
(s = this.showRejection) == null || s.call(this, p.BreakOffByHide), this.showPromise = void 0;
|
|
182
201
|
const i = l(l({}, {
|
|
183
202
|
userAction: !0,
|
|
184
203
|
isAutoHide: !1
|
|
@@ -260,8 +279,8 @@ class Ot extends T {
|
|
|
260
279
|
attachedTo: O.BOUNDING_CENTER,
|
|
261
280
|
getLabelElement: void 0,
|
|
262
281
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
263
|
-
getRoomAreaText: (
|
|
264
|
-
getRuleDistanceText: (
|
|
282
|
+
getRoomAreaText: (n) => (n / 1e6).toFixed(1) + "\u33A1",
|
|
283
|
+
getRuleDistanceText: (n) => n.toString()
|
|
265
284
|
}, s = e ? _(e, ["selector", "scale"]) : {}, a = l(l({}, i), s);
|
|
266
285
|
this.state = {
|
|
267
286
|
enabled: !0,
|
|
@@ -271,12 +290,12 @@ class Ot extends T {
|
|
|
271
290
|
}
|
|
272
291
|
load(t, e, i = !0) {
|
|
273
292
|
return c(this, null, function* () {
|
|
274
|
-
function s(
|
|
275
|
-
return Object.prototype.hasOwnProperty.apply(
|
|
293
|
+
function s(f) {
|
|
294
|
+
return Object.prototype.hasOwnProperty.apply(f, ["version"]);
|
|
276
295
|
}
|
|
277
296
|
const a = t;
|
|
278
297
|
a && !a.version && console.warn("\u4F20\u5165 serverData.data \u7684\u65B9\u5F0F\u540E\u7EED\u53EF\u80FD\u4E0D\u518D\u652F\u6301\uFF0C\u8BF7\u628A serverData \u6574\u4F53\u4F20\u5165 load \u51FD\u6570");
|
|
279
|
-
const
|
|
298
|
+
const n = JSON.parse(JSON.stringify(t)), d = s(n) ? n.data : n, u = this.data;
|
|
280
299
|
this.data = yield b(d), this.hooks.emit("dataLoaded", this.data), this.hooks.emit("dataChange", this.data, u), e && this.updateState(e, i), this.render();
|
|
281
300
|
});
|
|
282
301
|
}
|
|
@@ -307,8 +326,8 @@ class Ot extends T {
|
|
|
307
326
|
this.updateState({ config: t }, e), this.render();
|
|
308
327
|
}
|
|
309
328
|
updatePosition() {
|
|
310
|
-
var
|
|
311
|
-
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (
|
|
329
|
+
var n;
|
|
330
|
+
const t = B(this.five, this.floorIndex, this.state.config.attachedTo), e = (n = this.five.model) == null ? void 0 : n.bounding.getCenter(new x.Vector3()).setY(t);
|
|
312
331
|
if (!e)
|
|
313
332
|
return;
|
|
314
333
|
const i = e.clone().project(this.five.camera), s = (i.x + 1) / 2, a = -(i.y - 1) / 2;
|
|
@@ -361,5 +380,5 @@ class Ot extends T {
|
|
|
361
380
|
}
|
|
362
381
|
}
|
|
363
382
|
export {
|
|
364
|
-
|
|
383
|
+
Xt as Controller
|
|
365
384
|
};
|
|
@@ -38,14 +38,33 @@ import "../constant.js";
|
|
|
38
38
|
import "../../base/BasePluginWithData.js";
|
|
39
39
|
import "../../base/BasePlugin.js";
|
|
40
40
|
import "../../shared-utils/Subscribe.js";
|
|
41
|
+
import "@realsee/five";
|
|
42
|
+
import "hammerjs";
|
|
43
|
+
import "@tweenjs/tween.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
45
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
46
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
48
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
49
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
52
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
53
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
57
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
58
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
59
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
41
60
|
import "../../shared-utils/getPxmm.js";
|
|
42
61
|
import "../utils/correctFiveState.js";
|
|
43
62
|
import "../utils/constant.js";
|
|
44
63
|
import "../../shared-utils/nearlyEqual.js";
|
|
45
64
|
import "../../shared-utils/five/changeMode.js";
|
|
46
65
|
import "../../shared-utils/changeModelCanvasOpacity.js";
|
|
47
|
-
const
|
|
66
|
+
const co = (o, r) => new t(o, r);
|
|
48
67
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
68
|
+
co as MapviewFloorplanPlugin,
|
|
69
|
+
co as default
|
|
51
70
|
};
|