Lines Matching refs:arguments

79       var result = _ie_replace.apply(this, arguments);
94 var result = _ie_match.apply(this, arguments);
429 if (arguments.length === 1) {
430 this.push(arguments[0]); // for add(Object)
431 } else if (arguments.length === 2) {
432 if (typeof arguments[0] === 'number') {
433 if (arguments[0] >= 0 && arguments[0] <= this.length) {
434 this.splice(arguments[0], 0, arguments[1]); // for add(i, Object)
436 throw(arguments[0] + " is not a valid index");
439 throw(typeof arguments[0] + " is not a number");
447 if (arguments.length === 2) {
448 if (typeof arguments[0] === 'number') {
449 if (arguments[0] >= 0 && arguments[0] < this.length) {
450 this.splice(arguments[0], 1, arguments[1]);
452 throw(arguments[0] + " is not a valid index.");
455 throw(typeof arguments[0] + " is not a number");
489 return createArrayList(Array.prototype.slice.call(arguments));
527 if (arguments.length === 1 && arguments[0].constructor === HashMap) {
528 return arguments[0].clone();
531 var initialCapacity = arguments.length > 0 ? arguments[0] : 16;
532 var loadFactor = arguments.length > 1 ? arguments[1] : 0.75;
897 if (arguments.length === 1) {
912 if (arguments.length === 3) {
916 } else if (arguments.length === 1) {
923 if (arguments.length === 3) {
927 } else if (arguments.length === 1) {
962 if (arguments.length === 3) {
964 } else if (arguments.length === 1) {
2151 if(arguments.length === 2)
2154 this.matrix.translate(arguments[0], arguments[1]);
2157 this.matrix.translate(arguments[0], arguments[1], 0);
2181 if(arguments.length === 1){
2183 this.matrix.rotate(arguments[0]);
2186 this.matrix.rotate(arguments[0], arguments[1], arguments[2] ,arguments[3]);
2190 if(arguments.length === 2) {
2192 this.matrix.scale(arguments[0], arguments[1]);
2193 } else if (arguments.length === 3) {
2195 this.matrix.scale(arguments[0], arguments[1], arguments[2]);
2198 this.matrix.scale(arguments[0]);
2206 if (arguments.length === 1) {
2211 } else if (arguments.length === 6) {
2213 this.matrix.apply(arguments[0], arguments[1], arguments[2], 0,
2214 arguments[3], arguments[4], arguments[5], 0,
2218 } else if (arguments.length === 16) {
2220 this.matrix.apply(arguments[0], arguments[1], arguments[2], arguments[3],
2221 arguments[4], arguments[5], arguments[6], arguments[7],
2222 arguments[8], arguments[9], arguments[10], arguments[11],
2223 arguments[12], arguments[13], arguments[14], arguments[15]);
2240 if (arguments.length === 1) {
2241 this.element = new p.XMLElement(null, arguments[0]);
2268 else if (arguments.length === 2) {
2269 if (typeof arguments[1] === 'string') {
2270 if (arguments[1].indexOf(".svg") > -1) { //its a filename
2271 this.element = new p.XMLElement(null, arguments[1]);
2295 if (arguments[0]) { // PShapeSVG
2296 this.element = arguments[1];
2297 this.vertexCodes = arguments[0].vertexCodes.slice();
2298 this.vertices = arguments[0].vertices.slice();
2300 this.stroke = arguments[0].stroke;
2301 this.strokeColor = arguments[0].strokeColor;
2302 this.strokeWeight = arguments[0].strokeWeight;
2303 this.strokeCap = arguments[0].strokeCap;
2304 this.strokeJoin = arguments[0].strokeJoin;
2305 this.strokeGradient = arguments[0].strokeGradient;
2306 this.strokeGradientPaint = arguments[0].strokeGradientPaint;
2307 this.strokeName = arguments[0].strokeName;
2309 this.fill = arguments[0].fill;
2310 this.fillColor = arguments[0].fillColor;
2311 this.fillGradient = arguments[0].fillGradient;
2312 this.fillGradientPaint = arguments[0].fillGradientPaint;
2313 this.fillName = arguments[0].fillName;
2314 this.strokeOpacity = arguments[0].strokeOpacity;
2315 this.fillOpacity = arguments[0].fillOpacity;
2316 this.opacity = arguments[0].opacity;
3099 if (arguments.length >= 1 && arguments[0] !== null) {
3103 if (arguments.length === 5) {
3106 } else if (arguments.length === 3) {
3112 if (arguments.length === 5) {
3115 } else if (arguments.length === 3) {
3119 if (arguments.length === 5) {
3124 } else if (arguments.length === 3) {
3129 … if ((arguments.length === 1 && curShapeMode === PConstants.CENTER ) || arguments.length > 1) {
3141 if (arguments.length === 1) {
3185 if (arguments.length === 4) {
3188 this.fullName = arguments[0] || "";
3189 if (arguments[1]) {
3190 this.name = arguments[1];
3199 this.namespace = arguments[1];
3201 this.lineNr = arguments[3];
3202 this.systemID = arguments[2];
3205 …else if ((arguments.length === 2 && arguments[1].indexOf(".") > -1) ) { // filename or svg xml ele…
3215 this.parse(arguments[arguments.length -1]);
3216 } else if (arguments.length === 1 && typeof arguments[0] === "string"){
3227 this.parse(arguments[0]);
3267 if (arguments.length === 2) {
3268 return new XMLElement(arguments[0], arguments[1], null, null);
3270 return new XMLElement(arguments[0], arguments[1], arguments[2], arguments[3]);
3309 if( arguments.length === 2 ){
3310 attribute = this.findAttribute(arguments[0]);
3314 return arguments[1];
3316 } else if (arguments.length === 1) {
3317 attribute = this.findAttribute(arguments[0]);
3326 if (arguments.length === 1) {
3327 return this.getAttribute(arguments[0]);
3328 } else if (arguments.length === 2){
3329 return this.getAttribute(arguments[0], arguments[1]);
3331 return this.getAttribute(arguments[0], arguments[1],arguments[2]);
3335 if (arguments.length === 1 ) {
3336 return parseFloat(this.getAttribute(arguments[0], 0));
3337 } else if (arguments.length === 2 ){
3338 return this.getAttribute(arguments[0], arguments[1]);
3340 return this.getAttribute(arguments[0], arguments[1],arguments[2]);
3344 if (arguments.length === 1) {
3345 return this.getAttribute( arguments[0], 0 );
3346 } else if (arguments.length === 2) {
3347 return this.getAttribute(arguments[0], arguments[1]);
3349 return this.getAttribute(arguments[0], arguments[1],arguments[2]);
3393 if (arguments.length === 1) {
3394 if (typeof arguments[0] === "number") {
3395 return this.getChild( arguments[0]);
3396 } else if (arguments[0].indexOf('/') !== -1) { // path was given
3397 return this.getChildrenRecursive( arguments[0].split("/"), 0);
3404 if (kidName !== null && kidName === arguments[0]) {
3514 if (arguments.length === 3) {
3515 var index = arguments[0].indexOf(':');
3516 var name = arguments[0].substring(index + 1);
3517 attr = this.findAttribute( name, arguments[1] );
3519 attr.setValue(arguments[2]);
3521 attr = new XMLAttribute(arguments[0], name, arguments[1], arguments[2], "CDATA");
3525 attr = this.findAttribute(arguments[0]);
3527 attr.setValue(arguments[1]);
3529 attr = new XMLAttribute(arguments[0], arguments[0], null, arguments[1], "CDATA");
3538 if (arguments.length === 1) {
3539 this.name = arguments[0];
3540 this.fullName = arguments[0];
3541 this.namespace = arguments[0];
3543 var index = arguments[0].indexOf(':');
3544 if ((arguments[1] === null) || (index < 0)) {
3545 this.name = arguments[0];
3547 this.name = arguments[0].substring(index + 1);
3549 this.fullName = arguments[0];
3550 this.namespace = arguments[1];
3589 if (arguments.length === 0) {
3591 } else if (arguments.length === 1 && arguments[0] instanceof PMatrix2D) {
3592 this.set(arguments[0].array());
3593 } else if (arguments.length === 6) {
3594 … this.set(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
3600 if (arguments.length === 6) {
3601 var a = arguments;
3604 } else if (arguments.length === 1 && arguments[0] instanceof PMatrix2D) {
3605 this.elements = arguments[0].array();
3606 } else if (arguments.length === 1 && arguments[0] instanceof Array) {
3607 this.elements = arguments[0].slice();
3701 if (arguments.length === 1 && arguments[0] instanceof PMatrix2D) {
3702 source = arguments[0].array();
3703 } else if (arguments.length === 6) {
3704 source = Array.prototype.slice.call(arguments);
3705 } else if (arguments.length === 1 && arguments[0] instanceof Array) {
3706 source = arguments[0];
3722 if (arguments.length === 1 && arguments[0] instanceof PMatrix2D) {
3723 source = arguments[0].array();
3724 } else if (arguments.length === 6) {
3725 source = Array.prototype.slice.call(arguments);
3726 } else if (arguments.length === 1 && arguments[0] instanceof Array) {
3727 source = arguments[0];
3777 if (arguments.length === 16) {
3778 this.elements = Array.prototype.slice.call(arguments);
3779 } else if (arguments.length === 1 && arguments[0] instanceof PMatrix3D) {
3780 this.elements = arguments[0].array();
3781 } else if (arguments.length === 1 && arguments[0] instanceof Array) {
3782 this.elements = arguments[0].slice();
3873 if (arguments.length === 1 && arguments[0] instanceof PMatrix3D) {
3874 source = arguments[0].array();
3875 } else if (arguments.length === 16) {
3876 source = Array.prototype.slice.call(arguments);
3877 } else if (arguments.length === 1 && arguments[0] instanceof Array) {
3878 source = arguments[0];
3897 if (arguments.length === 1 && arguments[0] instanceof PMatrix3D) {
3898 source = arguments[0].array();
3899 } else if (arguments.length === 16) {
3900 source = Array.prototype.slice.call(arguments);
3901 } else if (arguments.length === 1 && arguments[0] instanceof Array) {
3902 source = arguments[0];
3946 var a = arguments;
4158 if (arguments.length === 1) {
4159 tmpMatrix.set(arguments[0]);
4161 tmpMatrix.set(arguments);
4199 if (arguments.length === 1) {
4301 if (arguments.length === 2) {
4303 } else if (arguments.length === 3) {
4327 if (arguments.length === 1) {
4331 } else if (arguments.length === 2) {
4341 if (arguments.length === 2) {
4343 src = arguments[0];
4344 dest = arguments[1];
4346 } else if (arguments.length === 3) {
4348 src = arguments[0];
4349 dest = arguments[1];
4350 length = arguments[2];
4351 } else if (arguments.length === 5) {
4352 src = arguments[0];
4353 srcPos = arguments[1];
4354 dest = arguments[2];
4355 destPos = arguments[3];
4356 length = arguments[4];
4845 curColorMode = arguments[0];
4846 if (arguments.length > 1) {
4847 colorModeX = arguments[1];
4848 colorModeY = arguments[2] || arguments[1];
4849 colorModeZ = arguments[3] || arguments[1];
4850 colorModeA = arguments[4] || arguments[1];
4968 var a = arguments;
5182 if (arguments.length > 1 || (arguments.length === 1 && arguments[0] instanceof p.PImage)) {
5183 var image = arguments[0],
5185 if (arguments.length >= 3) {
5186 x = arguments[1];
5187 y = arguments[2];
5200 } else if (arguments.length === 1) {
5201 var mode = arguments[0];
5316 if (arguments.length === 1 || binaryString.length === 8) {
5398 …if (arguments.length === 2 && typeof arguments[0] === 'number' && typeof arguments[1] === 'number'…
5399 num = arguments[0];
5400 pad = arguments[1];
5416 …} else if (arguments.length === 2 && typeof arguments[0] === 'object' && arguments[0].constructor …
5417 arr = arguments[0];
5418 pad = arguments[1];
5430 …if (arguments.length === 3 && typeof arguments[0] === 'number' && typeof arguments[1] === 'number'…
5431 num = arguments[0];
5432 left = arguments[1];
5433 right = arguments[2];
5470arguments.length === 3 && typeof arguments[0] === 'object' && arguments[0].constructor === Array &…
5471 arr = arguments[0];
5472 left = arguments[1];
5473 right = arguments[2];
5516 if (arguments.length === 1) {
5687 var i = arguments.length,
5691 styles = arguments[i--];
5692 elemStyle = arguments[i][$style];
5877 if (arguments.length === 0 && bufferLen === 0) {
5879 } else if (arguments.length !== 0) {
6039 if (arguments.length === 4) {
6040 dx = arguments[0] - arguments[2];
6041 dy = arguments[1] - arguments[3];
6043 } else if (arguments.length === 6) {
6044 dx = arguments[0] - arguments[3];
6045 dy = arguments[1] - arguments[4];
6046 dz = arguments[2] - arguments[5];
6062 if (arguments.length === 2) {
6064 } else if (arguments.length === 3) {
6074 if (arguments.length === 2) {
6075 return arguments[0] < arguments[1] ? arguments[1] : arguments[0];
6077 …var numbers = arguments.length === 1 ? arguments[0] : arguments; // if single argument, array is u…
6093 if (arguments.length === 2) {
6094 return arguments[0] < arguments[1] ? arguments[0] : arguments[1];
6096 …var numbers = arguments.length === 1 ? arguments[0] : arguments; // if single argument, array is u…
6151 if(arguments.length === 0) {
6153 } else if(arguments.length === 1) {
6154 return currentRandom() * arguments[0];
6156 var aMin = arguments[0], aMax = arguments[1];
6289 switch (arguments.length) {
6694 if (arguments.length === 0) {
6733 if (arguments.length === 0) {
6764 if (arguments.length === 0) {
6959 if (arguments.length === 1) {
6960 ures = vres = arguments[0];
7016 var sRad = arguments[0], c;
7153 var a = arguments;
7180 var a = arguments;
7223 var c = p.color.apply(this, arguments);
7294 var color = p.color(arguments[0], arguments[1], arguments[2], arguments[3]);
7323 var color = p.color(arguments[0], arguments[1], arguments[2], arguments[3]);
7471 if (arguments.length === 4) { //x, y, u, v
7472 vert[0] = arguments[0];
7473 vert[1] = arguments[1];
7475 vert[3] = arguments[2];
7476 vert[4] = arguments[3];
7478 vert[0] = arguments[0];
7479 vert[1] = arguments[1];
7480 vert[2] = arguments[2] || 0;
7481 vert[3] = arguments[3] || 0;
7482 vert[4] = arguments[4] || 0;
8323 if (arguments.length === 9) {
8336 …var xplot1 = draw[4] * x1 + draw[5] * arguments[0] + draw[6] * arguments[3] + draw[7] * arguments[…
8337 …var xplot2 = draw[8] * x1 + draw[9] * arguments[0] + draw[10]* arguments[3] + draw[11]* arguments[…
8338 …var xplot3 = draw[12]* x1 + draw[13]* arguments[0] + draw[14]* arguments[3] + draw[15]* arguments[…
8340 …var yplot1 = draw[4] * y1 + draw[5] * arguments[1] + draw[6] * arguments[4] + draw[7] * arguments[…
8341 …var yplot2 = draw[8] * y1 + draw[9] * arguments[1] + draw[10]* arguments[4] + draw[11]* arguments[…
8342 …var yplot3 = draw[12]* y1 + draw[13]* arguments[1] + draw[14]* arguments[4] + draw[15]* arguments[…
8344 …var zplot1 = draw[4] * z1 + draw[5] * arguments[2] + draw[6] * arguments[5] + draw[7] * arguments[…
8345 …var zplot2 = draw[8] * z1 + draw[9] * arguments[2] + draw[10]* arguments[5] + draw[11]* arguments[…
8346 …var zplot3 = draw[12]* z1 + draw[13]* arguments[2] + draw[14]* arguments[5] + draw[15]* arguments[…
8353 p.vertex(arguments[6], arguments[7], arguments[8]);
8356 for (var i = 0; i < arguments.length; i++) {
8357 vert[i] = arguments[i];
8381 executeTexImage2D.apply(this, arguments);
8500 if (arguments.length === 8) // curve(x1, y1, x2, y2, x3, y3, x4, y4)
8503 p.curveVertex(arguments[0], arguments[1]);
8504 p.curveVertex(arguments[2], arguments[3]);
8505 p.curveVertex(arguments[4], arguments[5]);
8506 p.curveVertex(arguments[6], arguments[7]);
8511 p.curveVertex(arguments[0], arguments[1], arguments[2]);
8512 p.curveVertex(arguments[3], arguments[4], arguments[5]);
8513 p.curveVertex(arguments[6], arguments[7], arguments[8]);
8514 p.curveVertex(arguments[9], arguments[10], arguments[11]);
8578 if (arguments.length === 6) {
8579 x1 = arguments[0];
8580 y1 = arguments[1];
8581 z1 = arguments[2];
8582 x2 = arguments[3];
8583 y2 = arguments[4];
8584 z2 = arguments[5];
8585 } else if (arguments.length === 4) {
8586 x1 = arguments[0];
8587 y1 = arguments[1];
8589 x2 = arguments[2];
8590 y2 = arguments[3];
8624 x1 = arguments[0];
8625 y1 = arguments[1];
8626 x2 = arguments[2];
8627 y2 = arguments[3];
8657 if( arguments.length === 8 && !p.use3DContext ){
8659 p.vertex( arguments[0], arguments[1] );
8660 p.bezierVertex( arguments[2], arguments[3],
8661 arguments[4], arguments[5],
8662 arguments[6], arguments[7] );
8665 else if( arguments.length === 12 && p.use3DContext ){
8667 p.vertex( arguments[0], arguments[1], arguments[2] );
8668 p.bezierVertex( arguments[3], arguments[4], arguments[5],
8669 arguments[6], arguments[7], arguments[8],
8670 arguments[9], arguments[10], arguments[11] );
8936 …if (arguments.length !== 3 || !(typeof nx === "number" && typeof ny === "number" && typeof nz === …
9001 if (!arguments.length) {
9003 } else if (arguments.length === 2) {
9005 } else if (arguments.length === 4) {
9015 if (arguments.length === 9) {
9017 } else if (arguments.length === 10) {
9023 if (arguments.length === 8) {
9025 } else if (arguments.length === 9) {
9031 if (arguments.length === 2) {
9033 } else if (arguments.length === 1) {
9180 if (arguments.length === 1) {
9182 this.fromHTMLImageData(arguments[0]);
9183 } else if (arguments.length === 2 || arguments.length === 3) {
9310 if (arguments.length === 2) {
9312 } else if (arguments.length === 0) {
9314 } else if (arguments.length === 5) {
9316 } else if (arguments.length === 4) {
9318 } else if (arguments.length === 3) {
9320 } else if (arguments.length === 1) {
9349 curContext[name].apply(curContext, arguments);
9411 if (arguments.length === 3) {
9418 } else if (arguments.length === 4) {
9481 if (typeof arguments[0] === 'number') {
9482 color = p.color.apply(this, arguments);
9488 } else if (arguments.length === 1 && arguments[0] instanceof PImage) {
9489 img = arguments[0];
9542 …var bounds = imageModeConvert(x || 0, y || 0, w || img.width, h || img.height, arguments.length < …
9571 if (arguments.length === 0) {
9579 var tintColor = p.color.apply(this, arguments);
9602 if (arguments.length === 8) {
9618 if (arguments.length === 9) {
9641 if (arguments.length === 10 || arguments.length === 9) {
9644 } else if (arguments.length === 11 && pimgdest && pimgdest.imageData) {
9659 if (arguments.length === 10) {
9898 if (arguments.length === 3) {
10529 if (arguments.length === 2) {
10532 } else if (arguments.length === 3) {
10536 } else if (arguments.length === 4) {
10559 if(arguments.length === 1) {
10560 horizontalTextAlignment = arguments[0];
10561 } else if(arguments.length === 2) {
10562 horizontalTextAlignment = arguments[0];
10563 verticalTextAlignment = arguments[1];
11083 var tWidth = p.textWidth(arguments[0]);
11093 hud.text(arguments[0], 0, asc);
11095 if (arguments.length === 5 || arguments.length === 6) {
11096 p.image(hud, arguments[1], arguments[2]-asc, arguments[3], arguments[4]);
11098 p.image(hud, arguments[1], arguments[2]-asc);
11105 if (arguments.length === 3) { // for text( str, x, y)
11106 text$4(toP5String(arguments[0]), arguments[1], arguments[2], 0);
11107 } else if (arguments.length === 4) { // for text( str, x, y, z)
11108 text$4(toP5String(arguments[0]), arguments[1], arguments[2], arguments[3]);
11109 } else if (arguments.length === 5) { // for text( str, x, y , width, height)
11110 … text$6(toP5String(arguments[0]), arguments[1], arguments[2], arguments[3], arguments[4], 0);
11111 } else if (arguments.length === 6) { // for text( stringdata, x, y , width, height, z)
11112 …text$6(toP5String(arguments[0]), arguments[1], arguments[2], arguments[3], arguments[4], arguments
11348 if (arguments.length === args) {
11349 return fn.apply(this, arguments);
11351 return oldfn.apply(this, arguments);