Skip to main content

Module minify

Module minify 

Source
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. None if 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