modern-canvas 0.4.14 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4389,13 +4389,12 @@ function parseCSSFilter(filter) {
4389
4389
  return m;
4390
4390
  }
4391
4391
 
4392
- const _temp = new Transform2D();
4393
4392
  function parseCSSTransform(transform, width, height) {
4394
4393
  const t2d = new Transform2D(false);
4395
4394
  transform = !transform || transform === "none" ? "" : transform;
4396
4395
  parseCssFunctions(transform, { width, height }).forEach(({ name, args }) => {
4397
4396
  const values = args.map((arg) => arg.normalizedIntValue);
4398
- _temp.identity();
4397
+ const _temp = new Transform2D();
4399
4398
  switch (name) {
4400
4399
  case "translate":
4401
4400
  _temp.translate(values[0] * width, (values[1] ?? values[0]) * height);