INNER CODE UNIT · JavaScript

preparePaths

mario-andreschak/FLUJO · githubpages/short/app.js:236

  function preparePaths() {
    $$(".map-line-group path, .flow-edge, .team-edge, .eco-edge, .trigger-lines path").forEach(path => {
      try {
        const length = path.getTotalLength();
        path.dataset.length = String(length);
        path.style.strokeDasharray = String(length);
        path.style.strokeDashoffset = String(length);
        const markerEnd = path.getAttribute("marker-end");
        if (markerEnd) {
          path.dataset.markerEnd = markerEnd;
          path.style.markerEnd = "none";
        }
      } catch {
        // SVG layout can be briefly unavailable while the page is sizing.
      }
    });
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…