Lines Matching defs:width
76 var aw = 20; // Arrow width
143 var width = ctx.measureText(text).width;
144 ctx.fillText(text, mx0 + mw0 / 2 - width / 2, my0 + mh0 / 2);
349 selectobj[i].width = cur_thin;
820 tool.setWidth(obj.width);
854 canvas.width = metaObj.size[0] * scale;
861 canvas.width = 1024;
992 this.width = 1;
1021 set_default(alldat, "width", this.width, 1);
1031 this.width = obj.width || 1;
1085 var width = 20;
1087 maxx: this.points[0].x + width, maxy: this.points[0].y + height};
1117 var height = this.width === 1 ? 14 : this.width === 2 ? 16 : 20;
1120 var width = ctx.measureText(this.text).width;
1123 maxx: this.points[0].x + width, maxy: this.points[0].y};
1815 /// setWidth: A function(width) that is called before drawing.
1837 Tool.prototype.setWidth = function(width){
1838 ctx.lineWidth = width;
1866 obj.width = cur_thin;
2253 if (1 == obj.width) setFont(14);
2254 else if (2 == obj.width) setFont(16);
2263 ctx.lineTo(obj.points[0].x + ctx.measureText(str).width, obj.points[0].y + 4);
2294 lay.textInput.style.width = "30em";
2331 obj.width = cur_thin;
2371 // Adjust the text area's width so that two of them uses the div element's space efficiently.
2374 textLayer.linkInput.style.width = textInputRect.width - (linkInputRect.left - textInputRect.left) + "px";
2513 obj.width = cur_thin;
2648 // The layer to show input controls for width and height sizes of the figure.