Skip to content

Commit e12837a

Browse files
feat: Turtle.LSystem produces data attributes ( Fixes #87 )
1 parent a845bda commit e12837a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Types/Turtle/LSystem.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,10 @@ $null = foreach ($character in $finalState.ToCharArray()) {
159159
}
160160
}
161161
}
162+
$this.PathAttribute = [Ordered]@{
163+
"data-l-order" = $N
164+
"data-l-axiom" = $Axiom
165+
"data-l-rules" = ConvertTo-Json $Rule
166+
"data-l-expanded" = $finalState
167+
}
162168
return $this

0 commit comments

Comments
 (0)