Remove active style.
(selector: string, property: string)
| 391 | |
| 392 | /** Remove active style. */ |
| 393 | private removeStyle(selector: string, property: string) { |
| 394 | const elements = this.allObjects.get(selector)!; |
| 395 | |
| 396 | if (elements instanceof Element) { |
| 397 | this.renderer.removeStyle(elements, property); |
| 398 | } else { |
| 399 | for (const e of elements) { |
| 400 | this.renderer.removeStyle(e, property); |
| 401 | } |
| 402 | } |
| 403 | |
| 404 | const activeStyles = this.activeStyles.get(selector) || {}; |
| 405 | delete activeStyles[property]; |
| 406 | } |
| 407 | |
| 408 | /** Animate function. */ |
| 409 | private animate(then: number, elapsed: number) { |
no test coverage detected