feat: add WebviewSurface component for alpha hit-testing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
not-elm
2026-02-19 23:11:14 +09:00
parent 1b1da6665c
commit c35ca1b920

View File

@@ -116,3 +116,10 @@ where
Self(scripts.into_iter().map(Into::into).collect())
}
}
/// Holds the webview surface texture handle for alpha hit-testing.
///
/// This component is automatically inserted and updated by the render systems.
/// It provides material-type-agnostic access to the webview texture.
#[derive(Component, Debug, Clone)]
pub(crate) struct WebviewSurface(pub(crate) Handle<Image>);