scichart
Version:
Fast WebGL JavaScript Charting Library and Framework
1 lines • 1.62 MB
JavaScript
(()=>{var e={71993:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildAnnotations=void 0;const r=i(29371),s=i(89171),a=i(48882),o=i(96696),n=i(84736),l=i(28677),d=i(74370),h=i(49617),u=i(98409),c=i(11043),p=i(58996),g=i(45921);(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.RenderContextAxisMarkerAnnotation,(e=>new r.AxisMarkerAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.RenderContextBoxAnnotation,(e=>new s.BoxAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.RenderContextHorizontalLineAnnotation,(e=>new o.HorizontalLineAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.RenderContextLineAnnotation,(e=>new l.LineAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.RenderContextVerticalLineAnnotation,(e=>new u.VerticalLineAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.SVGTextAnnotation,(e=>new h.TextAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.SVGCustomAnnotation,(e=>new a.CustomAnnotation(e)),!0),(0,g.registerType)(c.EBaseType.Annotation,n.EAnnotationType.RenderContextNativeTextAnnotation,(e=>new d.NativeTextAnnotation(e)),!0),t.buildAnnotations=e=>{"string"==typeof e&&(e=JSON.parse(e,p.chartReviver));const t=[];if(Array.isArray(e))for(const i of e)t.push((0,g.createType)(c.EBaseType.Annotation,i.type,null,i.options));else t.push((0,g.createType)(c.EBaseType.Annotation,e.type,null,e.options));return t}},25924:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildAxes=void 0;const r=i(59516),s=i(2296),a=i(78471),o=i(48767),n=i(39920),l=i(92596),d=i(68695),h=i(18184),u=i(51392),c=i(54948),p=i(2192),g=i(11043),y=i(40359),f=i(58996),v=i(45921);(0,v.registerType)(g.EBaseType.LabelProvider,y.ELabelProviderType.Numeric,(e=>new n.NumericLabelProvider(e)),!0),(0,v.registerType)(g.EBaseType.LabelProvider,y.ELabelProviderType.Date,(e=>new a.DateLabelProvider(e)),!0),(0,v.registerType)(g.EBaseType.LabelProvider,y.ELabelProviderType.Logarithmic,(e=>new o.LogarithmicLabelProvider(e)),!0),(0,v.registerType)(g.EBaseType.LabelProvider,y.ELabelProviderType.SmartDate,(e=>new d.SmartDateLabelProvider),!0),(0,v.registerType)(g.EBaseType.LabelProvider,y.ELabelProviderType.Text,(e=>new h.TextLabelProvider(e)),!0),(0,v.registerType)(g.EBaseType.LabelProvider,y.ELabelProviderType.Pie,(e=>new l.PieLabelProvider(e)),!0),t.buildAxes=(e,t)=>{"string"==typeof t&&(t=JSON.parse(t,f.chartReviver));const i=[];if(Array.isArray(t))for(const r of t)i.push(m(e,r));else i.push(m(e,t));return i};const m=(e,t)=>{let i;switch(t.type){case p.EAxisType.CategoryAxis:i=new r.CategoryAxis(e,t.options);break;case p.EAxisType.NumericAxis:i=new c.NumericAxis(e,t.options);break;case p.EAxisType.LogarithmicAxis:i=new u.LogarithmicAxis(e,t.options);break;case p.EAxisType.DateTimeNumericAxis:i=new s.DateTimeNumericAxis(e,t.options);break;default:i=new c.NumericAxis(e,{})}return i}},44544:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildDataSeries=void 0;const r=i(58465),s=i(73165),a=i(26974),o=i(95632),n=i(55007),l=i(39892),d=i(91154),h=i(92475),u=i(22382),c=i(51885),p=i(43427),g=i(35471),y=i(15799),f=i(9682),v=i(29803),m=i(75650),S=i(35508),P=i(51097),C=i(58996);t.buildDataSeries=(e,t,i,r)=>{if(!t)return;let s,a;if("string"==typeof t&&(t=JSON.parse(t,C.chartReviver)),"string"==typeof i&&(i=JSON.parse(i,C.chartReviver)),s=b(e,t,i),"filter"in t.options&&(a=t.options.filter),a&&t.type!==c.EDataSeriesType.HeatmapUniform&&t.type!==c.EDataSeriesType.HeatmapNonUniform&&s){const e=x(null!=r?r:s,a);e&&(s=e)}return s};const x=(e,t)=>{if(t.type===P.EDataFilterType.HlcScaleOffset)return new r.HlcScaleOffsetFilter(e,t.options);if(t.type===P.EDataFilterType.OhlcScaleOffset)return new s.OhlcScaleOffsetFilter(e,t.options);if(t.type===P.EDataFilterType.XyLinearTrend)return new a.XyLinearTrendFilter(e,t.options);if(t.type===P.EDataFilterType.XyMovingAverage)return new o.XyMovingAverageFilter(e,t.options);if(t.type===P.EDataFilterType.XyRatio){const i=t.options;if(Array.isArray(i.divisorSeries)){const r=new Array(e.count()).fill(0);t.options.divisorSeries=new f.XyDataSeries(e.webAssemblyContext,{xValues:r,yValues:i.divisorSeries})}return new n.XyRatioFilter(e,t.options)}return t.type===P.EDataFilterType.XyScaleOffset?new l.XyScaleOffsetFilter(e,t.options):t.type===P.EDataFilterType.XyyScaleOffset?new d.XyyScaleOffsetFilter(e,t.options):t.type===P.EDataFilterType.XyzScaleOffset?new h.XyzScaleOffsetFilter(e,t.options):void 0},b=(e,t,i)=>{const r=Object.assign({},t.options);switch(t.type){case c.EDataSeriesType.Xy:{const t=r;return i&&t.xDataId&&(t.xValues=i[t.xDataId],t.yValues=i[t.yDataId]),new f.XyDataSeries(e,t)}case c.EDataSeriesType.Xyy:{const t=r;return i&&t.xDataId&&(t.xValues=i[t.xDataId],t.yValues=i[t.yDataId],t.y1Values=i[t.y1DataId]),new m.XyyDataSeries(e,t)}case c.EDataSeriesType.Xyz:{const t=r;return i&&t.xDataId&&(t.xValues=i[t.xDataId],t.yValues=i[t.yDataId],t.zValues=i[t.zDataId]),new S.XyzDataSeries(e,t)}case c.EDataSeriesType.XyText:{const t=r;return i&&t.xDataId&&(t.xValues=i[t.xDataId],t.yValues=i[t.yDataId]),new v.XyTextDataSeries(e,t)}case c.EDataSeriesType.Hlc:{const t=r;return i&&t.xDataId&&(t.xValues=i[t.xDataId],t.highValues=i[t.highDataId],t.lowValues=i[t.lowDataId],t.yValues=i[t.closeDataId]),new u.HlcDataSeries(e,t)}case c.EDataSeriesType.Ohlc:{const t=r;return i&&t.xDataId&&(t.xValues=i[t.xDataId],t.openValues=i[t.openDataId],t.highValues=i[t.highDataId],t.lowValues=i[t.lowDataId],t.closeValues=i[t.closeDataId]),new g.OhlcDataSeries(e,t)}case c.EDataSeriesType.HeatmapUniform:{const t=r;return new y.UniformHeatmapDataSeries(e,t)}case c.EDataSeriesType.HeatmapNonUniform:{const t=r;return new p.NonUniformHeatmapDataSeries(e,t)}default:return(e=>{throw new Error(`Invalid Data Series Type value: "${e}"!`)})(t.type)}}},96841:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildModifiers=void 0;const r=i(62773),s=i(71575),a=i(9656),o=i(56985),n=i(55526),l=i(21562),d=i(63903),h=i(96408),u=i(18809),c=i(32545),p=i(9809),g=i(3397),y=i(63407),f=i(64171),v=i(11043),m=i(89955),S=i(58996),P=i(45921),C=i(49975);(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.Cursor,(e=>new r.CursorModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.DataPointSelection,(e=>new s.DataPointSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.MouseWheelZoom,(e=>new o.MouseWheelZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.PinchZoom,(e=>new l.PinchZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.Rollover,(e=>new d.RolloverModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.VerticalSlice,(e=>new h.VerticalSliceModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.RubberBandXYZoom,(e=>new u.RubberBandXyZoomModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.SeriesSelection,(e=>new c.SeriesSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.AnnotationHover,(e=>new C.AnnotationHoverModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.XAxisDrag,(e=>new p.XAxisDragModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.YAxisDrag,(e=>new g.YAxisDragModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.ZoomExtents,(e=>new y.ZoomExtentsModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.ZoomPan,(e=>new f.ZoomPanModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.OverviewRangeSelection,(e=>new n.OverviewRangeSelectionModifier(e)),!0),(0,P.registerType)(v.EBaseType.Chart2DModifier,m.EChart2DModifierType.Legend,(e=>new a.LegendModifier(e)),!0),t.buildModifiers=e=>{"string"==typeof e&&(e=JSON.parse(e,S.chartReviver));const t=[];if(Array.isArray(e))for(const i of e)t.push(x(i));else t.push(x(e));return t};const x=e=>e.type===m.EChart2DModifierType.Custom?(0,P.createType)(v.EBaseType.Chart2DModifier,e.customType,null,e.options):(0,P.createType)(v.EBaseType.Chart2DModifier,e.type,null,e.options)},12193:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildSeries=void 0;const r=i(75619),s=i(51885),a=i(33906),o=i(52881),n=i(22745),l=i(10749),d=i(21033),h=i(77057),u=i(58229),c=i(61704),p=i(62314),g=i(56705),y=i(592),f=i(56498),v=i(81856),m=i(15273),S=i(1367),P=i(9488),C=i(96852),x=i(75933),b=i(33802),A=i(31544),T=i(1126),E=i(98550),D=i(11555),R=i(12641),w=i(20667),M=i(43852),L=i(93522),I=i(65297),O=i(72362),k=i(95179),_=i(89078),V=i(21037),N=i(50085),F=i(68264),B=i(78146),H=i(32471),z=i(86109),Y=i(56664),G=i(1406),X=i(83262),W=i(71719),j=i(1391),U=i(88189),$=i(70033),q=i(52954),K=i(10763),Z=i(11043),J=i(2963),Q=i(28436),ee=i(30323),te=i(5337),ie=i(75323),re=i(44544),se=i(58996),ae=i(45921);function oe(e,t){return e.hasOwnProperty(t)}(0,ae.registerWasmType)(Z.EBaseType.PointMarker,ee.EPointMarkerType.Cross,((e,t)=>new n.CrossPointMarker(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.PointMarker,ee.EPointMarkerType.Ellipse,((e,t)=>new l.EllipsePointMarker(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.PointMarker,ee.EPointMarkerType.Sprite,((e,t)=>new d.SpritePointMarker(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.PointMarker,ee.EPointMarkerType.Square,((e,t)=>new h.SquarePointMarker(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.PointMarker,ee.EPointMarkerType.Triangle,((e,t)=>new u.TrianglePointMarker(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.PointMarker,ee.EPointMarkerType.X,((e,t)=>new c.XPointMarker(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.ShaderEffect,ie.EShaderEffectType.Glow,((e,t)=>new V.GlowEffect(e,t)),!0),(0,ae.registerWasmType)(Z.EBaseType.ShaderEffect,ie.EShaderEffectType.Shadow,((e,t)=>new F.ShadowEffect(e,t)),!0),(0,ae.registerType)(Z.EBaseType.Animation,K.EAnimationType.Fade,(e=>new p.FadeAnimation(e)),!0),(0,ae.registerType)(Z.EBaseType.Animation,K.EAnimationType.Scale,(e=>new g.ScaleAnimation(e)),!0),(0,ae.registerType)(Z.EBaseType.Animation,K.EAnimationType.Sweep,(e=>new y.SweepAnimation(e)),!0),(0,ae.registerType)(Z.EBaseType.Animation,K.EAnimationType.Wave,(e=>new f.WaveAnimation(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Default,(e=>new C.DataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Line,(e=>new b.LineSeriesDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Column,(e=>new S.ColumnSeriesDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Text,(e=>new T.TextDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Heatmap,(e=>new x.HeatMapDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.NonUniformHeatmap,(e=>new A.NonUniformHeatMapDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Bubble,(e=>new m.BubbleSeriesDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Band,(e=>new v.BandSeriesDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.DataLabelProvider,J.EDataLabelProviderType.Contours,(e=>new P.ContoursDataLabelProvider(e)),!0),(0,ae.registerType)(Z.EBaseType.MetadataGenerator,"Template",(e=>new a.TemplateMetadataGenerator(e)),!0),(0,ae.registerWasmType)(Z.EBaseType.PaletteProvider,Q.EPaletteProviderType.Gradient,((e,t)=>o.PaletteFactory.createGradient(e,t)),!0),(0,ae.registerType)(Z.EBaseType.PaletteProvider,Q.EPaletteProviderType.DataPointSelection,(e=>new r.DataPointSelectionPaletteProvider(e)),!0),t.buildSeries=(e,i,r)=>{"string"==typeof i&&(i=JSON.parse(i,se.chartReviver)),"string"==typeof r&&(r=JSON.parse(r,se.chartReviver));const s=[];Array.isArray(i)||(i=[i]);for(const a of i){let i;if(a.type===te.ESeriesType.BandSeries)i=new E.FastBandRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.BubbleSeries)i=new D.FastBubbleRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.CandlestickSeries)i=new R.FastCandlestickRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.ColumnSeries)i=new w.FastColumnRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.ImpulseSeries)i=new L.FastImpulseRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.LineSeries)i=new I.FastLineRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.MountainSeries)i=new O.FastMountainRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.ErrorBarsSeries)i=new M.FastErrorBarsRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.OhlcSeries)i=new k.FastOhlcRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.ScatterSeries)i=new q.XyScatterRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.SplineBandSeries)i=new B.SplineBandRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.SplineLineSeries)i=new H.SplineLineRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.SplineMountainSeries)i=new z.SplineMountainRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.UniformHeatmapSeries)i=new $.UniformHeatmapRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.NonUniformHeatmapSeries)i=new N.NonUniformHeatmapRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.UniformContoursSeries)i=new U.UniformContoursRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.TextSeries)i=new _.FastTextRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.StackedColumnSeries)i=new X.StackedColumnRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.StackedMountainSeries)i=new j.StackedMountainRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.SmoothStackedMountainSeries)i=new Y.SmoothStackedMountainRenderableSeries(e,a.options);else if(a.type===te.ESeriesType.StackedColumnCollection){const s=new G.StackedColumnCollection(e,a.options);s.add(...(0,t.buildSeries)(e,a.series,r)),i=s}else if(a.type===te.ESeriesType.StackedMountainCollection){const s=new W.StackedMountainCollection(e,a.options);s.add(...(0,t.buildSeries)(e,a.series,r)),i=s}if(i){const t=ne(e,a,r);t&&(i.dataSeries=t)}i&&s.push(i)}return s};const ne=(e,t,i)=>{const r=oe(a=t,"xyData")?{type:s.EDataSeriesType.Xy,options:a.xyData}:oe(a,"xyyData")?{type:s.EDataSeriesType.Xyy,options:a.xyyData}:oe(a,"xyzData")?{type:s.EDataSeriesType.Xyz,options:a.xyzData}:oe(a,"xyTextData")?{type:s.EDataSeriesType.XyText,options:a.xyTextData}:oe(a,"hlcData")?{type:s.EDataSeriesType.Hlc,options:a.hlcData}:oe(a,"ohlcData")?{type:s.EDataSeriesType.Ohlc,options:a.ohlcData}:!oe(a,"heatmapData")||a.type!==te.ESeriesType.UniformHeatmapSeries&&a.type!==te.ESeriesType.UniformContoursSeries?oe(a,"heatmapData")&&a.type===te.ESeriesType.NonUniformHeatmapSeries?{type:s.EDataSeriesType.HeatmapNonUniform,options:a.heatmapData}:void 0:{type:s.EDataSeriesType.HeatmapUniform,options:a.heatmapData};var a;if(r)return t.options&&"dataSeries"in t.options&&t.options.dataSeries&&r.options&&"filter"in r.options&&r.options.filter?(0,re.buildDataSeries)(e,r,i,t.options.dataSeries):(0,re.buildDataSeries)(e,r,i)}},64931:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(s,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function n(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,n)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.configure2DSurface=t.buildPieChart=t.build2DChart=void 0;const s=i(60872),a=i(53521),o=i(57384),n=i(70397),l=i(45481),d=i(83638),h=i(6153),u=i(55173),c=i(24478),p=i(27282),g=i(12119),y=i(27194),f=i(73145),v=i(55696),m=i(66010),S=i(99016),P=i(2705),C=i(60819),x=i(54948),b=i(66570),A=i(57419),T=i(79548),E=i(84626),D=i(11043),R=i(28709),w=i(73785),M=i(71993),L=i(25924),I=i(96841),O=i(12193),k=i(58996),_=i(45921),V=i(62916),N=i(68021);function F(e,t,i){if(e.xAxes&&t.xAxes.add(...(0,L.buildAxes)(i,e.xAxes)),0!==t.xAxes.size()||e.subCharts||t.xAxes.add(new x.NumericAxis(i)),e.yAxes&&t.yAxes.add(...(0,L.buildAxes)(i,e.yAxes)),0!==t.yAxes.size()||e.subCharts||t.yAxes.add(new x.NumericAxis(i)),e.series&&t.renderableSeries.add(...(0,O.buildSeries)(i,e.series,e.sharedData)),e.modifiers&&t.chartModifiers.add(...(0,I.buildModifiers)(e.modifiers)),e.annotations&&t.annotations.add(...(0,M.buildAnnotations)(e.annotations)),e.subCharts&&!t.isSubSurface)for(const r of e.subCharts)F(r,t.addSubChart(r.surface),i)}(0,_.registerType)(D.EBaseType.ThemeProvider,V.EThemeProviderType.Light,(()=>new C.SciChartJSLightTheme),!0),(0,_.registerType)(D.EBaseType.ThemeProvider,V.EThemeProviderType.DarkV2,(()=>new P.SciChartJSDarkv2Theme),!0),(0,_.registerType)(D.EBaseType.ThemeProvider,V.EThemeProviderType.Dark,(()=>new S.SciChartJSDarkTheme),!0),(0,_.registerType)(D.EBaseType.ThemeProvider,V.EThemeProviderType.Navy,(()=>new m.SciChartJsNavyTheme),!0),(0,_.registerType)(D.EBaseType.LayoutManager,R.ELayoutManagerType.Default,(e=>new l.LayoutManager(e)),!0),(0,_.registerType)(D.EBaseType.LayoutManager,R.ELayoutManagerType.CentralAxes,(e=>new n.CentralAxesLayoutManager(e)),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomInner,(e=>new s.BottomAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomOuter,(e=>new a.BottomAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.BottomStacked,(e=>new o.BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftInner,(e=>new d.LeftAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftOuter,(e=>new h.LeftAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.LeftStacked,(e=>new u.LeftAlignedOuterVerticallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightInner,(e=>new c.RightAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightOuter,(e=>new p.RightAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.RightStacked,(e=>new g.RightAlignedOuterVerticallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopInner,(e=>new y.TopAlignedInnerAxisLayoutStrategy(e)),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopOuter,(e=>new f.TopAlignedOuterAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.LayoutStrategy,w.ELayoutStrategyType.TopStacked,(e=>new v.TopAlignedOuterHorizontallyStackedAxisLayoutStrategy),!0),(0,_.registerType)(D.EBaseType.Loader,"Default",(()=>new b.DefaultSciChartLoader),!0),t.build2DChart=(e,t)=>r(void 0,void 0,void 0,(function*(){var i;let r;"string"==typeof t&&(t=JSON.parse(t,k.chartReviver)),r=(null==t?void 0:t.createSingle)?yield E.SciChartSurface.createSingle(e,null==t?void 0:t.surface):yield E.SciChartSurface.create(e,null==t?void 0:t.surface);let{wasmContext:s,sciChartSurface:a}=r;const o=N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupStart,{contextId:a.id});return F(t,a,s),t.onCreated&&("string"==typeof t.onCreated&&(a.onCreatedName=t.onCreated,t.onCreated=(0,_.getFunction)(D.EBaseType.OnCreateFunction,t.onCreated)),yield t.onCreated(a)),N.PerformanceDebugHelper.mark(N.EPerformanceMarkType.SetupEnd,{contextId:a.id,relatedId:null===(i=null==o?void 0:o.detail)||void 0===i?void 0:i.relatedId}),{wasmContext:s,sciChartSurface:a}})),t.buildPieChart=(e,t)=>r(void 0,void 0,void 0,(function*(){"string"==typeof t&&(t=JSON.parse(t,k.chartReviver));const i=yield T.SciChartPieSurface.create(e,null==t?void 0:t.surface);if(null==t?void 0:t.segments)for(const e of null==t?void 0:t.segments){const t=new A.PieSegment(e);i.pieSegments.add(t)}return t.onCreated&&("string"==typeof t.onCreated&&(i.onCreatedName=t.onCreated,t.onCreated=(0,_.getFunction)(D.EBaseType.OnCreateFunction,t.onCreated)),t.onCreated(i)),i})),t.configure2DSurface=F},58996:function(e,t,i){"use strict";var r=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(s,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function n(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,n)}l((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.chartBuilder=t.ensureRegistrations=t.configureChart=t.buildChart=t.chartReviver=void 0;const s=i(98140),a=i(87108),o=i(91465),n=i(71993),l=i(25924),d=i(44544),h=i(96841),u=i(12193),c=i(64931),p=i(45921);function g(e,t){switch(e){case"visibleRange":case"visibleRangeLimit":case"visibleRangeSizeLimit":case"growBy":return new s.NumberRange(t.min,t.max);case"padding":const e=t;return new a.Thickness(e.top,e.right,e.bottom,e.left);default:return null===t?NaN:t}}t.chartReviver=g,t.buildChart=(e,t)=>r(void 0,void 0,void 0,(function*(){if("string"==typeof t&&(t=JSON.parse(t,g)),t||(t={}),"type"in t){if(t.type===o.ESciChartSurfaceType.Default2D)return yield(0,c.build2DChart)(e,t.options);if(t.type===o.ESciChartSurfaceType.Pie2D)return yield(0,c.buildPieChart)(e,t.options);throw new Error(`Surface type: ${t.type} is not yet supported by the builder api`)}return yield(0,c.build2DChart)(e,t)})),t.configureChart=(e,t,i)=>{if("string"==typeof i&&(i=JSON.parse(i,g)),i||(i={}),"type"in i){if(i.type===o.ESciChartSurfaceType.Default2D)(0,c.configure2DSurface)(i.options,e,t);else if(i.type!==o.ESciChartSurfaceType.Pie2D)throw new Error(`Surface type: ${i.type} is not yet supported by the builder api`)}else(0,c.configure2DSurface)(i,e,t)},t.ensureRegistrations=()=>{},t.chartBuilder={buildChart:t.buildChart,chartReviver:g,build2DChart:c.build2DChart,buildPieChart:c.buildPieChart,configureChart:t.configureChart,buildSeries:u.buildSeries,buildDataSeries:d.buildDataSeries,buildModifiers:h.buildModifiers,buildAxes:l.buildAxes,buildAnnotations:n.buildAnnotations,registerType:p.registerType,registerWasmType:p.registerWasmType,registerFunction:p.registerFunction}},45921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSubTypes=t.createType=t.getFunction=t.registerFunction=t.registerWasmType=t.registerType=void 0;const i=new Map;t.registerType=(e,t,r,s=!1)=>{const a=e+":"+t;if(i.has(a)&&!s)throw new Error("Type "+a+" is already registered. Call with overWrite: true if you intended to replace it.");i.set(a,{func:r})},t.registerWasmType=(e,t,r,s=!1)=>{const a=e+":"+t;if(i.has(a)&&!s)throw new Error("Type "+a+" is already registered. Call with overWrite: true if you intended to replace it.");i.set(a,{wasm:!0,func:r})},t.registerFunction=(e,t,r,s=!1)=>{const a=e+":"+t;if(i.has(a)&&!s)throw new Error("Function "+a+" is already registered. Call with overWrite: true if you intended to replace it.");i.set(a,{func:r})},t.getFunction=(e,t)=>{const r=e+":"+t,s=i.get(r);if(s)return s.func;throw new Error("Nothing registered for "+r)},t.createType=(e,t,r,s)=>{const a=e+":"+t,o=i.get(a);if(o){const{wasm:e,func:t}=o;return e?t(r,s):t(s)}throw new Error("Nothing registered for "+a)},t.getSubTypes=e=>Array.from(i.keys()).map((e=>e.split(":"))).filter((t=>t[0]===e)).map((e=>e[1]))},3810:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CameraController=t.ECameraProjectionMode=void 0;const r=i(3214),s=i(23866),a=i(50605),o=i(16110),n=i(17542);var l;!function(e){e.Perspective="Perspective",e.Orthogonal="Orthogonal"}(l=t.ECameraProjectionMode||(t.ECameraProjectionMode={})),t.CameraController=class{constructor(e,t){var i;this.aspectRatioProperty=1.5,this.idProperty="Default",this.farClipProperty=4e3,this.fieldOfViewProperty=60,this.nearClipProperty=1,this.orbitalPitchProperty=0,this.orbitalYawProperty=0,this.orthoHeightProperty=400,this.orthoWidthProperty=600,this.positionProperty=o.Vector3.zero,this.projectionModeProperty=l.Perspective,this.targetProperty=o.Vector3.zero,this.webAssemblyContext=e,this.propertyChanged=new r.EventHandler,this.resetToDefaults(),this.position=(null==t?void 0:t.position)||this.position,this.target=(null==t?void 0:t.target)||this.target,this.id=(null==t?void 0:t.id)||this.id,this.debugPositionsProperty=null!==(i=null==t?void 0:t.debugPositions)&&void 0!==i&&i}get id(){return this.idProperty}set id(e){this.idProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ID)}get orthoHeight(){return this.orthoHeightProperty}set orthoHeight(e){this.orthoHeightProperty!==e&&(this.orthoHeightProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORTHOHEIGHT))}get orthoWidth(){return this.orthoWidthProperty}set orthoWidth(e){this.orthoWidthProperty!==e&&(this.orthoWidthProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORTHOWIDTH))}get projectionMode(){return this.projectionModeProperty}set projectionMode(e){this.projectionModeProperty!==e&&(this.projectionModeProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_PROJECTIONMODE))}get aspectRatio(){return this.aspectRatioProperty}set aspectRatio(e){this.aspectRatioProperty!==e&&(this.aspectRatioProperty=e,this.orthoWidth=this.orthoHeight*this.aspectRatioProperty,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ASPECTRATIO))}get isAttached(){return this.isAttachedProperty}set isAttached(e){this.isAttachedProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_ISATTACHED)}get radius(){return this.target.subtract(this.position).length}set radius(e){e<=1&&(e=1),this.radius!==e&&(this.position=this.target.subtract(this.forward.scalarMultiply(e)),this.notifyPropertyChanged(n.PROPERTY.CAMERA_RADIUS))}get orbitalPitch(){return this.orbitalPitchProperty}set orbitalPitch(e){if(this.orbitalPitchProperty===e)return;this.orbitalPitchProperty=e>90?89.9:e<-90?-89.9:e;const t=this.webAssemblyContext.Math3D.PitchAndYawToDirection(this.orbitalPitchProperty,this.orbitalYawProperty);try{let e=new o.Vector3(t.x,t.y,t.z);e=e.scalarMultiply(this.radius),this.position=this.target.subtract(e),this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORBITALPITCH)}finally{null==t||t.delete()}}get orbitalYaw(){return this.orbitalYawProperty}set orbitalYaw(e){if(this.orbitalYawProperty===e)return;this.orbitalYawProperty=e;const t=this.webAssemblyContext.Math3D.PitchAndYawToDirection(this.orbitalPitchProperty,this.orbitalYawProperty);try{let e=new o.Vector3(t.x,t.y,t.z);e=e.scalarMultiply(this.radius),this.position=this.target.subtract(e),this.notifyPropertyChanged(n.PROPERTY.CAMERA_ORBITALYAW)}finally{null==t||t.delete()}}get farClip(){return this.farClipProperty}set farClip(e){this.farClipProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_FARCLIP)}get nearClip(){return this.nearClipProperty}set nearClip(e){this.nearClipProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_NEARCLIP)}get fieldOfView(){return this.fieldOfViewProperty}set fieldOfView(e){this.fieldOfViewProperty=e,this.notifyPropertyChanged(n.PROPERTY.CAMERA_FIELDOFVIEW)}get upGlobal(){return new o.Vector3(0,1,0)}get side(){const e=this.forward,t=e.crossProduct(this.upGlobal).crossProduct(e).crossProduct(e);return t.normalize(),t}get forward(){const e=this.target.subtract(this.position);return e.normalize(),e}get up(){const e=this.forward,t=e.crossProduct(this.upGlobal).crossProduct(e);return t.normalize(),t}get target(){return this.targetProperty}set target(e){if(this.targetProperty===e)return;let t,i;this.targetProperty=e;try{t=this.forward.toTsrVector3(this.webAssemblyContext),i=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(t),this.orbitalPitchProperty=i.pitch,this.orbitalYawProperty=i.yaw,this.notifyPropertyChanged(n.PROPERTY.CAMERA_TARGET)}finally{null==t||t.delete(),null==i||i.delete()}}get position(){return this.positionProperty}set position(e){if(this.positionProperty===e)return;let t,i;this.positionProperty=e;try{t=this.forward.toTsrVector3(this.webAssemblyContext),i=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(t),this.orbitalPitchProperty=i.pitch,this.orbitalYawProperty=i.yaw,this.notifyPropertyChanged(n.PROPERTY.CAMERA_POSITION)}finally{null==t||t.delete(),null==i||i.delete()}}toOrthogonal(){this.projectionModeProperty!==l.Orthogonal&&(this.projectionModeProperty=l.Orthogonal,this.orthoWidthProperty=this.radius,this.orthoHeightProperty=this.orthoWidth/this.aspectRatio,this.notifyPropertyChanged(n.PROPERTY.CAMERA_PROJECTIONMODE))}toPerspective(){this.projectionModeProperty!==l.Perspective&&(this.projectionModeProperty=l.Perspective,this.radius=this.orthoWidth,this.notifyPropertyChanged(n.PROPERTY.CAMERA_PROJECTIONMODE))}resetToDefaults(){let e,t;this.positionProperty=new o.Vector3(-1e3,1e3,-1e3),this.targetProperty=new o.Vector3(0,0,0),this.fieldOfViewProperty=60,this.nearClipProperty=1,this.farClipProperty=4e3,this.projectionModeProperty=l.Perspective,this.aspectRatioProperty=1.5,this.orthoWidthProperty=600,this.orthoHeightProperty=400;try{e=this.forward.toTsrVector3(this.webAssemblyContext),t=this.webAssemblyContext.Math3D.DirectionToPitchAndYaw(e),this.orbitalPitch=t.pitch,this.orbitalYaw=t.yaw}finally{null==t||t.delete(),null==e||e.delete()}}updateEngineCamera(e){let t,i,r;s.Guard.notNull(e,"tsrCamera");try{t=this.position.toTsrVector3(this.webAssemblyContext),i=this.target.toTsrVector3(this.webAssemblyContext),r=this.up.toTsrVector3(this.webAssemblyContext),e.SetLoc(t),e.SetAt(i),e.SetFarClip(this.farClip),e.SetNearClip(this.nearClip),e.SetFovAngle(this.webAssemblyContext.Math3D.DegToRad(this.fieldOfView)),e.SetProjectionMode(this.projectionMode===l.Perspective?this.webAssemblyContext.eTSRCameraProjectionMode.CAMERA_PROJECTIONMODE_PERSPECTIVE:this.webAssemblyContext.eTSRCameraProjectionMode.CAMERA_PROJECTIONMODE_ORTHOGONAL),e.SetOrthoWidth(this.orthoWidth),e.SetOrthoHeight(this.orthoHeight),e.SetAspectRatio(this.aspectRatio),e.SetYaw(this.webAssemblyContext.Math3D.DegToRad(this.orbitalYaw)),e.SetPitch(this.webAssemblyContext.Math3D.DegToRad(this.orbitalPitch)),e.SetUp(r)}finally{null==t||t.delete(),null==i||i.delete(),null==r||r.delete()}}notifyPropertyChanged(e){var t;!this.debugPositionsProperty||e!==n.PROPERTY.CAMERA_POSITION&&e!==n.PROPERTY.CAMERA_TARGET||console.log(`SciChart.js Camera P=${this.position.toString()}, T=${this.target.toString()}`),null===(t=this.propertyChanged)||void 0===t||t.raiseEvent(new a.PropertyChangedEventArgs(e))}debugOutput(){const e=[`Camera id='${this.id}': `,` position: ${this.position.toString()}`,` target: ${this.target.toString()}`,` pitch: ${this.orbitalPitch.toFixed(2)} degrees`,` yaw: ${this.orbitalYaw.toFixed(2)} degrees`,` up Vector: ${this.up.toString()}`,` forward Vector: ${this.forward.toString()}`,` projectionMode: ${this.projectionMode}`];return this.projectionMode===l.Orthogonal?(e.push(` orthoWidth: ${this.orthoWidth.toFixed(2)}`),e.push(` orthoHeight: ${this.orthoHeight.toFixed(2)}`)):(e.push(` radius: ${this.radius.toFixed(2)}`),e.push(` fieldOfView: ${this.fieldOfView.toFixed(2)} degrees`)),e.forEach((e=>console.log(e))),e}}},63220:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartModifierBase3D=void 0;const r=i(13063);class s extends r.ChartModifierBase{constructor(e){super(e),this.typeMap=new Map}get modifierType(){return r.EModifierType.Chart3DModifier}toJSON(){const e={id:this.id,executeOn:this.executeOn};return{type:this.type,options:e}}}t.ChartModifierBase3D=s},89577:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomChartModifier3D=void 0;const r=i(89955),s=i(63220);class a extends s.ChartModifierBase3D{constructor(e){super(e),this.type=r.EChart3DModifierType.Custom}}t.CustomChartModifier3D=a},47737:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MouseWheelZoomModifier3D=void 0;const r=i(89955),s=i(3810),a=i(63220);class o extends a.ChartModifierBase3D{constructor(e){super(e),this.type=r.EChart3DModifierType.MouseWheelZoom,this.mouseWheelSensitivity=(null==e?void 0:e.mouseWheelSensitivity)||.1}modifierMouseWheel(e){super.modifierMouseWheel(e);const t=this.parentSurface;if(!t)return;const i=t.camera;if(!i)return;const r=e.mouseWheelDelta,a=i.radius,o=(a+r*this.mouseWheelSensitivity)/a;i.projectionMode===s.ECameraProjectionMode.Perspective?i.radius*=o:(i.orthoWidth*=o,i.orthoHeight*=o),e.handled=!0}toJSON(){const e=super.toJSON(),t={mouseWheelSensitivity:this.mouseWheelSensitivity};return Object.assign(e.options,t),e}}t.MouseWheelZoomModifier3D=o},17707:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrbitModifier3D=void 0;const r=i(89955),s=i(73792);class a extends s.PinchZoomModifier3D{constructor(e){var t;super(e),this.type=r.EChart3DModifierType.Orbit,this.enableZoom=!1,this.enableZoom=null!==(t=null==e?void 0:e.enableZoom)&&void 0!==t?t:this.enableZoom}modifierMouseDown(e){if(!this.isAttached)throw new Error("Should not call OrbitModifier3D.modifierMouseDown if not attached");this.executeOn===e.button&&(super.modifierMouseDown(e),this.activePointerEvents.set(e.pointerId,e))}modifierMouseMove(e){this.updatePointerInfo(e),this.previousPoint&&(this.enableZoom&&super.getIsActionAllowed(e)&&super.performModifierAction(e),this.getIsActionAllowed(e)&&this.performModifierAction(e))}modifierMouseUp(e){if(super.modifierMouseUp(e),this.activePointerEvents.size>0){const t=this.activePointerEvents.values().next().value;e.target.setPointerCapture(t.pointerId)}}toJSON(){const e=super.toJSON(),t={enableZoom:this.enableZoom};return Object.assign(e.options,t),e}performModifierAction(e){const t=this.parentSurface.camera;if(!t)return;const i=e.mousePoint,r=.2*(this.previousPoint.x-i.x),s=.2*(this.previousPoint.y-i.y);t.orbitalYaw+=r,t.orbitalPitch-=s}getIsActionAllowed(e){return!(this.activePointerEvents.values().next().value.pointerId!==e.pointerId||this.activePointerEvents.size>1)}}t.OrbitModifier3D=a},73792:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PinchZoomModifier3D=void 0;const r=i(89955),s=i(3810),a=i(63220);class o extends a.ChartModifierBase3D{constructor(e){var t;super(e),this.growFactor=.5,this.type=r.EChart3DModifierType.PinchZoom,this.growFactor=null!==(t=null==e?void 0:e.growFactor)&&void 0!==t?t:this.growFactor}modifierMouseDown(e){if(super.modifierMouseDown(e),!this.isAttached)throw new Error("Should not call PinchZoomModifier3D.modifierMouseDown if not attached");("touch"===e.pointerType||"pen"===e.pointerType)&&this.activePointerEvents.set(e.pointerId,e)}modifierMouseMove(e){var t;super.modifierMouseMove(e),null===(t=this.activePointerEvents.get(e.pointerId))||void 0===t||t.mousePoint,this.activePointerEvents.has(e.pointerId)&&this.activePointerEvents.set(e.pointerId,e),this.getIsActionAllowed(e)&&this.performModifierAction(e)}modifierMouseUp(e){super.modifierMouseUp(e),this.removeFromActiveTouchEvents(e)}toJSON(){const e=super.toJSON(),t={growFactor:this.growFactor};return Object.assign(e.options,t),e}performZoom(e,t,i){const r=this.parentSurface;if(!r)return;const a=r.camera;if(!a)return;const o=Math.sqrt(Math.pow(t,2)+Math.pow(i,2)),n=Math.sqrt(Math.pow(this.previousHorizontalTouchPointsDistance,2)+Math.pow(this.previousVerticalTouchPointsDistance,2)),l=a.radius,d=(l+(n-o)*this.growFactor)/l;a.projectionMode===s.ECameraProjectionMode.Perspective?a.radius*=d:(a.orthoWidth*=d,a.orthoHeight*=d)}removeFromActiveTouchEvents(e){this.activePointerEvents.delete(e.pointerId),this.activePointerEvents.size<2&&(this.previousHorizontalTouchPointsDistance=void 0,this.previousVerticalTouchPointsDistance=void 0)}performModifierAction(e){const[{mousePoint:t},{mousePoint:i}]=Array.from(this.activePointerEvents.values()),r=Math.abs(t.x-i.x),s=Math.abs(t.y-i.y);void 0!==this.previousHorizontalTouchPointsDistance&&void 0!==this.previousVerticalTouchPointsDistance&&this.performZoom(e.mousePoint,r,s),this.previousHorizontalTouchPointsDistance=r,this.previousVerticalTouchPointsDistance=s}getIsActionAllowed(e){return("touch"===e.pointerType||"pen"===e.pointerType)&&this.activePointerEvents.size>=2}}t.PinchZoomModifier3D=o},68491:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResetCamera3DModifier=void 0;const r=i(33485),s=i(10276),a=i(70162),o=i(89955),n=i(3810),l=i(63220);class d extends l.ChartModifierBase3D{constructor(e){var t,i,r;super(e),this.type=o.EChart3DModifierType.ZoomExtents,this.isAnimated=!0,this.animationDuration=400,this.easingFunction=s.easing.outExpo,this.isAnimated=null===(t=null==e?void 0:e.isAnimated)||void 0===t||t,this.animationDuration=null!==(i=null==e?void 0:e.animationDuration)&&void 0!==i?i:400,(null==e?void 0:e.easingFunction)&&"string"==typeof e.easingFunction&&(e.easingFunction=s.easing[e.easingFunction]),this.easingFunction=null!==(r=null==e?void 0:e.easingFunction)&&void 0!==r?r:s.easing.outExpo,this.destination=null==e?void 0:e.destination}onAttach(){if(!this.destination){const e=this.parentSurface;if(!e)return;const t=e.camera;if(!t)return;this.destination={radius:t.radius,pitch:t.orbitalPitch,yaw:t.orbitalYaw,width:t.orthoWidth,height:t.orthoHeight}}}modifierDoubleClick(e){var t,i;const s=this.parentSurface;if(!s)return;const o=s.camera;if(o){if(o.projectionMode===n.ECameraProjectionMode.Perspective){const e=new a.GenericAnimation({from:{radius:o.radius,pitch:o.orbitalPitch,yaw:o.orbitalYaw},to:null!==(t=this.destination)&&void 0!==t?t:{radius:1,pitch:0,yaw:0},onAnimate:(e,t,i)=>{o.radius=r.DoubleAnimator.interpolate(e.radius,t.radius,i),o.orbitalPitch=r.DoubleAnimator.interpolate(e.pitch,t.pitch,i),o.orbitalYaw=r.DoubleAnimator.interpolate(e.yaw,t.yaw,i)},duration:this.isAnimated?this.animationDuration:0,ease:this.easingFunction});s.addAnimation(e)}else{const e=new a.GenericAnimation({from:{width:o.orthoWidth,height:o.orthoHeight},to:null!==(i=this.destination)&&void 0!==i?i:{width:1,height:1},onAnimate:(e,t,i)=>{o.orthoWidth=r.DoubleAnimator.interpolate(e.width,t.width,i),o.orthoHeight=r.DoubleAnimator.interpolate(e.height,t.height,i)},duration:this.isAnimated?this.animationDuration:0,ease:this.easingFunction});s.addAnimation(e)}e.handled=!0}}toJSON(){const e=super.toJSON(),t={animationDuration:this.animationDuration,easingFunction:this.easingFunction.name,isAnimated:this.isAnimated,destination:this.destination};return Object.assign(e.options,t),e}}t.ResetCamera3DModifier=d},66477:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.adjustTooltipPosition3D=t.TooltipModifier3D=void 0;const r=i(62773),s=i(31306),a=i(56744),o=i(89955),n=i(32873),l=i(23291),d=i(58042),h=i(26079),u=i(63220);class c extends u.ChartModifierBase3D{constructor(e){var t,i,r,s,a,n,l,d,h,u,c,y;super(e),this.type=o.EChart3DModifierType.Tooltip,this.showTooltip=!0,this.includedSeriesMap=new Map,this.tooltipSvgTemplateProperty=g,this.tooltipContainerBackgroundProperty="#228B22",this.tooltipTextStrokeProperty="#fff",this.tooltipDataTemplateProperty=p,this.crosshairStrokeProperty=null!==(t=null==e?void 0:e.crosshairStroke)&&void 0!==t?t:"#FF6600",this.crosshairStrokeThicknessProperty=null!==(i=null==e?void 0:e.crosshairStrokeThickness)&&void 0!==i?i:2,this.isCrosshairVisibleProperty=null===(r=null==e?void 0:e.isCrosshairVisible)||void 0===r||r,(null==e?void 0:e.tooltipSvgTemplate)&&"string"==typeof e.tooltipSvgTemplate&&(this.typeMap.set("tooltipSvgTemplate",e.tooltipSvgTemplate),e.tooltipSvgTemplate=getFunction(EBaseType.OptionFunction,e.tooltipSvgTemplate)),this.tooltipSvgTemplateProperty=null!==(s=null==e?void 0:e.tooltipSvgTemplate)&&void 0!==s?s:this.tooltipSvgTemplateProperty,this.tooltipContainerBackgroundProperty=null!==(a=null==e?void 0:e.tooltipContainerBackground)&&void 0!==a?a:this.tooltipContainerBackgroundProperty,this.tooltipTextStrokeProperty=null!==(n=null==e?void 0:e.tooltipTextStroke)&&void 0!==n?n:this.tooltipTextStrokeProperty,this.showTooltip=null!==(l=null==e?void 0:e.showTooltip)&&void 0!==l?l:this.showTooltip,this.placementDivIdProperty=null!==(d=null==e?void 0:e.placementDivId)&&void 0!==d?d:this.placementDivIdProperty,(null==e?void 0:e.tooltipLegendTemplate)&&"string"==typeof e.tooltipLegendTemplate&&(this.typeMap.set("tooltipLegendTemplate",e.tooltipLegendTemplate),e.tooltipLegendTemplate=getFunction(EBaseType.OptionFunction,e.tooltipLegendTemplate)),this.tooltipLegendTemplateProperty=null!==(h=null==e?void 0:e.tooltipLegendTemplate)&&void 0!==h?h:this.tooltipLegendTemplateProperty,this.tooltipLegendOffsetXProperty=null!==(u=null==e?void 0:e.tooltipLegendOffsetX)&&void 0!==u?u:this.tooltipLegendOffsetX,this.tooltipLegendOffsetYProperty=null!==(c=null==e?void 0:e.tooltipLegendOffsetY)&&void 0!==c?c:this.tooltipLegendOffsetY,(null==e?void 0:e.tooltipDataTemplate)&&"string"==typeof e.tooltipDataTemplate&&(this.typeMap.set("tooltipDataTemplate",e.tooltipDataTemplate),e.tooltipDataTemplate=getFunction(EBaseType.OptionFunction,e.tooltipDataTemplate)),this.tooltipDataTemplateProperty=null!==(y=null==e?void 0:e.tooltipDataTemplate)&&void 0!==y?y:this.tooltipDataTemplateProperty}includeSeries(e,t){this.includedSeriesMap.set(e,t)}getIncludedSeries(){return this.parentSurface.renderableSeries.asArray().filter((e=>e.isVisible&&!1!==this.includedSeriesMap.get(e)))}get isCrosshairVisible(){return this.isCrosshairVisibleProperty}set isCrosshairVisible(e){var t;this.isCrosshairVisibleProperty=e,null===(t=this.parentSurface)||void 0===t||t.invalidateElement()}get crosshairStroke(){return this.crosshairStrokeProperty}set crosshairStroke(e){var t;this.crosshairStrokeProperty=e,null===(t=this.parentSurface)||void 0===t||t.invalidateElement()}get crosshairStrokeThickness(){return this.crosshairStrokeThicknessProperty}set crosshairStrokeThickness(e){var t;this.crosshairStrokeThicknessProperty=e,null===(t=this.parentSurface)||void 0===t||t.invalidateElement()}get tooltipSvgTemplate(){return this.tooltipSvgTemplateProperty}set tooltipSvgTemplate(e){this.tooltipSvgTemplateProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.tooltipSvgTemplate=e)}get tooltipLegendTemplate(){return this.tooltipLegendTemplateProperty}set tooltipLegendTemplate(e){this.tooltipLegendTemplateProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.tooltipLegendTemplate=e)}get tooltipDataTemplate(){return this.tooltipDataTemplateProperty}set tooltipDataTemplate(e){this.tooltipDataTemplateProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.tooltipDataTemplate=e)}get tooltipContainerBackground(){return this.tooltipContainerBackgroundProperty}set tooltipContainerBackground(e){this.tooltipContainerBackgroundProperty!==e&&(this.tooltipContainerBackgroundProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.containerBackground=e))}get tooltipLegendOffsetX(){return this.tooltipLegendOffsetXProperty}set tooltipLegendOffsetX(e){this.tooltipLegendOffsetXProperty!==e&&(this.tooltipLegendOffsetXProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.tooltipLegendOffsetX=e))}get tooltipLegendOffsetY(){return this.tooltipLegendOffsetYProperty}set tooltipLegendOffsetY(e){this.tooltipLegendOffsetYProperty!==e&&(this.tooltipLegendOffsetYProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.tooltipLegendOffsetY=e))}get tooltipTextStroke(){return this.tooltipTextStrokeProperty}set tooltipTextStroke(e){this.tooltipTextStrokeProperty!==e&&(this.tooltipTextStrokeProperty=e,this.tooltipAnnotation&&(this.tooltipAnnotation.textStroke=e))}get placementDivId(){return this.placementDivIdProperty}set placementDivId(e){this.placementDivIdProperty!==e&&(this.placementDivIdProperty=e,this.notifyPropertyChanged("PLACEMENT_DIV_ID"))}onAttach(){super.onAttach(),this.parentSurface&&(this.parentSurface.isHitTestEnabled=!0,this.crosshairEntity=(0,a.deleteSafe)(this.crosshairEntity),this.crosshairEntity=new h.CrosshairLinesSceneEntity(this.parentSurface.webAssemblyContext3D),this.parentSurface.rootEntity.children.add(this.crosshairEntity),this.tooltipAnnotation=new d.TooltipSvgAnnotation3D({xCoordinateMode:s.ECoordinateMode.Pixel,yCoordinateMode:s.ECoordinateMode.Pixel,tooltipSvgTemplate:this.tooltipSvgTemplate,containerBackground:this.tooltipContainerBackground,textStroke:this.tooltipTextStroke,tooltipLegendTemplate:this.tooltipLegendTemplate,tooltipLegendOffsetX:this.tooltipLegendOffsetX,tooltipLegendOffsetY:this.tooltipLegendOffsetY,placementDivId:this.placementDivId,tooltipDataTemplate:this.tooltipDataTemplate}),this.parentSurface.modifierAnnotations.add(this.tooltipAnnotation))}onDetach(){super.onDetach(),this.parentSurface&&(this.parentSurface.rootEntity.children.remove(this.crosshairEntity),this.tooltipAnnotation.delete(),this.parentSurface.modifierAnnotations.remove(this.tooltipAnnotation)),this.crosshairEntity=(0,a.deleteSafe)(this.crosshairEntity)}modifierMouseMove(e){this.activePointerEvents.set(e.pointerId,e),super.modifierMouseMove(e),this.getIsActionAllowed(e)&&this.update()}onParentSurfaceRendered(){this.update()}update(){var e,t,i,r,s;if(!this.mousePoint)return;const{x:a,y:o}=this.mousePoint,l=this.getIncludedSeries().map((e=>e.hitTest(this.mousePoint))).find((e=>e.isHit));if(null==l?void 0:l.isHit){if(this.crosshairEntity&&this.isCrosshairVisible&&(this.crosshairEntity.worldDimensions=null===(e=this.parentSurface)||void 0===e?void 0:e.worldDimensions,this.crosshairEntity.cameraPosition=null===(i=null===(t=this.parentSurface)||void 0===t?void 0:t.camera)||void 0===i?void 0:i.position,this.crosshairEntity.stroke=this.crosshairStroke,this.crosshairEntity.strokeThickness=this.crosshairStrokeThickness,this.crosshairEntity.location=l.hitWorldCoords,this.crosshairEntity.isVisible=this.isCrosshairVisible,null===(r=this.parentSurface)||void 0===r||r.invalidateElement()),this.tooltipAnnotation.isHidden=!this.showTooltip,this.showTooltip){const e=(0,n.translateToNotScaled)(a),t=(0,n.translateToNotScaled)(o);this.tooltipAnnotation.x1=e,this.tooltipAnnotation.y1=t}(this.showTooltip||this.tooltipLegendTemplate)&&(this.tooltipAnnotation.seriesInfo=l)}else this.tooltipAnnotation.seriesInfo=void 0,this.crosshairEntity.isVisible=!1,this.tooltipAnnotation.isHidden=!0,null===(s=this.parentSurface)||void 0===s||s.invalidateElement()}}t.TooltipModifier3D=c;const p=(e,t)=>{const i=[];return t.title&&i.push(t.title),e&&e.isHit&&(e.dataSeriesName&&i.push(e.dataSeriesName),(e.dataSeriesType===l.EDataSeriesType3D.Xyz3D||e.dataSeriesType===l.EDataSeriesType3D.UniformGrid3D)&&(i.push(`X: ${e.xValue}`),i.push(`Y: ${e.yValue}`),i.push(`Z: ${e.zValue}`))),i},g=(e,i)=>{var s;const a=`id_${Date.now()}`,o=(null!==(s=i.tooltipDataTemplate)&&void 0!==s?s:p)(e,i);if(0===o.length)return"<svg></svg>";const{width:n,height:l}=(0,r.calcTooltipSize)(o);(0,t.adjustTooltipPosition3D)(n,l,i);let d="";return o.forEach(((e,t)=>{d+=`<tspan x="8" dy="1.2em">${e}</tspan>`})),`<svg class="scichart__cursor-tooltip" width="${n}" height="${l}">\n <defs>\n <filter id="${a}" x="0" y="0" width="200%" height="200%">\n <feOffset result="offOut" in="SourceAlpha" dx="3" dy="3" />\n <feGaussianBlur result="blurOut" in="offOut" stdDeviation="3" />\n <feBlend in="SourceGraphic" in2="blurOut" mode="normal" />\n </filter>\n </defs>\n <rect rx="4" ry="4" width="95%" height="90%" fill="${i.containerBackground}" filter="url(#${a})" />\n <svg width="100%">\n <text x="8" y="3" font-size="13" font-family="Verdana" dy="0" fill="${i.textStroke}">${d}</text>\n </svg>\n </svg>`};t.adjustTooltipPosition3D=(e,t,i)=>{const{seriesViewRect:r}=i.parentSurface,s=i.x1,a=i.y1,o=(0,n.translateToNotScaled)(r.width)-s<e?-e:5,l=(0,n.translateToNotScaled)(r.height)-a<t?-t:5;i.xCoordShift=o,i.yCoordShift=l}},23291:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseDataSeries3D=t.EDataSeriesType3D=void 0;const r=i(55023),s=i(3214);var a;(a=t.EDataSeriesType3D||(t.EDataSeriesType3D={})).Xyz3D="Xyz",a.UniformGrid3D="UniformGrid3D",a.NonUniformGrid3D="NonUniformGrid3D";class o extends r.DeletableEntity{constructor(e,t){var i;super(),this.webAssemblyContext=e,this.dataSeriesNameProperty=null!==(i=null==t?void 0:t.dataSeriesName)&&void 0!==i?i:this.dataSeriesNameProperty,this.dataChanged=new s.EventHandler,this.isModifiedProperty=!0}get dataSeriesName(){return this.dataSeriesNameProperty}set dataSeriesName(e){this.dataSeriesNameProperty=e,this.notifyDataChanged()}get isModified(){return this.isModifiedProperty}getIsDeleted(){return this.isDeleted}delete(){this.isDeleted=!0,this.webAssemblyContext=void 0}notifyDataChanged(){this.isModifiedProperty=!0,this.dataChanged.raiseEvent()}resetModified(){this.isModifiedProperty=!1}}t.BaseDataSeries3D=o},13426:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGridDataSeries3D=void 0;const r=i(98140),s=i(23291);class a extends s.BaseDataSeries3D{constructor(e,t){super(e,t),this.setYValues(null==t?void 0:t.yValues)}get yRange(){if(!this.yRangeCached){let e=-Number.MAX_VALUE,t=Number.MAX_VALUE;for(let i=0;i<this.zSizeProperty;i++)for(let r=0;r<this.xSizeProperty;r++){const s=this.yValuesProperty[i][r];e=Math.max(s,e),t=Math.min(s,t)}this.yRangeCached=new r.NumberRange(t,e)}return this.yRangeCached}get zSize(){return this.zSizeProperty}get xSize(){return this.xSizeProperty}setYValues(e){if(!e||!e[0])return this.yValuesProperty=void 0,this.xSizeProperty=0,void(this.zSizeProperty=0);const t=e[0].length;e.forEach((e=>{if(!e)throw new Error("Each row in YValues must be defined. See how to declare a 2D array in Javascript here https://s