* create and use getTransformList
* update dependencies
This commit is contained in:
JFH
2023-03-31 01:57:06 +02:00
committed by GitHub
parent 8619a17333
commit 13cdaedc63
20 changed files with 5166 additions and 3512 deletions

View File

@@ -11,7 +11,7 @@ import { shortFloat } from './units.js'
import { ChangeElementCommand, BatchCommand } from './history.js'
import {
transformPoint, snapToAngle, rectsIntersect,
transformListToTransform
transformListToTransform, getTransformList
} from './math.js'
import {
assignAttributes, getElement, getRotationAngle, snapToGrid,
@@ -876,7 +876,7 @@ export const pathActionsMethod = (function () {
*/
resetOrientation (pth) {
if (pth?.nodeName !== 'path') { return false }
const tlist = pth.transform.baseVal
const tlist = getTransformList(pth)
const m = transformListToTransform(tlist).matrix
tlist.clear()
pth.removeAttribute('transform')