diff --git a/src/common/components.rs b/src/common/components.rs index 9882306..d24a84d 100644 --- a/src/common/components.rs +++ b/src/common/components.rs @@ -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);