Added file option to import image to current layer

This commit is contained in:
NSSure
2022-10-21 03:52:55 -04:00
parent 14d5048756
commit 02806c7efa
10 changed files with 111 additions and 1 deletions

View File

@ -130,4 +130,8 @@ class Util {
static cursorInCanvas(canvasSize, mousePos) {
return mousePos[0] >= 0 && mousePos[1] >= 0 && canvasSize[0] > mousePos[0] && canvasSize[1] > mousePos[1];
}
static getFileExtension(fileName) {
return (fileName.substring(fileName.lastIndexOf('.')+1, fileName.length) || fileName).toLowerCase();
}
}