-
Notifications
You must be signed in to change notification settings - Fork 514
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1070 from beto-rodriguez/dev
beta-801
- Loading branch information
Showing
44 changed files
with
737 additions
and
650 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
& $PSScriptRoot\pack.ps1 Release | ||
# & $PSScriptRoot\pack.ps1 Release | ||
|
||
& dotnet nuget push **/*.nupkg --api-key oy2o6gainuded3gc42sq2gddywqhhhiu3cxtns4lokf5hu --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
& dotnet nuget push **/*.nupkg --api-key oy2dbuhvjryhbuvo4spafzblwxojzwpulhoi3rvxiuag54 --source https://api.nuget.org/v3/index.json --skip-duplicate | ||
|
||
## this should only be ran once? | ||
## dotnet nuget add source --username beto-rodriguez --password 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 --store-password-in-clear-text --name github "https://nuget.pkg.github.com/beto-rodriguez/index.json" | ||
& dotnet nuget push **/*.nupkg --api-key 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 --source "github" --skip-duplicate | ||
& dotnet nuget push **/*.nupkg --api-key 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 --source "github" --skip-duplicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
samples/ViewModelsSamples/General/VisualElements/MyGeometry.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// The MIT License(MIT) | ||
// | ||
// Copyright(c) 2021 Alberto Rodriguez Orozco & LiveCharts Contributors | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all | ||
// copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
// SOFTWARE. | ||
|
||
using LiveChartsCore.Drawing; | ||
using LiveChartsCore.Kernel; | ||
using LiveChartsCore.Measure; | ||
|
||
namespace LiveChartsCore.VisualElements; | ||
|
||
/// <summary> | ||
/// Defines a visual element that has stroke and fill, it can also be scaled in | ||
/// <see cref="MeasureUnit.Pixels"/> or <see cref="MeasureUnit.ChartValues"/>. | ||
/// </summary> | ||
/// <typeparam name="TDrawingContext">The type of the drawing context,</typeparam> | ||
public abstract class BaseGeometryVisual<TDrawingContext> : VisualElement<TDrawingContext> | ||
where TDrawingContext : DrawingContext | ||
{ | ||
private double _width; | ||
private double _height; | ||
private IPaint<TDrawingContext>? _fill; | ||
private IPaint<TDrawingContext>? _stroke; | ||
private MeasureUnit _sizeUnit = MeasureUnit.Pixels; | ||
|
||
/// <summary> | ||
/// Gets or sets the height of the rectangle [in Pixels or ChartValues, see <see cref="SizeUnit"/>]. | ||
/// </summary> | ||
public double Width { get => _width; set => SetProperty(ref _width, value); } | ||
|
||
/// <summary> | ||
/// Gets or sets the width of the rectangle [in Pixels or ChartValues, see <see cref="SizeUnit"/>]. | ||
/// </summary> | ||
public double Height { get => _height; set => SetProperty(ref _height, value); } | ||
|
||
/// <summary> | ||
/// Gets or sets the unit of the <see cref="Height"/> and <see cref="Width"/> properties. | ||
/// </summary> | ||
public MeasureUnit SizeUnit { get => _sizeUnit; set => SetProperty(ref _sizeUnit, value); } | ||
/// <summary> | ||
/// Gets or sets the fill paint. | ||
/// </summary> | ||
public IPaint<TDrawingContext>? Fill | ||
{ | ||
get => _fill; | ||
set => SetPaintProperty(ref _fill, value); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the stroke paint. | ||
/// </summary> | ||
public IPaint<TDrawingContext>? Stroke | ||
{ | ||
get => _stroke; | ||
set => SetPaintProperty(ref _stroke, value, true); | ||
} | ||
|
||
/// <inheritdoc cref="ChartElement{TDrawingContext}.GetPaintTasks"/> | ||
internal override IPaint<TDrawingContext>?[] GetPaintTasks() | ||
{ | ||
return new[] { _fill, _stroke }; | ||
} | ||
|
||
/// <summary> | ||
/// Called when [paint changed]. | ||
/// </summary> | ||
/// <param name="propertyName">Name of the property.</param> | ||
/// <returns></returns> | ||
protected override void OnPaintChanged(string? propertyName) | ||
{ | ||
base.OnPaintChanged(propertyName); | ||
OnPropertyChanged(propertyName); | ||
} | ||
} |
Oops, something went wrong.