GetEffectFn returns the configured effectFn variants, or the default ["span"] when unset/empty.
()
| 184 | |
| 185 | // GetEffectFn returns the configured effectFn variants, or the default ["span"] when unset/empty. |
| 186 | func (e *ResolvedEffectPluginOptions) GetEffectFn() []string { |
| 187 | if e == nil || len(e.EffectFn) == 0 { |
| 188 | return DefaultEffectFn |
| 189 | } |
| 190 | return e.EffectFn |
| 191 | } |
| 192 | |
| 193 | // EffectFnIncludes checks if a variant is in the configured (or default) effectFn list. |
| 194 | func (e *ResolvedEffectPluginOptions) EffectFnIncludes(variant string) bool { |