SheetXL - v1.0.2
    Preparing search index...

    Interface MovableGestureHost

    What the layer lets a content's own control do: run a gesture of its own through the layer's preview and commit loop, so it is drawn, cancelled and undone as a move or resize is.

    interface MovableGestureHost {
        cancel(): void;
        finish(): void;
        preview(preview: MovablePreview): void;
        start(description: string, onCommit?: (movable: IMovable) => void): boolean;
    }
    Index
    • Drops the gesture with nothing written.

      Returns void

    • Commits what was previewed.

      Returns void

    • Draws the movable at a placement (absolute px) until the gesture ends.

      Parameters

      Returns void

    • Starts a gesture on the control's movable: the layer snapshots it and readies one commit. onCommit runs on the movable inside that commit, after the previewed placement is written. Returns false when the layer refuses gestures.

      Parameters

      • description: string
      • OptionalonCommit: (movable: IMovable) => void

      Returns boolean