cojapacze / sketchpad Goto Github PK
View Code? Open in Web Editor NEWSketchpad is fully customisable collaborative whiteboard plugin written in pure JavaScript.
Home Page: https://sketchpad.pro
License: GNU Affero General Public License v3.0
Sketchpad is fully customisable collaborative whiteboard plugin written in pure JavaScript.
Home Page: https://sketchpad.pro
License: GNU Affero General Public License v3.0
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
);
});
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:
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:
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.
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?
Text input is making the grid move.
clearSketchpad() doesn't affect other users.
How can we move single objects rather than viewport..like i just want to move image or text rather than whole viewport
I found it.
document.getElementById('Clean').addEventListener("click", function () {
sketchpad.clearSketchpad();
});
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.