PixiJS version
8.x
Link to minimal reproduction
https://pixijs.com/8.x/guides/components/assets/svg#loading-svgs-as-graphics
Steps to reproduce
const svgContext = await Assets.load('path/to.svg', { parseAsGraphicsContext: true, // If false, it returns a texture instead. }); const myGraphics = new Graphics(svgContext);
This code can't work because the second parameter isn't an option.
Correct example should be the same like in preview code version
What is expected?
const svgContext = await Assets.load({
src: 'url,
data: {
parseAsGraphicsContext: true,
},
});
What is actually happening?
The example code in the code snippet is incorrect, and this version doesn't work in version 8.
Version in the editor is OK
Environment
- Browser & Version: e.g. Chrome 108
- OS & Version: e.g. Ubuntu 22.04
Any additional comments?
No response
PixiJS version
8.x
Link to minimal reproduction
https://pixijs.com/8.x/guides/components/assets/svg#loading-svgs-as-graphics
Steps to reproduce
const svgContext = await Assets.load('path/to.svg', { parseAsGraphicsContext: true, // If false, it returns a texture instead. }); const myGraphics = new Graphics(svgContext);This code can't work because the second parameter isn't an option.
Correct example should be the same like in preview code version
What is expected?
const svgContext = await Assets.load({
src: 'url,
data: {
parseAsGraphicsContext: true,
},
});
What is actually happening?
The example code in the code snippet is incorrect, and this version doesn't work in version 8.
Version in the editor is OK
Environment
Any additional comments?
No response