react-native-circular-chart
Version:
circular chart for react-native.
28 lines (20 loc) • 713 B
JavaScript
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
export class ViewBox {
constructor(_ref) {
let {
width,
height
} = _ref;
_defineProperty(this, "width", 50);
_defineProperty(this, "height", 50);
_defineProperty(this, "getWidth", () => this.width);
_defineProperty(this, "getHeight", () => this.height);
_defineProperty(this, "getCenterCoord", () => ({
x: this.width / 2,
y: this.height / 2
}));
this.width = width;
this.height = height;
}
}
//# sourceMappingURL=ViewBox.js.map