We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Turtle.get_TextElement
1 parent 7ff406e commit cb5613bCopy full SHA for cb5613b
Types/Turtle/get_TextElement.ps1
@@ -31,9 +31,18 @@ if (-not $this.Steps) {
31
$textAttributes['dominant-baseline'] = 'middle'
32
$textAttributes['text-anchor'] = 'middle'
33
$textAttributes['x'] = '50%'
34
- $textAttributes['y'] = '50%'
+ $textAttributes['y'] = '50%'
35
}
36
37
+if ($this.fill -ne 'transparent') {
38
+ $textAttributes['stroke'] = $this.stroke
39
+ $textAttributes['fill'] = $this.fill
40
+} else {
41
+ $textAttributes['fill'] = $this.stroke
42
+}
43
+
44
45
46
# Text Attributes can exist in Attribute or SVGAttribute, as long as they are prefixed.
47
$prefix = '^/?text/'
48
foreach ($collection in 'Attribute','SVGAttribute') {
0 commit comments