UNPKG

@sutton-signwriting/sgnw-components

Version:

a javascript package of web components for use with the SignWriting script.

26 lines (22 loc) 830 B
/*! * 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 sgnwSignboxCss = () => `.sc-sgnw-signbox-h{width:100%;height:100%;border-radius:10px;display:block}`; const SgnwSignbox = 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: '25417291dbf92652efeeb276d84966614e555eb9' }, h("slot", { key: '2a39fc75573ba0c826909434dac433869bea9a1a' }))); } get el() { return getElement(this); } }; SgnwSignbox.style = sgnwSignboxCss(); export { SgnwSignbox as sgnw_signbox };