I have a canvas element (square, line, triangle, etc.) I want to move these drawings in canvas within the width and height of the canvas element. There is an example here but the elements here are created manually. I am using the canvas from teledraw.js. And I make drawings with my tools.
example of this question => Drag and Drop Multiple Objects in HTML5 Canvas
the library i use => https://github.com/lakenen/teledraw-canvas