Expose XFL filter highlight alpha

This commit is contained in:
Dylan M. Taylor
2026-11-15 02:17:51 +00:00
parent e5c3ff46c7
commit 6f7106fe0a
+4
View File
@@ -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