diff --git a/README.md b/README.md index 192edd7..e6fb5a3 100644 --- a/README.md +++ b/README.md @@ -164,4 +164,4 @@ Since Paver is provided as-is and free-of-charge, I am sorry to inform you that | 1.0.0 | May 14, 2015 | Official release | | 1.1.0 | May 16, 2015 |

**Code optimization**: Stored global variables and checks within the `global` variable, removed the need to pass them to individual plugin instances.

**Bug fix**:

| | 1.2.0 | May 19, 2015 |

**Better demo pages**: Demo pages have been restyled (slightly) and with navigation added.

**Feature addition**: Now you can [declare custom smoothing functions](http://terrymun.github.io/paver/demo/usage-notes.html#custom-smoothing-function). Appropriate documentations have been added/updated to reflec this new feature—and the smoothing functions documentation now comes with beautiful [d3.js](http://d3js.org/) powered graphs, and [MathJax](https://www.mathjax.org/) powered equations.

| -| 1.2.1 | |

**Bug fix**: Last known panned position not recorded properly.

+| 1.2.1 | |

**Bug fix**: Last known panned position not recorded properly, and buggy horizontal panning due to accidental use of `parseInt()`.

diff --git a/demo/usage-notes.html b/demo/usage-notes.html index 061043b..cf8528f 100644 --- a/demo/usage-notes.html +++ b/demo/usage-notes.html @@ -98,6 +98,13 @@

Configuration options

200

The excess width the panorama must have, in pixels, before Paver kicks in. In other words, this option allows the panorama's computed width to exceed that of its parent container by n amount of pixels before we allow for panning. Nobody wants a panorama that can barely be panned, which could almost fit in the whole screen, right?

This value should be determined on a case-by-case basis, depending on how wide your panorama container is, but with repeated testing I find 200 to be a good in-between value.

+ + mouseSmoothingFunction + data-mouse-smoothing-function + String or Function + linear +

Determines how tilting movement can be translated and smoothed into a panning action. Default option is linear, but you may choose between gaussian, cosine and tangent. For details of each smoothing function, refer to smoothing functions.

If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.

+ panningThrottle data-panning-throttle @@ -113,13 +120,6 @@

Configuration options

500

Governs how often the window resize event should be fired. Due to intensive computation requirements of each Paver instance, the window resize event has been highly throttled. Afterall, it is the final dimensions of the viewport that matters, not that of during transitional resizing events.

- - mouseSmoothingFunction - data-mouse-smoothing-function - String or Function - linear -

Determines how tilting movement can be translated and smoothed into a panning action. Default option is linear, but you may choose between gaussian, cosine and tangent. For details of each smoothing function, refer to smoothing functions.

If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.

- responsive data-responsive @@ -161,7 +161,7 @@

Configuration options

data-tilt-smoothing-function String or Function gaussian -

Experimental feature that depends on device support.

Determines how tilting movement can be translated and smoothed into a panning action. Default option is gaussian, but you may choose between linear, cosine and tangent. For details of each smoothing function, refer to smoothing functions.

If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.

+

Experimental feature that depends on device support.

Determines how tilting movement can be translated and smoothed into a panning action. Default option is gaussian, but you may choose between linear, cosine and tangent. For details of each smoothing function, refer to smoothing functions.

If you are declaring a function, refer to custom smoothing functions for instructions on how to create one yourself.

tiltThresholdLandscape @@ -186,9 +186,9 @@

Smoothing Functions

Note: in mathematical terms, square brackets is the representation of the concept "inclusive of", i.e. $[-1,1]$ is inclusive of $-1$ and $1$, or $-1 \le n \le 1$.