1 import {isVisible} from "dom";
9 return document.querySelector('.cursor');
12 getIdOfNode(): string {
13 return this.get().getAttribute('data-id');
17 const el = this.get();
19 el.classList.remove('cursor');
23 set(elementId: string) {
25 const el = document.querySelector(elementId) as HTMLElement;
28 el.classList.add('cursor');
30 el.scrollIntoView(true);
36 this.get().classList.remove('expanded');
37 this.get().classList.add('collapsed');
41 this.get().classList.remove('collapsed');
42 this.get().classList.add('expanded');
45 isNodeCollapsed(): boolean {
46 return this.get().classList.contains('collapsed');
49 isNodeExpanded(): boolean {
50 return this.get().classList.contains('expanded');