()
| 656 | var c_y = cy; |
| 657 | |
| 658 | function xform() { |
| 659 | var rot = angle?'rotate(' + angle + ',' + c_x + ',' + c_y + ') ':''; |
| 660 | if(scale_x === 1 && scale_y === 1) { |
| 661 | curGradient.removeAttribute('gradientTransform'); |
| 662 | // $('#ang').addClass('dis'); |
| 663 | } else { |
| 664 | var x = -c_x * (scale_x-1); |
| 665 | var y = -c_y * (scale_y-1); |
| 666 | curGradient.setAttribute('gradientTransform', rot + 'translate(' + x + ',' + y + ') scale(' + scale_x + ',' + scale_y + ')'); |
| 667 | // $('#ang').removeClass('dis'); |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | function dragColor(evt) { |
| 672 | wasDragged = true; |
no outgoing calls
no test coverage detected