@@ -4,28 +4,27 @@ use crate::proto::{Any as DAny, FutureAny};
44use brush_nodes:: brush_cache:: BrushCache ;
55use brush_nodes:: brush_stroke:: BrushStroke ;
66use core_types:: table:: Table ;
7+ use core_types:: transform:: Footprint ;
78use core_types:: uuid:: NodeId ;
89use core_types:: { CacheHash , Color , ContextFeatures , MemoHash , Node , Type } ;
910use dyn_any:: DynAny ;
1011pub use dyn_any:: StaticType ;
1112use glam:: { Affine2 , Vec2 } ;
1213pub use glam:: { DAffine2 , DVec2 , IVec2 , UVec2 } ;
13- use graphic_types:: Artboard ;
14- use graphic_types:: Graphic ;
15- use graphic_types:: Vector ;
16- use graphic_types:: raster_types:: Image ;
17- use graphic_types:: raster_types:: { CPU , Raster } ;
18- use graphic_types:: vector_types:: vector;
19- use graphic_types:: vector_types:: vector:: ReferencePoint ;
20- use graphic_types:: vector_types:: vector:: style:: Fill ;
21- use graphic_types:: vector_types:: vector:: style:: GradientStops ;
14+ use graphic_types:: raster_types:: { CPU , Image , Raster } ;
15+ use graphic_types:: vector_types:: vector:: style:: { Fill , Gradient , GradientStops , Stroke } ;
16+ use graphic_types:: vector_types:: vector:: { self , ReferencePoint } ;
17+ use graphic_types:: { Artboard , Graphic , Vector } ;
18+ use raster_nodes:: curve:: Curve ;
2219use rendering:: RenderMetadata ;
2320use std:: fmt:: Display ;
2421use std:: hash:: Hash ;
2522use std:: marker:: PhantomData ;
2623use std:: str:: FromStr ;
2724pub use std:: sync:: Arc ;
25+ use text_nodes:: Font ;
2826use text_nodes:: vector_types:: GradientStop ;
27+ use vector:: VectorModification ;
2928
3029pub struct TaggedValueTypeError ;
3130
@@ -166,15 +165,6 @@ macro_rules! tagged_value {
166165}
167166
168167tagged_value ! {
169- // ===============
170- // PRIMITIVE TYPES
171- // ===============
172- F32 ( f32 ) ,
173- F64 ( f64 ) ,
174- U32 ( u32 ) ,
175- U64 ( u64 ) ,
176- Bool ( bool ) ,
177- String ( String ) ,
178168 // ===========
179169 // TABLE TYPES
180170 // ===========
@@ -202,23 +192,29 @@ tagged_value! {
202192 #[ serde( alias = "GradientPositions" , alias = "GradientStops" ) ]
203193 GradientTable ( Table <GradientStops >) ,
204194 // ============
205- // STRUCT TYPES
195+ // SCALAR TYPES
206196 // ============
197+ F32 ( f32 ) ,
198+ F64 ( f64 ) ,
199+ U32 ( u32 ) ,
200+ U64 ( u64 ) ,
201+ Bool ( bool ) ,
202+ String ( String ) ,
207203 FVec2 ( Vec2 ) ,
208204 FAffine2 ( Affine2 ) ,
209205 #[ serde( alias = "IVec2" , alias = "UVec2" ) ]
210206 DVec2 ( DVec2 ) ,
211207 DAffine2 ( DAffine2 ) ,
212- Stroke ( graphic_types :: vector_types :: vector :: style :: Stroke ) ,
213- Gradient ( graphic_types :: vector_types :: vector :: style :: Gradient ) ,
214- Font ( text_nodes :: Font ) ,
208+ Stroke ( Stroke ) ,
209+ Gradient ( Gradient ) ,
210+ Font ( Font ) ,
215211 BrushStrokes ( Vec <BrushStroke >) ,
216212 BrushCache ( BrushCache ) ,
217213 DocumentNode ( DocumentNode ) ,
218214 ContextFeatures ( ContextFeatures ) ,
219- Curve ( raster_nodes :: curve :: Curve ) ,
220- Footprint ( core_types :: transform :: Footprint ) ,
221- VectorModification ( Box <vector :: VectorModification >) ,
215+ Curve ( Curve ) ,
216+ Footprint ( Footprint ) ,
217+ VectorModification ( Box <VectorModification >) ,
222218 ImageData ( Image <Color >) ,
223219 // ==========
224220 // ENUM TYPES
0 commit comments