-
Notifications
You must be signed in to change notification settings - Fork 0
/
28-es5.2afcb2c84f363ab1b951.js
1 lines (1 loc) · 5.17 KB
/
28-es5.2afcb2c84f363ab1b951.js
1
!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}(window.webpackJsonp=window.webpackJsonp||[]).push([[28],{"tu3+":function(n,a,i){"use strict";i.r(a),i.d(a,"LineBasicModule",function(){return N});var r=i("ofXK"),o=i("fXoL"),l=i("B+r4"),c=i("Ybvb"),s=i("OzZK"),u=i("RwU8"),b=i("C2AL"),d=i("oyxB"),v=i("lR5k"),p=i("qAZ0"),y=["divG2plotLine"],f=["divG2plotLineAjax"];function h(e,t){1&e&&(o.Ob(0,"div",16),o.Kb(1,"nz-spin",17),o.Nb()),2&e&&(o.zb(1),o.ec("nzSize","large"))}var z,m,x=function(e){return{display:e}},g=((z=function(){function n(){e(this,n),this.data=[{year:"1991",value:3},{year:"1992",value:4},{year:"1993",value:3.5},{year:"1994",value:5},{year:"1995",value:4.9},{year:"1996",value:6},{year:"1997",value:7},{year:"1998",value:9},{year:"1999",value:13}],this.options={title:{visible:!0,text:"\u6298\u7ebf\u56fe"},description:{visible:!0,text:"\u7528\u5e73\u6ed1\u7684\u66f2\u7ebf\u4ee3\u66ff\u6298\u7ebf\u3002"},data:this.data,xField:"year",yField:"value"},this.dataAjax=[],this.optionsAjax={data:this.dataAjax,xField:"year",yField:"value",label:{},point:{size:5,shape:"diamond",style:{fill:"white",stroke:"#5B8FF9",lineWidth:2}},tooltip:{showMarkers:!1},state:{active:{style:{shadowBlur:4,stroke:"#000",fill:"red"}}},interactions:[{type:"marker-active"}]}}var a,i,r;return a=n,(i=[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){e.dataAjax=[{year:"1991",value:3},{year:"1992",value:4},{year:"1993",value:3.5},{year:"1994",value:5},{year:"1995",value:4.9},{year:"1996",value:6},{year:"1997",value:7},{year:"1998",value:9},{year:"1999",value:13}],e.divG2plotLineAjax.changeData(e.dataAjax)},5e3)}},{key:"updateConfig",value:function(){this.divG2plotLine.instance.update({title:{visible:!0,text:"The line chart"},description:{visible:!0,text:"Replace broken lines with smooth curves."},xField:"year",yField:"value"}),this.divG2plotLine.instance.render()}},{key:"changeData",value:function(){this.divG2plotLine.changeData([{year:"1991",value:13},{year:"1992",value:14},{year:"1993",value:13.5},{year:"1994",value:15},{year:"1995",value:14.9},{year:"1996",value:16},{year:"1997",value:17},{year:"1998",value:19},{year:"1999",value:23}])}},{key:"destroy",value:function(){this.divG2plotLine.destroy()}},{key:"onError",value:function(e){console.error(e)}}])&&t(a.prototype,i),r&&t(a,r),n}()).\u0275fac=function(e){return new(e||z)},z.\u0275cmp=o.Db({type:z,selectors:[["app-line-basic"]],viewQuery:function(e,t){var n;1&e&&(o.xc(y,!0),o.xc(f,!0)),2&e&&(o.jc(n=o.Wb())&&(t.divG2plotLine=n.first),o.jc(n=o.Wb())&&(t.divG2plotLineAjax=n.first))},decls:28,vars:9,consts:[["nz-row",""],["nz-col","","nzSpan","10"],["starkG2plotLine","",2,"width","600px",3,"options"],["divG2plotLine","g2plotLine"],[2,"margin","20px 0"],["nz-button","","nzType","primary",3,"click"],["nz-button","","nzType","primary",2,"margin-left","20px",3,"click"],["nz-button","","nzType","primary","nzDanger","",2,"margin-left","20px",3,"click"],["nz-col","","nzSpan","10","nzOffset","2"],["starkG2plotLine","",2,"width","600px",3,"options","ngStyle"],["divG2plotLineAjax","g2plotLine"],["style","width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;",4,"ngIf"],["nzTitle","html"],[3,"src","error"],["nzTitle","ts"],["nzTitle","module"],[2,"width","100%","height","100%","display","flex","align-items","center","justify-content","center"],["nzSimple","",3,"nzSize"]],template:function(e,t){1&e&&(o.Ob(0,"div",0),o.Ob(1,"div",1),o.Ob(2,"h2"),o.uc(3,"\u57fa\u7840"),o.Nb(),o.Kb(4,"div",2,3),o.Ob(6,"div",4),o.Ob(7,"button",5),o.Vb("click",function(){return t.updateConfig()}),o.uc(8,"updateConfig"),o.Nb(),o.Ob(9,"button",6),o.Vb("click",function(){return t.changeData()}),o.uc(10,"changeData"),o.Nb(),o.Ob(11,"button",7),o.Vb("click",function(){return t.destroy()}),o.uc(12,"destroy"),o.Nb(),o.Nb(),o.Nb(),o.Ob(13,"div",8),o.Ob(14,"h2"),o.uc(15,"\u6a21\u62df\u52a0\u8f7d\u8fdc\u7a0b\u6570\u636e"),o.Nb(),o.Kb(16,"div",9,10),o.sc(18,h,2,1,"div",11),o.Nb(),o.Nb(),o.Ob(19,"h2"),o.uc(20,"code"),o.Nb(),o.Ob(21,"nz-tabset"),o.Ob(22,"nz-tab",12),o.Ob(23,"markdown",13),o.Vb("error",function(e){return t.onError(e)}),o.Nb(),o.Nb(),o.Ob(24,"nz-tab",14),o.Ob(25,"markdown",13),o.Vb("error",function(e){return t.onError(e)}),o.Nb(),o.Nb(),o.Ob(26,"nz-tab",15),o.Ob(27,"markdown",13),o.Vb("error",function(e){return t.onError(e)}),o.Nb(),o.Nb(),o.Nb()),2&e&&(o.zb(4),o.ec("options",t.options),o.zb(12),o.ec("options",t.optionsAjax)("ngStyle",o.hc(7,x,t.dataAjax.length?"block":"none")),o.zb(2),o.ec("ngIf",!t.dataAjax.length),o.zb(5),o.ec("src","assets/code/line/line-basic/line-basic.html.md"),o.zb(2),o.ec("src","assets/code/line/line-basic/line-basic.ts.md"),o.zb(2),o.ec("src","assets/code/line/line-basic/line-basic.module.md"))},directives:[l.c,l.a,c.q,s.a,u.a,b.a,r.m,r.l,d.b,d.a,v.a,p.a],styles:[""]}),z),k=i("PCNd"),w=i("tyNb"),O=[{path:"",component:g}],N=((m=function t(){e(this,t)}).\u0275mod=o.Hb({type:m}),m.\u0275inj=o.Gb({factory:function(e){return new(e||m)},imports:[[r.c,w.f.forChild(O),s.c,c.r,k.a,d.c,v.b.forRoot(),l.b,p.b]]}),m)}}])}();