X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Finteraction.js;h=fd50def744f55ded96df06566f82ce8d8f2ec315;hb=de9a8181064aa767e1c70c31a0027a0324cc33c6;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.", - " |
", + " Zoom: click-drag, Pan: shift-click-drag, Restore: double-click", + "
", + " ", + "", + " Click and drag all you like, it won't do anything!", + "
", + " ", + "",
+ " 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
",
+ "
", + " Keep the mouse button pressed, and hover over all points", + " to mark them.", + "
", + " ", + "