File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 <Type >
2323 <Name >Font.Glyph</Name >
2424 <Members >
25+ <ScriptProperty >
26+ <Name >Outline</Name >
27+ <GetScriptBlock >
28+ $fontFace = $this.ParentNode.'font-face'
29+ $descent = $fontFace.descent -as [double]
30+ $bbox = $fontFace.bbox -split '\s' -as [double[]]
31+ $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)' /> "
35+ @"
36+ < circle r="5" fill="red">
37+ < animateMotion
38+ dur="10s"
39+ repeatCount="indefinite"
40+ path="$($pathData)" />
41+ < /circle>
42+ "@
43+ "< /svg> ") -as [xml]
44+ </GetScriptBlock >
45+ </ScriptProperty >
2546 <ScriptProperty >
2647 <Name >PathData</Name >
2748 <GetScriptBlock >
3657$this.d
3758 </GetScriptBlock >
3859 </ScriptProperty >
60+ <ScriptProperty >
61+ <Name >SVG</Name >
62+ <GetScriptBlock >
63+ $fontFace = $this.ParentNode.'font-face'
64+ $descent = $fontFace.descent -as [double]
65+ $bbox = $fontFace.bbox -split '\s' -as [double[]]
66+ $viewbox = "0 $($bbox[-3] - $descent) $($bbox[-2]) $($bbox[-1])"
67+ @(
68+ "< svg xmlns='http://www.w3.org/2000/svg' viewBox='$viewbox' width='100%' height='100%' transform='scale(1 -1)'> "
69+ "< path fill='currentColor' d='$($this.PathData)' /> "
70+ "< /svg> "
71+ ) -as [xml]
72+ </GetScriptBlock >
73+ </ScriptProperty >
3974 </Members >
4075 </Type >
4176 <Type >
You can’t perform that action at this time.
0 commit comments