refactor: update WebGL image viewer and improve loading state handling

- Enhanced the ProgressiveImage component to utilize the new LoadingState enum for better loading state management.
- Updated the WebGLImageViewerEngine to notify loading states using the LoadingState enum, improving clarity in loading messages.
- Refactored spring animations to use the Transition type for better type safety.
- Updated localization files to include new loading messages for WebGL operations in both English and Chinese.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-06-26 21:08:16 +08:00
parent 3c45df6e13
commit c8315c29b0
17 changed files with 879 additions and 793 deletions

View File

@@ -250,6 +250,8 @@
"photo.share.text": "Check out this beautiful photo: {{title}}",
"photo.share.title": "Share Photo",
"photo.share.weibo": "Weibo",
"photo.webgl.creatingTexture": "Creating texture...",
"photo.webgl.loadingImage": "Loading image...",
"photo.webgl.unavailable": "WebGL is unavailable, unable to render image",
"photo.zoom.hint": "Double-tap or pinch to zoom",
"slider.auto": "Auto",