UNPKG

@sutton-signwriting/sgnw-components

Version:

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

28 lines (23 loc) 803 B
/*! * The Sutton SignWriting Web Components */ 'use strict'; var index = require('./index-bYThyFO7.js'); const fswSignboxCss = () => `.sc-fsw-signbox-h{width:100%;height:100%;border-radius:10px;display:block}`; const FswSignbox = 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: '499a3393a1de94e73fb0d706d30fff0bd968e7b7' }, index.h("slot", { key: '1b64a39957bb4532707a8db11f33daced97b0ed8' }))); } get el() { return index.getElement(this); } }; FswSignbox.style = fswSignboxCss(); exports.fsw_signbox = FswSignbox;