Expand description
Port of src/ast/transform/minify.ts.
Functions§
- eq_
matrix - true if a list of transform functions is equivalent to a matrix (the values differ by at most
epsilon) - minify
- the shortest transform functions of a matrix: translate → rotate → skew → scale.
Noneif the matrix cannot be decomposed - minify_
transform_ functions - shorter form of a transform function:
translate3d(0, 10px, 0)→translateY(10px),scale3d(2, 1, 1)→scaleX(2),skewX()→skew(). the percentages of the scale functions are converted to numbers