Skip to content

Commit ab36f45

Browse files
Merge pull request #56 from Live2D/develop
Update to Cubism 5 SDK for Web R2
2 parents a452b31 + 8de9441 commit ab36f45

23 files changed

Lines changed: 2421 additions & 1930 deletions

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,27 @@ 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.2] - 2024-12-19
9+
10+
### Added
11+
12+
* Add a function to notify when motion playback starts.
13+
14+
### Changed
15+
16+
* Modify to run `tsc --noEmit` command during development build for type checking.
17+
* Change to be able to handle multiple `<canvas>`.
18+
* The interfaces MouseEvent and TouchEvent are deprecated and consolidate into PointerEvent.
19+
* Change to overwrite motion fade by the value specified in .model3.json on Framework.
20+
* Change the function for playing back expression motions from CustomExpressionMotionManager.startMotionPriority() to CustomExpressionMotionManager.startMotion().
21+
22+
### Fixed
23+
24+
* Fix `eslintrc.yml` to conform to the exact wording.
25+
* Fix a bug that the eye tracking behavior was not released when dragging is released outside of a canvas element.
26+
* Fix an issue where `WebGLRenderingContext.deleteTexture()` was not being called in `releaseTextures()`, `releaseTextureByTexture()`, and `releaseTextureByFilePath()`.
27+
28+
829
## [5-r.1] - 2024-03-26
930

1031
### Changed
@@ -254,6 +275,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
254275
* Fix issue with reloading model images in WebKit.
255276

256277

278+
[5-r.2]: https://github.com/Live2D/CubismWebSamples/compare/5-r.1...5-r.2
257279
[5-r.1]: https://github.com/Live2D/CubismWebSamples/compare/5-r.1-beta.4...5-r.1
258280
[5-r.1-beta.4]: https://github.com/Live2D/CubismWebSamples/compare/5-r.1-beta.3...5-r.1-beta.4
259281
[5-r.1-beta.3]: https://github.com/Live2D/CubismWebSamples/compare/5-r.1-beta.2...5-r.1-beta.3

Core/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ 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+
## 2024-12-19
9+
10+
### Removed
11+
12+
* [Native] Remove Visual Studio 2013 (MSVC 120) static library.
13+
14+
15+
## 2024-11-07
16+
17+
### Added
18+
19+
* [Native] Add experimental support `arm64` library for linux.
20+
21+
### Removed
22+
23+
* [Unity,Native,Java] Remove Android ARM v7 library.
24+
25+
26+
## 2024-04-04
27+
28+
### Added
29+
30+
* [Unity] Add library(.so) for HarmonyOS build.
31+
32+
833
## 2024-03-26
934

1035
### Remove

README.ja.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Coreディレクトリのファイルをコピーしてください。
6060
1. タスク一覧から `npm: install - Samples/TypeScript/Demo` を選択して依存パッケージのダウンロードを行います
6161
1. タスク一覧から `npm: build - Samples/TypeScript/Demo` を選択してサンプルデモのビルドを行います
6262
1. タスク一覧から `npm: serve - Samples/TypeScript/Demo` を選択して動作確認用の簡易サーバを起動します
63-
1. ブラウザの URL 欄に `http://localhost:5000/Samples/TypeScript/Demo/` と入力してアクセスします
63+
1. ブラウザの URL 欄に `http://localhost:5000` と入力してアクセスします
6464
1. コマンドパレットから `>Tasks: Terminate Task` を入力して `npm: serve` を選択すると簡易サーバが終了します
6565

6666
その他のタスクに関してはサンプルプロジェクトの [README.md](Samples/TypeScript/README.ja.md) を参照ください。
@@ -94,28 +94,28 @@ Core : [CHANGELOG.md](Core/CHANGELOG.md)
9494

9595
### Node.js
9696

97-
* 21.7.1
98-
* 20.11.1
97+
* 23.4.0
98+
* 22.12.0
9999

100100

101101
## 動作確認環境
102102

