File tree Expand file tree Collapse file tree 1 file changed +23
-6
lines changed
Expand file tree Collapse file tree 1 file changed +23
-6
lines changed Original file line number Diff line number Diff line change 2323 <Name >Font.Glyph</Name >
2424 <Members >
2525 <ScriptProperty >
26- <Name >Outline </Name >
26+ <Name >Motion </Name >
2727 <GetScriptBlock >
2828 $fontFace = $this.ParentNode.'font-face'
2929$descent = $fontFace.descent -as [double]
3030$bbox = $fontFace.bbox -split '\s' -as [double[]]
3131$viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
32- @("< svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'> "
33-
34- "< path stroke='currentColor' d='$($this.PathData)' /> "
32+ $PathData = $this.PathData
33+ @(
34+ "< svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'> "
35+ "< path stroke='currentColor' d='$($PathData)' /> "
3536@"
36- < circle r="5" fill="red ">
37+ < circle r="5" fill="currentColor ">
3738 < animateMotion
3839 dur="10s"
3940 repeatCount="indefinite"
40- path="$($pathData )" />
41+ path="$($PathData )" />
4142 < /circle>
4243"@
44+ "< /svg> "
45+ ) -as [xml]
46+
47+
48+ </GetScriptBlock >
49+ </ScriptProperty >
50+ <ScriptProperty >
51+ <Name >Outline</Name >
52+ <GetScriptBlock >
53+ $fontFace = $this.ParentNode.'font-face'
54+ $descent = $fontFace.descent -as [double]
55+ $bbox = $fontFace.bbox -split '\s' -as [double[]]
56+ $viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
57+ @("< svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'> "
58+
59+ "< path stroke='currentColor' d='$($this.PathData)' /> "
4360"< /svg> ") -as [xml]
4461 </GetScriptBlock >
4562 </ScriptProperty >
You can’t perform that action at this time.
0 commit comments