X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;ds=sidebyside;f=gallery%2Finteraction.js;h=fd50def744f55ded96df06566f82ce8d8f2ec315;hb=7249a5aa13b2861eb6e79ca39059233fc6ed701d;hp=03b30e4d0f09dd5ea3d301b6df0e3dbea1e8d525;hpb=605b6119bcc80db4ea100d66df3483425dcd32af;p=dygraphs.git diff --git a/gallery/interaction.js b/gallery/interaction.js index 03b30e4..fd50def 100644 --- a/gallery/interaction.js +++ b/gallery/interaction.js @@ -5,37 +5,44 @@ Gallery.register( title: 'title', setup: function(parent) { parent.innerHTML = [ - "", - "", - "", - "", - "", - "
", - "Default interaction model", - "
", - "
Zoom: click-drag
Pan: shift-click-drag
Restore zoom level: double-click
", - "
", - "No interaction model", - "
", - "
Click and drag all you like, it won't do anything!", - "
", - "
", - "Custom interaction model", - "", - "
", - "
", - "Zoom in: double-click, scroll wheel
", - "Zoom out: ctrl-double-click, scroll wheel
", - "Standard Zoom: shift-click-drag", - "Standard Pan: click-drag
", - "Restore zoom level: press button
", - "
", - "Fun model!", - "
", - "
", - "Keep the mouse button pressed, and hover over all points", - "to mark them.", - "
"].join("\n"); + "

Default interaction model

", + "
", + "

", + " Zoom: click-drag, Pan: shift-click-drag, Restore: double-click", + "

", + "
", + "
", + "", + "

Empty interaction model

", + "
", + "

", + " Click and drag all you like, it won't do anything!", + "

", + "
", + "
", + "
", // what is this? + "", + "

Custom interaction model

", + "
", + "

", + " Zoom in: double-click, scroll wheel
", + " Zoom out: ctrl-double-click, scroll wheel
", + " Standard Zoom: shift-click-drag", + " Standard Pan: click-drag
", + " Restore zoom level: press button
", + "

", + " ", + "
", + "
", + "

Fun model!

", + "
", + "

", + " Keep the mouse button pressed, and hover over all points", + " to mark them.", + "

", + "
", + "
", + ].join('\n'); }, run: function() {