From ef41744fe201e704ed924ffd46d2ad7f5df9f62f Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 8 Jul 2023 22:36:55 +0900 Subject: [PATCH 1/2] Update `index.json` by `npm run generate-list` This change also fixes `generate-list.js` to keep functions that end with `X|Y|Z`, like `rotatex` or `rotatey` (`rotateX` or `rotateY`). --- generate-list.js | 14 +++++++++++++- index.json | 22 +++++++++++++++++++++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/generate-list.js b/generate-list.js index ed7c692..d9dd6ff 100644 --- a/generate-list.js +++ b/generate-list.js @@ -27,7 +27,19 @@ const references = [ ) .map((node) => node.textContent || '') .map((name) => name.replace('()', '')); - return list; + + const additinal = []; + for (const name of list) { + if (name.endsWith('X')) { + additinal.push(name.replace(/X$/, 'x')); + } else if (name.endsWith('Y')) { + additinal.push(name.replace(/Y$/, 'y')); + } else if (name.endsWith('Z')) { + additinal.push(name.replace(/Z$/, 'z')); + } + } + + return list.concat(additinal); } }, { diff --git a/index.json b/index.json index 77dde3f..9f0006f 100644 --- a/index.json +++ b/index.json @@ -63,12 +63,14 @@ "polygon", "pow", "radial-gradient", + "ray", "rect", "rem", "repeat", "repeating-conic-gradient", "repeating-linear-gradient", "repeating-radial-gradient", + "reversed", "rgb", "rgba", "rotate", @@ -89,6 +91,7 @@ "scalex", "scaley", "scalez", + "scroll", "selector", "sepia", "sign", @@ -119,6 +122,7 @@ "type", "url", "var", + "view", "-webkit-abs", "-webkit-acos", "-webkit-annotation", @@ -183,12 +187,14 @@ "-webkit-polygon", "-webkit-pow", "-webkit-radial-gradient", + "-webkit-ray", "-webkit-rect", "-webkit-rem", "-webkit-repeat", "-webkit-repeating-conic-gradient", "-webkit-repeating-linear-gradient", "-webkit-repeating-radial-gradient", + "-webkit-reversed", "-webkit-rgb", "-webkit-rgba", "-webkit-rotate", @@ -209,6 +215,7 @@ "-webkit-scalex", "-webkit-scaley", "-webkit-scalez", + "-webkit-scroll", "-webkit-selector", "-webkit-sepia", "-webkit-sign", @@ -239,6 +246,7 @@ "-webkit-type", "-webkit-url", "-webkit-var", + "-webkit-view", "-moz-abs", "-moz-acos", "-moz-annotation", @@ -303,12 +311,14 @@ "-moz-polygon", "-moz-pow", "-moz-radial-gradient", + "-moz-ray", "-moz-rect", "-moz-rem", "-moz-repeat", "-moz-repeating-conic-gradient", "-moz-repeating-linear-gradient", "-moz-repeating-radial-gradient", + "-moz-reversed", "-moz-rgb", "-moz-rgba", "-moz-rotate", @@ -329,6 +339,7 @@ "-moz-scalex", "-moz-scaley", "-moz-scalez", + "-moz-scroll", "-moz-selector", "-moz-sepia", "-moz-sign", @@ -359,6 +370,7 @@ "-moz-type", "-moz-url", "-moz-var", + "-moz-view", "-o-abs", "-o-acos", "-o-annotation", @@ -423,12 +435,14 @@ "-o-polygon", "-o-pow", "-o-radial-gradient", + "-o-ray", "-o-rect", "-o-rem", "-o-repeat", "-o-repeating-conic-gradient", "-o-repeating-linear-gradient", "-o-repeating-radial-gradient", + "-o-reversed", "-o-rgb", "-o-rgba", "-o-rotate", @@ -449,6 +463,7 @@ "-o-scalex", "-o-scaley", "-o-scalez", + "-o-scroll", "-o-selector", "-o-sepia", "-o-sign", @@ -479,6 +494,7 @@ "-o-type", "-o-url", "-o-var", + "-o-view", "-ms-abs", "-ms-acos", "-ms-annotation", @@ -543,12 +559,14 @@ "-ms-polygon", "-ms-pow", "-ms-radial-gradient", + "-ms-ray", "-ms-rect", "-ms-rem", "-ms-repeat", "-ms-repeating-conic-gradient", "-ms-repeating-linear-gradient", "-ms-repeating-radial-gradient", + "-ms-reversed", "-ms-rgb", "-ms-rgba", "-ms-rotate", @@ -569,6 +587,7 @@ "-ms-scalex", "-ms-scaley", "-ms-scalez", + "-ms-scroll", "-ms-selector", "-ms-sepia", "-ms-sign", @@ -598,5 +617,6 @@ "-ms-translatez", "-ms-type", "-ms-url", - "-ms-var" + "-ms-var", + "-ms-view" ] From 8c073f86a4b638a1095bee49bbec0c1cdbee16ae Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 8 Jul 2023 22:53:31 +0900 Subject: [PATCH 2/2] Fix typo for "additional" --- generate-list.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generate-list.js b/generate-list.js index d9dd6ff..003b1d3 100644 --- a/generate-list.js +++ b/generate-list.js @@ -28,18 +28,18 @@ const references = [ .map((node) => node.textContent || '') .map((name) => name.replace('()', '')); - const additinal = []; + const additional = []; for (const name of list) { if (name.endsWith('X')) { - additinal.push(name.replace(/X$/, 'x')); + additional.push(name.replace(/X$/, 'x')); } else if (name.endsWith('Y')) { - additinal.push(name.replace(/Y$/, 'y')); + additional.push(name.replace(/Y$/, 'y')); } else if (name.endsWith('Z')) { - additinal.push(name.replace(/Z$/, 'z')); + additional.push(name.replace(/Z$/, 'z')); } } - return list.concat(additinal); + return list.concat(additional); } }, {