We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.get_Symbol
1 parent fd06d7d commit 4d27e6dCopy full SHA for 4d27e6d
Types/Turtle/get_Symbol.ps1
@@ -0,0 +1,14 @@
1
+param()
2
+
3
+@(
4
+ $viewX = [Math]::Max($this.Maximum.X, $this.Minimum.X * -1)
5
+ $viewY = [Math]::Max($this.Maximum.Y, $this.Minimum.Y * -1)
6
+ "<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'>"
7
+ "<symbol id='turtle-symbol' viewBox='0 0 $viewX $viewY' transform-origin='50% 50%'>"
8
+ "<path id='turtle-path' transform-origin='50% 50%' d='$($this.PathData)' stroke='$(
9
+ if ($this.Stroke) { $this.Stroke } else { 'black' }
10
+ )' fill='transparent'/>"
11
+ "</symbol>"
12
+ "<use href='#turtle-symbol' width='100%' height='100%' />"
13
+ "</svg>"
14
+) -join '' -as [xml]
0 commit comments