Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Andreas Hocevar
946d11269f
Merge pull request #11587 from MoonE/fix-text-along-path-orientation
...
Determine orientation by actual text start and end x
2020-11-06 13:35:55 +01:00
Andreas Hocevar
c1a547a9af
Return to simpler and less efficient winding order algorithm
2020-11-06 00:02:01 +01:00
Maximilian Krög
03f6cbb5a8
Draw substrings on straight line in one operation
2020-11-05 22:35:54 +01:00
Maximilian Krög
528833b05b
Don't iterate each chracter if entire string fits in single segment
2020-11-05 22:35:54 +01:00
Maximilian Krög
7660f3c522
Determine orientation by actual text start and end x
2020-10-20 22:46:04 +02:00
Andreas Hocevar
a9e51d85ec
Fix Index adjustment at the beginning of the ring
2020-09-05 16:21:01 +02:00
Andreas Hocevar
f2b790adf1
Make clockwise check work when coordinates are duplicated
2020-09-04 20:47:15 +02:00
Andreas Hocevar
6ec49d5ee0
Fix upright labels on vector tiles
2020-07-11 17:55:34 +02:00
Andreas Hocevar
e4303c7b26
Merge pull request #11215 from ahocevar/flat-multipolygon
...
Fix MVT multipolygons with featureClass: Feature
2020-06-24 19:36:38 +02:00
Andreas Hocevar
c490745ff0
Faster clockwise check and better documentation
2020-06-23 19:56:12 +02:00
mike-000
f5d85ab4f9
interpolatePoint optionally returns Z and M values
2020-06-17 15:24:41 +01:00
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
ahocevar
41e958ea1f
Split text into single chars or don't split at all
2019-05-15 11:55:29 +02:00
Frederic Junod
438736068e
Remove opt_this param in forEach function
2019-02-07 13:07:36 +01:00
Roman Zoller
ee57b197e5
Fix offset passed from linearRingssAreOriented to linearRingsAreOriented
...
The offset needs to be set to the end of the previous Polygon,
see `offset = orientLinearRings(...)` in function orientLinearRingsArray
Fixes #9189
2019-02-05 17:56:52 +01:00
Roman Zoller
2c859b1196
Rename misnamed functions in geom/flat/orient
...
- Rename linearRingIsOriented => linearRingsAreOriented
The function checks all linear rings of a Polygon, so
the plural "rings" is more appropriate
- Rename linearRingsAreOriented => linearRingssAreOriented
The double s is appropriate because the check is done for
all Polygons of a MultiPolygon
This commit restores the function names from OpenLayers v4,
they were changed (wrongly IMHO) in #7820 .
2019-02-05 17:49:21 +01:00
Tim Schaub
8b50c3c6cb
Pass along the ability to measure and cache text width
2018-11-19 15:34:48 -07:00
Frederic Junod
caf11a71f2
Simplify import path in ol/geom/
2018-11-05 16:26:45 +01:00
Hermes David Junior
7ec19645e9
Polygon intersectsExtent failure - Issue #8795
2018-10-15 10:00:37 -04:00
Tim Schaub
ccfacc5ee6
Transformed types
...
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e ):
jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
Tim Schaub
affbf59b77
Use Object<Foo, Bar> instead of Object.<Foo, Bar>
2018-07-25 18:33:49 -07:00
Tim Schaub
d12ef20b12
Use Array<Foo> instead of Array.<Foo>
2018-07-25 18:32:43 -07:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Tim Schaub
a743ec3989
Module types for ol/proj
2018-03-12 08:32:09 -06:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Frederic Junod
3435ac575e
Better type definition
...
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
raiyni
b2d920bbf1
ol/geom/flat/transform export
2018-02-13 09:22:00 -06:00
raiyni
4d27a9eb0e
ol/geom/flat/intersectsextent
2018-02-13 09:15:07 -06:00
raiyni
abf191289c
ol/geom/flat/interpolate export
2018-02-13 09:05:12 -06:00
raiyni
6573b308b6
ol/geom/flat/orient export
2018-02-13 08:57:35 -06:00
raiyni
9fc09db89c
ol/geom/flat/closest export
2018-02-13 08:44:09 -06:00
raiyni
4575569238
ol/geom/flat/interiorpoint export
2018-02-13 08:11:05 -06:00
raiyni
837490b4a4
ol/geom/flat/simplify export
2018-02-13 00:08:20 -06:00
raiyni
78b418ba9d
ol/geom/flat/straightchunk export
2018-02-12 23:42:11 -06:00
raiyni
2550ab1691
ol/geom/flat/textpath export
2018-02-12 23:34:21 -06:00
raiyni
05a648d4f3
ol/geom/flat/length export
2018-02-12 23:27:38 -06:00
raiyni
fb548b1b45
ol/geom/flat/deflate exports
2018-02-12 23:18:53 -06:00
raiyni
fd78aa9798
ol/geom/flate/inflate exports
2018-02-12 23:06:02 -06:00
Frederic Junod
62bc7b75d7
Named exports from ol/geom/flat/flip
2018-01-26 16:33:02 +01:00
Frederic Junod
d15c4ce511
Named exports from ol/geom/flat/segments
2018-01-26 16:29:40 +01:00
Frederic Junod
d64b5c52a2
Named exports from ol/geom/flat/center
2018-01-26 16:24:41 +01:00
Frederic Junod
aea39782fb
Named exports from ol/geom/flat/contains
2018-01-26 16:03:29 +01:00
Frederic Junod
47015eba0c
Named exports from ol/geom/flat/reverse
2018-01-26 15:45:17 +01:00
Frederic Junod
297fd14507
Named exports from ol/geom/flat/topology
2018-01-26 15:35:14 +01:00
Frederic Junod
135f713236
Named exports from ol/geom/flat/area
2018-01-26 15:31:04 +01:00
Frederic Junod
e6a491856d
Named exports from ol/geom/flat/geodesic
2018-01-26 15:26:40 +01:00
Frederic Junod
039d4dc714
Better variables scoping
2018-01-17 16:07:36 +01:00
Frederic Junod
4c5ca75ca6
Better variables scoping
2018-01-17 10:54:18 +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