scichart 2.0.0-alpha.1971 → 2.0.0-alpha.1991
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/Builder/buildAxis.d.ts +3 -3
- package/Builder/buildDataSeries.d.ts +44 -4
- package/Builder/buildDataSeries.js +66 -0
- package/Builder/buildSeries.d.ts +1 -1
- package/Builder/buildSeries.js +1 -2
- package/Builder/buildSurface.d.ts +14 -6
- package/Builder/buildSurface.js +13 -8
- package/Builder/chartBuilder.d.ts +12 -6
- package/Builder/chartBuilder.js +6 -6
- package/Charting/ChartModifiers/LegendModifier.d.ts +4 -0
- package/Charting/ChartModifiers/LegendModifier.js +2 -1
- package/Charting/ChartModifiers/SeriesSelectionModifier.d.ts +14 -6
- package/Charting/ChartModifiers/SeriesSelectionModifier.js +10 -10
- package/Charting/ChartModifiers/ZoomExtentsModifier.d.ts +13 -0
- package/Charting/ChartModifiers/ZoomExtentsModifier.js +16 -4
- package/Charting/Drawing/BrushCache.js +6 -8
- package/Charting/LayoutManager/BottomAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/LeftAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/RightAlignedOuterVerticallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/LayoutManager/TopAlignedOuterHorizontallyStackedAxisLayoutStrategy.js +1 -0
- package/Charting/Model/BaseDataSeries.d.ts +61 -53
- package/Charting/Model/BaseDataSeries.js +145 -81
- package/Charting/Model/BaseHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/DataPointSelectionPaletteProvider.d.ts +6 -4
- package/Charting/Model/DataPointSelectionPaletteProvider.js +10 -1
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.d.ts +106 -0
- package/Charting/Model/Filters/OhlcScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyLinearTrendFilter.d.ts +112 -1
- package/Charting/Model/Filters/XyLinearTrendFilter.js +21 -0
- package/Charting/Model/Filters/XyMovingAverageFilter.d.ts +110 -1
- package/Charting/Model/Filters/XyMovingAverageFilter.js +21 -0
- package/Charting/Model/Filters/XyRatioFilter.d.ts +111 -2
- package/Charting/Model/Filters/XyRatioFilter.js +34 -3
- package/Charting/Model/Filters/XyScaleOffsetFilter.d.ts +112 -1
- package/Charting/Model/Filters/XyScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyyScaleOffsetFilter.d.ts +116 -0
- package/Charting/Model/Filters/XyyScaleOffsetFilter.js +21 -0
- package/Charting/Model/Filters/XyzScaleOffsetFilter.d.ts +116 -0
- package/Charting/Model/Filters/XyzScaleOffsetFilter.js +21 -0
- package/Charting/Model/IDataSeries.d.ts +18 -3
- package/Charting/Model/IDataSeries.js +12 -1
- package/Charting/Model/IPaletteProvider.d.ts +8 -8
- package/Charting/Model/OhlcDataSeries.d.ts +39 -10
- package/Charting/Model/OhlcDataSeries.js +106 -19
- package/Charting/Model/UniformHeatmapDataSeries.d.ts +2 -2
- package/Charting/Model/XyyDataSeries.d.ts +21 -12
- package/Charting/Model/XyyDataSeries.js +70 -16
- package/Charting/Model/XyzDataSeries.d.ts +20 -5
- package/Charting/Model/XyzDataSeries.js +62 -6
- package/Charting/Services/SciChartRenderer.js +3 -1
- package/Charting/Visuals/Annotations/AnnotationBase.js +5 -9
- package/Charting/Visuals/Annotations/AxisMarkerAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/HorizontalLineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/LineAnnotation.js +0 -3
- package/Charting/Visuals/Annotations/VerticalLineAnnotation.js +0 -3
- package/Charting/Visuals/Axis/AxisBase2D.d.ts +20 -0
- package/Charting/Visuals/Axis/AxisBase2D.js +57 -5
- package/Charting/Visuals/Axis/AxisCore.js +16 -13
- package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +13 -0
- package/Charting/Visuals/Axis/constants.d.ts +2 -1
- package/Charting/Visuals/Axis/constants.js +1 -0
- package/Charting/Visuals/Legend/SciChartLegend.js +1 -1
- package/Charting/Visuals/Legend/SciChartLegendBase.d.ts +11 -0
- package/Charting/Visuals/Legend/SciChartLegendBase.js +45 -17
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.d.ts +9 -2
- package/Charting/Visuals/RenderableSeries/Animations/animationHelpers.js +65 -4
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.d.ts +0 -11
- package/Charting/Visuals/RenderableSeries/BaseBandRenderableSeries.js +0 -29
- package/Charting/Visuals/RenderableSeries/BaseMountainRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.d.ts +0 -37
- package/Charting/Visuals/RenderableSeries/BaseOhlcRenderableSeries.js +0 -120
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.d.ts +4 -24
- package/Charting/Visuals/RenderableSeries/BaseRenderableSeries.js +44 -72
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.d.ts +2 -1
- package/Charting/Visuals/RenderableSeries/DrawingProviders/MountainSeriesDrawingProvider.js +6 -6
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.d.ts +0 -6
- package/Charting/Visuals/RenderableSeries/FastBandRenderableSeries.js +0 -42
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.d.ts +0 -17
- package/Charting/Visuals/RenderableSeries/FastBubbleRenderableSeries.js +0 -71
- package/Charting/Visuals/RenderableSeries/FastOhlcRenderableSeries.js +1 -1
- package/Charting/Visuals/RenderableSeries/IBaseRenderableSeriesOptions.d.ts +12 -4
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/SplineBandRenderableSeries.js +10 -32
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.d.ts +4 -0
- package/Charting/Visuals/RenderableSeries/SplineLineRenderableSeries.js +11 -21
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.d.ts +3 -0
- package/Charting/Visuals/RenderableSeries/SplineMountainRenderableSeries.js +10 -21
- package/Charting/Visuals/SciChartOverview.d.ts +1 -1
- package/Charting/Visuals/SciChartOverview.js +1 -1
- package/Charting/Visuals/SciChartSurface.d.ts +2 -2
- package/Charting/Visuals/SciChartSurface.js +4 -4
- package/Charting/Visuals/SciChartSurfaceBase.d.ts +2 -3
- package/Charting/Visuals/SciChartSurfaceBase.js +2 -6
- package/Charting/Visuals/TextureManager/DpiHelper.js +2 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +3 -2
- package/Charting3D/Visuals/SciChart3DSurface.d.ts +1 -1
- package/Charting3D/Visuals/SciChart3DSurface.js +1 -1
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +95 -95
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +1 -1
- package/_wasm/scichart3d.wasm +0 -0
- package/package.json +1 -1
- package/types/BaseType.d.ts +3 -1
- package/types/BaseType.js +2 -0
- package/types/DataFilterType.d.ts +9 -0
- package/types/DataFilterType.js +13 -0
- package/types/SeriesType.d.ts +17 -17
- package/types/SeriesType.js +17 -17
- package/utils/font.d.ts +8 -0
- package/utils/font.js +15 -0
package/_wasm/scichart2d.wasm
CHANGED
|
Binary file
|
package/_wasm/scichart3d.js
CHANGED
|
@@ -13,7 +13,7 @@ n);};t.onload=function(){if(200==t.status||304==t.status||206==t.status||0==t.st
|
|
|
13
13
|
0;q<u.length;++q)n.prototype.Ai[u[q].filename].onload();h.removeRunDependency("datafile_scichart3d.data")}h.FS_createPath("/","assets",!0,!0);n.prototype={Ai:{},open:function(u,q){this.name=q;this.Ai[q]=this;h.addRunDependency("fp "+this.name)},onload:function(){this.rj(this.Fj.subarray(this.start,this.end))},rj:function(u){h.FS_createDataFile(this.name,null,u,!0,!0,!0);h.removeRunDependency("fp "+this.name);this.Ai[this.name]=null}};for(var r=a.files,t=0;t<r.length;++t)(new n(r[t].start,r[t].end,
|
|
14
14
|
r[t].audio)).open("GET",r[t].filename);h.addRunDependency("datafile_scichart3d.data");h.Zj||(h.Zj={});h.Zj["scichart3d.data"]={ml:!1};m?(p(m),m=null):g=p}"object"===typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"===typeof process&&"undefined"!==typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");"function"!==typeof h.locateFilePackage||
|
|
15
15
|
h.locateFile||(h.locateFile=h.locateFilePackage,k("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var e=h.locateFile?h.locateFile("scichart3d.data",""):"scichart3d.data",f=a.remote_package_size,g=null,m=h.getPreloadedPackage?h.getPreloadedPackage(e,f):null;m||b(e,f,function(n){g?(g(n),g=null):m=n},c);h.calledRun?d():(h.preRun||(h.preRun=[]),h.preRun.push(d))})({files:[{filename:"/assets/TSRAssets.web.pkg",start:0,
|
|
16
|
-
end:606921,audio:0},{filename:"/assets/SCRTAssets.web.pkg",start:606921,end:1039929,audio:0}],remote_package_size:1039929,package_uuid:"
|
|
16
|
+
end:606921,audio:0},{filename:"/assets/SCRTAssets.web.pkg",start:606921,end:1039929,audio:0}],remote_package_size:1039929,package_uuid:"b156187d-a954-4410-b1c4-fce044da3c1b"});l&&(l=function(a){a=ca(a);var b=ea[a]||document.querySelector(a);"#canvas"===a&&(b=b||h.canvas);return b});var fa={},ha;for(ha in h)h.hasOwnProperty(ha)&&(fa[ha]=h[ha]);var ia=[],ja="./this.program";function ka(a,b){throw b;}var la="",ma,na,oa;"undefined"!==typeof document&&document.currentScript&&(la=document.currentScript.src);
|
|
17
17
|
_scriptDir&&(la=_scriptDir);0!==la.indexOf("blob:")?la=la.substr(0,la.lastIndexOf("/")+1):la="";ma=function(a){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);return b.responseText};na=function(a,b,c){var d=new XMLHttpRequest;d.open("GET",a,!0);d.responseType="arraybuffer";d.onload=function(){200==d.status||0==d.status&&d.response?b(d.response):c()};d.onerror=c;d.send(null)};oa=function(a){document.title=a};var pa=h.print||console.log.bind(console),k=h.printErr||console.warn.bind(console);
|
|
18
18
|
for(ha in fa)fa.hasOwnProperty(ha)&&(h[ha]=fa[ha]);fa=null;h.arguments&&(ia=h.arguments);h.thisProgram&&(ja=h.thisProgram);h.quit&&(ka=h.quit);function qa(a){ra||(ra={});ra[a]||(ra[a]=1,k(a))}var ra,sa=0,ta;h.wasmBinary&&(ta=h.wasmBinary);var noExitRuntime=h.noExitRuntime||!0;"object"!==typeof WebAssembly&&v("no native wasm support detected");
|
|
19
19
|
function ua(a,b){var c="float";"*"===c.charAt(c.length-1)&&(c="i32");switch(c){case "i1":w[a>>0]=b;break;case "i8":w[a>>0]=b;break;case "i16":y[a>>1]=b;break;case "i32":z[a>>2]=b;break;case "i64":wa=[b>>>0,(A=b,1<=+Math.abs(A)?0<A?(Math.min(+Math.floor(A/4294967296),4294967295)|0)>>>0:~~+Math.ceil((A-+(~~A>>>0))/4294967296)>>>0:0)];z[a>>2]=wa[0];z[a+4>>2]=wa[1];break;case "float":C[a>>2]=b;break;case "double":xa[a>>3]=b;break;default:v("invalid type for setValue: "+c)}}var ya,za=!1,Aa;
|
package/_wasm/scichart3d.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/types/BaseType.d.ts
CHANGED
|
@@ -32,5 +32,7 @@ export declare enum EBaseType {
|
|
|
32
32
|
/** Used for options that are functions */
|
|
33
33
|
OptionFunction = "OptionFunction",
|
|
34
34
|
/** Used for functions that perform post-creation configuration for builder charts */
|
|
35
|
-
OnCreateFunction = "OnCreateFunction"
|
|
35
|
+
OnCreateFunction = "OnCreateFunction",
|
|
36
|
+
/** Subtype EDataFilterType */
|
|
37
|
+
DataFilter = "DataFilter"
|
|
36
38
|
}
|
package/types/BaseType.js
CHANGED
|
@@ -37,4 +37,6 @@ var EBaseType;
|
|
|
37
37
|
EBaseType["OptionFunction"] = "OptionFunction";
|
|
38
38
|
/** Used for functions that perform post-creation configuration for builder charts */
|
|
39
39
|
EBaseType["OnCreateFunction"] = "OnCreateFunction";
|
|
40
|
+
/** Subtype EDataFilterType */
|
|
41
|
+
EBaseType["DataFilter"] = "DataFilter";
|
|
40
42
|
})(EBaseType = exports.EBaseType || (exports.EBaseType = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum EDataFilterType {
|
|
2
|
+
XyLinearTrend = "XyLinearTrend",
|
|
3
|
+
XyMovingAverage = "XyMovingAverage",
|
|
4
|
+
XyRatio = "XyRatio",
|
|
5
|
+
XyScaleOffset = "XyScaleOffset",
|
|
6
|
+
XyyScaleOffset = "XyyScaleOffset",
|
|
7
|
+
XyzScaleOffset = "XyzScaleOffset",
|
|
8
|
+
OhlcScaleOffset = "OhlcScaleOffset"
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EDataFilterType = void 0;
|
|
4
|
+
var EDataFilterType;
|
|
5
|
+
(function (EDataFilterType) {
|
|
6
|
+
EDataFilterType["XyLinearTrend"] = "XyLinearTrend";
|
|
7
|
+
EDataFilterType["XyMovingAverage"] = "XyMovingAverage";
|
|
8
|
+
EDataFilterType["XyRatio"] = "XyRatio";
|
|
9
|
+
EDataFilterType["XyScaleOffset"] = "XyScaleOffset";
|
|
10
|
+
EDataFilterType["XyyScaleOffset"] = "XyyScaleOffset";
|
|
11
|
+
EDataFilterType["XyzScaleOffset"] = "XyzScaleOffset";
|
|
12
|
+
EDataFilterType["OhlcScaleOffset"] = "OhlcScaleOffset";
|
|
13
|
+
})(EDataFilterType = exports.EDataFilterType || (exports.EDataFilterType = {}));
|
package/types/SeriesType.d.ts
CHANGED
|
@@ -3,37 +3,37 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare enum ESeriesType {
|
|
5
5
|
/** Type of {@link FastBandRenderableSeries} */
|
|
6
|
-
BandSeries = "
|
|
6
|
+
BandSeries = "BandSeries",
|
|
7
7
|
/** Type of {@link SplineBandRenderableSeries} */
|
|
8
|
-
SplineBandSeries = "
|
|
8
|
+
SplineBandSeries = "SplineBandSeries",
|
|
9
9
|
/** Type of {@link FastBubbleRenderableSeries } */
|
|
10
|
-
BubbleSeries = "
|
|
10
|
+
BubbleSeries = "BubbleSeries",
|
|
11
11
|
/** Type of {@link FastCandlestickRenderableSeries } */
|
|
12
|
-
CandlestickSeries = "
|
|
12
|
+
CandlestickSeries = "CandlestickSeries",
|
|
13
13
|
/** Type of {@link FastColumnRenderableSeries} */
|
|
14
|
-
ColumnSeries = "
|
|
14
|
+
ColumnSeries = "ColumnSeries",
|
|
15
15
|
/** Type of {@link FastLineRenderableSeries} */
|
|
16
|
-
LineSeries = "
|
|
16
|
+
LineSeries = "LineSeries",
|
|
17
17
|
/** Type of {@link SplineLineRenderableSeries} */
|
|
18
|
-
SplineLineSeries = "
|
|
18
|
+
SplineLineSeries = "SplineLineSeries",
|
|
19
19
|
/** Type of {@link FastMountainRenderableSeries} */
|
|
20
|
-
MountainSeries = "
|
|
20
|
+
MountainSeries = "MountainSeries",
|
|
21
21
|
/** Type of {@link SplineMountainRenderableSeries} */
|
|
22
|
-
SplineMountainSeries = "
|
|
22
|
+
SplineMountainSeries = "SplineMountainSeries",
|
|
23
23
|
/** Type of {@link FastOhlcRenderableSeries} */
|
|
24
|
-
OhlcSeries = "
|
|
24
|
+
OhlcSeries = "OhlcSeries",
|
|
25
25
|
/** Type of {@link StackedColumnRenderableSeries} */
|
|
26
|
-
StackedColumnSeries = "
|
|
26
|
+
StackedColumnSeries = "StackedColumnSeries",
|
|
27
27
|
/** Type of {@link StackedMountainRenderableSeries} */
|
|
28
|
-
StackedMountainSeries = "
|
|
28
|
+
StackedMountainSeries = "StackedMountainSeries",
|
|
29
29
|
/** Type of {@link UniformContoursRenderableSeries} */
|
|
30
|
-
UniformContoursSeries = "
|
|
30
|
+
UniformContoursSeries = "UniformContoursSeries",
|
|
31
31
|
/** Type of {@link UniformHeatmapRenderableSeries} */
|
|
32
|
-
UniformHeatmapSeries = "
|
|
32
|
+
UniformHeatmapSeries = "UniformHeatmapSeries",
|
|
33
33
|
/** Type of {@link StackedMountainCollection} */
|
|
34
|
-
StackedMountainCollection = "
|
|
34
|
+
StackedMountainCollection = "StackedMountainCollection",
|
|
35
35
|
/** Type of {@link StackedColumnCollection} */
|
|
36
|
-
StackedColumnCollection = "
|
|
36
|
+
StackedColumnCollection = "StackedColumnCollection",
|
|
37
37
|
/** Type of {@link XyScatterRenderableSeries} */
|
|
38
|
-
ScatterSeries = "
|
|
38
|
+
ScatterSeries = "ScatterSeries"
|
|
39
39
|
}
|
package/types/SeriesType.js
CHANGED
|
@@ -7,37 +7,37 @@ exports.ESeriesType = void 0;
|
|
|
7
7
|
var ESeriesType;
|
|
8
8
|
(function (ESeriesType) {
|
|
9
9
|
/** Type of {@link FastBandRenderableSeries} */
|
|
10
|
-
ESeriesType["BandSeries"] = "
|
|
10
|
+
ESeriesType["BandSeries"] = "BandSeries";
|
|
11
11
|
/** Type of {@link SplineBandRenderableSeries} */
|
|
12
|
-
ESeriesType["SplineBandSeries"] = "
|
|
12
|
+
ESeriesType["SplineBandSeries"] = "SplineBandSeries";
|
|
13
13
|
/** Type of {@link FastBubbleRenderableSeries } */
|
|
14
|
-
ESeriesType["BubbleSeries"] = "
|
|
14
|
+
ESeriesType["BubbleSeries"] = "BubbleSeries";
|
|
15
15
|
/** Type of {@link FastCandlestickRenderableSeries } */
|
|
16
|
-
ESeriesType["CandlestickSeries"] = "
|
|
16
|
+
ESeriesType["CandlestickSeries"] = "CandlestickSeries";
|
|
17
17
|
/** Type of {@link FastColumnRenderableSeries} */
|
|
18
|
-
ESeriesType["ColumnSeries"] = "
|
|
18
|
+
ESeriesType["ColumnSeries"] = "ColumnSeries";
|
|
19
19
|
/** Type of {@link FastLineRenderableSeries} */
|
|
20
|
-
ESeriesType["LineSeries"] = "
|
|
20
|
+
ESeriesType["LineSeries"] = "LineSeries";
|
|
21
21
|
/** Type of {@link SplineLineRenderableSeries} */
|
|
22
|
-
ESeriesType["SplineLineSeries"] = "
|
|
22
|
+
ESeriesType["SplineLineSeries"] = "SplineLineSeries";
|
|
23
23
|
/** Type of {@link FastMountainRenderableSeries} */
|
|
24
|
-
ESeriesType["MountainSeries"] = "
|
|
24
|
+
ESeriesType["MountainSeries"] = "MountainSeries";
|
|
25
25
|
/** Type of {@link SplineMountainRenderableSeries} */
|
|
26
|
-
ESeriesType["SplineMountainSeries"] = "
|
|
26
|
+
ESeriesType["SplineMountainSeries"] = "SplineMountainSeries";
|
|
27
27
|
/** Type of {@link FastOhlcRenderableSeries} */
|
|
28
|
-
ESeriesType["OhlcSeries"] = "
|
|
28
|
+
ESeriesType["OhlcSeries"] = "OhlcSeries";
|
|
29
29
|
/** Type of {@link StackedColumnRenderableSeries} */
|
|
30
|
-
ESeriesType["StackedColumnSeries"] = "
|
|
30
|
+
ESeriesType["StackedColumnSeries"] = "StackedColumnSeries";
|
|
31
31
|
/** Type of {@link StackedMountainRenderableSeries} */
|
|
32
|
-
ESeriesType["StackedMountainSeries"] = "
|
|
32
|
+
ESeriesType["StackedMountainSeries"] = "StackedMountainSeries";
|
|
33
33
|
/** Type of {@link UniformContoursRenderableSeries} */
|
|
34
|
-
ESeriesType["UniformContoursSeries"] = "
|
|
34
|
+
ESeriesType["UniformContoursSeries"] = "UniformContoursSeries";
|
|
35
35
|
/** Type of {@link UniformHeatmapRenderableSeries} */
|
|
36
|
-
ESeriesType["UniformHeatmapSeries"] = "
|
|
36
|
+
ESeriesType["UniformHeatmapSeries"] = "UniformHeatmapSeries";
|
|
37
37
|
/** Type of {@link StackedMountainCollection} */
|
|
38
|
-
ESeriesType["StackedMountainCollection"] = "
|
|
38
|
+
ESeriesType["StackedMountainCollection"] = "StackedMountainCollection";
|
|
39
39
|
/** Type of {@link StackedColumnCollection} */
|
|
40
|
-
ESeriesType["StackedColumnCollection"] = "
|
|
40
|
+
ESeriesType["StackedColumnCollection"] = "StackedColumnCollection";
|
|
41
41
|
/** Type of {@link XyScatterRenderableSeries} */
|
|
42
|
-
ESeriesType["ScatterSeries"] = "
|
|
42
|
+
ESeriesType["ScatterSeries"] = "ScatterSeries";
|
|
43
43
|
})(ESeriesType = exports.ESeriesType || (exports.ESeriesType = {}));
|
package/utils/font.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the font string, which is used to set font on CanvasRenderingContext2D
|
|
3
|
+
* @param fontStyle The font style
|
|
4
|
+
* @param fontWeight The font weight
|
|
5
|
+
* @param fontSize The font size in pixels
|
|
6
|
+
* @param fontFamily The font family
|
|
7
|
+
*/
|
|
8
|
+
export declare const getFontString: (fontStyle: string, fontWeight: string, fontSize: number, fontFamily: string) => string;
|
package/utils/font.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getFontString = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Creates the font string, which is used to set font on CanvasRenderingContext2D
|
|
6
|
+
* @param fontStyle The font style
|
|
7
|
+
* @param fontWeight The font weight
|
|
8
|
+
* @param fontSize The font size in pixels
|
|
9
|
+
* @param fontFamily The font family
|
|
10
|
+
*/
|
|
11
|
+
exports.getFontString = function (fontStyle, fontWeight, fontSize, fontFamily) {
|
|
12
|
+
if (!fontWeight)
|
|
13
|
+
return fontStyle + " " + fontSize + "px " + fontFamily;
|
|
14
|
+
return fontStyle + " " + fontWeight + " " + fontSize + "px " + fontFamily;
|
|
15
|
+
};
|