@ntalmagor/3drize-viewer 0.1.18 → 0.1.19

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.
@@ -99,7 +99,7 @@ export const CameraController = ({ enableAutoAnimation = true, animationDuration
99
99
  event.step.transitions.forEach((transition) => {
100
100
  const { state, properties, pathId } = transition;
101
101
  if (state === 'camera') {
102
- // console.log('Camera transition detected. Starting animation to new camera state:', properties);
102
+ console.log('Camera transition detected. Starting animation to new camera state:', properties);
103
103
  isInAnimatedTransition.current = true;
104
104
  if (pathId) {
105
105
  const offset = camera
@@ -1 +1 @@
1
- {"version":3,"file":"useInteraction.d.ts","sourceRoot":"","sources":["../../src/hooks/useInteraction.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAyB,wBAAwB,EAA8B,MAAM,wBAAwB,CAAC;AAkB1J,wBAAgB,cAAc,CAAC,EAE7B,cAAc,EACd,SAAS,GACV,EAAE;IACD,cAAc,EAAE,WAAW,CAAC;IAC5B,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;iCA8OW,wBAAwB,KAC/B,IAAI;;;;EAwCR;AAED,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"useInteraction.d.ts","sourceRoot":"","sources":["../../src/hooks/useInteraction.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAyB,wBAAwB,EAA8B,MAAM,wBAAwB,CAAC;AAiB1J,wBAAgB,cAAc,CAAC,EAE7B,cAAc,EACd,SAAS,GACV,EAAE;IACD,cAAc,EAAE,WAAW,CAAC;IAC5B,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;iCA8OW,wBAAwB,KAC/B,IAAI;;;;EAwCR;AAED,eAAe,cAAc,CAAC"}
@@ -12,7 +12,6 @@ import { AnimationsManager } from '@ntalmagor/3drize-core';
12
12
  import useCameraAnimation from '../hooks/useCameraAnimation.js';
13
13
  import { useFrameAnimations } from '../hooks/useFrameAnimations.js';
14
14
  import { useObjectEffects } from '../hooks/useObjectEffects.js';
15
- // import AnimationsManager from '../utils/AnimationsManager';
16
15
  import { findById } from '../utils/sceneQuery.js';
17
16
  // =============================================================================
18
17
  // TYPES
@@ -68,6 +67,7 @@ cameraSettings, sequences, }) {
68
67
  if (!animationIds || animationIds.length === 0)
69
68
  return;
70
69
  console.log('[useInteraction] triggerAnimations:', animationIds);
70
+ console.log('Available sequences:', sequences.map(s => s.id));
71
71
  animationIds.forEach(animationId => {
72
72
  const sequence = sequences.find(s => s.id === animationId);
73
73
  if (sequence) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ntalmagor/3drize-viewer",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,6 +26,7 @@
26
26
  "@react-three/fiber": "^9",
27
27
  "@react-three/rapier": "^2",
28
28
  "react": "^18 || ^19",
29
+ "@ntalmagor/3drize-core": "^0.1.13",
29
30
  "three": "^0.170"
30
31
  },
31
32
  "devDependencies": {
@@ -37,7 +38,5 @@
37
38
  "three": "^0.170.0",
38
39
  "typescript": "^5.7.2"
39
40
  },
40
- "dependencies": {
41
- "@ntalmagor/3drize-core": "^0.1.13"
42
- }
41
+ "dependencies": {}
43
42
  }