{"size": 674, "ext": "js", "max_stars_repo_path": "src/node_modules/@storybook/addon-measure/dist/cjs/register.js", "max_stars_repo_name": "lemanhdung/learnstorybook", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/node_modules/@storybook/addon-measure/dist/cjs/register.js", "max_issues_repo_name": "lemanhdung/learnstorybook", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/node_modules/@storybook/addon-measure/dist/cjs/register.js", "max_forks_repo_name": "lemanhdung/learnstorybook", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.96, "max_line_length": 95, "alphanum_fraction": 0.6661721068}
"use strict";

var _react = _interopRequireDefault(require("react"));

var _addons = require("@storybook/addons");

var _constants = require("./constants");

var _Tool = require("./Tool");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

_addons.addons.register(_constants.ADDON_ID, function () {
  _addons.addons.add(_constants.TOOL_ID, {
    type: _addons.types.TOOL,
    title: 'Measure',
    match: function match(_ref) {
      var viewMode = _ref.viewMode;
      return viewMode === 'story';
    },
    render: function render() {
      return /*#__PURE__*/_react.default.createElement(_Tool.Tool, null);
    }
  });
});