# Interface: RectifyModes

[Mobile Document Scanner API Reference](../index.md) / RectifyModes

# Interface: RectifyModes

Defined in: [src/settings/settings.ts:294](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L294)

The two modes of the rectify screen. If both modes are `false`, the rectify phase
is off, as with [phases.rectify](PhaseSettings.md#rectify) set to `false`.

## Properties

### afterCapture?

> `optional` **afterCapture?**: `false` \| [`RectifyModeSettings`](RectifyModeSettings.md)\<[`AfterCaptureButton`](../type-aliases/AfterCaptureButton.md)\>

Defined in: [src/settings/settings.ts:299](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L299)

The mode after each capture, in which the user accepts or changes the boundary
of the new page.

***

### fromEdit?

> `optional` **fromEdit?**: `false` \| [`RectifyModeSettings`](RectifyModeSettings.md)\<[`FromEditButton`](../type-aliases/FromEditButton.md)\>

Defined in: [src/settings/settings.ts:301](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/settings/settings.ts#L301)

The mode that the edit screen opens, for its current page.
