Add translation x/y

This commit is contained in:
JMS55 2023-12-21 19:12:08 -08:00
parent 89dfe9ebc1
commit 6d6bad2110
2 changed files with 4 additions and 0 deletions

View file

@ -56,6 +56,8 @@ macro_rules! node_attributes {
pub const grid_column: AttributeDescription = ("grid_column", None, false);
pub const background_color: AttributeDescription = ("background_color", None, false);
pub const translation: AttributeDescription = ("translation", None, false);
pub const translation_x: AttributeDescription = ("translation", None, false);
pub const translation_y: AttributeDescription = ("translation", None, false);
pub const rotation: AttributeDescription = ("rotation", None, false);
pub const scale: AttributeDescription = ("scale", None, false);
pub const visibility: AttributeDescription = ("visibility", None, false);

View file

@ -101,6 +101,8 @@ impl HotReloadingContext for HotReloadContext {
"grid_column" => Some(("grid_column", None)),
"background_color" => Some(("background_color", None)),
"translation" => Some(("translation", None)),
"translation_x" => Some(("translation_x", None)),
"translation_y" => Some(("translation_y", None)),
"rotation" => Some(("rotation", None)),
"scale" => Some(("scale", None)),
"visibility" => Some(("visibility", None)),