Remove type cast in ol/style/AtlasManager
This commit is contained in:
@@ -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
|
};
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user