Maximilian Krög
c076d273e7
Cache hit detect indexes and check closest pixels first.
2020-12-01 20:19:58 +01:00
Andreas Hocevar
274a8b8fc3
Fix text instruction flat coordinates when stride is not 2
2020-07-29 19:56:37 +02:00
Andreas Hocevar
781a5443cf
Handle scaled output canvas correctly
2020-04-29 20:19:42 +02: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
Maximilian Krög
6f18350eda
Add regression test for image opacity
2020-02-18 16:30:38 +01:00
Andreas Hocevar
07b02fe947
Do not exceed color range
2020-02-17 21:58:45 +01:00
Andreas Hocevar
fd935bae53
Remove label cache, render text directly to target canvas
2020-01-13 22:12:53 +01:00
Andreas Hocevar
da6eed850c
Do not lock label cache entries
2020-01-05 11:24:46 +01:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
ahocevar
4b48997a0b
Check font style and weight in addition to family
2019-07-04 16:12:35 +02:00
ahocevar
ab2d97d49b
Don't give up too early when waiting for fonts
2019-07-04 16:11:39 +02:00
Tim Schaub
deb00f20fe
Include full filename in import specifier
2019-05-29 08:51:10 -06:00
ahocevar
12289b8ef9
Declutter in correct order and for all layers
2019-05-05 12:20:38 +02:00
ahocevar
4a7b3cde56
Take line-height into account when measuring text height
2019-03-09 08:25:09 +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
ahocevar
f4aec3fd01
Remove unused Builder/Executor functions and members
2018-11-25 20:06:37 +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
da92b2ab3f
Improve text replay test
2018-11-15 23:01:45 +01:00
Guillaume Beraudo
5ecd832c92
Adapt test to new text builder behaviour
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
e299863117
More renaming
2018-11-15 15:20:41 +01:00
Tim Schaub
0948d4002f
Named exports from ol/render/canvas
2018-02-14 09:43:20 -07:00
Frederic Junod
11f464f7ff
Remove private static members from ol/render/canvas/ReplayGroup
2018-02-10 09:08:47 +01:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +01:00
Frederic Junod
c890db50b9
Rename _ol_render_canvas_TextReplay_ to CanvasTextReplay
2018-01-15 10:07:22 +01:00
Frederic Junod
85e1a6b54f
Rename _ol_render_canvas_ReplayGroup_ to CanvasReplayGroup
2018-01-15 09:50:15 +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
14ddcf843d
Rename _ol_style_Circle_ to CircleStyle
2018-01-11 13:27:54 -07:00
Tim Schaub
c5a4be2edd
Rename _ol_style_Text_ to Text
2018-01-11 13:25:48 -07:00
Tim Schaub
f4484455aa
Rename _ol_style_Stroke_ to Stroke
2018-01-11 13:24:13 -07:00
Tim Schaub
dc6ae2293d
Rename _ol_style_Fill_ to Fill
2018-01-11 13:23:27 -07:00
Tim Schaub
4f4c90fc20
Rename _ol_style_Style_ to Style
2018-01-11 13:22:43 -07:00
Tim Schaub
d840eab615
Rename _ol_render_canvas_Immediate_ to ImmediateCanvasRenderer
2018-01-11 11:58:26 -07:00
Frederic Junod
d0cdd0441a
Rename _ol_render_VectorContext_ to VectorContext
2018-01-11 14:05:55 +01:00
Tim Schaub
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Tim Schaub
4ea0af87df
Rename _ol_geom_GeometryCollection_ to GeometryCollection
2017-12-14 08:59:35 -07:00
Tim Schaub
ac7985a5ad
Rename _ol_geom_Circle_ to Circle
2017-12-14 08:57:52 -07:00
Tim Schaub
9d396280b0
Rename _ol_geom_MultiPolygon_ to MultiPolygon
2017-12-14 08:56:51 -07:00
Tim Schaub
c502f016f7
Rename _ol_geom_Polygon_ to Polygon
2017-12-14 08:56:12 -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
Tim Schaub
ad5806c29d
Rename _ol_geom_MultiPoint_ to MultiPoint
2017-12-14 08:51:53 -07:00
Tim Schaub
eadec38ae2
Rename _ol_geom_Point_ to Point
2017-12-14 08:49:10 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Andreas Hocevar
c35789ba73
Add and improve tests
2017-11-16 11:52:26 +01:00
Andreas Hocevar
4324d49813
Attempt to make font loading tests more stable
...
Also changes things to use setInterval() instead of setTimeout().
2017-11-10 08:34:30 +01:00
Andreas Hocevar
7f865b8520
Check if fonts are available and redraw when label cache was cleared
2017-11-03 13:04:06 +01:00