Skip to content

Commit

Permalink
Merge pull request #10 from codymullins/master
Browse files Browse the repository at this point in the history
Add SetLineDash
  • Loading branch information
mizrael authored Dec 16, 2024
2 parents 35261bc + b35a075 commit e3d43b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Blazorex/IRenderContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ void DrawImage(ElementReference imageRef,
string Font { get; set; }

TextAlign TextAlign { get; set; }

void SetLineDash(float[] segments);
}
}
3 changes: 3 additions & 0 deletions src/Blazorex/RenderContext2D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ public void Arc(float x, float y, float radius, float startAngle, float endAngle
public void Rect(float x, float y, float width, float height)
=> this.Call("rect", x, y, width, height);

public void SetLineDash(float[] segments)
=> this.Call("setLineDash", segments);

#endregion public methods

#region properties
Expand Down

0 comments on commit e3d43b6

Please sign in to comment.