diff --git a/__tests__/snapshot/board/examples/test/scroll.html.jpg b/__tests__/snapshot/board/examples/test/scroll.html.jpg new file mode 100644 index 0000000..a07b020 Binary files /dev/null and b/__tests__/snapshot/board/examples/test/scroll.html.jpg differ diff --git a/packages/board/examples/test/scroll.html b/packages/board/examples/test/scroll.html new file mode 100644 index 0000000..17b910a --- /dev/null +++ b/packages/board/examples/test/scroll.html @@ -0,0 +1,88 @@ + +
+ + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/board/examples/test/wheel.html b/packages/board/examples/test/wheel.html index 683bd6c..17b910a 100644 --- a/packages/board/examples/test/wheel.html +++ b/packages/board/examples/test/wheel.html @@ -73,21 +73,15 @@ ctx.fillRect(500 - 10, 450 - 10, 20, 20); // board.scale(1.5); - // board.scrollX(-600); - // board.scrollY(-600); + board.scrollX(-200); + board.scrollY(-250); // board.scale(1); // const result = board.scale(1); - const result = board.scale(3); + const result = board.scale(1); console.log('result =', result); board.draw(); - // setTimeout(() => { - // const result = board.scale(2); - // console.log('result =', result); - // board.draw(); - // }, 5000) -