Add CSS class to different aspects
This commit is contained in:
parent
7d55580bce
commit
5c9f88326b
@ -1737,7 +1737,7 @@ ag_chart_create_svg(AgChart *chart, gsize *length, GError **err)
|
|||||||
G_ENUM_CLASS(aspects_class),
|
G_ENUM_CLASS(aspects_class),
|
||||||
gswe_aspect_data_get_aspect(aspect_data)
|
gswe_aspect_data_get_aspect(aspect_data)
|
||||||
);
|
);
|
||||||
xmlNewProp(node, BAD_CAST "type", BAD_CAST enum_value->value_name);
|
xmlNewProp(node, BAD_CAST "type", BAD_CAST enum_value->value_nick);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_type_class_unref(aspects_class);
|
g_type_class_unref(aspects_class);
|
||||||
|
@ -644,6 +644,7 @@
|
|||||||
<xsl:variable name="y2" select="$r_aspect * -math:sin($rad2)"/>
|
<xsl:variable name="y2" select="$r_aspect * -math:sin($rad2)"/>
|
||||||
|
|
||||||
<line class="aspect">
|
<line class="aspect">
|
||||||
|
<xsl:attribute name="class"><xsl:value-of select="concat('aspect aspect-', @type)"/></xsl:attribute>
|
||||||
<xsl:attribute name="x1"><xsl:value-of select="$x1"/></xsl:attribute>
|
<xsl:attribute name="x1"><xsl:value-of select="$x1"/></xsl:attribute>
|
||||||
<xsl:attribute name="y1"><xsl:value-of select="$y1"/></xsl:attribute>
|
<xsl:attribute name="y1"><xsl:value-of select="$y1"/></xsl:attribute>
|
||||||
<xsl:attribute name="x2"><xsl:value-of select="$x2"/></xsl:attribute>
|
<xsl:attribute name="x2"><xsl:value-of select="$x2"/></xsl:attribute>
|
||||||
|
Loading…
Reference in New Issue
Block a user