@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
26 lines (22 loc) • 823 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
import { r as registerInstance, o as overlap, d as h, H as Host, e as getElement } from './index-BAJUTSOF.js';
const fswSignboxCss = () => `.sc-fsw-signbox-h{width:100%;height:100%;border-radius:10px;display:block}`;
const FswSignbox = class {
constructor(hostRef) {
registerInstance(this, hostRef);
}
paletteSymbolDropHandler(event) {
const target = event.target;
if (overlap(target, this.el)) {
console.log(event.detail);
}
}
render() {
return (h(Host, { key: '499a3393a1de94e73fb0d706d30fff0bd968e7b7' }, h("slot", { key: '1b64a39957bb4532707a8db11f33daced97b0ed8' })));
}
get el() { return getElement(this); }
};
FswSignbox.style = fswSignboxCss();
export { FswSignbox as fsw_signbox };