(node: Node, alias: string, callback?: () => void)
| 80 | const nodePositionWatchers = new Map<string, ReturnType<typeof watchForNodePosition>>(); |
| 81 | |
| 82 | function setupNodePositionWatcher(node: Node, alias: string, callback?: () => void) { |
| 83 | nodePositionWatchers.has(alias) && nodePositionWatchers.get(alias)!.stop(); |
| 84 | nodePositionWatchers.set(alias, watchForNodePosition(node, 'head', callback)); |
| 85 | } |
| 86 | |
| 87 | function stopStylePositionWatchers() { |
| 88 | forEach(nodePositionWatchers.values(), (watcher) => watcher.stop()); |
no test coverage detected