1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 17:40:29 +00:00
TiddlyWiki5/plugins/tiddlywiki/dynaview
2018-05-25 11:08:27 +01:00
..
examples Separate the two reveal-on-scroll examples 2018-05-23 14:17:23 +01:00
above-story.tid Introduce new dynaview plugin 2018-01-05 09:18:19 +00:00
config.multids Dynaview: Add support for updating the address bar when scrolling 2018-03-13 14:07:29 +00:00
config.tid Dynaview: Add support for updating the address bar when scrolling 2018-03-13 14:07:29 +00:00
docs.tid Dynaview: unset functionality when scrolling out (#3212) 2018-04-12 13:23:50 +01:00
dynaview.js DynaView: refactor checkVisibility for performance and readability 2018-05-23 14:17:49 +01:00
examples.tid Introduce new dynaview plugin 2018-01-05 09:18:19 +00:00
macros.tid DynaView: Only apply minimum height to tiddlers that are not yet visible 2018-05-25 11:08:27 +01:00
optisizer-maquette.tid DynaView plugin: Add font "optisizer" 2018-03-10 10:33:34 +00:00
plugin.info DynaView plugin: make viewport dimensions available in state tiddlers (#3126) 2018-02-18 12:04:35 +00:00
readme.tid Dynaview: Add support for updating the address bar when scrolling 2018-03-13 14:07:29 +00:00
styles.tid Introduce new dynaview plugin 2018-01-05 09:18:19 +00:00

title: $:/plugins/tiddlywiki/dynaview/readme

! Dynaview

This plugin makes it possible to build user interfaces that dynamically respond to changes in the browser viewport via scrolling or zooming:

* CSS classes that allow rendering to be deferred until the output is scrolled into view
* CSS classes that allow the opacity of DOM elements to vary according to the current zoom level
* A daemon that can dynamically update a pair of state tiddlers with the current dimensions of the browser viewport
* A daemon that can dynamically adjust the size of text to yield a particular number of characters per line
* A daemon that can dynamically update the address bar with the title of the tiddler at the top of the viewport

Some points to note about the zoom features:

<<<

* The zoom level currently only works on Safari, both on Mac OS and on the iPhone/iPad
* The zoom level tracked by the plugin is the pinch-zoom level, and not the text-zoom level
* Rather than being progressively rendered as needed, hidden item are rendered with zero opacity. Which means that they can still be interacted with

This is really just a proof of concept to allow the user experience to be evaluated. A production version would need to work in all browsers, which would mean adopting a polyfill such as [[Hammer.js|http://hammerjs.github.io/]] to give us manual pan and zoom support. It would also allow deeper levels of zoom.

<<<