How hepengwei/visualization-collection works
This is a React-based visual showcase and browser-tool collection, rather than a backend service. Users enter through the application shell and navigate a menu to demonstrations spanning HTML/CSS, Canvas, charts, Three.js, AI, and media tools. The tools and demos render results in the browser; the video page excerpt, for example, assembles processing tabs. Shared locale and scroll state supports the shell. The excerpts establish shell wiring and selected feature internals, but not most route-to-page connections, so those are omitted or marked unverified.
Main entry points: index.tsx Category menu · useGlobalContext.tsx Locale and scroll state · App.tsx React application · ImageProcessingTool Image processing
Components 23
Application shell
- React application
src/App.tsx - Page routes
src/routes/routes.tsx - Header controls
src/layout/Header/index.tsx - Category menu
src/layout/Menus/index.tsx - Home showcase
src/pages/Home/index.tsx
Visual demonstrations
- HTML demonstrations
src/pages/html - CSS effects
src/pages/css - Canvas animations
src/pages/canvas - Charts
src/pages/echarts
Media tools
- Image processing
src/pages/ImageProcessingTool - PDF processing
src/pages/PDFProcessingTool - Video processing
src/pages/VideoProcessingTool/index.tsx - Video operation tabs
src/pages/VideoProcessingTool/components - Image and file utilities
src/utils/imageUtil.ts - PNG codec
src/utils/UPNG.js
3D and AI
- Three.js demos
src/pages/threejs - Interactive house scene
src/pages/threejs/HouseDisplay/index.tsx - House scene elements
src/pages/threejs/HouseDisplay/hardDecoration - AI applications
src/pages/AIApplication
Shared runtime
- Locale and scroll state
src/hooks/useGlobalContext.tsx - Custom cursor hook
src/hooks/useCursorMove.ts
Other components
- Visitor
- Browser
Connections 28
- Visitor → React application: opens
src/App.tsx - React application → Page routes: renders routes
src/App.tsx - React application → Locale and scroll state: reads locale
src/App.tsx - Category menu → Locale and scroll state: reads state
src/layout/Menus/index.tsx - Header controls → Locale and scroll state: updates locale
src/layout/Header/index.tsx - Category menu → HTML demonstrations: navigates to
- Category menu → CSS effects: navigates to
- Category menu → Canvas animations: navigates to
- Category menu → Charts: navigates to
- Category menu → Three.js demos: navigates to
- Category menu → AI applications: navigates to
- Category menu → Image processing: navigates to
- Category menu → Video processing: navigates to
- Video processing → Video operation tabs: renders tabs
src/pages/VideoProcessingTool/index.tsx - Image processing → Image and file utilities: uses utilities
- Image and file utilities → PNG codec: uses codec
src/utils/imageUtil.ts - Three.js demos → Interactive house scene: includes scene
src/pages/threejs/HouseDisplay/index.tsx - Interactive house scene → House scene elements: adds elements
src/pages/threejs/HouseDisplay/index.tsx - Custom cursor hook → Locale and scroll state: reads scroll state
src/hooks/useCursorMove.ts - HTML demonstrations → Browser: renders effects
- CSS effects → Browser: renders effects
- Canvas animations → Browser: renders animations
- Charts → Browser: renders charts
- Three.js demos → Browser: renders 3D
- AI applications → Browser: runs demos
- Image processing → Browser: processes images
- PDF processing → Browser: processes PDFs
- Video processing → Browser: processes video