js-draw
Version:
Draw pictures using a pen, touchscreen, or mouse! JS-draw is a drawing library for JavaScript and TypeScript.
14 lines (13 loc) • 406 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
// Connects a group of tools -- at most one tool in the group can be enabled.
class ToolEnabledGroup {
constructor() { }
notifyEnabled(tool) {
if (tool !== this.activeTool) {
this.activeTool?.setEnabled(false);
this.activeTool = tool;
}
}
}
exports.default = ToolEnabledGroup;
;