mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #46687 Fix heremaps group get bounds by @Kuraikiko
* [@types/heremaps] rename Group.getBounds -> Group.getBoundingBox See https://developer.here.com/documentation/maps/3.1.17.0/api_reference/H.map.Group.html#getBoundingBox * Add group bounds test * remove spacing
This commit is contained in:
parent
11360c60af
commit
586d2e1ca1
@ -206,3 +206,7 @@ const engineListener = (e: Event) => {
|
||||
};
|
||||
engine.addEventListener('tap', engineListener);
|
||||
engine.removeEventListener('tap', engineListener);
|
||||
|
||||
// Get group bounds
|
||||
const group = new H.map.Group();
|
||||
const bounds = group.getBoundingBox();
|
||||
|
||||
2
types/heremaps/index.d.ts
vendored
2
types/heremaps/index.d.ts
vendored
@ -1835,7 +1835,7 @@ declare namespace H {
|
||||
* Method returns the bounding rectangle for the group. The rectangle is the smallest rectangle that covers all objects. If group doesn't contains objects method returns null.
|
||||
* @returns {H.geo.Rect} - geo ractangle that covers all objects in the group
|
||||
*/
|
||||
getBounds(): H.geo.Rect;
|
||||
getBoundingBox(): H.geo.Rect;
|
||||
|
||||
/**
|
||||
* To add an object to this group.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user