/** * additional import for TypeScript * @import { Draggable } from "./draggable.js"; */ /** * a base drop target object * @see Draggable */ export class DropTarget extends Renderable { /** * constant for the overlaps method * @constant * @type {string} * @name CHECKMETHOD_OVERLAP */ CHECKMETHOD_OVERLAP: string; /** * constant for the contains method * @constant * @type {string} * @name CHECKMETHOD_CONTAINS */ CHECKMETHOD_CONTAINS: string; /** * the checkmethod we want to use * @constant * @type {string} * @name checkMethod * @default "CHECKMETHOD_OVERLAP" */ checkMethod: string; removeDragEndListener: () => void; /** * Sets the collision method which is going to be used to check a valid drop * @param {string} checkMethod - the checkmethod (defaults to CHECKMETHOD_OVERLAP) */ setCheckMethod(checkMethod: string): void; /** * Checks if a dropped entity is dropped on the current entity * @param {object} e - the triggering event * @param {Draggable} draggable - the draggable object that is dropped */ checkOnMe(e: object, draggable: Draggable): void; /** * Gets called when a draggable entity is dropped on the current entity * @param {Draggable} draggable - the draggable object that is dropped */ drop(): void; /** * Destructor * @ignore */ destroy(): void; } import Renderable from "./../renderable/renderable.js"; import type { Draggable } from "./draggable.js"; //# sourceMappingURL=dragndrop.d.ts.map