@realsee/dnalogel 2.22.0 → 2.23.1-dev.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/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
- package/dist/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +10 -0
- package/dist/index.cjs.js +62 -66
- package/dist/index.js +5869 -5598
- package/dist/index.umd.js +55 -59
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +48 -48
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +8 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/CruisePlugin/Controller.js +103 -90
- package/libs/CruisePlugin/index.js +22 -9
- package/libs/GuideLinePlugin/Components/Tag.js +58 -48
- package/libs/GuideLinePlugin/Controller.js +38 -25
- package/libs/GuideLinePlugin/GuideLineItem.js +19 -6
- package/libs/GuideLinePlugin/GuideLineModeItem.js +19 -6
- package/libs/GuideLinePlugin/index.js +24 -11
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +152 -139
- package/libs/ItemLabelPlugin/ItemLabelItem.js +67 -57
- package/libs/ItemLabelPlugin/Plugin.js +37 -26
- package/libs/ItemLabelPlugin/index.js +16 -5
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +116 -103
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +45 -35
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +35 -24
- package/libs/ModelItemLabelPlugin/index.js +16 -5
- package/libs/ModelRoomLabelPlugin/Controller.js +20 -8
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +52 -42
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +75 -61
- package/libs/ModelRoomLabelPlugin/index.js +17 -5
- package/libs/PanoDoorLabelPlugin/Controller.js +65 -55
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +55 -45
- package/libs/PanoDoorLabelPlugin/index.js +14 -4
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +70 -60
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +32 -22
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +75 -62
- package/libs/PanoMeasurePlugin/Components/Common/Switcher1.js +110 -97
- package/libs/PanoMeasurePlugin/Components/Controller0.js +168 -112
- package/libs/PanoMeasurePlugin/Components/Controller1.js +244 -181
- package/libs/PanoMeasurePlugin/Components/Tip.js +83 -72
- package/libs/PanoMeasurePlugin/Controller/index.js +87 -71
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +26 -15
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +36 -25
- package/libs/PanoMeasurePlugin/index.js +27 -16
- package/libs/PanoRulerProPlugin/Controller.js +38 -27
- package/libs/PanoRulerProPlugin/RulerItem.js +91 -78
- package/libs/PanoRulerProPlugin/RulerItems.js +95 -82
- package/libs/PanoRulerProPlugin/index.js +15 -4
- package/libs/PanoSpatialTagPlugin/Components/origins.js +51 -38
- package/libs/PanoSpatialTagPlugin/Components/tag.js +32 -22
- package/libs/PanoSpatialTagPlugin/Plugin.js +116 -105
- package/libs/PanoSpatialTagPlugin/index.js +13 -2
- package/libs/PanoSpatialTagPlugin/store.d.ts +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +2 -2
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +44 -34
- package/libs/PanoTagPlugin/Components/Common/Audio.js +99 -89
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +139 -128
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +53 -43
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +59 -49
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -69
- package/libs/PanoTagPlugin/Components/Common/Media.js +182 -168
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +128 -118
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +40 -30
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +35 -24
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +97 -86
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +88 -75
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +103 -95
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +59 -49
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +106 -95
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +92 -81
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +68 -57
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +45 -35
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +122 -110
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +53 -42
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +118 -103
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +66 -54
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +131 -108
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +101 -90
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +54 -43
- package/libs/PanoTagPlugin/Components/Tag/index.js +151 -138
- package/libs/PanoTagPlugin/Components/TagContainer.js +72 -57
- package/libs/PanoTagPlugin/Components/TagItem.js +60 -47
- package/libs/PanoTagPlugin/controller/TagComputer.js +2 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +19 -6
- package/libs/PanoTagPlugin/controller/TagUtil.js +2 -2
- package/libs/PanoTagPlugin/controller/index.js +95 -82
- package/libs/PanoTagPlugin/index.js +26 -13
- package/libs/PanoTagPlugin/typings/controller.d.ts +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +10 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +43 -39
- package/libs/floorplan/Components/Camera.js +16 -13
- package/libs/floorplan/Components/Compass.js +27 -24
- package/libs/floorplan/Components/CurrentFloor.js +25 -20
- package/libs/floorplan/Components/Main.js +58 -49
- package/libs/floorplan/Components/Normalmage.js +25 -22
- package/libs/floorplan/Components/RoomHighlight/Room.js +28 -25
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +69 -61
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +50 -47
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +69 -61
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +125 -118
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +25 -22
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +43 -40
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +32 -29
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +49 -41
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +102 -94
- package/libs/floorplan/Components/SvgImage.js +30 -27
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +41 -29
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +19 -7
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +35 -23
- package/libs/floorplan/ModelFloorplanPlugin/index.js +19 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +52 -42
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +71 -59
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +66 -53
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +69 -57
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +67 -55
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +16 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +46 -34
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +19 -7
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +126 -112
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/svelte/src/runtime/internal/Component.js +122 -0
- package/libs/vendor/svelte/src/runtime/internal/ResizeObserverSingleton.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/animations.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/await_block.js +47 -0
- package/libs/vendor/svelte/src/runtime/internal/dev.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/disclose-version/index.js +2 -0
- package/libs/vendor/svelte/src/runtime/internal/dom.js +214 -0
- package/libs/vendor/svelte/src/runtime/internal/each.js +46 -0
- package/libs/vendor/svelte/src/runtime/internal/environment.js +7 -0
- package/libs/vendor/svelte/src/runtime/internal/globals.js +7 -0
- package/libs/vendor/svelte/src/runtime/internal/index.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/lifecycle.js +63 -0
- package/libs/vendor/svelte/src/runtime/internal/loop.js +21 -0
- package/libs/vendor/svelte/src/runtime/internal/scheduler.js +66 -0
- package/libs/vendor/svelte/src/runtime/internal/spread.js +26 -0
- package/libs/vendor/svelte/src/runtime/internal/ssr.js +1 -0
- package/libs/vendor/svelte/src/runtime/internal/style_manager.js +48 -0
- package/libs/vendor/svelte/src/runtime/internal/transitions.js +192 -0
- package/libs/vendor/svelte/src/runtime/internal/utils.js +110 -0
- package/libs/vendor/svelte/{store → src/runtime/store}/index.js +5 -5
- package/libs/vendor/svelte/{transition → src/runtime/transition}/index.js +1 -1
- package/libs/vendor/svelte/src/shared/boolean_attributes.js +1 -0
- package/libs/vendor/svelte/src/shared/utils/names.js +1 -0
- package/libs/vendor/svelte/src/shared/version.js +4 -0
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +27 -23
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +197 -225
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +16 -12
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +65 -59
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +32 -29
- package/package.json +1 -1
- package/libs/vendor/svelte/internal/index.js +0 -749
- /package/libs/vendor/svelte/{easing → src/runtime/easing}/index.js +0 -0
- /package/libs/vendor/svelte/{index.js → src/runtime/index.js} +0 -0
|
@@ -1,130 +1,141 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "../../vendor/svelte/
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { safe_not_equal as E } from "../../vendor/svelte/src/runtime/internal/utils.js";
|
|
2
|
+
import { append_styles as N, empty as O, insert as q, detach as x, element as k, text as P, attr as C, append as y, set_data as W } from "../../vendor/svelte/src/runtime/internal/dom.js";
|
|
3
|
+
import { transition_in as h, transition_out as T, check_outros as j, create_bidirectional_transition as M, group_outros as A } from "../../vendor/svelte/src/runtime/internal/transitions.js";
|
|
4
|
+
import { add_render_callback as B, binding_callbacks as F } from "../../vendor/svelte/src/runtime/internal/scheduler.js";
|
|
5
|
+
import { onMount as G, onDestroy as H } from "../../vendor/svelte/src/runtime/internal/lifecycle.js";
|
|
6
|
+
import { SvelteComponent as I, init as J } from "../../vendor/svelte/src/runtime/internal/Component.js";
|
|
7
|
+
import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
8
|
+
import { fade as v } from "../../vendor/svelte/src/runtime/transition/index.js";
|
|
9
|
+
import "../../vendor/svelte/src/runtime/internal/environment.js";
|
|
10
|
+
import "../../vendor/svelte/src/runtime/internal/loop.js";
|
|
11
|
+
import "../../vendor/svelte/src/runtime/internal/style_manager.js";
|
|
12
|
+
import "../../vendor/svelte/src/shared/version.js";
|
|
13
|
+
import "../../vendor/svelte/src/runtime/easing/index.js";
|
|
14
|
+
function K(s) {
|
|
15
|
+
N(s, "svelte-1q8gtp4", ".Measure-Tips.svelte-1q8gtp4.svelte-1q8gtp4{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1q8gtp4 .text.svelte-1q8gtp4{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5);font-size:1.25rem;font-weight:bold}");
|
|
6
16
|
}
|
|
7
|
-
function
|
|
8
|
-
let
|
|
17
|
+
function w(s) {
|
|
18
|
+
let i, e, t, r, l;
|
|
9
19
|
return {
|
|
10
20
|
c() {
|
|
11
|
-
|
|
21
|
+
i = k("div"), e = k("div"), t = P(
|
|
12
22
|
/*tip*/
|
|
13
23
|
s[2]
|
|
14
|
-
), C(
|
|
24
|
+
), C(e, "class", "text svelte-1q8gtp4"), C(i, "class", "Measure-Tips svelte-1q8gtp4");
|
|
15
25
|
},
|
|
16
|
-
m(
|
|
17
|
-
|
|
26
|
+
m(n, f) {
|
|
27
|
+
q(n, i, f), y(i, e), y(e, t), s[7](e), l = !0;
|
|
18
28
|
},
|
|
19
|
-
p(
|
|
20
|
-
(!
|
|
21
|
-
4) &&
|
|
22
|
-
|
|
29
|
+
p(n, f) {
|
|
30
|
+
(!l || f & /*tip*/
|
|
31
|
+
4) && W(
|
|
32
|
+
t,
|
|
23
33
|
/*tip*/
|
|
24
|
-
|
|
34
|
+
n[2]
|
|
25
35
|
);
|
|
26
36
|
},
|
|
27
|
-
i(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
37
|
+
i(n) {
|
|
38
|
+
l || (n && B(() => {
|
|
39
|
+
l && (r || (r = M(i, v, {}, !0)), r.run(1));
|
|
40
|
+
}), l = !0);
|
|
31
41
|
},
|
|
32
|
-
o(
|
|
33
|
-
|
|
42
|
+
o(n) {
|
|
43
|
+
n && (r || (r = M(i, v, {}, !1)), r.run(0)), l = !1;
|
|
34
44
|
},
|
|
35
|
-
d(
|
|
36
|
-
|
|
45
|
+
d(n) {
|
|
46
|
+
n && x(i), s[7](null), n && r && r.end();
|
|
37
47
|
}
|
|
38
48
|
};
|
|
39
49
|
}
|
|
40
|
-
function
|
|
41
|
-
let
|
|
50
|
+
function L(s) {
|
|
51
|
+
let i, e = (
|
|
42
52
|
/*visible*/
|
|
43
|
-
s[0] &&
|
|
53
|
+
s[0] && w(s)
|
|
44
54
|
);
|
|
45
55
|
return {
|
|
46
56
|
c() {
|
|
47
|
-
e && e.c(),
|
|
57
|
+
e && e.c(), i = O();
|
|
48
58
|
},
|
|
49
59
|
m(t, r) {
|
|
50
|
-
e && e.m(t, r),
|
|
60
|
+
e && e.m(t, r), q(t, i, r);
|
|
51
61
|
},
|
|
52
62
|
p(t, [r]) {
|
|
53
63
|
/*visible*/
|
|
54
64
|
t[0] ? e ? (e.p(t, r), r & /*visible*/
|
|
55
|
-
1 &&
|
|
65
|
+
1 && h(e, 1)) : (e = w(t), e.c(), h(e, 1), e.m(i.parentNode, i)) : e && (A(), T(e, 1, 1, () => {
|
|
56
66
|
e = null;
|
|
57
|
-
}),
|
|
67
|
+
}), j());
|
|
58
68
|
},
|
|
59
69
|
i(t) {
|
|
60
|
-
|
|
70
|
+
h(e);
|
|
61
71
|
},
|
|
62
72
|
o(t) {
|
|
63
|
-
|
|
73
|
+
T(e);
|
|
64
74
|
},
|
|
65
75
|
d(t) {
|
|
66
|
-
|
|
76
|
+
t && x(i), e && e.d(t);
|
|
67
77
|
}
|
|
68
78
|
};
|
|
69
79
|
}
|
|
70
|
-
function
|
|
71
|
-
let { measureController:
|
|
72
|
-
const
|
|
73
|
-
const
|
|
74
|
-
let
|
|
75
|
-
return
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
+
function Q(s, i, e) {
|
|
81
|
+
let { measureController: t } = i, { i18n: r = (o) => o } = i, { tips: l } = i, { tipStyle: n = {} } = i, { visible: f = !0 } = i, a = null;
|
|
82
|
+
const S = (o) => {
|
|
83
|
+
const D = t.currentMeasureType;
|
|
84
|
+
let m = "";
|
|
85
|
+
return m = l[o], m === void 0 && (m = l[D][o]), m;
|
|
86
|
+
}, c = (o) => {
|
|
87
|
+
e(2, p = r(S(o)));
|
|
88
|
+
}, u = () => {
|
|
89
|
+
e(2, p = "");
|
|
80
90
|
};
|
|
81
91
|
let p = "";
|
|
82
92
|
const d = (o) => {
|
|
83
|
-
o === "Edit" &&
|
|
84
|
-
}, h = () => {
|
|
85
|
-
e.getCurrentMode() === "Watch" && f();
|
|
93
|
+
o === "Edit" && t.changeMeasureType ? c("start") : u();
|
|
86
94
|
}, g = () => {
|
|
87
|
-
|
|
88
|
-
}, _ = (
|
|
89
|
-
|
|
95
|
+
t.getCurrentMode() === "Watch" && u();
|
|
96
|
+
}, _ = () => {
|
|
97
|
+
t.getCurrentMode() === "Edit" && c("start");
|
|
98
|
+
}, b = (o) => {
|
|
99
|
+
t.currentMeasureType === "area" && (o.length >= 2 ? c("close") : o.length === 0 ? c("start") : u());
|
|
90
100
|
};
|
|
91
|
-
|
|
92
|
-
d(
|
|
93
|
-
}),
|
|
94
|
-
|
|
101
|
+
G(() => {
|
|
102
|
+
d(t.getCurrentMode()), t.hook.on("modeChange", d), t.hook.on("complete", g), t.hook.on("pointsChange", b), t.hook.on("measureTypeChange", _);
|
|
103
|
+
}), H(() => {
|
|
104
|
+
t.hook.off("modeChange", d), t.hook.off("complete", g), t.hook.off("pointsChange", b), t.hook.off("measureTypeChange", _), u();
|
|
95
105
|
});
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
-
a = o,
|
|
106
|
+
function z(o) {
|
|
107
|
+
F[o ? "unshift" : "push"](() => {
|
|
108
|
+
a = o, e(1, a), e(6, n);
|
|
99
109
|
});
|
|
100
110
|
}
|
|
101
111
|
return s.$$set = (o) => {
|
|
102
|
-
"measureController" in o &&
|
|
112
|
+
"measureController" in o && e(3, t = o.measureController), "i18n" in o && e(4, r = o.i18n), "tips" in o && e(5, l = o.tips), "tipStyle" in o && e(6, n = o.tipStyle), "visible" in o && e(0, f = o.visible);
|
|
103
113
|
}, s.$$.update = () => {
|
|
104
114
|
if (s.$$.dirty & /*textDom, tipStyle*/
|
|
105
|
-
|
|
106
|
-
for (const o in
|
|
107
|
-
|
|
108
|
-
}, [
|
|
115
|
+
66 && a)
|
|
116
|
+
for (const o in n)
|
|
117
|
+
n.hasOwnProperty(o) && e(1, a.style[o] = n[o], a);
|
|
118
|
+
}, [f, a, p, t, r, l, n, z];
|
|
109
119
|
}
|
|
110
|
-
class
|
|
111
|
-
constructor(
|
|
112
|
-
super(),
|
|
120
|
+
class se extends I {
|
|
121
|
+
constructor(i) {
|
|
122
|
+
super(), J(
|
|
113
123
|
this,
|
|
114
|
-
|
|
124
|
+
i,
|
|
125
|
+
Q,
|
|
115
126
|
L,
|
|
116
|
-
|
|
117
|
-
N,
|
|
127
|
+
E,
|
|
118
128
|
{
|
|
119
129
|
measureController: 3,
|
|
120
|
-
|
|
121
|
-
|
|
130
|
+
i18n: 4,
|
|
131
|
+
tips: 5,
|
|
132
|
+
tipStyle: 6,
|
|
122
133
|
visible: 0
|
|
123
134
|
},
|
|
124
|
-
|
|
135
|
+
K
|
|
125
136
|
);
|
|
126
137
|
}
|
|
127
138
|
}
|
|
128
139
|
export {
|
|
129
|
-
|
|
140
|
+
se as default
|
|
130
141
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var I = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
3
|
var T = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var c = (s,
|
|
5
|
-
for (var
|
|
6
|
-
T.call(
|
|
4
|
+
var c = (s, t, e) => t in s ? I(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e, a = (s, t) => {
|
|
5
|
+
for (var e in t || (t = {}))
|
|
6
|
+
T.call(t, e) && c(s, e, t[e]);
|
|
7
7
|
if (w)
|
|
8
|
-
for (var
|
|
9
|
-
E.call(
|
|
8
|
+
for (var e of w(t))
|
|
9
|
+
E.call(t, e) && c(s, e, t[e]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var i = (s,
|
|
13
|
-
import
|
|
12
|
+
var i = (s, t, e) => (c(s, typeof t != "symbol" ? t + "" : t, e), e);
|
|
13
|
+
import m from "./EditController.js";
|
|
14
14
|
import P from "./ViewController.js";
|
|
15
15
|
import v from "./WatchController.js";
|
|
16
16
|
import h from "./MixedController.js";
|
|
@@ -97,19 +97,30 @@ import "../Modules/UIController/MainBtnController.js";
|
|
|
97
97
|
import "../Modules/UIController/mobileMainBtnController.js";
|
|
98
98
|
import "../Modules/UIController/Revoke/index.js";
|
|
99
99
|
import "../Components/Controller0.js";
|
|
100
|
-
import "../../vendor/svelte/internal/
|
|
100
|
+
import "../../vendor/svelte/src/runtime/internal/utils.js";
|
|
101
|
+
import "../../vendor/svelte/src/runtime/internal/dom.js";
|
|
102
|
+
import "../../vendor/svelte/src/runtime/internal/transitions.js";
|
|
103
|
+
import "../../vendor/svelte/src/runtime/internal/environment.js";
|
|
104
|
+
import "../../vendor/svelte/src/runtime/internal/loop.js";
|
|
105
|
+
import "../../vendor/svelte/src/runtime/internal/style_manager.js";
|
|
106
|
+
import "../../vendor/svelte/src/runtime/internal/scheduler.js";
|
|
107
|
+
import "../../vendor/svelte/src/runtime/internal/lifecycle.js";
|
|
108
|
+
import "../../vendor/svelte/src/runtime/internal/Component.js";
|
|
109
|
+
import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
110
|
+
import "../../vendor/svelte/src/shared/version.js";
|
|
101
111
|
import "../Components/Common/Switcher0.js";
|
|
112
|
+
import "../../vendor/svelte/src/runtime/internal/each.js";
|
|
102
113
|
import "../Components/Common/Exit.js";
|
|
103
114
|
import "../Components/Common/icons/index.js";
|
|
104
115
|
import "../Components/Controller1.js";
|
|
105
116
|
import "../Components/Common/Switcher1.js";
|
|
106
117
|
import "../Components/Common/CircleButton.js";
|
|
107
|
-
import "../../vendor/svelte/transition/index.js";
|
|
108
|
-
import "../../vendor/svelte/easing/index.js";
|
|
118
|
+
import "../../vendor/svelte/src/runtime/transition/index.js";
|
|
119
|
+
import "../../vendor/svelte/src/runtime/easing/index.js";
|
|
109
120
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
110
121
|
import "../Components/Tip.js";
|
|
111
|
-
class
|
|
112
|
-
constructor(
|
|
122
|
+
class Ke {
|
|
123
|
+
constructor(t, e) {
|
|
113
124
|
i(this, "hasOpen", !1);
|
|
114
125
|
i(this, "hook", new x());
|
|
115
126
|
i(this, "magnifier");
|
|
@@ -133,110 +144,115 @@ class Dt {
|
|
|
133
144
|
* @description 还原点位展示和默认鼠标 UI
|
|
134
145
|
*/
|
|
135
146
|
i(this, "disable", () => {
|
|
136
|
-
var
|
|
137
|
-
this.hasOpen = !1, this.container.style.opacity = "0", (
|
|
147
|
+
var t, e, r, o;
|
|
148
|
+
this.hasOpen = !1, this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
138
149
|
});
|
|
139
|
-
i(this, "getCurrentMode", () => this.controller instanceof
|
|
150
|
+
i(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof h ? "Mixed" : this.controller instanceof P ? "View" : null);
|
|
140
151
|
/** 变更场景
|
|
141
152
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
142
153
|
*/
|
|
143
|
-
i(this, "changeMode", (
|
|
154
|
+
i(this, "changeMode", (t) => {
|
|
144
155
|
var o;
|
|
145
|
-
if (!this.hasOpen || this.getCurrentMode() ===
|
|
156
|
+
if (!this.hasOpen || this.getCurrentMode() === t)
|
|
146
157
|
return;
|
|
147
158
|
(o = this.controller) == null || o.dispose();
|
|
148
|
-
const
|
|
159
|
+
const e = {
|
|
149
160
|
View: P,
|
|
150
161
|
Watch: v,
|
|
151
|
-
Edit:
|
|
162
|
+
Edit: m,
|
|
152
163
|
Mixed: h
|
|
153
164
|
};
|
|
154
|
-
if (!t
|
|
165
|
+
if (!e[t])
|
|
155
166
|
throw new Error("不存在的 Mode");
|
|
156
167
|
const r = this.createControllerParams();
|
|
157
|
-
this.controller = new t
|
|
168
|
+
this.controller = new e[t](r), this.hook.emit("modeChange", t);
|
|
158
169
|
});
|
|
159
170
|
/**
|
|
160
171
|
* @description: 切换测量的类型
|
|
161
172
|
*/
|
|
162
|
-
i(this, "changeMeasureType", (
|
|
163
|
-
this.currentMeasureType =
|
|
173
|
+
i(this, "changeMeasureType", (t) => {
|
|
174
|
+
this.currentMeasureType = t, this.hook.emit("measureTypeChange", t);
|
|
164
175
|
});
|
|
165
176
|
var l, n, u, d, f, g, y, M, C;
|
|
166
|
-
this.five =
|
|
167
|
-
const r = (M = (y =
|
|
177
|
+
this.five = t, this.params = e, this.config = k(e, ["openParams", "magnifierParams"]), this.model = new U(this.config), this.isMobile = (n = (l = e == null ? void 0 : e.openParams) == null ? void 0 : l.isMobile) != null ? n : !1, this.magnifier = new B(t, (u = e.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = e.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new D(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
178
|
+
const r = (M = (y = e.editParams) == null ? void 0 : y.pointSelectorMode) != null ? M : W ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
|
|
168
179
|
if (this.params.useUIController !== !1) {
|
|
169
|
-
const p =
|
|
180
|
+
const p = a({
|
|
170
181
|
container: this.container,
|
|
171
182
|
openParams: o,
|
|
183
|
+
i18n: e.i18n,
|
|
172
184
|
pointSelectorMode: r,
|
|
173
185
|
useNewUI: this.allowMeasureType.length > 1
|
|
174
186
|
}, b(this.params.useUIController));
|
|
175
187
|
this.useUIController = new S(this, p);
|
|
176
188
|
}
|
|
177
189
|
if (this.params.useGuideController !== !1) {
|
|
178
|
-
const p =
|
|
190
|
+
const p = a({
|
|
191
|
+
container: this.container,
|
|
192
|
+
pointSelectorMode: r,
|
|
193
|
+
i18n: e.i18n
|
|
194
|
+
}, b(this.params.useGuideController));
|
|
179
195
|
this.useGuideController = new L(this, p);
|
|
180
196
|
}
|
|
181
197
|
}
|
|
182
|
-
appendTo(
|
|
183
|
-
|
|
198
|
+
appendTo(t) {
|
|
199
|
+
t.append(this.container);
|
|
184
200
|
}
|
|
185
201
|
clear() {
|
|
186
202
|
this.model.clear();
|
|
187
203
|
}
|
|
188
204
|
dispose() {
|
|
189
|
-
var
|
|
190
|
-
this.disable(), this.clear(), (
|
|
205
|
+
var t, e;
|
|
206
|
+
this.disable(), this.clear(), (t = this.useUIController) == null || t.dispose(), (e = this.magnifier) == null || e.dispose(), this.five.needsRender = !0;
|
|
191
207
|
}
|
|
192
208
|
/** 加载数据
|
|
193
209
|
* @description 数据加载时会覆盖当前已保存的数据
|
|
194
210
|
* @description 如果当前正在编辑中,会自动退出并保存编辑
|
|
195
211
|
*/
|
|
196
|
-
load(
|
|
197
|
-
this.model.parse(
|
|
212
|
+
load(t) {
|
|
213
|
+
this.model.parse(t), this.save();
|
|
198
214
|
}
|
|
199
215
|
/** 插件功能入口
|
|
200
216
|
* @description 会隐藏鼠标的默认聚焦环
|
|
201
217
|
* @description 会隐藏当前 VR 内的点位展示
|
|
202
218
|
*/
|
|
203
|
-
enable(
|
|
204
|
-
var
|
|
205
|
-
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1",
|
|
219
|
+
enable(t) {
|
|
220
|
+
var e;
|
|
221
|
+
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (e = this.useUIController) == null || e.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
|
|
206
222
|
}
|
|
207
223
|
/** 进入编辑模式 */
|
|
208
|
-
edit(
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
this.changeMode(
|
|
224
|
+
edit(t) {
|
|
225
|
+
t && this.changeMeasureType(t);
|
|
226
|
+
const e = this.isMobile ? "Mixed" : "Edit";
|
|
227
|
+
this.changeMode(e);
|
|
212
228
|
}
|
|
213
229
|
/** 撤销编辑 */
|
|
214
230
|
revoke() {
|
|
215
|
-
this.controller instanceof
|
|
231
|
+
this.controller instanceof m && this.controller.revoke();
|
|
216
232
|
}
|
|
217
|
-
removePolyline(
|
|
218
|
-
this.model.removePolyline(
|
|
233
|
+
removePolyline(t) {
|
|
234
|
+
this.model.removePolyline(t);
|
|
219
235
|
}
|
|
220
|
-
removeArea(
|
|
221
|
-
this.model.removeArea(
|
|
236
|
+
removeArea(t) {
|
|
237
|
+
this.model.removeArea(t);
|
|
222
238
|
}
|
|
223
|
-
removePolylineByID(
|
|
224
|
-
const
|
|
225
|
-
|
|
239
|
+
removePolylineByID(t) {
|
|
240
|
+
const e = this.model.getPolylineByID(t);
|
|
241
|
+
e && this.model.removePolyline(e);
|
|
226
242
|
}
|
|
227
|
-
getPolylineByID(
|
|
228
|
-
return this.model.getPolylineByID(
|
|
243
|
+
getPolylineByID(t) {
|
|
244
|
+
return this.model.getPolylineByID(t);
|
|
229
245
|
}
|
|
230
246
|
getEditedPolyline() {
|
|
231
247
|
}
|
|
232
248
|
/**
|
|
233
249
|
* 高亮当前线段
|
|
234
250
|
*/
|
|
235
|
-
highlightLine(
|
|
251
|
+
highlightLine(t) {
|
|
236
252
|
if (this.getCurrentMode() !== "Watch")
|
|
237
253
|
return !1;
|
|
238
|
-
const
|
|
239
|
-
return
|
|
254
|
+
const e = this.model.getLineByID(t);
|
|
255
|
+
return e ? (this.controller.highlightLine(e), !0) : !1;
|
|
240
256
|
}
|
|
241
257
|
clearHighlightLines() {
|
|
242
258
|
return this.getCurrentMode() !== "Watch" ? !1 : (this.controller.clearHighlightLines(), !0);
|
|
@@ -244,16 +260,16 @@ class Dt {
|
|
|
244
260
|
/** 保存编辑
|
|
245
261
|
* @description 以下情况可能报错
|
|
246
262
|
*/
|
|
247
|
-
save(
|
|
263
|
+
save(t) {
|
|
248
264
|
var l;
|
|
249
|
-
if (!(this.controller instanceof
|
|
265
|
+
if (!(this.controller instanceof m) && !(this.controller instanceof h))
|
|
250
266
|
return this;
|
|
251
|
-
const
|
|
267
|
+
const e = (l = t == null ? void 0 : t.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
|
|
252
268
|
return r.forEach((n) => {
|
|
253
269
|
this.model.addPolyline(n);
|
|
254
|
-
}), this.controller instanceof
|
|
270
|
+
}), this.controller instanceof m ? this.controller.complete() : o.forEach((n) => {
|
|
255
271
|
n.showArea(), this.model.addArea(n);
|
|
256
|
-
}), this.changeMode(
|
|
272
|
+
}), this.changeMode(e), this;
|
|
257
273
|
}
|
|
258
274
|
/** Mixed 模式才有用,添加起点 */
|
|
259
275
|
addStartPoint() {
|
|
@@ -272,24 +288,24 @@ class Dt {
|
|
|
272
288
|
* @description 改变插件的模式(pc端模式或移动端模式)
|
|
273
289
|
* @param isMobile true为移动端模式,false为pc端
|
|
274
290
|
*/
|
|
275
|
-
changeIsMobile(
|
|
291
|
+
changeIsMobile(t) {
|
|
276
292
|
}
|
|
277
|
-
changeConfigs(
|
|
278
|
-
var
|
|
279
|
-
Object.assign(this.config,
|
|
293
|
+
changeConfigs(t) {
|
|
294
|
+
var e;
|
|
295
|
+
Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI();
|
|
280
296
|
}
|
|
281
297
|
/** 设置线段的文本 */
|
|
282
|
-
setCustomText(
|
|
298
|
+
setCustomText(t, e) {
|
|
283
299
|
var o;
|
|
284
|
-
const r = this.model.getLineByID(
|
|
300
|
+
const r = this.model.getLineByID(t);
|
|
285
301
|
if (!r)
|
|
286
302
|
throw new Error("不存在的线段");
|
|
287
|
-
r.setText(
|
|
303
|
+
r.setText(e), (o = this.controller) == null || o.updateDistanceUI();
|
|
288
304
|
}
|
|
289
305
|
createControllerParams() {
|
|
290
306
|
var r, o;
|
|
291
|
-
const
|
|
292
|
-
return
|
|
307
|
+
const t = (r = this.params.openParams) != null ? r : {}, e = (o = this.params.editParams) != null ? o : {};
|
|
308
|
+
return t.isMobile = this.isMobile, {
|
|
293
309
|
five: this.five,
|
|
294
310
|
hook: this.hook,
|
|
295
311
|
group: this.group,
|
|
@@ -297,15 +313,15 @@ class Dt {
|
|
|
297
313
|
config: this.config,
|
|
298
314
|
magnifier: this.magnifier,
|
|
299
315
|
container: this.container,
|
|
300
|
-
openParams:
|
|
301
|
-
editParams:
|
|
316
|
+
openParams: t,
|
|
317
|
+
editParams: e,
|
|
302
318
|
magnifierParams: this.params.magnifierParams,
|
|
303
319
|
getMeasureType: () => this.currentMeasureType,
|
|
304
|
-
mouseGroup: G(
|
|
320
|
+
mouseGroup: G(a({}, t.crossHairParameter)),
|
|
305
321
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
306
322
|
};
|
|
307
323
|
}
|
|
308
324
|
}
|
|
309
325
|
export {
|
|
310
|
-
|
|
326
|
+
Ke as default
|
|
311
327
|
};
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var o = (
|
|
4
|
-
import { objectAssignDeepExports as
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var p = (e, t, i) => t in e ? r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
3
|
+
var o = (e, t, i) => (p(e, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
|
+
import { objectAssignDeepExports as s } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
5
5
|
import l from "../Components/Tip.js";
|
|
6
|
-
import "../../vendor/svelte/internal/
|
|
7
|
-
import "../../vendor/svelte/
|
|
8
|
-
import "../../vendor/svelte/
|
|
9
|
-
|
|
6
|
+
import "../../vendor/svelte/src/runtime/internal/utils.js";
|
|
7
|
+
import "../../vendor/svelte/src/runtime/internal/dom.js";
|
|
8
|
+
import "../../vendor/svelte/src/runtime/internal/transitions.js";
|
|
9
|
+
import "../../vendor/svelte/src/runtime/internal/environment.js";
|
|
10
|
+
import "../../vendor/svelte/src/runtime/internal/loop.js";
|
|
11
|
+
import "../../vendor/svelte/src/runtime/internal/style_manager.js";
|
|
12
|
+
import "../../vendor/svelte/src/runtime/internal/scheduler.js";
|
|
13
|
+
import "../../vendor/svelte/src/runtime/internal/lifecycle.js";
|
|
14
|
+
import "../../vendor/svelte/src/runtime/internal/Component.js";
|
|
15
|
+
import "../../vendor/svelte/src/runtime/internal/disclose-version/index.js";
|
|
16
|
+
import "../../vendor/svelte/src/shared/version.js";
|
|
17
|
+
import "../../vendor/svelte/src/runtime/transition/index.js";
|
|
18
|
+
import "../../vendor/svelte/src/runtime/easing/index.js";
|
|
19
|
+
const m = {
|
|
10
20
|
line: {
|
|
11
21
|
start: "选择一个合适的位置开始测量,点击【结束】或【鼠标右键】结束测量"
|
|
12
22
|
},
|
|
@@ -14,7 +24,7 @@ const n = {
|
|
|
14
24
|
start: "选择一个合适的位置开始绘制平面",
|
|
15
25
|
close: "选择3个点后将闭合平面,点击【结束】或【鼠标右键】将自动闭合"
|
|
16
26
|
}
|
|
17
|
-
},
|
|
27
|
+
}, n = {
|
|
18
28
|
line: {
|
|
19
29
|
start: ""
|
|
20
30
|
},
|
|
@@ -23,16 +33,17 @@ const n = {
|
|
|
23
33
|
close: "选择3个点后将闭合平面,点击结束自动闭合"
|
|
24
34
|
}
|
|
25
35
|
};
|
|
26
|
-
class
|
|
27
|
-
constructor(t,
|
|
36
|
+
class j {
|
|
37
|
+
constructor(t, i) {
|
|
28
38
|
o(this, "tipSvelteDom");
|
|
29
39
|
this.tipSvelteDom = new l({
|
|
30
|
-
target:
|
|
40
|
+
target: i.container,
|
|
31
41
|
props: {
|
|
32
42
|
measureController: t,
|
|
33
|
-
tips:
|
|
43
|
+
tips: s({}, i.pointSelectorMode === "fixed" ? n : m, i.tips),
|
|
44
|
+
i18n: i.i18n,
|
|
34
45
|
visible: !0,
|
|
35
|
-
tipStyle:
|
|
46
|
+
tipStyle: i.tipStyle
|
|
36
47
|
}
|
|
37
48
|
});
|
|
38
49
|
}
|
|
@@ -50,5 +61,5 @@ class u {
|
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
63
|
export {
|
|
53
|
-
|
|
64
|
+
j as GuideController
|
|
54
65
|
};
|