Skip to main content
⚠️ Archived Version

You are viewing documentation for Design Editor version 7.2, which is no longer actively maintained. For the latest features and updates, please refer to the current version (7.3).

Interface: ISetMockupOptions

A structure defining options for managing history and surface size when changing mockups.

Remarks

Product.setMockups uses this structure.

Example

options: {
updateRevertData: false,
addToHistory: false,
updateSurfaceSize: true,
resetHistory: true
}

Properties

updateRevertData?

optional updateRevertData?: boolean

If true, the new mockup is stored as one to restore when the product is reverted. Otherwise, the previously stored mockup is restored on a product revert. The default value is true.


addToHistory?

optional addToHistory?: boolean

If true, adds a new user action to the history to allow your users to revert new mockups by using the Undo button. If false, will not add a single action to the history, because of that the mockup can be reverted together with the following user action. The default value is true.


updateSurfaceSize?

optional updateSurfaceSize?: boolean

If true, changes the surface size to match the new mockup. If false, the surface size remains unchanged. The default value is false.


resetHistory?

optional resetHistory?: boolean

If true, resets the history of user actions after changing the mockups. The default value is false.

Was this page helpful?