This commit is contained in:
Josh Soref
2021-10-03 01:53:14 -04:00
committed by GitHub
16 changed files with 20 additions and 20 deletions

View File

@ -84,7 +84,7 @@ module.exports = function(grunt) {
files: [ files: [
// Includes // Includes
'src/js/**/*.js', 'src/js/**/*.js',
// Exludes // Excludes
// TODO: remove this (for now we still get warnings from the lib folder) // TODO: remove this (for now we still get warnings from the lib folder)
'!src/js/**/lib/**/*.js' '!src/js/**/lib/**/*.js'
], ],

View File

@ -103,7 +103,7 @@
color: white; color: white;
} }
.cheatsheet-shorcut-conflict .cheatsheet-key { .cheatsheet-shortcut-conflict .cheatsheet-key {
border-color: red; border-color: red;
color: red; color: red;
} }

View File

@ -25,7 +25,7 @@
} }
.toolbox-buttons .button { .toolbox-buttons .button {
/* Override border propery on .button elements from form.css */ /* Override border property on .button elements from form.css */
border-style: solid; border-style: solid;
border-color: #333; border-color: #333;
border-width: 0 1px 0 0; border-width: 0 1px 0 0;

View File

@ -71,16 +71,16 @@
var scrollerHeight = scroller.offsetHeight; var scrollerHeight = scroller.offsetHeight;
var scrollTop = scroller.scrollTop; var scrollTop = scroller.scrollTop;
var scrollerContentHeight = this.previewList.offsetHeight; var scrollerContentHeight = this.previewList.offsetHeight;
var treshold = this.container.querySelector('.top-overflow').offsetHeight; var threshold = this.container.querySelector('.top-overflow').offsetHeight;
var overflowTop = false; var overflowTop = false;
var overflowBottom = false; var overflowBottom = false;
if (scrollerHeight < scrollerContentHeight) { if (scrollerHeight < scrollerContentHeight) {
if (scrollTop > treshold) { if (scrollTop > threshold) {
overflowTop = true; overflowTop = true;
} }
var scrollBottom = (scrollerContentHeight - scrollTop) - scrollerHeight; var scrollBottom = (scrollerContentHeight - scrollTop) - scrollerHeight;
if (scrollBottom > treshold) { if (scrollBottom > threshold) {
overflowBottom = true; overflowBottom = true;
} }
} }

View File

@ -5,7 +5,7 @@
if (piskel) { if (piskel) {
this.setPiskel(piskel); this.setPiskel(piskel);
} else { } else {
throw 'A piskel instance is mandatory for instanciating PiskelController'; throw 'A piskel instance is mandatory for instantiating PiskelController';
} }
}; };

View File

@ -52,7 +52,7 @@
}; };
/** /**
* Initalize all controls related to the spritesheet layout. * Initialize all controls related to the spritesheet layout.
*/ */
ns.PngExportController.prototype.initLayoutSection_ = function () { ns.PngExportController.prototype.initLayoutSection_ = function () {
var frames = this.piskelController.getFrameCount(); var frames = this.piskelController.getFrameCount();
@ -107,7 +107,7 @@
}; };
/** /**
* Synchronise column and row inputs, called everytime a user input updates one of the * Synchronise column and row inputs, called every time a user input updates one of the
* two inputs by the SynchronizedInputs widget. * two inputs by the SynchronizedInputs widget.
*/ */
ns.PngExportController.prototype.onColumnsInput_ = function () { ns.PngExportController.prototype.onColumnsInput_ = function () {

View File

@ -84,7 +84,7 @@
}); });
cursor.continue(); cursor.continue();
} else { } else {
// Cursor consumed all availabled piskels // Cursor consumed all available piskels
deferred.resolve(piskels); deferred.resolve(piskels);
} }
}; };

View File

