From 58bfd90473fa44afc8c6c6d2c6387bd28208d1e8 Mon Sep 17 00:00:00 2001 From: Kenny <67985757+protofarer@users.noreply.github.com> Date: Fri, 29 Mar 2024 12:43:52 -0400 Subject: [PATCH] Fix [code block]: graphics.md Svg Use a valid svg string. --- docs/guides/components/graphics.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/guides/components/graphics.md b/docs/guides/components/graphics.md index 857d823ac..16f8ffc34 100644 --- a/docs/guides/components/graphics.md +++ b/docs/guides/components/graphics.md @@ -54,8 +54,11 @@ In addition, you have access to the following complex primitives: There is also support for svg. But due to the nature of how PixiJS renders holes (it favours performance) Some complex hole shapes may render incorrectly. But for the majority of shapes, this will do the trick! ```ts - let mySvg = new Graphics() - .svg('M 100 350 q 150 -300 300 0'); + let mySvg = new Graphics().svg(` + + + + `); ``` ## The GraphicsContext