@realsee/dnalogel 3.64.3 → 3.64.5-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/MeasurePlugin/Controller.d.ts +11 -1
- package/dist/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
- package/dist/Sculpt/Meshes/Line.d.ts +6 -2
- package/dist/Sculpt/Meshes/Point.d.ts +4 -0
- package/dist/Sculpt/Meshes/Polygon.d.ts +4 -0
- package/dist/Sculpt/typings/style.d.ts +1 -1
- package/dist/Sculpt/utils/renderDom.d.ts +19 -0
- package/dist/Sculpt/utils/unit.d.ts +2 -0
- package/dist/index.cjs.js +66 -66
- package/dist/index.js +4569 -4478
- package/dist/index.umd.js +60 -60
- package/dist/shared-utils/three/PointSelector/index.d.ts +3 -3
- package/dist/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/docs/assets/highlight.css +21 -42
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +26 -26
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +28 -28
- package/docs/classes/CSS3DRender.html +4 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +26 -26
- package/docs/classes/ModelMakerPluginInstance.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +6 -6
- package/docs/classes/MoveController.html +17 -17
- package/docs/classes/Object3DHelperController.html +15 -15
- package/docs/classes/PaintBrush.html +5 -5
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
- package/docs/classes/PanoTagPluginController.html +34 -34
- package/docs/classes/Sculpt.html +23 -23
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +4 -4
- package/docs/classes/Util.FivePuppet.html +6 -6
- package/docs/classes/Util.Interval.html +5 -5
- package/docs/classes/Util.LightTag.html +18 -18
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +6 -6
- package/docs/classes/Util.Object3D.html +4 -4
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +16 -16
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +5 -5
- package/docs/classes/Util.sculpt.BaseEditor.html +7 -7
- package/docs/classes/Util.sculpt.BoxMesh.html +6 -6
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleMesh.html +4 -4
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +4 -4
- package/docs/classes/Util.sculpt.CylinderMesh.html +5 -5
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.LineMesh.html +10 -6
- package/docs/classes/Util.sculpt.PointMesh.html +10 -6
- package/docs/classes/Util.sculpt.PolygonMesh.html +11 -7
- package/docs/classes/Util.sculpt.PrismMesh.html +6 -6
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleMesh.html +12 -8
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +7 -7
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +12 -8
- package/docs/classes/WalkController.html +18 -18
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +18 -18
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +3 -3
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +12 -12
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +4 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +18 -18
- package/docs/interfaces/CruisePluginTypes.Config.html +4 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +17 -17
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +8 -8
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +9 -9
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +10 -10
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +7 -7
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +8 -8
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +4 -4
- package/docs/interfaces/FloorplanBounding.html +5 -5
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +8 -8
- package/docs/interfaces/FloorplanExtraObject.html +5 -5
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +8 -8
- package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -5
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +8 -8
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +9 -9
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -5
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +14 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +24 -24
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +4 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +6 -6
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +10 -10
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +4 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +5 -5
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +7 -7
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +6 -6
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +7 -7
- package/docs/interfaces/PluginEventMap.html +4 -4
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +6 -6
- package/docs/interfaces/State.html +4 -4
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +25 -25
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +4 -4
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
- package/docs/interfaces/Util.EventHandlerConfig.html +7 -7
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +10 -10
- package/docs/interfaces/Util.MagnifierParameter.html +5 -5
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +11 -11
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +4 -4
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/AreaMakerPlugin/Controller.js +4 -2
- package/libs/AreaMakerPlugin/index.js +4 -2
- package/libs/AreaMakerPlugin/utils/Item.js +4 -2
- package/libs/CSS3DRenderPlugin/Controller.js +4 -2
- package/libs/CSS3DRenderPlugin/index.js +7 -5
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +4 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +4 -2
- package/libs/CruisePlugin/BaseController.js +14 -12
- package/libs/CruisePlugin/Move.js +4 -2
- package/libs/CruisePlugin/Work.js +4 -2
- package/libs/CruisePlugin/index.js +8 -6
- package/libs/CurrentPanoImagePlugin/Controller.js +4 -2
- package/libs/CurrentPanoImagePlugin/index.js +5 -3
- package/libs/GuideLinePlugin/Controller.js +6 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +4 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +4 -2
- package/libs/GuideLinePlugin/index.js +8 -6
- package/libs/MeasurePlugin/Controller.d.ts +11 -1
- package/libs/MeasurePlugin/Controller.js +114 -83
- package/libs/MeasurePlugin/index.js +4 -3
- package/libs/MeasurePlugin/utils/MeasureMesh.d.ts +7 -2
- package/libs/MeasurePlugin/utils/MeasureMesh.js +36 -24
- package/libs/ModelMakerPlugin/Controller.js +4 -3
- package/libs/ModelMakerPlugin/index.js +4 -3
- package/libs/ModelMakerPlugin/item/baseItem.js +4 -2
- package/libs/ModelMakerPlugin/item/boxItem.js +4 -2
- package/libs/ModelMakerPlugin/item/polygonItem.js +4 -2
- package/libs/ModelMakerPlugin/item/prismItem.js +4 -2
- package/libs/ModelTVVideoPlugin/Plugin.js +5 -3
- package/libs/ModelTVVideoPlugin/index.js +4 -2
- package/libs/ModelViewPlugin/Plugin.js +5 -3
- package/libs/ModelViewPlugin/index.js +2 -0
- package/libs/Object3DHelperPlugin/Controller.js +17 -15
- package/libs/Object3DHelperPlugin/index.js +7 -5
- package/libs/PanoCompassPlugin/Controller.js +4 -2
- package/libs/PanoCompassPlugin/index.js +5 -3
- package/libs/PanoDoorLabelPlugin/Controller.js +4 -2
- package/libs/PanoDoorLabelPlugin/index.js +5 -3
- package/libs/PanoMeasurePlugin/Components/Controller0.js +4 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +45 -43
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -2
- package/libs/PanoMeasurePlugin/Controller/index.js +60 -58
- package/libs/PanoMeasurePlugin/Model/area.js +13 -11
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +2 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +4 -2
- package/libs/PanoMeasurePlugin/index.js +15 -13
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +4 -2
- package/libs/PanoRulerProPlugin/Controller.js +4 -2
- package/libs/PanoRulerProPlugin/RulerItems.js +4 -2
- package/libs/PanoRulerProPlugin/index.js +5 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +65 -63
- package/libs/PanoSpatialTagPlugin/index.js +2 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +4 -2
- package/libs/PanoTagPlugin/Components/Tag/index.js +59 -57
- package/libs/PanoTagPlugin/Components/TagContainer.js +4 -2
- package/libs/PanoTagPlugin/Components/TagItem.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +4 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +28 -26
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +4 -2
- package/libs/PanoTagPlugin/controller/TagRender.js +4 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +4 -2
- package/libs/PanoTagPlugin/controller/index.js +7 -5
- package/libs/PanoTagPlugin/index.js +13 -11
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +18 -16
- package/libs/PanoVideoPlugin/Controller.js +4 -2
- package/libs/PanoVideoPlugin/VideoMeshController.js +4 -2
- package/libs/PanoVideoPlugin/index.js +7 -5
- package/libs/PipelinePlugin/Controller.js +21 -19
- package/libs/PipelinePlugin/index.js +5 -3
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +4 -2
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +24 -22
- package/libs/Sculpt/Meshes/Line.d.ts +6 -2
- package/libs/Sculpt/Meshes/Line.js +109 -102
- package/libs/Sculpt/Meshes/Point.d.ts +4 -0
- package/libs/Sculpt/Meshes/Point.js +72 -62
- package/libs/Sculpt/Meshes/Polygon.d.ts +4 -0
- package/libs/Sculpt/Meshes/Polygon.js +57 -48
- package/libs/Sculpt/Meshes/Polyline.js +22 -25
- package/libs/Sculpt/Objects/Base/index.js +10 -13
- package/libs/Sculpt/typings/style.d.ts +1 -1
- package/libs/Sculpt/utils/renderDom.d.ts +19 -0
- package/libs/Sculpt/utils/renderDom.js +22 -0
- package/libs/Sculpt/utils/three/ColoredMesh.js +22 -21
- package/libs/Sculpt/utils/unit.d.ts +2 -0
- package/libs/Sculpt/utils/unit.js +26 -0
- package/libs/base/BasePlugin.js +3 -3
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -3
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +4 -2
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -3
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +4 -2
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -3
- package/libs/index.js +147 -146
- package/libs/shared-utils/five/FiveDomEvents.js +3 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.d.ts +3 -3
- package/libs/shared-utils/three/PointSelector/index.js +6 -5
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.d.ts +1 -1
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +3 -3
- package/libs/vendor/hotkeys-js/dist/hotkeys.esm.js +91 -91
- package/package.json +1 -1
- package/libs/Sculpt/utils/removeAllTag.js +0 -13
|
@@ -10,7 +10,7 @@ var w = (d, a, e) => a in d ? x(d, a, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
O.call(a, e) && w(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, M = (d, a) => j(d, G(a));
|
|
13
|
-
var
|
|
13
|
+
var o = (d, a, e) => (w(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
14
14
|
import $ from "../Model/line.js";
|
|
15
15
|
import I from "../Model/point.js";
|
|
16
16
|
import { throttle as q } from "../../shared-utils/throttle.js";
|
|
@@ -87,6 +87,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
|
|
|
87
87
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
88
88
|
import "../../shared-utils/three/core/Line2.js";
|
|
89
89
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
90
|
+
import "../../Sculpt/utils/unit.js";
|
|
91
|
+
import "../../Sculpt/utils/renderDom.js";
|
|
90
92
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
91
93
|
import "../../shared-utils/isTouchDevice.js";
|
|
92
94
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -97,31 +99,31 @@ import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
|
97
99
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
98
100
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
99
101
|
const U = () => !1;
|
|
100
|
-
class
|
|
102
|
+
class It extends z {
|
|
101
103
|
constructor(e) {
|
|
102
104
|
super(e);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
o(this, "type", "edit");
|
|
106
|
+
o(this, "polyline");
|
|
107
|
+
o(this, "area");
|
|
108
|
+
o(this, "hasAppendDashed", !1);
|
|
107
109
|
// private deleteDom: DeleteDom
|
|
108
|
-
|
|
110
|
+
o(this, "fiveElement");
|
|
109
111
|
/** 上一个端点位置 */
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
o(this, "lastPoint", null);
|
|
113
|
+
o(this, "pointSelector");
|
|
114
|
+
o(this, "deleteDom");
|
|
113
115
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
114
|
-
|
|
116
|
+
o(this, "onIntersectionUpdate", q((e) => {
|
|
115
117
|
e && (this.currentMeasureType === "area" && typeof e.isAdsorbed == "boolean" && (e.isAdsorbed ? this.hook.emit("readyComplete") : this.hook.emit("notReadyComplete")), this.updateDashed());
|
|
116
118
|
}, 20));
|
|
117
119
|
/** 撤销编辑 */
|
|
118
|
-
|
|
120
|
+
o(this, "revoke", () => {
|
|
119
121
|
this.currentMeasureType === "area" ? this.revokeArea() : this.currentMeasureType === "line" && this.revokeLine();
|
|
120
122
|
});
|
|
121
123
|
/**
|
|
122
124
|
* @description: 测面积的撤销功能
|
|
123
125
|
*/
|
|
124
|
-
|
|
126
|
+
o(this, "revokeArea", () => {
|
|
125
127
|
if (this.area.points.length !== 0) {
|
|
126
128
|
if (this.area.popPoint(), this.hook.emit("pointsChange", this.area.points), this.area.points.length === 0) {
|
|
127
129
|
this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.five.needsRender = !0, this.hook.emit("revoke", { isEmpty: !0 });
|
|
@@ -134,7 +136,7 @@ class Dt extends z {
|
|
|
134
136
|
/**
|
|
135
137
|
* @description: 测距的撤销功能
|
|
136
138
|
*/
|
|
137
|
-
|
|
139
|
+
o(this, "revokeLine", (e) => {
|
|
138
140
|
const t = e || this.polyline;
|
|
139
141
|
if (t.lines.length === 0 && this.lastPoint) {
|
|
140
142
|
this.lastPoint = null, this.hasAppendDashed = !1, this.pointSelector.setAdherePoints(null), this.dashed.remove(), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.needsRender = !0, this.hook.emit("pointsChange", []);
|
|
@@ -145,21 +147,21 @@ class Dt extends z {
|
|
|
145
147
|
const i = t.lines[t.lines.length - 1], n = i.findAnotherPoint(this.lastPoint);
|
|
146
148
|
n && (this.lastPoint = n, this.hook.emit("anchorChange", n.position), this.group.remove(i.mesh), t.removeLine(i), i.distanceItem.remove(), this.updateDashed(), this.five.needsRender = !0);
|
|
147
149
|
});
|
|
148
|
-
|
|
150
|
+
o(this, "checkMouseLeave", (e) => {
|
|
149
151
|
e || (this.dashed.hide(), this.perpendicularDashed.hide(), this.area.hideArea());
|
|
150
152
|
});
|
|
151
153
|
/** 编辑线条发生改变时通知外部 */
|
|
152
|
-
|
|
154
|
+
o(this, "onLineChanged", () => {
|
|
153
155
|
this.hook.emit("editedPolylineChange", this.polyline);
|
|
154
156
|
});
|
|
155
|
-
|
|
157
|
+
o(this, "onWantsSelect", () => {
|
|
156
158
|
if (this.currentMeasureType === "area") {
|
|
157
159
|
const e = this.area.polygon.isBlank || this.area.polygon.visible === !1;
|
|
158
160
|
if (this.area.points.length >= 3 && e)
|
|
159
161
|
return !1;
|
|
160
162
|
}
|
|
161
163
|
});
|
|
162
|
-
|
|
164
|
+
o(this, "wantsMoveToPano", () => {
|
|
163
165
|
if (this.lastPoint)
|
|
164
166
|
return !1;
|
|
165
167
|
});
|
|
@@ -168,13 +170,13 @@ class Dt extends z {
|
|
|
168
170
|
* 2. 把上一个点的位置更新为当前点的位置
|
|
169
171
|
* 3. 清除 pointSelector
|
|
170
172
|
*/
|
|
171
|
-
|
|
173
|
+
o(this, "onSelect", () => {
|
|
172
174
|
var l, c, u, y;
|
|
173
175
|
this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh), this.currentMeasureType === "area" && this.group.add(this.perpendicularDashed.mesh)), this.hasAppendDashed = !0;
|
|
174
176
|
const e = (() => {
|
|
175
|
-
var
|
|
177
|
+
var s, h;
|
|
176
178
|
if (this.currentMeasureType === "area")
|
|
177
|
-
return this.area.projectPoint((
|
|
179
|
+
return this.area.projectPoint((s = this.pointSelector.position) == null ? void 0 : s.point);
|
|
178
180
|
if (this.currentMeasureType === "line")
|
|
179
181
|
return (h = this.pointSelector.position) == null ? void 0 : h.point;
|
|
180
182
|
})();
|
|
@@ -184,10 +186,10 @@ class Dt extends z {
|
|
|
184
186
|
if (i != null && i.position && t.position.equals(i == null ? void 0 : i.position))
|
|
185
187
|
return;
|
|
186
188
|
this.lastPoint = t;
|
|
187
|
-
const n = (
|
|
189
|
+
const n = (s) => {
|
|
188
190
|
if (!this.lastPoint)
|
|
189
191
|
return [];
|
|
190
|
-
const { intersection: h, pointSelectorInstance: L } =
|
|
192
|
+
const { intersection: h, pointSelectorInstance: L } = s, g = L.pointSelectorHelper.pointHelper, m = new f.Vector3(0, 0, 1).applyQuaternion(g.quaternion);
|
|
191
193
|
if (m.x > 0.9999 || m.y > 0.9999 || m.z > 0.9999 || m.x < -0.9999 || m.y < -0.9999 || m.z < -0.9999) {
|
|
192
194
|
const A = h.point, v = this.lastPoint.position.clone().sub(A);
|
|
193
195
|
L.pointSelectorHelper.updateWithIntersect(h, { emitEvent: !1 });
|
|
@@ -207,8 +209,8 @@ class Dt extends z {
|
|
|
207
209
|
const h = new $(i, t, this.model);
|
|
208
210
|
h.distanceItem.setCanSelect(!1), h.distanceItem.appendTo(this.container), this.polyline.addLine(h), this.group.add(h.mesh), h.distanceItem.update(this.five);
|
|
209
211
|
}
|
|
210
|
-
const
|
|
211
|
-
typeof
|
|
212
|
+
const s = (c = (l = this.editParams) == null ? void 0 : l.autoEndConfig) == null ? void 0 : c.line;
|
|
213
|
+
typeof s == "number" && (this.polyline.getPointLength() >= s ? this.complete() : this.polyline.getPointLength() === s - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.polyline.points);
|
|
212
214
|
} else if (this.currentMeasureType === "area") {
|
|
213
215
|
if (this.area.addPoints(t.position), this.area.isClosed) {
|
|
214
216
|
this.complete();
|
|
@@ -218,17 +220,17 @@ class Dt extends z {
|
|
|
218
220
|
var L;
|
|
219
221
|
return [this.area.points[0], ...(L = n(...h)) != null ? L : []].filter(Y);
|
|
220
222
|
});
|
|
221
|
-
const
|
|
222
|
-
typeof
|
|
223
|
+
const s = (y = (u = this.editParams) == null ? void 0 : u.autoEndConfig) == null ? void 0 : y.area;
|
|
224
|
+
typeof s == "number" && (this.area.points.length >= s ? this.complete() : this.area.points.length === s - 1 && this.hook.emit("readyComplete")), this.hook.emit("pointsChange", this.area.points);
|
|
223
225
|
}
|
|
224
226
|
this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", t.position);
|
|
225
227
|
});
|
|
226
228
|
/** 移动全景时更新 distanceItem 在屏幕上的位置 */
|
|
227
|
-
|
|
229
|
+
o(this, "onCameraUpdate", () => {
|
|
228
230
|
this.updateDistanceUI();
|
|
229
231
|
});
|
|
230
232
|
/** 更新虚线 */
|
|
231
|
-
|
|
233
|
+
o(this, "updateDashed", () => {
|
|
232
234
|
var i;
|
|
233
235
|
if (!this.lastPoint)
|
|
234
236
|
return;
|
|
@@ -247,17 +249,17 @@ class Dt extends z {
|
|
|
247
249
|
if (this.area.areaItem.setCanSelect(!1), this.area.points.length >= 2) {
|
|
248
250
|
const n = (i = this.pointSelector.position) == null ? void 0 : i.point;
|
|
249
251
|
if (n) {
|
|
250
|
-
const
|
|
251
|
-
this.perpendicularDashed.setPoints(
|
|
252
|
+
const s = n, h = t;
|
|
253
|
+
this.perpendicularDashed.setPoints(s, h), this.perpendicularDashed.show();
|
|
252
254
|
} else
|
|
253
255
|
this.perpendicularDashed.hide();
|
|
254
|
-
const l = this.area.polyline.lines.map((
|
|
256
|
+
const l = this.area.polyline.lines.map((s) => ({ start: s.points[0].position, end: s.points[1].position })), c = H({ start: e, end: t }, l), u = H({ start: t, end: this.area.points[0] }, l);
|
|
255
257
|
if (c || u)
|
|
256
258
|
this.area.hideArea(), this.hook.emit("allowAddPointStateChange", "forbid");
|
|
257
259
|
else {
|
|
258
260
|
this.area.showArea();
|
|
259
|
-
const
|
|
260
|
-
this.area.polygon.updatePoints(
|
|
261
|
+
const s = [...this.area.points, t];
|
|
262
|
+
this.area.polygon.updatePoints(s), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
|
|
261
263
|
}
|
|
262
264
|
} else
|
|
263
265
|
this.area.hideArea(), this.perpendicularDashed.hide();
|
|
@@ -265,7 +267,7 @@ class Dt extends z {
|
|
|
265
267
|
});
|
|
266
268
|
// ====================================================================================================================================
|
|
267
269
|
// 下面一堆高亮相关
|
|
268
|
-
|
|
270
|
+
o(this, "wantsTapGesture", (e) => {
|
|
269
271
|
var A, v;
|
|
270
272
|
if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
|
|
271
273
|
return !1;
|
|
@@ -280,7 +282,7 @@ class Dt extends z {
|
|
|
280
282
|
const [n] = X(this.five).intersectRaycaster(e);
|
|
281
283
|
if (!n)
|
|
282
284
|
return;
|
|
283
|
-
const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight,
|
|
285
|
+
const l = this.five.camera, c = n.point.clone().project(l), u = this.container.clientWidth, y = this.container.clientHeight, s = new T(c.x * u, c.y * y), h = this.model.getAllLines().map((r) => {
|
|
284
286
|
const [p, S] = r.points, P = p.position.clone().project(l), C = S.position.clone().project(l);
|
|
285
287
|
if (!b(P) && !b(C))
|
|
286
288
|
return null;
|
|
@@ -290,8 +292,8 @@ class Dt extends z {
|
|
|
290
292
|
if (h.length === 0)
|
|
291
293
|
return;
|
|
292
294
|
const g = h.map((r) => {
|
|
293
|
-
const p = Q(
|
|
294
|
-
return { id: r.id, distance: p.distanceTo(
|
|
295
|
+
const p = Q(s, r.points);
|
|
296
|
+
return { id: r.id, distance: p.distanceTo(s) };
|
|
295
297
|
}).sort((r, p) => r.distance - p.distance)[0];
|
|
296
298
|
if (g.distance > 20)
|
|
297
299
|
return;
|
|
@@ -299,17 +301,17 @@ class Dt extends z {
|
|
|
299
301
|
if (m)
|
|
300
302
|
return this.chooseLine(m), !1;
|
|
301
303
|
});
|
|
302
|
-
|
|
304
|
+
o(this, "chooseLine", (e) => {
|
|
303
305
|
const t = e.getPolyline().lines;
|
|
304
306
|
this.deleteDom.setTarget(t).setLines(t).updatePosition().show(), this.highlightLines(t), this.hook.emit("selectedChange", t);
|
|
305
307
|
});
|
|
306
|
-
|
|
308
|
+
o(this, "chooseArea", (e, t) => {
|
|
307
309
|
this.deleteDom.setTarget(e).updatePosition(t.left, `calc(${t.top} - 1.5rem)`).show(), this.highlightArea(e);
|
|
308
310
|
});
|
|
309
|
-
|
|
311
|
+
o(this, "deleteArea", (e) => {
|
|
310
312
|
this.unHighlightArea(e), e.dispose(), this.deleteDom.hide();
|
|
311
313
|
});
|
|
312
|
-
|
|
314
|
+
o(this, "deleteLine", (e) => {
|
|
313
315
|
const t = e[0], i = this.model.getPolylineByLine(t);
|
|
314
316
|
i && (this.model.removePolyline(i), i.lines.forEach((n) => this.removeLine(n)), this.deleteDom.setLines([]).hide());
|
|
315
317
|
});
|
|
@@ -377,5 +379,5 @@ class Dt extends z {
|
|
|
377
379
|
}
|
|
378
380
|
}
|
|
379
381
|
export {
|
|
380
|
-
|
|
382
|
+
It as default
|
|
381
383
|
};
|
|
@@ -77,6 +77,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
|
|
|
77
77
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
78
78
|
import "../../shared-utils/three/core/Line2.js";
|
|
79
79
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
80
|
+
import "../../Sculpt/utils/unit.js";
|
|
81
|
+
import "../../Sculpt/utils/renderDom.js";
|
|
80
82
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
81
83
|
import "../../shared-utils/isTouchDevice.js";
|
|
82
84
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -89,7 +91,7 @@ import "../../vendor/earcut/src/earcut.js";
|
|
|
89
91
|
import "../../shared-utils/three/getNormal.js";
|
|
90
92
|
import "../utils/isIntersecting.js";
|
|
91
93
|
const D = () => !1;
|
|
92
|
-
class
|
|
94
|
+
class Se extends U {
|
|
93
95
|
constructor(t) {
|
|
94
96
|
super(t);
|
|
95
97
|
o(this, "type", "watch");
|
|
@@ -262,5 +264,5 @@ class ye extends U {
|
|
|
262
264
|
}
|
|
263
265
|
}
|
|
264
266
|
export {
|
|
265
|
-
|
|
267
|
+
Se as default
|
|
266
268
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var x = Object.defineProperty, D = Object.defineProperties;
|
|
2
|
+
var G = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var I = Object.getOwnPropertySymbols;
|
|
4
4
|
var S = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var f = (n, s, t) => s in n ?
|
|
5
|
+
var f = (n, s, t) => s in n ? x(n, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[s] = t, p = (n, s) => {
|
|
6
6
|
for (var t in s || (s = {}))
|
|
7
7
|
S.call(s, t) && f(n, t, s[t]);
|
|
8
8
|
if (I)
|
|
9
9
|
for (var t of I(s))
|
|
10
10
|
L.call(s, t) && f(n, t, s[t]);
|
|
11
11
|
return n;
|
|
12
|
-
}, U = (n, s) =>
|
|
13
|
-
var
|
|
12
|
+
}, U = (n, s) => D(n, G(s));
|
|
13
|
+
var o = (n, s, t) => (f(n, typeof s != "symbol" ? s + "" : s, t), t);
|
|
14
14
|
import c from "./EditController.js";
|
|
15
15
|
import k from "./ViewController.js";
|
|
16
|
-
import
|
|
16
|
+
import E from "./WatchController.js";
|
|
17
17
|
import u from "./MixedController.js";
|
|
18
18
|
import { omit as O } from "../../shared-utils/filter.js";
|
|
19
19
|
import { Group as V } from "three";
|
|
@@ -22,7 +22,7 @@ import { getMouseGroup as A } from "../utils/mouseGroup.js";
|
|
|
22
22
|
import { UIController as B } from "../Modules/UIController/index.js";
|
|
23
23
|
import { GuideController as K } from "../Modules/GuideController.js";
|
|
24
24
|
import { ShortcutKeyController as H } from "./ShortcutKeyController.js";
|
|
25
|
-
import { safeObj as
|
|
25
|
+
import { safeObj as T } from "../../shared-utils/safeObj.js";
|
|
26
26
|
import "../../shared-utils/tag.js";
|
|
27
27
|
import { Magnifier as j } from "../../shared-utils/three/Magnifier.js";
|
|
28
28
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
@@ -102,6 +102,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
|
|
|
102
102
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
103
103
|
import "../../shared-utils/three/core/Line2.js";
|
|
104
104
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
105
|
+
import "../../Sculpt/utils/unit.js";
|
|
106
|
+
import "../../Sculpt/utils/renderDom.js";
|
|
105
107
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
106
108
|
import "../../shared-utils/five/getPosition.js";
|
|
107
109
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
@@ -134,84 +136,84 @@ import "../../vendor/svelte/easing/index.js";
|
|
|
134
136
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
135
137
|
import "../Components/Tip.js";
|
|
136
138
|
import "../../shared-utils/url/absoluteUrl.js";
|
|
137
|
-
class
|
|
139
|
+
class hi extends J {
|
|
138
140
|
constructor(t, e) {
|
|
139
141
|
var l, h, m, a, g, y, C, M, w, P, v, b;
|
|
140
142
|
super(t);
|
|
141
|
-
|
|
142
|
-
|
|
143
|
+
o(this, "state", { enabled: !0 });
|
|
144
|
+
o(this, "hasOpen", !1);
|
|
143
145
|
/** @deprecated use hooks instead */
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
o(this, "hook");
|
|
147
|
+
o(this, "magnifier");
|
|
148
|
+
o(this, "controller", null);
|
|
147
149
|
/** 允许的测量类型 */
|
|
148
|
-
|
|
150
|
+
o(this, "allowMeasureType");
|
|
149
151
|
/** 当前的测量类型 */
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
152
|
+
o(this, "currentMeasureType");
|
|
153
|
+
o(this, "model");
|
|
154
|
+
o(this, "group");
|
|
155
|
+
o(this, "config");
|
|
156
|
+
o(this, "isMobile");
|
|
157
|
+
o(this, "useUIController");
|
|
158
|
+
o(this, "params");
|
|
159
|
+
o(this, "useGuideController");
|
|
160
|
+
o(this, "container", document.createElement("div"));
|
|
161
|
+
o(this, "shortcutKeyController");
|
|
160
162
|
/** 关闭插件功能
|
|
161
163
|
* @description 清除标尺线条
|
|
162
164
|
* @description 还原点位展示和默认鼠标 UI
|
|
163
165
|
*/
|
|
164
|
-
|
|
165
|
-
var t, e,
|
|
166
|
-
this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (
|
|
166
|
+
o(this, "disable", () => {
|
|
167
|
+
var t, e, r, i;
|
|
168
|
+
this.hasOpen = !1, this.state.enabled = !1, this.container.style.visibility = "hidden", this.container.style.opacity = "0", (t = this.controller) == null || t.dispose(), (e = this.useUIController) == null || e.hide(), (r = this.useGuideController) == null || r.hide(), (i = this.shortcutKeyController) == null || i.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
167
169
|
});
|
|
168
|
-
|
|
170
|
+
o(this, "getCurrentMode", () => this.controller instanceof c ? "Edit" : this.controller instanceof E ? "Watch" : this.controller instanceof u ? "Mixed" : this.controller instanceof k ? "View" : null);
|
|
169
171
|
/** 变更场景
|
|
170
172
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
171
173
|
*/
|
|
172
|
-
|
|
173
|
-
var
|
|
174
|
+
o(this, "changeMode", (t) => {
|
|
175
|
+
var i, l, h, m, a;
|
|
174
176
|
if (!this.hasOpen || this.getCurrentMode() === t)
|
|
175
177
|
return;
|
|
176
|
-
(
|
|
178
|
+
(i = this.controller) == null || i.dispose();
|
|
177
179
|
const e = {
|
|
178
180
|
View: k,
|
|
179
|
-
Watch:
|
|
181
|
+
Watch: E,
|
|
180
182
|
Edit: c,
|
|
181
183
|
Mixed: u
|
|
182
184
|
};
|
|
183
185
|
if (!e[t])
|
|
184
186
|
throw new Error("不存在的 Mode");
|
|
185
|
-
const
|
|
186
|
-
this.controller = new e[t](
|
|
187
|
+
const r = this.createControllerParams();
|
|
188
|
+
this.controller = new e[t](r), t === "View" ? ((l = this.useUIController) == null || l.hide(), (h = this.useGuideController) == null || h.hide()) : ((m = this.useUIController) == null || m.show(), (a = this.useGuideController) == null || a.show()), this.hook.emit("modeChange", t);
|
|
187
189
|
});
|
|
188
190
|
/**
|
|
189
191
|
* @description: 切换测量的类型
|
|
190
192
|
*/
|
|
191
|
-
|
|
193
|
+
o(this, "changeMeasureType", (t) => {
|
|
192
194
|
this.currentMeasureType = t, this.hook.emit("measureTypeChange", t);
|
|
193
195
|
});
|
|
194
196
|
this.five = t, this.hook = this.hooks, this.params = e, this.config = O(e, ["openParams", "magnifierParams"]), this.model = new W(this.config), this.isMobile = (h = (l = e == null ? void 0 : e.openParams) == null ? void 0 : l.isMobile) != null ? h : !1, this.magnifier = new j(
|
|
195
197
|
t,
|
|
196
198
|
(y = (g = e.magnifierParams) != null ? g : (a = (m = e.pointSelectorConfig) == null ? void 0 : m.helper) == null ? void 0 : a.magnifierParams) != null ? y : { width: 190, height: 190, scale: 2 }
|
|
197
199
|
), this.allowMeasureType = Array.from(new Set((M = (C = e.editParams) == null ? void 0 : C.allowMeasureType) != null ? M : ["line"])), this.currentMeasureType = (w = this.allowMeasureType[0]) != null ? w : "line", this.group = new V(), 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.visibility = "hidden", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
|
|
198
|
-
const
|
|
200
|
+
const r = (v = (P = e.editParams) == null ? void 0 : P.pointSelectorMode) != null ? v : F ? "fixed" : "cursor", i = (b = this.params.openParams) != null ? b : {};
|
|
199
201
|
if (this.params.useUIController !== !1) {
|
|
200
202
|
const d = p({
|
|
201
203
|
container: this.container,
|
|
202
|
-
openParams:
|
|
204
|
+
openParams: i,
|
|
203
205
|
i18n: e.i18n,
|
|
204
|
-
pointSelectorMode:
|
|
206
|
+
pointSelectorMode: r,
|
|
205
207
|
useNewUI: this.allowMeasureType.length > 1
|
|
206
|
-
},
|
|
208
|
+
}, T(this.params.useUIController));
|
|
207
209
|
this.useUIController = new B(this, d);
|
|
208
210
|
}
|
|
209
211
|
if (this.params.useGuideController !== !1) {
|
|
210
212
|
const d = p({
|
|
211
213
|
container: this.container,
|
|
212
|
-
pointSelectorMode:
|
|
214
|
+
pointSelectorMode: r,
|
|
213
215
|
i18n: e.i18n
|
|
214
|
-
},
|
|
216
|
+
}, T(this.params.useGuideController));
|
|
215
217
|
this.useGuideController = new K(this, d);
|
|
216
218
|
}
|
|
217
219
|
}
|
|
@@ -232,10 +234,10 @@ class ni extends J {
|
|
|
232
234
|
load(t) {
|
|
233
235
|
let e = t;
|
|
234
236
|
t.list && (e = {
|
|
235
|
-
polylines: t.list.map((
|
|
237
|
+
polylines: t.list.map((i) => i.polyline).map((i) => {
|
|
236
238
|
var l;
|
|
237
|
-
return U(p({},
|
|
238
|
-
visibleFiveMode: (l =
|
|
239
|
+
return U(p({}, i), {
|
|
240
|
+
visibleFiveMode: (l = i.visibleFiveMode) != null ? l : ["Panorama"]
|
|
239
241
|
});
|
|
240
242
|
})
|
|
241
243
|
}), this.model.parse(e), this.save();
|
|
@@ -245,8 +247,8 @@ class ni extends J {
|
|
|
245
247
|
* @description 会隐藏当前 VR 内的点位展示
|
|
246
248
|
*/
|
|
247
249
|
enable(t) {
|
|
248
|
-
var e, i;
|
|
249
|
-
this.hasOpen || (this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t == null ? void 0 : t.mode) !== "View" && ((
|
|
250
|
+
var e, r, i;
|
|
251
|
+
this.hasOpen || (!this.container.parentElement && ((e = this.five.getElement()) != null && e.parentElement) && this.appendTo(this.five.getElement().parentElement), this.state.enabled = !0, this.hasOpen = !0, this.group.matrix.copy(this.workUtil.transform), this.group.matrix.decompose(this.group.position, this.group.quaternion, this.group.scale), this.group.updateMatrixWorld(), this.five.scene.add(this.group), this.container.style.visibility = "visible", this.container.style.opacity = "1", t != null && t.mode ? this.changeMode(t.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t == null ? void 0 : t.mode) !== "View" && ((r = this.useUIController) == null || r.show(), (i = this.useGuideController) == null || i.show()), this.shortcutKeyController = new H(this, this.five), this.hook.emit("enable", !0));
|
|
250
252
|
}
|
|
251
253
|
/** 进入编辑模式 */
|
|
252
254
|
edit(t) {
|
|
@@ -289,11 +291,11 @@ class ni extends J {
|
|
|
289
291
|
* @description 以下情况可能报错
|
|
290
292
|
*/
|
|
291
293
|
save(t) {
|
|
292
|
-
var
|
|
294
|
+
var i;
|
|
293
295
|
if (!(this.controller instanceof c) && !(this.controller instanceof u))
|
|
294
296
|
return this;
|
|
295
|
-
const e = (
|
|
296
|
-
return this.controller instanceof c ? this.controller.complete() :
|
|
297
|
+
const e = (i = t == null ? void 0 : t.mode) != null ? i : "View", r = this.controller.model.areas;
|
|
298
|
+
return this.controller instanceof c ? this.controller.complete() : r.forEach((l) => {
|
|
297
299
|
l.showArea(), this.model.addArea(l);
|
|
298
300
|
}), this.changeMode(e), this;
|
|
299
301
|
}
|
|
@@ -317,20 +319,20 @@ class ni extends J {
|
|
|
317
319
|
changeIsMobile(t) {
|
|
318
320
|
}
|
|
319
321
|
changeConfigs(t) {
|
|
320
|
-
var e,
|
|
321
|
-
Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI(), (
|
|
322
|
+
var e, r;
|
|
323
|
+
Object.assign(this.config, t), (e = this.controller) == null || e.updateDistanceUI(), (r = this.controller) == null || r.updateAreaUI();
|
|
322
324
|
}
|
|
323
325
|
/** 设置线段的文本 */
|
|
324
326
|
setCustomText(t, e) {
|
|
325
|
-
var
|
|
326
|
-
const
|
|
327
|
-
if (!
|
|
327
|
+
var i;
|
|
328
|
+
const r = this.model.getLineByID(t);
|
|
329
|
+
if (!r)
|
|
328
330
|
throw new Error("不存在的线段");
|
|
329
|
-
|
|
331
|
+
r.setText(e), (i = this.controller) == null || i.updateDistanceUI();
|
|
330
332
|
}
|
|
331
333
|
createControllerParams() {
|
|
332
|
-
var
|
|
333
|
-
const t = (
|
|
334
|
+
var r, i;
|
|
335
|
+
const t = (r = this.params.openParams) != null ? r : {}, e = (i = this.params.editParams) != null ? i : {};
|
|
334
336
|
return t.isMobile = this.isMobile, {
|
|
335
337
|
five: this.five,
|
|
336
338
|
hook: this.hook,
|
|
@@ -351,5 +353,5 @@ class ni extends J {
|
|
|
351
353
|
}
|
|
352
354
|
}
|
|
353
355
|
export {
|
|
354
|
-
|
|
356
|
+
hi as default
|
|
355
357
|
};
|
|
@@ -71,13 +71,15 @@ import "../../shared-utils/three/core/LineGeometry.js";
|
|
|
71
71
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
72
72
|
import "../../shared-utils/three/core/Line2.js";
|
|
73
73
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
74
|
+
import "../../Sculpt/utils/unit.js";
|
|
75
|
+
import "../../Sculpt/utils/renderDom.js";
|
|
74
76
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
75
77
|
import "../../shared-utils/isTouchDevice.js";
|
|
76
78
|
import "../../shared-utils/five/getPosition.js";
|
|
77
79
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
78
80
|
import "../../shared-utils/three/PointSelector/utils/contents.js";
|
|
79
81
|
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
80
|
-
class
|
|
82
|
+
class Xt {
|
|
81
83
|
constructor(t, e) {
|
|
82
84
|
i(this, "id", f());
|
|
83
85
|
i(this, "selected", !1);
|
|
@@ -106,14 +108,14 @@ class Nt {
|
|
|
106
108
|
i(this, "updateDom", () => {
|
|
107
109
|
this.five && (this.polyline.lines.forEach((t) => t.distanceItem.update(this.five)), this.areaItem.updateDomPosition(this.five));
|
|
108
110
|
});
|
|
109
|
-
var
|
|
111
|
+
var r;
|
|
110
112
|
t && (this.points = t), this.model = e.model, this.polygon = new v(t), this.polyline = new y({ model: e.model }), this.areaItem = new C({
|
|
111
113
|
area: this,
|
|
112
|
-
clickCallback: (
|
|
113
|
-
const a =
|
|
114
|
+
clickCallback: (s, p) => {
|
|
115
|
+
const a = s.clientX + "px", h = s.clientY + "px";
|
|
114
116
|
this.hook.emit("selected", this, { left: a, top: h });
|
|
115
117
|
}
|
|
116
|
-
}), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (
|
|
118
|
+
}), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (r = this.five) == null || r.on("cameraUpdate", this.updateDom);
|
|
117
119
|
}
|
|
118
120
|
/**
|
|
119
121
|
* @description: 多边形的端点是否闭合
|
|
@@ -123,14 +125,14 @@ class Nt {
|
|
|
123
125
|
return this.points.length >= 4 && ((t = this.points.at(0)) == null ? void 0 : t.equals(this.points.at(-1)));
|
|
124
126
|
}
|
|
125
127
|
addPoints(t) {
|
|
126
|
-
var
|
|
128
|
+
var s;
|
|
127
129
|
this.points = this.points.concat(t);
|
|
128
|
-
const e = this.points.at(-2),
|
|
129
|
-
if (e &&
|
|
130
|
-
const p = new u(new n(e), new n(
|
|
130
|
+
const e = this.points.at(-2), r = this.points.at(-1);
|
|
131
|
+
if (e && r) {
|
|
132
|
+
const p = new u(new n(e), new n(r), this.polyline.model);
|
|
131
133
|
this.polyline.addLine(p), this.meshContainer.add(p.mesh), this.five && (p.distanceItem.setCanSelect(!1), p.distanceItem.appendTo(this.domContainer), p.distanceItem.update(this.five));
|
|
132
134
|
}
|
|
133
|
-
(
|
|
135
|
+
(s = this.meshContainer) != null && s.children.includes(this.polygon) || this.meshContainer.add(this.polygon), this.polygon.updatePoints(this.points), this.areaItem.updateArea(this.five), this.points.length === 3 ? this.planeHelper = new m.Plane().setFromCoplanarPoints(this.points[0], this.points[1], this.points[2]) : this.points.length < 3 && (this.planeHelper = null);
|
|
134
136
|
}
|
|
135
137
|
/**
|
|
136
138
|
* @description: 移除最后一个添加的点
|
|
@@ -176,5 +178,5 @@ class Nt {
|
|
|
176
178
|
}
|
|
177
179
|
}
|
|
178
180
|
export {
|
|
179
|
-
|
|
181
|
+
Xt as default
|
|
180
182
|
};
|
|
@@ -49,6 +49,8 @@ import "../../shared-utils/three/core/LineGeometry.js";
|
|
|
49
49
|
import "../../shared-utils/three/core/LineMaterial.js";
|
|
50
50
|
import "../../shared-utils/three/core/Line2.js";
|
|
51
51
|
import "../../shared-utils/three/core/LineMaterial2.js";
|
|
52
|
+
import "../../Sculpt/utils/unit.js";
|
|
53
|
+
import "../../Sculpt/utils/renderDom.js";
|
|
52
54
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
53
55
|
import "../../shared-utils/isTouchDevice.js";
|
|
54
56
|
import "../../shared-utils/five/getPosition.js";
|
|
@@ -86,6 +86,8 @@ import "../../../shared-utils/three/core/LineGeometry.js";
|
|
|
86
86
|
import "../../../shared-utils/three/core/LineMaterial.js";
|
|
87
87
|
import "../../../shared-utils/three/core/Line2.js";
|
|
88
88
|
import "../../../shared-utils/three/core/LineMaterial2.js";
|
|
89
|
+
import "../../../Sculpt/utils/unit.js";
|
|
90
|
+
import "../../../Sculpt/utils/renderDom.js";
|
|
89
91
|
import "../../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
90
92
|
import "../../../shared-utils/isTouchDevice.js";
|
|
91
93
|
import "../../../shared-utils/five/getPosition.js";
|
|
@@ -102,7 +104,7 @@ import "../../Components/Common/Switcher1.js";
|
|
|
102
104
|
import "../../Components/Common/CircleButton.js";
|
|
103
105
|
import "../../../vendor/svelte/transition/index.js";
|
|
104
106
|
import "../../../vendor/svelte/easing/index.js";
|
|
105
|
-
class
|
|
107
|
+
class gi {
|
|
106
108
|
constructor(i, t) {
|
|
107
109
|
o(this, "revoke");
|
|
108
110
|
o(this, "container");
|
|
@@ -158,5 +160,5 @@ class Ei {
|
|
|
158
160
|
}
|
|
159
161
|
}
|
|
160
162
|
export {
|
|
161
|
-
|
|
163
|
+
gi as UIController
|
|
162
164
|
};
|