@@ -115,6 +115,19 @@ macro_rules! tagged_value {
115
115
}
116
116
117
117
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 ) ,
118
131
String ( String ) ,
119
132
U32 ( u32 ) ,
120
133
U64 ( u64 ) ,
@@ -130,19 +143,14 @@ tagged_value! {
130
143
DAffine2 ( DAffine2 ) ,
131
144
Image ( graphene_core:: raster:: Image <Color >) ,
132
145
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 >) ,
136
146
Color ( graphene_core:: raster:: color:: Color ) ,
147
+ OptionalColor ( Option <graphene_core:: raster:: color:: Color >) ,
137
148
Subpaths ( Vec <bezier_rs:: Subpath <graphene_core:: vector:: PointId >>) ,
138
149
BlendMode ( BlendMode ) ,
139
150
LuminanceCalculation ( LuminanceCalculation ) ,
140
151
ImaginateSamplingMethod ( ImaginateSamplingMethod ) ,
141
152
ImaginateMaskStartingFill ( ImaginateMaskStartingFill ) ,
142
153
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 ) ,
146
154
Fill ( graphene_core:: vector:: style:: Fill ) ,
147
155
Stroke ( graphene_core:: vector:: style:: Stroke ) ,
148
156
F64Array4 ( [ f64 ; 4 ] ) ,
@@ -170,20 +178,13 @@ tagged_value! {
170
178
// TODO: Eventually remove this alias document upgrade code
171
179
#[ cfg_attr( feature = "serde" , serde( alias = "GradientPositions" ) ) ]
172
180
GradientStops ( graphene_core:: vector:: style:: GradientStops ) ,
173
- OptionalColor ( Option <graphene_core:: raster:: color:: Color >) ,
174
181
// TODO: Eventually remove this alias document upgrade code
175
182
#[ cfg_attr( feature = "serde" , serde( alias = "ManipulatorGroupIds" ) ) ]
176
183
PointIds ( Vec <graphene_core:: vector:: PointId >) ,
177
184
Font ( graphene_core:: text:: Font ) ,
178
185
BrushStrokes ( Vec <graphene_core:: vector:: brush_stroke:: BrushStroke >) ,
179
186
BrushCache ( BrushCache ) ,
180
187
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 ) ,
187
188
Curve ( graphene_core:: raster:: curve:: Curve ) ,
188
189
Footprint ( graphene_core:: transform:: Footprint ) ,
189
190
Palette ( Vec <Color >) ,
0 commit comments