scichart 3.1.329 → 3.1.346

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.
Files changed (45) hide show
  1. package/Charting/ChartModifiers/RolloverModifier.d.ts +11 -0
  2. package/Charting/ChartModifiers/RolloverModifier.js +59 -46
  3. package/Charting/ChartModifiers/ZoomExtentsModifier.js +2 -2
  4. package/Charting/ChartModifiers/ZoomPanModifier.js +2 -0
  5. package/Charting/Model/BaseDataSeries.js +3 -6
  6. package/Charting/Model/HlcDataSeries.js +4 -5
  7. package/Charting/Model/OhlcDataSeries.js +2 -3
  8. package/Charting/Model/XyyDataSeries.js +2 -2
  9. package/Charting/Services/ChartTitleRenderer.d.ts +0 -4
  10. package/Charting/Services/ChartTitleRenderer.js +11 -45
  11. package/Charting/Services/TitleRenderer.d.ts +14 -6
  12. package/Charting/Services/TitleRenderer.js +85 -21
  13. package/Charting/Visuals/Annotations/OverviewCustomResizableAnnotation.js +2 -0
  14. package/Charting/Visuals/Axis/AxisBase2D.js +5 -14
  15. package/Charting/Visuals/Axis/AxisCore.d.ts +17 -11
  16. package/Charting/Visuals/Axis/AxisCore.js +14 -9
  17. package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +13 -17
  18. package/Charting/Visuals/Axis/AxisTitleRenderer.js +88 -108
  19. package/Charting/Visuals/Axis/IAxisCoreOptions.d.ts +2 -2
  20. package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +1 -0
  21. package/Charting/Visuals/RenderableSeries/HitTest/BandSeriesHitTestProvider.js +11 -4
  22. package/Charting/Visuals/RenderableSeries/HitTest/BaseHitTestProvider.js +11 -4
  23. package/Charting/Visuals/RenderableSeries/HitTest/LineSeriesHitTestProvider.js +11 -4
  24. package/Charting/Visuals/SciChartSurface.d.ts +2 -0
  25. package/Charting/Visuals/SciChartSurface.js +11 -2
  26. package/Charting/Visuals/TextureManager/TextureManager.js +2 -2
  27. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.d.ts +1 -1
  28. package/Charting3D/Model/DataSeries/UniformGridDataSeries3D.js +1 -1
  29. package/Core/BuildStamp.d.ts +1 -1
  30. package/Core/BuildStamp.js +2 -2
  31. package/_wasm/scichart.browser.js +1 -1
  32. package/_wasm/scichart2d.js +1 -1
  33. package/_wasm/scichart2d.wasm +0 -0
  34. package/_wasm/scichart3d.js +1 -1
  35. package/_wasm/scichart3d.wasm +0 -0
  36. package/constants/app.js +2 -1
  37. package/index.d.ts +2 -0
  38. package/index.js +13 -11
  39. package/index.min.js +1 -1
  40. package/package.json +1 -1
  41. package/types/TextStyle.d.ts +2 -0
  42. package/types/TextStyle.js +1 -1
  43. package/utils/date.js +2 -0
  44. package/utils/text.d.ts +3 -2
  45. package/utils/text.js +45 -2
