Changeset 0c6b92a for imaps-frontend/node_modules/konva/lib/shapes/Image.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/konva/lib/shapes/Image.js
rd565449 r0c6b92a 79 79 } 80 80 _hitFunc(context) { 81 varwidth = this.width(), height = this.height(), cornerRadius = this.cornerRadius();81 const width = this.width(), height = this.height(), cornerRadius = this.cornerRadius(); 82 82 context.beginPath(); 83 83 if (!cornerRadius) { … … 99 99 } 100 100 static fromURL(url, callback, onError = null) { 101 varimg = Util_1.Util.createImageElement();101 const img = Util_1.Util.createImageElement(); 102 102 img.onload = function () { 103 varimage = new Image({103 const image = new Image({ 104 104 image: img, 105 105 });
Note:
See TracChangeset
for help on using the changeset viewer.