From 145ff59f910f0f45944fd111c3b010181fc897a8 Mon Sep 17 00:00:00 2001 From: Patrick Tasse Date: Wed, 12 Jan 2022 11:43:40 -0500 Subject: [PATCH] Change xValues to bigint array Adapt to the change in the XYSeries model. Signed-off-by: Patrick Tasse --- .../src/components/xy-output-component.tsx | 6 +++--- yarn.lock | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/react-components/src/components/xy-output-component.tsx b/packages/react-components/src/components/xy-output-component.tsx index 38b8c73e0..0d9eac422 100644 --- a/packages/react-components/src/components/xy-output-component.tsx +++ b/packages/react-components/src/components/xy-output-component.tsx @@ -746,7 +746,7 @@ export class XYOutputComponent extends AbstractTreeOutputComponent(); - let xValues: number[] = []; + let xValues: bigint[] = []; let yValues: number[] = []; let pairs: xyPair[] = []; const offset = this.getChartOffset(); @@ -757,7 +757,7 @@ export class XYOutputComponent extends AbstractTreeOutputComponent { - const adjusted = Number(BigInt(value.toString()) - offset); + const adjusted = Number(value - offset); pairs.push(new xyPair(adjusted, yValues[index])); }); @@ -784,7 +784,7 @@ export class XYOutputComponent extends AbstractTreeOutputComponent(); - let xValues: number[] = []; + let xValues: bigint[] = []; seriesObj.forEach(series => { const color = this.getSeriesColor(series.seriesName); xValues = series.xValues; diff --git a/yarn.lock b/yarn.lock index a124a29ef..cefd3f945 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12208,7 +12208,7 @@ jsesc@~0.5.0: resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" integrity sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0= -json-bigint@sidorares/json-bigint#2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473: +"json-bigint@github:sidorares/json-bigint#2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473": version "1.0.0" resolved "https://codeload.github.com/sidorares/json-bigint/tar.gz/2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473" dependencies: @@ -18034,9 +18034,9 @@ tslib@^2.2.0, tslib@^2.3.1: integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== tsp-typescript-client@next: - version "0.4.0-next.4d094b0.0" - resolved "https://registry.yarnpkg.com/tsp-typescript-client/-/tsp-typescript-client-0.4.0-next.4d094b0.0.tgz#9300a69505ccb9353ec014f1ee11608b932a2a6e" - integrity sha512-pUTB72wNr07UGkT8m5h7HY1yPrxYcYFhKViMhdZLa+haFMdygdjRsjyGER2BUcjuC07j6OfK1EoV3uenLUmPYw== + version "0.4.0-next.f487b14.0" + resolved "https://registry.yarnpkg.com/tsp-typescript-client/-/tsp-typescript-client-0.4.0-next.f487b14.0.tgz#b8dbe9ad0c9e07a2c42acc76df6ebd128cc09b9e" + integrity sha512-Ez+mFyBVxLPOzqzsN/Q6oNv4vJOP1chwRX+F4YO5+v8FhHPO981/KT2PD4fNi+ZcElYrijIh+ZUJ7U1P+iWr0Q== dependencies: json-bigint sidorares/json-bigint#2c0a5f896d7888e68e5f4ae3c7ea5cd42fd54473 node-fetch "^2.5.0"