Function useDrag

  • Parameters

    • args: any = ...

    Returns {
        clearGhostElement: (() => void);
        endDrag: (() => void);
        getCache: (() => any);
        getGhostElement: (() => any);
        getNextIndent: ((__namedParameters) => any);
        getNextOutdent: ((__namedParameters) => any);
        getStaticState: (() => any);
        hasCustomGhostElement: (() => boolean);
        indent: (() => void);
        onMouseDown: ((e) => void);
        onMouseUp: ((e) => void);
        outdent: (() => void);
        setCustomGhostElement: ((html?) => void);
        setCustomGhostElementRotation: ((rotation?) => void);
        setGhostElement: ((html?) => void);
        startDrag: (() => void);
    }

    • clearGhostElement: (() => void)
        • (): void
        • Returns void

    • endDrag: (() => void)
        • (): void
        • Returns void

    • getCache: (() => any)
        • (): any
        • Returns any

    • getGhostElement: (() => any)
        • (): any
        • Returns any

    • getNextIndent: ((__namedParameters) => any)
        • (__namedParameters): any
        • Parameters

          • __namedParameters: Object

          Returns any

    • getNextOutdent: ((__namedParameters) => any)
        • (__namedParameters): any
        • Parameters

          • __namedParameters: Object

          Returns any

    • getStaticState: (() => any)
        • (): any
        • Returns any

    • hasCustomGhostElement: (() => boolean)
        • (): boolean
        • Returns boolean

    • indent: (() => void)
        • (): void
        • Returns void

    • onMouseDown: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    • onMouseUp: ((e) => void)
        • (e): void
        • Parameters

          • e: any

          Returns void

    • outdent: (() => void)
        • (): void
        • Returns void

    • setCustomGhostElement: ((html?) => void)
        • (html?): void
        • Parameters

          • html: string = null

          Returns void

    • setCustomGhostElementRotation: ((rotation?) => void)
        • (rotation?): void
        • Parameters

          • rotation: string = '2deg'

          Returns void

    • setGhostElement: ((html?) => void)
        • (html?): void
        • Parameters

          • html: string = null

          Returns void

    • startDrag: (() => void)
        • (): void
        • Returns void

Generated using TypeDoc