@@ -19,7 +19,6 @@ use graphene_std::ATTR_TRANSFORM;
1919use graphene_std:: NodeInputDecleration ;
2020use graphene_std:: animation:: RealTimeMode ;
2121use graphene_std:: extract_xy:: XY ;
22- use graphene_std:: raster:: curve:: Curve ;
2322use graphene_std:: raster:: {
2423 BlendMode , CellularDistanceFunction , CellularReturnType , Color , DomainWarpType , FractalType , LuminanceCalculation , NoiseType , RedGreenBlue , RedGreenBlueAlpha , RelativeAbsolute ,
2524 SelectiveColorChoice ,
@@ -223,7 +222,6 @@ pub(crate) fn property_from_type(
223222 // STRUCT TYPES
224223 // ============
225224 Some ( x) if x == TypeId :: of :: < Font > ( ) => font_widget ( default_info) ,
226- Some ( x) if x == TypeId :: of :: < Curve > ( ) => curve_widget ( default_info) ,
227225 Some ( x) if x == TypeId :: of :: < Footprint > ( ) => footprint_widget ( default_info, & mut extra_widgets) ,
228226 Some ( x) if x == TypeId :: of :: < Box < VectorModification > > ( ) => vector_modification_widget ( default_info) . into ( ) ,
229227 Some ( x) if x == TypeId :: of :: < Image < Color > > ( ) => image_data_widget ( default_info) . into ( ) ,
@@ -1198,27 +1196,27 @@ pub fn font_widget(parameter_widgets_info: ParameterWidgetsInfo) -> LayoutGroup
11981196 font_widgets. into_iter ( ) . chain ( style_widgets. unwrap_or_default ( ) ) . collect :: < Vec < _ > > ( ) . into ( )
11991197}
12001198
1201- pub fn curve_widget ( parameter_widgets_info : ParameterWidgetsInfo ) -> LayoutGroup {
1202- let ParameterWidgetsInfo { document_node, node_id, index, .. } = parameter_widgets_info;
1203-
1204- let mut widgets = start_widgets ( parameter_widgets_info) ;
1205-
1206- let Some ( document_node) = document_node else { return LayoutGroup :: default ( ) } ;
1207- let Some ( input) = document_node. inputs . get ( index) else {
1208- log:: warn!( "A widget failed to be built because its node's input index is invalid." ) ;
1209- return LayoutGroup :: row ( vec ! [ ] ) ;
1210- } ;
1211- if let Some ( TaggedValue :: Curve ( curve) ) = & input. as_non_exposed_value ( ) {
1212- widgets. extend_from_slice ( & [
1213- Separator :: new ( SeparatorStyle :: Unrelated ) . widget_instance ( ) ,
1214- CurveInput :: new ( curve. clone ( ) )
1215- . on_update ( update_value ( |x : & CurveInput | TaggedValue :: Curve ( x. value . clone ( ) ) , node_id, index) )
1216- . on_commit ( commit_value)
1217- . widget_instance ( ) ,
1218- ] )
1219- }
1220- LayoutGroup :: row ( widgets)
1221- }
1199+ // pub fn curve_widget(parameter_widgets_info: ParameterWidgetsInfo) -> LayoutGroup {
1200+ // let ParameterWidgetsInfo { document_node, node_id, index, .. } = parameter_widgets_info;
1201+
1202+ // let mut widgets = start_widgets(parameter_widgets_info);
1203+
1204+ // let Some(document_node) = document_node else { return LayoutGroup::default() };
1205+ // let Some(input) = document_node.inputs.get(index) else {
1206+ // log::warn!("A widget failed to be built because its node's input index is invalid.");
1207+ // return LayoutGroup::row(vec![]);
1208+ // };
1209+ // if let Some(TaggedValue::Curve(curve)) = &input.as_non_exposed_value() {
1210+ // widgets.extend_from_slice(&[
1211+ // Separator::new(SeparatorStyle::Unrelated).widget_instance(),
1212+ // CurveInput::new(curve.clone())
1213+ // .on_update(update_value(|x: &CurveInput| TaggedValue::Curve(x.value.clone()), node_id, index))
1214+ // .on_commit(commit_value)
1215+ // .widget_instance(),
1216+ // ])
1217+ // }
1218+ // LayoutGroup::row(widgets)
1219+ // }
12221220
12231221pub fn get_document_node < ' a > ( node_id : NodeId , context : & ' a NodePropertiesContext < ' a > ) -> Result < & ' a DocumentNode , String > {
12241222 let network = context
0 commit comments