From 8a3626a864b22ef1bd8485c71859dfb634690cd5 Mon Sep 17 00:00:00 2001 From: Greg Zanchelli Date: Fri, 28 Aug 2020 21:25:56 -0400 Subject: [PATCH] fixes customFabric.js example, see #57 --- examples/customFabric.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/customFabric.js b/examples/customFabric.js index b92046f..07a53b6 100644 --- a/examples/customFabric.js +++ b/examples/customFabric.js @@ -2,8 +2,8 @@ const editly = require('..'); /* eslint-disable spaced-comment,no-param-reassign */ -async function func({ width, height, fabric, canvas }) { - async function onRender(progress) { +async function func({ width, height, fabric }) { + async function onRender(progress, canvas) { canvas.backgroundColor = 'hsl(33, 100%, 50%)'; const text = new fabric.Text(`PROGRESS\n${Math.floor(progress * 100)}%`, {