Skip to content

Commit 0fc0723

Browse files
committed
temp fix for layertools not rendering in tool palette
1 parent f420c3a commit 0fc0723

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/ui/tool.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ export abstract class LayerTool<
131131
get mouseState() {
132132
return this.layer.manager.root.layerSelectedValues.mouseState;
133133
}
134+
renderInPalette(context: RefCounted): HTMLElement | undefined {
135+
context;
136+
this.description;
137+
const el = document.createElement("div");
138+
el.innerHTML = this.description;
139+
return el;
140+
}
134141
}
135142

136143
export abstract class LegacyTool<

0 commit comments

Comments
 (0)