File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -1492,6 +1492,29 @@ foreach ($key in $PathAttribute.Keys) {
1492
1492
}
1493
1493
</SetScriptBlock >
1494
1494
</ScriptProperty >
1495
+ <ScriptProperty >
1496
+ <Name >PathClass</Name >
1497
+ <GetScriptBlock >
1498
+ if ($this.'.PathClass') { return $this.'.PathClass'}
1499
+ return 'foreground-stroke'
1500
+ </GetScriptBlock >
1501
+ <SetScriptBlock >
1502
+ < #
1503
+ .SYNOPSIS
1504
+ Sets the turtle path class
1505
+ .DESCRIPTION
1506
+ Sets the css classes that apply to the turtle path.
1507
+
1508
+ This property will rarely be set directly, but can be handy for integrating turtle graphics into custom pages.
1509
+ #>
1510
+ param(
1511
+ $PathClass
1512
+ )
1513
+
1514
+ $this | Add-Member -MemberType NoteProperty -Force -Name '.PathClass' -Value @($PathClass)
1515
+
1516
+ </SetScriptBlock >
1517
+ </ScriptProperty >
1495
1518
<ScriptProperty >
1496
1519
<Name >PathData</Name >
1497
1520
<GetScriptBlock >
@@ -1527,7 +1550,9 @@ foreach ($key in $PathAttribute.Keys) {
1527
1550
if ($this.Stroke) { $this.Stroke } else { 'currentColor' }
1528
1551
)' stroke-width='$(
1529
1552
if ($this.StrokeWidth) { $this.StrokeWidth } else { '0.1%' }
1530
- )' fill='$($this.Fill)' class='foreground-stroke'$(
1553
+ )' fill='$($this.Fill)' class='$(
1554
+ $this.PathClass -join ' '
1555
+ )' $(
1531
1556
foreach ($pathAttributeName in $this.PathAttribute.Keys) {
1532
1557
" $pathAttributeName='$($this.PathAttribute[$pathAttributeName])'"
1533
1558
}
You can’t perform that action at this time.
0 commit comments