From 94387d0d0b2795ffcf9cfe857afefbd9f1b3bc5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=98=D0=B2=D0=B0=D1=88=D0=BA?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Wed, 30 Oct 2024 22:49:43 +0500 Subject: [PATCH] Function bounds done, add other decorators --- .../Windows/Graphs/GraphViewModel.cs | 2 - .../Windows/MainGraph/FormulaView.xaml | 9 ++- .../Windows/MainGraph/FormulaViewModel.cs | 61 ++++++++++++++++++- .../Windows/MainGraph/GraphViewModel.cs | 3 + .../Windows/TreeGraph/LimViewModel.cs | 6 ++ .../Windows/TreeGraph/TreeGraphView.xaml | 6 +- .../Windows/TreeGraph/TreeGraphViewModel.cs | 43 +++++++++---- .../Interfaces/FunctionDecorator.cs | 10 ++- .../Interfaces/IOneVariableFunction.cs | 6 +- .../Functions/Decorator/LimXDecorator.cs | 8 ++- .../Functions/Decorator/LimYDecorator.cs | 39 ++++++++++++ .../Functions/Decorator/ScaleXDecorator.cs | 9 ++- .../Functions/Decorator/ScaleYDecorator.cs | 32 ++++++++++ .../Models/Functions/FormulaFunction.cs | 11 +++- .../Models/Functions/TableFunction.cs | 12 +++- .../StructureHelperCommon.csproj | 1 + 16 files changed, 223 insertions(+), 35 deletions(-) create mode 100644 StructureHelperCommon/Models/Functions/Decorator/LimYDecorator.cs create mode 100644 StructureHelperCommon/Models/Functions/Decorator/ScaleYDecorator.cs diff --git a/StructureHelper/Windows/Graphs/GraphViewModel.cs b/StructureHelper/Windows/Graphs/GraphViewModel.cs index acc89a6..8c6c7e7 100644 --- a/StructureHelper/Windows/Graphs/GraphViewModel.cs +++ b/StructureHelper/Windows/Graphs/GraphViewModel.cs @@ -131,8 +131,6 @@ namespace StructureHelper.Windows.Graphs VisualProps = new(); } - - private void DrawSeries() { SetLines(); diff --git a/StructureHelper/Windows/MainGraph/FormulaView.xaml b/StructureHelper/Windows/MainGraph/FormulaView.xaml index 97a1c42..c7d06b3 100644 --- a/StructureHelper/Windows/MainGraph/FormulaView.xaml +++ b/StructureHelper/Windows/MainGraph/FormulaView.xaml @@ -71,7 +71,7 @@ VerticalAlignment="Center"/> - +