@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
28 lines (22 loc) • 911 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
;
Object.defineProperty(exports, '__esModule', { value: true });
const _commonjsHelpers = require('./_commonjsHelpers-9aed4453.js');
const draggabilly = require('./draggabilly-5fa86247.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) {
_commonjsHelpers.registerInstance(this, hostRef);
}
componentDidLoad() {
this.draggie = new draggabilly.draggabilly(this.el);
}
render() {
return (_commonjsHelpers.h(_commonjsHelpers.Host, null, _commonjsHelpers.h("slot", null)));
}
get el() { return _commonjsHelpers.getElement(this); }
};
FswSymbol.style = fswSpatialCss;
exports.fsw_spatial = FswSymbol;