Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Fix useBgImage - #141

Open
mitjana wants to merge 2 commits into
embiem:developfrom
mitjana:develop
Open

mitjana wants to merge 2 commits into
embiem:developfrom
mitjana:develop

Conversation

@mitjana

@mitjana mitjana commented May 5, 2022

Copy link
Copy Markdown

The function called was not the right one

@mitjana mitjana changed the title Fix getBackgroundImage Fix useBgImage May 5, 2022
@kandabi

kandabi commented May 30, 2022

Copy link
Copy Markdown

I get this error trying to use this patch for getDataURL.
The image seems to be empty, can you give an example on how you initialize & use getDataUrl?

Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(CSSImageValue or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or OffscreenCanvas or SVGImageElement or VideoFrame)'. at drawImageProp (drawImage.js:59:1) at CanvasDraw.getDataURL (index.js:124:1) at handleMouseOut (drawable-canvas.tsx:26:1)

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants