mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Removed a few dependencies, refactored pixel-editor.js
This commit is contained in:
@ -17,6 +17,9 @@ class PixelGrid extends Layer {
|
||||
initialize() {
|
||||
super.initialize();
|
||||
this.fillPixelGrid();
|
||||
Events.onCustom("refreshPixelGrid", this.fillPixelGrid.bind(this));
|
||||
Events.onCustom("switchedToAdvanced", this.disablePixelGrid.bind(this));
|
||||
Events.onCustom("switchedToBasic", this.enablePixelGrid.bind(this));
|
||||
}
|
||||
|
||||
disablePixelGrid() {
|
||||
|
Reference in New Issue
Block a user