Skip to main content

Type Alias: HistoryResetBaseline

HistoryResetBaseline = () => Promise<boolean>

Starts a new undo history at the current standard configuration or modular scene. Use after installing a starter configuration. Earlier undo and redo steps are cleared. Standard reset still restores the initial configuration. During product load, scene load or modular history restore, the call leaves history as it is and resolves to false. For a 3D scene, check observers.status.settled and observers.status.busy before retrying.

Returns​

Promise<boolean>

true when the baseline was set, false when nothing changed because no product is loaded or the product, scene or a history restore is still in progress.

Example​

const started = await window.mimeeqApp.actions.resetHistoryBaseline();
if (!started) console.log('The scene is still loading. Try again when it is ready.');