feat: improve ocd conflict merge ids

This commit is contained in:
hanshiyang committed 2026-06-03 20:34:42 +08:00
1 parent a946dc7ae8
commit d34d1709ef
6 files changed
+122 -7

No files matched your search

+2 -1
View File
@@ -29,6 +29,7 @@ import {
} from '../../interface/Element'
import { IRow, IRowElement } from '../../interface/Row'
import { deepClone, getUUID, nextTick } from '../../utils'
import { prepareOcdDocumentForSave } from '../../../utils/ocd'
import { Cursor } from '../cursor/Cursor'
import { CanvasEvent } from '../event/CanvasEvent'
import { GlobalEvent } from '../event/GlobalEvent'
@@ -1196,7 +1197,7 @@ export class Draw {
}
return {
version,
data,
data: prepareOcdDocumentForSave(data),
options: deepClone(this.options)
}
}
+2 -1
View File
@@ -8,6 +8,7 @@ import { ICatalog } from '../../interface/Catalog'
import { IEditorResult } from '../../interface/Editor'
import { IGetValueOption } from '../../interface/Draw'
import { deepClone } from '../../utils'
import { prepareOcdDocumentForSave } from '../../../utils/ocd'
export class WorkerManager {
private draw: Draw
@@ -78,7 +79,7 @@ export class WorkerManager {
this.valueWorker.onmessage = evt => {
resolve({
version,
data: evt.data,
data: prepareOcdDocumentForSave(evt.data),
options: deepClone(this.draw.getOptions())
})
}