pixi-live2d-display-advanced 0.5.4 → 0.5.6

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 GuangChen2333
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 GuangChen2333
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -78,7 +78,7 @@ const config = {
78
78
  preserveExpressionOnMotion: true,
79
79
  cubism4: CubismConfig
80
80
  };
81
- const VERSION = "v0.5.4";
81
+ const VERSION = "v0.5.6";
82
82
  const logger = {
83
83
  log(tag, ...messages) {
84
84
  if (config.logLevel <= config.LOG_LEVEL_VERBOSE) {
@@ -102,6 +102,9 @@ function clamp(num, lower, upper) {
102
102
  function rand(min, max) {
103
103
  return Math.random() * (max - min) + min;
104
104
  }
105
+ function MBToByte(mb) {
106
+ return 1024 * 1024 * mb;
107
+ }
105
108
  function copyProperty(type2, from, to, fromKey, toKey) {
106
109
  const value = from[fromKey];
107
110
  if (value !== null && typeof value === type2) {
@@ -5779,7 +5782,7 @@ class Live2DModel extends Container {
5779
5782
  this.internalModel.update(this.deltaTime, this.elapsedTime);
5780
5783
  this.deltaTime = 0;
5781
5784
  }
5782
- const internalTransform = tempMatrix.copyFrom(renderer.globalUniforms.uniforms.projectionMatrix).append(this.worldTransform);
5785
+ const internalTransform = tempMatrix.copyFrom(renderer.projection.projectionMatrix).append(this.worldTransform);
5783
5786
  this.internalModel.updateTransform(internalTransform);
5784
5787
  this.internalModel.draw(renderer.gl);
5785
5788
  renderer.state.reset();
@@ -6712,6 +6715,7 @@ export {
6712
6715
  Live2DPhysics,
6713
6716
  Live2DPose,
6714
6717
  Live2DTransform,
6718
+ MBToByte,
6715
6719
  ModelSettings,
6716
6720
  MotionManager,
6717
6721
  MotionPreloadStrategy,
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.4";
82
+ const VERSION = "v0.5.6";
83
83
  const logger = {
84
84
  log(tag, ...messages) {
85
85
  if (config.logLevel <= config.LOG_LEVEL_VERBOSE) {
@@ -103,6 +103,9 @@ var __async = (__this, __arguments, generator) => {
103
103
  function rand(min, max) {
104
104
  return Math.random() * (max - min) + min;
105
105
  }
106
+ function MBToByte(mb) {
107
+ return 1024 * 1024 * mb;
108
+ }
106
109
  function copyProperty(type2, from, to, fromKey, toKey) {
107
110
  const value = from[fromKey];
108
111
  if (value !== null && typeof value === type2) {
@@ -5780,7 +5783,7 @@ var __async = (__this, __arguments, generator) => {
5780
5783
  this.internalModel.update(this.deltaTime, this.elapsedTime);
5781
5784
  this.deltaTime = 0;
5782
5785
  }
5783
- const internalTransform = tempMatrix.copyFrom(renderer.globalUniforms.uniforms.projectionMatrix).append(this.worldTransform);
5786
+ const internalTransform = tempMatrix.copyFrom(renderer.projection.projectionMatrix).append(this.worldTransform);
5784
5787
  this.internalModel.updateTransform(internalTransform);
5785
5788
  this.internalModel.draw(renderer.gl);
5786
5789
  renderer.state.reset();
@@ -6712,6 +6715,7 @@ var __async = (__this, __arguments, generator) => {
6712
6715
  exports2.Live2DPhysics = Live2DPhysics;
6713
6716
  exports2.Live2DPose = Live2DPose;
6714
6717
  exports2.Live2DTransform = Live2DTransform;
6718
+ exports2.MBToByte = MBToByte;
6715
6719
  exports2.ModelSettings = ModelSettings;
6716
6720
  exports2.MotionManager = MotionManager;
6717
6721
  exports2.MotionPreloadStrategy = MotionPreloadStrategy;