Skip to content

Commit

Permalink
temp fix for layertools not rendering in tool palette
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj committed Jan 10, 2025
1 parent 01726ac commit 8739c6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ui/tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,13 @@ export abstract class LayerTool<
get mouseState() {
return this.layer.manager.root.layerSelectedValues.mouseState;
}
renderInPalette(context: RefCounted): HTMLElement | undefined {
context;
this.description;
const el = document.createElement("div");
el.innerHTML = this.description;
return el;
}
}

export abstract class LegacyTool<
Expand Down

0 comments on commit 8739c6e

Please sign in to comment.