Commit Graph

1131 Commits

Author SHA1 Message Date
Tom Payne f38e5f5f28 Only set line dash if it is supported 2013-11-28 18:04:01 +01:00
Frederic Junod 8d40308d6e Fix indentation 2013-11-28 15:05:07 +01:00
Frederic Junod 0908490385 Add lineDash property to ol.style.Stroke 2013-11-28 13:47:31 +01:00
Frederic Junod bf9cd0a675 Add miterLimit property to ol.style.Stroke 2013-11-28 11:49:56 +01:00
Frederic Junod 0bd77d3caf Add lineJoin property to ol.style.Stroke 2013-11-28 11:31:06 +01:00
Frederic Junod b210073ef0 Add lineCap property to ol.style.Stroke 2013-11-28 09:36:54 +01:00
Tom Payne b0d5f96b65 Rename ol.render.canvas.Replay#draw to replay 2013-11-25 20:03:21 +01:00
Éric Lemoine 6ca2fef0a3 Always same format for color strings 2013-11-22 17:02:59 +01:00
Éric Lemoine 95826cd3c8 Add FIXME 2013-11-22 17:01:55 +01:00
Éric Lemoine 34ce9e478d Store raw style values in immediate objects
This commit also uses default style values (e.g.  ol.render.canvas.defaultStrokeFill) when no value is defined by the user.
2013-11-22 17:01:54 +01:00
Éric Lemoine 68caa8141c Fix typo in replay code 2013-11-22 16:36:06 +01:00
Éric Lemoine c4731ff37b Use canvas style default values 2013-11-22 11:49:14 +01:00
Éric Lemoine 2a122f057c Rename currentFillColor to currentFillStyle 2013-11-22 11:49:14 +01:00
Éric Lemoine d3ad1a7506 Add canvas style default values 2013-11-22 11:49:14 +01:00
Tom Payne 9396df54c3 Always use a defined renderGeometryFunction, thanks @elemoine 2013-11-22 11:34:42 +01:00
Tom Payne 13ed52d9e8 Add FIXME 2013-11-22 11:34:42 +01:00
Tom Payne 32833a15bb Implement skipping of LineString and MultiLineString geometries 2013-11-22 11:34:42 +01:00
Tom Payne a9af504a19 Factor out ol.render.canvas.LineStringReplay#setStrokeStyle_ 2013-11-22 11:34:42 +01:00
Tom Payne 1cccdfa9db Implement skipping of Point and MultiPoint geometries 2013-11-22 11:34:42 +01:00
Tom Payne 8b6f71f7f6 Factor out beginGeometry and endGeometry 2013-11-22 11:34:42 +01:00
Tom Payne 297251661a Implement skipping of Polygon and MultiPolygon geometries 2013-11-22 11:34:41 +01:00
Tom Payne d05530290f Add BEGIN_GEOMETRY instruction 2013-11-22 11:34:41 +01:00
Tom Payne a570261886 Pass renderGeometryFunction to ol.render.canvas.ReplayGroup 2013-11-22 11:34:41 +01:00
Frederic Junod c0ad472984 Add missing 'undefined' in jsdoc type definition 2013-11-21 14:48:49 +01:00
Frederic Junod 76a908d00c Split anchor ImageReplay property into anchorX and anchorY 2013-11-21 14:30:55 +01:00
Frederic Junod db8f476098 Add ol.style.Image.size property 2013-11-21 14:27:04 +01:00
Frederic Junod c715764680 Change ol.style.Image.anchor property type to ol.Pixel 2013-11-21 14:11:59 +01:00
Tom Payne f09de84011 Fix typo 2013-11-21 12:31:23 +01:00
Éric Lemoine c0eb7bb1f6 Store raw style values for ImageReplay 2013-11-21 12:15:38 +01:00
Éric Lemoine 5493543c1f Store raw style values for PolygonReplay 2013-11-21 12:15:37 +01:00
Éric Lemoine 0ccd1ef217 Store raw style values for LineStringReplay 2013-11-21 12:15:37 +01:00
Tom Payne 16957c9833 Only recompute pixel coordinates when transform has changed 2013-11-21 10:04:19 +01:00
Éric Lemoine 1e7266f6b5 Use new ol.style in ol.render.canvas.Replay 2013-11-20 15:35:10 +01:00
Éric Lemoine e535a8360f Use new ol.style in ol.render.canvas.Immediate 2013-11-20 15:35:10 +01:00
Éric Lemoine fd0ef8f238 Use new ol.style in ol.render.DragBox 2013-11-20 15:35:10 +01:00
Tom Payne f62b450cb7 Use goog.asserts.assertsInstanceOf 2013-11-20 12:34:47 +01:00
Tom Payne 3699510e63 Remove repeated Replay 2013-11-20 11:45:49 +01:00
Frederic Junod 99ce67aedc Nicer dragbox style 2013-11-20 11:45:25 +01:00
Éric Lemoine 478f8c43ca ol.render.Event take an ol.webgl.Context object 2013-11-20 11:45:24 +01:00
Tom Payne adfc56b14c Improve type checking in ol.render.canvas.Replay 2013-11-20 11:45:23 +01:00
Tom Payne 4e3221810a Add immediate rendering of text 2013-11-20 11:44:50 +01:00
Tom Payne a2603e424f Add text replay skeleton 2013-11-20 11:44:50 +01:00
Tom Payne c7600b2cbc Add ol.style.Text 2013-11-20 11:44:49 +01:00
Tom Payne c03ea3d0ee Save six bytes 2013-11-20 11:44:49 +01:00
Tom Payne d60bc61a72 Allow ol.style.Stroke#width to be undefined 2013-11-20 11:44:49 +01:00
Tom Payne 97745f06ac Allow named colors to be disabled 2013-11-20 11:44:49 +01:00
Tom Payne 1ae0e845f8 Allow colors in styles to be strings or arrays 2013-11-20 11:44:48 +01:00
Frederic Junod 9738c672d7 Export ol.render.Event.prototype.getFrameState 2013-11-20 11:44:47 +01:00
Éric Lemoine 2073d78582 Fire precompose events from layers 2013-11-20 11:44:47 +01:00
Tom Payne f9282c90e4 Make instructions responsible for incrementing the instruction index
This paves the way for skipping features (where both the instruction and
data indexes will need to be advanced).
2013-11-20 11:44:46 +01:00