@whittakertech/mosaic / createSnapshot
Function: createSnapshot()
ts
function createSnapshot(root): MosaicSnapshot;Defined in: snapshot.ts:39
Captures a structural snapshot of the current DOM state.
The snapshot is used to guarantee rollback safety if a drop operation is rejected.
Parameters
root
HTMLElement
The root element whose children will be tracked
Returns
A MosaicSnapshot representing DOM structure
Remarks
Snapshots are captured automatically by MosaicJS at drag start. Manual usage is intended for advanced or diagnostic scenarios.