D3 Fdg Svelte

screenshot of D3 Fdg Svelte
svelte

d3 Force Directed Graph example (d3-force) implemented in sveltejs. REPL:

Overview

The D3 Force Directed Graph in Svelte project provides Svelte JS versions of the D3 Force Directed Graph example. It offers different implementations of the graph using Svelte and D3 SVG elements or canvas with various hit detection methods. The project is aimed at testing performance and compatibility with touch screens.

Features

  • Svelte SVG Implementation: NetworkGraphSvelteSVG.svelte uses Svelte SVG elements for the graph.
  • D3 SVG Implementation: NetworkGraphD3SVG.svelte uses D3 SVG elements for the graph.
  • Canvas with D3 Hit Detection: NetworkGraphCanvas.svelte uses canvas with D3 hit detection for the graph.
  • Canvas with Second Context for Hit Detection: NetworkGraphCanvasIdContext.svelte uses canvas with a second context for hit detection.

Summary

The D3 Force Directed Graph in Svelte project provides multiple implementations of a force-directed graph using Svelte and D3. It offers different options for rendering the graph, including SVG and canvas with various hit detection methods. The project is designed to test performance and compatibility with touch screens.

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

rollup
Rollup

RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.