UNPKG

scrawl-canvas

Version:
52 lines (40 loc) 1.41 kB
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Demo Canvas 063</title> <link href="css/normalize.css" rel="stylesheet" /> <link href="css/tests.css" rel="stylesheet" /> </head> <body> <h1><a href="index.html">Scrawl-canvas v8</a> - Canvas test 063</h1> <h2>Semi-accessible Minimap; multiple drag zones</h2> <ul> <li>Drag-and-drop the shapes around the large canvas. Keyboard shortcut: none.</li> <li>Move around the large canvas by drag-dropping the red frame in the minimap. Keyboard shortcut: arrow keys.</li> <li>Drag-drop the minimap to expose areas beneath it. Keyboard shortcut: shift + arrow keys.</li> <li>Resize the display canvas by dragging its bottom-right corner. Keyboard shortcut: none.</li> </ul> <div class="canvas-container"> <canvas id="mycanvas" data-scrawl-canvas data-is-responsive="true" data-fit="cover" data-base-background-color="darkslategray" ></canvas> </div> <p id="reportmessage"></p> <div class="testinfo"> <h4>Test purpose</h4> <ul> <li></li> </ul> <p><b>Touch test:</b> not required</p> <p><a href="../docs/demo/canvas-063.html">Annotated code</a></p> </div> <script src="canvas-063.js" type="module"></script> </body> </html>