diff --git a/packages/board/examples/features/index.html b/packages/board/examples/features/index.html index fc8c377..8a14754 100644 --- a/packages/board/examples/features/index.html +++ b/packages/board/examples/features/index.html @@ -3,54 +3,15 @@ -
- -
- scale - -
-
- scrollX - -
-
- scrollY - -
- -
- - - -
- - - + \ No newline at end of file diff --git a/packages/board/examples/features/lib/opts.js b/packages/board/examples/features/lib/opts.js index 369a95a..6f62fe1 100644 --- a/packages/board/examples/features/lib/opts.js +++ b/packages/board/examples/features/lib/opts.js @@ -1,6 +1,6 @@ export default { - width: 800, - height: 600, + width: 400, + height: 300, contextWidth: 600, contextHeight: 400, devicePixelRatio: 4, diff --git a/packages/board/examples/features/main.html b/packages/board/examples/features/main.html new file mode 100644 index 0000000..fc8c377 --- /dev/null +++ b/packages/board/examples/features/main.html @@ -0,0 +1,56 @@ + + + + + + + + +
+ +
+ scale + +
+
+ scrollX + +
+
+ scrollY + +
+ +
+ + + +
+ + + + + \ No newline at end of file diff --git a/packages/board/examples/features/main.js b/packages/board/examples/features/main.js index 70c38ed..9f1f04d 100644 --- a/packages/board/examples/features/main.js +++ b/packages/board/examples/features/main.js @@ -10,17 +10,17 @@ const Board = window.iDrawBoard; const mount = document.querySelector("#mount"); const board = new Board(mount, opts); -// const conf = { -// scale: 0.5, -// scrollX: 100, -// scrollY: 200, -// } - const conf = { - scale: 2, - scrollX: -200, - scrollY: -100, -}; + scale: 1, + // scrollX: 100, + // scrollY: 200, +} + +// const conf = { +// scale: 2, +// scrollX: -200, +// scrollY: -100, +// }; drawData(board);