Skip to content

Commit b574284

Browse files
author
caoxinke@supermap.com
committed
fix levelrender下一些类的bug。
1 parent 81d2464 commit b574284

File tree

9 files changed

+8412
-8614
lines changed

9 files changed

+8412
-8614
lines changed

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-leaflet.js

Lines changed: 2969 additions & 3070 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-mapboxgl.js

Lines changed: 2715 additions & 2715 deletions
Large diffs are not rendered by default.

dist/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 2719 additions & 2820 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/overlay/levelRenderer/Animation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export class Animation extends Eventful {
8383
this.stage = options.stage || {};
8484

8585
this.onframe = options.onframe || function () {
86-
};
86+
};
8787

8888
// private properties
8989
this._clips = [];
@@ -241,7 +241,7 @@ export class Animation extends Eventful {
241241
*/
242242
animate(target, options) {
243243
options = options || {};
244-
var deferred = new Animation.Animator(
244+
var deferred = new Animator(
245245
target,
246246
options.loop,
247247
options.getter,

src/common/overlay/levelRenderer/Clip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Animation} from './Animation';
1+
import {Easing as AEasing} from './Easing';
22

33
/**
44
* @private
@@ -81,7 +81,7 @@ export class Clip {
8181
}
8282

8383
step(time) {
84-
var Easing = new Animation.easing();
84+
var easing = new AEasing();
8585
var percent = (time - this._startTime) / this._life;
8686

8787
// 还没开始
@@ -92,7 +92,7 @@ export class Clip {
9292
percent = Math.min(percent, 1);
9393

9494
var easingFunc = typeof this.easing == 'string'
95-
? Easing[this.easing]
95+
? easing[this.easing]
9696
: this.easing;
9797
var schedule = typeof easingFunc === 'function'
9898
? easingFunc(percent)

0 commit comments

Comments
 (0)