UNPKG

726 BJavaScriptView Raw
1/*!
2 * The Sutton SignWriting Web Components
3 */
4import { r as registerInstance, h, H as Host, g as getElement } from './_commonjsHelpers-383fba37.js';
5import { o as overlap } from './global-4493408c.js';
6
7const fswSignboxCss = ".sc-fsw-signbox-h{width:100%;height:100%;border-radius:10px;display:block}";
8
9const FswSignbox = class {
10 constructor(hostRef) {
11 registerInstance(this, hostRef);
12 }
13 paletteSymbolDropHandler(event) {
14 const target = event.target;
15 if (overlap(target, this.el)) {
16 console.log(event.detail);
17 }
18 }
19 render() {
20 return (h(Host, null, h("slot", null)));
21 }
22 get el() { return getElement(this); }
23};
24FswSignbox.style = fswSignboxCss;
25
26export { FswSignbox as fsw_signbox };