@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
28 lines (23 loc) • 810 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
;
var index = require('./index-bYThyFO7.js');
const sgnwSignboxCss = () => `.sc-sgnw-signbox-h{width:100%;height:100%;border-radius:10px;display:block}`;
const SgnwSignbox = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
}
paletteSymbolDropHandler(event) {
const target = event.target;
if (index.overlap(target, this.el)) {
console.log(event.detail);
}
}
render() {
return (index.h(index.Host, { key: '25417291dbf92652efeeb276d84966614e555eb9' }, index.h("slot", { key: '2a39fc75573ba0c826909434dac433869bea9a1a' })));
}
get el() { return index.getElement(this); }
};
SgnwSignbox.style = sgnwSignboxCss();
exports.sgnw_signbox = SgnwSignbox;