lamberta / doodle-js Goto Github PK
View Code? Open in Web Editor NEWA JavaScript animation library for HTML5 Canvas.
License: Other
A JavaScript animation library for HTML5 Canvas.
License: Other
If you position a hidden circle over a visible circle the event on the visible circle will not get triggered.
var radius = 20;
var display = doodle.createDisplay('#display', {width:600, height:600});
var layer0 = display.createLayer();
// target circle
var sprite = doodle.createSprite();
sprite.graphics.lineStyle(0, 0x000000, 0);
sprite.graphics.beginFill(0x22ff55);
sprite.graphics.circle(0, 0, radius);
sprite.graphics.endFill();
sprite.x = 200;
sprite.y = 200;
layer0.addChild(sprite);
// flash circle
var circleFlash = doodle.createSprite();
circleFlash.graphics.lineStyle(0, 0x000000, 0);
circleFlash.graphics.beginFill(0xffffff);
circleFlash.graphics.circle(0, 0, radius * 2);
circleFlash.graphics.endFill();
circleFlash.x = sprite.x;
circleFlash.y = sprite.y;
circleFlash.visible = false;
layer0.addChild(circleFlash);
// sprite click event
sprite.on(doodle.events.MouseEvent.CLICK, function (event) {
console.info( 'click'); // will not execute if flash circle is hidden over top of the sprite circle
});
Hi,
I'm new to ruby, so i'm not sure where the problem lies. When i try to build doodle.js, i get this:
[javascript/doodle.js]$ /var/lib/gems/1.8/bin/rake build --trace
(in /home/jason/sources/javascript/doodle.js)
rake aborted!
undefined method path' for File:Class /home/jason/sources/javascript/doodle.js/Rakefile:3 /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
load'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in raw_load_rakefile' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in
load_rakefile'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in
load_rakefile'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in run' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31 /var/lib/gems/1.8/bin/rake:19:in
load'
/var/lib/gems/1.8/bin/rake:19
If i try to call File.path in irb, i also get the same error:
[javascript/doodle.js]$ irb
irb(main):001:0> File.path
NoMethodError: undefined method `path' for File:Class
from (irb):1
If there is any help you can provide, it would be much appreciated!
The doodle library will error out on the iPad.
Running the console on the iPad simulator I get the following - " "Result of expression 'Object.defineProperties'[undefined] is not a function."
This happens anytime the library is called.
This issue does not occur on other iOS devices - iPhone and iPhone 4.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.