From 82a9c32850b076f1891cb4012aea15a5def8d70d Mon Sep 17 00:00:00 2001 From: s0lray Date: Mon, 23 Mar 2026 17:28:56 -0400 Subject: [PATCH] Migrate D3 v3 to v7: update arf.js, index.html, and CI - Replace d3.layout.tree() with d3.tree() - Replace d3.svg.diagonal() with d3.linkHorizontal() (x/y accessors swap coords) - Replace d3.json(url, cb) with d3.json(url).then(cb) - Replace d3.hierarchy() for root node; use .descendants() and .links() - Strip svg: namespace prefixes from append/insert calls - Update xlink:href to href on anchor elements - Update data accessors to use d.data.name, d.data.url, etc. - Fix .style("fill") call (was malformed in v3 code) - Update event handler signature to (event, d) for D3 v7 - Use node.merge(nodeEnter) and link.merge(linkEnter) for v5+ update pattern - Add public/js/d3.min.js (v7.9.0) copied from node_modules - Update index.html to load d3.min.js instead of d3.v3.min.js - Update CI smoke test to check for d3.min.js - Keep d3.v3.min.js in place until visual parity confirmed Co-Authored-By: Paperclip --- .github/workflows/ci.yml | 2 +- public/index.html | 2 +- public/js/arf.js | 50 ++++++++++++++++++++++------------------ public/js/d3.min.js | 2 ++ 4 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 public/js/d3.min.js diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 742c2fa..9ce4a83 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: fi } check_asset "css/arf.css" - check_asset "js/d3.v3.min.js" + check_asset "js/d3.min.js" check_asset "js/arf.js" check_asset "arf.json" diff --git a/public/index.html b/public/index.html index 76918ae..13bd6af 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,7 @@ - + OSINT Framework