feat: add tone analysis and histogram features to photo viewer

- Introduced a new HistogramChart component to visualize tone analysis data.
- Enhanced the ExifPanel to display tone analysis results, including brightness, contrast, shadow, and highlight ratios.
- Updated the formatExifData function to support tone analysis data.
- Implemented histogram compression and decompression logic for efficient data handling.
- Added localization support for new histogram-related terms in multiple languages.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-21 02:10:48 +08:00
parent 8f2d6b8212
commit 8c60382f18
22 changed files with 965 additions and 43 deletions

View File

@@ -8,4 +8,5 @@ i18n 编写规范。
1. 阅读并遵循 https://www.i18next.com/translation-function/formatting
2. 使用扁平键。使用 `.` 方式分割。不能使用 object 形式嵌套。
3. 对单复数敏感的语言应该区分,使用 `_one` 和 `_other` 的形式。
4. 在 build 阶段,扁平化的点分隔键(如 'exif.custom.rendered.custom')会自动转换为嵌套的 object 对象,因此可能引发冲突。例如,'exif.custom.rendered.custom' 会与 'exif.custom.rendered' 发生冲突。请避免使用此类点分隔的扁平键。
4. 在 build 阶段,扁平化的点分隔键(如 'exif.custom.rendered.custom')会自动转换为嵌套的 object 对象,因此可能引发冲突。例如,'exif.custom.rendered.custom' 会与 'exif.custom.rendered' 发生冲突。请避免使用此类点分隔的扁平键。
5. @locales 位于根目录,需要同时处理已有的全部的语言