GithubHelp home page GithubHelp logo

cojapacze / sketchpad Goto Github PK

View Code? Open in Web Editor NEW
151.0 7.0 37.0 1.37 MB

Sketchpad is fully customisable collaborative whiteboard plugin written in pure JavaScript.

Home Page: https://sketchpad.pro

License: GNU Affero General Public License v3.0

JavaScript 99.84% Dockerfile 0.16%
drawing canvas whiteboard javascript editor sketchpad cdn draw history websocket

sketchpad's People

Contributors

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

sketchpad's Issues

Unable to save (Screenshot)

When I click on the screenshot button from tool menu it shows.

sketchpad.js:4096 Uncaught DOMException: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state.
at Sketchpad.renderOutputCanvas (http://127.0.0.1:5500/demos/libs/sketchpad.js:4096:23)
at Sketchpad.screenshot (http://127.0.0.1:5500/demos/libs/sketchpad.js:4103:33)
at HTMLDivElement. (http://127.0.0.1:5500/demos/js/advanced.js:181:17)

Here is the code of screenshot

//screenshot
  document
    .getElementById('tool-screenshot')
    .addEventListener('click', function () {
      sketchpad.screenshot(
        function (blob) {
          saveFile(blob, sketchpad.room.room_token + '.png', 'image/png');
        },
        'image/png',
        1
      );
    });

Upload Image feature

Hi there,

Thanks for your great product, I am using it to embed whiteboard to our site and it is working great.

There is a small problem, in the online drawing page (https://sketchpad.pro/B25E53E0B13653F667F:z6y9x2pn), I see an upload image feature and it is working fine on this page:
image

But in demo advanced page (https://developers.sketchpad.pro/advanced.html), the upload feature seems only work on json file and do not accept images/pdf files.

I took a look at the source code and here are what I found on demos/js/advanced.js:
image

Can you please tell me how to edit these lines so I can upload the images/pdf files to the whiteboard (working the same way with online drawing page).

Thanks.

Cannot compile app to work

I have small problem when using library - i mean, gulp works perfectly, but then due to some tools error (cannot find and null pointers when accessing them) the sketchpad is never initialized - and this only happenes with the version from git.
Tried to used the sketchpad.js file from the website and it worked - but its much different than the version built by gulp form this git archive. Is there anyway to make the git version actual or get some information about commercial version of spetchpad?

Drag Single Object

How can we move single objects rather than viewport..like i just want to move image or text rather than whole viewport

clear all the canvas

I found it.

document.getElementById('Clean').addEventListener("click", function () {
        sketchpad.clearSketchpad();
    });

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.