MCPcopy
hub / github.com/nhn/tui.image-editor / setImageProperties

Method setImageProperties

apps/image-editor/src/js/graphics.js:628–639  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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]]

Callers

nothing calls this directly

Calls 2

setMethod · 0.80
renderAllMethod · 0.80

Tested by

no test coverage detected