SHOW:
|
|
- or go back to the newest paste.
| 1 | - | 332,336d331 |
| 1 | + | 331a332,336 |
| 2 | - | < * Whether the user has initiated crop on this instance |
| 2 | + | > * Whether the user has initiated crop on this instance |
| 3 | - | < */ |
| 3 | + | > */ |
| 4 | - | < this.isCropped = false; |
| 4 | + | > this.isCropped = false; |
| 5 | - | < /** |
| 5 | + | > /** |
| 6 | - | < * @var boolean |
| 6 | + | > * @var boolean |
| 7 | - | 1140,1142c1135 |
| 7 | + | 1135c1140,1142 |
| 8 | - | < |
| 8 | + | < |
| 9 | - | < this.isCropped = true; |
| 9 | + | |
| 10 | - | < |
| 10 | + | > |
| 11 | > this.isCropped = true; | |
| 12 | - | > |
| 12 | + | > |
| 13 | - | 1253,1261c1246,1252 |
| 13 | + | 1246,1252c1253,1261 |
| 14 | - | < if(this.isCropped) {
|
| 14 | + | < this.options.onEndCrop( |
| 15 | - | < this.options.onEndCrop( |
| 15 | + | < this.areaCoords, |
| 16 | - | < this.areaCoords, |
| 16 | + | < {
|
| 17 | - | < {
|
| 17 | + | < width: this.calcW(), |
| 18 | - | < width: this.calcW(), |
| 18 | + | < height: this.calcH() |
| 19 | - | < height: this.calcH() |
| 19 | + | < } |
| 20 | - | < } |
| 20 | + | < ); |
| 21 | - | < ); |
| 21 | + | |
| 22 | - | < } |
| 22 | + | > if(this.isCropped) {
|
| 23 | > this.options.onEndCrop( | |
| 24 | - | > this.options.onEndCrop( |
| 24 | + | > this.areaCoords, |
| 25 | - | > this.areaCoords, |
| 25 | + | > {
|
| 26 | - | > {
|
| 26 | + | > width: this.calcW(), |
| 27 | - | > width: this.calcW(), |
| 27 | + | > height: this.calcH() |
| 28 | - | > height: this.calcH() |
| 28 | + | > } |
| 29 | - | > } |
| 29 | + | > ); |
| 30 | - | > ); |
| 30 | + | > } |