-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Adding Win2d Path Mini Language Parser to WCT #3421
Comments
Hello, 'ratishphilip! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future! |
@ratishphilip Thanks for showcasing the work. Let's see what the community has to say whether this is something we want to move forward with or not. |
@Kyaa-dost is it ok to submit the PR while this issue is still being discussed? |
@ratishphilip yes, we can certainly do that and if the team wants to move forward we will merge the PR 😊 Thank you! |
Thanks @Kyaa-dost! I've been talking to @ratishphilip a bit in the Discord server about his toolkit already. 🙂 His work is really amazing, and I'm looking forward to seeing things come to the WCT and be centralized for our developers. I think with the Animation improvements @Sergio0694's planning in #3108 we're going to have a lot of great graphical APIs and improvements for folks building amazing experiences with the Toolkit in 7.0. 🎉🎉🎉 |
Describe the problem this feature would solve
WPF has a Path Mini Language which is used to describe geometric paths and figures. Support for a similar language does not exist in Win2d library.
Describe the solution
In the CompositionProToolkit library, I have defined the Win2d Path Mini Language, which is a superset of the Path Language specification in SVG and can be used to define the following
CanvasGeometry
Color
(in hex format or Vector4 format)ICanvasBrush
SolidColorBrush
LinearGradientBrush
LinearGradientBrush
withGradientStopHdr
RadialGradientBrush
RadialGradientBrush
withGradientStopHdr
CanvasStrokeStyle
CanvasStroke
which derives fromICanvasStroke
(an interface which encapsulates the attributes of a stroke - Width, Brush, Style and Transform)Also in the CompositionProToolkit library, I have implemented a set of static helper methods which enable the parsing of Win2d Path Mini Language as
string
and convert them to appropriateCanvasGeometry
,Color
,ICanvasBrush
orICanvasStroke
. Also I have added extension methods toCompositor
,CanvasPathBuilder
andCanvasDrawingSession
to build upon the aforementioned helper methods.My aim to integrate my library CompositionProToolkit into WCT in a series of phases.
So in the first phase I am porting the code related to Win2d Path Mini Language parsing into WCT.
Additional context
Win2d Path Mini Language Specification
The text was updated successfully, but these errors were encountered: