visbug-lib
Version:
<p align="center"> <img src="./assets/visbug.png" width="300" height="300" alt="visbug"> <br> <a href="https://www.npmjs.org/package/visbug"><img src="https://img.shields.io/npm/v/visbug.svg?style=flat" alt="npm latest version number"></a> <a href
35 lines (29 loc) • 629 B
JavaScript
import { HotkeyMap } from './base.element'
import { text as icon } from '../vis-bug/vis-bug.icons'
export class TextHotkeys extends HotkeyMap {
constructor() {
super()
this._hotkey = 'e'
this._usedkeys = []
this.tool = 'text'
}
show() {
this.$shadow.host.style.display = 'flex'
}
render() {
return `
<article>
<div tool-icon>
<span>
${icon}
${this._tool} Tool
</span>
</div>
<div command>
coming soon
</div>
</article>
`
}
}
customElements.define('hotkeys-text', TextHotkeys)