import { createTransform, transform as transform$1 } from "../../../tiny-svg/dist/index.esm.mjs";
function transform(gfx, x, y, angle, amount) {
  var translate2 = createTransform();
  translate2.setTranslate(x, y);
  var rotate2 = createTransform();
  rotate2.setRotate(angle || 0, 0, 0);
  var scale = createTransform();
  scale.setScale(1, 1);
  transform$1(gfx, [translate2, rotate2, scale]);
}
function translate(gfx, x, y) {
  var translate2 = createTransform();
  translate2.setTranslate(x, y);
  transform$1(gfx, translate2);
}
function rotate(gfx, angle) {
  var rotate2 = createTransform();
  rotate2.setRotate(angle, 0, 0);
  transform$1(gfx, rotate2);
}
export {
  rotate,
  transform,
  translate
};
