Skip to content

Commit

Permalink
Merge pull request #36 from Live2D/develop
Browse files Browse the repository at this point in the history
Update to Cubism 4 SDK for Web R2
  • Loading branch information
itoh-at-live2d-com committed Mar 9, 2021
2 parents 118ba95 + 4902c91 commit af623ca
Show file tree
Hide file tree
Showing 19 changed files with 10,675 additions and 2,469 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Core directory files
/Core/*
!Please_copy_cubism_core_for_web
/Core/**/.js
/Core/**/.ts
# Package files
node_modules/
# Build files
build/
dist/
# Other files
temp/
.vs/
.idea/
*.iml
Expand All @@ -14,4 +16,5 @@ dist/
.vscode/*
!/.vscode/extensions.json
!/.vscode/launch.json
!/.vscode/settings.json
!/.vscode/tasks.json
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "./Samples/TypeScript/Demo/node_modules/typescript/lib"
}
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).


## [4-r.2] - 2021-03-09

### Added

* Add dynamic screen size and touch detection support.

### Fixed

* Adjust size calculation for models displayed in a window and fix to use a view matrix.
* Avoiding needless namespace syntax to simplify imports by [@cocor-au-lait](https://github.com/cocor-au-lait)


## [4-r.1] - 2020-01-30

### Added
Expand Down Expand Up @@ -62,6 +74,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
* Fix issue with reloading model images in WebKit.


[4-r.2]: https://github.com/Live2D/CubismWebSamples/compare/4-r.1...4-r.2
[4-r.1]: https://github.com/Live2D/CubismWebSamples/compare/4-beta.2...4-r.1
[4-beta.2]: https://github.com/Live2D/CubismWebSamples/compare/4-beta.1...4-beta.2
[4-beta.1]: https://github.com/Live2D/CubismWebSamples/compare/e36ab2233a89de9225f64e5a02d521bc7235bd03...4-beta.1
2 changes: 1 addition & 1 deletion Framework
Submodule Framework updated 47 files
+0 −1 .eslintrc.yml
+1 −0 .gitignore
+3 −0 .vscode/settings.json
+24 −0 CHANGELOG.md
+5 −4 README.md
+2 −2 package.json
+103 −50 src/cubismdefaultparameterid.ts
+714 −726 src/cubismmodelsettingjson.ts
+98 −98 src/effect/cubismbreath.ts
+198 −197 src/effect/cubismeyeblink.ts
+303 −308 src/effect/cubismpose.ts
+37 −31 src/icubismallcator.ts
+192 −188 src/icubismmodelsetting.ts
+59 −53 src/id/cubismid.ts
+93 −90 src/id/cubismidmanager.ts
+190 −185 src/live2dcubismframework.ts
+164 −159 src/math/cubismmath.ts
+270 −264 src/math/cubismmatrix44.ts
+192 −189 src/math/cubismmodelmatrix.ts
+138 −133 src/math/cubismtargetpoint.ts
+157 −151 src/math/cubismvector2.ts
+300 −298 src/math/cubismviewmatrix.ts
+78 −73 src/model/cubismmoc.ts
+693 −697 src/model/cubismmodel.ts
+103 −103 src/model/cubismmodeluserdata.ts
+97 −94 src/model/cubismmodeluserdatajson.ts
+378 −391 src/model/cubismusermodel.ts
+244 −242 src/motion/acubismmotion.ts
+172 −172 src/motion/cubismexpressionmotion.ts
+787 −799 src/motion/cubismmotion.ts
+131 −115 src/motion/cubismmotioninternal.ts
+319 −317 src/motion/cubismmotionjson.ts
+103 −101 src/motion/cubismmotionmanager.ts
+218 −184 src/motion/cubismmotionqueueentry.ts
+282 −280 src/motion/cubismmotionqueuemanager.ts
+796 −811 src/physics/cubismphysics.ts
+222 −198 src/physics/cubismphysicsinternal.ts
+627 −628 src/physics/cubismphysicsjson.ts
+231 −223 src/rendering/cubismrenderer.ts
+1,980 −2,017 src/rendering/cubismrenderer_webgl.ts
+253 −245 src/type/csmmap.ts
+72 −66 src/type/csmrectf.ts
+85 −79 src/type/csmstring.ts
+289 −285 src/type/csmvector.ts
+61 −65 src/utils/cubismdebug.ts
+1,046 −1,039 src/utils/cubismjson.ts
+103 −97 src/utils/cubismstring.ts
41 changes: 21 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,32 @@ NOTE: デバック用の設定は、`.vscode/launch.json` に記述していま

### Node.js

* 13.7.0
* 12.14.1
* 10.18.1
* 15.11.0
* 14.16.0
* 12.21.0
* 10.24.0


## 動作確認環境

| プラットフォーム | ブラウザ | バージョン |
| --- | --- | --- |
| Android | Google Chrome | 79.0.3945.136 |
| Android | Microsoft Edge | 42.0.4.3989 |
| Android | Mozilla Firefox | 68.2.0 |
| iOS / iPadOS | Google Chrome | 79.0.3945.73 |
| iOS / iPadOS | Microsoft Edge | 44.11.15 |
| iOS / iPadOS | Mozilla Firefox | 21.0 |
| iOS / iPadOS | Safari | 13.0.4 |
| Linux | Google Chrome | 79.0.3945.130 |
| Linux | Mozilla Firefox | 72.0.1 |
| macOS | Google Chrome | 79.0.3945.130 |
| macOS | Microsoft Edge | 79.0.309.71 |
| macOS | Mozilla Firefox | 72.0.2 |
| macOS | Safari | 13.0.4 |
| Windows | Google Chrome | 79.0.3945.130 |
| Windows | Internet Explorer 11 | 11.592.18362.0 |
| Windows | Microsoft Edge | 79.0.309.71 |
| Windows | Mozilla Firefox | 72.0.2 |
| Android | Google Chrome | 88.0.4324.181 |
| Android | Microsoft Edge | 46.01.4.5140 |
| Android | Mozilla Firefox | 86.1.1 |
| iOS / iPadOS | Google Chrome | 87.0.4280.77 |
| iOS / iPadOS | Microsoft Edge | 46.1.10 |
| iOS / iPadOS | Mozilla Firefox | 32.0 |
| iOS / iPadOS | Safari | 604.1 |
| Linux | Google Chrome | 89.0.4389.72 |
| Linux | Mozilla Firefox | 86.0 |
| macOS | Google Chrome | 88.0.4324.192 |
| macOS | Microsoft Edge | 88.0.705.81 |
| macOS | Mozilla Firefox | 86.0 |
| macOS | Safari | 14.0.2 |
| Windows | Google Chrome | 88.0.4324.190 |
| Windows | Internet Explorer 11 | 20H2(19042.685) |
| Windows | Microsoft Edge | 88.0.705.74 |
| Windows | Mozilla Firefox | 86.0 |

Note: 動作確認時のサーバの起動は `./Samples/TypeScript/Demo/package.json``serve` スクリプトを使用して行っています。
11 changes: 8 additions & 3 deletions Samples/TypeScript/Demo/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:prettier/recommended
- prettier/@typescript-eslint
- prettier
plugins:
- '@typescript-eslint'
parser: '@typescript-eslint/parser'
Expand All @@ -16,7 +16,12 @@ rules:
prettier/prettier:
- error
- singleQuote: true
'@typescript-eslint/camelcase': warn
trailingComma: none
arrowParens: avoid
'camelcase': warn
'@typescript-eslint/no-use-before-define': off
'@typescript-eslint/ban-ts-ignore': off
'@typescript-eslint/ban-ts-comment': off
'@typescript-eslint/unbound-method': off
'@typescript-eslint/no-unsafe-assignment': off
'@typescript-eslint/no-unsafe-return': off
'@typescript-eslint/no-floating-promises': off
1 change: 1 addition & 0 deletions Samples/TypeScript/Demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<style>
html, body {
margin: 0;
overflow: hidden;
}
</style>
<!-- Pollyfill script -->
Expand Down
Loading

0 comments on commit af623ca

Please sign in to comment.