Commit Graph

173 Commits

Author SHA1 Message Date
tschaub 4d97b583c6 Match the current Filter Effects spec
This commit is a cherry-pick of 19f7778.

The current draft of the [filter spec](https://dvcs.w3.org/hg/FXTF/raw-file/tip/filters/index.html)
describes brightness, contrast, hue-rotate, and saturate functions that
roughly match our layer's setBrightness, setContrast, setHue, and
setSaturation methods.  These changes make the range of our methods match
the corresponding functions in the spec.  The one exception is the
brightness function.  The spec says it has a range of 0 to positive infinity.
The WebKit implementation accepts a range of -1 to 1 (as of
https://github.com/WebKit/webkit/commit/8f4765e569).  There's an open
(ticket)[https://www.w3.org/Bugs/Public/show_bug.cgi?id=15647] recommending
that the spec be changed to match.

I'm not stuck on having our methods match those of the filter spec, but the
parity would be nice.

These changes leave the WebGL map renderer "broken" (whacky colors).  It would
be straightforward to update the current fragment shader to handle the new
range of hue, but the brightness, contrast, and saturation handling will
need to be reworked.

For inspiration, here are the color transformation
matrix calculations the WebKit filters:
https://github.com/WebKit/webkit/blob/8f4765e5698c9171c2b3f984d0d9d65188185de3/Source/WebCore/platform/graphics/chromium/cc/CCRenderSurfaceFilters.cpp#L64-80

Conflicts:

	src/ol/renderer/dom/domlayerrenderer.js
2012-12-12 15:18:34 +01:00
Éric Lemoine dd014a3b79 Avoid unneeded parameter concatenations (thanks @twpayne, refs #85) 2012-11-04 19:31:20 +01:00
Éric Lemoine 529c3e8b6a Add ol.TileUrlFunction.createBboxParam 2012-11-03 22:55:54 +01:00
Éric Lemoine b2c71ed269 Add tests showing more usages of createFromTemplate 2012-11-03 00:43:46 +01:00
Éric Lemoine f49f370857 Make linter happy 2012-10-11 18:09:18 +02:00
Éric Lemoine 9c48dff286 Add tests for ol.Map.prototype.disposeInternal 2012-10-11 17:53:35 +02:00
Éric Lemoine 2a76a23b6f Add tests for ol.control.Control 2012-10-11 17:46:47 +02:00
Tom Payne 71e42b2448 Refactor build system
This rather large commit refactors the build system to solve a number of
problems:
- Object literal types are now declared in just one place
- There are no more circular dependencies
- There is no need for concealed subclasses in build-standalone mode

When building in standalone mode, you need to include the source in
build/src/external.  This declares object literal types as externs so
that their properties are not renamed.

When building with the application, you need to include the source in
build/src/internal.  This declares object literal types as typedefs so
that their properties can be renamed and removed.

Note also that ol.MapOptions has been merged into ol.Map, with some
renaming.
2012-09-29 11:51:53 +02:00
Éric Lemoine 0535a31bc6 Add zoomDelta option to MapOptions 2012-09-27 15:48:04 +02:00
Éric Lemoine b8356f5e2e Fix bad copy and paste in mapoptions tests 2012-09-27 15:40:58 +02:00
Éric Lemoine d2f9ebae41 Add mouseWheelZoomDelta option to MapOptions 2012-09-27 15:16:14 +02:00
Éric Lemoine 87189293b5 Make the resolution constraint configurable through map options 2012-09-27 13:36:57 +02:00
Tom Payne 65b8e0f915 Use object literals and use generic tile layer 2012-09-27 12:45:00 +02:00
Tom Payne b7def4c8c4 Clean up some lint problems in specs 2012-09-27 12:42:13 +02:00
Éric Lemoine f78cad0d77 Merge pull request #27 from elemoine/constraints
Refactoring to make constraints work at the map level
2012-09-27 01:42:45 -07:00
Tom Payne 96bd703271 s/tilesource/source/ 2012-09-27 09:36:55 +02:00
Éric Lemoine 79166dc1d6 Constraint objects moved to ol namespace from ol.interaction namespace 2012-09-27 00:10:54 +02:00
Tom Payne 290d03e76f s/store/source/ 2012-09-26 19:43:23 +02:00
Tom Payne 228e5a8dbf Move requires to end of the file to ensure tests run even if goog.require fails 2012-09-26 19:40:16 +02:00
Éric Lemoine 89f7e44478 Jasmine tests for ol.Collection 2012-09-25 12:02:28 +02:00
Tom Payne c956ab3482 Relax unit tests as PhantomJS generates the wrong result on Mac OS X 2012-09-25 11:32:31 +02:00
Éric Lemoine 116531c275 fix typo in an ol.Rectangle test 2012-09-25 10:42:07 +02:00
Éric Lemoine db904dae5c Jasmine tests for ol.Rectangle 2012-09-25 10:42:07 +02:00
Éric Lemoine 589c2a8505 Jasmine tests for ol.TileRange 2012-09-25 10:22:36 +02:00
Éric Lemoine b249b0aaa9 Jasmine tests for ol.tilestore.XYZ 2012-09-25 10:13:41 +02:00
Éric Lemoine 56e48911bf Jasmine tests for ol.TileGrid 2012-09-25 10:03:27 +02:00
Éric Lemoine 1f0d53342a Jasmine tests for ol.array 2012-09-25 00:29:23 +02:00
Éric Lemoine f0ff1faa73 fix ol.Extent tests 2012-09-25 00:18:25 +02:00
Éric Lemoine 6fab51bde0 Jasmine tests for ol.Extent 2012-09-25 00:13:28 +02:00
Éric Lemoine 92f0711404 Jasmine tests for ol.interaction.ResolutionConstraint 2012-09-25 00:02:22 +02:00
Éric Lemoine 94f2f85195 Jasmine tests for ol.TileUrlFunction 2012-09-24 23:39:50 +02:00
Éric Lemoine ec9382e760 Jasmine tests for ol.Projection 2012-09-24 23:26:49 +02:00
Éric Lemoine c2901dec73 Jasmine tests for ol.TileCoord 2012-09-24 22:56:40 +02:00
Éric Lemoine 4b015f9962 add Jasmine tests for ol.Object 2012-09-24 18:15:30 +02:00
Éric Lemoine baeddfac12 remove the old tests 2012-09-24 18:12:51 +02:00
ahocevar 78f8ed04dd Fixing typo. 2012-07-18 08:10:44 +02:00
Éric Lemoine a365b0aaf3 improvements to the drag handler tests 2012-07-13 17:44:46 +02:00
Éric Lemoine 226480af90 fix mousewheel handler tests 2012-07-13 16:20:23 +02:00
Éric Lemoine 6fd5bb8647 fix drag handler tests 2012-07-13 16:20:07 +02:00
Éric Lemoine f34aa03109 Revert "Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control."
This reverts commit c2a30f4ac4.
2012-07-13 15:37:39 +02:00
Éric Lemoine dd5182c55c remove trailing spaces in tests 2012-07-13 15:37:21 +02:00
Éric Lemoine c2a30f4ac4 Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control. 2012-07-13 08:57:40 +02:00
ahocevar f4532f1548 Completing tests for map handlers. 2012-07-12 23:48:13 +02:00
Éric Lemoine d73410a9b3 add a click handler 2012-07-11 17:45:32 +02:00
Éric Lemoine da11a8c34d add ol.ENABLE_DRAG_HANDLER and ol.ENABLE_MOUSEWHEEL_HANDLER @defines, and pass a an object to the handlers for sharing states 2012-07-11 17:43:42 +02:00
Éric Lemoine 82b5a59647 remove ol.event entirely 2012-07-09 21:34:47 +02:00
Éric Lemoine e4ff1a7574 ol.Tile inherits from goog.events.EventTarget 2012-07-09 21:33:08 +02:00
Éric Lemoine 7c7cd08494 base tests for ol.handler.Drag and ol.handler.MouseWheel 2012-07-09 21:09:09 +02:00
Tim Schaub 1dd2512765 Specs for getting tile coords. 2012-07-09 01:15:56 -06:00
ahocevar d76eea8ac4 Fixing tests. 2012-07-09 08:26:25 +02:00