(progress = this.progress || 0)
| 314 | } |
| 315 | |
| 316 | drawLine(progress = this.progress || 0) { |
| 317 | const start = this.start || 0; |
| 318 | const offset = this.offset || 0; |
| 319 | |
| 320 | const length = this.element.getTotalLength(); |
| 321 | const dash = length * progress; |
| 322 | const gap = length - dash; |
| 323 | |
| 324 | const style = { |
| 325 | strokeDasharray: `${dash},${gap}`, |
| 326 | strokeDashoffset: -length * (start + offset) |
| 327 | }; |
| 328 | |
| 329 | return this.css(style); |
| 330 | } |
| 331 | |
| 332 | tween(props, duration, ease, delay = 0, complete, update) { |
| 333 | if (!this.element) { |