@wcardinal/wcardinal-geditor
Version:
WebGL-based graphic editor, tester and viewer for supervisory systems
34 lines • 974 B
JavaScript
import { __extends } from "tslib";
import { utils } from "pixi.js";
var EToolImpl = /** @class */ (function (_super) {
__extends(EToolImpl, _super);
function EToolImpl() {
var _this = _super.call(this) || this;
_this._isActive = false;
return _this;
}
EToolImpl.prototype.activate = function () {
if (!this._isActive) {
this._isActive = true;
this.onActivate();
}
};
EToolImpl.prototype.deactivate = function () {
if (this._isActive) {
this._isActive = false;
this.onDeactivate();
}
};
EToolImpl.prototype.onActivate = function () {
// DO NOTHING
};
EToolImpl.prototype.onDeactivate = function () {
// DO NOTHING
};
EToolImpl.prototype.isActive = function () {
return this._isActive;
};
return EToolImpl;
}(utils.EventEmitter));
export { EToolImpl };
//# sourceMappingURL=e-tool-impl.js.map