Adjusted how styles work. Made signature canvas bigger.

This commit is contained in:
Saud Fatayerji
2023-05-08 04:23:45 +03:00
parent 1d55ee7f93
commit d58933ea8d
7 changed files with 98 additions and 22 deletions

View File

@@ -66,7 +66,7 @@ const DraggableUtils = {
createdCanvas.classList.add("draggable-canvas");
const x = 0;
const y = 0;
const y = 20;
createdCanvas.style.transform = `translate(${x}px, ${y}px)`;
createdCanvas.setAttribute('data-x', x);
createdCanvas.setAttribute('data-y', y);