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
Tim Schaub
af10f6a75c
Use the inverse pixel transform in pre/post render events
2018-11-17 16:28:28 +01:00
ahocevar
6c0b3f773b
New render event API (non functional yet)
2018-11-16 14:57:12 +01:00
Tim Schaub
f90efac131
Smaller canvas when rotating vector layers
2018-11-16 14:57:11 +01:00
Tim Schaub
8b077c66d8
Rotate images
2018-11-16 14:57:11 +01:00
Tim Schaub
433ab97d1c
End of composeFrame
2018-11-16 14:56:48 +01:00
Olivier Guyot
a84559d1fb
Added documentation & fixed linting for WebGL classes
2018-11-16 14:02:10 +01:00
Olivier Guyot
7fa2189fe9
Remove the bulk of the WebGL legacy code.
...
Things left to do:
* redo an icon layer example
* redo a clipping layer example
* update docs where WebGL renderers are mentioned
2018-11-16 14:02:08 +01: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
Guillaume Beraudo
87a1b926c9
Cleanup executor of unused properties
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
4ba84d7926
Cleanly separate text building and execution
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
afc946b215
Cleanup duplicated and unused code
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
c0df61468f
Move drawText along line to executor
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
0ece0fb002
Cleanup unused text replay code
2018-11-15 15:20:41 +01:00
ahocevar
4ce19530ce
Remove unused methods
2018-11-15 15:20:41 +01:00
ahocevar
3d203f990e
Move measureTextWidths to render/canvas
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
3170355b07
Remove unused function from executor
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
f5a8ad63f9
Improve typing
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
ba6a6fff7d
Module renaming
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
e299863117
More renaming
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
f3bd08321a
Rename Replay to InstructionsBuilder
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
8097be8419
Remove replay code from Instruction Builder class
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
fcf470fc8d
Introduce Instruction executors
...
Executors are use to render instructions.
They do not contain cod for building instructions.
Signed-off-by: Guillaume Beraudo <guillaume.beraudo@camptocamp.com >
2018-11-15 15:20:41 +01:00
Guillaume Beraudo
ecf79a9ec2
First step in uncoupling replay creation and rendering
...
Signed-off-by: Guillaume Beraudo <guillaume.beraudo@camptocamp.com >
2018-11-15 15:20:41 +01:00
ahocevar
30909ddbcd
When rendering interim tiles, reuse existing replay groups
2018-11-13 16:08:49 +01:00
Frederic Junod
1732ed5a04
Simplify import path in ol/render/
2018-11-05 16:26:45 +01:00
Andreas Hocevar
3f69066d79
Merge pull request #8869 from ahocevar/typescript-fixes
...
Fix more types for TypeScript
2018-10-31 12:07:28 +01:00
ahocevar
1cdd040c96
Throw when calling abstract methods; fix abstract return types
2018-10-30 18:55:49 +01:00
ahocevar
1df9189d7f
Fix more types for TypeScript
2018-10-30 18:55:03 +01:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
Andreas Hocevar
96e99e481e
Merge pull request #8782 from wallw-bits/fix-typecheck-render-feature
...
Fix getSimplifiedGeometry definition
2018-10-04 21:55:17 +02:00
William Wall
b8addb4c24
Fix missing method declaration
...
ol/renderer/vector was using the abstract ReplayGroup type while
referencing replayGroup.addDeclutter(), which was only defined
on the canvas and webgl implementations and was also defined
differently.
2018-10-03 16:08:26 -06:00
William Wall
8be23b799d
Fix getSimplifiedGeometry definition
...
The override here should match the definition in ol/geom/Geometry
2018-10-03 15:23:10 -06:00
Kevin Schmidt
c0903e6fc1
Cast overloaded ends property to fix type check errors
2018-10-03 13:23:40 -06:00
Andreas Hocevar
5c737b21ae
Merge pull request #8769 from schmidtk/ts-render-canvas
...
Fix type check errors in ol/render/canvas
2018-10-03 10:17:54 +02:00
Kevin Schmidt
b1309578b4
Fix type check errors in ol/render/webgl/TextReplay
2018-10-02 12:59:41 -06:00
Kevin Schmidt
ecaec7bbfa
Fix type check errors in ol/render/webgl/ReplayGroup
2018-10-02 12:55:59 -06:00
Kevin Schmidt
b4fced865d
Fix type check errors in ol/render/webgl/Immediate
2018-10-02 12:54:27 -06:00