mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-16 23:42:27 +00:00
Expose XFL filter highlight alpha
This commit is contained in:
1 parent
e5c3ff46c7
commit
6f7106fe0a
1 file changed
+4
@@ -143,6 +143,10 @@ impl<'a, E: XflElement> Filter<'a, E> {
|
||||
self.element.attr("highlightColor").map(|_| shape::color(self.element, "highlightColor", "highlightAlpha"))
|
||||
}
|
||||
|
||||
pub fn highlight_alpha(&self) -> Option<f32> {
|
||||
number(self.element, "highlightAlpha")
|
||||
}
|
||||
|
||||
/// Native gradient entries, either direct children or one wrapper level below the filter.
|
||||
pub fn ramp_entries(&self) -> impl Iterator<Item = RampEntry<'a, E>> + 'a {
|
||||
self.element
|
||||
|
||||
Reference in new issue
Block a user