mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Piskel website adaptations :
M CanvasRenderer : can set the color used to represent transparency M app.js : modified code responsible for saving when in website mode M PiskelController.js : just some argument renaming
This commit is contained in:
@ -184,9 +184,13 @@
|
||||
return pskl.utils.Serializer.serializePiskel(this.piskel);
|
||||
};
|
||||
|
||||
ns.PiskelController.prototype.deserialize = function (json) {
|
||||
ns.PiskelController.prototype.load = function (data) {
|
||||
this.deserialize(JSON.stringify(data));
|
||||
};
|
||||
|
||||
ns.PiskelController.prototype.deserialize = function (jsonStr) {
|
||||
try {
|
||||
var piskel = pskl.utils.Serializer.deserializePiskel(json);
|
||||
var piskel = pskl.utils.Serializer.deserializePiskel(jsonStr);
|
||||
this.setPiskel(piskel);
|
||||
} catch (e) {
|
||||
console.error('Failed to deserialize');
|
||||
|
Reference in New Issue
Block a user