import IDraggableTemplate from "./IDraggableTemplate" /** @typedef {import("../element/IDraggableElement").default} IDraggableElement */ /** * @template {IDraggableElement} T * @extends {IDraggableTemplate} */ export default class IDraggablePositionedTemplate extends IDraggableTemplate { /** @param {Map} changedProperties */ update(changedProperties) { super.update(changedProperties) if (changedProperties.has("locationX")) { this.element.style.left = `${this.element.locationX}px` } if (changedProperties.has("locationY")) { this.element.style.top = `${this.element.locationY}px` } } }