lipstick: Colour tweaks
This commit is contained in:
parent
b6ad538095
commit
80d15d14ee
2 changed files with 7 additions and 7 deletions
|
@ -5,9 +5,9 @@ function drawDimension(from, to, so, self) {
|
||||||
let dimension = new self.Path()
|
let dimension = new self.Path()
|
||||||
.move(from)
|
.move(from)
|
||||||
.line(to)
|
.line(to)
|
||||||
.attr("class", "note")
|
.attr("class", "mark")
|
||||||
.attr("data-text", so.text || self.units(from.dist(to)))
|
.attr("data-text", so.text || self.units(from.dist(to)))
|
||||||
.attr("data-text-class", "fill-note center");
|
.attr("data-text-class", "fill-mark center");
|
||||||
if (!so.noStartMarker)
|
if (!so.noStartMarker)
|
||||||
dimension.attributes.set("marker-start", "url(#dimensionFrom)");
|
dimension.attributes.set("marker-start", "url(#dimensionFrom)");
|
||||||
if (!so.noEndMarker)
|
if (!so.noEndMarker)
|
||||||
|
@ -20,7 +20,7 @@ function drawLeader(self, from, to, id) {
|
||||||
self.paths[id] = new self.Path()
|
self.paths[id] = new self.Path()
|
||||||
.move(from)
|
.move(from)
|
||||||
.line(to)
|
.line(to)
|
||||||
.attr("class", "note dotted");
|
.attr("class", "mark dotted");
|
||||||
}
|
}
|
||||||
|
|
||||||
function hleader(so, type, self, id) {
|
function hleader(so, type, self, id) {
|
||||||
|
@ -103,11 +103,11 @@ export default {
|
||||||
pd: function(so) {
|
pd: function(so) {
|
||||||
let dimension = so.path
|
let dimension = so.path
|
||||||
.offset(so.d)
|
.offset(so.d)
|
||||||
.attr("class", "note")
|
.attr("class", "mark")
|
||||||
.attr("marker-start", "url(#dimensionFrom)")
|
.attr("marker-start", "url(#dimensionFrom)")
|
||||||
.attr("marker-end", "url(#dimensionTo)")
|
.attr("marker-end", "url(#dimensionTo)")
|
||||||
.attr("data-text", so.text || this.units(so.path.length()))
|
.attr("data-text", so.text || this.units(so.path.length()))
|
||||||
.attr("data-text-class", "fill-note center");
|
.attr("data-text-class", "fill-mark center");
|
||||||
let id = this.getId();
|
let id = this.getId();
|
||||||
drawLeader(this, so.path.start(), dimension.start(), id + "_ls");
|
drawLeader(this, so.path.start(), dimension.start(), id + "_ls");
|
||||||
drawLeader(this, so.path.end(), dimension.end(), id + "_le");
|
drawLeader(this, so.path.end(), dimension.end(), id + "_le");
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export default `
|
export default `
|
||||||
<marker orient="auto" refY="0.0" refX="0.0" id="dimensionFrom" style="overflow:visible;"><path class="note fill-note" d="M 0,0 L 12,-4 C 10,-2 10,2 12, 4 z" /></marker>
|
<marker orient="auto" refY="0.0" refX="0.0" id="dimensionFrom" style="overflow:visible;"><path class="mark fill-mark" d="M 0,0 L 12,-4 C 10,-2 10,2 12, 4 z" /></marker>
|
||||||
<marker orient="auto" refY="0.0" refX="0.0" id="dimensionTo" style="overflow:visible;" ><path class="note fill-note" d="M 0,0 L -12,-4 C -10,-2 -10,2 -12, 4 z" /></marker>
|
<marker orient="auto" refY="0.0" refX="0.0" id="dimensionTo" style="overflow:visible;" ><path class="mark fill-mark" d="M 0,0 L -12,-4 C -10,-2 -10,2 -12, 4 z" /></marker>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue