GaborFarkas
e64549c50c
Fix weird behaviour of boundaries
...
With drawElements, it seems like we cannot connect an old index with a much fresher one, as it will produce weird errors.
2016-11-23 09:49:47 +01:00
GaborFarkas
4be8de62ae
Refactor linestring geom validation
...
Now it only focuses on issues not addressed by ol.geom.flat.simplify methods.
2016-11-23 09:49:47 +01:00
GaborFarkas
f15a9652d8
Fix rendering of boundaries.
2016-11-23 09:49:47 +01:00
GaborFarkas
eba006b796
Falling back to bevel when exceeding miterLimit
2016-11-23 09:49:47 +01:00
GaborFarkas
8c561a45b9
Inspect linestring validity before drawing
2016-11-23 09:49:46 +01:00
GaborFarkas
99e4009b19
Minor improvements
...
ol.render.webgl.LineStringReplay.startIndices_ is initialized with a 0, and the end index of a valid line is added in every valid iteration.
drawElements_ is refactored for a clearer code.
2016-11-23 09:49:46 +01:00
GaborFarkas
e2ec6d0b82
Adding support for closed lines
2016-11-23 09:49:46 +01:00
GaborFarkas
0f8e1a7e40
Refactoring ol.render.webgl.LineStringReplay
2016-11-23 09:49:46 +01:00
GaborFarkas
c13d09ba23
Handle case of one segment lines with identical coordinates + quality improvements
2016-11-23 09:49:46 +01:00
GaborFarkas
fb71860a03
Adding linestring cap support
2016-11-23 09:49:46 +01:00
GaborFarkas
350d1add81
Change goog.base to call, and goog.inherits to ol.inherits
2016-11-23 09:49:46 +01:00
GaborFarkas
0972988bdb
Properly triangulate linestrings
2016-11-23 09:49:46 +01:00
GaborFarkas
c7edd21cc3
Extend linestring renderer with GLSL and indexed geometries.
2016-11-23 09:49:46 +01:00
GaborFarkas
caeb8e4820
Eliminating jitter by restructuring
2016-11-23 09:49:46 +01:00
GaborFarkas
6e958514ee
Taking line width into account
2016-11-23 09:49:46 +01:00
GaborFarkas
628db9146d
Creating a webgl.Replay struct, making the WebGL LineString renderer compilable
2016-11-23 09:49:46 +01:00
GaborFarkas
f5978c659c
Adding some defaults
2016-11-23 09:49:46 +01:00
GaborFarkas
a6ddee0c5f
Updating old code to current ol3 version
2016-11-23 09:49:46 +01:00
GaborFarkas
a052b645df
Fix dependencies
2016-11-23 09:49:46 +01:00
Guillaume Beraudo
e40b545e40
Add basic WEBGL LineString rendering
...
Use gl.LINES and hardcode a width.
Implement polygon stroking using the line string replay.
2016-11-23 09:49:46 +01:00
Guillaume Beraudo
581ea8c775
Add color to WEBGL polygons
2016-11-23 09:49:46 +01:00
Guillaume Beraudo
2519cf36fc
Basic WEBGL rendering of polygons
2016-11-23 09:49:46 +01:00
greenkeeperio-bot
71ebed07bf
chore(package): update eslint to version 3.9.1
...
https://greenkeeper.io/
2016-11-01 11:51:06 +01:00
Andreas Hocevar
aa7e54833d
Do not fill when there is no fillStyle
2016-10-28 10:34:27 +02:00
Andreas Hocevar
a2a2a53e08
Use geometry extent's top left corner as pattern/gradient origin
2016-10-27 21:27:17 +02:00
Andreas Hocevar
fdae2e8e00
Set one-off transform instead of transforming back and forth
2016-10-14 17:54:21 +02:00
Frederic Junod
988b3f8b9b
Add missing jsdoc to ol.render.canvas.Replay#fill_ function
2016-10-14 15:05:30 +02:00
Frederic Junod
ed677cec4e
Rename ol.render.EventType to ol.render.Event.Type
2016-10-13 12:02:51 +02:00
Andreas Hocevar
f655f6740e
Move gradient and pattern fills with the view
2016-10-13 09:30:09 +02:00
Tim Schaub
f444800fc6
Only call beginPath once per MultiPolygon
2016-09-26 06:13:01 -06:00
Andreas Hocevar
e87c198eef
Fix fillStyle or strokeStyle defined assertion
2016-09-16 14:21:10 +02:00
Frédéric Junod
7ec100f3f8
Merge pull request #5863 from fredj/stroke_pattern
...
Allow CanvasPattern or CanvasGradient as stroke style
2016-09-14 08:38:41 +02:00
Frederic Junod
e48fda6bef
Allow CanvasPattern or CanvasGradient as stroke style
2016-09-13 17:16:29 +02:00
Andreas Hocevar
e7bc7121d6
Add option to skip first coordinate for use with closePath()
2016-09-13 02:14:12 +02:00
Andreas Hocevar
430aee95fd
Only check for fill and stroke once
2016-09-13 02:14:12 +02:00
Andreas Hocevar
129757578d
Do not repeat first vertex when closed is true
2016-09-13 02:13:30 +02:00
Andreas Hocevar
6e0b406c7b
Always close polygon rings
...
This ensures that we do not optimize away the last vertex of a polygon
2016-09-01 16:19:41 +02:00
Tim Schaub
9e1a3f59e3
Restructure Canvas replay classes
2016-09-01 06:58:12 -06:00
Tim Schaub
d1d3e6a37a
Move ol.render.canvas.Instruction to its own file
2016-09-01 06:58:12 -06:00
Andreas Hocevar
d1e4b33760
Rename goog.DEBUG to ol.DEBUG
2016-08-31 21:10:01 +02:00
Andreas Hocevar
2037e725b3
Move to 90° along the circle, not 0°
2016-08-29 09:30:23 +02:00
Andreas Hocevar
457de34485
Merge pull request #5708 from ahocevar/no-closepath
...
Remove unnecessary closePath() instructions
2016-08-25 17:05:52 +02:00
Andreas Hocevar
65d03bfbfb
Bail out when there is no fill and stroke
2016-08-25 16:40:31 +02:00
Andreas Hocevar
b7c84b269c
Merge pull request #5196 from ahocevar/batch-fill-stroke
...
Batch polygon and circle fills and strokes
2016-08-24 12:02:52 +02:00
Andreas Hocevar
395793b921
Additional tests and code comments
2016-08-24 11:44:15 +02:00
Frederic Junod
8e95d94f3e
Add rotateWithView option to ol.style.Text
2016-08-23 13:26:02 +02:00
Andreas Hocevar
7e940e618e
Introduce new overlaps option for Vector and VectorTile sources
...
Instead of deciding whether to batch fills and strokes by looking at the
opacity of the style, we now rely on user input.
2016-08-23 12:05:03 +02:00
Andreas Hocevar
eed52552a9
Batch polygon and circle fills and strokes
2016-08-23 12:05:03 +02:00
Frederic Junod
d4ad9ad616
Add missing goog.require('ol')
2016-08-17 09:57:21 +02:00
Tim Schaub
a27d0da8a5
Add transform2D to ol.geom.SimpleGeometry
2016-08-12 10:54:06 -06:00