// apply the transformation
if (node->transform) efl_canvas_vg_node_transformation_set(vg, node->transform);
- if (node->type != SVG_NODE_DOC && !node->display) evas_vg_node_visible_set(vg, EINA_FALSE);
+ //TIZEN_ONLY(210311): vg_common_svg: Keep backward compatibility about display, opacity of SVG
+ //Edje compiled in version 4.0 of tizen studio does not have eet description in paser related to display and opacity.
+ //Therefore, in later versions, display and opacity are always set to 0.
+ //so, it blocks the display and opacity features.
+ //When tizen studio's edje hosting service is in progress, this function can be added again.
+ //if (node->type != SVG_NODE_DOC && !node->display) evas_vg_node_visible_set(vg, EINA_FALSE);
+ //
if (node->type == SVG_NODE_DOC) return;
((float) style->fill.paint.b) * fa, style->fill.opacity);
}
- //apply node opacity
- if (style->opacity < 255)
- {
- int r, g, b, a;
- evas_vg_node_color_get(vg, &r, &g, &b, &a);
- float fa = ((float) style->opacity / 255);
- evas_vg_node_color_set(vg, ((float) r) * fa, ((float) g) * fa, ((float) b) * fa, ((float) a) * fa);
- }
+ //TIZEN_ONLY(210311): vg_common_svg: Keep backward compatibility about display, opacity of SVG
+ //if (style->opacity < 255)
+ // {
+ // int r, g, b, a;
+ // evas_vg_node_color_get(vg, &r, &g, &b, &a);
+ // float fa = ((float) style->opacity / 255);
+ // evas_vg_node_color_set(vg, ((float) r) * fa, ((float) g) * fa, ((float) b) * fa, ((float) a) * fa);
+ // }
+ //
if (node->type == SVG_NODE_G || node->type == SVG_NODE_CLIP_PATH) return;
}
//apply node opacity to stroke color
- if (style->opacity < 255)
- {
- int r, g, b, a;
- evas_vg_shape_stroke_color_get(vg, &r, &g, &b, &a);
- float fa = ((float) style->opacity / 255);
- evas_vg_shape_stroke_color_set(vg, ((float) r) * fa, ((float) g) * fa, ((float) b) * fa, ((float) a) * fa);
- }
+ //TIZEN_ONLY(210311): vg_common_svg: Keep backward compatibility about display, opacity of SVG
+ //if (style->opacity < 255)
+ // {
+ // int r, g, b, a;
+ // evas_vg_shape_stroke_color_get(vg, &r, &g, &b, &a);
+ // float fa = ((float) style->opacity / 255);
+ // evas_vg_shape_stroke_color_set(vg, ((float) r) * fa, ((float) g) * fa, ((float) b) * fa, ((float) a) * fa);
+ // }
}
static void