zydx-plus 1.33.391 → 1.33.392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -67,7 +67,7 @@ const clearJson = {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
let editorAPP = null;
|
|
71
71
|
|
|
72
72
|
export default {
|
|
73
73
|
name: "zydx-sketchpad",
|
|
@@ -324,10 +324,14 @@ export default {
|
|
|
324
324
|
}])
|
|
325
325
|
const imageId = createShapeId()
|
|
326
326
|
editorAPP.createShape({
|
|
327
|
+
id: imageId,
|
|
327
328
|
type: 'image',
|
|
328
329
|
x: 200,
|
|
329
330
|
y: 200,
|
|
331
|
+
isLocked: false,
|
|
330
332
|
props: {
|
|
333
|
+
w: img.width,
|
|
334
|
+
h: img.height,
|
|
331
335
|
assetId
|
|
332
336
|
},
|
|
333
337
|
})
|