X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=gallery%2Finteraction.js;h=5936189f363d78dea5ef2c69623a3f70288d98ba;hb=daf90f2a860967ea4b28387b6f97e0c56fd728fe;hp=03b30e4d0f09dd5ea3d301b6df0e3dbea1e8d525;hpb=605b6119bcc80db4ea100d66df3483425dcd32af;p=dygraphs.git diff --git a/gallery/interaction.js b/gallery/interaction.js index 03b30e4..5936189 100644 --- a/gallery/interaction.js +++ b/gallery/interaction.js @@ -1,3 +1,6 @@ +/*global Gallery,Dygraph,data */ +/*global NoisyData,downV3,moveV3,upV3,clickV3,dblClickV3,scrollV3,restorePositioning,downV4,moveV4,upV4,dblClickV4,captureCanvas */ + Gallery.register( 'interaction', { @@ -5,47 +8,54 @@ 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.", + "
", + " ", + "