Commit 35b79680 by zhuzhequan

drParam 参数优化

parent 9f39d741
......@@ -254,12 +254,9 @@ export default {
canvas.className = "createCanvas";
canvas.width = canvasItem.canvasWidth;
canvas.height = canvasItem.canvasHeight;
let objects = canvasItem.options.objects.filter(
(el) => el.type === "image"
);
let list = [];
for (let i in objects) {
list.push(this.drawImage(canvas, canvasItem.list[i]));
for (let listItem of canvasItem.list) {
list.push(this.drawImage(canvas, listItem));
}
await Promise.all(list);
let base = canvas.toDataURL("image/png", 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment