@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
24 lines (20 loc) • 900 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
import { r as registerInstance, d as h, H as Host, e as getElement } from './index-BAJUTSOF.js';
import { d as draggabilly } from './draggabilly-gk_3xxae.js';
const fswSpatialCss = () => `.sc-fsw-spatial-h{width:140px;height:140px;background:#F90;border-radius:10px;cursor:move;display:block}.is-pointer-down.sc-fsw-spatial-h{background:#09F}.is-dragging.sc-fsw-spatial-h{opacity:0.7}`;
const FswSymbol = class {
constructor(hostRef) {
registerInstance(this, hostRef);
}
componentDidLoad() {
this.draggie = new draggabilly(this.el);
}
render() {
return (h(Host, { key: '78c3286448f38aca70aff5ff1b9a374a2feea401' }, h("slot", { key: 'a6ccf2542155fb159bad405242bcd437f92c5e73' })));
}
get el() { return getElement(this); }
};
FswSymbol.style = fswSpatialCss();
export { FswSymbol as fsw_spatial };