Commit Graph

77 Commits

Author SHA1 Message Date
Andreas Hocevar 046d827784 Make interiorpoint work with donut polygons 2017-12-06 20:23:18 +01:00
Andreas Hocevar 431d570b91 Only split text at line angle changes 2017-11-03 11:26:38 +01:00
Andreas Hocevar 7a3e11b9e4 Change getInteriorPoint type to XYM with intersection length as M 2017-09-27 18:06:05 +02:00
Andreas Hocevar abd50b8fcf Utility to get the longest straight chunk of a linestring 2017-09-11 16:54:28 +02:00
Andreas Hocevar efc86d59b0 Implement text rendering along paths
This commit also changes the TextReplay.drawText() signature, and moves
geometry calculation into drawText(). This improves performance where no
text needs to be rendered (TextStyle.getText() == ''), which is used often
in applications.
2017-09-11 16:54:27 +02:00
Marc Jansen d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Frederic Junod 5763e1d145 Remove unused goog.require 2017-02-03 12:40:53 +01:00
Tim Schaub 137cdc04c8 Remove ol.DEBUG 2017-01-01 20:37:52 -07:00
Tim Schaub fda2d8e40e Functions in ol.geom.flat.interpolate namespace 2016-12-03 10:45:52 -08:00
Björn Harrtell 656af72615 Use winding number algorithm for linearRingContainsXY 2016-11-29 09:10:47 +01:00
GaborFarkas 360e77481d Restructure webgl replays 2016-11-23 09:51:36 +01:00
GaborFarkas 3f828248b9 Rework isClosed with added tests 2016-11-23 09:49:47 +01:00
Marc Jansen f3979d47db Require ol in ol.geom.flat.intersectsextent 2016-09-02 11:18:22 +02:00
Marc Jansen 5448871029 Require ol in ol.geom.flat.interpolate 2016-09-02 11:18:08 +02:00
Marc Jansen ae67419f76 Require ol in ol.geom.flat.interiorpoint 2016-09-02 11:17:51 +02:00
Marc Jansen 3740f05d5b Require ol in ol.geom.flat.geodesic 2016-09-02 11:17:33 +02:00
Marc Jansen 2c4060a38d Require ol in ol.geom.flat.deflate 2016-09-02 11:17:19 +02:00
Marc Jansen e8fed9c21f Require ol in ol.geom.flat.contains 2016-09-02 11:17:03 +02:00
Marc Jansen 870ddceafd Require ol in ol.geom.flat.closest 2016-09-02 11:16:51 +02:00
Andreas Hocevar d1e4b33760 Rename goog.DEBUG to ol.DEBUG 2016-08-31 21:10:01 +02:00
Tim Schaub f07f78fbd7 Move flat geom files so they are named like their provides 2016-08-07 10:49:10 -06:00
Tim Schaub 684af3503c Move ol/geom/flat/areaflatgeom.js to ol/geom/flat/area.js 2016-08-07 10:49:10 -06:00
Andreas Hocevar b25ce40781 Merge pull request #5619 from ahocevar/remove-goog-asserts
Remove goog.asserts.*
2016-08-04 23:02:38 +02:00
Tim Schaub 795cee876e Add a method to scale geometries 2016-08-04 10:23:00 -06:00
Andreas Hocevar e18d41b5e0 Remove gratuitous debug assertions 2016-08-04 11:29:54 +02:00
Andreas Hocevar e0015b3d4e Use goog.DEBUG instead of ol.DEBUG for now 2016-08-04 11:29:54 +02:00
Andreas Hocevar 6f5ed17fc5 Remove goog.asserts.*
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Andreas Hocevar 6b4ee42c90 Refactor to a more convenient internal API 2016-06-23 13:10:41 +02:00
Andreas Hocevar cf7ff841a7 Remove use of goog.vec.* 2016-06-23 13:10:41 +02:00
Peter Robins f57065c412 Remove unneeded goog.provides/requires for typedefs
In general, typedefs do not need and should not have goog.require/provide
2016-05-09 13:21:25 +00:00
Nicholas Latham 2ee1969de7 Remove goog.math.modulo and goog.math.lerp 2016-04-04 09:43:24 +02:00
Frederic Junod d5564a04db Add new ol.geom.Geometry#rotate function 2016-03-08 17:05:19 +01:00
Andreas Hocevar ebc98ec1bb Address TODOs
To make sure that our binarySearch implementation meets the requirements of
the library, I added more tests for ol.geom.flat.interpolate.lineString, only
to find out that it does not handle line strings with repeated vertices
properly, regardless of what binarySearch implementation is used.
2016-02-03 11:41:41 +13:00
Nicholas L ef0e95847f Remove goog.array.binarySearch 2016-02-03 11:41:40 +13:00
Frederic Junod b7cbd20b6f Add missing JSDoc tags 2016-01-25 14:37:45 +01:00
Tim Schaub 3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Tim Schaub e6f6dcc230 Partial valid-jsdoc corrections 2016-01-11 18:56:08 -08:00
Bart van den Eijnden 25e0053a13 Rename defaultSort to numberSafeCompareFunction on ol.array 2015-12-16 13:40:05 +01:00
Bart van den Eijnden e0be143ed5 Always pass on a compare function to sort 2015-12-16 10:54:46 +01:00
Frederic Junod 8d72589743 Remove use of goog.object.containsKey 2015-11-24 10:17:01 +01:00
Marc Jansen 47a7b03e0e Remove use of toDegrees/toRadians util functions
Instead of goog.math.toRadians and goog.math.toDegrees, we now use
our own implementations of these basic conversion functions.
2015-10-12 21:16:03 +02:00
Tim Schaub ac7db89a91 Replace goog.isDefAndNotNull() with truthy checks 2015-09-29 09:32:51 -06:00
Tim Schaub e3951fa3c6 Inline simple goog.isDef() calls 2015-09-27 10:34:44 -06:00
Tim Schaub a86c270f6a Inline simple !goog.isDef() calls 2015-09-27 10:31:16 -06:00
Tim Schaub 7659e47e07 Inline simple goog.isDef() checks 2015-09-27 10:18:44 -06:00
Tim Schaub 0927c55b3c Toward natural JavaScript syntax 2015-09-25 12:16:42 -06:00
Tim Schaub b0fe36e609 Remove goog.isDef for geometries 2015-09-25 11:28:54 -06:00
Bart van den Eijnden 47ce127a10 Add assert messages for all assertions up until ol.renderer.vector. 2015-03-30 22:55:23 +02:00
Tim Schaub ce36947bdb Allow orienting with the right-hand rule 2015-03-25 16:57:25 -06:00
Tim Schaub 5f6ceff3a7 Use ol.geom.flat.orient namespace 2015-03-25 16:33:17 -06:00