DocumentCompareSnapshotOptions
interface
Options for makeSnapshot.
Properties
selection?: Iterable<ModelRange, any, any>module:ai/toolkit/documentcompare~DocumentCompareSnapshotOptions#selectionRanges to capture with the snapshot as the user's selection. Must not intersect. By default, no selection is captured.
useDataIds?: booleanmodule:ai/toolkit/documentcompare~DocumentCompareSnapshotOptions#useDataIdsWhether the snapshot content is stamped with
data-idattributes.With
true, every structural element of the serialized data gets adata-idattribute. Later, the comparison uses these IDs to pair the elements of the snapshot and the processed data. The processing must retain the data IDs on the elements that were kept. New elements should not get any ID.With
false, nodata-idis written, and the comparison pairs the elements only by their content similarity instead. Use it when the processing cannot retain the IDs.Defaults to
true