123456789101112131415161718192021222324252627282930313233343536373839 |
- "use strict";
- exports.__esModule = true;
- exports.default = void 0;
- var _translation = require("@superset-ui/translation");
- var _chart = require("@superset-ui/chart");
- var _transformProps = _interopRequireDefault(require("../transformProps"));
- var _thumbnail = _interopRequireDefault(require("./images/thumbnail.png"));
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
- const metadata = new _chart.ChartMetadata({
- credits: ['http://nvd3.org'],
- description: '',
- name: (0, _translation.t)('Bullet Chart'),
- thumbnail: _thumbnail.default,
- useLegacyApi: true
- });
- class BulletChartPlugin extends _chart.ChartPlugin {
- constructor() {
- super({
- loadChart: () => Promise.resolve().then(() => _interopRequireWildcard(require('../ReactNVD3'))),
- metadata,
- transformProps: _transformProps.default
- });
- }
- }
- exports.default = BulletChartPlugin;
|