scichart 3.1.329 → 3.1.333

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.
@@ -177,7 +177,7 @@ 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
182
  // rotation: 0,
183
183
  alignment: TextStyle_1.ETextAlignment.Center,
@@ -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);
@@ -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.333";
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-04-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.333";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;