Commit Graph

33 Commits

Author SHA1 Message Date
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 3c78cb7872 Rename _ol_geom_MultiLineString_ to MultiLineString 2017-12-14 08:55:33 -07:00
Tim Schaub f7b3876c1b Rename _ol_geom_LineString_ to LineString 2017-12-14 08:54:53 -07: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
Tim Schaub ed5dbd1293 Put test requires on top 2016-08-08 09:58:11 -06:00
Tim Schaub 795cee876e Add a method to scale geometries 2016-08-04 10:23:00 -06:00
Peter Robins 06fd92353b Remove enums from tests 2016-06-03 11:10:46 +00:00
Tim Schaub 8d80924ba8 Remove gjslint.py 2016-01-11 22:03:12 -08:00
Alvin Lindstam 405d5666e2 Add tests for intersectsExtent/getExtent
This commit adds tests for `intersectsExtent` of Point, LineString, Polygon,
MultiPoint, MultiLineString, MultiPolygon and GeometryCollection.

It also adds a basic test for `getExtent` of MultiPolygon
2015-06-05 14:19:46 +02:00
Éric Lemoine e45c44fa01 Add missing goog.provide's 2015-04-07 13:49:36 +02:00
Tom Payne 7a51b4c7b6 Add ol.geom.MultiLineString#appendLineString 2014-03-10 16:53:20 +01:00
Tom Payne 7ee4fb8a2e Add ol.geom.MultiLineString#getLineString 2014-03-10 16:53:20 +01:00
Tom Payne 8125b4a847 Add ol.geom.MultiLineString#getCoordinateAtM 2014-03-02 12:14:52 +01:00
Tom Payne a37199675c Add ol.geom.MultiLineString#getFlatMidpoints 2014-02-03 15:49:03 +01:00
Tom Payne 0bf34a52ff Add ol.geom.MultiLineString#setLineStrings 2013-12-20 16:33:26 +01:00
Tom Payne c2228b1d19 Rename ol.geom.Layout to ol.geom.GeometryLayout 2013-12-04 16:27:03 +01:00
Tom Payne 1a9d19a2fb Allow geometries to have null coordinates and add setFlatCoordinates 2013-12-03 19:58:34 +01:00
Tom Payne 9d07e6509f Refactor ol.geom.MultiLineString 2013-11-20 11:41:58 +01:00
Tom Payne 4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00
ahocevar 52552c9b18 Fire change events for multi-part geometries 2013-10-04 23:36:16 -06:00
Tim Schaub 1aa83e133b Remove dimension property from geometries
This was only necessary when using the shared vertices structure.
2013-09-27 23:18:34 +01: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 60bf396e25 Update geom package to use new extent structure 2013-09-14 21:11:52 -06:00
Tom Payne b021bfd70f Remove unused variables in geom 2013-05-28 16:01:33 +02:00
Tom Payne 953f9c2e7a Port ol.geom to new extents 2013-04-19 10:03:36 +02:00
Tobias Bieniek d5d8afc858 Converted "vector" branch unit tests to mocha, expect.js and sinon 2013-03-13 04:48:08 +01:00
Tim Schaub 1d6cd1bd1b Lint-free tests 2013-03-04 21:30:23 +01:00
Tim Schaub b52d283641 Allow geometries to use a shared vertex array
The ol.geom.SharedVertices structure represents a flattened array of vertex coordinates.  This is intended to support optimal WebGL rendering.
2013-03-02 18:39:24 +01:00
Tim Schaub 0015e466dc Allow instanceof checks for geometries 2013-02-19 23:21:05 -07:00
Tim Schaub 083404bd58 Provides for tests 2013-02-19 23:15:45 -07:00
Tim Schaub b4d44f815f Add getBounds to geometry 2013-01-21 12:59:04 -07:00