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.
- package/Charting/Services/ChartTitleRenderer.d.ts +0 -4
- package/Charting/Services/ChartTitleRenderer.js +10 -37
- package/Charting/Services/TitleRenderer.d.ts +9 -2
- package/Charting/Services/TitleRenderer.js +65 -6
- package/Charting/Visuals/Axis/AxisBase2D.js +5 -14
- package/Charting/Visuals/Axis/AxisTitleRenderer.d.ts +12 -16
- package/Charting/Visuals/Axis/AxisTitleRenderer.js +93 -107
- package/Charting/Visuals/Axis/LabelProvider/LabelCache.js +1 -0
- package/Charting/Visuals/SciChartSurface.d.ts +2 -0
- package/Charting/Visuals/SciChartSurface.js +10 -1
- package/Charting/Visuals/TextureManager/TextureManager.js +2 -2
- package/Core/BuildStamp.d.ts +1 -1
- package/Core/BuildStamp.js +2 -2
- package/_wasm/scichart.browser.js +1 -1
- package/_wasm/scichart2d.js +7 -7
- package/_wasm/scichart2d.wasm +0 -0
- package/_wasm/scichart3d.js +7 -7
- package/_wasm/scichart3d.wasm +0 -0
- package/constants/app.js +2 -1
- package/index.min.js +1 -1
- package/package.json +1 -1
|
@@ -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("
|
|
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.
|
|
133
|
-
newTextureHeight = Math.
|
|
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);
|
package/Core/BuildStamp.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
export declare const libraryVersion = "3.1.333";
|
|
4
4
|
export declare const checkBuildStamp: (wasmContext: TSciChart | TSciChart3D) => boolean;
|
package/Core/BuildStamp.js
CHANGED
|
@@ -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-
|
|
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.
|
|
7
|
+
exports.libraryVersion = "3.1.333";
|
|
8
8
|
var checkBuildStamp = function (wasmContext) {
|
|
9
9
|
if (result !== undefined)
|
|
10
10
|
return result;
|