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

Fix useBgImage #141

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

Fix useBgImage #141

wants to merge 2 commits into from

Conversation

mitjana
Copy link

@mitjana mitjana commented May 5, 2022

The function called was not the right one

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

kandabi commented May 30, 2022

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)

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