Add existing to tracked

This commit is contained in:
Jay
2026-08-11 09:53:42 -04:00
parent afe07f3055
commit ffd6e3d73c
8531 changed files with 4396230 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
/**
* An enum describing what commands (opaque or translucent) are required by
* a {@link Cesium3DTileStyle}.
*
* @enum {number}
* @private
*/
const StyleCommandsNeeded = {
ALL_OPAQUE: 0,
ALL_TRANSLUCENT: 1,
OPAQUE_AND_TRANSLUCENT: 2,
};
/**
* @private
*/
StyleCommandsNeeded.getStyleCommandsNeeded = function (
featuresLength,
translucentFeaturesLength,
) {
if (translucentFeaturesLength === 0) {
return StyleCommandsNeeded.ALL_OPAQUE;
} else if (translucentFeaturesLength === featuresLength) {
return StyleCommandsNeeded.ALL_TRANSLUCENT;
}
return StyleCommandsNeeded.OPAQUE_AND_TRANSLUCENT;
};
Object.freeze(StyleCommandsNeeded);
export default StyleCommandsNeeded;