Thorvg don't support location set/get API. This commit keeps backward
compatibility for this feature in EFL.
Change-Id: Ic13d8ac05798715cb3f71dda8f362ac661427afb
Tvg_Point start;
Path_Cmd_Type cmd_prev;
+ //This is to keep backward comaptibility and pass EFL TESTS.
+ double location;
+
//Storage for stroke's width passed in evas_vg_shape_stroke_width_set. Width variable is used to implement stroke
//scaling using scale * width
double width;
EAPI double
evas_vg_shape_stroke_location_get(Evas_Vg_Shape *obj)
{
- //TODO: implement
- return 0.0;
+ if (!obj) return 0.0;
+
+ Efl_Canvas_Vg_Shape_Data *sd = _get_shape_data(obj);
+ if (!sd) return 0.0;
+
+ return sd->location;
}
EAPI void
evas_vg_shape_stroke_location_set(Evas_Vg_Shape *obj, double centered)
{
- //TODO: implement
+ if (!obj) return;
+
+ Efl_Canvas_Vg_Shape_Data *sd = _get_shape_data(obj);
+ if (!sd) return;
+
+ sd->location = centered;
}
EAPI void