UNPKG

778 BJavaScriptView Raw
1/*!
2 * The Sutton SignWriting Web Components
3 */
4import { r as registerInstance, h, H as Host, g as getElement } from './_commonjsHelpers-383fba37.js';
5import { d as draggabilly } from './draggabilly-b10e2ab0.js';
6
7const 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}";
8
9const FswSymbol = class {
10 constructor(hostRef) {
11 registerInstance(this, hostRef);
12 }
13 componentDidLoad() {
14 this.draggie = new draggabilly(this.el);
15 }
16 render() {
17 return (h(Host, null, h("slot", null)));
18 }
19 get el() { return getElement(this); }
20};
21FswSymbol.style = fswSpatialCss;
22
23export { FswSymbol as fsw_spatial };