@@ -177,9 +177,9 @@ var SciChartSurface = /** @class */ (function (_super) {
177
177
  fontWeight: "normal",
178
178
  fontStyle: "normal",
179
179
  lineSpacing: 1.1,
180
- padding: Thickness_1.Thickness.fromString("2 4 0 4"),
180
+ padding: Thickness_1.Thickness.fromString("10 4 10 4"),
181
181
  multilineAlignment: TextPosition_1.EMultiLineAlignment.Center,
182
- // rotation: 0,
182
+ rotation: undefined,
183
183
  alignment: TextStyle_1.ETextAlignment.Center,
184
184
  position: TextStyle_1.ETitlePosition.Top,
185
185
  placeWithinChart: false,
@@ -686,6 +686,7 @@ var SciChartSurface = /** @class */ (function (_super) {
686
686
  // Step_5: Get context and pass drawing to SciChartRenderer
687
687
  SciChartSurface.prototype.doDrawingLoop = function (context) {
688
688
  context = context !== null && context !== void 0 ? context : this.renderSurface.getRenderContext();
689
+ this.currentWebGlRenderContextProperty = context;
689
690
  try {
690
691
  var sus = new UpdateSuspender_1.UpdateSuspender(this, false); // Don't want to invalidate on resume
691
692
  try {
@@ -722,6 +723,7 @@ var SciChartSurface = /** @class */ (function (_super) {
722
723
  throw err;
723
724
  }
724
725
  }
726
+ this.currentWebGlRenderContextProperty = undefined;
725
727
  };
726
728
  /**
727
729
  * @inheritDoc
@@ -1013,6 +1015,13 @@ var SciChartSurface = /** @class */ (function (_super) {
1013
1015
  enumerable: false,
1014
1016
  configurable: true
1015
1017
  });
1018
+ Object.defineProperty(SciChartSurface.prototype, "currentWebGlRenderContext", {
1019
+ get: function () {
1020
+ return this.currentWebGlRenderContextProperty;
1021
+ },
1022
+ enumerable: false,
1023
+ configurable: true
1024
+ });
1016
1025
  /**
1017
1026
  * Is being called on each render, to run animations
1018
1027
  * @param timeElapsed
@@ -129,8 +129,8 @@ var TextureManager = /** @class */ (function () {
129
129
  // convert to radians
130
130
  var rotationRad = (rotation * Math.PI) / 180;
131
131
  // We need to Math.ceil to fix rotation for WebGL1
132
- newTextureWidth = Math.ceil(textureWidth * Math.abs(Math.cos(rotationRad)) + textureHeight * Math.abs(Math.sin(rotationRad)));
133
- newTextureHeight = Math.ceil(textureWidth * Math.abs(Math.sin(rotationRad)) + textureHeight * Math.abs(Math.cos(rotationRad)));
132
+ newTextureWidth = Math.round(textureWidth * Math.abs(Math.cos(rotationRad)) + textureHeight * Math.abs(Math.sin(rotationRad)));
133
+ newTextureHeight = Math.round(textureWidth * Math.abs(Math.sin(rotationRad)) + textureHeight * Math.abs(Math.cos(rotationRad)));
134
134
  // translate to the center of rectangle
135
135
  this.ctx.translate(newTextureWidth / 2, newTextureHeight / 2);
136
136
  this.ctx.rotate(rotationRad);
@@ -30,7 +30,7 @@ export interface IUniformGridDataSeries3DOptions extends IBaseGridDataSeries3DOp
30
30
  * @description
31
31
  * The {@link SurfaceMeshRenderableSeries3D} requires a 2D array of numbers to map to Y-values (heights).
32
32
  *
33
- * The {@link xStart}, @{link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
33
+ * The {@link xStart}, {@link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
34
34
  * define the extents of the data in the Y-direction.
35
35
  *
36
36
  * Y-values may be updated via manipulating the array returned by {@link getYValues}, or by setting a new array to {@link setYValues}. When
@@ -26,7 +26,7 @@ var BaseGridDataSeries3D_1 = require("./BaseGridDataSeries3D");
26
26
  * @description
27
27
  * The {@link SurfaceMeshRenderableSeries3D} requires a 2D array of numbers to map to Y-values (heights).
28
28
  *
29
- * The {@link xStart}, @{link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
29
+ * The {@link xStart}, {@link xStep} properties define the extents of the data in the X-direction, and {@link yStart}, {@link yStep}
30
30
  * define the extents of the data in the Y-direction.
31
31
  *
32
32
  * Y-values may be updated via manipulating the array returned by {@link getYValues}, or by setting a new array to {@link setYValues}. When
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "3.1.329";
3
+ export declare const libraryVersion = "3.1.346";
4
4
  export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkBuildStamp = exports.libraryVersion = void 0;
4
- var buildStamp = "2023-03-31T00:00:00";
4
+ var buildStamp = "2023-05-19T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.1.329";
7
+ exports.libraryVersion = "3.1.346";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;