GithubHelp home page GithubHelp logo

Comments (4)

mkmik avatar mkmik commented on August 16, 2024

Error is:

canvas: an attempt to set strokeStyle or fillStyle to a value that is neither a string, a CanvasGradient, or a CanvasPattern was ignored.

from smoothie.

mkmik avatar mkmik commented on August 16, 2024

The code works if downloaded, the demo on the site is not running on ff4 and ff5 because it's outdated.

from smoothie.

drewnoakes avatar drewnoakes commented on August 16, 2024

That's a very old version of Firefox by today's standards. Closing this issue. Also, the code on the site is now up-to-date.

However it would be good to document somewhere what browser versions this library does support.

from smoothie.

AvenidaGez avatar AvenidaGez commented on August 16, 2024

READ THIS it is very IMPORTANT!!!
It may happen to you this.
If you are using a library like JQuery or so, they do bad thing setting properties
In the case of color, width an other cases when in the chain is obtained by a library
the result is a function not a value, even when you read it as a value
I have inspected objects and they do that

So all you have to do is casting with the value

var b1 = Boolean(“”); //false – empty string

var b2 = Boolean(“hi”); //true – non-empty string

var b3 = Boolean(100); //true – non-zero number

var b4 = Boolean(null); //false - null

var b5 = Boolean(0); //false - zero

var b6 = Boolean(new Object()); //true – object

ctx.fillStyle = String(value);

And that maybe the case with other properties

Example you may check

$(element).width(200);

you read direct

element.width and get 200

but pass to an inspector and see

element.width = function(){return 200}

so when you use in some application

myW = element.width

instead trying to be myW 200 it tries to be =function(){..bla}
the application detects that and says is not valid value

from smoothie.

Related Issues (20)

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.