Store artboard content as a native group

This commit is contained in:
Dennis Kobert
2026-08-26 21:50:36 +00:00
parent 7d44f6ec9e
commit ed457093b1
3 changed files with 47 additions and 3 deletions

View File

@@ -37,10 +37,10 @@ pub fn create_artboard(
) -> (Artboard, Attr<Location>, Attr<Dimensions>, Attr<Background>, Attr<Clip>) {
// SAFETY: a materialized input's frames are arena-resident.
let item = unsafe { core_types::record::GroupItem::from_resident(content.batch()) };
let content = graphic_types::graphic::group_to_legacy_list(&core_types::record::Group {
let content = core_types::list::List::new_from_element(Graphic::Group(core_types::record::Group {
row: None,
content: core_types::record::GroupContent::Run(item),
});
}));
// Normalize so `location` is the top-left corner and `dimensions` are positive (allowing negative input
// dimensions to represent dragging from the opposite corner). Compute the corner using the raw signed