@gravity-ui/charts 1.7.0 → 1.7.1

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.
@@ -216,7 +216,7 @@ export function getTextWithElipsis({ text: originalText, getTextWidth, maxWidth,
216
216
  text = text.slice(0, -2) + '…';
217
217
  textWidth = Math.floor(getTextWidth(text));
218
218
  }
219
- if (textWidth > maxWidth) {
219
+ if (textWidth > textMaxWidth) {
220
220
  text = '';
221
221
  }
222
222
  return text;
@@ -216,7 +216,7 @@ export function getTextWithElipsis({ text: originalText, getTextWidth, maxWidth,
216
216
  text = text.slice(0, -2) + '…';
217
217
  textWidth = Math.floor(getTextWidth(text));
218
218
  }
219
- if (textWidth > maxWidth) {
219
+ if (textWidth > textMaxWidth) {
220
220
  text = '';
221
221
  }
222
222
  return text;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/charts",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "React component used to render charts",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/index.js",