fluency-v8-components 1.6.6 → 1.6.7

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.
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-Cyr3_A8-.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-C1Nl9fvu.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluency-v8-components",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "main": "dist/fluency-v8-components.umd.js",
5
5
  "module": "dist/fluency-v8-components.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -297,11 +297,15 @@ export default {
297
297
  })
298
298
  );
299
299
  });
300
- const totalLength = lines.node()?.getTotalLength() || 0;
301
300
  const totalDuration = 1200;
302
301
  lines
303
- .attr("stroke-dasharray", totalLength + " " + totalLength)
304
- .attr("stroke-dashoffset", totalLength)
302
+ .attr("stroke-dasharray", function () {
303
+ const len = this.getTotalLength();
304
+ return len + " " + len;
305
+ })
306
+ .attr("stroke-dashoffset", function () {
307
+ return this.getTotalLength();
308
+ })
305
309
  .transition()
306
310
  .duration(totalDuration)
307
311
  .ease(d3.easeLinear)