How saltcute/maidraw works
maidraw is a TypeScript image-rendering library for maimai DX, CHUNITHM, and O.N.G.E.K.I. Its user-facing workflow accepts score/profile data—either supplied directly or obtained through a score-tracker adapter—then renders best-score or chart-detail images using game-specific painter modules and shared theme/layout/canvas infrastructure. The README also documents maimai Level 50 and folder images. Some subsystem relationships are included from explicit README statements or SOURCE INDEX references; unsampled implementation details and integrations are not assumed.
Main entry points: painter.ts Canvas renderer · painter/chart.ts Chart detail · painter/chart.ts Chart detail · best50.ts Best 50
Components 25
maimai DX
- Score adapter
src/maimai/lib/adapter.ts - Best 50
src/maimai/painter/best50.ts - Level 50
src/maimai/painter/level50.ts - Folder image
src/maimai/painter/folder.ts - Chart detail
src/maimai/painter/chart.ts - Score grid
src/maimai/painter/modules/scoreGrid.ts - Chart grid
src/maimai/painter/modules/chartGrid.ts
CHUNITHM
- Score adapter
src/chunithm/lib/adapter.ts - Best images
src/chunithm/painter/best.ts - Chart detail
src/chunithm/painter/chart.ts - Score grid
src/chunithm/painter/modules/scoreGrid.ts - Chart grid
src/chunithm/painter/modules/chartGrid.ts - Profile panel
src/chunithm/painter/modules/profile.ts - Rating calculation
src/chunithm/lib/calculateParadiseLostRating.ts
O.N.G.E.K.I.
- Score adapter
src/ongeki/lib/adapter.ts - Best images
src/ongeki/painter/best.ts - Chart detail
src/ongeki/painter/chart.ts - Score grid
src/ongeki/painter/modules/scoreGrid.ts - Chart grid
src/ongeki/painter/modules/chartGrid.ts - Profile panel
src/ongeki/painter/modules/profile.ts - Character panel
src/ongeki/painter/modules/characterInfo.ts
Shared rendering
- Canvas renderer
src/common/painter/painter.ts - Layout resolver
src/common/painter/layout.ts - Theme manager
src/common/painter/theme.ts
Other components
- Score trackers
Connections 25
- Score trackers → Score adapter: provides scores
README.md - Score trackers → Score adapter: provides scores
README.md - Score trackers → Score adapter: provides scores
README.md - Best 50 → Score adapter: fetches scores
src/maimai/painter/best50.ts - Best 50 → Score grid: uses
src/maimai/painter/best50.ts - Best 50 → Canvas renderer: renders with
- Chart detail → Score adapter: fetches scores
src/maimai/painter/chart.ts - Chart detail → Chart grid: uses
src/maimai/painter/chart.ts - Chart detail → Canvas renderer: renders with
- Best images → Score adapter: fetches scores
src/chunithm/painter/best.ts - Best images → Score grid: uses
src/chunithm/painter/best.ts - Chart detail → Score adapter: fetches scores
src/chunithm/painter/chart.ts - Chart detail → Chart grid: uses
src/chunithm/painter/chart.ts - Chart detail → Profile panel: uses
src/chunithm/painter/chart.ts - Chart detail → Canvas renderer: renders with
src/chunithm/painter/chart.ts - Best images → Score adapter: fetches scores
src/ongeki/painter/best.ts - Best images → Score grid: uses
src/ongeki/painter/best.ts - Best images → Profile panel: uses
src/ongeki/painter/best.ts - Chart detail → Score adapter: fetches scores
src/ongeki/painter/chart.ts - Chart detail → Chart grid: uses
src/ongeki/painter/chart.ts - Chart detail → Character panel: uses
src/ongeki/painter/chart.ts - Chart detail → Profile panel: uses
src/ongeki/painter/chart.ts - Chart detail → Canvas renderer: renders with
src/ongeki/painter/chart.ts - Canvas renderer → Layout resolver: resolves layout
src/common/painter/painter.ts - Canvas renderer → Theme manager: selects theme
src/common/painter/painter.ts