modern-canvas 0.4.56 → 0.5.1

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
@@ -4300,7 +4300,7 @@ function parseCSSFilter(filter) {
4300
4300
 
4301
4301
  function parseCSSTransform(transform, width, height, output = new Transform2D()) {
4302
4302
  transform = !transform || transform === "none" ? "" : transform;
4303
- parseCssFunctions(transform, { width, height }).forEach(({ name, args }) => {
4303
+ parseCssFunctions(transform, { width, height }).reverse().forEach(({ name, args }) => {
4304
4304
  const values = args.map((arg) => arg.normalizedIntValue);
4305
4305
  switch (name) {
4306
4306
  case "translate":
@@ -9225,7 +9225,7 @@ class BaseElement2DShape extends CoreObject {
9225
9225
  _updatePath2DSet() {
9226
9226
  let viewBox;
9227
9227
  if (this.svg) {
9228
- const dom = modernPath2d.svgToDOM(this.svg);
9228
+ const dom = modernPath2d.svgToDom(this.svg);
9229
9229
  this._path2DSet = modernPath2d.svgToPath2DSet(dom);
9230
9230
  viewBox = this._path2DSet.viewBox;
9231
9231
  } else {