Skip to content

Commit

Permalink
[BUILD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Feb 8, 2020
1 parent b28c600 commit 90a4b85
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions dist/ol-games.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,16 @@ ol.featureAnimation.Explode.prototype.animate = function (e) {
var m = e.frameState.coordinateToPixelTransform;
var dx = m[0]*e.coord[0] + m[1]*e.coord[1] +m[4];
var dy = m[2]*e.coord[0] + m[3]*e.coord[1] +m[5];
var tr = e.inversePixelTransform;
if (tr) {
var pt = [
(dx*tr[0] - dy*tr[1] + tr[4]),
(-dx*tr[2] + dy*tr[3] + tr[5])
];
dx = pt[0];
dy = pt[1];
ratio = 1;
}
e.context.globalCompositeOperation = "lighter";
e.context.fillStyle = this.gradient;
e.context.scale(ratio,ratio);
Expand Down
Loading

0 comments on commit 90a4b85

Please sign in to comment.