Merge pull request #68 from gergelypolonkai/aspect-colors

Style aspects so they can be distinguished from each other
This commit is contained in:
Gergely Polonkai 2014-08-30 18:58:12 +02:00
commit 6224c01b66
3 changed files with 61 additions and 2 deletions

View File

@ -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);

View File

@ -70,3 +70,61 @@ path.planet-symbol {
fill: none; fill: none;
stroke: #000080; stroke: #000080;
} }
line.aspect {
stroke-width: 1;
stroke: #000000;
stroke-dasharray: 1,2;
}
line.aspect-conjuction {
stroke-width: 5;
stroke: #00cc00;
stroke-opacity: 0.5;
}
line.aspect-sextile {
stroke-width: 1
stroke: #00cc00;
stroke-dasharray: none;
}
line.aspect-square {
stroke: #c00000;
stroke-dasharray: none;
}
line.aspect-trine {
stroke: #000080;
stroke-dasharray: none;
}
line.aspect-opposition {
stroke: #c00000;
stroke-dasharray: 5,5;
}
line.aspect-semisextile {
stroke: #00cc00;
}
line.aspect-semisquare {
stroke: #cc0000;
stroke-dasharray: 9,3;
}
line.aspect-quintile {
stroke: #00cc00;
stroke-dasharray: 9,3;
}
line.aspect-sesquisquare {
}
line.aspect-biquintile {
stroke: #00cc00;
}
line.aspect-quincunx {
stroke: #cc0000;
}

View File

@ -643,7 +643,8 @@
<xsl:variable name="x2" select="$r_aspect * math:cos($rad2)"/> <xsl:variable name="x2" select="$r_aspect * math:cos($rad2)"/>
<xsl:variable name="y2" select="$r_aspect * -math:sin($rad2)"/> <xsl:variable name="y2" select="$r_aspect * -math:sin($rad2)"/>
<line style="stroke-width:1;stroke:#000000;stroke-dasharray:20,10"> <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>