103103
| プラットフォーム | ブラウザ | バージョン |
104104
| --- | --- | --- |
105-
| Android | Google Chrome | 122.0.6261.106 |
106-
| Android | Microsoft Edge | 122.0.2365.86 |
107-
| Android | Mozilla Firefox | 123.1.0 |
108-
| iOS / iPadOS | Google Chrome | 122.0.6261.89 |
109-
| iOS / iPadOS | Microsoft Edge | 122.0.2365.86 |
110-
| iOS / iPadOS | Mozilla Firefox | 123.4 |
111-
| iOS / iPadOS | Safari | 17.4 |
112-
| macOS | Google Chrome | 122.0.6261.129 |
113-
| macOS | Microsoft Edge | 122.0.2365.80 |
114-
| macOS | Mozilla Firefox | 123.0.1 |
115-
| macOS | Safari | 17.4 |
116-
| Windows | Google Chrome | 122.0.6261.129 |
117-
| Windows | Microsoft Edge | 122.0.2365.80 |
118-
| Windows | Mozilla Firefox | 123.0.1 |
105+
| Android | Google Chrome | 131.0.6778.135 |
106+
| Android | Microsoft Edge | 131.0.2903.87 |
107+
| Android | Mozilla Firefox | 133.0.3 |
108+
| iOS / iPadOS | Google Chrome | 131.0.6778.134 |
109+
| iOS / iPadOS | Microsoft Edge | 131.0.2903.92 |
110+
| iOS / iPadOS | Mozilla Firefox | 133.3 |
111+
| iOS / iPadOS | Safari | 18.2 |
112+
| macOS | Google Chrome | 131.0.6778.140 |
113+
| macOS | Microsoft Edge | 131.0.2903.99 |
114+
| macOS | Mozilla Firefox | 133.0.3 |
115+
| macOS | Safari | 18.2 |
116+
| Windows | Google Chrome | 131.0.6778.140 |
117+
| Windows | Microsoft Edge | 131.0.2903.99 |
118+
| Windows | Mozilla Firefox | 133.0.3 |
119119

120120
Note: 動作確認時のサーバの起動は `./Samples/TypeScript/Demo/package.json``serve` スクリプトを使用して行っています。
121121

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Enter `>Tasks: Run Task` in the command palette (*View > Command Palette...*) to
6161
1. Select `npm: install - Samples/TypeScript/Demo` from the task list to download the dependent packages
6262
1. Select `npm: build - Samples/TypeScript/Demo` from the task list to build the sample demo
6363
1. Select `npm: serve - Samples/TypeScript/Demo` from the task list to start the simple server for operation check
64-
1. Enter `http://localhost:5000/Samples/TypeScript/Demo/` in the URL field of your browser to access it
64+
1. Enter `http://localhost:5000` in the URL field of your browser to access it
6565
1. Enter `>Tasks: Terminate Task` from the command palette and select `npm: serve` to terminate the simple server
6666

6767
For other tasks, see [README.md](Samples/TypeScript/README.md) of the sample project.
@@ -95,28 +95,28 @@ Core : [CHANGELOG.md](Core/CHANGELOG.md)
9595

9696
### Node.js
9797

98-
* 21.7.1
99-
* 20.11.1
98+
* 23.4.0
99+
* 22.12.0
100100

101101

102102
## Operation environment
103103

104104
| Platform | Browser | Version |
105105
| --- | --- | --- |
106-
| Android | Google Chrome | 122.0.6261.106 |
107-
| Android | Microsoft Edge | 122.0.2365.86 |
108-
| Android | Mozilla Firefox | 123.1.0 |
109-
| iOS / iPadOS | Google Chrome | 122.0.6261.89 |
110-
| iOS / iPadOS | Microsoft Edge | 122.0.2365.86 |
111-
| iOS / iPadOS | Mozilla Firefox | 123.4 |
112-
| iOS / iPadOS | Safari | 17.4 |
113-
| macOS | Google Chrome | 122.0.6261.129 |
114-
| macOS | Microsoft Edge | 122.0.2365.80 |
115-
| macOS | Mozilla Firefox | 123.0.1 |
116-
| macOS | Safari | 17.4 |
117-
| Windows | Google Chrome | 122.0.6261.129 |
118-
| Windows | Microsoft Edge | 122.0.2365.80 |
119-
| Windows | Mozilla Firefox | 123.0.1 |
106+
| Android | Google Chrome | 131.0.6778.135 |
107+
| Android | Microsoft Edge | 131.0.2903.87 |
108+
| Android | Mozilla Firefox | 133.0.3 |
109+
| iOS / iPadOS | Google Chrome | 131.0.6778.134 |
110+
| iOS / iPadOS | Microsoft Edge | 131.0.2903.92 |
111+
| iOS / iPadOS | Mozilla Firefox | 133.3 |
112+
| iOS / iPadOS | Safari | 18.2 |
113+
| macOS | Google Chrome | 131.0.6778.140 |
114+
| macOS | Microsoft Edge | 131.0.2903.99 |
115+
| macOS | Mozilla Firefox | 133.0.3 |
116+
| macOS | Safari | 18.2 |
117+
| Windows | Google Chrome | 131.0.6778.140 |
118+
| Windows | Microsoft Edge | 131.0.2903.99 |
119+
| Windows | Mozilla Firefox | 133.0.3 |
120120

