Skip to content

Commit

Permalink
Update index.json by npm run generate-list
Browse files Browse the repository at this point in the history
This change also fixes `generate-list.js` to keep functions
that end with `X|Y|Z`, like `rotatex` or `rotatey` (`rotateX` or `rotateY`).
  • Loading branch information
ybiquitous authored and niksy committed Jul 10, 2023
1 parent 0c17ffe commit 78e1ec0
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
14 changes: 13 additions & 1 deletion generate-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
{
Expand Down
22 changes: 21 additions & 1 deletion index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -89,6 +91,7 @@
"scalex",
"scaley",
"scalez",
"scroll",
"selector",
"sepia",
"sign",
Expand Down Expand Up @@ -119,6 +122,7 @@
"type",
"url",
"var",
"view",
"-webkit-abs",
"-webkit-acos",
"-webkit-annotation",
Expand Down Expand Up @@ -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",
Expand All @@ -209,6 +215,7 @@
"-webkit-scalex",
"-webkit-scaley",
"-webkit-scalez",
"-webkit-scroll",
"-webkit-selector",
"-webkit-sepia",
"-webkit-sign",
Expand Down Expand Up @@ -239,6 +246,7 @@
"-webkit-type",
"-webkit-url",
"-webkit-var",
"-webkit-view",
"-moz-abs",
"-moz-acos",
"-moz-annotation",
Expand Down Expand Up @@ -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",
Expand All @@ -329,6 +339,7 @@
"-moz-scalex",
"-moz-scaley",
"-moz-scalez",
"-moz-scroll",
"-moz-selector",
"-moz-sepia",
"-moz-sign",
Expand Down Expand Up @@ -359,6 +370,7 @@
"-moz-type",
"-moz-url",
"-moz-var",
"-moz-view",
"-o-abs",
"-o-acos",
"-o-annotation",
Expand Down Expand Up @@ -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",
Expand All @@ -449,6 +463,7 @@
"-o-scalex",
"-o-scaley",
"-o-scalez",
"-o-scroll",
"-o-selector",
"-o-sepia",
"-o-sign",
Expand Down Expand Up @@ -479,6 +494,7 @@
"-o-type",
"-o-url",
"-o-var",
"-o-view",
"-ms-abs",
"-ms-acos",
"-ms-annotation",
Expand Down Expand Up @@ -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",
Expand All @@ -569,6 +587,7 @@
"-ms-scalex",
"-ms-scaley",
"-ms-scalez",
"-ms-scroll",
"-ms-selector",
"-ms-sepia",
"-ms-sign",
Expand Down Expand Up @@ -598,5 +617,6 @@
"-ms-translatez",
"-ms-type",
"-ms-url",
"-ms-var"
"-ms-var",
"-ms-view"
]

0 comments on commit 78e1ec0

Please sign in to comment.