* Set image properties * http://fabricjs.com/docs/fabric.Image.html#set * @param {Object} setting - Image properties * @param {boolean} [withRendering] - If true, The changed image will be reflected in the canvas
(setting, withRendering)
| 626 | * @param {boolean} [withRendering] - If true, The changed image will be reflected in the canvas |
| 627 | */ |
| 628 | setImageProperties(setting, withRendering) { |
| 629 | const { canvasImage } = this; |
| 630 | |
| 631 | if (!canvasImage) { |
| 632 | return; |
| 633 | } |
| 634 | |
| 635 | canvasImage.set(setting).setCoords(); |
| 636 | if (withRendering) { |
| 637 | this._canvas.renderAll(); |
| 638 | } |
| 639 | } |
| 640 | |
| 641 | /** |
| 642 | * Returns canvas element of fabric.Canvas[[lower-canvas]] |