mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Basic cut implementation
SelectionManager implmentaiton Rectangular seleciton impl Utils refacoring Event manager refactoring basic cut implmentation
This commit is contained in:
9
js/selection/RectangularSelection.js
Normal file
9
js/selection/RectangularSelection.js
Normal file
@ -0,0 +1,9 @@
|
||||
(function () {
|
||||
var ns = $.namespace("pskl.selection");
|
||||
|
||||
ns.RectangularSelection = function (x0, y0, x1, y1) {
|
||||
this.pixels = pskl.PixelUtils.getRectanglePixels(x0, y0, x1, y1);
|
||||
};
|
||||
|
||||
pskl.utils.inherit(ns.RectangularSelection, ns.BaseSelection);
|
||||
})();
|
Reference in New Issue
Block a user