Index TSX
Index TSX
class Caret {
protected x: number;
protected y: number;
constructor() {
this.rowIndex = -1;
this.columnIndex = -1;
this.x = -1;
this.y = -1;
this.isVisible = false;
this.timer = null;
}
doUpdate = true;
}
return doUpdate;
}
doUpdate = true;
}
return doUpdate;
}
doUpdate = true;
}
doUpdate = true;
}
return doUpdate;
}
public stopBlinking() {
if (this.timer !== null) {
clearInterval(this.timer);
this.timer = null;
this.isVisible = false;
document.documentElement.style.setProperty('--caret-display',
this.isVisible ? 'auto' : 'none');
}
}
}