1 | /* eslint-disable no-invalid-this */
|
2 | export default function() {
|
3 | this._.width = this.container.offsetWidth;
|
4 | this._.height = this.container.offsetHeight;
|
5 | this._.engine.resize(this._.stage, this._.width, this._.height);
|
6 | this._.duration = this._.width / this._.speed;
|
7 | return this;
|
8 | }
|