UNPKG

@chief-editor/editor

Version:

FlowEditor Editor

6 lines (5 loc) 504 B
import { EditorBrickGlobal, IBrickDragData } from '@chief-editor/core'; import { IDynamicDraggableOptions } from '@rc-hooks/draggable'; import { CSSProperties, RefObject } from 'react'; export declare type useBrickContainerOptions = Omit<IDynamicDraggableOptions<IBrickDragData>, 'getContainer' | 'getDragType' | 'data' | 'onDragEnd'>; export declare function useBrickContainer(container: RefObject<HTMLElement>, style: CSSProperties, brick: EditorBrickGlobal, options?: useBrickContainerOptions): void;