Lines Matching refs:str

2324       var str = this.element.getAttribute("transform");
2325 if (str) {
2326 this.matrix = this.parseMatrix(str);
2368 parseMatrix: function(str) { argument
2371 str.replace(/\s*(\w+)\((.*?)\)/g, function(all) {
2376 p.println("Transformation:" + str + " is empty");
2515 var str = "";
2532 if (str !== "") {
2533 tmpArray.push(parseFloat(str));
2534 str = "";
2540 str += pathData[i].toString();
2544 if (str !== "") {
2545 tmpArray.push(parseFloat(str));
2547 str = pathData[i].toString();
2551 str += pathData[i].toString();
2561 if (str !== "") {
2562 tmpArray.push(parseFloat(str));
2563 str = "";
4099 var str = ""; variable in PMatrix3D
4101 str += this.elements[i] + ", ";
4103 str += this.elements[15];
4104 return str;
4194 p.split = function(str, delim) { argument
4195 return str.split(delim);
4198 p.splitTokens = function(str, tokens) { argument
4207 var pos = str.search(tokens);
4211 str = str.substring(1);
4213 ary[index] = str.substring(0, pos);
4215 str = str.substring(pos);
4217 pos = str.search(tokens);
4220 if (str.length > 0) {
4221 ary[index] = str;
5258 var str = "";
5260 str += (mask & value) ? "1" : "0";
5263 return str;
5292 var str = decToBin(num, numBitsInValue);
5296 str = str.substr(-numBits);
5298 return str;
5396 var str, num, pad, arr, left, right, isNegative, test, i;
5408 str = "" + num;
5409 for (i = pad - str.length; i > 0; i--) {
5410 str = "0" + str;
5414 str = "-" + str;
5420 str = new Array(arr.length);
5422 for (i = 0; i < arr.length && str !== undef; i++) {
5425 str = undef;
5427 str[i] = test;
5449 str = "" + num;
5451 for (i = left - str.indexOf('.'); i > 0; i--) {
5452 str = "0" + str;
5455 var numDec = str.length - str.indexOf('.') - 1;
5457 for (i = right - (str.length - str.indexOf('.') - 1); i > 0; i--) {
5458 str = str + "0";
5461 str = str.substring(0, str.length - (numDec - right));
5464 str = str.substring(0, str.indexOf('.'));
5468 str = "-" + str;
5475 str = new Array(arr.length);
5477 for (i = 0; i < arr.length && str !== undef; i++) {
5480 str = undef;
5482 str[i] = test;
5487 return str;
5590 String.prototype.equals = function equals(str) { argument
5591 return this.valueOf() === str.valueOf();
5602 p.match = function(str, regexp) { argument
5603 return str.match(regexp);
5890 p.str = function str(val) { function
5902 p.trim = function(str) { argument
5903 if (str instanceof Array) {
5905 for (var i = 0; i < str.length; i++) {
5906 arr.push(str[i].replace(/^\s*/, '').replace(/\s*$/, '').replace(/\r*$/, ''));
5910 return str.replace(/^\s*/, '').replace(/\s*$/, '').replace(/\r*$/, '');
10490 width: function(str) {
10492 …return curContext.measureText(typeof str === "number" ? String.fromCharCode(str) : str).width / cu…
10494 …return curContext.mozMeasureText(typeof str === "number" ? String.fromCharCode(str) : str) / curTe…
10511 width: function(str) {
10513 var len = str.length;
10516 width += parseFloat(p.glyphLook(p.glyphTable[name], str[i]).horiz_adv_x);
10567 p.textWidth = function textWidth(str) { argument
10576 textcanvas.width = curContext.measureText(str).width;
10578 textcanvas.width = curContext.mozMeasureText(str);
10585 return curContext.measureText(str).width;
10587 return curContext.mozMeasureText(str);
10821 function text$line(str, x, y, z, align) { argument
10825 if (str && ("fillText" in curContext || "mozDrawText" in curContext)) {
10836 textWidth = curContext.measureText(str).width;
10838 textWidth = curContext.mozMeasureText(str);
10849 curContext.fillText(str, x+xOffset, y);
10853 curContext.mozDrawText(str);
10865 textWidth = font.width(str);
10879 for (var i=0, len=str.length; i < len; i++) {
10882 p.glyphLook(font, str[i]).draw();
10891 function text$line$3d(str, x, y, z, align) { argument
10901 textWidth = curContext.measureText(str).width;
10903 textWidth = curContext.mozMeasureText(str);
10912 text$line(str,0,0,0,PConstants.LEFT);
10959 function text$4(str, x, y, z) { argument
10962 if(str.indexOf('\n') < 0) {
10963 lines = [str];
10966 lines = str.split(/\r?\n/g);
10988 function text$6(str, x, y, width, height, z) { argument
10989 if (str.length === 0) { // is empty string
11007 for (var j=0, len=str.length; j < len; j++) {
11008 var currentChar = str[j];
11017 … if (currentChar !== "\n" && (currentChar === " " || (hadSpaceBefore && str[j + 1] === " ") ||
11028 if (str[j] === "\n") {
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});