Skip to content

Conversation

Pheo
Copy link
Contributor

@Pheo Pheo commented Feb 26, 2025

Adds Path2D https://developer.mozilla.org/en-US/docs/Web/API/Path2D
This calls to BabylonNative as implemented in BabylonJS/BabylonNative#1469

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 26, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 26, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 26, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 26, 2025

@CedricGuillemet
Copy link
Contributor

Must be merged after BabylonJS/BabylonNative#1469

CedricGuillemet pushed a commit to BabylonJS/BabylonNative that referenced this pull request Feb 28, 2025
- https://developer.mozilla.org/en-US/docs/Web/API/Path2D

Adds nanosvg.h for SVG path parsing.
Known missing functionality:
1. `addPath` doesn't accept DOMMatrix transform
2. `roundRect` doesn't accept CSS-style radii array
3. `ellipse` doesn't handle clockwise

Called from BabylonJS/Babylon.js#16221
@Pheo Pheo force-pushed the CanvasPath2DImplementation branch from e56b98a to 17b0a30 Compare February 28, 2025 13:29
@Pheo Pheo marked this pull request as ready for review February 28, 2025 13:30
@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Feb 28, 2025

@RaananW
Copy link
Member

RaananW commented Feb 28, 2025

@CedricGuillemet , the referenced PR seems to be merged, can we merge this?

@CedricGuillemet
Copy link
Contributor

@CedricGuillemet , the referenced PR seems to be merged, can we merge this?

yes

@RaananW RaananW enabled auto-merge (squash) March 3, 2025 15:18
@bjsplat
Copy link
Collaborator

bjsplat commented Mar 3, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Mar 3, 2025

@RaananW RaananW merged commit ea8b2ff into BabylonJS:master Mar 3, 2025
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants