@witchcraft/editor
    Preparing search index...
    • Calculates the position and type of the drop indicator based on the pointer coordinates and the target element's bounding rectangle.

      Parameters

      • dropInfo: DropInfo

        The drop point information object.

      • targetRect: DOMRect

        The bounding rectangle of the element being dragged over. It will be used for positioning the indicator and constraining it's width (target.x < indicator < target.right).

      • indentX: number

        Determines the additional indentation to add when indicating a child drop operation. You normally want this to be the indentation of the dragged item.

        Can be gotten with getElPropertyAsInt, see it for details.

      • maxWidth: number

        Maximum width of the drop indicator. See getElMaxVisualSize.

      Returns DropIndicator | undefined