Interface Drag<M>

    A drag behavior: Dragology's DragBehavior, reactive and parametric in the MODEL M (positions are just M = Vec).

    interface Drag<M> {
        at: Read<V>;
        drop: Read<M>;
        gap: Read<number>;
        preview: Read<M>;
    }

    Type Parameters

    • M
    Index

    Properties

    Properties

    at: Read<V>

    Where the dragged handle sits this frame (the renderer floats it here).

    drop: Read<M>

    Model committed on release.

    gap: Read<number>

    Residual |pointer − achievable|; combinators arbitrate on this.

    preview: Read<M>

    Model rendered this frame (non-dragged elements reflow toward this).