@lv-x-software-house/x_view 1.2.1-dev.2 → 1.2.1-dev.3

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/dist/index.js CHANGED
@@ -9125,17 +9125,6 @@ function XViewScene({
9125
9125
  (0, import_react23.useEffect)(() => {
9126
9126
  stateRef.current.ancestry = ancestryMode;
9127
9127
  }, [ancestryMode]);
9128
- (0, import_react23.useEffect)(() => {
9129
- if (isInitialized && focusNodeId && !hasFocusedInitial && stateRef.current.nodeObjects) {
9130
- const targetMesh = stateRef.current.nodeObjects[String(focusNodeId)];
9131
- if (targetMesh) {
9132
- setTimeout(() => {
9133
- tweenToTarget(targetMesh, 1.2);
9134
- setHasFocusedInitial(true);
9135
- }, 800);
9136
- }
9137
- }
9138
- }, [isInitialized, sceneVersion, focusNodeId, hasFocusedInitial, tweenToTarget]);
9139
9128
  (0, import_react23.useEffect)(() => {
9140
9129
  var _a2;
9141
9130
  if (!isInitialized) return;
@@ -9276,6 +9265,17 @@ function XViewScene({
9276
9265
  tweenGroup.add(cameraTween);
9277
9266
  cameraTween.start();
9278
9267
  }, []);
9268
+ (0, import_react23.useEffect)(() => {
9269
+ if (isInitialized && focusNodeId && !hasFocusedInitial && stateRef.current.nodeObjects) {
9270
+ const targetMesh = stateRef.current.nodeObjects[String(focusNodeId)];
9271
+ if (targetMesh) {
9272
+ setTimeout(() => {
9273
+ tweenToTarget(targetMesh, 1.2);
9274
+ setHasFocusedInitial(true);
9275
+ }, 800);
9276
+ }
9277
+ }
9278
+ }, [isInitialized, sceneVersion, focusNodeId, hasFocusedInitial, tweenToTarget]);
9279
9279
  const isFromUiOverlay = (event) => {
9280
9280
  const t = event == null ? void 0 : event.target;
9281
9281
  if (!t || typeof t.closest !== "function") return false;
package/dist/index.mjs CHANGED
@@ -9121,17 +9121,6 @@ function XViewScene({
9121
9121
  useEffect20(() => {
9122
9122
  stateRef.current.ancestry = ancestryMode;
9123
9123
  }, [ancestryMode]);
9124
- useEffect20(() => {
9125
- if (isInitialized && focusNodeId && !hasFocusedInitial && stateRef.current.nodeObjects) {
9126
- const targetMesh = stateRef.current.nodeObjects[String(focusNodeId)];
9127
- if (targetMesh) {
9128
- setTimeout(() => {
9129
- tweenToTarget(targetMesh, 1.2);
9130
- setHasFocusedInitial(true);
9131
- }, 800);
9132
- }
9133
- }
9134
- }, [isInitialized, sceneVersion, focusNodeId, hasFocusedInitial, tweenToTarget]);
9135
9124
  useEffect20(() => {
9136
9125
  var _a2;
9137
9126
  if (!isInitialized) return;
@@ -9272,6 +9261,17 @@ function XViewScene({
9272
9261
  tweenGroup.add(cameraTween);
9273
9262
  cameraTween.start();
9274
9263
  }, []);
9264
+ useEffect20(() => {
9265
+ if (isInitialized && focusNodeId && !hasFocusedInitial && stateRef.current.nodeObjects) {
9266
+ const targetMesh = stateRef.current.nodeObjects[String(focusNodeId)];
9267
+ if (targetMesh) {
9268
+ setTimeout(() => {
9269
+ tweenToTarget(targetMesh, 1.2);
9270
+ setHasFocusedInitial(true);
9271
+ }, 800);
9272
+ }
9273
+ }
9274
+ }, [isInitialized, sceneVersion, focusNodeId, hasFocusedInitial, tweenToTarget]);
9275
9275
  const isFromUiOverlay = (event) => {
9276
9276
  const t = event == null ? void 0 : event.target;
9277
9277
  if (!t || typeof t.closest !== "function") return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv-x-software-house/x_view",
3
- "version": "1.2.1-dev.2",
3
+ "version": "1.2.1-dev.3",
4
4
  "description": "Pacote privado contendo os componentes e lógica de renderização 3D do X View.",
5
5
  "author": "iv.x - Engenharia de Software - ivxsoftwarehouse@gmail.com",
6
6
  "license": "UNLICENSED",