From 869b4351a9579819c827c7803d724325e856b63f Mon Sep 17 00:00:00 2001 From: Kenny <67985757+protofarer@users.noreply.github.com> Date: Tue, 9 Apr 2024 10:08:53 -0400 Subject: [PATCH] Fix [code block]: graphics.md Svg (#101) 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