feat: cookbook

This commit is contained in:
2025-11-28 14:38:51 +01:00
parent 245dd97532
commit 6895fa4a82
66 changed files with 1093 additions and 3386 deletions

View File

@@ -279,6 +279,18 @@ export class TextRenderer {
}
}
destroy() {
this.cursorNode.remove();
for (const node of this.nodes.values()) {
node.remove();
}
for (const node of this.heldNodes.values()) {
node.remove();
}
this.nodes.clear();
this.heldNodes.clear();
}
private isShiny(char: TextToken, index: number) {
return (
this.shiny?.includes(index) ||