rhodonite 0.19.9 → 0.20.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.
Files changed (199) hide show
  1. package/README.md +32 -2
  2. package/VERSION-FILE +1 -1
  3. package/dist/esm/effekseer/main.d.ts +3 -1
  4. package/dist/esm/foundation/components/Animation/AnimationComponent.d.ts +15 -1
  5. package/dist/esm/foundation/components/Animation/AnimationStateRepository.d.ts +26 -10
  6. package/dist/esm/foundation/components/AnimationState/AnimationStateComponent.d.ts +14 -0
  7. package/dist/esm/foundation/components/CharacterController/CharacterAnimationController.d.ts +63 -0
  8. package/dist/esm/foundation/components/CharacterController/CharacterControllerComponent.d.ts +67 -0
  9. package/dist/esm/foundation/components/CharacterController/ICharacterControllerEntity.d.ts +4 -0
  10. package/dist/esm/foundation/components/CharacterController/createCharacterControllerEntity.d.ts +4 -0
  11. package/dist/esm/foundation/components/CharacterController/index.d.ts +4 -0
  12. package/dist/esm/foundation/components/ComponentTypes.d.ts +6 -0
  13. package/dist/esm/foundation/components/Physics/PhysicsComponent.d.ts +27 -0
  14. package/dist/esm/foundation/components/SceneGraph/SceneGraphComponent.d.ts +30 -0
  15. package/dist/esm/foundation/components/Shape/IShapeEntity.d.ts +4 -0
  16. package/dist/esm/foundation/components/Shape/ShapeComponent.d.ts +43 -0
  17. package/dist/esm/foundation/components/Shape/createShapeEntity.d.ts +3 -0
  18. package/dist/esm/foundation/components/Shape/index.d.ts +3 -0
  19. package/dist/esm/foundation/components/Skeletal/SkeletalComponent.d.ts +138 -45
  20. package/dist/esm/foundation/components/Transform/TransformComponent.d.ts +2 -3
  21. package/dist/esm/foundation/components/Trigger/ITriggerEntity.d.ts +4 -0
  22. package/dist/esm/foundation/components/Trigger/TriggerComponent.d.ts +58 -0
  23. package/dist/esm/foundation/components/Trigger/index.d.ts +2 -0
  24. package/dist/esm/foundation/components/Vrm/VrmComponent.d.ts +16 -1
  25. package/dist/esm/foundation/components/WellKnownComponentTIDs.d.ts +4 -1
  26. package/dist/esm/foundation/components/index.d.ts +3 -0
  27. package/dist/esm/foundation/core/Component.d.ts +63 -3
  28. package/dist/esm/foundation/core/ComponentMemoryRegistry.d.ts +59 -1
  29. package/dist/esm/foundation/core/Config.d.ts +8 -7
  30. package/dist/esm/foundation/core/Entity.d.ts +15 -0
  31. package/dist/esm/foundation/definitions/BoneDataType.d.ts +12 -1
  32. package/dist/esm/foundation/definitions/PhysicsShapeType.d.ts +1 -0
  33. package/dist/esm/foundation/definitions/ProcessApproach.d.ts +8 -4
  34. package/dist/esm/foundation/exporter/Gltf2ExporterOps.d.ts +2 -0
  35. package/dist/esm/foundation/geometry/Shape.d.ts +35 -0
  36. package/dist/esm/foundation/geometry/index.d.ts +1 -0
  37. package/dist/esm/foundation/geometry/shapes/Cylinder.d.ts +16 -0
  38. package/dist/esm/foundation/geometry/shapes/index.d.ts +1 -0
  39. package/dist/esm/foundation/gizmos/ShapeGizmo.d.ts +22 -0
  40. package/dist/esm/foundation/gizmos/index.d.ts +1 -0
  41. package/dist/esm/foundation/helpers/EntityHelper.d.ts +6 -0
  42. package/dist/esm/foundation/helpers/MeshHelper.d.ts +275 -15
  43. package/dist/esm/foundation/importer/AnimationAssigner.d.ts +62 -3
  44. package/dist/esm/foundation/importer/BoneDataTypeDetector.d.ts +31 -0
  45. package/dist/esm/foundation/importer/Gltf2Importer.d.ts +6 -0
  46. package/dist/esm/foundation/importer/KhrPhysicsImporter.d.ts +58 -0
  47. package/dist/esm/foundation/importer/VrmaImporter.d.ts +11 -3
  48. package/dist/esm/foundation/importer/index.d.ts +2 -0
  49. package/dist/esm/foundation/math/AbstractMatrix.d.ts +3 -2
  50. package/dist/esm/foundation/math/AbstractQuaternion.d.ts +2 -1
  51. package/dist/esm/foundation/math/AnimatedQuaternion.d.ts +4 -0
  52. package/dist/esm/foundation/math/AnimatedScalar.d.ts +4 -0
  53. package/dist/esm/foundation/math/AnimatedVector2.d.ts +4 -0
  54. package/dist/esm/foundation/math/AnimatedVector3.d.ts +4 -0
  55. package/dist/esm/foundation/math/AnimatedVector4.d.ts +4 -0
  56. package/dist/esm/foundation/math/AnimatedVectorN.d.ts +4 -0
  57. package/dist/esm/foundation/math/IAnimatedValue.d.ts +12 -0
  58. package/dist/esm/foundation/math/IMatrix.d.ts +2 -2
  59. package/dist/esm/foundation/math/IQuaternion.d.ts +4 -4
  60. package/dist/esm/foundation/math/LogQuaternion.d.ts +110 -38
  61. package/dist/esm/foundation/math/MathUtil.d.ts +63 -1
  62. package/dist/esm/foundation/math/Matrix22.d.ts +176 -30
  63. package/dist/esm/foundation/math/Matrix33.d.ts +206 -38
  64. package/dist/esm/foundation/math/Matrix44.d.ts +222 -39
  65. package/dist/esm/foundation/math/MutableMatrix22.d.ts +125 -130
  66. package/dist/esm/foundation/math/MutableMatrix33.d.ts +148 -162
  67. package/dist/esm/foundation/math/MutableMatrix44.d.ts +159 -183
  68. package/dist/esm/foundation/math/MutableQuaternion.d.ts +241 -132
  69. package/dist/esm/foundation/math/MutableScalar.d.ts +11 -12
  70. package/dist/esm/foundation/math/MutableVector2.d.ts +30 -31
  71. package/dist/esm/foundation/math/MutableVector3.d.ts +28 -26
  72. package/dist/esm/foundation/math/MutableVector4.d.ts +37 -37
  73. package/dist/esm/foundation/math/Quaternion.d.ts +529 -36
  74. package/dist/esm/foundation/math/Scalar.d.ts +13 -14
  75. package/dist/esm/foundation/math/Vector2.d.ts +38 -38
  76. package/dist/esm/foundation/math/Vector3.d.ts +55 -54
  77. package/dist/esm/foundation/math/Vector4.d.ts +54 -55
  78. package/dist/esm/foundation/misc/MiscUtil.d.ts +79 -16
  79. package/dist/esm/foundation/misc/Time.d.ts +10 -1
  80. package/dist/esm/foundation/physics/CharacterControllerStrategy.d.ts +65 -0
  81. package/dist/esm/foundation/physics/Oimo/OimoPhysicsStrategy.d.ts +17 -1
  82. package/dist/esm/foundation/physics/PhysicsProperty.d.ts +43 -0
  83. package/dist/esm/foundation/physics/PhysicsStrategy.d.ts +15 -0
  84. package/dist/esm/foundation/physics/PhysicsWorldQuery.d.ts +65 -0
  85. package/dist/esm/foundation/physics/Rapier/RapierCharacterControllerStrategy.d.ts +58 -0
  86. package/dist/esm/foundation/physics/Rapier/RapierPhysicsStrategy.d.ts +157 -19
  87. package/dist/esm/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.d.ts +11 -0
  88. package/dist/esm/foundation/physics/Rapier/index.d.ts +2 -0
  89. package/dist/esm/foundation/physics/ShapeTransformResolver.d.ts +19 -0
  90. package/dist/esm/foundation/physics/index.d.ts +2 -0
  91. package/dist/esm/index.js +728 -723
  92. package/dist/esm/types/AnimationTypes.d.ts +1 -1
  93. package/dist/esm/types/KHR_implicit_shapes.d.ts +47 -0
  94. package/dist/esm/types/KHR_physics_rigid_bodies.d.ts +54 -0
  95. package/dist/esm/types/VRMC.d.ts +12 -12
  96. package/dist/esm/types/VRMC_vrm_animation.d.ts +5 -0
  97. package/dist/esm/types/glTF2.d.ts +8 -0
  98. package/dist/esm/types/index.d.ts +2 -0
  99. package/dist/esm/webgl/main.d.ts +2 -1
  100. package/dist/esm/webgl/textureLoader/KTX2TextureLoader.d.ts +12 -0
  101. package/dist/esmdev/effekseer/main.d.ts +3 -1
  102. package/dist/esmdev/foundation/components/Animation/AnimationComponent.d.ts +15 -1
  103. package/dist/esmdev/foundation/components/Animation/AnimationStateRepository.d.ts +26 -10
  104. package/dist/esmdev/foundation/components/AnimationState/AnimationStateComponent.d.ts +14 -0
  105. package/dist/esmdev/foundation/components/CharacterController/CharacterAnimationController.d.ts +63 -0
  106. package/dist/esmdev/foundation/components/CharacterController/CharacterControllerComponent.d.ts +67 -0
  107. package/dist/esmdev/foundation/components/CharacterController/ICharacterControllerEntity.d.ts +4 -0
  108. package/dist/esmdev/foundation/components/CharacterController/createCharacterControllerEntity.d.ts +4 -0
  109. package/dist/esmdev/foundation/components/CharacterController/index.d.ts +4 -0
  110. package/dist/esmdev/foundation/components/ComponentTypes.d.ts +6 -0
  111. package/dist/esmdev/foundation/components/Physics/PhysicsComponent.d.ts +27 -0
  112. package/dist/esmdev/foundation/components/SceneGraph/SceneGraphComponent.d.ts +30 -0
  113. package/dist/esmdev/foundation/components/Shape/IShapeEntity.d.ts +4 -0
  114. package/dist/esmdev/foundation/components/Shape/ShapeComponent.d.ts +43 -0
  115. package/dist/esmdev/foundation/components/Shape/createShapeEntity.d.ts +3 -0
  116. package/dist/esmdev/foundation/components/Shape/index.d.ts +3 -0
  117. package/dist/esmdev/foundation/components/Skeletal/SkeletalComponent.d.ts +138 -45
  118. package/dist/esmdev/foundation/components/Transform/TransformComponent.d.ts +2 -3
  119. package/dist/esmdev/foundation/components/Trigger/ITriggerEntity.d.ts +4 -0
  120. package/dist/esmdev/foundation/components/Trigger/TriggerComponent.d.ts +58 -0
  121. package/dist/esmdev/foundation/components/Trigger/index.d.ts +2 -0
  122. package/dist/esmdev/foundation/components/Vrm/VrmComponent.d.ts +16 -1
  123. package/dist/esmdev/foundation/components/WellKnownComponentTIDs.d.ts +4 -1
  124. package/dist/esmdev/foundation/components/index.d.ts +3 -0
  125. package/dist/esmdev/foundation/core/Component.d.ts +63 -3
  126. package/dist/esmdev/foundation/core/ComponentMemoryRegistry.d.ts +59 -1
  127. package/dist/esmdev/foundation/core/Config.d.ts +8 -7
  128. package/dist/esmdev/foundation/core/Entity.d.ts +15 -0
  129. package/dist/esmdev/foundation/definitions/BoneDataType.d.ts +12 -1
  130. package/dist/esmdev/foundation/definitions/PhysicsShapeType.d.ts +1 -0
  131. package/dist/esmdev/foundation/definitions/ProcessApproach.d.ts +8 -4
  132. package/dist/esmdev/foundation/exporter/Gltf2ExporterOps.d.ts +2 -0
  133. package/dist/esmdev/foundation/geometry/Shape.d.ts +35 -0
  134. package/dist/esmdev/foundation/geometry/index.d.ts +1 -0
  135. package/dist/esmdev/foundation/geometry/shapes/Cylinder.d.ts +16 -0
  136. package/dist/esmdev/foundation/geometry/shapes/index.d.ts +1 -0
  137. package/dist/esmdev/foundation/gizmos/ShapeGizmo.d.ts +22 -0
  138. package/dist/esmdev/foundation/gizmos/index.d.ts +1 -0
  139. package/dist/esmdev/foundation/helpers/EntityHelper.d.ts +6 -0
  140. package/dist/esmdev/foundation/helpers/MeshHelper.d.ts +275 -15
  141. package/dist/esmdev/foundation/importer/AnimationAssigner.d.ts +62 -3
  142. package/dist/esmdev/foundation/importer/BoneDataTypeDetector.d.ts +31 -0
  143. package/dist/esmdev/foundation/importer/Gltf2Importer.d.ts +6 -0
  144. package/dist/esmdev/foundation/importer/KhrPhysicsImporter.d.ts +58 -0
  145. package/dist/esmdev/foundation/importer/VrmaImporter.d.ts +11 -3
  146. package/dist/esmdev/foundation/importer/index.d.ts +2 -0
  147. package/dist/esmdev/foundation/math/AbstractMatrix.d.ts +3 -2
  148. package/dist/esmdev/foundation/math/AbstractQuaternion.d.ts +2 -1
  149. package/dist/esmdev/foundation/math/AnimatedQuaternion.d.ts +4 -0
  150. package/dist/esmdev/foundation/math/AnimatedScalar.d.ts +4 -0
  151. package/dist/esmdev/foundation/math/AnimatedVector2.d.ts +4 -0
  152. package/dist/esmdev/foundation/math/AnimatedVector3.d.ts +4 -0
  153. package/dist/esmdev/foundation/math/AnimatedVector4.d.ts +4 -0
  154. package/dist/esmdev/foundation/math/AnimatedVectorN.d.ts +4 -0
  155. package/dist/esmdev/foundation/math/IAnimatedValue.d.ts +12 -0
  156. package/dist/esmdev/foundation/math/IMatrix.d.ts +2 -2
  157. package/dist/esmdev/foundation/math/IQuaternion.d.ts +4 -4
  158. package/dist/esmdev/foundation/math/LogQuaternion.d.ts +110 -38
  159. package/dist/esmdev/foundation/math/MathUtil.d.ts +63 -1
  160. package/dist/esmdev/foundation/math/Matrix22.d.ts +176 -30
  161. package/dist/esmdev/foundation/math/Matrix33.d.ts +206 -38
  162. package/dist/esmdev/foundation/math/Matrix44.d.ts +222 -39
  163. package/dist/esmdev/foundation/math/MutableMatrix22.d.ts +125 -130
  164. package/dist/esmdev/foundation/math/MutableMatrix33.d.ts +148 -162
  165. package/dist/esmdev/foundation/math/MutableMatrix44.d.ts +159 -183
  166. package/dist/esmdev/foundation/math/MutableQuaternion.d.ts +241 -132
  167. package/dist/esmdev/foundation/math/MutableScalar.d.ts +11 -12
  168. package/dist/esmdev/foundation/math/MutableVector2.d.ts +30 -31
  169. package/dist/esmdev/foundation/math/MutableVector3.d.ts +28 -26
  170. package/dist/esmdev/foundation/math/MutableVector4.d.ts +37 -37
  171. package/dist/esmdev/foundation/math/Quaternion.d.ts +529 -36
  172. package/dist/esmdev/foundation/math/Scalar.d.ts +13 -14
  173. package/dist/esmdev/foundation/math/Vector2.d.ts +38 -38
  174. package/dist/esmdev/foundation/math/Vector3.d.ts +55 -54
  175. package/dist/esmdev/foundation/math/Vector4.d.ts +54 -55
  176. package/dist/esmdev/foundation/misc/MiscUtil.d.ts +79 -16
  177. package/dist/esmdev/foundation/misc/Time.d.ts +10 -1
  178. package/dist/esmdev/foundation/physics/CharacterControllerStrategy.d.ts +65 -0
  179. package/dist/esmdev/foundation/physics/Oimo/OimoPhysicsStrategy.d.ts +17 -1
  180. package/dist/esmdev/foundation/physics/PhysicsProperty.d.ts +43 -0
  181. package/dist/esmdev/foundation/physics/PhysicsStrategy.d.ts +15 -0
  182. package/dist/esmdev/foundation/physics/PhysicsWorldQuery.d.ts +65 -0
  183. package/dist/esmdev/foundation/physics/Rapier/RapierCharacterControllerStrategy.d.ts +58 -0
  184. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsStrategy.d.ts +157 -19
  185. package/dist/esmdev/foundation/physics/Rapier/RapierPhysicsWorldQueryStrategy.d.ts +11 -0
  186. package/dist/esmdev/foundation/physics/Rapier/index.d.ts +2 -0
  187. package/dist/esmdev/foundation/physics/ShapeTransformResolver.d.ts +19 -0
  188. package/dist/esmdev/foundation/physics/index.d.ts +2 -0
  189. package/dist/esmdev/index.js +35168 -27712
  190. package/dist/esmdev/types/AnimationTypes.d.ts +1 -1
  191. package/dist/esmdev/types/KHR_implicit_shapes.d.ts +47 -0
  192. package/dist/esmdev/types/KHR_physics_rigid_bodies.d.ts +54 -0
  193. package/dist/esmdev/types/VRMC.d.ts +12 -12
  194. package/dist/esmdev/types/VRMC_vrm_animation.d.ts +5 -0
  195. package/dist/esmdev/types/glTF2.d.ts +8 -0
  196. package/dist/esmdev/types/index.d.ts +2 -0
  197. package/dist/esmdev/webgl/main.d.ts +2 -1
  198. package/dist/esmdev/webgl/textureLoader/KTX2TextureLoader.d.ts +12 -0
  199. package/package.json +25 -23
