@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
26 lines (21 loc) • 894 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
;
var index = require('./index-bYThyFO7.js');
var draggabilly = require('./draggabilly-CwsukaJC.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) {
index.registerInstance(this, hostRef);
}
componentDidLoad() {
this.draggie = new draggabilly.draggabilly(this.el);
}
render() {
return (index.h(index.Host, { key: '78c3286448f38aca70aff5ff1b9a374a2feea401' }, index.h("slot", { key: 'a6ccf2542155fb159bad405242bcd437f92c5e73' })));
}
get el() { return index.getElement(this); }
};
FswSymbol.style = fswSpatialCss();
exports.fsw_spatial = FswSymbol;