This commit is contained in:
lzp
2026-03-30 10:47:00 +08:00
parent da1ca2ec62
commit 0aa4572f60

View File

@@ -22,6 +22,12 @@ fabric.Object.prototype.toObject = function () {
arr.push(...v)
}
})
if (this.fill?.source === null) {
let image = new Image()
image.crossOrigin = 'anonymous'
image.src = this.info?.fill?.source
this.fill.source = image
}
const object = this.toObject_(arr)
if (object.info) {
let lock = !!object.info.lock