GithubHelp home page GithubHelp logo

ianli / raphael-sketchpad Goto Github PK

View Code? Open in Web Editor NEW
250.0 250.0 70.0 150 KB

A simple drawing editor that you can easily include with your forms

Home Page: http://ianli.github.io/raphael-sketchpad/

JavaScript 92.35% HTML 4.50% Shell 0.01% CSS 3.14%

raphael-sketchpad's People

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  avatar  avatar  avatar  avatar  avatar

raphael-sketchpad's Issues

"erase" does not fire editor.change

sketchpad_editor.change(function() {
$("#input1").val(sketchpad_editor.json());
});
This doesn't get fired when sketchpad_editor.editing("erase"); is used
so saving a drawing is not possible if bits have been erased!

otherwise a great tool :)

Is the demo page still working?

I was browsing the repo and the https://ianli.github.io/raphael-sketchpad/ to try out, but I can't seem to draw any strokes (in any browser that I tried which include Firefox, Brave, Chrome).

Does anyone know why? Not sure that OP is still watching this repository.

I have based my app, which is slightly different on the Raphael Sketchpad code, but it's still working: https://github.com/raluca-san/IAT-image-annotation-website. You can try out the demo on the https://iat-image--annotation-website.herokuapp.com/. The only difference is that "a canvas" image needs to be loaded before you can start drawing.

Scale

I would like to get scale. It is necessary when you resize the layer.
Thank you!

Support for iPad

I would like to suggest support for ipad. Currently I have to modify the library to include checking for the ipad to get it to work. Its exactly like checking for the iPod.
Change the lines that include:
agent.indexOf("iPhone") > 0 || agent.indexOf("iPod") > 0
to
agent.indexOf("iPhone") > 0 || agent.indexOf("iPod") > 0 || agent.indexOf("iPad") > 0

this should enable the functionality on the iPad as well.

Thanks,
Ben

Initial movement

The first time the mouse is clicked and dragged, the path is dragged to a point (0,y), where y is some random point y. This renders the application unusable, as all sketches are destroyed by the distortion.

Bug in view mode: removes inline style

Line 296:
$(_container).attr("style", "cursor:default");
this overwrites completely the inline style
so please change it to
$(_container).css("cursor", "default");

greetings erik

Doesn't work in jQuery.noConflict mode

If jQuery is in no conflict mode raphael-sketchpad breaks on line 81

// The HTML element that contains the canvas.
var _container = $(_canvas).parent();

change fired repeatedly after first line is drawn

im building a whiteboard with node.js and socket.io, but the sketchpad is continuously firing the change event, and bogging down the server, how can i limit the number of times it updates to avoid this?

Does not work under Chrome for Android (4.4.4)?

Has this been tested under Chrome for Android (Android 4.4.4)? On my Nexus 5 I am unable to draw anything within the SketchPad. It just scrolls the whole site instead.

It works fine on the iPhone though for example.

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.