diff --git a/__tests__/snapshot/board/examples/test/main.html.jpg b/__tests__/snapshot/board/examples/test/main.html.jpg index ea0f13a..45f6fff 100644 Binary files a/__tests__/snapshot/board/examples/test/main.html.jpg and b/__tests__/snapshot/board/examples/test/main.html.jpg differ diff --git a/__tests__/snapshot/board/examples/test/reset-size.html.jpg b/__tests__/snapshot/board/examples/test/reset-size.html.jpg deleted file mode 100644 index 6314824..0000000 Binary files a/__tests__/snapshot/board/examples/test/reset-size.html.jpg and /dev/null differ diff --git a/__tests__/snapshot/board/examples/test/scale.html.jpg b/__tests__/snapshot/board/examples/test/scale.html.jpg index 4ced205..c766aec 100644 Binary files a/__tests__/snapshot/board/examples/test/scale.html.jpg and b/__tests__/snapshot/board/examples/test/scale.html.jpg differ diff --git a/__tests__/snapshot/board/examples/test/scroll.html.jpg b/__tests__/snapshot/board/examples/test/scroll.html.jpg index 2f4e6ef..4114291 100644 Binary files a/__tests__/snapshot/board/examples/test/scroll.html.jpg and b/__tests__/snapshot/board/examples/test/scroll.html.jpg differ diff --git a/__tests__/snapshot/core/examples/test/update-element.html.jpg b/__tests__/snapshot/core/examples/test/update-element.html.jpg index d035ae8..01b7370 100644 Binary files a/__tests__/snapshot/core/examples/test/update-element.html.jpg and b/__tests__/snapshot/core/examples/test/update-element.html.jpg differ diff --git a/packages/board/examples/test/event.html b/packages/board/examples/test/event.html new file mode 100644 index 0000000..84fcc4a --- /dev/null +++ b/packages/board/examples/test/event.html @@ -0,0 +1,148 @@ + + + + + + + + +
+
+
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/packages/board/examples/test/get-screen-center.html b/packages/board/examples/test/get-screen-center.html deleted file mode 100644 index 4b52c7c..0000000 --- a/packages/board/examples/test/get-screen-center.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - -
- - - - - - \ No newline at end of file diff --git a/packages/board/examples/test/main.html b/packages/board/examples/test/main.html index 50c5e0c..8dc66b7 100644 --- a/packages/board/examples/test/main.html +++ b/packages/board/examples/test/main.html @@ -4,7 +4,7 @@ -
+
+
+
basic
+
+
+
resetSize
+
+
- + + + + + + + \ No newline at end of file diff --git a/packages/board/examples/test/reset-size.html b/packages/board/examples/test/reset-size.html deleted file mode 100644 index b9ceb00..0000000 --- a/packages/board/examples/test/reset-size.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - -
- - - - - - \ No newline at end of file diff --git a/packages/board/examples/test/scale.html b/packages/board/examples/test/scale.html index 6e10d7e..20a7928 100644 --- a/packages/board/examples/test/scale.html +++ b/packages/board/examples/test/scale.html @@ -17,26 +17,47 @@ .list { width: 910px; overflow: hidden; - border-top: 1px solid #aaaaaa; - border-left: 1px solid #aaaaaa; + border-top: 1px solid #f0f0f0; + border-left: 1px solid #f0f0f0; } .box { width: 300; - height: 200; + min-height: 200; float: left; - border-right: 1px solid #aaaaaa; - border-bottom: 1px solid #aaaaaa; + border-right: 1px solid #f0f0f0; + border-bottom: 1px solid #f0f0f0; + padding: 10px 0; + } + .box .title { + text-align: center; + font-size: 14px; + color: #000; + display: inline-block; + height: 20px; + line-height: 20px; + width: 100%; + font-family: monospace; }
-
-
-
-
-
+
+
Scale 0.5 to 1
+
+
+
Scale 2 and Scroll
+
+
+
Scale 2 to 1 and Scroll
+
+
+
Scale 0.5 and Scroll
+
+
+
Scale 0.5 and Console result
+
diff --git a/packages/board/examples/test/scroll.html b/packages/board/examples/test/scroll.html index 17b7e1a..15a9a68 100644 --- a/packages/board/examples/test/scroll.html +++ b/packages/board/examples/test/scroll.html @@ -17,15 +17,26 @@ .list { width: 910px; overflow: hidden; - border-top: 1px solid #aaaaaa; - border-left: 1px solid #aaaaaa; + border-top: 1px solid #f0f0f0; + border-left: 1px solid #f0f0f0; } .box { width: 300; - height: 200; + min-height: 200; float: left; - border-right: 1px solid #aaaaaa; - border-bottom: 1px solid #aaaaaa; + border-right: 1px solid #f0f0f0; + border-bottom: 1px solid #f0f0f0; + padding: 10px 0; + } + .box .title { + text-align: center; + font-size: 14px; + color: #000; + display: inline-block; + height: 20px; + line-height: 20px; + width: 100%; + font-family: monospace; } diff --git a/packages/board/examples/test/wheel.html b/packages/board/examples/test/wheel.html deleted file mode 100644 index d008ef1..0000000 --- a/packages/board/examples/test/wheel.html +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - - -
- - - - - - \ No newline at end of file diff --git a/scripts/screen.config.js b/scripts/screen.config.js index 4c68425..ea4ddfe 100644 --- a/scripts/screen.config.js +++ b/scripts/screen.config.js @@ -1,8 +1,8 @@ const pageList = [ - { path: 'board/examples/test/main.html', w: 600, h: 400, delay: 500 }, - { path: 'board/examples/test/scale.html', w: 920, h: 420, delay: 500 }, - { path: 'board/examples/test/scroll.html', w: 620, h: 210, delay: 500 }, - { path: 'board/examples/test/reset-size.html', w: 400, h: 300, delay: 500 }, + { path: 'board/examples/test/main.html', w: 620, h: 270, delay: 500 }, + { path: 'board/examples/test/scale.html', w: 930, h: 540, delay: 500 }, + { path: 'board/examples/test/scroll.html', w: 620, h: 270, delay: 500 }, + // { path: 'board/examples/test/event.html', w: 400, h: 300, delay: 500 }, { path: 'core/examples/test/rect.html', w: 600, h: 400, delay: 500 }, { path: 'core/examples/test/circle.html', w: 600, h: 400, delay: 500 }, { path: 'core/examples/test/text.html', w: 600, h: 400, delay: 500 },