Skip to content

Commit fb91510

Browse files
authored
Update (#58)
* Enhance BitTorrent visualization logic - Introduced constants for configuration values to improve readability and maintainability. - Refactored piece transfer logic to utilize vector calculations for smoother animations. - Updated peer drawing methods to use vectors for position management, enhancing clarity. - Improved color handling in the visualization to ensure consistent appearance across components. - Streamlined the update logic for piece transfers, making it more efficient and easier to follow. * Refactor BitTorrent visualization classes and enhance functionality - Introduced new `PieceTransfer` and `Torrent` classes to improve data handling and organization. - Refactored position calculations to utilize vector operations for smoother animations. - Updated peer management to streamline piece tracking and enhance user interaction. - Improved mouse event handling for better peer selection and interaction. - Adjusted drawing logic to enhance clarity and maintainability of the visualization. * Refactor BitTorrent visualization classes for improved clarity and functionality - Renamed classes and variables for better understanding, changing `PieceTransfer` to `PieceMessage` and `Torrent` to `Info`. - Updated connection logic to use `MAX_UNCHOKED_PEERS` instead of `MAX_CONNECTIONS_PER_PEER` for clearer intent. - Enhanced piece management by refining how pieces are tracked and drawn, improving overall code maintainability. - Streamlined drawing methods to reflect the new class structure and improve performance. * Revert "Refactor BitTorrent visualization classes for improved clarity and functionality" This reverts commit 1815e61. * Revert "Refactor BitTorrent visualization classes and enhance functionality" This reverts commit 2d0a81f. * Revert "Enhance BitTorrent visualization logic" This reverts commit 8590e30. * Refactor BitTorrent visualization logic and enhance functionality - Introduced constants for configuration values to improve readability. - Refactored piece transfer and torrent management classes for better organization. - Updated position calculations to utilize vector operations for smoother animations. - Enhanced peer management and interaction logic for improved user experience. - Streamlined drawing methods and updated mouse event handling for clarity and maintainability. * Enhance BitTorrent visualization with new metrics and tooltip functionality - Introduced constants for piece size and transfer rates to improve clarity. - Added recent download and upload time tracking for peers. - Implemented tooltip display for peer statistics, including download/upload speeds and progress. - Refactored drawing logic to accommodate new tooltip features and improve user interaction. * Refactor BitTorrent visualization logic to improve clarity and functionality - Introduced a constant for blocks per piece to enhance configurability. - Renamed `PieceTransfer` to `BlockTransfer` for better clarity in data handling. - Updated transfer management to track blocks instead of pieces, improving code organization. - Enhanced peer connection logic by implementing a maximum unchoked peers limit. - Streamlined drawing and update methods to reflect the new block transfer structure. * Enhance tooltip functionality and peer interaction in BitTorrent visualization - Introduced constants for tooltip dimensions and hide delay to improve configurability. - Implemented pause functionality for peers, allowing users to toggle peer activity via tooltips. - Enhanced tooltip drawing logic to include a button for pausing peers, improving user interaction. - Added logic to manage tooltip visibility and interaction, streamlining the user experience. * Update dependencies in package.json and package-lock.json - Bump gatsby from 5.16.0 to 5.16.1 for improved performance. - Update p5 from 2.2.0 to 2.2.1 for bug fixes. - Upgrade @types/node from 25.2.2 to 25.2.3 for better type definitions. - Increment @types/react from 19.2.13 to 19.2.14 for compatibility. - Upgrade @typescript-eslint/eslint-plugin and parser from 8.54.0 to 8.55.0 for enhanced linting capabilities. - Update eslint-plugin-jest from 29.12.2 to 29.13.0 for improved testing support. - Bump eslint-plugin-jsonc from 2.21.0 to 2.21.1 for minor improvements. - Update typescript-eslint from 8.54.0 to 8.55.0 for better TypeScript support.
1 parent 51997ae commit fb91510

3 files changed

Lines changed: 420 additions & 253 deletions

File tree

0 commit comments

Comments
 (0)