All files / svg-transform svg-transform-order.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11                     
/**
 * An order of `applySvgTransforms`, created by `svgRotateBy`, `svgRotateTo`, `svgFlipTo`, `svgScaleBy`,
 * `svgTranslateBy` or `svgPlaceOn`: keep it to change its values later with `set`.
 *
 * @template TArguments - The values of the order, the same as the arguments of its function.
 */
export interface SvgTransformOrder<TArguments extends unknown[]> {
  /** Changes the values of the order; once applied, its own transform is updated. */
  set(...args: TArguments): void;
}