feat: render source paint overrides with read-only object dependencies
Verify Tessera GUI / verify (push) Failing after 7m37s
Verify Tessera GUI / verify (push) Failing after 7m37s
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user