mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixing unnecessary whitespace changes
- My editor added additional whitespace to several unchanged lines, so I just reverted them
This commit is contained in:
@@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
// FIXME : We remove the onload callback here because JsGif will insert
|
// FIXME : We remove the onload callback here because JsGif will insert
|
||||||
// the image again and we want to avoid retriggering the image onload
|
// the image again and we want to avoid retriggering the image onload
|
||||||
this.importedImage_.onload = function () { };
|
this.importedImage_.onload = function () {};
|
||||||
|
|
||||||
var fileName = this.extractFileNameFromPath_(this.file_.name);
|
var fileName = this.extractFileNameFromPath_(this.file_.name);
|
||||||
this.fileNameContainer.html(fileName);
|
this.fileNameContainer.html(fileName);
|
||||||
@@ -126,18 +126,18 @@
|
|||||||
if (image) {
|
if (image) {
|
||||||
if (window.confirm('You are about to create a new Piskel, unsaved changes will be lost.')) {
|
if (window.confirm('You are about to create a new Piskel, unsaved changes will be lost.')) {
|
||||||
var gifLoader = new window.SuperGif({
|
var gifLoader = new window.SuperGif({
|
||||||
gif: image
|
gif : image
|
||||||
});
|
});
|
||||||
|
|
||||||
gifLoader.load({
|
gifLoader.load({
|
||||||
success: function () {
|
success : function () {
|
||||||
var images = gifLoader.getFrames().map(function (frame) {
|
var images = gifLoader.getFrames().map(function (frame) {
|
||||||
return pskl.utils.CanvasUtils.createFromImageData(frame.data);
|
return pskl.utils.CanvasUtils.createFromImageData(frame.data);
|
||||||
});
|
});
|
||||||
this.createPiskelFromImages_(images);
|
this.createPiskelFromImages_(images);
|
||||||
this.closeDialog();
|
this.closeDialog();
|
||||||
}.bind(this),
|
}.bind(this),
|
||||||
error: function () {
|
error : function () {
|
||||||
var images = pskl.utils.CanvasUtils.createFramesFromImage(
|
var images = pskl.utils.CanvasUtils.createFramesFromImage(
|
||||||
image,
|
image,
|
||||||
this.frameCountX.val(),
|
this.frameCountX.val(),
|
||||||
|
|||||||
@@ -14,17 +14,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="import-section">
|
<div class="import-section">
|
||||||
<span class="dialog-section-title">Size :</span>
|
<span class="dialog-section-title">Size :</span>
|
||||||
<input type="text" class="textfield import-size-field" name="resize-width" />x
|
<input type="text" class="textfield import-size-field" name="resize-width"/>x
|
||||||
<input type="text" class="textfield import-size-field" name="resize-height" />
|
<input type="text" class="textfield import-size-field" name="resize-height"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="import-section">
|
<div class="import-section">
|
||||||
<span class="dialog-section-title">Frames :</span>
|
<span class="dialog-section-title">Frames :</span>
|
||||||
<input type="text" class="textfield import-size-field" name="frame-count-x" />x
|
<input type="text" class="textfield import-size-field" name="frame-count-x"/>x
|
||||||
<input type="text" class="textfield import-size-field" name="frame-count-y" />
|
<input type="text" class="textfield import-size-field" name="frame-count-y"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="import-section">
|
<div class="import-section">
|
||||||
<span class="import-section-title">Smooth resize :</span>
|
<span class="import-section-title">Smooth resize :</span>
|
||||||
<input type="checkbox" checked="checked" name="smooth-resize-checkbox" value="1" />
|
<input type="checkbox" checked="checked" name="smooth-resize-checkbox" value="1"/>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" name="import-submit" class="button button-primary import-button" value="Import" />
|
<input type="submit" name="import-submit" class="button button-primary import-button" value="Import" />
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user