Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Andreas Hocevar
9af1e223af
More tests and docs for extent and coordinate wrapX
2020-03-31 16:11:06 +02:00
Andreas Hocevar
cdafc4fa05
Add approximatelyEquals function for comparing extents
2020-03-31 16:11:06 +02:00
Andreas Hocevar
098885a006
New wrapX functions for coordinate and extent
2020-03-31 16:03:12 +02:00
mike-000
ac2b58c554
test using extra stops for extent transform
...
correct coordinate order
2020-02-27 12:19:31 +00:00
mike-000
633396e7df
test using extra stops for extent transform
2020-02-27 12:12:57 +00:00
Frederic Junod
187f58c1c3
Remove opt_this param in ol/extent
2019-04-08 13:46:54 +02:00
Frederic Junod
76cd52325d
Fix getIntersection return value when an opt extent is provided
...
The return value was not an empty extent when the extents didn't intersect.
2018-02-07 14:49:10 +01:00
Tim Schaub
ad62739a6e
Use blocked scoped variables
...
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub
6f72ffe498
Named exports from ol/proj
2017-12-14 13:08:40 +01:00
Andreas Hocevar
5a4887e300
Remove default export from ol/extent
2017-12-13 22:05:10 +01:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
a3e3e99baa
Get rid of useless test exports
2017-08-17 15:16:58 -04:00
Frederic Junod
0a2b145fd5
Remove unused ol.extent.empty function
2016-10-21 14:25:46 +02:00
Frederic Junod
0f8d26d829
Remove unused ol.extent.touches function
2016-10-21 14:23:31 +02:00
Frederic Junod
2a1a9ec337
Remove unused ol.extent.isInfinite function
2016-10-21 14:22:37 +02:00
Frederic Junod
5627a467cd
Remove unused ol.extent.normalize function
2016-10-21 14:20:33 +02:00
Tim Schaub
ed5dbd1293
Put test requires on top
2016-08-08 09:58:11 -06:00
Andreas Hocevar
34d5cc228e
Merge pull request #5429 from probins/testenums
...
Remove enums from tests
2016-07-15 09:12:58 +02:00
Andreas Hocevar
cf7ff841a7
Remove use of goog.vec.*
2016-06-23 13:10:41 +02:00
Peter Robins
06fd92353b
Remove enums from tests
2016-06-03 11:10:46 +00:00
Frederic Junod
72e354dce3
Remove unused ol.extent.transform2D function
2016-04-13 17:18:57 +02:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
3a0683f373
Inline !goog.isDef() property checks
2015-09-27 10:24:38 -06:00
Marc Jansen
f0720b2f97
Add more tests for ol.extent
2015-05-19 22:25:55 +02:00
Tim Schaub
941f53ec80
Handle left/right segment intersections for top/bottom spans
...
The ol.extent.intersectsSegment function was not correctly handling segments that span from above to below an extent while intersecting the sides.
2015-04-19 09:43:06 -06:00
Éric Lemoine
72e173d925
Rename ol.extent.segmentIntersects to intersectsSegment
2014-09-17 12:26:26 +02:00
Tim Schaub
dd5e7693da
General purpose getCorner function for extents
2014-08-18 14:55:49 -06:00
Tim Schaub
42f953d08d
Function for getting extent intersection
2014-07-24 10:26:07 -06:00
Tim Schaub
e802902f9b
Rename ol.extent.getForView2DAndSize to ol.extent.getForViewAndSize
2014-06-27 09:59:39 -04:00
Tim Schaub
015aab8af3
Rename ol.extent.transform to ol.extent.applyTransform
...
This gives more consistency with ol.proj.applyTransform, allowing us to add a more convenient ol.extent.transform method that takes projection-like arguments.
2014-05-02 10:13:28 -06:00
Tim Schaub
af1bd0228c
Function for applying a 2d transform to an extent
2014-02-25 22:07:16 -07:00
Tim Schaub
6b018bbaf9
Testing segment intersection with extent
...
If needed, this function can be modified to take two additional coorinates that will be set to the intersection points.
2014-02-25 21:47:57 -07:00
Tim Schaub
cb11959f01
Determining coordinate relationship to extent
2014-02-25 21:47:57 -07:00
Tim Schaub
2537fb4574
Fixing test failure on Chrome 33
2014-02-24 14:53:00 -07:00
Tom Payne
784f3500f2
Make ol.extent.buffer return an extent instead of mutating
2014-01-09 15:27:56 +01:00
Tim Schaub
b0cea7139b
Function to buffer an extent
2013-11-04 13:21:11 -07:00
Tom Payne
aa44547565
Remove ol.extent.toString
2013-09-20 12:14:41 +01:00
Éric Lemoine
70c66d4cf1
Add ol.extent.touches
2013-09-16 15:51:12 +02:00
Tim Schaub
e806f51b3d
Changing extent structure back to single array: [minX, minY, maxX, maxY]
...
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub
dbccb8b231
Function for cloning extents
2013-09-14 21:11:52 -06:00
Tim Schaub
fcf00dea8b
New structure for extent: [minCoord, maxCoord]
2013-09-14 21:11:52 -06:00
Frederic Junod
a1a7e21f92
Redefine ol.Size to be Array.<number>
2013-06-01 10:22:06 +02:00
Tom Payne
46553c719c
Rename ol.projection to ol.proj
2013-05-30 18:55:58 +02:00
Tom Payne
16f70ba1a0
Replace ol.Extent and ol.Rectangle with Array.<number>
2013-04-19 09:32:11 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Tobias Bieniek
89ab68cde7
Replaced jasmine testing framework by mocha, expect.js and sinon
...
as discussed in #319
2013-03-13 04:32:43 +01:00
Tom Payne
ed787ba79c
Add ol.Extent.getForView2DAndSize
2013-03-10 15:51:08 +01:00
Tom Payne
21d34f1cc8
Rename projection functions for a friendlier API
...
The following functions are renamed:
getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform
With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00
Tom Payne
df5f74b3c0
Add missing requires to specs
2013-03-04 20:02:55 +01:00