mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Adding loadFramesheet entrypoint for importing pictures
This commit is contained in:
parent
d909cec19d
commit
e91f1fc74b
@ -153,6 +153,10 @@
|
||||
xhr.send();
|
||||
},
|
||||
|
||||
loadFramesheet : function (framesheet) {
|
||||
frameSheet.load(framesheet);
|
||||
},
|
||||
|
||||
getFirstFrameAsPNGData_ : function () {
|
||||
var tmpSheet = new pskl.model.FrameSheet(frameSheet.getHeight(), frameSheet.getWidth());
|
||||
tmpSheet.addFrame(frameSheet.getFrameByIndex(0));
|
||||
|
Loading…
Reference in New Issue
Block a user