From 165a9cd71995784dd2f9746aa4c168858c860148 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Thu, 15 May 2025 23:31:26 -0500 Subject: [PATCH] feat: logs --- docs/changelogs/1.27.9.md | 27 +++++++++++++++++++ package.json | 2 +- .../components/TraverseVisualizer/index.tsx | 18 +++++++------ 3 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 docs/changelogs/1.27.9.md diff --git a/docs/changelogs/1.27.9.md b/docs/changelogs/1.27.9.md new file mode 100644 index 000000000..26e56d0a3 --- /dev/null +++ b/docs/changelogs/1.27.9.md @@ -0,0 +1,27 @@ +# BlitzKit 1.27.9 + +BlitzKit's great, but there's far too many numbers. This update adds a few visualizers to help new players understand how things relate numerically. + +![](https://i.imgur.com/OV5ak4T.png) + +## Features + +- Added the turret and hull traverse speed visualizer +- Added the shell ricochet and normalization angles visualizer +- Added the view-range visualizer +- Added a search bar to the Tankopedia characteristics +- Bumped the decimal places for vehicle dimensions and volume +- Made tank ranks softer (the bars beneath the tank characteristics) +- Gave the navigation bar better distinction from the rest of the page +- Increased the number of characteristics rows to 3 on select devices +- Switched to a more contrasting classic style of components across the website (it's subtle, but beautiful) + +## Changes + +- Removed units + +## Fixes + +- Clarified a few confusing row labels in the Compare tool +- Made the Tankopedia hero section dynamically smaller on mobile phones to allow scrolling +- Tank ranks no longer reach 0 or go above the number of vehicles in the comparison diff --git a/package.json b/package.json index 1ab0e1e2c..ab9377f8d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "blitzkit", "private": true, - "version": "1.27.8", + "version": "1.27.9", "description": "🎉 Tools for everything World of Tanks Blitz", "type": "module", "types": "./types.d.ts", diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/TraverseVisualizer/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/TraverseVisualizer/index.tsx index 40b33a035..6657bea12 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/TraverseVisualizer/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/TraverseVisualizer/index.tsx @@ -31,19 +31,21 @@ export function TraverseVisualizer({ stats }: StatsAcceptorProps) { let lastT = Date.now() / 1000; function frame() { - if (!turret.current || !hull.current) return; - const t = Date.now() / 1000; const dt = t - lastT; lastT = t; - turretAngle.current = - (turretAngle.current + turretSpeedRad * dt) % (2 * Math.PI); - hullAngle.current = - (hullAngle.current + hullTraverseRad * dt) % (2 * Math.PI); + if (turret.current) { + turretAngle.current = + (turretAngle.current + turretSpeedRad * dt) % (2 * Math.PI); + turret.current.style.transform = `translate(-50%, -50%) rotate(${-turretAngle.current}rad)`; + } - turret.current.style.transform = `translate(-50%, -50%) rotate(${-turretAngle.current}rad)`; - hull.current.style.transform = `translate(-50%, -50%) rotate(${-hullAngle.current}rad)`; + if (hull.current) { + hullAngle.current = + (hullAngle.current + hullTraverseRad * dt) % (2 * Math.PI); + hull.current.style.transform = `translate(-50%, -50%) rotate(${-hullAngle.current}rad)`; + } if (!cancel) requestAnimationFrame(frame); }