"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.tool = void 0;

var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));

var _component = _interopRequireDefault(require("./component"));

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

var tool = function tool() {
  return {
    label: 'Point',
    type: 'point',
    Component: _component["default"],
    addPoint: function addPoint(point) {
      return _objectSpread({
        type: 'point'
      }, point);
    }
  };
};

exports.tool = tool;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jb2RlL2dyYXBoaW5nL3Rvb2xzL3BvaW50L2luZGV4LmpzIl0sIm5hbWVzIjpbInRvb2wiLCJsYWJlbCIsInR5cGUiLCJDb21wb25lbnQiLCJQb2ludCIsImFkZFBvaW50IiwicG9pbnQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7Ozs7OztBQUVPLElBQU1BLElBQUksR0FBRyxTQUFQQSxJQUFPO0FBQUEsU0FBTztBQUN6QkMsSUFBQUEsS0FBSyxFQUFFLE9BRGtCO0FBRXpCQyxJQUFBQSxJQUFJLEVBQUUsT0FGbUI7QUFHekJDLElBQUFBLFNBQVMsRUFBRUMscUJBSGM7QUFJekJDLElBQUFBLFFBQVEsRUFBRSxrQkFBQ0MsS0FBRDtBQUFBO0FBQ1JKLFFBQUFBLElBQUksRUFBRTtBQURFLFNBRUxJLEtBRks7QUFBQTtBQUplLEdBQVA7QUFBQSxDQUFiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFBvaW50IGZyb20gJy4vY29tcG9uZW50JztcblxuZXhwb3J0IGNvbnN0IHRvb2wgPSAoKSA9PiAoe1xuICBsYWJlbDogJ1BvaW50JyxcbiAgdHlwZTogJ3BvaW50JyxcbiAgQ29tcG9uZW50OiBQb2ludCxcbiAgYWRkUG9pbnQ6IChwb2ludCkgPT4gKHtcbiAgICB0eXBlOiAncG9pbnQnLFxuICAgIC4uLnBvaW50LFxuICB9KSxcbn0pO1xuIl19