Commits

Jason McKesson  committed 04b7356

Fix for Issue #61.

  • Participants
  • Parent commits 88f60e7

Comments (0)

Files changed (4)

File Documents/Basics/GenVectorAddition.lua

 styleLib:AddStyle(nil, "arrowhead-sum",
 	SvgWriter.Style():stroke(vectorSumColor):fill(vectorSumColor));
 styleLib:AddStyle(nil, "text-sum",
-	SvgWriter.Style():stroke("none"):fill(vectorSumColor):font_weight("bold"):font_size("25px"):font_family("monospace") );
+	SvgWriter.Style():stroke("none"):fill(vectorSumColor):font_weight("bold"):font_size("25px"):font_family("monospace"):text_anchor("end") );
 	
 local axisData = GridAxis.GridAxis2D(vp, nil, styleLib, true, nil);
 
 	vmath.vec2(-4, 2),
 
 	vmath.vec2(0, 0),
-	vmath.vec2(-2, 6),
+	vmath.vec2(-1, 6),
 };
 
 local labelOffset = vmath.vec2(5, -12);
 {
 	"A", vmath.vec2(10, 10),
 	"B", vmath.vec2(5, -5),
-	"A+B", vmath.vec2(-7, -40),
+	"A+B", vmath.vec2(-20, -40),
 }
 
 local styles =

File Documents/Basics/GenVectorAdditionHeads.lua

 	vmath.vec2(3, 4),
 
 	vmath.vec2(3, 4),
-	vmath.vec2(-2, 6),
+	vmath.vec2(-1, 6),
 
 	vmath.vec2(0, 0),
-	vmath.vec2(-2, 6),
+	vmath.vec2(-1, 6),
 };
 
 local labelOffset = vmath.vec2(5, -12);

File Documents/Basics/VectorAddition.svg

Old
Old image
New
New image

File Documents/Basics/VectorAdditionHeads.svg

Old
Old image
New
New image