@flexem/fc-gui 3.0.0-alpha.51 → 3.0.0-alpha.52

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.
@@ -280,12 +280,13 @@ export class HistoricalCurveElement extends ConditionalDisplayElement {
280
280
  .text((d) => d);
281
281
  const focusWrap = this.rootElement.selectAll('.nv-focusWrap');
282
282
  if (focusWrap.size()) {
283
- const h = focusWrap.attr('transform')
284
- .slice(0, -1)
285
- .split(',')[1];
286
- this.rootElement
287
- .selectAll('.nv-focusWrap')
288
- .attr('transform', `translate(0,${Number(h) + 15})`);
283
+ let h = focusWrap.attr('transform');
284
+ if (h && h.length && h.indexOf(',') !== -1) {
285
+ h = h.slice(0, -1).split(',')[1];
286
+ this.rootElement
287
+ .selectAll('.nv-focusWrap')
288
+ .attr('transform', `translate(0,${Number(h) + 15})`);
289
+ }
289
290
  }
290
291
  const resizeObserver = new window.MutationObserver(() => {
291
292
  this.rootElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.51",
3
+ "version": "3.0.0-alpha.52",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",