File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,33 @@ return ([pscustomobject]@{ X = 0; Y = 0 })
8484return ([pscustomobject]@{ X = 0; Y = 0 })
8585 </GetScriptBlock >
8686 </ScriptProperty >
87+ <ScriptProperty >
88+ <Name >PathData</Name >
89+ <GetScriptBlock >
90+ @(
91+ @(
92+
93+ if ($this.Start.X -and $this.Start.Y) {
94+ "m $($this.Start.x) $($this.Start.y)"
95+ }
96+ else {
97+ @("m"
98+ if ($this.Minimum.X -lt 0) {
99+ -1 * $this.Minimum.X
100+ } else {
101+ 0
102+ }
103+ if ($this.Minimum.Y -lt 0) {
104+ -1 * $this.Minimum.Y
105+ } else {
106+ 0
107+ }) -join ' '
108+ }
109+ ) + $this.Steps
110+ # @("m $($this.Start.x) $($this.Start.y) ") + $this.Steps
111+ ) -join ' '
112+ </GetScriptBlock >
113+ </ScriptProperty >
87114 <ScriptProperty >
88115 <Name >Position</Name >
89116 <GetScriptBlock >
You can’t perform that action at this time.
0 commit comments