@sutton-signwriting/sgnw-components
Version:
a javascript package of web components for use with the SignWriting script.
25 lines (24 loc) • 608 B
JavaScript
/*!
* The Sutton SignWriting Web Components
*/
//
import { Component, Element, Host, h } from '@stencil/core';
import draggabilly from 'draggabilly';
export class FswSymbol {
componentDidLoad() {
this.draggie = new draggabilly(this.el);
}
render() {
return (h(Host, null,
h("slot", null)));
}
static get is() { return "fsw-spatial"; }
static get encapsulation() { return "scoped"; }
static get originalStyleUrls() { return {
"$": ["fsw-spatial.css"]
}; }
static get styleUrls() { return {
"$": ["fsw-spatial.css"]
}; }
static get elementRef() { return "el"; }
}