@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.11
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/components/index.js +329 -329
- package/dist/CSS3DRenderPlugin/Controller.d.ts +4 -1
- package/dist/GuideLinePlugin/Controller.d.ts +5 -3
- package/dist/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
- package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/dist/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/icons/index.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +17 -18
- package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +6 -3
- package/dist/PanoMeasurePlugin/Model/area.d.ts +13 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/line.d.ts +3 -0
- package/dist/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +16 -12
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +9 -3
- package/dist/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/dist/PanoMeasurePlugin/typings/data.d.ts +8 -2
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +8 -1
- package/dist/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
- package/dist/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -4
- package/dist/base/BasePlugin.d.ts +4 -1
- package/dist/components/PaintBrush/style.d.ts +1 -1
- package/dist/index.cjs.js +72 -68
- package/dist/index.js +8323 -7015
- package/dist/index.umd.js +65 -61
- package/dist/shared-utils/absoluteUrl.d.ts +5 -0
- package/dist/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +1 -1
- package/dist/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/dist/shared-utils/index.d.ts +1 -1
- package/dist/shared-utils/isTouchDevice.d.ts +1 -0
- package/dist/shared-utils/three/Magnifier.d.ts +2 -0
- package/dist/shared-utils/three/PointSelector.d.ts +92 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +41 -0
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/dist/typings/typings.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +34 -33
- package/docs/classes/CruisePluginController.html +48 -45
- package/docs/classes/GuideLineItem.GuideLineItem.html +23 -22
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +90 -34
- package/docs/classes/Magnifier.html +23 -22
- package/docs/classes/ModelRoomLabelController.html +14 -13
- package/docs/classes/Object3DHelperController.html +47 -44
- package/docs/classes/PaintBrush.html +18 -17
- package/docs/classes/PanoMeasurePluginLine.html +48 -27
- package/docs/classes/PanoMeasurePluginModel.html +44 -28
- package/docs/classes/PanoMeasurePluginPoint.html +17 -16
- package/docs/classes/PanoMeasurePluginPolyline.html +30 -29
- package/docs/classes/PanoTagPluginController.html +73 -70
- package/docs/classes/Util.BetterTween.html +12 -11
- package/docs/classes/Util.Interval.html +15 -14
- package/docs/classes/Util.Magnifier.html +42 -21
- package/docs/classes/Util.PointDomHelper.html +14 -13
- package/docs/classes/Util.PointHelper.html +14 -13
- package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +70 -30
- package/docs/classes/Util.Rectangle.html +16 -15
- package/docs/enums/CameraMovementEffect.html +10 -9
- package/docs/enums/ContentType.html +23 -22
- package/docs/enums/DIRECTION.html +12 -11
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +12 -11
- package/docs/enums/DimensionType.html +10 -9
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +11 -10
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +12 -11
- package/docs/enums/PaintBrushTypeEnum.html +11 -10
- package/docs/enums/PointType.html +10 -9
- package/docs/enums/Rotation.html +11 -10
- package/docs/functions/CSS3DRenderPlugin.html +7 -6
- package/docs/functions/CameraMovementPlugin.html +7 -6
- package/docs/functions/CruisePlugin.html +7 -6
- package/docs/functions/GuideLinePlugin.html +8 -7
- package/docs/functions/ItemLabelPlugin.html +7 -6
- package/docs/functions/MapviewFloorplanPlugin.html +7 -6
- package/docs/functions/ModelChassisCompassPlugin.html +7 -6
- package/docs/functions/ModelEntryDoorGuidePlugin.html +7 -6
- package/docs/functions/ModelFloorplanPlugin.html +7 -6
- package/docs/functions/ModelItemLabelPlugin.html +7 -6
- package/docs/functions/ModelRoomLabelPlugin.html +7 -6
- package/docs/functions/ModelTVVideoPlugin.html +7 -6
- package/docs/functions/ModelViewPlugin.html +7 -6
- package/docs/functions/Object3DHelperPlugin.html +7 -6
- package/docs/functions/PanoCompassPlugin.html +7 -6
- package/docs/functions/PanoCursorRaycasterPlugin.html +7 -6
- package/docs/functions/PanoDoorLabelPlugin.html +7 -6
- package/docs/functions/PanoFloorplanRadarPlugin.html +7 -6
- package/docs/functions/PanoMeasurePlugin.html +7 -6
- package/docs/functions/PanoRulerPlugin.html +7 -6
- package/docs/functions/PanoRulerProPlugin.html +7 -6
- package/docs/functions/PanoSpatialTagPlugin.html +7 -6
- package/docs/functions/PanoTagPlugin.html +7 -6
- package/docs/functions/PanoVideoPlugin.html +7 -6
- package/docs/functions/TopviewFloorplanPlugin.html +7 -6
- package/docs/{types/PartialObjectDeep.html → functions/Util.absoluteUrl.html} +151 -141
- package/docs/functions/Util.getCoordsFromClient.html +8 -7
- package/docs/functions/Util.getCoordsFromElement.html +8 -7
- package/docs/functions/Util.getFrameTime.html +8 -7
- package/docs/functions/Util.getIntersectFromRelativePosition.html +8 -7
- package/docs/functions/Util.getRaycasterFromFivePointer.html +8 -7
- package/docs/functions/Util.isAbsoluteURL.html +8 -7
- package/docs/functions/Util.isModelLike.html +8 -7
- package/docs/functions/Util.isNil.html +8 -7
- package/docs/functions/Util.isPanoramaLike.html +8 -7
- package/docs/functions/Util.nextFrame.html +8 -7
- package/docs/functions/Util.notNil.html +8 -7
- package/docs/functions/Util.requestAnimationFrameInterval.html +8 -7
- package/docs/functions/Util.tweenProgress.html +8 -7
- package/docs/functions/Util.uuid.html +8 -7
- package/docs/functions/pluginFlag.html +8 -7
- package/docs/index.html +8 -7
- package/docs/interfaces/AddTagConfig.html +9 -8
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +14 -13
- package/docs/interfaces/CSS3DRenderPluginState.html +11 -10
- package/docs/interfaces/CameraMovementPluginExportType.html +10 -9
- package/docs/interfaces/CruisePluginTypes.Config.html +11 -10
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +15 -14
- package/docs/interfaces/CruisePluginTypes.EventMap.html +23 -22
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +15 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +17 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +17 -16
- package/docs/interfaces/CruisePluginTypes.PluginData.html +12 -11
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +10 -9
- package/docs/interfaces/CruisePluginTypes.PluginState.html +14 -13
- package/docs/interfaces/EventMap.html +18 -17
- package/docs/interfaces/FloorplanBounding.html +11 -10
- package/docs/interfaces/FloorplanData.html +13 -12
- package/docs/interfaces/FloorplanEntrance.html +14 -13
- package/docs/interfaces/FloorplanExtraObject.html +13 -12
- package/docs/interfaces/FloorplanExtraObject3D.html +11 -10
- package/docs/interfaces/FloorplanFloorData.html +12 -11
- package/docs/interfaces/FloorplanImagePosition.html +10 -9
- package/docs/interfaces/FloorplanObserver.html +12 -11
- package/docs/interfaces/FloorplanOutlineItem.html +12 -11
- package/docs/interfaces/FloorplanPosition.html +10 -9
- package/docs/interfaces/FloorplanRoomItem.html +16 -15
- package/docs/interfaces/FloorplanRoomLabelItem.html +10 -9
- package/docs/interfaces/FloorplanServerBounding.html +11 -10
- package/docs/interfaces/FloorplanServerComputedData.html +13 -12
- package/docs/interfaces/FloorplanServerData.html +10 -9
- package/docs/interfaces/FloorplanServerDoorItem.html +13 -12
- package/docs/interfaces/FloorplanServerDoorPosition.html +11 -10
- package/docs/interfaces/FloorplanServerEntrance.html +14 -13
- package/docs/interfaces/FloorplanServerFloorData.html +12 -11
- package/docs/interfaces/FloorplanServerImagePosition.html +10 -9
- package/docs/interfaces/FloorplanServerObserver.html +12 -11
- package/docs/interfaces/FloorplanServerOutlineItem.html +12 -11
- package/docs/interfaces/FloorplanServerPosition.html +10 -9
- package/docs/interfaces/FloorplanServerRoomItem.html +17 -16
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +10 -9
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +11 -10
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +13 -12
- package/docs/interfaces/GuideLinePluginType.EventMap.html +16 -15
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +11 -10
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -15
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +11 -10
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +21 -20
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +10 -9
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +21 -20
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +8 -7
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +10 -9
- package/docs/interfaces/GuideLinePluginType.PluginState.html +11 -10
- package/docs/interfaces/GuideLinePluginType.Route.html +14 -13
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +12 -11
- package/docs/interfaces/HelperOffset.html +11 -10
- package/docs/interfaces/ImagePlaneGroup.html +9 -8
- package/docs/interfaces/ItemLabelPluginData.html +9 -8
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +14 -13
- package/docs/interfaces/ItemLabelPluginParametersType.html +12 -11
- package/docs/interfaces/MinMax.html +10 -9
- package/docs/interfaces/ModelChassisCompassPluginData.html +10 -9
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +11 -10
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +10 -9
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +11 -10
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +11 -10
- package/docs/interfaces/ModelItemLabelPluginData.html +9 -8
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +14 -13
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +10 -9
- package/docs/interfaces/ModelRoomLabelPluginData.html +9 -8
- package/docs/interfaces/ModelTVVideoPluginData.html +12 -11
- package/docs/interfaces/ModelTVVideoPluginExportType.html +11 -10
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +9 -8
- package/docs/interfaces/ModelViewPluginExportType.html +14 -13
- package/docs/interfaces/Object3DHelperState.html +11 -10
- package/docs/interfaces/ObjectHelperControllers.html +12 -11
- package/docs/interfaces/PaintBrushAction.html +15 -14
- package/docs/interfaces/PaintBrushConfigs.html +15 -14
- package/docs/interfaces/PaintBrushState.html +13 -12
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +13 -12
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +8 -7
- package/docs/interfaces/PanoMeasureParameterType.html +18 -17
- package/docs/interfaces/PanoMeasurePluginLineJson.html +11 -10
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +10 -9
- package/docs/interfaces/PanoMeasurePluginPointJson.html +10 -9
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +11 -10
- package/docs/interfaces/PanoRulerPluginExportType.html +13 -12
- package/docs/interfaces/PanoRulerPluginOptions.html +10 -9
- package/docs/interfaces/PanoRulerPluginParameterType.html +11 -10
- package/docs/interfaces/PanoRulerProPluginExportType.html +12 -11
- package/docs/interfaces/PanoRulerProPluginOptions.html +10 -9
- package/docs/interfaces/PanoRulerProPluginParameterType.html +10 -9
- package/docs/interfaces/PanoRulerProPluginState.html +11 -10
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +8 -7
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +8 -7
- package/docs/interfaces/PanoSpatialTagPluginData.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +13 -12
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +16 -15
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +13 -12
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +16 -15
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +14 -13
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +13 -12
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +12 -11
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +9 -8
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +11 -10
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +13 -12
- package/docs/interfaces/Point.html +11 -10
- package/docs/interfaces/Room.html +12 -11
- package/docs/interfaces/RoomInfo.html +10 -9
- package/docs/interfaces/RoomLabel.html +17 -16
- package/docs/interfaces/RoomRules.html +8 -7
- package/docs/interfaces/Rooms.html +8 -7
- package/docs/interfaces/Scissor.html +12 -11
- package/docs/interfaces/State.html +11 -10
- package/docs/interfaces/TagCacheInterface.html +15 -14
- package/docs/interfaces/TagConfig.html +17 -16
- package/docs/interfaces/TagGLTFObjectGroup.html +9 -8
- package/docs/interfaces/TagIconUrl.html +15 -14
- package/docs/interfaces/TagObjectGroup.html +9 -8
- package/docs/interfaces/TagStyle.html +9 -8
- package/docs/interfaces/Tags.html +12 -11
- package/docs/interfaces/TemporaryState.html +9 -8
- package/docs/interfaces/Util.MagnifierParameter.html +14 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +11 -10
- package/docs/interfaces/Util.PointIntersection.html +407 -0
- package/docs/modules/CruisePluginTypes.html +8 -7
- package/docs/modules/GuideLineItem.html +8 -7
- package/docs/modules/GuideLineModeItem.html +8 -7
- package/docs/modules/GuideLinePluginType.html +8 -7
- package/docs/modules/PanoVideoPluginType.html +8 -7
- package/docs/modules/Util.html +11 -8
- package/docs/modules.html +7 -7
- package/docs/types/ArrayPosition.html +8 -7
- package/docs/types/AudioAppearance.html +8 -7
- package/docs/types/AudioTagTypeConfigKey.html +8 -7
- package/docs/types/CSS3DRenderExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginExportType.html +8 -7
- package/docs/types/CSS3DRenderPluginParameterType.html +8 -7
- package/docs/types/ClassFunctionParameters.html +8 -7
- package/docs/types/Color.html +8 -7
- package/docs/types/ContentTypeConfigKey.html +8 -7
- package/docs/types/ContentTypeConfigKeySplit.html +8 -7
- package/docs/types/ContentTypeMap.html +8 -7
- package/docs/types/Create3DDomContainerReturnType.html +8 -7
- package/docs/types/Create3DElementReturnType.html +8 -7
- package/docs/types/CruisePluginExportType.html +8 -7
- package/docs/types/CruisePluginTypes.CruiseData.html +8 -7
- package/docs/types/CruisePluginTypes.MoveEffect.html +8 -7
- package/docs/types/DeprecatedMediaPlaneProperty.html +8 -7
- package/docs/types/DeprecatedTagProperty.html +8 -7
- package/docs/types/Direction-1.html +8 -7
- package/docs/types/Direction4.html +8 -7
- package/docs/types/ElementRenderer.html +8 -7
- package/docs/types/FloorplanRuleLabels.html +8 -7
- package/docs/types/FloorplanServerRuleLabels.html +8 -7
- package/docs/types/GuideLinePluginExportType.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +8 -7
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +8 -7
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +8 -7
- package/docs/types/GuideLinePluginType.PathItem.html +8 -7
- package/docs/types/GuideLinePluginType.PluginData.html +8 -7
- package/docs/types/HelperEventMap.html +8 -7
- package/docs/types/LoadTagConfig.html +8 -7
- package/docs/types/MapviewFloorplanPluginParameterType.html +8 -7
- package/docs/types/MapviewFloorplanPluginReturnType.html +8 -7
- package/docs/types/MediaData.html +8 -7
- package/docs/types/MediaStore.html +8 -7
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +8 -7
- package/docs/types/ModelFloorplanPluginParameterType.html +8 -7
- package/docs/types/ModelFloorplanPluginReturnType.html +8 -7
- package/docs/types/ModelRoomLabelPluginParameters.html +8 -7
- package/docs/types/ModelRoomLabelPluginReturnType.html +8 -7
- package/docs/types/MoveArgs.html +8 -7
- package/docs/types/MoveOpts.html +8 -7
- package/docs/types/Object3DHelperEventMap.html +8 -7
- package/docs/types/ObjectFit.html +8 -7
- package/docs/types/PaintBrushEventMap.html +8 -7
- package/docs/types/PanoCompassPluginData.html +8 -7
- package/docs/types/PanoCompassPluginExportType.html +8 -7
- package/docs/types/PanoCompassPluginParameterType.html +8 -7
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +8 -7
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +8 -7
- package/docs/types/PanoIndex.html +8 -7
- package/docs/types/PanoMeasurePluginEvent.html +8 -7
- package/docs/types/PanoMeasureReturnType.html +8 -7
- package/docs/types/PanoSpatialTagPluginId.html +8 -7
- package/docs/types/PanoTagPluginExportInterface.html +8 -7
- package/docs/types/PanoTagPluginParamsInterface.html +8 -7
- package/docs/types/PanoVideoPluginParameterType.html +8 -7
- package/docs/types/PanoVideoPluginReturnType.html +8 -7
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +8 -7
- package/docs/types/PlaneTag.html +8 -7
- package/docs/types/Point2DTag.html +8 -7
- package/docs/types/Point3DTag.html +8 -7
- package/docs/types/PointTag.html +8 -7
- package/docs/types/PointTagInstance.html +8 -7
- package/docs/types/Position.html +8 -7
- package/docs/types/RotateArgs.html +8 -7
- package/docs/types/RotateOpts.html +8 -7
- package/docs/types/RuleLabelsKey.html +8 -7
- package/docs/types/RuleLabelsValue.html +8 -7
- package/docs/types/StickType.html +8 -7
- package/docs/types/Tag.html +8 -7
- package/docs/types/Tag2D.html +8 -7
- package/docs/types/Tag3D.html +8 -7
- package/docs/types/TagContentType.html +8 -7
- package/docs/types/TagDimensionType.html +8 -7
- package/docs/types/TagElement.html +8 -7
- package/docs/types/TagEvents.html +8 -7
- package/docs/types/TagGLTFObject.html +8 -7
- package/docs/types/TagHooks.html +8 -7
- package/docs/types/TagId.html +8 -7
- package/docs/types/TagInstance.html +8 -7
- package/docs/types/TagPointType.html +8 -7
- package/docs/types/TagRendererMap.html +8 -7
- package/docs/types/TopviewFloorplanPluginParameterType.html +8 -7
- package/docs/types/TopviewFloorplanPluginReturnType.html +8 -7
- package/docs/types/WorkCode.html +8 -7
- package/docs/variables/FLOOR_TYPE_MAP.html +8 -7
- package/docs/variables/PLUGIN.html +8 -7
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +8 -7
- package/docs/variables/ROOM_TYPE_MAP.html +8 -7
- package/docs/variables/itemLabelPluginServerParams.html +8 -7
- package/docs/variables/modelItemLabelPluginServerParams.html +8 -7
- package/docs/variables/modelRoomLabelPluginServerParams.html +8 -7
- package/libs/CSS3DRenderPlugin/Controller.d.ts +4 -1
- package/libs/CSS3DRenderPlugin/Controller.js +31 -28
- package/libs/CSS3DRenderPlugin/index.js +1 -1
- package/libs/CruisePlugin/Controller.js +1 -1
- package/libs/CruisePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/Components/Tag.js +137 -44
- package/libs/GuideLinePlugin/Controller.d.ts +5 -3
- package/libs/GuideLinePlugin/Controller.js +49 -45
- package/libs/GuideLinePlugin/GuideLineItem/index.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.d.ts +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +1 -1
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +150 -113
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +17 -0
- package/libs/GuideLinePlugin/GuideLineModeItem.js +1 -1
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +7 -0
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +19 -17
- package/libs/ItemLabelPlugin/ItemLabelItem.js +82 -82
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +77 -77
- package/libs/ModelTVVideoPlugin/Plugin.js +30 -29
- package/libs/ModelTVVideoPlugin/index.js +4 -3
- package/libs/Object3DHelperPlugin/Controller.js +1 -1
- package/libs/Object3DHelperPlugin/index.js +1 -1
- package/libs/PanoCompassPlugin/Controller.js +20 -20
- package/libs/PanoCompassPlugin/index.js +1 -1
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -1
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -1
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +60 -60
- package/libs/PanoDoorLabelPlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +76 -40
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
- package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +113 -117
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +71 -71
- package/libs/PanoMeasurePlugin/Components/Common/icons/index.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Components/Common/icons/index.js +7 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.js +188 -65
- package/libs/PanoMeasurePlugin/Components/Controller1.js +355 -108
- package/libs/PanoMeasurePlugin/Components/Tip.js +154 -0
- package/libs/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +7 -6
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +17 -18
- package/libs/PanoMeasurePlugin/Controller/EditController.js +237 -126
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +5 -5
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +15 -14
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +6 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +107 -91
- package/libs/PanoMeasurePlugin/Model/area.d.ts +13 -1
- package/libs/PanoMeasurePlugin/Model/area.js +56 -37
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/index.js +47 -39
- package/libs/PanoMeasurePlugin/Model/line.d.ts +3 -0
- package/libs/PanoMeasurePlugin/Model/line.js +27 -20
- package/libs/PanoMeasurePlugin/Model/point.js +17 -12
- package/libs/PanoMeasurePlugin/Model/polygon.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Model/polygon.js +21 -15
- package/libs/PanoMeasurePlugin/Model/polyline.js +6 -6
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.d.ts +7 -3
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +34 -24
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +16 -12
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +67 -40
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +9 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +120 -43
- package/libs/PanoMeasurePlugin/Modules/UIController/style.d.ts +0 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +16 -24
- package/libs/PanoMeasurePlugin/index.js +57 -37
- package/libs/PanoMeasurePlugin/typings/data.d.ts +8 -2
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +8 -1
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +36 -15
- package/libs/PanoMeasurePlugin/utils/dom/base.d.ts +4 -0
- package/libs/PanoMeasurePlugin/utils/dom/base.js +37 -31
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +38 -23
- package/libs/PanoMeasurePlugin/utils/generatePolygonGeometry.js +3 -3
- package/libs/PanoMeasurePlugin/utils/geometryUtil.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/geometryUtil.js +15 -13
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.d.ts +2 -1
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
- package/libs/PanoSpatialTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/controller/TagCache.js +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +2 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +1 -1
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -1
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/PanoTagPlugin/index.js +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -4
- package/libs/PanoVideoPlugin/Controller.js +1 -1
- package/libs/PanoVideoPlugin/index.js +1 -1
- package/libs/base/BasePlugin.d.ts +4 -1
- package/libs/base/BasePlugin.js +14 -11
- package/libs/components/PaintBrush/style.d.ts +1 -1
- package/libs/components/PaintBrush/style.js +4 -4
- package/libs/floorplan/Components/RoomHighlight/Room.js +54 -54
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +8 -8
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +30 -28
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -1
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -1
- package/libs/index.js +130 -123
- package/libs/shared-utils/absoluteUrl.d.ts +5 -0
- package/libs/shared-utils/absoluteUrl.js +10 -0
- package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.d.ts +1 -1
- package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.d.ts +1 -1
- package/libs/shared-utils/index.d.ts +1 -1
- package/libs/shared-utils/index.js +21 -20
- package/libs/shared-utils/isTouchDevice.d.ts +1 -0
- package/libs/shared-utils/isTouchDevice.js +4 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.d.ts +2 -0
- package/libs/shared-utils/three/Magnifier.js +11 -5
- package/libs/shared-utils/three/PointSelector.d.ts +92 -0
- package/libs/shared-utils/three/PointSelector.js +187 -0
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +41 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +50 -0
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/libs/typings/typings.d.ts +4 -0
- package/libs/vendor/svelte/internal/index.js +392 -345
- package/package.json +1 -1
- package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
- package/libs/shared-utils/isAbsoluteURL.js +0 -6
- package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/three/FivePointSelector.js +0 -49
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getIntersectionFromEvent.js +0 -0
- /package/libs/{PanoMeasurePlugin/utils → shared-utils}/getPointFromHammerEvent.js +0 -0
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var f = (
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
|
+
var G = Object.getOwnPropertySymbols;
|
|
3
|
+
var N = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var f = (s, o, t) => o in s ? M(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, c = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
N.call(o, t) && f(s, t, o[t]);
|
|
7
|
+
if (G)
|
|
8
|
+
for (var t of G(o))
|
|
9
|
+
O.call(o, t) && f(s, t, o[t]);
|
|
10
|
+
return s;
|
|
11
11
|
};
|
|
12
|
-
var d = (
|
|
13
|
-
var u = (
|
|
12
|
+
var d = (s, o, t) => (f(s, typeof o != "symbol" ? o + "" : o, t), t);
|
|
13
|
+
var u = (s, o, t) => new Promise((i, p) => {
|
|
14
14
|
var a = (m) => {
|
|
15
15
|
try {
|
|
16
16
|
r(t.next(m));
|
|
17
17
|
} catch (n) {
|
|
18
|
-
|
|
18
|
+
p(n);
|
|
19
19
|
}
|
|
20
20
|
}, e = (m) => {
|
|
21
21
|
try {
|
|
22
22
|
r(t.throw(m));
|
|
23
23
|
} catch (n) {
|
|
24
|
-
|
|
24
|
+
p(n);
|
|
25
25
|
}
|
|
26
26
|
}, r = (m) => m.done ? i(m.value) : Promise.resolve(m.value).then(a, e);
|
|
27
|
-
r((t = t.apply(
|
|
27
|
+
r((t = t.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { GuideLineItem as
|
|
32
|
-
import
|
|
33
|
-
import { objectAssignDeepExports as
|
|
34
|
-
import * as
|
|
29
|
+
import { Controller as P } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as $ } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as k } from "./GuideLineItem/index.js";
|
|
32
|
+
import x from "../CruisePlugin/Controller.js";
|
|
33
|
+
import { objectAssignDeepExports as S } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as T from "three";
|
|
35
35
|
import "../base/BasePlugin.js";
|
|
36
36
|
import "../shared-utils/Subscribe.js";
|
|
37
37
|
import "hammerjs";
|
|
@@ -50,7 +50,7 @@ import "../shared-utils/three/centerPoint.js";
|
|
|
50
50
|
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
51
51
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
52
52
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
53
|
-
import "../shared-utils/
|
|
53
|
+
import "../shared-utils/absoluteUrl.js";
|
|
54
54
|
import "../shared-utils/isTruelyObject.js";
|
|
55
55
|
import "./GuideLineModeItem/index.js";
|
|
56
56
|
import "../shared-utils/log.js";
|
|
@@ -188,52 +188,56 @@ import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
|
188
188
|
import "../CruisePlugin/utils/formatRad.js";
|
|
189
189
|
import "../CruisePlugin/utils/linerValue.js";
|
|
190
190
|
import "../CruisePlugin/utils/sleep.js";
|
|
191
|
-
const
|
|
192
|
-
class
|
|
191
|
+
const V = "v1.1.0", b = "GuideLinePlugin", g = `${b}@${V}`, Wr = (s) => `${g}--${s}`;
|
|
192
|
+
class Ur extends P {
|
|
193
193
|
constructor(t, i) {
|
|
194
194
|
super(t, i);
|
|
195
|
-
d(this, "version",
|
|
195
|
+
d(this, "version", V);
|
|
196
196
|
d(this, "name", b);
|
|
197
197
|
d(this, "cruisePlugin");
|
|
198
198
|
/** GuideLineItem 索引 */
|
|
199
199
|
d(this, "itemMap", /* @__PURE__ */ new Map());
|
|
200
|
-
/** 当新增一根线时,整体高度的偏移值 */
|
|
201
|
-
d(this, "heightOffset", 0);
|
|
202
200
|
d(this, "state", {
|
|
203
201
|
visible: !1,
|
|
204
202
|
enabled: !0
|
|
205
203
|
});
|
|
206
204
|
d(this, "data");
|
|
205
|
+
/** 当新增一根线时,整体高度的偏移值 */
|
|
206
|
+
d(this, "heightOffset", 0);
|
|
207
|
+
d(this, "_config");
|
|
207
208
|
d(this, "_disposed", !1);
|
|
208
209
|
d(this, "disposedErrorLog", () => {
|
|
209
210
|
console.error(`${g} is disposed`);
|
|
210
211
|
});
|
|
211
|
-
this.cruisePlugin = new
|
|
212
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new x(t, { useGuideLine: !1 }), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
213
|
+
}
|
|
214
|
+
get config() {
|
|
215
|
+
return this._config;
|
|
212
216
|
}
|
|
213
217
|
get disposed() {
|
|
214
218
|
return this._disposed;
|
|
215
219
|
}
|
|
216
|
-
load(t, i,
|
|
220
|
+
load(t, i, p = !0) {
|
|
217
221
|
return u(this, null, function* () {
|
|
218
222
|
var v, w, E, I, y, L, D;
|
|
219
223
|
if (this.disposed)
|
|
220
224
|
return;
|
|
221
225
|
const a = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
222
226
|
this.hooks.emit("dataChange", e, a), this.data = e;
|
|
223
|
-
const r = e.config,
|
|
227
|
+
const r = e.config, n = {
|
|
224
228
|
panorama_style: {
|
|
225
|
-
visible: !
|
|
229
|
+
visible: !!(!e.lines && e.routes),
|
|
226
230
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
227
231
|
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
228
232
|
texture: { url: (E = r == null ? void 0 : r.arrowTextureUrl) != null ? E : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
229
233
|
}
|
|
230
|
-
},
|
|
231
|
-
var
|
|
232
|
-
return
|
|
233
|
-
})) != null ? y : [],
|
|
234
|
+
}, h = (y = (I = e.routes) == null ? void 0 : I.map((l) => {
|
|
235
|
+
var _;
|
|
236
|
+
return S({}, n, { id: (_ = l.id) != null ? _ : Date.now(), pano_group: l.panoIndexList });
|
|
237
|
+
})) != null ? y : [], A = (D = (L = e.lines) == null ? void 0 : L.map((l) => S({}, n, l))) != null ? D : [], C = [...h, ...A];
|
|
234
238
|
yield this.waitFiveLoaded(), this.clear(), C.forEach((l) => {
|
|
235
239
|
this.addGuideLineItem(l);
|
|
236
|
-
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction:
|
|
240
|
+
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: p }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
237
241
|
});
|
|
238
242
|
}
|
|
239
243
|
formatData(t) {
|
|
@@ -269,14 +273,14 @@ class Wr extends O {
|
|
|
269
273
|
var a;
|
|
270
274
|
if (this.disposed)
|
|
271
275
|
return this.disposedErrorLog();
|
|
272
|
-
const
|
|
273
|
-
this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !==
|
|
276
|
+
const p = c({}, this.state);
|
|
277
|
+
this.state = c(c({}, this.state), t), t.visible !== void 0 && t.visible !== p.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== p.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), $(p, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: p, userAction: (a = i == null ? void 0 : i.userAction) != null ? a : !0 }), this.five.needsRender = !0);
|
|
274
278
|
}
|
|
275
279
|
/** 添加一个 GuideLineItem */
|
|
276
280
|
addGuideLineItem(t) {
|
|
277
|
-
const i = t.render_id || t.id,
|
|
278
|
-
|
|
279
|
-
const a = new
|
|
281
|
+
const i = t.render_id || t.id, p = this.itemMap.get(i);
|
|
282
|
+
p && this.removeGuideLineItem(p);
|
|
283
|
+
const a = new k({ five: this.five, id: i, plugin: this });
|
|
280
284
|
return this.itemMap.set(i, a), t && a.setData(t), this.heightOffset += 1e-4, a.setHeightOffset(this.heightOffset), a;
|
|
281
285
|
}
|
|
282
286
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -293,15 +297,15 @@ class Wr extends O {
|
|
|
293
297
|
function i(e) {
|
|
294
298
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
295
299
|
}
|
|
296
|
-
function
|
|
297
|
-
return new
|
|
300
|
+
function p(e, r) {
|
|
301
|
+
return new T.Vector3().fromArray(e).distanceTo(new T.Vector3().fromArray(r)) < 0.01;
|
|
298
302
|
}
|
|
299
303
|
function a(e) {
|
|
300
304
|
var m;
|
|
301
305
|
const r = (m = e.tag) == null ? void 0 : m.position;
|
|
302
306
|
return i(r) ? t.every((n) => {
|
|
303
307
|
var h;
|
|
304
|
-
return i((h = n.tag) == null ? void 0 : h.position) ? !
|
|
308
|
+
return i((h = n.tag) == null ? void 0 : h.position) ? !p(r, n.tag.position) : !0;
|
|
305
309
|
}) : !1;
|
|
306
310
|
}
|
|
307
311
|
this.itemMap.forEach((e) => {
|
|
@@ -344,6 +348,6 @@ class Wr extends O {
|
|
|
344
348
|
}
|
|
345
349
|
}
|
|
346
350
|
export {
|
|
347
|
-
|
|
348
|
-
|
|
351
|
+
Ur as default,
|
|
352
|
+
Wr as pluginFlag
|
|
349
353
|
};
|
|
@@ -63,7 +63,7 @@ class C {
|
|
|
63
63
|
n.setGeometryByPanoGroup(t.pano_group, d({ skipPanoGroup: m }, l));
|
|
64
64
|
} else
|
|
65
65
|
t.path && n.setGeometryByPath(u, l);
|
|
66
|
-
n.setMartial(a), n.setVisibleFloorIndexes((r = t.visible_floor_indexes) != null ? r : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
|
|
66
|
+
n.name = t.name, n.setMartial(a), n.setVisibleFloorIndexes((r = t.visible_floor_indexes) != null ? r : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
|
|
67
67
|
}
|
|
68
68
|
show() {
|
|
69
69
|
this._visible = !0, this.hooks.emit("show", { userAction: !0 });
|
|
@@ -2,7 +2,7 @@ import type { Five } from '@realsee/five';
|
|
|
2
2
|
import type GuideLinePlugin from './Controller';
|
|
3
3
|
import type * as PluginType from './typing';
|
|
4
4
|
import { GuideLineModeItem } from './GuideLineModeItem';
|
|
5
|
-
import { CruisePluginTypes } from '../CruisePlugin';
|
|
5
|
+
import type { CruisePluginTypes } from '../CruisePlugin';
|
|
6
6
|
import { Subscribe } from '@realsee/five';
|
|
7
7
|
/** 路线引导实例。
|
|
8
8
|
* - 路线包括两个部分:全景路线和模型路线。
|
|
@@ -55,7 +55,7 @@ import "../PanoTagPlugin/utils/planeNormal.js";
|
|
|
55
55
|
import "../PanoTagPlugin/utils/normalPositionToPositions.js";
|
|
56
56
|
import "../PanoTagPlugin/controller/TagCache.js";
|
|
57
57
|
import "../base/BasePlugin.js";
|
|
58
|
-
import "../shared-utils/
|
|
58
|
+
import "../shared-utils/absoluteUrl.js";
|
|
59
59
|
import "../vendor/svelte/store/index.js";
|
|
60
60
|
import "../vendor/svelte/internal/index.js";
|
|
61
61
|
import "../shared-utils/device.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
1
|
+
var k = Object.defineProperty, w = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var F = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var v = (n, e, t) => e in n ? k(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, m = (n, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
F.call(e, t) && v(n, t, e[t]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var t of C(e))
|
|
10
|
+
L.call(e, t) && v(n, t, e[t]);
|
|
11
|
+
return n;
|
|
12
|
+
}, p = (n, e) => w(n, P(e));
|
|
13
|
+
var i = (n, e, t) => (v(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
14
|
import * as l from "three";
|
|
15
|
-
import { logWarning as
|
|
15
|
+
import { logWarning as T, logError as V } from "../../shared-utils/log.js";
|
|
16
16
|
import { createLineGeometry as U } from "../utils/createLineGeometry.js";
|
|
17
17
|
import { isPanoramaLike as x, isModelLike as _ } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
@@ -20,13 +20,13 @@ import "@realsee/five";
|
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
21
21
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
22
22
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
23
|
-
import { BetterTween as M, tweenProgress as
|
|
24
|
-
import { loadTexture as
|
|
25
|
-
import
|
|
23
|
+
import { BetterTween as M, tweenProgress as G } from "../../shared-utils/animationFrame/BetterTween.js";
|
|
24
|
+
import { loadTexture as E } from "../../shared-utils/three/loadTexture.js";
|
|
25
|
+
import y from "../../PanoTagPlugin/controller/index.js";
|
|
26
26
|
import O from "../Components/Tag.js";
|
|
27
|
-
import { filterAdjacentDistinct as
|
|
28
|
-
import { objectAssignDeepExports as
|
|
29
|
-
const
|
|
27
|
+
import { filterAdjacentDistinct as S } from "../utils/index.js";
|
|
28
|
+
import { objectAssignDeepExports as A } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
29
|
+
const B = (
|
|
30
30
|
/* glsl */
|
|
31
31
|
`
|
|
32
32
|
varying vec2 vUv;
|
|
@@ -36,7 +36,7 @@ const S = (
|
|
|
36
36
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
37
37
|
}
|
|
38
38
|
`
|
|
39
|
-
),
|
|
39
|
+
), I = (
|
|
40
40
|
/* glsl */
|
|
41
41
|
`
|
|
42
42
|
// 是否使用颜色
|
|
@@ -120,77 +120,86 @@ const S = (
|
|
|
120
120
|
}
|
|
121
121
|
`
|
|
122
122
|
);
|
|
123
|
-
class
|
|
124
|
-
constructor(e,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
123
|
+
class R {
|
|
124
|
+
constructor(e, t) {
|
|
125
|
+
i(this, "name", "");
|
|
126
|
+
i(this, "startTagContainer");
|
|
127
|
+
i(this, "endTagContainer");
|
|
128
|
+
i(this, "mesh");
|
|
129
|
+
i(this, "five");
|
|
130
|
+
i(this, "mode");
|
|
131
|
+
i(this, "path", []);
|
|
132
|
+
i(this, "_curvePath", null);
|
|
133
|
+
i(this, "_curvePoints", null);
|
|
134
|
+
i(this, "_panoGroup", []);
|
|
135
|
+
i(this, "skippedPositions", null);
|
|
136
|
+
i(this, "textureUrl", "");
|
|
137
|
+
i(this, "scale", 1);
|
|
138
|
+
i(this, "width", 0.5);
|
|
139
|
+
i(this, "unitLength", 0.5);
|
|
140
|
+
i(this, "_visibleFloorIndexes", null);
|
|
141
|
+
i(this, "visible", null);
|
|
139
142
|
/** Five Mode 是否满足 */
|
|
140
|
-
|
|
143
|
+
i(this, "modeVisible", !1);
|
|
141
144
|
/** 楼层是否满足展示条件 */
|
|
142
|
-
|
|
145
|
+
i(this, "floorVisible", !0);
|
|
143
146
|
/** 默认是否展示 */
|
|
144
|
-
|
|
147
|
+
i(this, "defaultVisible", !1);
|
|
145
148
|
/** 走点动画 */
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
i(this, "inWalkAnimation", !1);
|
|
150
|
+
i(this, "customVisible", null);
|
|
151
|
+
i(this, "parent");
|
|
152
|
+
i(this, "plugin");
|
|
153
|
+
i(this, "textureHasLoaded", !1);
|
|
154
|
+
i(this, "disposed", !1);
|
|
155
|
+
i(this, "flowAnime", new M({ progress: 0 }).to({ progress: 1 }).duration(1500).repeat(1 / 0));
|
|
156
|
+
i(this, "flickerAnime", G(300).yoyo(!0).repeat(5));
|
|
157
|
+
/** 缓存 panoGroup 中每个点距离起点的长度 */
|
|
158
|
+
i(this, "cacheLengths", []);
|
|
159
|
+
i(this, "dispose", () => {
|
|
160
|
+
var e, t;
|
|
161
|
+
this.disposed || (this.disposed = !0, this.parent.hooks.off("show", this.updateVisible), this.parent.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("show", this.updateVisible), this.plugin.hooks.off("hide", this.updateVisible), this.plugin.hooks.off("enable", this.updateVisible), this.plugin.hooks.off("disable", this.updateVisible), this.five.off("modeChange", this.onFiveModeChange), this.five.off("modelShownFloorChange", this.onFiveModelShownFloorChange), this.doHide(), (e = this.startTagContainer) == null || e.plugin.dispose(), (t = this.endTagContainer) == null || t.plugin.dispose());
|
|
157
162
|
});
|
|
158
163
|
/** 开始走点动画 */
|
|
159
|
-
|
|
164
|
+
i(this, "onWalkAnimationStart", () => {
|
|
160
165
|
this.inWalkAnimation = !0, this.updateVisible();
|
|
161
166
|
});
|
|
162
167
|
/** 结束走点动画 */
|
|
163
|
-
|
|
168
|
+
i(this, "onWalkAnimationEnd", () => {
|
|
164
169
|
this.inWalkAnimation = !1, this.updateVisible();
|
|
165
170
|
});
|
|
166
171
|
/** 模型状态变更 */
|
|
167
|
-
|
|
172
|
+
i(this, "onFiveModeChange", (e) => {
|
|
168
173
|
this.modeVisible = this.mode === "panorama" ? x(e) : _(e), this.updateVisible();
|
|
169
174
|
});
|
|
170
|
-
|
|
175
|
+
i(this, "onFiveModelShownFloorChange", (e) => {
|
|
171
176
|
this.floorVisible = e === null || this.visibleFloorIndexes === null || this.visibleFloorIndexes.includes(e), this.updateVisible();
|
|
172
177
|
});
|
|
173
178
|
/** 更新可见性 */
|
|
174
|
-
|
|
179
|
+
i(this, "updateVisible", () => {
|
|
175
180
|
const e = (() => !this.parent.visible || !this.plugin.state.enabled || !this.plugin.state.visible ? !1 : this.customVisible !== null ? this.customVisible : this.inWalkAnimation ? !0 : this.modeVisible && this.textureHasLoaded && this.defaultVisible && this.floorVisible)();
|
|
176
181
|
this.visible !== e && (this.visible = e, e ? this.doShow() : this.doHide());
|
|
177
182
|
});
|
|
178
|
-
|
|
179
|
-
const { progress:
|
|
180
|
-
this.mesh.material.uniforms.vOffset.value =
|
|
183
|
+
i(this, "onFlowAnimeUpdate", (e) => {
|
|
184
|
+
const { progress: t } = e;
|
|
185
|
+
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
181
186
|
});
|
|
182
|
-
|
|
183
|
-
var
|
|
184
|
-
const { progress:
|
|
185
|
-
this.mesh.material.uniforms.flicker.value =
|
|
187
|
+
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
188
|
+
var a, r;
|
|
189
|
+
const { progress: t } = e, s = 1 - t;
|
|
190
|
+
this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(m({}, this.startTagContainer.tag.data), {
|
|
191
|
+
opacity: s,
|
|
192
|
+
name: this.name,
|
|
193
|
+
distance: Math.round(this.curvePath.getLength())
|
|
194
|
+
}))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((r = this.endTagContainer.app) == null || r.$set(p(m({}, this.endTagContainer.tag.data), { opacity: s })));
|
|
186
195
|
});
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
var
|
|
190
|
-
this.five = e, this.mode =
|
|
191
|
-
const
|
|
192
|
-
vertexShader:
|
|
193
|
-
fragmentShader:
|
|
196
|
+
i(this, "logWarning", (e) => T("GuideLineModeItem: ", e));
|
|
197
|
+
i(this, "logError", (e) => V("GuideLineModeItem: ", e));
|
|
198
|
+
var r, o;
|
|
199
|
+
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new y(this.five) }, this.endTagContainer = { tag: null, plugin: new y(this.five) };
|
|
200
|
+
const s = new l.BufferGeometry(), a = new l.ShaderMaterial({
|
|
201
|
+
vertexShader: B,
|
|
202
|
+
fragmentShader: I,
|
|
194
203
|
transparent: !0,
|
|
195
204
|
uniforms: {
|
|
196
205
|
map: { value: null },
|
|
@@ -207,7 +216,7 @@ class B {
|
|
|
207
216
|
vOffset: { value: 0 }
|
|
208
217
|
}
|
|
209
218
|
});
|
|
210
|
-
this.mesh = new l.Mesh(
|
|
219
|
+
this.mesh = new l.Mesh(s, a), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((o = (r = this.five.model) == null ? void 0 : r.shownFloor) != null ? o : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
211
220
|
}
|
|
212
221
|
get panoGroup() {
|
|
213
222
|
return this._panoGroup;
|
|
@@ -216,6 +225,14 @@ class B {
|
|
|
216
225
|
get visibleFloorIndexes() {
|
|
217
226
|
return this._visibleFloorIndexes;
|
|
218
227
|
}
|
|
228
|
+
/** THREE Curve 路径 */
|
|
229
|
+
get curvePath() {
|
|
230
|
+
return this._curvePath;
|
|
231
|
+
}
|
|
232
|
+
/** THREE Curve 路径上的点 */
|
|
233
|
+
get curvePoints() {
|
|
234
|
+
return this._curvePoints;
|
|
235
|
+
}
|
|
219
236
|
/** 自定义展示 */
|
|
220
237
|
setCustomVisible(e) {
|
|
221
238
|
if (this.disposed)
|
|
@@ -229,10 +246,10 @@ class B {
|
|
|
229
246
|
this.defaultVisible !== e && (this.defaultVisible = e, this.updateVisible());
|
|
230
247
|
}
|
|
231
248
|
/** 基础宽、长 */
|
|
232
|
-
setUnitSize(e,
|
|
249
|
+
setUnitSize(e, t) {
|
|
233
250
|
if (this.disposed)
|
|
234
251
|
return this.logError("disposed");
|
|
235
|
-
this.width = e, this.unitLength =
|
|
252
|
+
this.width = e, this.unitLength = t, this.setGeometryByPath(this.path, { width: e, unit_length: t });
|
|
236
253
|
}
|
|
237
254
|
/** 设置缩放 */
|
|
238
255
|
setScale(e) {
|
|
@@ -241,40 +258,40 @@ class B {
|
|
|
241
258
|
this.scale = e, this.setGeometryByPath(this.path, { scale: e });
|
|
242
259
|
}
|
|
243
260
|
/** 通过点位设置线条形状 */
|
|
244
|
-
setGeometryByPanoGroup(e,
|
|
261
|
+
setGeometryByPanoGroup(e, t) {
|
|
245
262
|
if (this.disposed)
|
|
246
263
|
return this.logError("disposed");
|
|
247
264
|
if (!this.five.work)
|
|
248
265
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
249
|
-
const
|
|
250
|
-
if (this._panoGroup =
|
|
251
|
-
const
|
|
252
|
-
this.skippedPositions =
|
|
266
|
+
const s = S(e);
|
|
267
|
+
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
268
|
+
const r = t.skipPanoGroup ? s.map((o) => this.five.work.observers[o]).map((o) => o.standingPosition.clone()) : null;
|
|
269
|
+
this.skippedPositions = r;
|
|
253
270
|
}
|
|
254
|
-
const
|
|
255
|
-
this.path =
|
|
271
|
+
const a = this.getPathFromPanoGroup(s, this.five.work, t);
|
|
272
|
+
this.path = a, this.setGeometryByPath(a, t);
|
|
256
273
|
}
|
|
257
274
|
/** 通过路径设置线条形状 */
|
|
258
|
-
setGeometryByPath(e,
|
|
259
|
-
var
|
|
275
|
+
setGeometryByPath(e, t) {
|
|
276
|
+
var f, g, c;
|
|
260
277
|
if (this.disposed)
|
|
261
278
|
return this.logError("disposed");
|
|
262
|
-
const
|
|
263
|
-
this.path = e, this.scale =
|
|
264
|
-
const { geometry:
|
|
279
|
+
const s = (f = t == null ? void 0 : t.scale) != null ? f : this.scale, a = (g = t == null ? void 0 : t.width) != null ? g : this.width, r = (c = t == null ? void 0 : t.unit_length) != null ? c : this.unitLength;
|
|
280
|
+
this.path = e, this.scale = s, this.width = a, this.unitLength = r;
|
|
281
|
+
const { geometry: o, maxU: u, curvePath: d, curvePoints: h } = U({
|
|
265
282
|
path: e,
|
|
266
|
-
width:
|
|
267
|
-
unitLength:
|
|
283
|
+
width: a * s,
|
|
284
|
+
unitLength: r * s,
|
|
268
285
|
skipPositions: this.skippedPositions
|
|
269
286
|
});
|
|
270
|
-
this.mesh.geometry =
|
|
287
|
+
this._curvePath = d, this._curvePoints = h, this.mesh.geometry = o, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = u, this.five.needsRender = !0;
|
|
271
288
|
}
|
|
272
289
|
/** 设置线条材质 */
|
|
273
290
|
setMartial(e) {
|
|
274
|
-
var
|
|
291
|
+
var t;
|
|
275
292
|
if (this.disposed)
|
|
276
293
|
return this.logError("disposed");
|
|
277
|
-
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((
|
|
294
|
+
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((t = e == null ? void 0 : e.texture) == null ? void 0 : t.url) !== void 0 && this.setTextureUrl(e.texture.url), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity);
|
|
278
295
|
}
|
|
279
296
|
/** 设置贴图颜色 */
|
|
280
297
|
setColor(e) {
|
|
@@ -322,15 +339,15 @@ class B {
|
|
|
322
339
|
setTextureUrl(e) {
|
|
323
340
|
if (this.disposed)
|
|
324
341
|
return this.logError("disposed");
|
|
325
|
-
this.textureUrl = e,
|
|
326
|
-
this.disposed || this.textureUrl === e && (
|
|
342
|
+
this.textureUrl = e, E(e).then((t) => {
|
|
343
|
+
this.disposed || this.textureUrl === e && (t.wrapT = l.RepeatWrapping, this.textureHasLoaded = !0, this.mesh.material.uniforms.map.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.mesh.material.needsUpdate = !0, this.five.needsRender = !0, this.updateVisible());
|
|
327
344
|
});
|
|
328
345
|
}
|
|
329
346
|
setVisibleFloorIndexes(e) {
|
|
330
|
-
var
|
|
347
|
+
var t, s;
|
|
331
348
|
if (this.disposed)
|
|
332
349
|
return this.logError("disposed");
|
|
333
|
-
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((
|
|
350
|
+
this._visibleFloorIndexes = e, this.onFiveModelShownFloorChange((s = (t = this.five.model) == null ? void 0 : t.shownFloor) != null ? s : null);
|
|
334
351
|
}
|
|
335
352
|
setStartTag(e) {
|
|
336
353
|
this.setTag("start", e);
|
|
@@ -344,22 +361,42 @@ class B {
|
|
|
344
361
|
return this.logError("disposed");
|
|
345
362
|
this.flickerAnime.play();
|
|
346
363
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
364
|
+
/** 求起点到 panoIndex 曲线长度
|
|
365
|
+
* @param index panoIndex 在 panoGroup 中的索引
|
|
366
|
+
*
|
|
367
|
+
* @description 为什么不使用 panoIndex 作为参数?
|
|
368
|
+
* - panoIndex 在一个曲线中可能出现多次,无法确定是哪一个。
|
|
369
|
+
*/
|
|
370
|
+
getLengthByPanoGroupIndex(e) {
|
|
371
|
+
return this.disposed ? this.logError("disposed") : this.cacheLengths.length !== 0 ? this.cacheLengths[e] : (this.cacheLengths = this.getPanoGroupLengths(), this.cacheLengths[e]);
|
|
372
|
+
}
|
|
373
|
+
getPanoGroupLengths() {
|
|
374
|
+
const e = this.panoGroup.map((h) => this.five.work.observers[h]), t = this.curvePoints.length, s = this.curvePath.getLength(), a = t - 1, r = s / a, o = this.curvePath.getLengths(a), u = [];
|
|
375
|
+
let d = 0;
|
|
376
|
+
for (let h = 0; h < t; h++) {
|
|
377
|
+
const f = this.curvePoints[h], g = e[d];
|
|
378
|
+
if (!g)
|
|
379
|
+
break;
|
|
380
|
+
g.standingPosition.clone().setY(0).distanceTo(f.clone().setY(0)) < r && (u.push(o[h]), d += 1);
|
|
381
|
+
}
|
|
382
|
+
return u;
|
|
383
|
+
}
|
|
384
|
+
setTag(e, t) {
|
|
385
|
+
const s = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
386
|
+
t || s.plugin.clearTags();
|
|
387
|
+
const r = A({}, {
|
|
351
388
|
contentType: "Custom",
|
|
352
389
|
stickType: "2DPoint",
|
|
353
390
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
354
391
|
style: { point: { enabled: !1 } },
|
|
355
392
|
data: {}
|
|
356
|
-
},
|
|
357
|
-
|
|
393
|
+
}, t);
|
|
394
|
+
s.tag = r, b(r) && (s.tag.element = (o) => {
|
|
358
395
|
var h;
|
|
359
|
-
(h =
|
|
360
|
-
const d = new O({ target:
|
|
361
|
-
return
|
|
362
|
-
}),
|
|
396
|
+
(h = s.app) == null || h.$destroy();
|
|
397
|
+
const u = e === "start" ? p(m({}, r.data), { name: this.name, distance: Math.round(this.curvePath.getLength()), i18n: this.plugin.config.i18n }) : r.data, d = new O({ target: o, intro: !0, props: u });
|
|
398
|
+
return s.app = d, () => d.$destroy();
|
|
399
|
+
}), s.plugin.load({ tagList: [s.tag] });
|
|
363
400
|
}
|
|
364
401
|
doShow() {
|
|
365
402
|
this.mode === "model" && this.flowAnime.play(), this.five.scene.add(this.mesh), this.startTagContainer.plugin.show(), this.endTagContainer.plugin.show(), this.five.needsRender = !0;
|
|
@@ -368,21 +405,21 @@ class B {
|
|
|
368
405
|
this.mode === "model" && this.flowAnime.stop(), this.five.scene.remove(this.mesh), this.startTagContainer.plugin.hide(), this.endTagContainer.plugin.hide(), this.five.needsRender = !0;
|
|
369
406
|
}
|
|
370
407
|
/** 通过 panoIndex 数组计算路径 */
|
|
371
|
-
getPathFromPanoGroup(e,
|
|
408
|
+
getPathFromPanoGroup(e, t, s) {
|
|
372
409
|
if (e.length < 2)
|
|
373
410
|
return [];
|
|
374
|
-
const
|
|
375
|
-
return [
|
|
411
|
+
const r = e.map((o) => t.observers[o]).map((o) => o.standingPosition.toArray());
|
|
412
|
+
return [m({ type: "CatmullRomCurve3", points: r }, s)];
|
|
376
413
|
}
|
|
377
414
|
}
|
|
378
|
-
function
|
|
379
|
-
return
|
|
415
|
+
function b(n) {
|
|
416
|
+
return n.contentType === "Custom";
|
|
380
417
|
}
|
|
381
|
-
const
|
|
418
|
+
const te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
382
419
|
__proto__: null,
|
|
383
|
-
GuideLineModeItem:
|
|
420
|
+
GuideLineModeItem: R
|
|
384
421
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
385
422
|
export {
|
|
386
|
-
|
|
387
|
-
|
|
423
|
+
R as GuideLineModeItem,
|
|
424
|
+
te as GuideLineModeItem$1
|
|
388
425
|
};
|