Code Monkey home page Code Monkey logo

doodle-js's People

Contributors

lamberta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doodle-js's Issues

problem building doodle.js

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:inload'
/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:inload_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:inload_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:instandard_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:inload'
/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!

Doodle Library Errors out on iPad

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.

mouse events through hidden sprites

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
    });

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.