Multi strokes

This commit is contained in:
Devine Lu Linvega 2017-01-25 15:30:07 -07:00
parent 62e0888afe
commit 450aee4f72
2 changed files with 10 additions and 4 deletions

View File

@ -117,8 +117,8 @@ function Cursor(rune)
this.element.style.width = radius; this.element.style.width = radius;
this.element.style.height = radius; this.element.style.height = radius;
this.element.style.borderRadius = radius; this.element.style.borderRadius = radius;
this.element.style.marginLeft = -radius/2; this.element.style.marginLeft = -(radius/2)-1;
this.element.style.marginTop = -radius/2; this.element.style.marginTop = -(radius/2)-1;
this.element.style.borderColor = this.mode && this.mode.color ? this.mode.color.hex : "#ff0000"; this.element.style.borderColor = this.mode && this.mode.color ? this.mode.color.hex : "#ff0000";
} }

View File

@ -42,7 +42,10 @@ function Vector(rune)
this.widget_cursor = function() this.widget_cursor = function()
{ {
if(keyboard.shift_held == true){ if(keyboard.shift_held == true && keyboard.alt_held == true){
return "Vector(Origin)";
}
else if(keyboard.shift_held == true){
return "Vector(Counterclock Arc)"; return "Vector(Counterclock Arc)";
} }
else if(keyboard.alt_held == true){ else if(keyboard.alt_held == true){
@ -86,7 +89,10 @@ function Vector(rune)
this.click = null; this.click = null;
// Add the right thing // Add the right thing
if(keyboard.shift_held == true){ if(keyboard.shift_held == true && keyboard.alt_held == true){
this.coordinates.push("M"+position.render());
}
else if(keyboard.shift_held == true){
this.coordinates.push("A1,1 0 0,1 "+position.render()); this.coordinates.push("A1,1 0 0,1 "+position.render());
} }
else if(keyboard.alt_held == true){ else if(keyboard.alt_held == true){