@@ -7,7 +7,7 @@ import type { Second, VectorComponentN } from './CommonTypes';
7
7
  * type of animation.channel.target.path in glTF2
8
8
  * See: https://www.khronos.org/registry/glTF/specs/2.0/glTF-2.0.html#_animation_channels
9
9
  */
10
- export type AnimationPathName = 'undefined' | 'translate' | 'quaternion' | 'scale' | 'weights' | 'visibility' | `material/${string}` | 'light_color' | 'light_intensity' | 'light_range' | 'light_spot_innerConeAngle' | 'light_spot_outerConeAngle' | 'camera_znear' | 'camera_zfar' | 'camera_fovy' | 'camera_xmag' | 'camera_ymag' | 'effekseer';
10
+ export type AnimationPathName = 'undefined' | 'translate' | 'quaternion' | 'scale' | 'weights' | 'visibility' | `material/${string}` | 'light_color' | 'light_intensity' | 'light_range' | 'light_spot_innerConeAngle' | 'light_spot_outerConeAngle' | 'camera_znear' | 'camera_zfar' | 'camera_fovy' | 'camera_xmag' | 'camera_ymag' | `vrmExpression/${string}` | 'effekseer';
11
11
  export type AnimationTrackName = string;
12
12
  export interface AnimationInfo {
13
13
  name: AnimationTrackName;
@@ -0,0 +1,47 @@
1
+ import type { Array3 } from './CommonTypes';
2
+ import type { Gltf2AnyObject } from './glTF2';
3
+ export interface KHRImplicitShapeProperty {
4
+ extensions?: Gltf2AnyObject;
5
+ extras?: Gltf2AnyObject;
6
+ }
7
+ export interface KHRImplicitPlane extends KHRImplicitShapeProperty {
8
+ doubleSided?: boolean;
9
+ sizeX?: number;
10
+ sizeZ?: number;
11
+ }
12
+ export interface KHRImplicitSphere extends KHRImplicitShapeProperty {
13
+ radius?: number;
14
+ }
15
+ export interface KHRImplicitBox extends KHRImplicitShapeProperty {
16
+ size?: Array3<number>;
17
+ }
18
+ export interface KHRImplicitCylinder extends KHRImplicitShapeProperty {
19
+ height?: number;
20
+ radiusBottom?: number;
21
+ radiusTop?: number;
22
+ }
23
+ export interface KHRImplicitCapsule extends KHRImplicitShapeProperty {
24
+ height?: number;
25
+ radiusBottom?: number;
26
+ radiusTop?: number;
27
+ }
28
+ /**
29
+ * A shape resource declared by KHR_implicit_shapes.
30
+ *
31
+ * Shape parameter objects are optional because the extension schemas only
32
+ * require `type`; consumers apply the schema defaults when the matching
33
+ * parameter object is omitted.
34
+ */
35
+ export interface KHRImplicitShape extends KHRImplicitShapeProperty {
36
+ type: 'plane' | 'sphere' | 'box' | 'cylinder' | 'capsule' | (string & {});
37
+ name?: string;
38
+ plane?: KHRImplicitPlane;
39
+ sphere?: KHRImplicitSphere;
40
+ box?: KHRImplicitBox;
41
+ cylinder?: KHRImplicitCylinder;
42
+ capsule?: KHRImplicitCapsule;
43
+ }
44
+ export interface KHRImplicitShapes extends KHRImplicitShapeProperty {
45
+ shapes: KHRImplicitShape[];
46
+ }
47
+ export type KHRImplicitBoxSize = Array3<number>;
@@ -0,0 +1,54 @@
1
+ import type { Gltf2AnyObject } from './glTF2';
2
+ export interface KHRPhysicsRigidBodiesProperty {
3
+ extensions?: Gltf2AnyObject;
4
+ extras?: Gltf2AnyObject;
5
+ }
6
+ export interface KHRPhysicsMaterial extends KHRPhysicsRigidBodiesProperty {
7
+ name?: string;
8
+ staticFriction?: number;
9
+ dynamicFriction?: number;
10
+ restitution?: number;
11
+ frictionCombine?: 'average' | 'minimum' | 'maximum' | 'multiply';
12
+ restitutionCombine?: 'average' | 'minimum' | 'maximum' | 'multiply';
13
+ }
14
+ export interface KHRPhysicsGeometry extends KHRPhysicsRigidBodiesProperty {
15
+ convexHull?: boolean;
16
+ shape?: number;
17
+ mesh?: number;
18
+ }
19
+ export interface KHRPhysicsCollider extends KHRPhysicsRigidBodiesProperty {
20
+ geometry: KHRPhysicsGeometry;
21
+ physicsMaterial?: number;
22
+ collisionFilter?: number;
23
+ }
24
+ export interface KHRPhysicsCollisionFilter extends KHRPhysicsRigidBodiesProperty {
25
+ collisionSystems?: string[];
26
+ collideWithSystems?: string[];
27
+ notCollideWithSystems?: string[];
28
+ }
29
+ export interface KHRPhysicsMotion extends KHRPhysicsRigidBodiesProperty {
30
+ isKinematic?: boolean;
31
+ mass?: number;
32
+ centerOfMass?: number[];
33
+ inertiaDiagonal?: number[];
34
+ inertiaOrientation?: number[];
35
+ linearVelocity?: number[];
36
+ angularVelocity?: number[];
37
+ gravityFactor?: number;
38
+ }
39
+ export interface KHRPhysicsTrigger extends KHRPhysicsRigidBodiesProperty {
40
+ geometry?: KHRPhysicsGeometry;
41
+ nodes?: number[];
42
+ collisionFilter?: number;
43
+ }
44
+ export interface KHRPhysicsRigidBodiesNode extends KHRPhysicsRigidBodiesProperty {
45
+ motion?: KHRPhysicsMotion;
46
+ collider?: KHRPhysicsCollider;
47
+ trigger?: KHRPhysicsTrigger;
48
+ joint?: Gltf2AnyObject;
49
+ }
50
+ export interface KHRPhysicsRigidBodies extends KHRPhysicsRigidBodiesProperty {
51
+ physicsMaterials?: KHRPhysicsMaterial[];
52
+ collisionFilters?: KHRPhysicsCollisionFilter[];
53
+ physicsJoints?: Gltf2AnyObject[];
54
+ }
@@ -37,6 +37,15 @@ export type Vrm1TextureTransformBind = {
37
37
  offset: [number, number];
38
38
  };
39
39
  export type Vrm1OverrideType = 'none' | 'block' | 'blend';
40
+ export type Vrm1Expression = {
41
+ isBinary?: boolean;
42
+ morphTargetBinds?: Vrm1MorphTargetBind[];
43
+ materialColorBinds?: Vrm1MaterialColorBind[];
44
+ textureTransformBinds?: Vrm1TextureTransformBind[];
45
+ overrideBlink?: Vrm1OverrideType;
46
+ overrideLookAt?: Vrm1OverrideType;
47
+ overrideMouth?: Vrm1OverrideType;
48
+ };
40
49
  export type Vrm1_NodeConstraint_Constraint = {
41
50
  specVersion: string;
42
51
  constraint: {
@@ -87,18 +96,9 @@ export interface VRMC {
87
96
  firstPerson: {
88
97
  meshAnnotations: Vrm1_MeshAnnotation[];
89
98
  };
90
- expressions: {
91
- preset: {
92
- [key: string]: {
93
- isBinary: boolean;
94
- morphTargetBinds: Vrm1MorphTargetBind[];
95
- materialColorBinds: Vrm1MaterialColorBind[];
96
- textureTransformBinds: Vrm1TextureTransformBind[];
97
- overrideBlink: Vrm1OverrideType;
98
- overrideLookAt: Vrm1OverrideType;
99
- overrideMouth: Vrm1OverrideType;
100
- };
101
- };
99
+ expressions?: {
100
+ preset?: Record<string, Vrm1Expression>;
101
+ custom?: Record<string, Vrm1Expression>;
102
102
  };
103
103
  lookAt: {
104
104
  type: 'bone' | 'expression';
@@ -1,6 +1,10 @@
1
1
  export type HumanBoneNames = 'hips' | 'spine' | 'chest' | 'neck' | 'head' | 'leftUpperLeg' | 'leftLowerLeg' | 'leftFoot' | 'leftToes' | 'rightUpperLeg' | 'rightLowerLeg' | 'rightFoot' | 'rightToes' | 'leftShoulder' | 'leftUpperArm' | 'leftLowerArm' | 'leftHand' | 'rightShoulder' | 'rightUpperArm' | 'rightLowerArm' | 'rightHand';
2
2
  export type NodeId = number;
3
3
  export type ExpressionPreset = 'happy' | 'angry' | 'sad' | 'relaxed' | 'surprised' | 'aa' | 'ih' | 'ou' | 'ee' | 'oh' | 'blink' | 'blinkLeft' | 'blinkRight' | 'neutral';
4
+ export type VrmaExpressionName = {
5
+ name: string;
6
+ isPreset: boolean;
7
+ };
4
8
  export interface VRMC_vrm_animation {
5
9
  specVersion: string;
6
10
  humanoid?: {
@@ -23,4 +27,5 @@ export interface VRMC_vrm_animation {
23
27
  }
24
28
  export interface RnM2_VRMC_vrm_animation extends VRMC_vrm_animation {
25
29
  humanoidBoneNameMap?: Map<NodeId, HumanBoneNames>;
30
+ expressionNamesMap?: Map<NodeId, VrmaExpressionName[]>;
26
31
  }
@@ -1,4 +1,5 @@
1
1
  import type { CameraComponent } from '../foundation/components/Camera/CameraComponent';
2
+ import type { BoneDataTypeEnum } from '../foundation/definitions/BoneDataType';
2
3
  import type { ShaderSemanticsEnum } from '../foundation/definitions/ShaderSemantics';
3
4
  import type { ILoaderExtension } from '../foundation/importer/ILoaderExtension';
4
5
  import type { Expression } from '../foundation/renderer/Expression';
@@ -24,6 +25,7 @@ export type Gltf2 = {
24
25
  accessors?: Gltf2Accessor[];
25
26
  bufferViews?: Gltf2BufferView[];
26
27
  extensionsUsed?: string[];
28
+ extensionsRequired?: string[];
27
29
  extensions?: Gltf2AnyObject;
28
30
  extras?: Gltf2AnyObject;
29
31
  };
@@ -351,6 +353,12 @@ export type GltfLoadOption = {
351
353
  expression?: Expression;
352
354
  transmission?: boolean;
353
355
  shadow?: boolean;
356
+ /**
357
+ * Bone data type of the SkeletalComponents created by the importer.
358
+ * If not specified, Vec4x1 is chosen when all scales of the skeleton are uniform (or not specified),
359
+ * otherwise Vec4x2 is chosen. Specify BoneDataType.Mat43x1 explicitly to use 4x3 matrices.
360
+ */
361
+ boneDataType?: BoneDataTypeEnum;
354
362
  __isImportVRM0x?: boolean;
355
363
  __importedType?: 'gltf2' | 'glb2' | 'vrm0x' | 'vrm1' | 'draco' | 'undefined';
356
364
  };
@@ -4,7 +4,9 @@ export * from './CommonTypes';
4
4
  export * from './glTF1';
5
5
  export * from './glTF2';
6
6
  export * from './glTF2ForOutput';
7
+ export * from './KHR_implicit_shapes';
7
8
  export * from './KHR_interactivity';
9
+ export * from './KHR_physics_rigid_bodies';
8
10
  export * from './KTX2Texture';
9
11
  export * from './NodeJSON';
10
12
  export * from './RnM2';
@@ -1,3 +1,4 @@
1
+ import getRenderingStrategy from './getRenderingStrategy';
1
2
  import { StandardShaderPart } from './shaders/StandardShaderPart';
2
3
  import { WebGLContextWrapper } from './WebGLContextWrapper';
3
4
  import { type VertexHandles as vertexHandles, WebGLResourceRepository } from './WebGLResourceRepository';
@@ -5,7 +6,7 @@ import type { WebGLStrategy as webGLStrategy } from './WebGLStrategy';
5
6
  import { WebGLStrategyDataTexture } from './WebGLStrategyDataTexture';
6
7
  import { WebGLStrategyUniform } from './WebGLStrategyUniform';
7
8
  declare const WebGL: Readonly<{
8
- getRenderingStrategy: (engine: import("../foundation").Engine, processApproach: import("../foundation").ProcessApproachEnum) => webGLStrategy;
9
+ getRenderingStrategy: typeof getRenderingStrategy;
9
10
  StandardShaderPart: typeof StandardShaderPart;
10
11
  WebGLContextWrapper: typeof WebGLContextWrapper;
11
12
  WebGLResourceRepository: typeof WebGLResourceRepository;
@@ -135,4 +135,16 @@ export declare class KTX2TextureLoader {
135
135
  * @private
136
136
  */
137
137
  private __hasAlpha;
138
+ /**
139
+ * Returns the KHR_DF channel ID of a DFD sample.
140
+ *
141
+ * ktx-parse v2 renamed the former `channelID` property to `channelType`.
142
+ * The property is read in a version tolerant way so that both ktx-parse
143
+ * generations keep working for consumers that supply custom DFD samples.
144
+ *
145
+ * @param sample - A basic format sample of the data format descriptor
146
+ * @returns The numeric KHR_DF channel ID
147
+ * @private
148
+ */
149
+ private static __getChannelType;
138
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rhodonite",
3
- "version": "0.19.9",
3
+ "version": "0.20.0",
4
4
  "keywords": [
5
5
  "rhodonite",
6
6
  "webgl",
@@ -44,8 +44,10 @@
44
44
  "test-e2e": "npm run test-e2e-part -- ./samples/test_e2e",
45
45
  "test-e2e-serial": "npm run test-e2e-part -- --runInBand ./samples/test_e2e",
46
46
  "test-e2e-part": "npx vitest run --config ./config/test/vitest.config.e2e.ts",
47
- "test-e2e-update": "npm run test-e2e-part -- --update ./samples/test_e2e",
48
- "test-coverage": "npx vitest run --coverage",
47
+ "test-e2e:docker": "bash ./config/e2e/run-in-docker.sh test",
48
+ "test-e2e:docker:update": "bash ./config/e2e/run-in-docker.sh update",
49
+ "test-e2e:docker:shell": "bash ./config/e2e/run-in-docker.sh shell",
50
+ "test-coverage": "npx vitest run --coverage --config ./config/test/vitest.config.ts",
49
51
  "doc": "pnpm dlx --package typedoc@0.28.20 --package typescript@6.0.3 typedoc --exclude '**/*+(test|d).ts' --out ./docs/api/ ./src/",
50
52
  "pnpm-pack": "pnpm pack && ./rename_tgz.sh",
51
53
  "start": "node server.js",
@@ -59,38 +61,38 @@
59
61
  "check-fix-unsafe": "biome check --unsafe --write ./src ./samples"
60
62
  },
61
63
  "devDependencies": {
62
- "@biomejs/biome": "^2.3.11",
63
- "@swc/core": "^1.3.24",
64
- "@types/node": "^24.9.1",
65
- "@types/webgl-ext": "^0.0.36",
64
+ "@biomejs/biome": "^2.6.4",
65
+ "@swc/core": "^1.16.21",
66
+ "@types/node": "^26.6.6",
67
+ "@types/webgl-ext": "^0.0.37",
66
68
  "@types/webxr": "^0.5.24",
67
- "@vitest/coverage-v8": "3.2.7",
69
+ "@vitest/coverage-v8": "5.1.0",
68
70
  "cliui": "^9.0.1",
69
- "cross-env": "^7.0.3",
70
- "esbuild": "^0.28.1",
71
+ "cross-env": "^10.1.0",
72
+ "esbuild": "^0.28.2",
71
73
  "esbuild-plugin-shaderity": "^0.0.4",
72
74
  "esbuild-plugin-version": "^0.0.1",
73
- "express": "^4.22.0",
74
- "happy-dom": "^20.0.2",
75
- "jest-image-snapshot": "^6.4.0",
75
+ "express": "^5.3.0",
76
+ "happy-dom": "^21.0.4",
77
+ "jest-image-snapshot": "^6.5.2",
76
78
  "json-loader": "^0.5.7",
77
- "lefthook": "^2.0.15",
78
- "puppeteer": "^22.8.0",
79
- "shx": "0.3.4",
80
- "swc-loader": "^0.2.3",
79
+ "lefthook": "^2.2.2",
80
+ "puppeteer": "^25.16.0",
81
+ "shx": "0.4.0",
82
+ "swc-loader": "^0.2.7",
81
83
  "ts-loader": "^9.6.2",
82
84
  "tsc-watch": "^7.2.1",
83
- "typescript": "7.0.1-rc",
85
+ "typescript": "7.0.2",
84
86
  "version-loader": "^0.1.0",
85
- "vitest": "^3.2.7",
87
+ "vitest": "^5.1.0",
86
88
  "vitest-environment-puppeteer": "^11.0.3",
87
89
  "vitest-puppeteer": "^11.0.3",
88
- "webxr-input-profiles": "https://github.com/actnwit/webxr-input-profiles.git#21272c8a0a5512614e60dca5be26f7b1485ad6e7"
90
+ "webxr-input-profiles": "github:actnwit/webxr-input-profiles#21272c8a0a5512614e60dca5be26f7b1485ad6e7"
89
91
  },
90
92
  "dependencies": {
91
- "ktx-parse": "0.2.2",
93
+ "ktx-parse": "2.0.0",
92
94
  "shaderity": "^0.2.23",
93
- "zstddec": "^0.0.2"
95
+ "zstddec": "^0.3.4"
94
96
  },
95
97
  "description": "Rhodonite is a WebGL library written in TypeScript.",
96
98
  "bugs": {
@@ -103,5 +105,5 @@
103
105
  "engines": {
104
106
  "node": ">=22"
105
107
  },
106
- "packageManager": "pnpm@11.8.0"
108
+ "packageManager": "pnpm@12.15.0"
107
109
  }