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

@@ -1,5 +1,10 @@
import { factory } from '@innei/prettier'
export default factory({
importSort: false,
})
export default {
printWidth: 80,
tabWidth: 2,
useTabs: false,
singleQuote: true,
trailingComma: "all",
arrowParens: "always",
semi: false,
endOfLine: "lf",
};