UNPKG

@swimlane/ngx-charts

Version:

Declarative Charting Framework for Angular2 and beyond!

281 lines (280 loc) 13.5 kB
/** * @fileoverview This file is generated by the Angular 2 template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties} */ /* tslint:disable */ import * as import0 from '../../../src/common/circle.component'; import * as import1 from '@angular/core/src/change_detection/change_detection_util'; import * as import2 from '@angular/core/src/linker/view'; import * as import3 from '@angular/core/src/linker/view_utils'; import * as import4 from '@angular/core/src/render/api'; import * as import5 from '@angular/core/src/metadata/view'; import * as import6 from '@angular/core/src/linker/view_type'; import * as import7 from '@angular/core/src/change_detection/constants'; import * as import8 from '@angular/core/src/linker/component_factory'; export class Wrapper_CircleComponent { /*private*/ _eventHandler:Function; context:import0.CircleComponent; /*private*/ _changed:boolean; /*private*/ _changes:{[key: string]:any}; /*private*/ _expr_0:any; /*private*/ _expr_1:any; /*private*/ _expr_2:any; /*private*/ _expr_3:any; /*private*/ _expr_4:any; /*private*/ _expr_5:any; /*private*/ _expr_6:any; /*private*/ _expr_7:any; /*private*/ _expr_8:any; subscription0:any; subscription1:any; subscription2:any; constructor() { this._changed = false; this._changes = {}; this.context = new import0.CircleComponent(); this._expr_0 = import1.UNINITIALIZED; this._expr_1 = import1.UNINITIALIZED; this._expr_2 = import1.UNINITIALIZED; this._expr_3 = import1.UNINITIALIZED; this._expr_4 = import1.UNINITIALIZED; this._expr_5 = import1.UNINITIALIZED; this._expr_6 = import1.UNINITIALIZED; this._expr_7 = import1.UNINITIALIZED; this._expr_8 = import1.UNINITIALIZED; } ngOnDetach(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any):void { } ngOnDestroy():void { (this.subscription0 && this.subscription0.unsubscribe()); (this.subscription1 && this.subscription1.unsubscribe()); (this.subscription2 && this.subscription2.unsubscribe()); } check_cx(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_0,currValue))) { this._changed = true; this.context.cx = currValue; this._changes['cx'] = new import1.SimpleChange(this._expr_0,currValue); this._expr_0 = currValue; } } check_cy(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_1,currValue))) { this._changed = true; this.context.cy = currValue; this._changes['cy'] = new import1.SimpleChange(this._expr_1,currValue); this._expr_1 = currValue; } } check_r(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_2,currValue))) { this._changed = true; this.context.r = currValue; this._changes['r'] = new import1.SimpleChange(this._expr_2,currValue); this._expr_2 = currValue; } } check_fill(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_3,currValue))) { this._changed = true; this.context.fill = currValue; this._changes['fill'] = new import1.SimpleChange(this._expr_3,currValue); this._expr_3 = currValue; } } check_stroke(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_4,currValue))) { this._changed = true; this.context.stroke = currValue; this._changes['stroke'] = new import1.SimpleChange(this._expr_4,currValue); this._expr_4 = currValue; } } check_data(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_5,currValue))) { this._changed = true; this.context.data = currValue; this._changes['data'] = new import1.SimpleChange(this._expr_5,currValue); this._expr_5 = currValue; } } check_classNames(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_6,currValue))) { this._changed = true; this.context.classNames = currValue; this._changes['classNames'] = new import1.SimpleChange(this._expr_6,currValue); this._expr_6 = currValue; } } check_circleOpacity(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_7,currValue))) { this._changed = true; this.context.circleOpacity = currValue; this._changes['circleOpacity'] = new import1.SimpleChange(this._expr_7,currValue); this._expr_7 = currValue; } } check_pointerEvents(currValue:any,throwOnChange:boolean,forceUpdate:boolean):void { if ((forceUpdate || import3.checkBinding(throwOnChange,this._expr_8,currValue))) { this._changed = true; this.context.pointerEvents = currValue; this._changes['pointerEvents'] = new import1.SimpleChange(this._expr_8,currValue); this._expr_8 = currValue; } } ngDoCheck(view:import2.AppView<any>,el:any,throwOnChange:boolean):boolean { var changed:any = this._changed; this._changed = false; if (!throwOnChange) { if (changed) { this.context.ngOnChanges(this._changes); this._changes = {}; } } return changed; } checkHost(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any,throwOnChange:boolean):void { } handleEvent(eventName:string,$event:any):boolean { var result:boolean = true; if ((eventName == 'click')) { const pd_sub_0:any = ((<any>this.context.onClick()) !== false); result = (pd_sub_0 && result); } if ((eventName == 'mouseenter')) { const pd_sub_1:any = ((<any>this.context.onMouseEnter()) !== false); result = (pd_sub_1 && result); } if ((eventName == 'mouseleave')) { const pd_sub_2:any = ((<any>this.context.onMouseLeave()) !== false); result = (pd_sub_2 && result); } return result; } subscribe(view:import2.AppView<any>,_eventHandler:any,emit0:boolean,emit1:boolean,emit2:boolean):void { this._eventHandler = _eventHandler; if (emit0) { (this.subscription0 = this.context.select.subscribe(_eventHandler.bind(view,'select'))); } if (emit1) { (this.subscription1 = this.context.activate.subscribe(_eventHandler.bind(view,'activate'))); } if (emit2) { (this.subscription2 = this.context.deactivate.subscribe(_eventHandler.bind(view,'deactivate'))); } } } var renderType_CircleComponent_Host:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,([] as any[]),{}); class View_CircleComponent_Host0 extends import2.AppView<any> { _el_0:any; compView_0:import2.AppView<import0.CircleComponent>; _CircleComponent_0_3:Wrapper_CircleComponent; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) { super(View_CircleComponent_Host0,renderType_CircleComponent_Host,import6.ViewType.HOST,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckAlways); } createInternal(rootSelector:string):import8.ComponentRef<any> { this._el_0 = import3.selectOrCreateRenderHostElement(this.renderer,'g',new import3.InlineArray2(2,'ngx-charts-circle',''),rootSelector,(null as any)); this.compView_0 = new View_CircleComponent0(this.viewUtils,this,0,this._el_0); this._CircleComponent_0_3 = new Wrapper_CircleComponent(); this.compView_0.create(this._CircleComponent_0_3.context); var disposable_0:Function = import3.subscribeToRenderElement(this,this._el_0,new import3.InlineArray8(6,'click',(null as any),'mouseenter',(null as any),'mouseleave',(null as any)),this.eventHandler(this.handleEvent_0)); this.init(this._el_0,((<any>this.renderer).directRenderer? (null as any): [this._el_0]),[disposable_0]); return new import8.ComponentRef_<any>(0,this,this._el_0,this._CircleComponent_0_3.context); } injectorGetInternal(token:any,requestNodeIndex:number,notFoundResult:any):any { if (((token === import0.CircleComponent) && (0 === requestNodeIndex))) { return this._CircleComponent_0_3.context; } return notFoundResult; } detectChangesInternal(throwOnChange:boolean):void { if (this._CircleComponent_0_3.ngDoCheck(this,this._el_0,throwOnChange)) { this.compView_0.markAsCheckOnce(); } this.compView_0.internalDetectChanges(throwOnChange); } destroyInternal():void { this.compView_0.destroy(); this._CircleComponent_0_3.ngOnDestroy(); } visitRootNodesInternal(cb:any,ctx:any):void { cb(this._el_0,ctx); } handleEvent_0(eventName:string,$event:any):boolean { this.compView_0.markPathToRootAsCheckOnce(); var result:boolean = true; result = (this._CircleComponent_0_3.handleEvent(eventName,$event) && result); return result; } } export const CircleComponentNgFactory:import8.ComponentFactory<import0.CircleComponent> = new import8.ComponentFactory<import0.CircleComponent>('g[ngx-charts-circle]',View_CircleComponent_Host0,import0.CircleComponent); const styles_CircleComponent:any[] = ([] as any[]); var renderType_CircleComponent:import4.RenderComponentType = import3.createRenderComponentType('',0,import5.ViewEncapsulation.None,styles_CircleComponent,{}); export class View_CircleComponent0 extends import2.AppView<import0.CircleComponent> { _text_0:any; _el_1:any; _text_2:any; /*private*/ _expr_3:any; /*private*/ _expr_4:any; /*private*/ _expr_5:any; /*private*/ _expr_6:any; /*private*/ _expr_7:any; /*private*/ _expr_8:any; /*private*/ _expr_9:any; /*private*/ _expr_10:any; constructor(viewUtils:import3.ViewUtils,parentView:import2.AppView<any>,parentIndex:number,parentElement:any) { super(View_CircleComponent0,renderType_CircleComponent,import6.ViewType.COMPONENT,viewUtils,parentView,parentIndex,parentElement,import7.ChangeDetectorStatus.CheckOnce); this._expr_3 = import1.UNINITIALIZED; this._expr_4 = import1.UNINITIALIZED; this._expr_5 = import1.UNINITIALIZED; this._expr_6 = import1.UNINITIALIZED; this._expr_7 = import1.UNINITIALIZED; this._expr_8 = import1.UNINITIALIZED; this._expr_9 = import1.UNINITIALIZED; this._expr_10 = import1.UNINITIALIZED; } createInternal(rootSelector:string):import8.ComponentRef<any> { const parentRenderNode:any = this.renderer.createViewRoot(this.parentElement); this._text_0 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); this._el_1 = import3.createRenderElement(this.renderer,parentRenderNode,':svg:circle',import3.EMPTY_INLINE_ARRAY,(null as any)); this._text_2 = this.renderer.createText(parentRenderNode,'\n ',(null as any)); this.init((null as any),((<any>this.renderer).directRenderer? (null as any): [ this._text_0, this._el_1, this._text_2 ] ),(null as any)); return (null as any); } detectChangesInternal(throwOnChange:boolean):void { const currVal_3:any = this.context.cx; if (import3.checkBinding(throwOnChange,this._expr_3,currVal_3)) { this.renderer.setElementAttribute(this._el_1,'cx',((currVal_3 == null)? (null as any): currVal_3.toString())); this._expr_3 = currVal_3; } const currVal_4:any = this.context.cy; if (import3.checkBinding(throwOnChange,this._expr_4,currVal_4)) { this.renderer.setElementAttribute(this._el_1,'cy',((currVal_4 == null)? (null as any): currVal_4.toString())); this._expr_4 = currVal_4; } const currVal_5:any = this.context.r; if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) { this.renderer.setElementAttribute(this._el_1,'r',((currVal_5 == null)? (null as any): currVal_5.toString())); this._expr_5 = currVal_5; } const currVal_6:any = this.context.fill; if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) { this.renderer.setElementAttribute(this._el_1,'fill',((currVal_6 == null)? (null as any): currVal_6.toString())); this._expr_6 = currVal_6; } const currVal_7:any = this.context.stroke; if (import3.checkBinding(throwOnChange,this._expr_7,currVal_7)) { this.renderer.setElementAttribute(this._el_1,'stroke',((currVal_7 == null)? (null as any): currVal_7.toString())); this._expr_7 = currVal_7; } const currVal_8:any = this.context.circleOpacity; if (import3.checkBinding(throwOnChange,this._expr_8,currVal_8)) { this.renderer.setElementAttribute(this._el_1,'opacity',((currVal_8 == null)? (null as any): currVal_8.toString())); this._expr_8 = currVal_8; } const currVal_9:any = this.context.classNames; if (import3.checkBinding(throwOnChange,this._expr_9,currVal_9)) { this.renderer.setElementAttribute(this._el_1,'class',((currVal_9 == null)? (null as any): currVal_9.toString())); this._expr_9 = currVal_9; } const currVal_10:any = this.context.pointerEvents; if (import3.checkBinding(throwOnChange,this._expr_10,currVal_10)) { this.renderer.setElementAttribute(this._el_1,'pointer-events',((currVal_10 == null)? (null as any): currVal_10.toString())); this._expr_10 = currVal_10; } } }