Skip to content

Instantly share code, notes, and snippets.

View Pawan-Bishnoi's full-sized avatar

Pawan Bishnoi Pawan-Bishnoi

  • India
View GitHub Profile
@whatAboutJohn
whatAboutJohn / canvas_mousemove_path.js
Created September 26, 2015 07:29
Capture the Path on mousemove.
'mouse:move': function(event) {
if (mouse_down_status) {
var grouped_path = [];
var points = canvas.freeDrawingBrush.convertPointsToSVGPath(canvas.freeDrawingBrush._points);
points = points.filter(function(n){ return n != ' ' });
points.map(function(e, i) {
if (typeof points[i] == 'string') {
points[i] = points[i].replace(/ /g,'');
}
});