Composition / foldkit-builder

DropAim

const · packages/builder/src/index.ts:71

const DropAim: Schema.Union<
  readonly [
    Schema.TaggedStruct<
      'OverNode',
      {
        readonly id: Schema.brand<
          Schema.NonEmptyString,
          '@foldkit-composition/NodeId'
        >
        readonly zone: Schema.Literals<readonly ['before', 'inside', 'after']>
      }
    >,
    Schema.TaggedStruct<
      'OverRegion',
      {
        readonly id: Schema.brand<
          Schema.NonEmptyString,
          '@foldkit-composition/NodeId'
        >
        readonly region: Schema.String
      }
    >,
    Schema.TaggedStruct<'OverPage', {}>,
    Schema.TaggedStruct<'OverNothing', {}>,
  ]
>

Its type

type DropAim = typeof DropAim.Type

Where the pointer was when it let go: what a DragDropped carries so the drop lands where the pointer ended, not where the last move reported it.