Skip to content

refactor: restructure Live2D frontend architecture#57

Draft
LIlGG wants to merge 15 commits intomainfrom
refactor/live2d-architecture
Draft

refactor: restructure Live2D frontend architecture#57
LIlGG wants to merge 15 commits intomainfrom
refactor/live2d-architecture

Conversation

@LIlGG
Copy link
Owner

@LIlGG LIlGG commented Mar 1, 2025

What type of PR is this?

/kind refactor

What this PR does / why we need it:

使用更具现代化的方式重构 Live2d 整体前端架构,使其达成以下目标:

  1. 基于事件的更新策略。
  2. 样式隔离。
  3. 使用 ts 编写代码,增加代码可读性。
  4. 支持 Cubism 2 及 Cubism4。
  5. 工具栏及提示词的高度可配置。

How to test it?

测试 Live2d 原有功能是否正常可用。

Which issue(s) this PR fixes:

Fixes #51
Fixes #27
Fixes #21

Does this PR introduce a user-facing change?

使用更具现代化的方式重构前端架构

@LIlGG LIlGG mentioned this pull request Apr 29, 2025
@ruibaby
Copy link
Contributor

ruibaby commented Nov 12, 2025

LGTM

Introduce streaming AI chat support and UI components. Adds ChatApi with SSE-style stream handling, createStreamMessage helper, and events for stream lifecycle (start/message/stop), model-ready, and toggle-chat-window. New Live2dChatWindow component for user interaction and Live2dTips updated to display streaming messages. Live2dCanvas now provides model-ready dispatch; Live2dWidget mounts the chat window when enabled and clears history on load. Tools and model updates: Tool constructors accept Model, several tools provide name() implementations, AI chat tool toggles chat window, and Model gains capture method and fixes to API usage. Also fixes live2d-tips.json selector for chat tool.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

添加moc3支持 使用现代化、自动化的方式来构建 js 文件 使用自定义元素改写前端代码

2 participants