feat: render source paint overrides with read-only object dependencies
Verify Tessera GUI / verify (push) Failing after 7m37s

This commit is contained in:
2026-10-21 14:20:02 +08:00
parent dc61f5e33c
commit 6a88447524
12 changed files with 637 additions and 7 deletions
+20
View File
@@ -142,6 +142,25 @@ impl RenderCache {
continue;
}
path.remove(&data_ref);
let mut protocol_key = String::new();
if let Some(definition) = store.type_of(block)? {
protocol_key.push_str(&definition.to_string());
for name in ["measure", "arrange", "paint", "hitTest"] {
if let Some(method) = store.lookup_method(definition, name)? {
protocol_key.push_str(&format!("/{method}"));
}
}
let mut current = Some(definition);
while let Some(definition) = current {
dependencies.push(Dependency {
object: definition,
property: None,
});
current = store
.payload::<endor_core::EndorTypeObject>(definition, "Type")?
.base();
}
}
let children = values.split_off(values.len() - data.children.len());
let kind = match &data.kind {
Kind::Text { value, size, color } => {
@@ -205,6 +224,7 @@ impl RenderCache {
};
let next = UiNode {
block_id: block.to_string(),
protocol_key,
slots: data.children.iter().map(|c| c.slot).collect(),
interactive: matches!(&data.kind, Kind::Button) || data.click.is_some(),
kind,