UNPKG

@carbon/charts

Version:
36 lines 1.47 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); // Internal Imports import { Component } from '../component'; import { DOMUtils } from '../../services'; import * as Configuration from '../../configuration'; var Spacer = /** @class */ (function (_super) { __extends(Spacer, _super); function Spacer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.type = 'spacer'; return _this; } Spacer.prototype.render = function () { DOMUtils.appendOrSelect(this.getContainerSVG(), 'rect') .attr('x', 0) .attr('y', 0) .attr('width', this.configs.size || Configuration.spacers.default.size) .attr('height', this.configs.size || Configuration.spacers.default.size) .attr('opacity', 0); }; return Spacer; }(Component)); export { Spacer }; //# sourceMappingURL=../../../src/components/layout/spacer.js.map