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 +1 -2
- package/dist/index.js +34 -34
- package/dist/index.mjs +1 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4383,13 +4383,12 @@ function parseCSSFilter(filter) {
|
|
|
4383
4383
|
return m;
|
|
4384
4384
|
}
|
|
4385
4385
|
|
|
4386
|
-
const _temp = new Transform2D();
|
|
4387
4386
|
function parseCSSTransform(transform, width, height) {
|
|
4388
4387
|
const t2d = new Transform2D(false);
|
|
4389
4388
|
transform = !transform || transform === "none" ? "" : transform;
|
|
4390
4389
|
parseCssFunctions(transform, { width, height }).forEach(({ name, args }) => {
|
|
4391
4390
|
const values = args.map((arg) => arg.normalizedIntValue);
|
|
4392
|
-
_temp
|
|
4391
|
+
const _temp = new Transform2D();
|
|
4393
4392
|
switch (name) {
|
|
4394
4393
|
case "translate":
|
|
4395
4394
|
_temp.translate(values[0] * width, (values[1] ?? values[0]) * height);
|