@realsee/dnalogel 2.16.0-2 → 2.16.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/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/dist/CruisePlugin/Controller.d.ts +2 -1
- package/dist/CruisePlugin/typing.d.ts +2 -12
- package/dist/GuideLinePlugin/Controller.d.ts +12 -20
- package/dist/GuideLinePlugin/index.d.ts +0 -4
- package/dist/GuideLinePlugin/typing.d.ts +1 -70
- package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/dist/base/BasePlugin.d.ts +0 -1
- package/dist/index.cjs.js +115 -162
- package/dist/index.js +5234 -5141
- package/dist/index.umd.js +116 -163
- package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/dist/shared-utils/index.d.ts +0 -3
- package/dist/shared-utils/logger.d.ts +17 -0
- package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
- package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
- package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -34
- package/docs/classes/CruisePluginController.html +27 -46
- package/docs/classes/Magnifier.html +20 -23
- package/docs/classes/ModelRoomLabelController.html +11 -14
- package/docs/classes/Object3DHelperController.html +24 -43
- package/docs/classes/PaintBrush.html +15 -18
- package/docs/classes/PanoMeasurePluginLine.html +23 -26
- package/docs/classes/PanoMeasurePluginModel.html +22 -25
- package/docs/classes/PanoMeasurePluginPoint.html +14 -17
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
- package/docs/classes/PanoTagPluginController.html +65 -84
- package/docs/classes/Util.BetterTween.html +8 -11
- package/docs/classes/Util.FivePointSelector.html +12 -15
- package/docs/classes/Util.Interval.html +12 -15
- package/docs/classes/Util.Magnifier.html +17 -20
- package/docs/classes/Util.PointDomHelper.html +11 -14
- package/docs/classes/Util.PointHelper.html +11 -14
- package/docs/classes/Util.Rectangle.html +13 -16
- package/docs/enums/CameraMovementEffect.html +7 -10
- package/docs/enums/ContentType.html +19 -22
- package/docs/enums/DIRECTION.html +9 -12
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/DimensionType.html +7 -10
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
- package/docs/enums/PaintBrushTypeEnum.html +8 -11
- package/docs/enums/Rotation.html +8 -11
- package/docs/functions/CSS3DRenderPlugin.html +5 -7
- package/docs/functions/CameraMovementPlugin.html +5 -7
- package/docs/functions/CruisePlugin.html +5 -7
- package/docs/functions/GuideLinePlugin.html +6 -8
- package/docs/functions/ItemLabelPlugin.html +5 -7
- package/docs/functions/MapviewFloorplanPlugin.html +5 -7
- package/docs/functions/ModelChassisCompassPlugin.html +5 -7
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
- package/docs/functions/ModelFloorplanPlugin.html +5 -7
- package/docs/functions/ModelItemLabelPlugin.html +5 -7
- package/docs/functions/ModelRoomLabelPlugin.html +5 -7
- package/docs/functions/ModelTVVideoPlugin.html +5 -7
- package/docs/functions/ModelViewPlugin.html +5 -7
- package/docs/functions/Object3DHelperPlugin.html +5 -7
- package/docs/functions/PanoCompassPlugin.html +5 -7
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
- package/docs/functions/PanoDoorLabelPlugin.html +5 -7
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
- package/docs/functions/PanoMeasurePlugin.html +5 -7
- package/docs/functions/PanoRulerPlugin.html +5 -7
- package/docs/functions/PanoRulerProPlugin.html +5 -7
- package/docs/functions/PanoSpatialTagPlugin.html +5 -7
- package/docs/functions/PanoTagPlugin.html +5 -7
- package/docs/functions/PanoVideoPlugin.html +5 -7
- package/docs/functions/TopviewFloorplanPlugin.html +5 -7
- package/docs/functions/Util.getCoordsFromClient.html +6 -13
- package/docs/functions/Util.getCoordsFromElement.html +6 -13
- package/docs/functions/Util.getFrameTime.html +6 -13
- package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
- package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
- package/docs/functions/Util.isNil.html +6 -13
- package/docs/functions/Util.nextFrame.html +6 -13
- package/docs/functions/Util.notNil.html +6 -13
- package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
- package/docs/functions/Util.tweenProgress.html +6 -13
- package/docs/functions/pluginFlag.html +6 -8
- package/docs/index.html +5 -7
- package/docs/interfaces/AddTagConfig.html +6 -9
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
- package/docs/interfaces/EventMap.html +15 -18
- package/docs/interfaces/FloorplanBounding.html +8 -11
- package/docs/interfaces/FloorplanData.html +10 -13
- package/docs/interfaces/FloorplanEntrance.html +11 -14
- package/docs/interfaces/FloorplanExtraObject.html +10 -13
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
- package/docs/interfaces/FloorplanFloorData.html +9 -12
- package/docs/interfaces/FloorplanImagePosition.html +7 -10
- package/docs/interfaces/FloorplanObserver.html +9 -12
- package/docs/interfaces/FloorplanOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanPosition.html +7 -10
- package/docs/interfaces/FloorplanRoomItem.html +13 -16
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
- package/docs/interfaces/FloorplanServerBounding.html +8 -11
- package/docs/interfaces/FloorplanServerComputedData.html +10 -13
- package/docs/interfaces/FloorplanServerData.html +7 -10
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
- package/docs/interfaces/FloorplanServerEntrance.html +11 -14
- package/docs/interfaces/FloorplanServerFloorData.html +9 -12
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
- package/docs/interfaces/FloorplanServerObserver.html +9 -12
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
- package/docs/interfaces/FloorplanServerPosition.html +7 -10
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
- package/docs/interfaces/HelperOffset.html +8 -11
- package/docs/interfaces/ImagePlaneGroup.html +6 -9
- package/docs/interfaces/ItemLabelPluginData.html +6 -9
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
- package/docs/interfaces/MinMax.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
- package/docs/interfaces/ModelViewPluginExportType.html +11 -14
- package/docs/interfaces/Object3DHelperState.html +8 -11
- package/docs/interfaces/ObjectHelperControllers.html +9 -12
- package/docs/interfaces/PaintBrushAction.html +12 -15
- package/docs/interfaces/PaintBrushConfigs.html +12 -15
- package/docs/interfaces/PaintBrushState.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
- package/docs/interfaces/PanoMeasureParameterType.html +14 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
- package/docs/interfaces/PanoRulerProPluginState.html +8 -11
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
- package/docs/interfaces/Point.html +8 -11
- package/docs/interfaces/Room.html +9 -12
- package/docs/interfaces/RoomInfo.html +7 -10
- package/docs/interfaces/RoomLabel.html +14 -17
- package/docs/interfaces/RoomRules.html +6 -8
- package/docs/interfaces/Rooms.html +6 -8
- package/docs/interfaces/Scissor.html +9 -12
- package/docs/interfaces/State.html +8 -11
- package/docs/interfaces/TagCacheInterface.html +12 -15
- package/docs/interfaces/TagConfig.html +11 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
- package/docs/interfaces/TagIconUrl.html +11 -14
- package/docs/interfaces/TagObjectGroup.html +6 -9
- package/docs/interfaces/TagStyle.html +6 -9
- package/docs/interfaces/Tags.html +10 -13
- package/docs/interfaces/TemporaryState.html +6 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -14
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
- package/docs/modules/PanoVideoPluginType.html +5 -8
- package/docs/modules/Util.html +6 -17
- package/docs/modules.html +7 -11
- package/docs/types/ArrayPosition.html +6 -8
- package/docs/types/AudioAppearance.html +6 -8
- package/docs/types/AudioTagTypeConfigKey.html +6 -8
- package/docs/types/CSS3DRenderExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginExportType.html +6 -8
- package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
- package/docs/types/ClassFunctionParameters.html +6 -8
- package/docs/types/Color.html +6 -8
- package/docs/types/ContentTypeConfigKey.html +6 -8
- package/docs/types/ContentTypeConfigKeySplit.html +6 -8
- package/docs/types/ContentTypeMap.html +6 -8
- package/docs/types/Create3DDomContainerReturnType.html +6 -8
- package/docs/types/Create3DElementReturnType.html +6 -8
- package/docs/types/CruisePluginExportType.html +6 -8
- package/docs/types/Direction-1.html +6 -8
- package/docs/types/Direction4.html +6 -8
- package/docs/types/ElementRenderer.html +288 -0
- package/docs/types/FloorplanRuleLabels.html +6 -8
- package/docs/types/FloorplanServerRuleLabels.html +6 -8
- package/docs/types/GuideLinePluginExportType.html +6 -8
- package/docs/types/HelperEventMap.html +6 -8
- package/docs/types/LoadTagConfig.html +6 -8
- package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/MediaData.html +6 -8
- package/docs/types/MediaStore.html +6 -8
- package/docs/types/ModelElement.html +6 -8
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
- package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
- package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
- package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
- package/docs/types/MoveArgs.html +6 -8
- package/docs/types/MoveOpts.html +6 -8
- package/docs/types/Object3DHelperEventMap.html +6 -8
- package/docs/types/ObjectFit.html +6 -8
- package/docs/types/PaintBrushEventMap.html +6 -8
- package/docs/types/PanoCompassPluginData.html +6 -8
- package/docs/types/PanoCompassPluginExportType.html +6 -8
- package/docs/types/PanoCompassPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
- package/docs/types/PanoIndex.html +6 -8
- package/docs/types/PanoMeasurePluginEvent.html +6 -8
- package/docs/types/PanoMeasureReturnType.html +6 -8
- package/docs/types/PanoSpatialTagPluginId.html +6 -8
- package/docs/types/PanoTagPluginExportInterface.html +6 -8
- package/docs/types/PanoTagPluginParamsInterface.html +6 -8
- package/docs/types/PanoVideoPluginParameterType.html +6 -8
- package/docs/types/PanoVideoPluginReturnType.html +6 -8
- package/docs/types/PlaneTag.html +6 -8
- package/docs/types/PlaneTagElement.html +6 -8
- package/docs/types/Point2DElement.html +6 -8
- package/docs/types/Point2DTag.html +6 -8
- package/docs/types/Point3DElement.html +6 -8
- package/docs/types/Point3DTag.html +6 -8
- package/docs/types/PointTag.html +6 -8
- package/docs/types/PointTagElement.html +6 -8
- package/docs/types/Position.html +6 -8
- package/docs/types/RotateArgs.html +6 -8
- package/docs/types/RotateOpts.html +6 -8
- package/docs/types/RuleLabelsKey.html +6 -8
- package/docs/types/RuleLabelsValue.html +6 -8
- package/docs/types/StickType.html +6 -8
- package/docs/types/Tag.html +7 -9
- package/docs/types/Tag2D.html +6 -8
- package/docs/types/Tag3D.html +6 -8
- package/docs/types/TagContentType.html +6 -8
- package/docs/types/TagDimensionType.html +6 -8
- package/docs/types/TagElement.html +7 -9
- package/docs/types/TagEvents.html +6 -8
- package/docs/types/TagGLTFObject.html +7 -9
- package/docs/types/TagHooks.html +6 -8
- package/docs/types/TagIconSize.html +6 -8
- package/docs/types/TagId.html +6 -8
- package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
- package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
- package/docs/types/WorkCode.html +6 -8
- package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
- package/docs/variables/PLUGIN.html +6 -8
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
- package/docs/variables/ROOM_TYPE_MAP.html +6 -8
- package/docs/variables/itemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
- package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
- package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -40
- package/libs/CSS3DRenderPlugin/index.js +6 -12
- package/libs/CruisePlugin/Controller.d.ts +2 -1
- package/libs/CruisePlugin/Controller.js +174 -197
- package/libs/CruisePlugin/index.js +10 -33
- package/libs/CruisePlugin/typing.d.ts +2 -12
- package/libs/GuideLinePlugin/Controller.d.ts +12 -20
- package/libs/GuideLinePlugin/Controller.js +88 -125
- package/libs/GuideLinePlugin/index.d.ts +0 -4
- package/libs/GuideLinePlugin/index.js +7 -33
- package/libs/GuideLinePlugin/typing.d.ts +1 -70
- package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
- package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
- package/libs/ModelTVVideoPlugin/index.js +5 -11
- package/libs/Object3DHelperPlugin/Controller.js +28 -33
- package/libs/Object3DHelperPlugin/index.js +13 -18
- package/libs/PanoCompassPlugin/Controller.js +6 -8
- package/libs/PanoCompassPlugin/index.js +10 -12
- package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
- package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
- package/libs/PanoDoorLabelPlugin/index.js +3 -21
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
- package/libs/PanoSpatialTagPlugin/index.js +3 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
- package/libs/PanoTagPlugin/controller/TagComputer.js +4 -5
- package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
- package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
- package/libs/PanoTagPlugin/controller/index.js +22 -15
- package/libs/PanoTagPlugin/index.js +17 -13
- package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
- package/libs/PanoTagPlugin/typings/index.js +6 -4
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
- package/libs/PanoTagPlugin/utils/index.js +35 -33
- package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +69 -0
- package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
- package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
- package/libs/PanoVideoPlugin/Controller.js +3 -4
- package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
- package/libs/PanoVideoPlugin/index.js +6 -7
- package/libs/base/BasePlugin.d.ts +0 -1
- package/libs/base/BasePlugin.js +10 -21
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
- package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
- package/libs/floorplan/index.js +0 -6
- package/libs/index.js +120 -118
- package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
- package/libs/shared-utils/five/FiveDomEvents.js +77 -0
- package/libs/shared-utils/index.d.ts +0 -3
- package/libs/shared-utils/index.js +29 -36
- package/libs/shared-utils/logger.d.ts +17 -0
- package/libs/shared-utils/logger.js +16 -0
- package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
- package/libs/shared-utils/math/pointIsRectangle.js +10 -0
- package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
- package/libs/shared-utils/offscreenCanvas.js +12 -0
- package/libs/shared-utils/three/PointDomHelper.js +1 -1
- package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
- package/libs/shared-utils/three/Quadrangle.js +41 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
- package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
- package/libs/shared-utils/three/loadTexture.js +19 -21
- package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
- package/libs/shared-utils/three/loadVideoTexture.js +14 -0
- package/package.json +2 -2
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
- package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/dist/shared-utils/five/index.d.ts +0 -1
- package/dist/shared-utils/five/mode.d.ts +0 -3
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/log.d.ts +0 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
- package/docs/functions/Util.isAbsoluteURL.html +0 -79
- package/docs/functions/Util.isModelLike.html +0 -79
- package/docs/functions/Util.isPanoramaLike.html +0 -79
- package/docs/functions/Util.uuid.html +0 -76
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -108
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
- package/docs/modules/GuideLineItem.html +0 -53
- package/docs/modules/GuideLineModeItem.html +0 -53
- package/docs/modules/GuideLinePluginType.html +0 -99
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
- package/docs/types/GuideLinePluginType.PathItem.html +0 -67
- package/docs/types/GuideLinePluginType.PluginData.html +0 -65
- package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
- package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -231
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
- package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -19
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
- package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
- package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
- package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
- package/libs/GuideLinePlugin/utils/index.js +0 -32
- package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
- package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
- package/libs/shared-utils/five/index.d.ts +0 -1
- package/libs/shared-utils/five/index.js +0 -1
- package/libs/shared-utils/five/mode.d.ts +0 -3
- package/libs/shared-utils/five/mode.js +0 -11
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/log.d.ts +0 -2
- package/libs/shared-utils/log.js +0 -10
|
@@ -1,79 +1,60 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var d = Object.defineProperty, u = Object.defineProperties;
|
|
2
|
+
var b = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var o = Object.getOwnPropertySymbols;
|
|
4
|
+
var p = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var n = (s, e, t) => e in s ? d(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, i = (s, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
import { Five as
|
|
15
|
-
import { Controller as
|
|
7
|
+
p.call(e, t) && n(s, t, e[t]);
|
|
8
|
+
if (o)
|
|
9
|
+
for (var t of o(e))
|
|
10
|
+
v.call(e, t) && n(s, t, e[t]);
|
|
11
|
+
return s;
|
|
12
|
+
}, a = (s, e) => u(s, b(e));
|
|
13
|
+
var r = (s, e, t) => (n(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import { Five as c } from "@realsee/five";
|
|
15
|
+
import { Controller as f } from "../base/BasePlugin.js";
|
|
16
16
|
import "../shared-utils/Subscribe.js";
|
|
17
|
-
|
|
18
|
-
import "three";
|
|
19
|
-
import "@tweenjs/tween.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
22
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
23
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
25
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
26
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
28
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
29
|
-
import "../shared-utils/three/centerPoint.js";
|
|
30
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
31
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
32
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
33
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
34
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
35
|
-
import "../shared-utils/animationFrame/index.js";
|
|
36
|
-
class K extends c {
|
|
17
|
+
class g extends f {
|
|
37
18
|
constructor(t) {
|
|
38
19
|
super(t);
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
20
|
+
r(this, "state");
|
|
21
|
+
r(this, "container");
|
|
22
|
+
r(this, "enabled");
|
|
42
23
|
this.five = t, this.five.once("dispose", this.dispose), this.enabled = !0, this.state = this.initState();
|
|
43
24
|
}
|
|
44
25
|
enable(t) {
|
|
45
|
-
this.enabled = !0, this.updateState(
|
|
26
|
+
this.enabled = !0, this.updateState(a(i({}, t), { userAction: !0 }));
|
|
46
27
|
}
|
|
47
28
|
disable(t) {
|
|
48
|
-
this.enabled = !1, this.updateState(
|
|
29
|
+
this.enabled = !1, this.updateState(a(i({}, t), { userAction: !0 }));
|
|
49
30
|
}
|
|
50
31
|
show(t) {
|
|
51
32
|
if (!!this.state.enabled)
|
|
52
|
-
return this.setState(
|
|
33
|
+
return this.setState(a(i({}, this.state), { visible: !0 }), t), Promise.resolve();
|
|
53
34
|
}
|
|
54
35
|
hide(t) {
|
|
55
36
|
if (!!this.state.enabled)
|
|
56
|
-
return this.setState(
|
|
37
|
+
return this.setState(a(i({}, this.state), { visible: !1 }), t), Promise.resolve();
|
|
57
38
|
}
|
|
58
39
|
dispose() {
|
|
59
40
|
this.container.remove();
|
|
60
41
|
}
|
|
61
|
-
setState(t,
|
|
42
|
+
setState(t, h) {
|
|
62
43
|
if (!this.enabled)
|
|
63
44
|
return;
|
|
64
|
-
const
|
|
65
|
-
this.state =
|
|
45
|
+
const l = i({}, this.state);
|
|
46
|
+
this.state = i(i(i({}, this.state), t), h), this.stateChangedCallback(l, h);
|
|
66
47
|
}
|
|
67
48
|
get visible() {
|
|
68
|
-
return this.five.state.mode ===
|
|
49
|
+
return this.five.state.mode === c.Mode.Panorama;
|
|
69
50
|
}
|
|
70
51
|
appendTo(t) {
|
|
71
52
|
!this.enabled || (this.container = t, this.render());
|
|
72
53
|
}
|
|
73
54
|
updateState(t) {
|
|
74
|
-
this.setState(
|
|
55
|
+
this.setState(a(i({}, this.state), { enabled: this.enabled, visible: this.visible }), t);
|
|
75
56
|
}
|
|
76
57
|
}
|
|
77
58
|
export {
|
|
78
|
-
|
|
59
|
+
g as BasePanoPluginController
|
|
79
60
|
};
|
|
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, B = Object.defineProperties;
|
|
|
2
2
|
var U = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var C = Object.getOwnPropertySymbols;
|
|
4
4
|
var G = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var T = (
|
|
5
|
+
var T = (v, a, e) => a in v ? $(v, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : v[a] = e, H = (v, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
G.call(a, e) && T(
|
|
7
|
+
G.call(a, e) && T(v, e, a[e]);
|
|
8
8
|
if (C)
|
|
9
9
|
for (var e of C(a))
|
|
10
|
-
N.call(a, e) && T(
|
|
11
|
-
return
|
|
12
|
-
}, W = (
|
|
13
|
-
var r = (
|
|
10
|
+
N.call(a, e) && T(v, e, a[e]);
|
|
11
|
+
return v;
|
|
12
|
+
}, W = (v, a) => B(v, U(a));
|
|
13
|
+
var r = (v, a, e) => (T(v, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
import { Raycaster as Q, Vector3 as V, Quaternion as j, Euler as z } from "three";
|
|
15
15
|
import { BasePanoPluginController as q } from "./BaseController.js";
|
|
16
16
|
import X from "./DoorLabelItem.js";
|
|
@@ -18,28 +18,10 @@ import { getCameraToward as Y, isTwoRectOverlaped as Z, getDistance as J, getTow
|
|
|
18
18
|
import "@realsee/five";
|
|
19
19
|
import "../base/BasePlugin.js";
|
|
20
20
|
import "../shared-utils/Subscribe.js";
|
|
21
|
-
import "hammerjs";
|
|
22
|
-
import "@tweenjs/tween.js";
|
|
23
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
24
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
25
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
26
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
27
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
28
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
29
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
30
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
31
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
32
|
-
import "../shared-utils/three/centerPoint.js";
|
|
33
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
34
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
35
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
36
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
37
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
38
|
-
import "../shared-utils/animationFrame/index.js";
|
|
39
21
|
import "../vendor/svelte/internal/index.js";
|
|
40
22
|
import "classnames";
|
|
41
23
|
const ee = { userAction: !0 };
|
|
42
|
-
class
|
|
24
|
+
class fe extends q {
|
|
43
25
|
constructor(e) {
|
|
44
26
|
super(e);
|
|
45
27
|
r(this, "MinVisibledistance", 1.8);
|
|
@@ -92,10 +74,10 @@ class Oe extends q {
|
|
|
92
74
|
const i = s.position.clone(), t = i.distanceTo(l);
|
|
93
75
|
if (t < this.MinVisibledistance || t > this.MaxVisibledistance)
|
|
94
76
|
return;
|
|
95
|
-
const c = new Q(),
|
|
96
|
-
c.set(l,
|
|
97
|
-
const [
|
|
98
|
-
|
|
77
|
+
const c = new Q(), b = i.clone().sub(l).normalize();
|
|
78
|
+
c.set(l, b);
|
|
79
|
+
const [p] = this.five.model.intersectRaycaster(c);
|
|
80
|
+
p && p.distance + 0.1 < t || o.push(f);
|
|
99
81
|
}), this.visibleLabelMap.set(e, o), o;
|
|
100
82
|
}
|
|
101
83
|
})();
|
|
@@ -104,7 +86,7 @@ class Oe extends q {
|
|
|
104
86
|
}), this.fixDoorPosition();
|
|
105
87
|
});
|
|
106
88
|
r(this, "fixDoorPosition", () => {
|
|
107
|
-
var i, t, c,
|
|
89
|
+
var i, t, c, b, p, y, g, w, L, E, _, S;
|
|
108
90
|
const { panoIndex: e, camera: n } = this.five;
|
|
109
91
|
if (e === null)
|
|
110
92
|
return;
|
|
@@ -128,7 +110,7 @@ class Oe extends q {
|
|
|
128
110
|
left: l * M / 100,
|
|
129
111
|
top: h * k / 100,
|
|
130
112
|
width: (c = (t = (i = I.children) == null ? void 0 : i[0]) == null ? void 0 : t.clientWidth) != null ? c : 0,
|
|
131
|
-
height: (y = (
|
|
113
|
+
height: (y = (p = (b = I.children) == null ? void 0 : b[0]) == null ? void 0 : p.clientHeight) != null ? y : 0
|
|
132
114
|
}, F = {
|
|
133
115
|
left: l * O / 100,
|
|
134
116
|
top: h * P / 100,
|
|
@@ -155,8 +137,8 @@ class Oe extends q {
|
|
|
155
137
|
if (o > 0) {
|
|
156
138
|
const i = new V(0, 0, -1), t = h.clone(), c = new j();
|
|
157
139
|
c.setFromUnitVectors(i, t);
|
|
158
|
-
const
|
|
159
|
-
|
|
140
|
+
const b = new z();
|
|
141
|
+
b.setFromQuaternion(c, "YXZ"), s.longitude = b.y;
|
|
160
142
|
}
|
|
161
143
|
this.five.emit("wantsToMoveToPano", l, {}, !0) || this.five.moveToPano(l, { longitude: s.longitude });
|
|
162
144
|
}
|
|
@@ -170,20 +152,20 @@ class Oe extends q {
|
|
|
170
152
|
const o = (f = this.floorplanServerData.computed_data.doors) == null ? void 0 : f.filter((i) => !!(i && i.name === h.name)), s = this.five.work.observers.filter((i, t) => !!h.observer_indexs.find((c) => c === t));
|
|
171
153
|
o && o.forEach((i) => {
|
|
172
154
|
const t = i.position;
|
|
173
|
-
let c = 1 / 0,
|
|
155
|
+
let c = 1 / 0, b;
|
|
174
156
|
s.forEach((y) => {
|
|
175
157
|
const g = y.standingPosition, w = {
|
|
176
158
|
x: g.x,
|
|
177
159
|
y: g.y,
|
|
178
160
|
z: g.z
|
|
179
161
|
}, L = J(t, w);
|
|
180
|
-
L < c && (c = L,
|
|
181
|
-
}),
|
|
182
|
-
const
|
|
183
|
-
|
|
162
|
+
L < c && (c = L, b = w);
|
|
163
|
+
}), b && (t.y = b.y + 0.01);
|
|
164
|
+
const p = new V(t.x, t.y, t.z);
|
|
165
|
+
p.add(new V(-0.2, 1.8, 0).applyEuler(new z(0, i.rad, 0))), this.doorLabels.push({
|
|
184
166
|
roomName: h.name,
|
|
185
167
|
name: i.name,
|
|
186
|
-
position:
|
|
168
|
+
position: p,
|
|
187
169
|
toward: K(i.rad)
|
|
188
170
|
});
|
|
189
171
|
});
|
|
@@ -238,5 +220,5 @@ class Oe extends q {
|
|
|
238
220
|
}
|
|
239
221
|
}
|
|
240
222
|
export {
|
|
241
|
-
|
|
223
|
+
fe as PanoDoorLabelPluginController
|
|
242
224
|
};
|
|
@@ -4,30 +4,12 @@ import "./BaseController.js";
|
|
|
4
4
|
import "@realsee/five";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
7
|
-
import "hammerjs";
|
|
8
|
-
import "@tweenjs/tween.js";
|
|
9
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
10
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
11
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
12
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
13
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
14
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
15
|
-
import "../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
16
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
17
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
18
|
-
import "../shared-utils/three/centerPoint.js";
|
|
19
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
20
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
21
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
23
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
-
import "../shared-utils/animationFrame/index.js";
|
|
25
7
|
import "./DoorLabelItem.js";
|
|
26
8
|
import "../vendor/svelte/internal/index.js";
|
|
27
9
|
import "classnames";
|
|
28
10
|
import "./utils.js";
|
|
29
|
-
const
|
|
11
|
+
const b = (o) => new r(o);
|
|
30
12
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
b as PanoDoorLabelPlugin,
|
|
14
|
+
b as default
|
|
33
15
|
};
|
|
@@ -1,20 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import "hammerjs";
|
|
3
|
-
import "three";
|
|
4
|
-
import "@tweenjs/tween.js";
|
|
5
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
6
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
7
|
-
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
8
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
9
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
10
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
11
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
12
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
13
|
-
import "../../shared-utils/Subscribe.js";
|
|
14
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
15
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
16
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
17
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
18
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
19
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
1
|
+
|
|
@@ -21,15 +21,10 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
22
22
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
23
23
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
24
|
-
import "hammerjs";
|
|
25
|
-
import "@tweenjs/tween.js";
|
|
26
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
27
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
28
|
-
import "../shared-utils/animationFrame/index.js";
|
|
29
24
|
import "../vendor/svelte/internal/index.js";
|
|
30
25
|
import "./store.js";
|
|
31
26
|
import "../vendor/svelte/store/index.js";
|
|
32
|
-
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png",
|
|
27
|
+
const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Qe = (n, s) => {
|
|
33
28
|
var k, z, q, B, G, J, K, Q;
|
|
34
29
|
let j = s == null ? void 0 : s.container, y = 1.4;
|
|
35
30
|
const ee = (k = s == null ? void 0 : s.wait) != null ? k : 200, oe = (z = s == null ? void 0 : s.maxNumberOnScreen) != null ? z : 3, I = (q = s == null ? void 0 : s.minRad) != null ? q : Math.PI / 4, L = (B = s == null ? void 0 : s.nearTolerance) != null ? B : 100, te = (G = s == null ? void 0 : s.upsideHeight) != null ? G : 1.6, A = (J = s == null ? void 0 : s.minDistance) != null ? J : 1.2, f = (K = s == null ? void 0 : s.maxDistance) != null ? K : 3.5, C = Te(n), S = document.createElement("div");
|
|
@@ -266,6 +261,6 @@ const D = 1e-3, v = 0.01, je = "https://vrlab-image4.ljcdn.com/release/web/PanoS
|
|
|
266
261
|
};
|
|
267
262
|
};
|
|
268
263
|
export {
|
|
269
|
-
|
|
270
|
-
|
|
264
|
+
Qe as PanoSpatialTagPlugin,
|
|
265
|
+
Qe as default
|
|
271
266
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Plugin.js";
|
|
2
|
-
import { PanoSpatialTagPlugin as
|
|
2
|
+
import { PanoSpatialTagPlugin as B, PanoSpatialTagPlugin as C } from "./Plugin.js";
|
|
3
3
|
import "three";
|
|
4
4
|
import "@realsee/five";
|
|
5
5
|
import "../CSS3DRenderPlugin/index.js";
|
|
@@ -19,11 +19,6 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
19
19
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
21
21
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
22
|
-
import "hammerjs";
|
|
23
|
-
import "@tweenjs/tween.js";
|
|
24
|
-
import "../shared-utils/isAbsoluteURL.js";
|
|
25
|
-
import "../shared-utils/animationFrame/BetterTween.js";
|
|
26
|
-
import "../shared-utils/animationFrame/index.js";
|
|
27
22
|
import "./Components/origins.js";
|
|
28
23
|
import "../vendor/svelte/internal/index.js";
|
|
29
24
|
import "./store.js";
|
|
@@ -32,6 +27,6 @@ import "./Components/tag.js";
|
|
|
32
27
|
import "./style.js";
|
|
33
28
|
import "../shared-utils/tinyEJSrender.js";
|
|
34
29
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
B as PanoSpatialTagPlugin,
|
|
31
|
+
C as default
|
|
37
32
|
};
|
|
@@ -31,6 +31,8 @@ import "three";
|
|
|
31
31
|
import { noTypecheck as W } from "../../../utils/noTypecheck.js";
|
|
32
32
|
import "@realsee/five/gltf-loader";
|
|
33
33
|
import "../../../../shared-utils/three/loadTexture.js";
|
|
34
|
+
import "@realsee/five";
|
|
35
|
+
import "../../../../shared-utils/threex/domevents/index.js";
|
|
34
36
|
import { getKeyframeInfo as se, getImageInfo as fe } from "../../../utils/getImageInfo.js";
|
|
35
37
|
import g from "../../../utils/px2rem.js";
|
|
36
38
|
import ce from "../Shadow.js";
|
|
@@ -329,11 +331,11 @@ function We(e, i, o) {
|
|
|
329
331
|
l
|
|
330
332
|
];
|
|
331
333
|
}
|
|
332
|
-
class
|
|
334
|
+
class Ee extends $ {
|
|
333
335
|
constructor(i) {
|
|
334
336
|
super(), x(this, i, We, ye, ee, { width: 1, icon: 12, shadow: 0 }, de);
|
|
335
337
|
}
|
|
336
338
|
}
|
|
337
339
|
export {
|
|
338
|
-
|
|
340
|
+
Ee as default
|
|
339
341
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SvelteComponent as ae, init as le, safe_not_equal as oe, append_styles as re, empty as U, insert as
|
|
1
|
+
import { SvelteComponent as ae, init as le, safe_not_equal as oe, append_styles as re, empty as U, insert as D, transition_in as c, transition_out as p, check_outros as q, detach as w, getContext as F, onMount as me, onDestroy as se, element as G, attr as H, toggle_class as y, append as ue, group_outros as M, add_render_callback as fe, create_in_transition as de, identity as J, create_out_transition as ce, binding_callbacks as E, assign as W, bind as X, create_component as S, mount_component as N, get_spread_update as Y, get_spread_object as Z, add_flush_callback as x, destroy_component as j, destroy_each as _e } from "../../../vendor/svelte/internal/index.js";
|
|
2
2
|
import { Carousel as ge } from "../../../vendor/svelte-carousel/src/components/Carousel/Carousel.js";
|
|
3
3
|
import { fly as K } from "../../../vendor/svelte/transition/index.js";
|
|
4
4
|
import $ from "./MediaItem.js";
|
|
@@ -40,37 +40,37 @@ function P(t, i, l) {
|
|
|
40
40
|
return n[25] = i[l], n[26] = i, n[27] = l, n;
|
|
41
41
|
}
|
|
42
42
|
function Q(t) {
|
|
43
|
-
let i, l, n, e,
|
|
44
|
-
const o = [he, be],
|
|
45
|
-
function
|
|
43
|
+
let i, l, n, e, s, r, a;
|
|
44
|
+
const o = [he, be], u = [];
|
|
45
|
+
function I(f, _) {
|
|
46
46
|
return f[13] && f[10].length > 1 ? 0 : 1;
|
|
47
47
|
}
|
|
48
|
-
return n =
|
|
48
|
+
return n = I(t), e = u[n] = o[n](t), {
|
|
49
49
|
c() {
|
|
50
|
-
i = G("div"), l = G("div"), e.c(), H(l, "class", "media-list svelte-1mrbqlg"),
|
|
50
|
+
i = G("div"), l = G("div"), e.c(), H(l, "class", "media-list svelte-1mrbqlg"), y(l, "carouselEnabled", t[13]), H(i, "class", "media-list-wrapper svelte-1mrbqlg"), y(i, "unfolded", t[5]);
|
|
51
51
|
},
|
|
52
52
|
m(f, _) {
|
|
53
|
-
|
|
53
|
+
D(f, i, _), ue(i, l), u[n].m(l, null), a = !0;
|
|
54
54
|
},
|
|
55
55
|
p(f, _) {
|
|
56
56
|
t = f;
|
|
57
57
|
let b = n;
|
|
58
|
-
n =
|
|
59
|
-
|
|
60
|
-
}),
|
|
58
|
+
n = I(t), n === b ? u[n].p(t, _) : (M(), p(u[b], 1, 1, () => {
|
|
59
|
+
u[b] = null;
|
|
60
|
+
}), q(), e = u[n], e ? e.p(t, _) : (e = u[n] = o[n](t), e.c()), c(e, 1), e.m(l, null)), (!a || _ & 8192) && y(l, "carouselEnabled", t[13]), (!a || _ & 32) && y(i, "unfolded", t[5]);
|
|
61
61
|
},
|
|
62
62
|
i(f) {
|
|
63
63
|
a || (c(e), f && fe(() => {
|
|
64
|
-
r && r.end(1),
|
|
64
|
+
r && r.end(1), s = de(i, K, t[6] ? {
|
|
65
65
|
y: 4,
|
|
66
66
|
duration: t[4],
|
|
67
67
|
delay: t[2],
|
|
68
68
|
easing: J
|
|
69
|
-
} : void 0),
|
|
69
|
+
} : void 0), s.start();
|
|
70
70
|
}), a = !0);
|
|
71
71
|
},
|
|
72
72
|
o(f) {
|
|
73
|
-
p(e),
|
|
73
|
+
p(e), s && s.invalidate(), f && (r = ce(i, K, t[6] ? {
|
|
74
74
|
y: 4,
|
|
75
75
|
duration: t[4],
|
|
76
76
|
delay: t[3],
|
|
@@ -78,7 +78,7 @@ function Q(t) {
|
|
|
78
78
|
} : void 0)), a = !1;
|
|
79
79
|
},
|
|
80
80
|
d(f) {
|
|
81
|
-
f && w(i),
|
|
81
|
+
f && w(i), u[n].d(), f && r && r.end();
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
}
|
|
@@ -89,13 +89,13 @@ function be(t) {
|
|
|
89
89
|
t[7],
|
|
90
90
|
{ tag: t[0] }
|
|
91
91
|
];
|
|
92
|
-
function
|
|
92
|
+
function s(a) {
|
|
93
93
|
t[20](a);
|
|
94
94
|
}
|
|
95
95
|
let r = {};
|
|
96
96
|
for (let a = 0; a < e.length; a += 1)
|
|
97
97
|
r = W(r, e[a]);
|
|
98
|
-
return t[8][0] !== void 0 && (r.mediaInstance = t[8][0]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance",
|
|
98
|
+
return t[8][0] !== void 0 && (r.mediaInstance = t[8][0]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance", s)), {
|
|
99
99
|
c() {
|
|
100
100
|
S(i.$$.fragment);
|
|
101
101
|
},
|
|
@@ -103,12 +103,12 @@ function be(t) {
|
|
|
103
103
|
N(i, a, o), n = !0;
|
|
104
104
|
},
|
|
105
105
|
p(a, o) {
|
|
106
|
-
const
|
|
106
|
+
const u = o & 131 ? Y(e, [
|
|
107
107
|
o & 2 && { media: a[1][0] },
|
|
108
108
|
o & 128 && Z(a[7]),
|
|
109
109
|
o & 1 && { tag: a[0] }
|
|
110
110
|
]) : {};
|
|
111
|
-
!l && o & 256 && (l = !0,
|
|
111
|
+
!l && o & 256 && (l = !0, u.mediaInstance = a[8][0], x(() => l = !1)), i.$set(u);
|
|
112
112
|
},
|
|
113
113
|
i(a) {
|
|
114
114
|
n || (c(i.$$.fragment, a), n = !0);
|
|
@@ -125,19 +125,19 @@ function he(t) {
|
|
|
125
125
|
let i, l, n = {
|
|
126
126
|
dots: !1,
|
|
127
127
|
arrows: !1,
|
|
128
|
-
$$slots: { default: [
|
|
128
|
+
$$slots: { default: [Ie] },
|
|
129
129
|
$$scope: { ctx: t }
|
|
130
130
|
};
|
|
131
131
|
return i = new ge({ props: n }), t[18](i), i.$on("pageChange", t[19]), {
|
|
132
132
|
c() {
|
|
133
133
|
S(i.$$.fragment);
|
|
134
134
|
},
|
|
135
|
-
m(e,
|
|
136
|
-
N(i, e,
|
|
135
|
+
m(e, s) {
|
|
136
|
+
N(i, e, s), l = !0;
|
|
137
137
|
},
|
|
138
|
-
p(e,
|
|
138
|
+
p(e, s) {
|
|
139
139
|
const r = {};
|
|
140
|
-
|
|
140
|
+
s & 268436865 && (r.$$scope = { dirty: s, ctx: e }), i.$set(r);
|
|
141
141
|
},
|
|
142
142
|
i(e) {
|
|
143
143
|
l || (c(i.$$.fragment, e), l = !0);
|
|
@@ -157,13 +157,13 @@ function R(t) {
|
|
|
157
157
|
{ media: t[25] },
|
|
158
158
|
{ tag: t[0] }
|
|
159
159
|
];
|
|
160
|
-
function
|
|
160
|
+
function s(a) {
|
|
161
161
|
t[17](a, t[27]);
|
|
162
162
|
}
|
|
163
163
|
let r = {};
|
|
164
164
|
for (let a = 0; a < e.length; a += 1)
|
|
165
165
|
r = W(r, e[a]);
|
|
166
|
-
return t[8][t[27]] !== void 0 && (r.mediaInstance = t[8][t[27]]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance",
|
|
166
|
+
return t[8][t[27]] !== void 0 && (r.mediaInstance = t[8][t[27]]), i = new $({ props: r }), E.push(() => X(i, "mediaInstance", s)), {
|
|
167
167
|
c() {
|
|
168
168
|
S(i.$$.fragment);
|
|
169
169
|
},
|
|
@@ -172,12 +172,12 @@ function R(t) {
|
|
|
172
172
|
},
|
|
173
173
|
p(a, o) {
|
|
174
174
|
t = a;
|
|
175
|
-
const
|
|
175
|
+
const u = o & 1153 ? Y(e, [
|
|
176
176
|
o & 128 && Z(t[7]),
|
|
177
177
|
o & 1024 && { media: t[25] },
|
|
178
178
|
o & 1 && { tag: t[0] }
|
|
179
179
|
]) : {};
|
|
180
|
-
!l && o & 256 && (l = !0,
|
|
180
|
+
!l && o & 256 && (l = !0, u.mediaInstance = t[8][t[27]], x(() => l = !1)), i.$set(u);
|
|
181
181
|
},
|
|
182
182
|
i(a) {
|
|
183
183
|
n || (c(i.$$.fragment, a), n = !0);
|
|
@@ -190,11 +190,11 @@ function R(t) {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function Ie(t) {
|
|
194
194
|
let i, l, n = t[10], e = [];
|
|
195
195
|
for (let r = 0; r < n.length; r += 1)
|
|
196
196
|
e[r] = R(P(t, n, r));
|
|
197
|
-
const
|
|
197
|
+
const s = (r) => p(e[r], 1, 1, () => {
|
|
198
198
|
e[r] = null;
|
|
199
199
|
});
|
|
200
200
|
return {
|
|
@@ -206,19 +206,19 @@ function ye(t) {
|
|
|
206
206
|
m(r, a) {
|
|
207
207
|
for (let o = 0; o < e.length; o += 1)
|
|
208
208
|
e[o].m(r, a);
|
|
209
|
-
|
|
209
|
+
D(r, i, a), l = !0;
|
|
210
210
|
},
|
|
211
211
|
p(r, a) {
|
|
212
212
|
if (a & 1409) {
|
|
213
213
|
n = r[10];
|
|
214
214
|
let o;
|
|
215
215
|
for (o = 0; o < n.length; o += 1) {
|
|
216
|
-
const
|
|
217
|
-
e[o] ? (e[o].p(
|
|
216
|
+
const u = P(r, n, o);
|
|
217
|
+
e[o] ? (e[o].p(u, a), c(e[o], 1)) : (e[o] = R(u), e[o].c(), c(e[o], 1), e[o].m(i.parentNode, i));
|
|
218
218
|
}
|
|
219
219
|
for (M(), o = n.length; o < e.length; o += 1)
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
s(o);
|
|
221
|
+
q();
|
|
222
222
|
}
|
|
223
223
|
},
|
|
224
224
|
i(r) {
|
|
@@ -239,19 +239,19 @@ function ye(t) {
|
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function ye(t) {
|
|
243
243
|
let i, l, n = t[5] && Q(t);
|
|
244
244
|
return {
|
|
245
245
|
c() {
|
|
246
246
|
n && n.c(), i = U();
|
|
247
247
|
},
|
|
248
|
-
m(e,
|
|
249
|
-
n && n.m(e,
|
|
248
|
+
m(e, s) {
|
|
249
|
+
n && n.m(e, s), D(e, i, s), l = !0;
|
|
250
250
|
},
|
|
251
|
-
p(e, [
|
|
252
|
-
e[5] ? n ? (n.p(e,
|
|
251
|
+
p(e, [s]) {
|
|
252
|
+
e[5] ? n ? (n.p(e, s), s & 32 && c(n, 1)) : (n = Q(e), n.c(), c(n, 1), n.m(i.parentNode, i)) : n && (M(), p(n, 1, 1, () => {
|
|
253
253
|
n = null;
|
|
254
|
-
}),
|
|
254
|
+
}), q());
|
|
255
255
|
},
|
|
256
256
|
i(e) {
|
|
257
257
|
l || (c(n), l = !0);
|
|
@@ -265,7 +265,7 @@ function Ie(t) {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
function ke(t, i, l) {
|
|
268
|
-
let n, e,
|
|
268
|
+
let n, e, s, r, { tag: a } = i, { mediaData: o } = i, { inDelay: u = 0 } = i, { outDelay: I = 0 } = i, { duration: f = 0 } = i, { unfolded: _ = !0 } = i, { animation: b = !0 } = i, { mediaItemConfig: L } = i, { enableCarousel: k = !0 } = i, { autoplayConfig: C = { autoplay: !0, autoplayVideo: !1 } } = i, g = [], v = 0, h, B = null;
|
|
269
269
|
const O = F("hooks"), T = F("mediaStore");
|
|
270
270
|
function V() {
|
|
271
271
|
const m = g[v], d = m == null ? void 0 : m.videoInstance;
|
|
@@ -274,14 +274,14 @@ function ke(t, i, l) {
|
|
|
274
274
|
me(() => {
|
|
275
275
|
O.on("click", (m) => {
|
|
276
276
|
var d, z, A;
|
|
277
|
-
!((A = (z = (d = a.tag3DContentSvelte) == null ? void 0 : d.
|
|
277
|
+
!((A = (z = (d = a.tag3DContentSvelte) == null ? void 0 : d.css3DInstance) == null ? void 0 : z.css3DObject) != null && A.opacityMesh) || m.tag.id === a.id && V();
|
|
278
278
|
}), B = setInterval(
|
|
279
279
|
() => {
|
|
280
280
|
r && (h == null || h.goToNext());
|
|
281
281
|
},
|
|
282
282
|
3e3
|
|
283
283
|
);
|
|
284
|
-
}),
|
|
284
|
+
}), se(() => {
|
|
285
285
|
clearInterval(B), O.off("click", V);
|
|
286
286
|
});
|
|
287
287
|
function ee(m, d) {
|
|
@@ -299,21 +299,21 @@ function ke(t, i, l) {
|
|
|
299
299
|
t.$$.not_equal(g[0], m) && (g[0] = m, l(8, g));
|
|
300
300
|
}
|
|
301
301
|
return t.$$set = (m) => {
|
|
302
|
-
"tag" in m && l(0, a = m.tag), "mediaData" in m && l(1, o = m.mediaData), "inDelay" in m && l(2,
|
|
302
|
+
"tag" in m && l(0, a = m.tag), "mediaData" in m && l(1, o = m.mediaData), "inDelay" in m && l(2, u = m.inDelay), "outDelay" in m && l(3, I = m.outDelay), "duration" in m && l(4, f = m.duration), "unfolded" in m && l(5, _ = m.unfolded), "animation" in m && l(6, b = m.animation), "mediaItemConfig" in m && l(7, L = m.mediaItemConfig), "enableCarousel" in m && l(15, k = m.enableCarousel), "autoplayConfig" in m && l(16, C = m.autoplayConfig);
|
|
303
303
|
}, t.$$.update = () => {
|
|
304
|
-
t.$$.dirty & 256 && l(9, n = g.every((m) => m.paused)), t.$$.dirty & 32770 && l(13, e = k && (o == null ? void 0 : o.length) > 1), t.$$.dirty & 2 && l(10,
|
|
304
|
+
t.$$.dirty & 256 && l(9, n = g.every((m) => m.paused)), t.$$.dirty & 32770 && l(13, e = k && (o == null ? void 0 : o.length) > 1), t.$$.dirty & 2 && l(10, s = o), t.$$.dirty & 67072 && (r = s.length > 1 && C.autoplay && n);
|
|
305
305
|
}, [
|
|
306
306
|
a,
|
|
307
307
|
o,
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
u,
|
|
309
|
+
I,
|
|
310
310
|
f,
|
|
311
311
|
_,
|
|
312
312
|
b,
|
|
313
313
|
L,
|
|
314
314
|
g,
|
|
315
315
|
n,
|
|
316
|
-
|
|
316
|
+
s,
|
|
317
317
|
v,
|
|
318
318
|
h,
|
|
319
319
|
e,
|
|
@@ -332,7 +332,7 @@ class it extends ae {
|
|
|
332
332
|
this,
|
|
333
333
|
i,
|
|
334
334
|
ke,
|
|
335
|
-
|
|
335
|
+
ye,
|
|
336
336
|
oe,
|
|
337
337
|
{
|
|
338
338
|
tag: 0,
|