You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/engine/Source/Renderer/TextureAtlas.js
+21-13Lines changed: 21 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -680,13 +680,13 @@ TextureAtlas.prototype.addImage = function (id, image) {
680
680
};
681
681
682
682
/**
683
-
* Add a sub-region of an existing atlas image as additional image indices.
683
+
* Get a sub-region of an existing atlas image as additional image indices.
684
684
* @private
685
685
* @param {string} id The identifier of the existing image.
686
686
* @param {BoundingRectangle} subRegion An {@link BoundingRectangle} defining a region of an existing image, measured in pixels from the bottom-left of the image.
687
-
* @returns {Promise<number>} A Promise that resolves to the image region index. -1 is returned if resouces are in the process of being destroyed.
687
+
* @returns {number | undefined} The existing subRegion index, or undefined if not yet added.
* Add a sub-region of an existing atlas image as additional image indices.
713
+
* @private
714
+
* @param {string} id The identifier of the existing image.
715
+
* @param {BoundingRectangle} subRegion An {@link BoundingRectangle} defining a region of an existing image, measured in pixels from the bottom-left of the image.
716
+
* @returns {Promise<number>} A Promise that resolves to the image region index. -1 is returned if resouces are in the process of being destroyed.
0 commit comments