@ -8,7 +8,7 @@
ns.Shortcuts = { ns.Shortcuts = {
/** /**
* List of keys that cannot be remapped. Either alternate keys, which are not displayed. * List of keys that cannot be remapped. Either alternate keys, which are not displayed.
* Or really custom shortcuts such as the 1-9 for color palette shorctus * Or really custom shortcuts such as the 1-9 for color palette shortcuts
*/ */
FORBIDDEN_KEYS : ['1', '2', '3', '4', '5', '6', '7', '8', '9', '?', 'shift+?', FORBIDDEN_KEYS : ['1', '2', '3', '4', '5', '6', '7', '8', '9', '?', 'shift+?',
'DEL', 'BACK', 'ENTER', 'ctrl+Y', 'ctrl+shift+Z'], 'DEL', 'BACK', 'ENTER', 'ctrl+Y', 'ctrl+shift+Z'],

View File

@ -24,7 +24,7 @@
/** /**
* The move tool id is used by the ToolController and the BaseSelect and needs to be * The move tool id is used by the ToolController and the BaseSelect and needs to be
* easliy accessible * easily accessible
*/ */
ns.Move.TOOL_ID = 'tool-move'; ns.Move.TOOL_ID = 'tool-move';

View File

@ -84,7 +84,7 @@
/** /**
* If we mouseover the selection draw inside the overlay frame, show the 'move' cursor * If we mouseover the selection draw inside the overlay frame, show the 'move' cursor
* instead of the 'select' one. It indicates that we can move the selection by dragndroping it. * instead of the 'select' one. It indicates that we can move the selection by dragndropping it.
* @override * @override
*/ */
ns.BaseSelect.prototype.moveUnactiveToolAt = function(col, row, frame, overlay, event) { ns.BaseSelect.prototype.moveUnactiveToolAt = function(col, row, frame, overlay, event) {

View File

@ -8,7 +8,7 @@
* @param {Object} options * @param {Object} options
* - width {Number} target width after the resize * - width {Number} target width after the resize
* - height {Number} target height after the resize * - height {Number} target height after the resize
* - resizeContent {Booleam} true of the sprite content should be resized * - resizeContent {Boolean} true of the sprite content should be resized
* - origin {String} should be a valid AnchorWidget origin * - origin {String} should be a valid AnchorWidget origin
* @return {Piskel} The resized piskel * @return {Piskel} The resized piskel
*/ */

View File

@ -100,7 +100,7 @@
}; };
/** /**
* Backward comptibility only. Create a chunk for layerData objects that only contain * Backward compatibility only. Create a chunk for layerData objects that only contain
* an single base64PNG without chunk/layout information. * an single base64PNG without chunk/layout information.
*/ */
ns.Deserializer.prototype.normalizeLayerData_ = function (layerData) { ns.Deserializer.prototype.normalizeLayerData_ = function (layerData) {

View File

@ -12,7 +12,7 @@
ns.Tabs.prototype.init = function (container) { ns.Tabs.prototype.init = function (container) {
this.tabListEl = container.querySelector('.tab-list'); this.tabListEl = container.querySelector('.tab-list');
this.tabContentlEl = container.querySelector('.tab-content'); this.tabContentEl = container.querySelector('.tab-content');
pskl.utils.Event.addEventListener(this.tabListEl, 'click', this.onTabsClicked_, this); pskl.utils.Event.addEventListener(this.tabListEl, 'click', this.onTabsClicked_, this);
var tab = pskl.UserSettings.get(this.settingsName); var tab = pskl.UserSettings.get(this.settingsName);
@ -37,7 +37,7 @@
this.currentController.destroy(); this.currentController.destroy();
} }
this.tabContentlEl.innerHTML = pskl.utils.Template.get(this.tabs[tabId].template); this.tabContentEl.innerHTML = pskl.utils.Template.get(this.tabs[tabId].template);
this.currentController = new this.tabs[tabId].controller(pskl.app.piskelController, this.parentController); this.currentController = new this.tabs[tabId].controller(pskl.app.piskelController, this.parentController);
this.currentController.init(); this.currentController.init();
this.currentTab = tabId; this.currentTab = tabId;

View File

@ -46,7 +46,7 @@
}; };
/** /**
* Transition to the step cirresponding to the provided step name. * Transition to the step corresponding to the provided step name.
* Animation will be skipped if no current step is displayed. * Animation will be skipped if no current step is displayed.
*/ */
ns.Wizard.prototype.goTo = function (stepName) { ns.Wizard.prototype.goTo = function (stepName) {

View File

@ -168,7 +168,7 @@ describe("SelectionManager suite", function() {
console.log('[SelectionManager] ... cut out of bounds'); console.log('[SelectionManager] ... cut out of bounds');
selectionManager.copy({ type: Events.CLIPBOARD_CUT }, createMockCopyEvent()); selectionManager.copy({ type: Events.CLIPBOARD_CUT }, createMockCopyEvent());
console.log('[SelectionManager] ... check last pixel of midle line was cut in the source frame'); console.log('[SelectionManager] ... check last pixel of middle line was cut in the source frame');
frameEqualsGrid(currentFrame, [ frameEqualsGrid(currentFrame, [
[B, R, T], [B, R, T],
[R, B, T], [R, B, T],

View File

@ -91,7 +91,7 @@ describe('BackupService test', function () {
it('calls create to backup', function (done) { it('calls create to backup', function (done) {
preparePiskelMocks(1, 'piskel_name', 'piskel_desc', 'piskel_hash', 'serialized'); preparePiskelMocks(1, 'piskel_name', 'piskel_desc', 'piskel_hash', 'serialized');
// Set snashot date. // Set snapshot date.
snapshotDate = 5; snapshotDate = 5;
// No snapshots currently saved. // No snapshots currently saved.