|
| 1 | +import * as React from 'react'; |
| 2 | +import { CircularChart3D, CircularChart3DModel } from '@syncfusion/ej2-charts'; |
| 3 | +import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base'; |
| 4 | + |
| 5 | + |
| 6 | +export interface CircularChart3DTypecast { |
| 7 | + tooltip?: any; |
| 8 | +} |
| 9 | +/** |
| 10 | + * Represents react Circular 3D chart Component |
| 11 | + * ```tsx |
| 12 | + * <CircularChart3DComponent></CircularChart3DComponent> |
| 13 | + * ``` |
| 14 | + */ |
| 15 | +export class CircularChart3DComponent extends CircularChart3D { |
| 16 | + public state: Readonly<{ children?: React.ReactNode | React.ReactNode[] }> |
| 17 | + & Readonly<CircularChart3DModel | DefaultHtmlAttributes| CircularChart3DTypecast>; |
| 18 | + public setState: any; |
| 19 | + private getDefaultAttributes: Function; |
| 20 | + public initRenderCalled: boolean = false; |
| 21 | + private checkInjectedModules: boolean = true; |
| 22 | + public directivekeys: { [key: string]: Object } = {'circularChart3DSeriesCollection': 'circularChart3DSeries', 'circularChart3DSelectedDataIndexes': 'circularChart3DSelectedDataIndex'}; |
| 23 | + private statelessTemplateProps: string[] = null; |
| 24 | + private templateProps: string[] = null; |
| 25 | + private immediateRender: boolean = false; |
| 26 | + public props: Readonly<{ children?: React.ReactNode | React.ReactNode[] }> |
| 27 | + & Readonly<CircularChart3DModel | DefaultHtmlAttributes| CircularChart3DTypecast>; |
| 28 | + public forceUpdate: (callBack?: () => any) => void; |
| 29 | + public context: Object; |
| 30 | + public portals: any = []; |
| 31 | + public isReactComponent: Object; |
| 32 | + public refs: { |
| 33 | + [key: string]: React.ReactInstance |
| 34 | + }; |
| 35 | + constructor(props: any) { |
| 36 | + super(props); |
| 37 | + } |
| 38 | + |
| 39 | + public render(): any { |
| 40 | + if (((this.element && !this.initRenderCalled) || this.refreshing) && !(this as any).isReactForeceUpdate) { |
| 41 | + super.render(); |
| 42 | + this.initRenderCalled = true; |
| 43 | + } else { |
| 44 | + return React.createElement('div', this.getDefaultAttributes(),[].concat(this.props.children,this.portals)); |
| 45 | + } |
| 46 | + |
| 47 | + } |
| 48 | +} |
| 49 | + |
| 50 | +applyMixins(CircularChart3DComponent, [ComponentBase, React.Component]); |
0 commit comments