Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true #99

Open
lieudusty123 opened this issue Oct 11, 2022 · 1 comment

Comments

@lieudusty123
Copy link

I am using react-wordcloud and whenever the size of the container changes it sorts the word cloud to fit the current (70%) screen size.

My console gets spammed by the warning:
Screenshot_2

The link the warning gives:
https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

I tried to use the package's default settings and I still got this warning.

`import ReactWordcloud from "react-wordcloud";
const options = {
colors: ["#FFF7E5", "#F9D3AB", "#f4cc72", "#ffbe2d", "#ffb100"],
enableTooltip: false,
deterministic: true,
fontFamily: "impact",
fontSizes: [40, 80],
fontStyle: "normal",
fontWeight: "normal",
padding: 2,
rotations: 1,
rotationAngles: [0],
scale: "sqrt",
spiral: "archimedean",
transitionDuration: 1000,
};
return(<div
style={{ width: "100%", height: "100%" }}

)`
@mohammad-hormati
Copy link

i have same problem , still not found a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants