format element properties

This commit is contained in:
Asaki Yuki 2026-02-24 19:39:01 +07:00
parent e2be9892dc
commit eee464dcd7
12 changed files with 33 additions and 14 deletions

View file

@ -43,6 +43,11 @@ export function FormatProperties(properties: any) {
delete properties.anchor
}
if (properties.fit_to_width) {
properties["$fit_to_width"] = properties.fit_to_width
delete properties.fit_to_width
}
if (Object.keys(property_bag).length) {
if (properties.property_bag) {
properties.property_bag = { ...property_bag, ...properties.property_bag }