Skip to content

Commit 3d6c430

Browse files
author
James Brundage
committed
fix: Explicitly clearing position ( Fixes PoshWeb#30 )
This impacts ViewBox caculations on repeated executions, since the effective start position of the cursor is maintained.
1 parent b30e336 commit 3d6c430

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Types/Turtle/Clear.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
$this.Position = 0, 0
21
$this.Heading = 0
32
$this.Steps = @()
3+
$this | Add-Member -MemberType NoteProperty -Force -Name '.Position' -Value ([pscustomobject]@{ X = 0; Y = 0 })
44
$this | Add-Member -MemberType NoteProperty -Force -Name '.Minimum' -Value ([pscustomobject]@{ X = 0; Y = 0 })
55
$this | Add-Member -MemberType NoteProperty -Force -Name '.Maximum' -Value ([pscustomobject]@{ X = 0; Y = 0 })
66
$this.ViewBox = 0

0 commit comments

Comments
 (0)