import Moveable from "lit-moveable"; import { LitElement, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import { ref, createRef } from "lit/directives/ref.js"; @customElement("lit-app") export default class App extends LitElement { draggable: any = "$preview_draggable"; throttleDrag: any = "$preview_throttleDrag"; edgeDraggable: any = "$preview_edgeDraggable"; startDragRotate: any = "$preview_startDragRotate"; throttleDragRotate: any = "$preview_throttleDragRotate"; keepRatio: any = "$preview_keepRatio"; throttleScale: any = "$preview_throttleScale"; renderDirections: any = "$preview_renderDirections"; rotatable: any = "$preview_rotatable"; throttleRotate: any = "$preview_throttleRotate"; rotationPosition: any = "$preview_rotationPosition"; originDraggable: any = "$preview_originDraggable"; originRelative: any = "$preview_originRelative"; targetRef: Ref = createRef(null); render() { return html `
Target
`; } onDragOrigin(e) { e.target.style.transformOrigin = e.transformOrigin; } onRender(e) { e.target.style.transform = e.transform; } }