Skip to content

Commit 7d5e502

Browse files
StartAutomatingStartAutomating
authored andcommitted
feat: `Turtle.get/set_PatternAnimation ( Fixes #26 )
1 parent e7ec9ea commit 7d5e502

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Turtle.types.ps1xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,24 @@ $viewY = [Math]::Max($this.Maximum.Y, $this.Minimum.Y * -1)
256256
"</svg>") -join '' -as [xml]
257257
</GetScriptBlock>
258258
</ScriptProperty>
259+
<ScriptProperty>
260+
<Name>PatternAnimation</Name>
261+
<GetScriptBlock>
262+
if ($this.'.PatternAnimation') {
263+
return $this.'.PatternAnimation'
264+
}
265+
266+
</GetScriptBlock>
267+
<SetScriptBlock>
268+
param(
269+
[string]
270+
$PatternAnimation
271+
)
272+
273+
$this | Add-Member -MemberType NoteProperty -Force -Name '.PatternAnimation' -Value $PatternAnimation
274+
275+
</SetScriptBlock>
276+
</ScriptProperty>
259277
<ScriptProperty>
260278
<Name>Points</Name>
261279
<GetScriptBlock>

0 commit comments

Comments
 (0)