muaz-khan / Canvas-Designer

Collaborative, extendable, JavaScript Canvas2D drawing tool, supports dozens of builtin tools, as well as generates JavaScript code for 2D animations.

Home Page:https://www.webrtc-experiment.com/Canvas-Designer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can i customize my icon

NgocAnPham opened this issue · comments

can i customize my icon (pencil, eraser,... ) ? and where i can do this

how i can change your icon images by mine image? your icon look so basic :))

hi have you managed to customize the icons @NgocAnPham

commented

Please fix widget.min.js,as follow:
function decoratePencil() {//铅笔 var context = getContext("pencil-icon"), image = new Image; image.onload = function() { context.drawImage(image, 0, 0, 40, 40), bindEvent(context, "Pencil") }, image.src = "/static/img/pencil.png"; }

_20171218112540

How can we use font-awesome to replace icons?

Can anyone here change the ICON of this canvas? Please help

have you managed to customize the icons @ph4t0o0o0om ?????

@LucasHimelfarb You can open following URL on your mobile device and it will/should work:

Default demo doesn't works because this project is currently using iframes. IFrames doesn't seems to listen for touch events correctly.

Need to directly inject HTML on target websites. It will fix touch issues. It is in my todo list and I'm planning to work on it soon.

Regarding two-peer-draw-at-same-time, it is gonna be tricky to fix it. Nee to use object i.e. {key:value} rather than arrays where key is a unique identifier of the drawing same contains all required information draw shape on valid order. It will fix all sycing issues. Need to work on it as well, however lets fix mobile touch issues first.

Regarding responsive canvas, injecting HTML on target website will fix this issue as well. We need to move away from iframes.