feat: implement nested border-box layout and alignment

This commit is contained in:
2026-11-10 22:17:19 +08:00
parent 525097a0b2
commit 32d7ada3ab
21 changed files with 1368 additions and 74 deletions
+2 -4
View File
@@ -425,7 +425,7 @@ fn finish(vm: &mut Vm, mut work: Work, reads: Vec<endor_core::ReadDependency>) -
let node = nodes
.get(mount.block_id.as_str())
.ok_or_else(|| anyhow::anyhow!("paint projection has no node"))?;
if let Some(command) = layout::paint_native(
commands.extend(layout::paint_commands(
node,
mount.x,
mount.y,
@@ -433,9 +433,7 @@ fn finish(vm: &mut Vm, mut work: Work, reads: Vec<endor_core::ReadDependency>) -
width: mount.width,
height: mount.height,
},
) {
commands.push(command);
}
));
}
clips.extend(std::iter::repeat_n(mount.clip, commands.len() - before));
if commands.len() > 10_000 {