Skip to content

Commit 7894bca

Browse files
author
James Brundage
committed
feat: Turtle.get_Mask/PatternMask ( Fixes #33, Fixes #34 )
1 parent d74cf2d commit 7894bca

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Types/Turtle/get_Mask.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$segments = @(
2+
"<svg xmlns='http://www.w3.org/2000/svg' width='0%' height='0%'>"
3+
"<defs>"
4+
"<mask id='turtle-mask'>"
5+
$this.Symbol.OuterXml -replace '\<\?[^\>]+\>'
6+
"</mask>"
7+
"</defs>"
8+
"</svg>"
9+
)
10+
[xml]($segments -join '')

Types/Turtle/get_PatternMask.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
$segments = @(
2+
"<svg xmlns='http://www.w3.org/2000/svg' width='0%' height='0%'>"
3+
"<defs>"
4+
"<mask id='turtle-mask'>"
5+
$this.Pattern.OuterXml -replace '\<\?[^\>]+\>'
6+
"</mask>"
7+
"</defs>"
8+
"</svg>"
9+
)
10+
[xml]($segments -join '')

0 commit comments

Comments
 (0)