scichart 3.2.525 → 3.2.528

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.
@@ -187,7 +187,6 @@ var CursorModifier = /** @class */ (function (_super) {
187
187
  this.crosshairStroke = themeProvider.cursorLineBrush;
188
188
  }
189
189
  if (!this.testPropertyChanged(constants_1.PROPERTY.TOOLTIP_SHADOW)) {
190
- console.log();
191
190
  this.tooltipShadow = themeProvider.shadowEffectColor;
192
191
  }
193
192
  };
@@ -101,11 +101,18 @@ var SciChartLegend = /** @class */ (function (_super) {
101
101
  }
102
102
  };
103
103
  el.addEventListener("change", onChangeEventListener_1);
104
+ var visibilityChangeEventHandler_1 = function (data) {
105
+ _this.invalidateLegend();
106
+ };
107
+ rs.isVisibleChanged.subscribe(visibilityChangeEventHandler_1);
104
108
  var eventSubscriptionItem = {
105
109
  element: el,
106
110
  eventType: "change",
107
111
  eventListener: onChangeEventListener_1,
108
- delete: function () { return el.removeEventListener("change", onChangeEventListener_1); }
112
+ delete: function () {
113
+ el.removeEventListener("change", onChangeEventListener_1);
114
+ rs.isVisibleChanged.unsubscribe(visibilityChangeEventHandler_1);
115
+ }
109
116
  };
110
117
  var eventListenersForRenderableSeries = this.eventListenersCollection.get(rs.id);
111
118
  if (eventListenersForRenderableSeries) {
@@ -4,7 +4,7 @@ import { IDeletable } from "../../../Core/IDeletable";
4
4
  * Used by the {@link RubberBandXyZoomModifier} to draw an {@link SVGSVGElement | SVGElement} rectangle over the chart.
5
5
  */
6
6
  export declare class RubberBandSvgRect extends DeletableEntity implements IDeletable {
7
- svgTemplate: (fill: string, stroke: string, strokeThickness: number, width: number, height: number) => string;
7
+ svgTemplate: (fill: string, stroke: string, strokeThickness: number, width: number, height: number) => SVGElement;
8
8
  private svgRoot;
9
9
  private svg;
10
10
  private x1Property;
@@ -17,7 +17,6 @@ var __extends = (this && this.__extends) || (function () {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.RubberBandSvgRect = void 0;
19
19
  var DeletableEntity_1 = require("../../../Core/DeletableEntity");
20
- var annotationHelpers_1 = require("../Annotations/annotationHelpers");
21
20
  var constants_1 = require("./constants");
22
21
  /**
23
22
  * Used by the {@link RubberBandXyZoomModifier} to draw an {@link SVGSVGElement | SVGElement} rectangle over the chart.
@@ -139,8 +138,8 @@ var RubberBandSvgRect = /** @class */ (function (_super) {
139
138
  this.clear();
140
139
  }
141
140
  if (this.svgRoot) {
142
- var svgString = this.svgTemplate(fill, stroke, strokeThickness, 0, 0);
143
- var svgNode = annotationHelpers_1.annotationHelpers.createSvg(svgString, this.svgRoot);
141
+ var svgNode = this.svgTemplate(fill, stroke, strokeThickness, 0, 0);
142
+ this.svgRoot.appendChild(svgNode);
144
143
  this.svg = svgNode;
145
144
  this.svg.setAttribute("x", "100px");
146
145
  this.svg.setAttribute("y", "100px");
@@ -171,9 +170,22 @@ var RubberBandSvgRect = /** @class */ (function (_super) {
171
170
  exports.RubberBandSvgRect = RubberBandSvgRect;
172
171
  /**
173
172
  * @ignore
173
+ * This is a CSP style-src safe method to create SVGs
174
174
  */
175
175
  var svgTemplate = function (fill, stroke, strokeThickness, width, height) {
176
176
  if (width === void 0) { width = 0; }
177
177
  if (height === void 0) { height = 0; }
178
- return "<svg width=\"".concat(width, "\" height=\"").concat(height, "\" style=\"display: none\">\n <rect width=\"100%\" height=\"100%\" fill=\"").concat(fill, "\" stroke=\"").concat(stroke, "\" stroke-width=\"").concat(strokeThickness, "\"/>\n </svg>");
178
+ var xmlns = "http://www.w3.org/2000/svg";
179
+ var svgElem = document.createElementNS(xmlns, "svg");
180
+ svgElem.setAttributeNS(null, "width", width.toString());
181
+ svgElem.setAttributeNS(null, "height", height.toString());
182
+ svgElem.style.display = "none";
183
+ var rectElem = document.createElementNS(xmlns, "rect");
184
+ svgElem.appendChild(rectElem);
185
+ rectElem.setAttributeNS(null, "width", "100%");
186
+ rectElem.setAttributeNS(null, "height", "100%");
187
+ rectElem.setAttributeNS(null, "fill", fill);
188
+ rectElem.setAttributeNS(null, "stroke", stroke);
189
+ rectElem.setAttributeNS(null, "stroke-width", strokeThickness.toString());
190
+ return svgElem;
179
191
  };
@@ -1,4 +1,4 @@
1
1
  import { TSciChart } from "../types/TSciChart";
2
2
  import { TSciChart3D } from "../types/TSciChart3D";
3
- export declare const libraryVersion = "3.2.525";
3
+ export declare const libraryVersion = "3.2.528";
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-11-21T00:00:00";
4
+ var buildStamp = "2023-11-24T00:00:00";
5
5
  var result;
6
6
  // tslint:disable-next-line:no-var-requires
7
- exports.libraryVersion = "3.2.525";
7
+ exports.libraryVersion = "3.2.528";
8
8
  var checkBuildStamp = function (wasmContext) {
9
9
  if (result !== undefined)
10
10
  return result;