From e77b15e5d83e006fc83157946adb89a9de43c547 Mon Sep 17 00:00:00 2001 From: rozetko Date: Tue, 17 May 2022 18:01:04 +0400 Subject: [PATCH] fix --- package.json | 2 +- src/index.ts | 6 +- yarn.lock | 234 +-------------------------------------------------- 3 files changed, 8 insertions(+), 234 deletions(-) diff --git a/package.json b/package.json index e16246a..6b64762 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "author": "CorpGlory", "license": "Apache-2.0", "dependencies": { - "@chartwerk/core": "^0.5.0-beta" + "@chartwerk/core": "^0.5.0-beta2" }, "devDependencies": { "css-loader": "^3.4.2", diff --git a/src/index.ts b/src/index.ts index b38ab10..2cdd5aa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -283,7 +283,7 @@ export class ChartwerkGaugePod extends ChartwerkPod { - return this.d3.scaleLinear() + return d3.scaleLinear() .domain([this.options.minValue, this.options.maxValue]) .range([(-1 * Math.PI) / 2 - CIRCLES_ROUNDING, Math.PI / 2 + CIRCLES_ROUNDING]); } @@ -307,7 +307,7 @@ export class ChartwerkGaugePod extends ChartwerkPod this.onDrag(idx)) .on('end', () => this.onDragEnd(idx)); @@ -326,7 +326,7 @@ export class ChartwerkGaugePod extends ChartwerkPod