* Validates clipping params. Per drawImage spec sWidth and sHight cannot be * negative or greater than image intrinsic width and height * @private * @param {Number} sVal * @param {Number} iVal * @returns {Number} * @private
(sVal, iVal)
| 835 | * @private |
| 836 | */ |
| 837 | function _sAssign(sVal, iVal) { |
| 838 | if (sVal > 0 && sVal < iVal) { |
| 839 | return sVal; |
| 840 | } else { |
| 841 | return iVal; |
| 842 | } |
| 843 | } |
| 844 | |
| 845 | /** |
| 846 | * Draws an image to the canvas. |