1 | "use strict";
|
2 | var __extends = (this && this.__extends) || (function () {
|
3 | var extendStatics = Object.setPrototypeOf ||
|
4 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
6 | return function (d, b) {
|
7 | extendStatics(d, b);
|
8 | function __() { this.constructor = d; }
|
9 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
10 | };
|
11 | })();
|
12 | Object.defineProperty(exports, "__esModule", { value: true });
|
13 | var React = require("react");
|
14 | var HKLine = (function (_super) {
|
15 | __extends(HKLine, _super);
|
16 | function HKLine() {
|
17 | return _super !== null && _super.apply(this, arguments) || this;
|
18 | }
|
19 | HKLine.prototype.render = function () {
|
20 | var _a = this.props, line = _a.line, area = _a.area, data = _a.data;
|
21 | return (React.createElement("g", null,
|
22 | React.createElement("path", { d: line(data), fill: 'none', stroke: '#79589f', strokeWidth: '1' }),
|
23 | React.createElement("path", { d: area(data), fill: '#79589f', fillOpacity: '0.2' })));
|
24 | };
|
25 | return HKLine;
|
26 | }(React.PureComponent));
|
27 | exports.default = HKLine;
|
28 |
|
\ | No newline at end of file |