Skip to content

Commit

Permalink
Updated frequency of updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Jan 12, 2025
1 parent 3a2a295 commit b4fb187
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,13 @@
transform="rotate(@(SVGElement.Rotation.AsString()) @((SVGElement.X + SVGElement.Width / 2).AsString()) @((SVGElement.Y + SVGElement.Height / 2).AsString()))">
</polygon>
</g>
@if (SVGElement.Selected && SVGElement.SVG.EditMode is not EditMode.Add)
{
<Anchor OnPointerDown="() => AnchorSelect(4)" Position="anchorPosition" />
}
<Anchor OnPointerDown="() => AnchorSelect(4)" Position="anchorPosition" />

@code {
private (double x, double y) anchorPosition =>
(
x: SVGElement.X + SVGElement.Width / 2 + Math.Sin(-SVGElement.Rotation / 180 * Math.PI) * SVGElement.Height,
y: SVGElement.Y + SVGElement.Height / 2 + Math.Cos(-SVGElement.Rotation / 180 * Math.PI) * SVGElement.Height
x: SVGElement.X + SVGElement.Width / 2 + Math.Sin(-SVGElement.Rotation / 180 * Math.PI) * 10,
y: SVGElement.Y + SVGElement.Height / 2 + Math.Cos(-SVGElement.Rotation / 180 * Math.PI) * 10
);

public string Cone(double angle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ else
await using var leftTimeDomainDataArray = await Uint8Array.CreateAsync(JSRuntime, bufferLength);
await using var rightTimeDomainDataArray = await Uint8Array.CreateAsync(JSRuntime, bufferLength);

await Task.Delay(500);

while (true)
{
await Task.Delay(500);

await leftAnalyzerNode.GetByteTimeDomainDataAsync(leftTimeDomainDataArray);
leftTimeDomainMeasurements = await leftTimeDomainDataArray.GetAsArrayAsync();

Expand Down

0 comments on commit b4fb187

Please sign in to comment.