"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var SelectTool_exports = {};
__export(SelectTool_exports, {
  SelectTool: () => SelectTool
});
module.exports = __toCommonJS(SelectTool_exports);
var import_editor = require("@tldraw/editor");
var import_Brushing = require("./children/Brushing");
var import_Crop = require("./children/Crop/Crop");
var import_Cropping = require("./children/Cropping");
var import_DraggingHandle = require("./children/DraggingHandle");
var import_EditingShape = require("./children/EditingShape");
var import_Idle = require("./children/Idle");
var import_PointingCanvas = require("./children/PointingCanvas");
var import_PointingCropHandle = require("./children/PointingCropHandle");
var import_PointingHandle = require("./children/PointingHandle");
var import_PointingResizeHandle = require("./children/PointingResizeHandle");
var import_PointingRotateHandle = require("./children/PointingRotateHandle");
var import_PointingSelection = require("./children/PointingSelection");
var import_PointingShape = require("./children/PointingShape");
var import_Resizing = require("./children/Resizing");
var import_Rotating = require("./children/Rotating");
var import_ScribbleBrushing = require("./children/ScribbleBrushing");
var import_Translating = require("./children/Translating");
class SelectTool extends import_editor.StateNode {
  static id = "select";
  static initial = "idle";
  static children = () => [
    import_Crop.Crop,
    import_Cropping.Cropping,
    import_Idle.Idle,
    import_PointingCanvas.PointingCanvas,
    import_PointingShape.PointingShape,
    import_Translating.Translating,
    import_Brushing.Brushing,
    import_ScribbleBrushing.ScribbleBrushing,
    import_PointingCropHandle.PointingCropHandle,
    import_PointingSelection.PointingSelection,
    import_PointingResizeHandle.PointingResizeHandle,
    import_EditingShape.EditingShape,
    import_Resizing.Resizing,
    import_Rotating.Rotating,
    import_PointingRotateHandle.PointingRotateHandle,
    import_PointingHandle.PointingHandle,
    import_DraggingHandle.DraggingHandle
  ];
  onExit = () => {
    if (this.editor.currentPageState.editingShapeId) {
      this.editor.setEditingShape(null);
    }
  };
}
//# sourceMappingURL=SelectTool.js.map
