Gazebo_simulation-Frontend/node_modules/dom-helpers/esm/isTransform.js
2020-12-21 10:29:31 -05:00

4 lines
206 B
JavaScript

var supportedTransforms = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
export default function isTransform(value) {
return !!(value && supportedTransforms.test(value));
}