@gamelearn/arcade-components 3.8.0 → 3.8.1

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.
@@ -3,7 +3,7 @@ import React__default, { useRef, useEffect, useCallback, Suspense, createContext
3
3
  import { OrbitControls, PerspectiveCamera as PerspectiveCamera$1, Environment } from "@react-three/drei";
4
4
  import { Renderer, QualityManager, SceneResource, CameraControls, SettingsController, HtmlPro } from "@gamelearn/arcade-three-core";
5
5
  import { useThree, useFrame } from "@react-three/fiber";
6
- import { Vector3, Box3, AnimationUtils, TrianglesDrawMode, TriangleFanDrawMode, TriangleStripDrawMode, Loader, LoaderUtils, FileLoader, Color, LinearSRGBColorSpace, SpotLight, PointLight, DirectionalLight, MeshBasicMaterial, SRGBColorSpace, MeshPhysicalMaterial, Vector2, Matrix4, Quaternion, InstancedMesh, InstancedBufferAttribute, Object3D, TextureLoader, ImageBitmapLoader, BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, LinearFilter, LinearMipmapLinearFilter, RepeatWrapping, PointsMaterial, Material, LineBasicMaterial, MeshStandardMaterial, DoubleSide, PropertyBinding, BufferGeometry, SkinnedMesh, Mesh, LineSegments, Line as Line$3, LineLoop, Points, Group as Group$3, PerspectiveCamera, MathUtils, OrthographicCamera, Skeleton, AnimationClip, Bone, InterpolateLinear, ColorManagement, NearestFilter, NearestMipmapNearestFilter, LinearMipmapNearestFilter, NearestMipmapLinearFilter, ClampToEdgeWrapping, MirroredRepeatWrapping, InterpolateDiscrete, FrontSide, Texture, VectorKeyframeTrack, NumberKeyframeTrack, QuaternionKeyframeTrack, Sphere, Interpolant, Raycaster, LoopOnce, LoopRepeat } from "three";
6
+ import { Vector3, Box3, AnimationUtils, TrianglesDrawMode, TriangleFanDrawMode, TriangleStripDrawMode, Loader, LoaderUtils, FileLoader, Color, LinearSRGBColorSpace, SpotLight, PointLight, DirectionalLight, MeshBasicMaterial, SRGBColorSpace, MeshPhysicalMaterial, Vector2, Matrix4, Quaternion, InstancedMesh, InstancedBufferAttribute, Object3D, TextureLoader, ImageBitmapLoader, BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, LinearFilter, LinearMipmapLinearFilter, RepeatWrapping, PointsMaterial, Material, LineBasicMaterial, MeshStandardMaterial, DoubleSide, PropertyBinding, BufferGeometry, SkinnedMesh, Mesh, LineSegments, Line as Line$3, LineLoop, Points, Group as Group$3, PerspectiveCamera, MathUtils, OrthographicCamera, Skeleton, AnimationClip, Bone, InterpolateLinear, ColorManagement, NearestFilter, NearestMipmapNearestFilter, LinearMipmapNearestFilter, NearestMipmapLinearFilter, ClampToEdgeWrapping, MirroredRepeatWrapping, InterpolateDiscrete, FrontSide, Texture, VectorKeyframeTrack, NumberKeyframeTrack, QuaternionKeyframeTrack, Sphere, Interpolant, Raycaster, LoopRepeat } from "three";
7
7
  import require$$0 from "react-dom";
8
8
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
9
9
  function getDefaultExportFromCjs(o) {
@@ -57483,12 +57483,12 @@ function DialogComponent({
57483
57483
  const Rt = Ie.includes("seated");
57484
57484
  ht ? V($e, ht.url, Ie.includes("talking")).then((Kt) => {
57485
57485
  if (Kt && BASIC_ACTIONS_TYPES_WHITELIST.includes(ht.animationId)) {
57486
- const It = Kt.setLoop(LoopOnce, 1).getMixer(), kr = () => {
57486
+ const It = Kt.setLoop(LoopRepeat, 2).getMixer(), kr = () => {
57487
57487
  U($e, ie.current === $e ? "neutral_talking" : "neutral").then(() => {
57488
- It.removeEventListener("finished", kr);
57488
+ It.removeEventListener("loop", kr);
57489
57489
  });
57490
57490
  };
57491
- It.addEventListener("finished", kr);
57491
+ It.addEventListener("loop", kr);
57492
57492
  }
57493
57493
  }) : U($e, Et && !Rt ? `${Ie}-seated` : Ie);
57494
57494
  }, kt = () => {