@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
31 lines (25 loc) • 860 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const _commonjsHelpers = require('./_commonjsHelpers-9aed4453.js');
const global = require('./global-8a256890.js');
const sgnwSignboxCss = ".sc-sgnw-signbox-h{width:100%;height:100%;border-radius:10px;display:block}";
const SgnwSignbox = class {
constructor(hostRef) {
_commonjsHelpers.registerInstance(this, hostRef);
}
paletteSymbolDropHandler(event) {
const target = event.target;
if (global.overlap(target, this.el)) {
console.log(event.detail);
}
}
render() {
return (_commonjsHelpers.h(_commonjsHelpers.Host, null, _commonjsHelpers.h("slot", null)));
}
get el() { return _commonjsHelpers.getElement(this); }
};
SgnwSignbox.style = sgnwSignboxCss;
exports.sgnw_signbox = SgnwSignbox;