mike-000
678f9136c6
Make Circle hit detection consistent with Polygon
...
Fixes one of the inconsistencies seen in #9395
Add hit detection for no fill and transparent fill
Based on the example used in #9395 The tests expect consistency between Polygon and Circle geometries but currently expect the inconsistent behaviour seen when using CircleStyle
2019-09-24 22:06:28 +01:00
Simon Seyock
acac7a9403
remove skipFeature logic
2019-09-24 10:12:30 +02:00
ahocevar
bd3f35eef0
Declutter multi geometries per geometry instead of per feature
2019-08-17 23:55:20 +02:00
Andreas Hocevar
ff063caa4e
Merge pull request #9755 from ahocevar/font-loading
...
Font loading improvements
2019-07-15 12:21:28 +02:00
Frederic Junod
ad51c7c08f
Use CanvasLineCap type instead of string
2019-07-05 11:11:35 +02:00
Frederic Junod
7a8a0c18ae
Use CanvasLineJoin type instead of string
2019-07-05 11:07:10 +02:00
ahocevar
5616c535b0
Clean up properly when clearing label cache
2019-07-04 16:10:28 +02:00
ahocevar
ace5c65ee5
Smarter opacity handling
2019-05-22 16:47:23 +02:00
ahocevar
a45e704be2
Smarter reuse detection
2019-05-22 16:46:46 +02:00
Andreas Hocevar
56ec6b093e
Merge pull request #9548 from ahocevar/italic-labels
...
Avoid cut off labels for italic fonts
2019-05-15 16:58:17 +02:00
ahocevar
2e31f716ed
Avoid cut off labels for italic text
2019-05-15 15:01:12 +02:00
Tim Schaub
be8797f355
Merge pull request #9541 from tschaub/rbush-three
...
Upgrade to rbush@3
2019-05-15 04:53:15 -06:00
Frédéric Junod
df37519858
Initialize hitDetectionContext to null
...
Co-Authored-By: Andreas Hocevar <andreas.hocevar@gmail.com >
2019-05-15 10:03:43 +02:00
Frederic Junod
10c6009ffa
Lazily create the hit detection context
2019-05-15 09:52:57 +02:00
Tim Schaub
09fdd30876
Upgrade to rbush@3
2019-05-14 18:43:08 -06:00
ahocevar
12289b8ef9
Declutter in correct order and for all layers
2019-05-05 12:20:38 +02:00
ahocevar
461256767e
Make pattern fills work on a scaled canvas
2019-03-20 22:25:25 +01:00
ahocevar
b33ceaa400
More efficient default fill color
2019-03-19 13:57:10 +01:00
ahocevar
5857117625
Remove unused ExecutorGroup methods
2019-03-16 21:29:49 +01:00
Frederic Junod
6de566d95b
Set the canvas size to 0 on dispose
2019-03-08 13:25:49 +01:00
Frederic Junod
cd28c8a301
Remove unused 'geometry' param from 'createFill' function
2019-02-22 16:52:32 +01:00
Frederic Junod
79c6cc5159
Remove unused 'geometry' param from '{begin,end}Geometry' functions
2019-02-22 16:45:25 +01:00
ahocevar
09a1c1ef1b
Avoid clipping when rendering to tiles that don't exceed the clip extent
2019-01-24 09:09:22 +01:00
ahocevar
592b6cf362
Keep track of used labels
2019-01-23 21:52:22 +01:00
ahocevar
e37734826c
Release canvas memory faster
2019-01-21 23:04:31 +01:00
Frederic Junod
89ca596eaf
Reduce garbage generation
2019-01-21 10:18:19 +01:00
ahocevar
5389e9675c
Faster extent calculation with less garbage
2019-01-15 00:30:39 +01:00
Olivier Terral
6858a5cde7
Fix module name
2018-12-14 08:57:00 +01:00
Frédéric Junod
e426af29c2
Merge pull request #9056 from fredj/rm_typecast
...
Remove typecast for object literals
2018-12-12 16:25:41 +01:00
Frederic Junod
39a21f177d
Use FeatureLike typedef
2018-12-12 15:03:54 +01:00
Frederic Junod
056568c936
Remove type cast in ol/render/canvas/TextBuilder
2018-12-12 14:47:46 +01:00
Andreas Hocevar
0cda18f58a
Merge pull request #9008 from ahocevar/decouple-group-creation
...
Decouple render instruction creation from rendering
2018-12-07 14:33:54 +01:00
Frederic Junod
b3520f8217
Remove CANVAS_LINE_DASH from ol/has
...
Test if `context.setLineDash` is defined instead.
2018-12-07 13:15:23 +01:00
Niklas Alt
4bc9216e41
Add ': void' to non returning functions (error TS7014)
2018-12-06 19:57:45 +01:00
Niklas Alt
3ef6e39c26
Use camel-cased inheritDoc for consistency
2018-12-03 20:42:03 +01:00
ahocevar
fbf98a44ea
Streamline tile preparation and remove unused code
2018-11-29 22:35:46 +01:00
ahocevar
f4aec3fd01
Remove unused Builder/Executor functions and members
2018-11-25 20:06:37 +01:00
Tim Schaub
8b50c3c6cb
Pass along the ability to measure and cache text width
2018-11-19 15:34:48 -07:00
ahocevar
8d51e0d487
Remove resolved FIXMEs
2018-11-16 13:50:42 +01:00
ahocevar
981b398042
Add a FIXME for the measure function to go away
2018-11-16 13:49:50 +01:00
ahocevar
6cbde797be
Use NaN for unavailable values and handle text creation separately
2018-11-16 13:35:15 +01:00
ahocevar
d3355f613c
Combine if blocks
2018-11-16 13:04:03 +01:00
Guillaume Beraudo
81d0bc21d5
Pass instructions to executor constructor
2018-11-16 12:36:50 +01:00
Guillaume Beraudo
ce44a9a3e4
Final renamings
2018-11-15 23:46:20 +01:00
Guillaume Beraudo
89fed65f07
Fix incorrect Executor/Builder types
2018-11-15 23:27:43 +01:00
Guillaume Beraudo
eaed37da96
Fix width comparison
2018-11-15 20:03:35 +01:00
Guillaume Beraudo
b1a5f4855f
Create geometryWidths array only when needed
2018-11-15 20:03:34 +01:00
ahocevar
94bf02176e
Rename ExecutorGroup and move getMaxExtent to Executor
2018-11-15 20:03:34 +01:00
Guillaume Beraudo
f9dcadb982
Remove unused methods
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
0f5ced8483
Reduce usage of "replay" term
2018-11-15 15:20:41 +01:00