wgge 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -107,25 +107,25 @@ export default class CanvasRenderer extends RendererBase {
107
107
  this.drawArc(center, radius, fill, stroke);
108
108
  }
109
109
 
110
- drawImage(image, drawStart, drawEnd, imageStart, imageEnd, opacity = 1, clear = true) {
110
+ drawImage(image, drawStart, drawSize, imageStart, imageSize, opacity = 1, clear = true) {
111
111
  if (!image) {
112
112
  console.error('No image to draw!');
113
113
  return;
114
114
  }
115
115
  if (!this.checkContext()) return;
116
116
 
117
- if (clear) this.context2d.clearRect(drawStart.x, drawStart.y, drawEnd.x, drawEnd.y);
117
+ if (clear) this.context2d.clearRect(drawStart.x, drawStart.y, drawSize.x, drawSize.y);
118
118
  this.context2d.globalAlpha = opacity;
119
119
  this.context2d.drawImage(
120
120
  image,
121
121
  imageStart.x,
122
122
  imageStart.y,
123
- imageEnd.x,
124
- imageEnd.y,
123
+ imageSize.x,
124
+ imageSize.y,
125
125
  drawStart.x,
126
126
  drawStart.y,
127
- drawEnd.x,
128
- drawEnd.y
127
+ drawSize.x,
128
+ drawSize.y
129
129
  );
130
130
  }
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wgge",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Web GL Game Engine",
5
5
  "main": "index.js",
6
6
  "devDependencies": {