For situations where the automatic positioning needs manual tweaking.
this.L = L;
}
- void draw(picture pic=currentpicture, bool rotateLabel=false) {
+ void draw(picture pic=currentpicture, bool rotateLabel=false,
+ real labelOffsetAdjustment=0) {
picture picF;
picture picL;
bool direction;
draw(picF, p, outline);
label(pic = picF,
L = rotate(degrees(label_rotate)) * L,
- position = P + unit(P) * pLabelSize.y / 2);
+ position = P + unit(P) * (pLabelSize.y / 2 + labelOffsetAdjustment));
add(pic, picF, A);
}
}