File excanvas_src.js
has 672 lines of code (exceeds 250 allowed). Consider refactoring.
Function stroke
has 143 lines of code (exceeds 25 allowed). Consider refactoring.
contextPrototype.stroke = function(aFill) {
var lineStr = [];
var lineOpen = false;
var a = processStyle(aFill ? this.fillStyle : this.strokeStyle);
var color = a.color;
Function drawImage
has 77 lines of code (exceeds 25 allowed). Consider refactoring.
contextPrototype.drawImage = function(image, var_args) {
var dx, dy, dw, dh, sx, sy, sw, sh;
var oldRuntimeWidth = image.runtimeStyle.width;
Function init_
has 28 lines of code (exceeds 25 allowed). Consider refactoring.
init_: function(doc) {
if (!doc.namespaces['g_vml_']) {
doc.namespaces.add('g_vml_', 'urn:schemas-microsoft-com:vml',
'#default#VML');
Avoid deeply nested control flow statements.
if (angle < 1e-6) {
angle = 0;
}
Function arc
has 6 arguments (exceeds 4 allowed). Consider refactoring.
contextPrototype.arc = function(aX, aY, aRadius,
aStartAngle, aEndAngle, aClockwise) {
Function createRadialGradient
has 6 arguments (exceeds 4 allowed). Consider refactoring.
contextPrototype.createRadialGradient = function(aX0, aY0, aR0,
aX1, aY1, aR1) {
Function transform
has 6 arguments (exceeds 4 allowed). Consider refactoring.
contextPrototype.transform = function(m11, m12, m21, m22, dx, dy) {
Avoid deeply nested control flow statements.
if (angle < 0) {
angle += 360;
}
Function setTransform
has 6 arguments (exceeds 4 allowed). Consider refactoring.
contextPrototype.setTransform = function(m11, m12, m21, m22, dx, dy) {
Function bezierCurveTo
has 6 arguments (exceeds 4 allowed). Consider refactoring.
contextPrototype.bezierCurveTo = function(aCP1x, aCP1y,
aCP2x, aCP2y,
aX, aY) {
Similar blocks of code found in 2 locations. Consider refactoring.
contextPrototype.fillRect = function(aX, aY, aWidth, aHeight) {
var oldPath = this.currentPath_;
this.beginPath();
this.moveTo(aX, aY);
Similar blocks of code found in 2 locations. Consider refactoring.
contextPrototype.strokeRect = function(aX, aY, aWidth, aHeight) {
var oldPath = this.currentPath_;
this.beginPath();
this.moveTo(aX, aY);
Similar blocks of code found in 2 locations. Consider refactoring.
contextPrototype.moveTo = function(aX, aY) {
var p = this.getCoords_(aX, aY);
this.currentPath_.push({type: 'moveTo', x: p.x, y: p.y});
this.currentX_ = p.x;
this.currentY_ = p.y;
Similar blocks of code found in 2 locations. Consider refactoring.
contextPrototype.lineTo = function(aX, aY) {
var p = this.getCoords_(aX, aY);
this.currentPath_.push({type: 'lineTo', x: p.x, y: p.y});
this.currentX_ = p.x;
Similar blocks of code found in 2 locations. Consider refactoring.
case 'height':
el.style.height = el.attributes.height.nodeValue + 'px';
el.getContext().clearRect();
break;
Similar blocks of code found in 2 locations. Consider refactoring.
y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2
Similar blocks of code found in 2 locations. Consider refactoring.
x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2,
Similar blocks of code found in 2 locations. Consider refactoring.
case 'width':
el.style.width = el.attributes.width.nodeValue + 'px';
el.getContext().clearRect();
break;
Similar blocks of code found in 4 locations. Consider refactoring.
if (min.y == null || p.y < min.y) {
min.y = p.y;
}
Similar blocks of code found in 4 locations. Consider refactoring.
if (max.y == null || p.y > max.y) {
max.y = p.y;
}
Similar blocks of code found in 4 locations. Consider refactoring.
if (max.x == null || p.x > max.x) {
max.x = p.x;
}
Similar blocks of code found in 4 locations. Consider refactoring.
if (min.x == null || p.x < min.x) {
min.x = p.x;
}
There are no issues that match your filters.