You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2021/09/22 06:27:16 UTC
[echarts-examples] branch gh-pages updated: rollback screenshot
change threshold
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 4e8bf18 rollback screenshot change threshold
4e8bf18 is described below
commit 4e8bf1821d02c3f1a1dd501944d1b7fdb3f41101
Author: pissang <bm...@gmail.com>
AuthorDate: Wed Sep 22 14:26:23 2021 +0800
rollback screenshot change threshold
---
tool/build-example.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tool/build-example.js b/tool/build-example.js
index 9d84db3..2ce36dc 100644
--- a/tool/build-example.js
+++ b/tool/build-example.js
@@ -218,10 +218,9 @@ async function takeScreenshot(
.toFile(filePathTmp);
const { diffRatio } = await compareImage(filePath, filePathTmp, 0.1);
- const force = true;
console.log(filePath);
- if (diffRatio < 0.01 && !force) {
+ if (diffRatio < 0.01) {
console.log('Not changed');
} else {
console.log(diffRatio);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org