Lines Matching refs:width

1070     p.width           = curElement.width  - 0;
1158 curTexture = {width:0,height:0}, property in curTexture
1214 cameraX = curElement.width / 2,
1219 cameraAspect = curElement.width / curElement.height;
1854 this.width = null;
1882 return this.width;
2333 this.width = viewBox[2];
2343 this.width = this.parseUnitSize(unitWidth);
2346 if ((this.width === 0) || (this.height === 0)) {
2350 this.width = 1;
3098 p.shape = function(shape, x, y, width, height) { argument
3104 p.translate(x - width/2, y - height/2);
3105 p.scale(width / shape.getWidth(), height / shape.getHeight());
3114 p.scale(width / shape.getWidth(), height / shape.getHeight());
3120 width -= x;
3123 p.scale(width / shape.getWidth(), height / shape.getHeight());
5188 if (x < 0 || y < 0 || y >= image.height || x >= image.width) {
5192 x = image.width >>> 1;
5636 width: "100%", property in tinylogLite.containerStyles
6324 curContext.fillRect(0, 0, p.width, p.height);
6340 if (curElement.width !== aWidth || curElement.height !== aHeight) {
6359 curContext.viewport(0, 0, curElement.width, curElement.height);
6482 curElement.width = p.width = aWidth || 100;
6502 return curContext.getImageData(0, 0, this.width, this.height);
6506 var obj = ctx.createImageData(this.width, this.height);
6507 var uBuff = new Uint8Array(this.width * this.height * 4);
6508 … curContext.readPixels(0,0,this.width,this.height,curContext.RGBA,curContext.UNSIGNED_BYTE, uBuff);
6510 …[i] = uBuff[(this.height - 1 - Math.floor(i / 4 / this.width)) * this.width * 4 + (i % (this.width
6696 cameraX = curElement.width / 2;
6739 cameraAspect = curElement.width / curElement.height;
6766 right = p.width;
7250 return p.width * ( 1 + ox ) / 2.0;
7627 tArray[i] = tArray[i]/curTexture.width;
8396 cvs.width = pimage.width;
8399 var textureImage = ctx.createImageData(cvs.width, cvs.height);
8403 for (var i = 0; i < cvs.width; i += 1) {
8405 var index = (j * cvs.width + i) * 4;
8427 curTexture.width = pimage.width;
8553 p.arc = function arc(x, y, width, height, start, stop) { argument
8554 if (width <= 0) {
8559 x += width / 2;
8565 …curContext.arc(x, y, curEllipseMode === PConstants.CENTER_RADIUS ? width : width / 2, start, stop,…
8714 p.rect = function rect(x, y, width, height) { argument
8719 model.scale(width, height, 1);
8787 if (!width && !height) {
8793 var i, x2 = x + width - 1, y2 = y + height - 1;
8794 for(i=0;i<width;++i) {
8811 width -= x;
8816 width *= 2;
8821 x -= width / 2;
8826 …Math.round(x) - offsetStart, Math.round(y) - offsetStart, Math.round(width) + offsetEnd, Math.roun…
8835 p.ellipse = function ellipse(x, y, width, height) { argument
8839 if (width <= 0 && height <= 0) {
8844 width *= 2;
8849 width = width - x;
8854 x += width / 2;
8861 if ((!p.use3DContext) && (width === height)) {
8863 curContext.arc(x - offsetStart, y - offsetStart, width / 2, 0, PConstants.TWO_PI, false);
8869 var w = width / 2,
8983 width = w || obj.width, height = h || obj.height;
8985 canvas.width = width;
8989 context.clearRect(0, 0, width, height);
8993 context.clearRect(0, 0, width, height);
8994 context.drawImage(obj, 0, 0, width, height);
9014 this.blend = function(srcImg, x, y, width, height, dx, dy, dwidth, dheight, MODE) { argument
9016 p.blend(this, srcImg, x, y, width, height, dx, dy, dwidth, dheight, this);
9018 p.blend(srcImg, x, y, width, height, dx, dy, dwidth, dheight, MODE, this);
9047 if (this.width !== 0 || this.height !== 0) {
9050 w = this.width / this.height * h;
9052 h = w / (this.width / this.height);
9068 if (mask.width === this.width && mask.height === this.height) {
9143 return canvasData.context.getImageData(0, 0, this.width, this.height);
9157 this.width = canvasImg.width;
9168 var imageData = canvasData.context.getImageData(0, 0, htmlImg.width, htmlImg.height);
9171 if (htmlImg.width && htmlImg.height) {
9173 this.width = htmlImg.width;
9184 this.width = aWidth || 1;
9186 this.imageData = utilityContext2d.createImageData(this.width, this.height);
9189 this.width = 0;
9243 var c = new PImage(p.width, p.height, PConstants.RGB);
9244 c.fromImageData(curContext.getImageData(0, 0, p.width, p.height));
9251 if (x < p.width && x >= 0 && y >= 0 && y < p.height) {
9253 var offset = ((0|x) + p.width * (0|y))*4;
9273 var offset = y * img.width * 4 + (x * 4);
9292 var start = y * img.width * 4 + (x*4);
9293 var end = (y + h) * img.width * 4 + ((x + w) * 4);
9300 i += (img.width - w) * 4;
9387 if (x < p.width && x >= 0 && y >= 0 && y < p.height) {
9389 p.pixels.setPixel((0|x)+p.width*(0|y), c);
9400 var offset = y * img.width * 4 + (x*4);
9454 p.imageData = curContext.getImageData(0, 0, p.width, p.height);
9491 if (!img.pixels || img.width !== p.width || img.height !== p.height) {
9513 curContext.clearRect(0,0, p.width, p.height);
9516 curContext.fillRect(0, 0, p.width, p.height);
9530 if (img.width > 0) {
9531 var wid = w || img.width;
9542 …var bounds = imageModeConvert(x || 0, y || 0, w || img.width, h || img.height, arguments.length < …
9549 for (j = 2, size = img.width * img.height * 4; j < size; j += 4) {
9564 …curContext.drawImage(getCanvasData(obj).canvas, 0, 0, img.width, img.height, bounds.x, bounds.y, b…
9570 p.clear = function clear(x, y, width, height) { argument
9572 curContext.clearRect(0, 0, p.width, p.height);
9574 curContext.clearRect(x, y, width, height);
9587 length = 4 * obj.width * obj.height;
9650 dest.imageData.data, dest.width, dest.height, dx, dy, dx2, dy2, mode);
9653 …p.blit_resize(src, sx, sy, sx2, sy2, dest.imageData.data, dest.width, dest.height, dx, dy, dx2, dy…
9657 …p.blit_resize(src, sx, sy, sx2, sy2, dest.imageData.data, dest.width, dest.height, dx, dy, dx2, dy…
9699 for (x = 0; x < aImg.width; x++) {
9706 if (read >= aImg.width) {
9712 if (read >= aImg.width) {
9730 yi += aImg.width;
9735 ymi = ym*aImg.width;
9738 for (x = 0; x < aImg.width; x++) {
9762 read += aImg.width;
9766 yi += aImg.width;
9767 ymi += aImg.width;
9786 maxRowIdx = currIdx + aImg.width;
9791 idxUp = currIdx - aImg.width;
9792 idxDown = currIdx + aImg.width;
9840 maxRowIdx = currIdx + aImg.width;
9845 idxUp = currIdx - aImg.width;
9846 idxDown = currIdx + aImg.width;
10117 if (srcX2 >= img.width) {
10118 srcX2 = img.width - 1;
10133 destY1 >= screenH || srcX1 >= img.width || srcY1 >= img.height) {
10156 p.shared.iw = img.width;
10157 p.shared.iw1 = img.width - 1;
10490 width: function(str) {
10492 …rContext.measureText(typeof str === "number" ? String.fromCharCode(str) : str).width / curTextSize;
10511 width: function(str) {
10512 var width = 0;
10516 width += parseFloat(p.glyphLook(p.glyphTable[name], str[i]).horiz_adv_x);
10522 return width / p.glyphTable[name].units_per_em;
10576 textcanvas.width = curContext.measureText(str).width;
10578 textcanvas.width = curContext.mozMeasureText(str);
10581 return textcanvas.width;
10585 return curContext.measureText(str).width;
10836 textWidth = curContext.measureText(str).width;
10865 textWidth = font.width(str);
10901 textWidth = curContext.measureText(str).width;
10905 textcanvas.width = textWidth;
10915 var aspect = textcanvas.width/textcanvas.height;
10988 function text$6(str, x, y, width, height, z) { argument
10999 var textboxWidth = width;
11012 letterWidth = curContext.measureText(currentChar).width;
11029 drawCommands.push({text:str.substring(start, j), width: lineWidth, offset: yOffset});
11032 … drawCommands.push({text:str.substring(start, spaceMark + 1), width: lineWidth, offset: yOffset});
11044 drawCommands.push({text:str.substring(start), width: lineWidth, offset: yOffset});
11052 xOffset = width / 2;
11054 xOffset = width;