@galacean/engine-core 1.1.0-beta.36 → 1.1.0-beta.37
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/main.js +12 -2
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +12 -2
- package/dist/module.js +12 -2
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/miniprogram.js
CHANGED
|
@@ -21974,7 +21974,12 @@ var passNum = 0;
|
|
|
21974
21974
|
if (componentA.instanceId === componentB.instanceId) {
|
|
21975
21975
|
return dataA.material._priority - dataB.material._priority || componentA._distanceForSort - componentB._distanceForSort;
|
|
21976
21976
|
} else {
|
|
21977
|
-
|
|
21977
|
+
var distanceDiff = componentA._distanceForSort - componentB._distanceForSort;
|
|
21978
|
+
if (distanceDiff === 0) {
|
|
21979
|
+
return componentA.instanceId - componentB.instanceId;
|
|
21980
|
+
} else {
|
|
21981
|
+
return distanceDiff;
|
|
21982
|
+
}
|
|
21978
21983
|
}
|
|
21979
21984
|
};
|
|
21980
21985
|
/**
|
|
@@ -21992,7 +21997,12 @@ var passNum = 0;
|
|
|
21992
21997
|
if (componentA.instanceId === componentB.instanceId) {
|
|
21993
21998
|
return dataA.material._priority - dataB.material._priority || componentB._distanceForSort - componentA._distanceForSort;
|
|
21994
21999
|
} else {
|
|
21995
|
-
|
|
22000
|
+
var distanceDiff = componentB._distanceForSort - componentA._distanceForSort;
|
|
22001
|
+
if (distanceDiff === 0) {
|
|
22002
|
+
return componentA.instanceId - componentB.instanceId;
|
|
22003
|
+
} else {
|
|
22004
|
+
return distanceDiff;
|
|
22005
|
+
}
|
|
21996
22006
|
}
|
|
21997
22007
|
};
|
|
21998
22008
|
return RenderQueue;
|
package/dist/module.js
CHANGED
|
@@ -21969,7 +21969,12 @@ var passNum = 0;
|
|
|
21969
21969
|
if (componentA.instanceId === componentB.instanceId) {
|
|
21970
21970
|
return dataA.material._priority - dataB.material._priority || componentA._distanceForSort - componentB._distanceForSort;
|
|
21971
21971
|
} else {
|
|
21972
|
-
|
|
21972
|
+
var distanceDiff = componentA._distanceForSort - componentB._distanceForSort;
|
|
21973
|
+
if (distanceDiff === 0) {
|
|
21974
|
+
return componentA.instanceId - componentB.instanceId;
|
|
21975
|
+
} else {
|
|
21976
|
+
return distanceDiff;
|
|
21977
|
+
}
|
|
21973
21978
|
}
|
|
21974
21979
|
};
|
|
21975
21980
|
/**
|
|
@@ -21987,7 +21992,12 @@ var passNum = 0;
|
|
|
21987
21992
|
if (componentA.instanceId === componentB.instanceId) {
|
|
21988
21993
|
return dataA.material._priority - dataB.material._priority || componentB._distanceForSort - componentA._distanceForSort;
|
|
21989
21994
|
} else {
|
|
21990
|
-
|
|
21995
|
+
var distanceDiff = componentB._distanceForSort - componentA._distanceForSort;
|
|
21996
|
+
if (distanceDiff === 0) {
|
|
21997
|
+
return componentA.instanceId - componentB.instanceId;
|
|
21998
|
+
} else {
|
|
21999
|
+
return distanceDiff;
|
|
22000
|
+
}
|
|
21991
22001
|
}
|
|
21992
22002
|
};
|
|
21993
22003
|
return RenderQueue;
|