pixi-live2d-display-advanced 0.5.6 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,104 +3,135 @@
3
3
  ![NPM Version](https://img.shields.io/npm/v/pixi-live2d-display-advanced?style=flat-square&label=version)
4
4
  ![Cubism version](https://img.shields.io/badge/Cubism-2/3/4-ff69b4?style=flat-square)
5
5
 
6
- A Live2D plugin for [PixiJS](https://github.com/pixijs/pixi.js) v7
6
+ A Live2D plugin for [PixiJS](https://github.com/pixijs/pixi.js) v7.
7
7
 
8
- This project aims to be a universal Live2D framework for the web platform.
9
- Since the official Live2D frameworks are very complex and unreliable, this project rewrites them to provide a unified and simple API,
10
- allowing you to control Live2D models at a high level without needing to understand the internals.
8
+ This project provides a **unified and simplified API** for controlling Live2D models on the web.
9
+ Compared to the official Live2D SDKs, this library is easier to use, more reliable, and more maintainable.
11
10
 
12
- Compared to [pixi-live2d-display-mulmotion](https://www.npmjs.com/package/pixi-live2d-display-mulmotion), this project adds support for
13
- playing the last frame of motions. In Project SEKAI-like projects, this greatly shortens the time to reapply animations.
11
+ Compared to [pixi-live2d-display-mulmotion](https://www.npmjs.com/package/pixi-live2d-display-mulmotion), this project
12
+ additionally supports **playing the last frame of motions**, which is especially useful in
13
+ **Project SEKAI-like projects** where animations need to be reapplied frequently, and uses `@pixi/sound` as the audio
14
+ backend, fixing many issues such as model update and display anomalies.
14
15
 
15
- Additionally, this branch refactors some of the original code, which may improve performance in some areas, but most importantly greatly increases code readability and maintainability.
16
+ ---
16
17
 
17
- #### Features
18
+ ## Features
18
19
 
19
- - Supports all versions of Live2D models
20
- - Supports PIXI.RenderTexture and PIXI.Filter
21
- - Pixi.js style transform API: position, scale, rotation, skew, anchor
20
+ - Supports all versions of Live2D models (Cubism 2.1, 3, 4)
21
+ - Compatible with `PIXI.RenderTexture` and `PIXI.Filter`
22
+ - Familiar Pixi.js style transform API: `position`, `scale`, `rotation`, `skew`, `anchor`
22
23
  - Automatic interaction: mouse tracking, hit detection on click
23
- - Better motion reservation logic than the official framework
24
- - Load from uploaded files or zip files (experimental)
25
- - Complete type definitions - we all love types!
24
+ - Enhanced motion reservation logic compared to the official framework
25
+ - Load models from uploaded files or zip archives (experimental)
26
+ - Complete TypeScript type definitions
26
27
  - Real-time lip sync
27
28
  - Play multiple motions simultaneously
28
29
  - Play the last frame of motions
29
30
 
30
- #### Requirements
31
+ ---
31
32
 
32
- - PixiJS: 7.x
33
- - Cubism core: 2.1 or 4
34
- - Browser: WebGL, ES6
33
+ ## Requirements
35
34
 
36
- #### Examples
35
+ - **PixiJS**: 7.x
36
+ - **Cubism Core**: 2.1 or 4
37
+ - **Browser**: WebGL, ES6
37
38
 
38
- - [Basic Example](https://codepen.io/guansss/pen/oNzoNoz/left?editors=1010)
39
+ ---
40
+
41
+ ## Examples
42
+
43
+ - [Basic Example](#basic-usage)
39
44
  - [Interaction Example](https://codepen.io/guansss/pen/KKgXBOP/left?editors=0010)
40
45
  - [Render Texture & Filter Example](https://codepen.io/guansss/pen/qBaMNQV/left?editors=1010)
41
46
  - [Live2D Viewer Online](https://guansss.github.io/live2d-viewer-web/)
42
47
  - [Parallel Motions Example](#parallel-motions)
43
48
  - [Play Motion Last Frame](#play-motion-last-frame)
44
49
 
45
- #### Documentation
50
+ Documentation:
51
+
52
+ - [User Guide](https://guansss.github.io/pixi-live2d-display)
53
+ - [API Reference](https://guansss.github.io/pixi-live2d-display/api/index.html)
46
54
 
47
- - [Documentation](https://guansss.github.io/pixi-live2d-display) (No Chinese translation available yet)
48
- - [API Docs](https://guansss.github.io/pixi-live2d-display/api/index.html)
55
+ ---
49
56
 
50
- ## Cubism
57
+ ## Cubism Runtime
51
58
 
52
- Cubism is the name of the Live2D SDK. There are currently three versions: Cubism 2.1, Cubism 3, and Cubism 4. Cubism 4 is compatible with Cubism 3 models.
59
+ Cubism is the official name of the Live2D SDK.
60
+ Currently, there are three versions: **Cubism 2.1**, **Cubism 3**, and **Cubism 4** (Cubism 4 is backward-compatible
61
+ with Cubism 3).
53
62
 
54
- This plugin supports Cubism 2.1 and Cubism 4, thus supporting all versions of Live2D models.
63
+ This plugin supports **Cubism 2.1 and Cubism 4**, covering all versions of Live2D models.
55
64
 
56
- #### Cubism Core
65
+ ### Load Cubism Core
57
66
 
58
- Before using this plugin, you need to load the Cubism runtime, also known as Cubism Core.
67
+ - **Cubism 4**: `live2dcubismcore.min.js`
59
68
 
60
- For Cubism 4, load `live2dcubismcore.min.js`.
61
- You can extract it from the [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/),
62
- or directly reference [this link](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js)
63
- (_Note: this link may occasionally be unavailable, do not use it in production!_)
69
+ - Download from the [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/)
70
+ - Or use this [link](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js) _(not guaranteed to be
71
+ always available, do not use in production)_
64
72
 
65
- For Cubism 2.1, load `live2d.min.js`. [Since September 4, 2019](https://help.live2d.com/en/other/other_20/),
66
- the official website no longer provides this version of the SDK, but you can find it [here](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib),
67
- or use this [CDN link](https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js).
73
+ - **Cubism 2.1**: `live2d.min.js`
68
74
 
69
- #### Separate Bundled Files
75
+ - The official site no longer provides it since [September 4, 2019](https://help.live2d.com/en/other/other_20/)
76
+ - Available on [GitHub](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib)
77
+ - Or via [jsDelivr CDN](https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js)
70
78
 
71
- This plugin provides separate bundled files for each Cubism version to reduce the file size when you only need one version.
79
+ ### Bundled Files
72
80
 
73
- Specifically, there is a `cubism2.js` and `cubism4.js` for the two versions, and a combined `index.js` that supports both.
81
+ This plugin provides **separate builds** for different Cubism versions:
74
82
 
75
- **Note:** If you want to support both Cubism 2.1 and Cubism 4, please use `index.js` and _do not use_ `cubism2.js` and `cubism4.js` together.
83
+ - `cubism2.js` + `live2d.min.js` supports Cubism 2.1 models
84
+ - `cubism4.js` + `live2dcubismcore.min.js` → supports Cubism 3 & 4 models
85
+ - `index.js` + both runtimes → supports all versions
76
86
 
77
- To be more clear, here are the ways to use these files:
87
+ > [!WARNING]
88
+ > Do **not** use `cubism2.js` and `cubism4.js` together. Use `index.js` instead if you need both.
78
89
 
79
- - Use `cubism2.js` + `live2d.min.js` to support Cubism 2.1 models
80
- - Use `cubism4.js` + `live2dcubismcore.min.js` to support Cubism 3 and Cubism 4 models
81
- - Use `index.js` + `live2d.min.js` + `live2dcubismcore.min.js` to support all versions of models
90
+ ---
82
91
 
83
92
  ## Installation
84
93
 
85
- #### Via npm
94
+ Via npm:
86
95
 
87
96
  ```sh
88
97
  npm install pixi-live2d-display-advanced
89
98
  ```
90
99
 
91
- ```js
100
+ Usage:
101
+
102
+ ```ts
92
103
  import { Live2DModel } from 'pixi-live2d-display-advanced'
93
104
 
94
- // If you only need Cubism 2.1
105
+ // Only Cubism 2.1
95
106
  import { Live2DModel } from 'pixi-live2d-display-advanced/cubism2'
96
107
 
97
- // If you only need Cubism 4
108
+ // Only Cubism 4
98
109
  import { Live2DModel } from 'pixi-live2d-display-advanced/cubism4'
99
110
  ```
100
111
 
112
+ ---
113
+
101
114
  ## Basic Usage
102
115
 
103
- See here: [pixi-live2d-display-lipsync](https://github.com/RaSan147/pixi-live2d-display)
116
+ See example project: [pixi-live2d-display-lipsync](https://github.com/RaSan147/pixi-live2d-display)
117
+
118
+ When using the Cubism 4 module, you need to call configureCubism4() once before loading models.
119
+ This is required to fix potential issues with model updates.
120
+
121
+ ```ts
122
+ import { Live2DModel, configureCubism4 } from 'pixi-live2d-display-advanced/cubism4'
123
+
124
+ // Configure Cubism runtime (only needs to be called once)
125
+ configureCubism4({
126
+ memorySizeMB: 128
127
+ })
128
+
129
+ // Load a model
130
+ const model = await Live2DModel.from('mymodel.model3.json')
131
+ app.stage.addChild(model)
132
+ ```
133
+
134
+ ---
104
135
 
105
136
  ## Parallel Motions
106
137
 
@@ -111,18 +142,21 @@ model.parallelMotion([
111
142
  ])
112
143
  ```
113
144
 
114
- If you need to play expressions, sounds, etc. in sync, use `model.motion`/`model.speak` to play one of the motions, and use `model.parallelMotion` for the other motions.
115
- Each item in the list (by index) has independent priority control, following the same logic as `model.motion`.
145
+ For syncing motions with expressions/sounds, use `model.motion` or `model.speak` for one motion, and
146
+ `model.parallelMotion` for others.
147
+ Each item has independent priority control, following the same logic as `model.motion`.
148
+
149
+ ---
116
150
 
117
151
  ## Play Motion Last Frame
118
152
 
119
- For a single motion, you can simply do:
153
+ Single motion:
120
154
 
121
155
  ```ts
122
156
  await model.motionLastFrame('w-cute12-tilthead', 0)
123
157
  ```
124
158
 
125
- For multiple motions, use:
159
+ Multiple motions:
126
160
 
127
161
  ```ts
128
162
  await model.parallelLastFrame([
@@ -131,24 +165,15 @@ await model.parallelLastFrame([
131
165
  ])
132
166
  ```
133
167
 
134
- Or:
168
+ Or with manual parallel motion managers:
135
169
 
136
170
  ```ts
137
171
  model.internalModel.extendParallelMotionManager(2)
138
172
  const manager1 = model.internalModel.parallelMotionManager[0]!
139
173
  const manager2 = model.internalModel.parallelMotionManager[1]!
174
+
140
175
  manager1.playMotionLastFrame('w-cute12-tilthead', 0)
141
176
  manager2.playMotionLastFrame('face_worry_01', 0)
142
177
  ```
143
178
 
144
- Essentially, these two approaches are equivalent. The first usage is just syntactic sugar for the second.
145
-
146
- ## v1.0.0 TODOs
147
-
148
- - [ ] Improve documentation
149
- - [ ] Update tests
150
- - [ ] Automate build scripts
151
-
152
- In v2.0.0, the project plans to upgrade to pixi.js v8.
153
-
154
- # For more documentation, please refer to: [Documentation](https://guansss.github.io/pixi-live2d-display/)
179
+ Both approaches are equivalent the first is syntactic sugar for the second.
package/README.zh.md CHANGED
@@ -1,108 +1,116 @@
1
- # pixi-live2d-display-advanced
1
+ # pixi-live2d-display-advanced(高级版)
2
2
 
3
- ![NPM Version](https://img.shields.io/npm/v/pixi-live2d-display-advanced?style=flat-square&label=version)
4
- ![Cubism version](https://img.shields.io/badge/Cubism-2/3/4-ff69b4?style=flat-square)
3
+ ![NPM 版本](https://img.shields.io/npm/v/pixi-live2d-display-advanced?style=flat-square&label=version)
4
+ ![Cubism 版本](https://img.shields.io/badge/Cubism-2/3/4-ff69b4?style=flat-square)
5
5
 
6
- [PixiJS](https://github.com/pixijs/pixi.js) v7 提供的 Live2D 插件
6
+ 一款适用于 [PixiJS](https://github.com/pixijs/pixi.js) v7 Live2D 插件。
7
7
 
8
- 此项目旨在成为 Web 平台上的通用 Live2D 框架。
9
- 由于 Live2D 的官方框架非常复杂且不可靠,这个项目已将其重写以提供统一且简单的 API,
10
- 使你可以从较高的层次来控制 Live2D 模型而无需了解其内部的工作原理
8
+ 该项目为在网页端控制 Live2D 模型提供了**统一且简化的 API**。与官方 Live2D SDK 相比,本库使用更简便、稳定性更高且更易于维护。
11
9
 
12
- 相较于 [pixi-live2d-display-mulmotion](https://www.npmjs.com/package/pixi-live2d-display-mulmotion), 本项目增加了对
13
- 播放动作最末帧的支持。在 Project SEKAI like 项目中大幅地缩短了再次应用动作的时间。
10
+ [pixi-live2d-display-mulmotion](https://www.npmjs.com/package/pixi-live2d-display-mulmotion) 相比,该项目额外支持**播放动作的最后一帧**——这在**类 Project SEKAI(世界计划)项目**中尤为实用(此类项目需频繁重新应用动画);同时,本项目采用 `@pixi/sound` 作为音频后端,修复了模型更新、显示异常等诸多问题。
14
11
 
15
- 此外,本分支还重构了一些本项目的原始代码,可能提升了部分性能,但大幅提高了代码可读性,利于维护。
12
+ ## 功能特性
16
13
 
17
- #### 特性
18
-
19
- - 支持所有版本的 Live2D 模型
20
- - 支持 PIXI.RenderTexture 和 PIXI.Filter
21
- - Pixi.js 风格的变换 API:position, scale, rotation, skew, anchor
22
- - 自动交互:鼠标跟踪, 点击命中检测
23
- - 比官方框架更好的动作预约逻辑
24
- - 从上传的文件或 zip 文件中加载 (实验性功能)
25
- - 完善的类型定义 - 我们都喜欢类型!
14
+ - 支持所有版本的 Live2D 模型(Cubism 2.1、3、4)
15
+ - 兼容 `PIXI.RenderTexture`(渲染纹理)与 `PIXI.Filter`(滤镜)
16
+ - 熟悉的 Pixi.js 风格变换 API:`position`(位置)、`scale`(缩放)、`rotation`(旋转)、`skew`(倾斜)、`anchor`(锚点)
17
+ - 自动交互功能:鼠标追踪、点击命中检测
18
+ - 相比官方框架,优化了动作预约逻辑
19
+ - 支持从上传文件或压缩包中加载模型(实验性功能)
20
+ - 完整的 TypeScript 类型定义
26
21
  - 实时口型同步
27
- - 同时播放多个动作
28
- - 播放动作最末帧
22
+ - 支持同时播放多个动作
23
+ - 支持播放动作的最后一帧
29
24
 
30
- #### 要求
25
+ ## 依赖要求
31
26
 
32
- - PixiJS7.x
33
- - Cubism core: 2.1 or 4
34
- - 浏览器:WebGL ES6
27
+ - **PixiJS**:7.x 版本
28
+ - **Cubism 核心**:2.1 4 版本
29
+ - **浏览器**:需支持 WebGL ES6 语法
35
30
 
36
- #### 示例
31
+ ## 示例演示
37
32
 
38
- - [基础示例](https://codepen.io/guansss/pen/oNzoNoz/left?editors=1010)
33
+ - [基础示例](#基础用法)
39
34
  - [交互示例](https://codepen.io/guansss/pen/KKgXBOP/left?editors=0010)
40
35
  - [渲染纹理与滤镜示例](https://codepen.io/guansss/pen/qBaMNQV/left?editors=1010)
41
- - [Live2D Viewer Online](https://guansss.github.io/live2d-viewer-web/)
42
- - [多动作同步播放](#多动作同步播放)
43
- - [播放动作最末帧](#播放动作最末帧)
44
-
45
- #### 文档
36
+ - [在线 Live2D 查看器](https://guansss.github.io/live2d-viewer-web/)
37
+ - [并行动作示例](#并行动作)
38
+ - [播放动作最后一帧示例](#播放动作最后一帧)
46
39
 
47
- - [文档](https://guansss.github.io/pixi-live2d-display)(暂无中文翻译)
48
- - [API 文档](https://guansss.github.io/pixi-live2d-display/api/index.html)
40
+ 文档资料:
49
41
 
50
- ## Cubism
42
+ - [用户指南](https://guansss.github.io/pixi-live2d-display)
43
+ - [API 参考](https://guansss.github.io/pixi-live2d-display/api/index.html)
51
44
 
52
- Cubism 是 Live2D SDK 的名称,目前有 3 个版本:Cubism 2.1、Cubism 3、Cubism 4,其中 Cubism 4 可以与 Cubism 3 的模型兼容
45
+ ## Cubism 运行时
53
46
 
54
- 该插件使用 Cubism 2.1 和 Cubism 4,从而支持所有版本的 Live2D 模型
47
+ Cubism 是 Live2D SDK 的官方名称。目前共有三个版本:**Cubism 2.1**、**Cubism 3** **Cubism 4**(其中 Cubism 4 向下兼容 Cubism 3)。
55
48
 
56
- #### Cubism Core
49
+ 本插件支持 **Cubism 2.1 和 Cubism 4**,可覆盖所有版本的 Live2D 模型。
57
50
 
58
- 在使用该插件之前,你需要加载 Cubism 运行时,也就是 Cubism Core
51
+ ### 加载 Cubism 核心文件
59
52
 
60
- Cubism 4 需要加载 `live2dcubismcore.min.js`
61
- ,可以从 [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/)
62
- 里解压出来,或者直接引用[这个链接](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js)
63
- (_链接偶尔会挂掉,不要在生产版本中使用!_)
53
+ - **Cubism 4**:`live2dcubismcore.min.js`
64
54
 
65
- Cubism 2.1 需要加载 `live2d.min.js`,[ 2019/9/4 ](https://help.live2d.com/en/other/other_20/)
66
- ,官方已经不再提供该版本 SDK 的下载,但是可以从 [这里](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib)
67
- 找到,以及你大概想要的 [CDN 链接](https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js)
55
+ - 可从 [Cubism 4 SDK](https://www.live2d.com/download/cubism-sdk/download-web/) 下载
56
+ - 也可使用此链接([link](https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js))_(不保证长期可用,请勿用于生产环境)_
68
57
 
69
- #### 单独的打包文件
58
+ - **Cubism 2.1**:`live2d.min.js`
59
+ - 官方网站自 [2019 年 9 月 4 日](https://help.live2d.com/en/other/other_20/) 起不再提供该文件
60
+ - 可在 [GitHub](https://github.com/dylanNew/live2d/tree/master/webgl/Live2D/lib) 上获取
61
+ - 也可通过 [jsDelivr 内容分发网络](https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js) 获取
70
62
 
71
- 该插件为每个 Cubism 版本提供了单独的打包文件,从而在你只想使用其中一个版本的时候减少需要加载文件的大小。
63
+ ### 打包文件
72
64
 
73
- 具体来说,为两种版本分别提供了 `cubism2.js` 和 `cubism4.js`,以及一个同时包含了两种版本的 `index.js`
65
+ 本插件为不同 Cubism 版本提供了**独立的构建文件**:
74
66
 
75
- 注意,如果你想同时支持 Cubism 2.1 和 Cubism 4 的话,请使用 `index.js`,_而不要同时使用_ `cubism2.js` `cubism4.js`
67
+ - `cubism2.js` + `live2d.min.js` 支持 Cubism 2.1 模型
68
+ - `cubism4.js` + `live2dcubismcore.min.js` → 支持 Cubism 3 和 4 模型
69
+ - `index.js` + 两种运行时 → 支持所有版本的模型
76
70
 
77
- 为了更明确一点,这里列出使用这些文件的方法:
71
+ > [!Warning]
72
+ > 请勿同时使用 `cubism2.js` 和 `cubism4.js`。若需同时支持两种版本,请使用 `index.js`。
78
73
 
79
- - 使用 `cubism2.js`+`live2d.min.js` 以支持 Cubism 2.1 模型
80
- - 使用 `cubism4.js`+`live2dcubismcore.min.js` 以支持 Cubism 3 和 Cubism 4 模型
81
- - 使用 `index.js`+`live2d.min.js`+`live2dcubismcore.min.js` 以支持所有版本的模型
74
+ ## 安装方式
82
75
 
83
- ## 安装
84
-
85
- #### 通过 npm
76
+ 通过 npm 安装:
86
77
 
87
78
  ```sh
88
79
  npm install pixi-live2d-display-advanced
89
80
  ```
90
81
 
91
- ```js
82
+ 使用方式:
83
+
84
+ ```ts
92
85
  import { Live2DModel } from 'pixi-live2d-display-advanced'
93
86
 
94
- // 如果只需要 Cubism 2.1
87
+ // 仅支持 Cubism 2.1
95
88
  import { Live2DModel } from 'pixi-live2d-display-advanced/cubism2'
96
89
 
97
- // 如果只需要 Cubism 4
90
+ // 仅支持 Cubism 4
98
91
  import { Live2DModel } from 'pixi-live2d-display-advanced/cubism4'
99
92
  ```
100
93
 
101
- ## 基础使用
94
+ ## 基础用法
95
+
96
+ 参考示例项目:[pixi-live2d-display-lipsync](https://github.com/RaSan147/pixi-live2d-display)
97
+
98
+ 使用 Cubism 4 模块时,需在加载模型前调用一次 `configureCubism4()` 方法。此操作是修复模型更新潜在问题的必要步骤。
99
+
100
+ ```ts
101
+ import { Live2DModel, configureCubism4 } from 'pixi-live2d-display-advanced/cubism4'
102
+
103
+ // 配置 Cubism 运行时(仅需调用一次)
104
+ configureCubism4({
105
+ memorySizeMB: 128 // 内存大小(单位:MB)
106
+ })
102
107
 
103
- 参阅此处: [pixi-live2d-display-lipsync](https://github.com/RaSan147/pixi-live2d-display)
108
+ // 加载模型
109
+ const model = await Live2DModel.from('mymodel.model3.json')
110
+ app.stage.addChild(model)
111
+ ```
104
112
 
105
- ## 多动作同步播放
113
+ ## 并行动作
106
114
 
107
115
  ```ts
108
116
  model.parallelMotion([
@@ -111,18 +119,17 @@ model.parallelMotion([
111
119
  ])
112
120
  ```
113
121
 
114
- 若需要同步播放表情、声音等请使用`model.motion`/`model.speak`播放其中一个动作,其余动作用`model.parallelMotion`播放。
115
- 列表中按照 index 每一项都有独立的优先级控制,和`model.motion`逻辑一致。
122
+ 若需将动作与表情/声音同步:单个动作可使用 `model.motion` 或 `model.speak` 方法,其他动作可使用 `model.parallelMotion` 方法。每个动作项都拥有独立的优先级控制,其逻辑与 `model.motion` 一致。
116
123
 
117
- ## 播放动作最末帧
124
+ ## 播放动作最后一帧
118
125
 
119
- 对于单个动作,可以采用简单的:
126
+ 单个动作:
120
127
 
121
128
  ```ts
122
129
  await model.motionLastFrame('w-cute12-tilthead', 0)
123
130
  ```
124
131
 
125
- 对于多个动作,可以使用:
132
+ 多个动作:
126
133
 
127
134
  ```ts
128
135
  await model.parallelLastFrame([
@@ -131,24 +138,15 @@ await model.parallelLastFrame([
131
138
  ])
132
139
  ```
133
140
 
134
- 或者:
141
+ 或使用手动并行动作管理器:
135
142
 
136
143
  ```ts
137
144
  model.internalModel.extendParallelMotionManager(2)
138
145
  const manager1 = model.internalModel.parallelMotionManager[0]!
139
146
  const manager2 = model.internalModel.parallelMotionManager[1]!
147
+
140
148
  manager1.playMotionLastFrame('w-cute12-tilthead', 0)
141
149
  manager2.playMotionLastFrame('face_worry_01', 0)
142
150
  ```
143
151
 
144
- 实质上,这两个方法是等价的。第一种用法只是第二种用法的语法糖。
145
-
146
- ## v1.0.0 TODOs
147
-
148
- - [ ] 完善文档
149
- - [ ] 更改测试
150
- - [ ] 自动化构建脚本
151
-
152
- 拟在 v2.0.0 中,项目升级到 pixi.js v8
153
-
154
- # 请参阅此处了解更多文档: [文档](https://guansss.github.io/pixi-live2d-display/)
152
+ 以上两种方式效果相同——第一种是第二种的语法糖(简化写法)。
@@ -78,7 +78,7 @@ const config = {
78
78
  preserveExpressionOnMotion: true,
79
79
  cubism4: CubismConfig
80
80
  };
81
- const VERSION = "v0.5.6";
81
+ const VERSION = "v1.0.0";
82
82
  const logger = {
83
83
  log(tag, ...messages) {
84
84
  if (config.logLevel <= config.LOG_LEVEL_VERBOSE) {
package/dist/cubism2.js CHANGED
@@ -79,7 +79,7 @@ var __async = (__this, __arguments, generator) => {
79
79
  preserveExpressionOnMotion: true,
80
80
  cubism4: CubismConfig
81
81
  };
82
- const VERSION = "v0.5.6";
82
+ const VERSION = "v1.0.0";
83
83
  const logger = {
84
84
  log(tag, ...messages) {
85
85
  if (config.logLevel <= config.LOG_LEVEL_VERBOSE) {