Skip to content

Commit 259dcfa

Browse files
committed
Reorder graphical data imports
1 parent 12e5a47 commit 259dcfa

File tree

1 file changed

+14
-13
lines changed
  • node-graph/graph-craft/src/document

1 file changed

+14
-13
lines changed

node-graph/graph-craft/src/document/value.rs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@ macro_rules! tagged_value {
115115
}
116116

117117
tagged_value! {
118+
// TODO: Eventually remove this migration document upgrade code
119+
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::raster::image::migrate_image_frame"))]
120+
ImageFrame(graphene_core::raster::image::ImageFrameTable<Color>),
121+
// TODO: Eventually remove this migration document upgrade code
122+
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::vector::migrate_vector_data"))]
123+
VectorData(graphene_core::vector::VectorDataTable),
124+
// TODO: Eventually remove this migration document upgrade code
125+
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::migrate_graphic_group"))]
126+
GraphicGroup(graphene_core::GraphicGroupTable),
127+
// TODO: Eventually remove this migration document upgrade code
128+
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::migrate_artboard_group"))]
129+
ArtboardGroup(graphene_core::ArtboardGroupTable),
130+
GraphicElement(graphene_core::GraphicElement),
118131
String(String),
119132
U32(u32),
120133
U64(u64),
@@ -130,19 +143,14 @@ tagged_value! {
130143
DAffine2(DAffine2),
131144
Image(graphene_core::raster::Image<Color>),
132145
ImaginateCache(ImaginateCache),
133-
// TODO: Eventually remove this migration document upgrade code
134-
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::raster::image::migrate_image_frame"))]
135-
ImageFrame(graphene_core::raster::image::ImageFrameTable<Color>),
136146
Color(graphene_core::raster::color::Color),
147+
OptionalColor(Option<graphene_core::raster::color::Color>),
137148
Subpaths(Vec<bezier_rs::Subpath<graphene_core::vector::PointId>>),
138149
BlendMode(BlendMode),
139150
LuminanceCalculation(LuminanceCalculation),
140151
ImaginateSamplingMethod(ImaginateSamplingMethod),
141152
ImaginateMaskStartingFill(ImaginateMaskStartingFill),
142153
ImaginateController(ImaginateController),
143-
// TODO: Eventually remove this migration document upgrade code
144-
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::vector::migrate_vector_data"))]
145-
VectorData(graphene_core::vector::VectorDataTable),
146154
Fill(graphene_core::vector::style::Fill),
147155
Stroke(graphene_core::vector::style::Stroke),
148156
F64Array4([f64; 4]),
@@ -170,20 +178,13 @@ tagged_value! {
170178
// TODO: Eventually remove this alias document upgrade code
171179
#[cfg_attr(feature = "serde", serde(alias = "GradientPositions"))]
172180
GradientStops(graphene_core::vector::style::GradientStops),
173-
OptionalColor(Option<graphene_core::raster::color::Color>),
174181
// TODO: Eventually remove this alias document upgrade code
175182
#[cfg_attr(feature = "serde", serde(alias = "ManipulatorGroupIds"))]
176183
PointIds(Vec<graphene_core::vector::PointId>),
177184
Font(graphene_core::text::Font),
178185
BrushStrokes(Vec<graphene_core::vector::brush_stroke::BrushStroke>),
179186
BrushCache(BrushCache),
180187
DocumentNode(DocumentNode),
181-
// TODO: Eventually remove this migration document upgrade code
182-
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::migrate_graphic_group"))]
183-
GraphicGroup(graphene_core::GraphicGroupTable),
184-
GraphicElement(graphene_core::GraphicElement),
185-
#[cfg_attr(feature = "serde", serde(deserialize_with = "graphene_core::migrate_artboard_group"))] // TODO: Eventually remove this migration document upgrade code
186-
ArtboardGroup(graphene_core::ArtboardGroupTable),
187188
Curve(graphene_core::raster::curve::Curve),
188189
Footprint(graphene_core::transform::Footprint),
189190
Palette(Vec<Color>),

0 commit comments

Comments
 (0)