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.
1 parent 2b9f7a5 commit 0126c6aCopy full SHA for 0126c6a
Types/Gradient/Alias.psd1
@@ -0,0 +1,3 @@
1
+@{
2
+ GradientTypes = 'GradientType'
3
+}
Types/Gradient/get_GradientType.ps1
@@ -0,0 +1,20 @@
+<#
+.SYNOPSIS
+ Gets the Gradient Type
4
+.DESCRIPTION
5
+ Gets the Gradient Types found in the Gradient's input.
6
+
7
+ If no type is found, radial-gradient is the default.
8
+#>
9
10
+$foundTypes = @(foreach ($in in $this.input) {
11
+ if ($in -match $this.GradientTypePattern) {
12
+ $in -replace '(?:-gradient)?$', '-gradient'
13
+ }
14
+})
15
16
+if (-not $foundTypes) {
17
+ $foundTypes = @('radial-gradient')
18
19
+return $foundTypes
20
0 commit comments