Remove type cast in ol/style/AtlasManager

This commit is contained in:
Frederic Junod
2018-12-12 14:45:51 +01:00
parent 701e19c1c9
commit d2cae9d3b7
+2 -4
View File
@@ -152,14 +152,12 @@ class AtlasManager {
* entry, or `null` if the entry is not part of the atlases. * entry, or `null` if the entry is not part of the atlases.
*/ */
mergeInfos_(info, hitInfo) { mergeInfos_(info, hitInfo) {
return ( return {
/** @type {AtlasManagerInfo} */ ({
offsetX: info.offsetX, offsetX: info.offsetX,
offsetY: info.offsetY, offsetY: info.offsetY,
image: info.image, image: info.image,
hitImage: hitInfo.image hitImage: hitInfo.image
}) };
);
} }
/** /**