table.grid { position:absolute; top:0; left:0; z-index:10; }
table.grid,
-table.grid td { outline:1px solid rgba(255,255,255,0.1); color:transparent; font: 18pt monospace;
+table.grid td { /* outline:1px solid rgba(255,255,255,0.1); */
+ color:transparent; font: 18pt monospace;
margin:0; padding:0; white-space:nowrap; overflow:hidden; }
.gridShowCoords table.grid td:hover { color:rgba(255,255,255,0.1); }
traceTrajectories : false
},
debug : {
- gridShowCoords : true
+ gridShowCoords : false
}
};
\ No newline at end of file
case 3: evt.middleMouse = true; break;
}
this.updateMeta(evt);
+
+ if (window.getSelection) {
+ window.getSelection().removeAllRanges();
+ }
+
+ return false;
},
mouseup : function mouseup(evt){
case 3: evt.middleMouse = false; break;
}
this.updateMeta(evt);
+
+ if (window.getSelection) {
+ window.getSelection().removeAllRanges();
+ }
+
+ return false;
},
mousemove : function mousemove(evt){
lineWidth : 0.5,
strokeStyle : '#6E6E6E',
+
init : function init(cols,rows, size){
this.cols = cols;
this.rows = rows;
drawShape : function drawShape(ctx){
var tbody = $('<tbody/>')
- , cols = this.cols, rows = this.rows, size = this.size
+ , cols = this.cols, rows = this.rows
+ , size = this.size
+ , w = this.canvasWidth
+ , h = this.canvasHeight
;
Y(0, rows).forEach(function(y){
.append(tbody)
.prependTo( this.layer );
- this.canvas.remove();
-
- return this;
- },
-
- _drawShape : function drawShape(ctx){
- var size = this.size
- , rows = this.rows
- , cols = this.cols
- , w = this.canvasWidth
- , h = this.canvasHeight
- ;
+ // this.canvas.remove();
ctx.lineWidth = this.lineWidth;
ctx.strokeStyle = this.strokeStyle;