diff --git a/examples/image-filter.html b/examples/image-filter.html index 37d308d21a..1d68e835d1 100644 --- a/examples/image-filter.html +++ b/examples/image-filter.html @@ -3,9 +3,9 @@ layout: example.html title: Image Filters shortdesc: Apply a filter to imagery docs: > -
Layer rendering can be manipulated in precompose and postcompose event listeners.
+
Layer rendering can be manipulated in prerender and postrender event listeners.
These listeners get an event with a reference to the Canvas rendering context.
- In this example, the postcompose listener applies a filter to the image data.
postrender listener applies a filter to the image data.
tags: "filter, image manipulation"
cloak:
- key: As1HiMj1PvLPlqc_gtM7AqZfBL8ZL3VrjaS3zIb22Uvb9WKhuJObROC-qUpa81U5
diff --git a/examples/image-filter.js b/examples/image-filter.js
index a35636a2df..47d321e56a 100644
--- a/examples/image-filter.js
+++ b/examples/image-filter.js
@@ -90,9 +90,9 @@ select.onchange = function() {
/**
- * Apply a filter on "postcompose" events.
+ * Apply a filter on "postrender" events.
*/
-imagery.on('postcompose', function(event) {
+imagery.on('postrender', function(event) {
convolve(event.context, selectedKernel);
});