Giter Club home page Giter Club logo

Comments (10)

PanayotCankov avatar PanayotCankov commented on September 20, 2024 4

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.

mrazahasan avatar mrazahasan commented on September 20, 2024 3

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.

codeback avatar codeback commented on September 20, 2024 1

Sorry, my fault. I've write the line "profiling": "timeline" in the wrong package.json.

from timeline-view.

HunterJS-bit avatar HunterJS-bit commented on September 20, 2024 1

You can change pixelPerMs to 1 it should work then.

from timeline-view.

dbenninger avatar dbenninger commented on September 20, 2024

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:

  1. tns create TimelineTest --template ng
  2. cd TimelineTest/
  3. vi app/package.json and add "profiling": "timeline"
  4. tns run android | timeline-view
  5. 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.

Buuhuu avatar Buuhuu commented on September 20, 2024

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.

aboganas avatar aboganas commented on September 20, 2024

I'm also facing the same issue

from timeline-view.

aboganas avatar aboganas commented on September 20, 2024

@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.

mm-psymbl avatar mm-psymbl commented on September 20, 2024

Bump for this old thread. it is still an issue today. any chance for a fix?

from timeline-view.

CoolHenry avatar CoolHenry commented on September 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.