Files
SnowLuma/.pnpm-store/v11/files/ff/41ab0dcba485553a37b5d371d699d8d56d735aa7021c4301eb7f392cabc07c0846965801458d74cf39f7a4538601fe3885bf5735964d0929cc7f99d3f3f5ad
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

25 lines
1.0 KiB
Plaintext

/**
* dd-draggable.ts 12.6.0
* Copyright (c) 2021-2025 Alain Dumesny - see GridStack root license
*/
import { DDBaseImplement, HTMLElementExtendOpt } from './dd-base-impl';
import { GridItemHTMLElement, DDDragOpt } from './types';
type DDDragEvent = 'drag' | 'dragstart' | 'dragstop';
export declare class DDDraggable extends DDBaseImplement implements HTMLElementExtendOpt<DDDragOpt> {
el: GridItemHTMLElement;
option: DDDragOpt;
helper: HTMLElement;
protected _autoScrollContainer?: HTMLElement;
protected _autoScrollMaxSpeed?: number;
constructor(el: GridItemHTMLElement, option?: DDDragOpt);
/** return all handles omitting other nested `.grid-stack-item` children (in case node.subGrid isn't set for some reason) */
protected getAllHandles(): HTMLElement[];
on(event: DDDragEvent, callback: (event: DragEvent) => void): void;
off(event: DDDragEvent): void;
enable(): void;
disable(forDestroy?: boolean): void;
destroy(): void;
updateOption(opts: DDDragOpt): DDDraggable;
}
export {};