@lv-x-software-house/x_view 1.2.6-dev.84 → 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 +6 -8
- package/dist/index.mjs +6 -8
- 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 });
|
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 });
|
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",
|