Comments (4)
@triniwiz It seems that chart won't get drawn too.
I discovered that putting my code inside a timeout helps canvas draw.
This will never draw:
var ctx = canvas.getContext('2d');
ctx.font = "40px 'Helvetica'";
ctx.fillText ("Hello World", 10, 60);
This will draw:
setTimeout(() => {
var ctx = canvas.getContext('2d');
ctx.font = "40px 'Helvetica'";
ctx.fillText ("Hello World", 10, 60);
}, 0);
Does that give any hints?
from canvas.
You mentioned small context, what is the size of the view ?
from canvas.
You mentioned small context, what is the size of the view ?
It seems it's not about context anymore. Chart also failed to draw but I didn't notice because I also update it using a callback.
No matter what context, nothing gets drawn unless called inside a callback (e.g. setTimeout) like I described above.
It's as if something blocks drawing.
from canvas.
This should not be an issue in v2
from canvas.
Related Issues (20)
- TypeError: Cannot read properties of null (reading 'getContextAttributes') HOT 9
- Trying to create image with no canvas on screen HOT 5
- Error in Android real device
- Strange visualization in iOS
- Points component not working HOT 1
- Line don't apply strokeWidth HOT 2
- Line does not work with paintStyle="fill" HOT 1
- Image don't work HOT 1
- Dom don't work in iOS HOT 4
- TwoPointConicalGradient strange behavior HOT 2
- v2 (beta) breaks my iOS HEADER_SEARCH_PATHS HOT 3
- Not supported for Mac Catalyst
- erroneous log: asdassasds HOT 1
- latest beta crashes after clean on Android HOT 4
- (ios): fill rule 'evenodd' has no effect HOT 4
- (android): canvas content gets drawn out of bounds HOT 3
- canvas-babylon, no interaction possible and no file loading possible HOT 1
- [bug] Canvas content gets reset if app draws with delay
- NPE: Parameter specified as non-null is null: method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvas.