modern-canvas 0.4.13 → 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);
@@ -10352,6 +10351,10 @@ exports.Animation = class Animation extends exports.TimelineNode {
10352
10351
  _getDiffValue(name, previous, current, weight, context) {
10353
10352
  let from;
10354
10353
  let to;
10354
+ if (previous === "none")
10355
+ previous = void 0;
10356
+ if (current === "none")
10357
+ current = void 0;
10355
10358
  if (previous === void 0 || current === void 0) {
10356
10359
  if (previous !== void 0) {
10357
10360
  from = parseCssProperty(name, String(previous), context);