@lv-x-software-house/x_view 1.2.6-dev.83 → 1.2.6-dev.85
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 +10 -9
- package/dist/index.mjs +10 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -895,11 +895,11 @@ var getParentFileInfoForNode = (allParentData, sceneData, nodeId, sceneConfigId
|
|
|
895
895
|
if (allParentData.hasOwnProperty(parentFileId)) {
|
|
896
896
|
const parentFile = allParentData[parentFileId];
|
|
897
897
|
if (parentFile.nodes && parentFile.nodes.some((n) => String(n.id) === String(nodeId))) {
|
|
898
|
-
const
|
|
898
|
+
const parentDbInfo2 = parentDbsArray.find(
|
|
899
899
|
(db) => String(db.db_id) === String(parentFileId)
|
|
900
900
|
);
|
|
901
|
-
if (
|
|
902
|
-
return { parentFileId, ownerId:
|
|
901
|
+
if (parentDbInfo2) {
|
|
902
|
+
return { parentFileId, ownerId: parentDbInfo2.owner_id };
|
|
903
903
|
} else if (sceneConfigId && String(parentFileId) === String(sceneConfigId)) {
|
|
904
904
|
return { parentFileId, ownerId: sceneOwnerId };
|
|
905
905
|
} else {
|
|
@@ -15637,11 +15637,9 @@ function XViewScene({
|
|
|
15637
15637
|
for (const parentFileId in allParentData) {
|
|
15638
15638
|
if (allParentData.hasOwnProperty(parentFileId)) {
|
|
15639
15639
|
const parentFile = allParentData[parentFileId];
|
|
15640
|
-
const
|
|
15641
|
-
|
|
15642
|
-
)
|
|
15643
|
-
const ownerId2 = (parentDbInfo == null ? void 0 : parentDbInfo.owner_id) || null;
|
|
15644
|
-
const datasetName = parentFile.dataset_name || `Dataset #${parentFileId.substring(0, 6)}`;
|
|
15640
|
+
const isCurrentView = String(parentFileId) === String(sceneConfigId);
|
|
15641
|
+
const ownerId2 = (parentDbInfo == null ? void 0 : parentDbInfo.owner_id) || (isCurrentView ? viewParams == null ? void 0 : viewParams.owner_id : null);
|
|
15642
|
+
const datasetName = isCurrentView ? "Quests Internas (View)" : parentFile.dataset_name || `Dataset #${parentFileId.substring(0, 6)}`;
|
|
15645
15643
|
if (parentFile.nodes && ownerId2) {
|
|
15646
15644
|
for (const node of parentFile.nodes) {
|
|
15647
15645
|
map.set(String(node.id), { parentFileId, ownerId: ownerId2, datasetName });
|
|
@@ -18046,7 +18044,10 @@ function XViewScene({
|
|
|
18046
18044
|
const updatedNodeData = sceneData.quest_nodes[questIndex];
|
|
18047
18045
|
const nodeMesh = (_a2 = stateRef.current.nodeObjects) == null ? void 0 : _a2[String(questNodeId)];
|
|
18048
18046
|
if (nodeMesh) {
|
|
18049
|
-
nodeMesh.userData
|
|
18047
|
+
nodeMesh.userData = {
|
|
18048
|
+
...nodeMesh.userData,
|
|
18049
|
+
...updatedNodeData
|
|
18050
|
+
};
|
|
18050
18051
|
}
|
|
18051
18052
|
if (detailsNode && String(detailsNode.id) === String(questNodeId)) {
|
|
18052
18053
|
setDetailsNode((prev) => ({
|
package/dist/index.mjs
CHANGED
|
@@ -856,11 +856,11 @@ var getParentFileInfoForNode = (allParentData, sceneData, nodeId, sceneConfigId
|
|
|
856
856
|
if (allParentData.hasOwnProperty(parentFileId)) {
|
|
857
857
|
const parentFile = allParentData[parentFileId];
|
|
858
858
|
if (parentFile.nodes && parentFile.nodes.some((n) => String(n.id) === String(nodeId))) {
|
|
859
|
-
const
|
|
859
|
+
const parentDbInfo2 = parentDbsArray.find(
|
|
860
860
|
(db) => String(db.db_id) === String(parentFileId)
|
|
861
861
|
);
|
|
862
|
-
if (
|
|
863
|
-
return { parentFileId, ownerId:
|
|
862
|
+
if (parentDbInfo2) {
|
|
863
|
+
return { parentFileId, ownerId: parentDbInfo2.owner_id };
|
|
864
864
|
} else if (sceneConfigId && String(parentFileId) === String(sceneConfigId)) {
|
|
865
865
|
return { parentFileId, ownerId: sceneOwnerId };
|
|
866
866
|
} else {
|
|
@@ -15700,11 +15700,9 @@ function XViewScene({
|
|
|
15700
15700
|
for (const parentFileId in allParentData) {
|
|
15701
15701
|
if (allParentData.hasOwnProperty(parentFileId)) {
|
|
15702
15702
|
const parentFile = allParentData[parentFileId];
|
|
15703
|
-
const
|
|
15704
|
-
|
|
15705
|
-
)
|
|
15706
|
-
const ownerId2 = (parentDbInfo == null ? void 0 : parentDbInfo.owner_id) || null;
|
|
15707
|
-
const datasetName = parentFile.dataset_name || `Dataset #${parentFileId.substring(0, 6)}`;
|
|
15703
|
+
const isCurrentView = String(parentFileId) === String(sceneConfigId);
|
|
15704
|
+
const ownerId2 = (parentDbInfo == null ? void 0 : parentDbInfo.owner_id) || (isCurrentView ? viewParams == null ? void 0 : viewParams.owner_id : null);
|
|
15705
|
+
const datasetName = isCurrentView ? "Quests Internas (View)" : parentFile.dataset_name || `Dataset #${parentFileId.substring(0, 6)}`;
|
|
15708
15706
|
if (parentFile.nodes && ownerId2) {
|
|
15709
15707
|
for (const node of parentFile.nodes) {
|
|
15710
15708
|
map.set(String(node.id), { parentFileId, ownerId: ownerId2, datasetName });
|
|
@@ -18109,7 +18107,10 @@ function XViewScene({
|
|
|
18109
18107
|
const updatedNodeData = sceneData.quest_nodes[questIndex];
|
|
18110
18108
|
const nodeMesh = (_a2 = stateRef.current.nodeObjects) == null ? void 0 : _a2[String(questNodeId)];
|
|
18111
18109
|
if (nodeMesh) {
|
|
18112
|
-
nodeMesh.userData
|
|
18110
|
+
nodeMesh.userData = {
|
|
18111
|
+
...nodeMesh.userData,
|
|
18112
|
+
...updatedNodeData
|
|
18113
|
+
};
|
|
18113
18114
|
}
|
|
18114
18115
|
if (detailsNode && String(detailsNode.id) === String(questNodeId)) {
|
|
18115
18116
|
setDetailsNode((prev) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lv-x-software-house/x_view",
|
|
3
|
-
"version": "1.2.6-dev.
|
|
3
|
+
"version": "1.2.6-dev.85",
|
|
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",
|