Skip to content

Commit b942922

Browse files
Merge pull request #24 from Live2D/develop
Update to Cubism 5 SDK for Web R1 beta3
2 parents 4defff8 + 7e4b501 commit b942922

File tree

8 files changed

+254
-233
lines changed

8 files changed

+254
-233
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

77

8+
## [5-r.1-beta.3] - 2023-11-30
9+
10+
811
## [5-r.1-beta.2] - 2023-09-28
912

1013
### Added
@@ -215,6 +218,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
215218
* Reformat code using Prettier and ESLint.
216219

217220

221+
[5-r.1-beta.3]: https://github.com/Live2D/CubismWebFramework/compare/5-r.1-beta.2...5-r.1-beta.3
218222
[5-r.1-beta.2]: https://github.com/Live2D/CubismWebFramework/compare/5-r.1-beta.1...5-r.1-beta.2
219223
[5-r.1-beta.1]: https://github.com/Live2D/CubismWebFramework/compare/4-r.7...5-r.1-beta.1
220224
[4-r.7]: https://github.com/Live2D/CubismWebFramework/compare/4-r.6.2...4-r.7

README.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ Cubism 5 Editorに搭載された新機能のSDK対応については [こちら
3030

3131
### Node.js
3232

33-
* 20.7.0
34-
* 18.18.0
33+
* 21.2.0
34+
* 20.10.0
3535

3636

3737
### TypeScript
3838

39-
5.2.2
39+
5.3.2
4040

4141

4242
## 開発環境構築

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ For compatibility with previous versions of Cubism SDK, please refer to [here](h
3030

3131
### Node.js
3232

33-
* 20.7.0
34-
* 18.18.0
33+
* 21.2.0
34+
* 20.10.0
3535

3636
### TypeScript
3737

38-
5.2.2
38+
5.3.2
3939

4040

4141
## Development environment construction

package-lock.json

Lines changed: 228 additions & 214 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"clean": "rimraf dist"
99
},
1010
"devDependencies": {
11-
"@typescript-eslint/eslint-plugin": "^6.7.2",
12-
"@typescript-eslint/parser": "^6.7.2",
13-
"eslint": "^8.49.0",
11+
"@typescript-eslint/eslint-plugin": "^6.12.0",
12+
"@typescript-eslint/parser": "^6.12.0",
13+
"eslint": "^8.54.0",
1414
"eslint-config-prettier": "^9.0.0",
15-
"eslint-plugin-prettier": "^5.0.0",
16-
"prettier": "^3.0.3",
17-
"rimraf": "^5.0.1",
18-
"typescript": "^5.2.2"
15+
"eslint-plugin-prettier": "^5.0.1",
16+
"prettier": "^3.1.0",
17+
"rimraf": "^5.0.5",
18+
"typescript": "^5.3.2"
1919
}
2020
}

src/effect/cubismeyeblink.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ export class CubismEyeBlink {
8787
this._userTimeSeconds += deltaTimeSeconds;
8888
let parameterValue: number;
8989
let t = 0.0;
90+
const blinkingState: EyeState = this._blinkingState;
9091

91-
switch (this._blinkingState) {
92+
switch (blinkingState) {
9293
case EyeState.EyeState_Closing:
9394
t =
9495
(this._userTimeSeconds - this._stateStartTimeSeconds) /

src/model/cubismmodel.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,10 +1225,10 @@ export class CubismModel {
12251225
)
12261226
? CubismBlendMode.CubismBlendMode_Additive
12271227
: Live2DCubismCore.Utils.hasBlendMultiplicativeBit(
1228-
constantFlags[drawableIndex]
1229-
)
1230-
? CubismBlendMode.CubismBlendMode_Multiplicative
1231-
: CubismBlendMode.CubismBlendMode_Normal;
1228+
constantFlags[drawableIndex]
1229+
)
1230+
? CubismBlendMode.CubismBlendMode_Multiplicative
1231+
: CubismBlendMode.CubismBlendMode_Normal;
12321232
}
12331233

12341234
/**

src/motion/cubismmotion.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,9 @@ export class CubismMotion extends ACubismMotion {
844844
curveCount,
845845
segmentPosition
846846
);
847-
switch (segment) {
847+
848+
const segmentType: CubismMotionSegmentType = segment;
849+
switch (segmentType) {
848850
case CubismMotionSegmentType.CubismMotionSegmentType_Linear: {
849851
this._motionData.segments.at(totalSegmentCount).segmentType =
850852
CubismMotionSegmentType.CubismMotionSegmentType_Linear;

0 commit comments

Comments
 (0)