Home > @theatre/studio > IScrub

IScrub interface


export interface IScrub 


Method Description
capture(fn) Captures operations for the scrub.Note that running scrub.capture() multiple times means all the older calls of scrub.capture() will be reset.
commit() Commits the scrub and creates a single undo level.
discard() Clearts the ops of the scrub and destroys it. After calling this, you won't be able to call scrub.capture() anymore.
reset() Clears all the ops in the scrub, but keeps the scrub open so you can call scrub.capture() again.