UNPKG

@sutton-signwriting/sgnw-components

Version:

a javascript package of web components for use with the SignWriting script.

4 lines 939 B
/*! * The Sutton SignWriting Web Components */ import{proxyCustomElement as s,HTMLElement as t,h as e,Host as a,transformTag as i}from"@stencil/core/internal/client";import{d as r}from"./draggabilly.js";const c=s(class extends t{constructor(s){super(),!1!==s&&this.__registerHost()}componentDidLoad(){this.draggie=new r(this.el)}render(){return e(a,{key:"78c3286448f38aca70aff5ff1b9a374a2feea401"},e("slot",{key:"a6ccf2542155fb159bad405242bcd437f92c5e73"}))}get el(){return this}static get style(){return".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}"}},[262,"fsw-spatial"]),o=c,n=function(){"undefined"!=typeof customElements&&["fsw-spatial"].forEach((s=>{"fsw-spatial"===s&&(customElements.get(i(s))||customElements.define(i(s),c))}))};export{o as FswSpatial,n as defineCustomElement}