UNPKG

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) 639 B
import { HotkeyMap } from './base.element' import { guides as icon } from '../vis-bug/vis-bug.icons' export class GuidesHotkeys extends HotkeyMap { constructor() { super() this._hotkey = 'g' this._usedkeys = [] this.tool = 'guides' } 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-guides', GuidesHotkeys)