@syncfusion/ej2-react-charts 32.2.9 → 33.1.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/diConfig.json +522 -11
- package/dist/ej2-react-charts.min.js +2 -2
- package/dist/ej2-react-charts.umd.min.js +2 -2
- package/dist/ej2-react-charts.umd.min.js.map +1 -1
- package/dist/es6/ej2-react-charts.es2015.js +71 -2
- package/dist/es6/ej2-react-charts.es2015.js.map +1 -1
- package/package.json +6 -5
- package/sankey.d.ts +4 -0
- package/sankey.js +4 -0
- package/src/accumulation-chart/accumulationchart.component.d.ts +1 -0
- package/src/chart/chart.component.d.ts +1 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/sankey/index.d.ts +3 -0
- package/src/sankey/index.js +3 -0
- package/src/sankey/links-directive.d.ts +22 -0
- package/src/sankey/links-directive.js +44 -0
- package/src/sankey/nodes-directive.d.ts +22 -0
- package/src/sankey/nodes-directive.js +44 -0
- package/src/sankey/sankey.component.d.ts +40 -0
- package/src/sankey/sankey.component.js +50 -0
- package/src/stock-chart/stockchart.component.d.ts +1 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
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 extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { ComplexBase } from '@syncfusion/ej2-react-base';
|
|
15
|
+
/**
|
|
16
|
+
* `SankeyNodeDirective` directive represent a node of the react Sankey.
|
|
17
|
+
* It must be contained in a Sankey component(`SankeyComponent`).
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <SankeyComponent>
|
|
20
|
+
* <SankeyNodesDirective>
|
|
21
|
+
* <SankeyNodeDirective></SankeyNodeDirective>
|
|
22
|
+
* </SankeyNodesDirective>
|
|
23
|
+
* </SankeyComponent>
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
var SankeyNodeDirective = /** @class */ (function (_super) {
|
|
27
|
+
__extends(SankeyNodeDirective, _super);
|
|
28
|
+
function SankeyNodeDirective() {
|
|
29
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
30
|
+
}
|
|
31
|
+
SankeyNodeDirective.moduleName = 'sankeyNode';
|
|
32
|
+
return SankeyNodeDirective;
|
|
33
|
+
}(ComplexBase));
|
|
34
|
+
export { SankeyNodeDirective };
|
|
35
|
+
var SankeyNodesCollectionDirective = /** @class */ (function (_super) {
|
|
36
|
+
__extends(SankeyNodesCollectionDirective, _super);
|
|
37
|
+
function SankeyNodesCollectionDirective() {
|
|
38
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
39
|
+
}
|
|
40
|
+
SankeyNodesCollectionDirective.propertyName = 'nodes';
|
|
41
|
+
SankeyNodesCollectionDirective.moduleName = 'sankeyNodesCollection';
|
|
42
|
+
return SankeyNodesCollectionDirective;
|
|
43
|
+
}(ComplexBase));
|
|
44
|
+
export { SankeyNodesCollectionDirective };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Sankey, SankeyModel } from '@syncfusion/ej2-charts';
|
|
3
|
+
import { DefaultHtmlAttributes } from '@syncfusion/ej2-react-base';
|
|
4
|
+
export interface SankeyTypecast {
|
|
5
|
+
tooltip?: any;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Represents react Sankey Component
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <SankeyComponent></SankeyComponent>
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare class SankeyComponent extends Sankey {
|
|
14
|
+
state: Readonly<{
|
|
15
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
16
|
+
}> & Readonly<SankeyModel | DefaultHtmlAttributes | SankeyTypecast>;
|
|
17
|
+
setState: any;
|
|
18
|
+
private getDefaultAttributes;
|
|
19
|
+
initRenderCalled: boolean;
|
|
20
|
+
private checkInjectedModules;
|
|
21
|
+
directivekeys: {
|
|
22
|
+
[key: string]: Object;
|
|
23
|
+
};
|
|
24
|
+
private statelessTemplateProps;
|
|
25
|
+
private templateProps;
|
|
26
|
+
private immediateRender;
|
|
27
|
+
private isReactMock;
|
|
28
|
+
props: Readonly<{
|
|
29
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
30
|
+
}> & Readonly<SankeyModel | DefaultHtmlAttributes | SankeyTypecast>;
|
|
31
|
+
forceUpdate: (callBack?: () => any) => void;
|
|
32
|
+
context: Object;
|
|
33
|
+
portals: any;
|
|
34
|
+
isReactComponent: Object;
|
|
35
|
+
refs: {
|
|
36
|
+
[key: string]: React.ReactInstance;
|
|
37
|
+
};
|
|
38
|
+
constructor(props: any);
|
|
39
|
+
render(): any;
|
|
40
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
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 extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
import { Sankey } from '@syncfusion/ej2-charts';
|
|
16
|
+
import { ComponentBase, applyMixins } from '@syncfusion/ej2-react-base';
|
|
17
|
+
/**
|
|
18
|
+
* Represents react Sankey Component
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <SankeyComponent></SankeyComponent>
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
var SankeyComponent = /** @class */ (function (_super) {
|
|
24
|
+
__extends(SankeyComponent, _super);
|
|
25
|
+
function SankeyComponent(props) {
|
|
26
|
+
var _this = _super.call(this, props) || this;
|
|
27
|
+
_this.initRenderCalled = false;
|
|
28
|
+
_this.checkInjectedModules = true;
|
|
29
|
+
_this.directivekeys = { 'sankeyNodesCollection': 'sankeyNode', 'sankeyLinksCollection': 'sankeyLink' };
|
|
30
|
+
_this.statelessTemplateProps = null;
|
|
31
|
+
_this.templateProps = null;
|
|
32
|
+
_this.immediateRender = false;
|
|
33
|
+
_this.isReactMock = true;
|
|
34
|
+
_this.portals = [];
|
|
35
|
+
return _this;
|
|
36
|
+
}
|
|
37
|
+
SankeyComponent.prototype.render = function () {
|
|
38
|
+
this.isReactMock = false;
|
|
39
|
+
if (((this.element && !this.initRenderCalled) || this.refreshing) && !this.isReactForeceUpdate) {
|
|
40
|
+
_super.prototype.render.call(this);
|
|
41
|
+
this.initRenderCalled = true;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return React.createElement('div', this.getDefaultAttributes(), [].concat(this.props.children, this.portals));
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return SankeyComponent;
|
|
48
|
+
}(Sankey));
|
|
49
|
+
export { SankeyComponent };
|
|
50
|
+
applyMixins(SankeyComponent, [ComponentBase, React.Component]);
|