"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var lib_1 = require("typestyle/lib");
var Cursor = /** @class */ (function () {
    function Cursor(x, y, mode, nib, dragId) {
        this._layer = null;
        this.x = x;
        this.y = y;
        this.mode = mode;
        this.nib = nib;
        this.dragId = dragId;
        if (this.mode === 'pen' && this.nib === null) {
            this.mode = 'nope';
        }
    }
    Cursor.prototype.isEqual = function (other) {
        return (this.x === other.x &&
            this.y === other.y &&
            this.mode === other.mode &&
            this.nib === other.nib &&
            this.dragId === other.dragId);
    };
    return Cursor;
}());
exports.default = Cursor;
exports.cursorClasses = {
    nope: lib_1.style({
        cursor: 'not-allowed'
    }),
    pen: lib_1.style({
        cursor: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAKJJREFUOBFjYCAPuAO1PQbiLvK0Q3R5AKkfQPwfiieDhFlABInAEKieHUlPDpD9HYlPkAlySTxUVS2QhrkIRIO8SRSAeecvUHUCVAfMMJA3QWFGEMAMgbkA2bBKoG6QPEGAbgiyYfEEdUMV4DIEZBjIOxS5ZNQQ1EQGiyH6BiwoppEzIMwVJMUOyBAQQNYMYxPtHYgREBKmGUaTZQi6i8g2BAD572i5ZpqAbwAAAABJRU5ErkJggg==) 0 24, crosshair"
    }),
    eraser: lib_1.style({
        cursor: "url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAKRJREFUOBFjYCAD/P//3wOIfwAxHJBsDFAnhiEg00gyCJchJBmEzxCg3A+iXETIEJA8QYNGDcEMogEPEyY0N0kA+axoYiDuTyAOYGRk3IFFDiEE9U4lSATITgDiv0AMA6A8RVQ6cQcqhGXAWjTDiDMEqukxzGoojWwYYZeADAEBoOYuNINAXLA3ISpIIIEaJyMZRrx3sNkBNAjkMpA33bHJExIDABX14Dr452agAAAAAElFTkSuQmCC) 0 24, crosshair"
    })
};
//# sourceMappingURL=cursor.js.map