Comments (10)
It's a valid issue, if the tool finds no output, it shouldn't fail.
The resolution for now is:
Put the "profiling": "timeline"
in the app/package.json
instead the package.json
.
from timeline-view.
Could you please tell which of the version is running fine? I have tested 0.0.5 & 0.0.6. None of them working. getting the same error
Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The canvas width is 0.
It has been opened since July. is it actively maintained or are there any alternate packages?
from timeline-view.
Sorry, my fault. I've write the line "profiling": "timeline" in the wrong package.json.
from timeline-view.
You can change pixelPerMs to 1 it should work then.
from timeline-view.
I get the same error message in the browser, but the output seems to be in the html page.
The problem is reproducible with NS 3.3:
- tns create TimelineTest --template ng
- cd TimelineTest/
- vi app/package.json and add "profiling": "timeline"
- tns run android | timeline-view
- Ctrl-C after the app has started and open the file in the browser (tested with latest Chrome, FF and Safari)
When running the app, I can see many "Timeline: ..." statements and looking at the html, the variable timeline seems to contain the output.
from timeline-view.
The issue is caused by: https://github.com/PanayotCankov/timeline-view/blob/master/chart.ts#L257
for really small values width is rounded to 0 which causes the error.
from timeline-view.
I'm also facing the same issue
from timeline-view.
@PanayotCankov I see all the outputs in my html page, however, I still get the same error Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The canvas width is 0.
this only happens in some apps, while it works fine in other apps I tried it on.
I tried to change pixelPerMs
but still no luck, any ideas?
from timeline-view.
Bump for this old thread. it is still an issue today. any chance for a fix?
from timeline-view.
are you sure this is what's this question of html2canvas? my quesion is appear in html2canvans
from timeline-view.
Related Issues (4)
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 timeline-view.