121121
Note: You can start the server for operation check by running the `serve` script of `./Samples/TypeScript/Demo/package.json`.
122122

Samples/TypeScript/Demo/.eslintrc.yml

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,93 @@ rules:
1818
- singleQuote: true
1919
trailingComma: none
2020
arrowParens: avoid
21-
'camelcase': warn
21+
camelcase: "off"
22+
'@typescript-eslint/naming-convention':
23+
- warn
24+
- selector: default
25+
format:
26+
- camelCase
27+
- selector: 'import'
28+
format:
29+
- PascalCase
30+
- selector: variable
31+
format:
32+
custom: {
33+
# 指定の文字列で始まるものと特定の文字を含むものは許容
34+
regex: '^[A-Z]|^csm|^iterator|Shader',
35+
match: true
36+
}
37+
modifiers: ['exported','const']
38+
- selector: variable
39+
format:
40+
- camelCase
41+
- selector: variable
42+
format:
43+
custom: {
44+
# 指定の文字列で始まるものは許容
45+
regex: '^[A-Z]|^s_',
46+
match: true
47+
}
48+
modifiers: ['global']
49+
- selector: enum
50+
format:
51+
- PascalCase
52+
- selector: enumMember
53+
format:
54+
custom: {
55+
# 大文字から始まること
56+
regex: '^[A-Z]',
57+
match: true
58+
}
59+
- selector: classProperty
60+
format:
61+
- PascalCase
62+
modifiers: ['static','readonly']
63+
- selector: classProperty
64+
format:
65+
- camelCase
66+
leadingUnderscore: allow
67+
- selector: class
68+
format:
69+
custom: {
70+
# 指定の文字列で始まるか、指定の文字列で終わること
71+
regex: '^[A-Z]|^csm|^iterator|_WebGL$',
72+
match: true
73+
}
74+
- selector: interface
75+
format:
76+
- camelCase
77+
- PascalCase
78+
- selector: parameter
79+
format:
80+
- camelCase
81+
- selector: classMethod
82+
format:
83+
- camelCase
84+
- selector: objectLiteralProperty
85+
format:
86+
- camelCase
87+
- PascalCase
88+
- selector: typeAlias
89+
format:
90+
custom: {
91+
# 指定の文字列で始まるものは許容
92+
regex: '^[A-Z]|^[a-z]|^CSM_|^csm|^iterator',
93+
match: true
94+
}
95+
modifiers: ['exported']
96+
- selector: typeAlias
97+
format:
98+
- camelCase
99+
- selector: typeParameter
100+
format:
101+
custom: {
102+
# 「大文字+アンダースコア以外の文字」、あるいは「大文字1文字」
103+
# あるいは、「`T`+アンダースコア」で始まる場合
104+
regex: '^[A-Z][^_]|^[A-Z]|^T_$',
105+
match: true
106+
}
107+
leadingUnderscore: allow
22108
'@typescript-eslint/no-use-before-define': off
23109
'@typescript-eslint/ban-ts-comment': off
24110
'@typescript-eslint/unbound-method': off

Samples/TypeScript/Demo/index.html

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66
<title>TypeScript HTML App</title>
77
<style>
88
html, body {
9-
margin: 0;
10-
overflow: hidden;
9+
overflow: hidden;
10+
margin: 0;
1111
}
12-
canvas {
13-
width: 100vw;
14-
height: 100vh;
15-
display: block;
12+
html {
13+
overscroll-behavior-x: none;
14+
touch-action: none;
15+
}
16+
body {
17+
display: flex;
18+
flex-wrap: wrap;
19+
}
20+
body > canvas:only-child {
21+
width: 100vw;
22+
height: 100vh;
1623
}
1724
</style>
1825
<!-- Live2DCubismCore script -->

0 commit comments

Comments
 (0)