Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiusgreat committed Sep 24, 2024
1 parent 0d9d417 commit 1e798d3
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Canvas.Core/Canvas.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>3.2.4</Version>
<Version>3.2.5</Version>
<Description>Internal package used in Canvas.Views.Web</Description>
<Authors>artemiusgreat</Authors>
<Copyright>indemos.com</Copyright>
Expand Down
6 changes: 3 additions & 3 deletions Canvas.Core/Composers/Composer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public class Composer : IComposer
/// </summary>
public Composer()
{
Size = 0.5;
Size = 0.4;
ValueCount = 3;
IndexCount = 9;

Expand Down Expand Up @@ -326,8 +326,8 @@ public virtual DataModel GetItemPosition(IEngine engine, DataModel item)

// Percentage to pixels, Y is inverted

item.X = Math.Round(engine.X * index, MidpointRounding.ToZero);
item.Y = Math.Round(engine.Y - engine.Y * value, MidpointRounding.ToZero);
item.X = engine.X * index;
item.Y = engine.Y - engine.Y * value;

return item;
}
Expand Down
12 changes: 6 additions & 6 deletions Canvas.Core/Shapes/CandleShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ public override double[] GetDomain(int index, string name, IList<IShape> items)
return null;
}

return new double[]
{
return
[
L.Value,
H.Value
};
];
}

/// <summary>
Expand All @@ -66,13 +66,13 @@ public override double[] GetDomain(int index, string name, IList<IShape> items)
/// <returns></returns>
public override IList<double> GetSeriesValues(DataModel view, DataModel coordinates)
{
return new double[]
{
return
[
O ?? 0,
H ?? 0,
L ?? 0,
C ?? 0
};
];
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion Canvas.Views.Web/Canvas.Views.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Version>3.2.4</Version>
<Version>3.2.5</Version>
<PackageTags>finance chart opengl canvas trading gdi stock direct2d</PackageTags>
<Authors>artemiusgreat</Authors>
<Copyright>indemos.com</Copyright>
Expand Down
8 changes: 5 additions & 3 deletions Canvas.Views.Web/Views/CanvasGroupView.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,19 @@ await view.Value.Create<EngineType>(() =>
/// <param name="message"></param>
/// <param name="items"></param>
/// <returns></returns>
public virtual void Update(DomainModel message, IList<IShape> items = null)
public virtual Task Update(DomainModel message, IList<IShape> items = null)
{
Views.ForEach(o =>
var processes = Views.Select(o =>
{
if (items is not null)
{
o.Value.Composer.Items = items;
}

o.Value.Composer.Update(message);
return o.Value.Composer.Update(message);
});

return Task.WhenAll(processes);
}

/// <summary>
Expand Down

0 comments on commit 1e798d3

Please sign in to comment.