Leaflet/spec
ghybs f677f9c6d2 Feat(Bounds): add new methods for 2 missing corners (#5488)
* Feat(Bounds): add getTopLeft & getBottomRight methods

as suggested in #5475, for consistency with `LatLngBounds` methods which already provide methods for the 4 possible corners.
Also include the docstrings.

* Docs(Bounds): add comments to identify corners

in BoundsSpec.

* Test(Bounds): add tests for existing corner methods

namely getBottomLeft and getTopRight.
Checked that expecting different values make the tests fail.

* Test(Bounds): add spec for 2 new corner methods

namely getTopLeft and getBottomRight.
Closes #5475 together with previous PR #5487.

* Refactor(Bounds): return this.min(max) instead of new Point

as TopLeft corner is tha same as this.min (BottomRight same as this.max).

* Docs(Bounds): add links to this.min(max)

to make it clearer that these methods are just shorthands to already available properties.
Furthermore, it implies that they output those properties directly, making a clue for the app developer that if he/she wants to modify them, they should be cloned before doing so in order to prevent unintentional behaviour.
2017-05-11 22:24:15 +02:00
..
suites Feat(Bounds): add new methods for 2 missing corners (#5488) 2017-05-11 22:24:15 +02:00
.eslintrc Allow to make screenshots in Phantomjs (#4705) 2016-07-08 11:05:12 +02:00
after.js fix icon url warnings in tests 2016-09-27 17:58:08 +03:00
expect.js Use mocha 2013-04-03 14:50:09 -07:00
index.html Do not stop keypress on escape if no popup is open 2017-02-14 13:15:50 +01:00
karma.conf.js ES2015 modules: Add index.js files to subdirectories/namespace (#5329) 2017-02-13 14:14:00 +01:00
sinon.js Use mocha 2013-04-03 14:50:09 -07:00