Browse Source

fixes customFabric.js example, see #57

pull/64/head
Greg Zanchelli 6 years ago
parent
commit
8a3626a864
  1. 4
      examples/customFabric.js

4
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)}%`, {

Loading…
Cancel
Save