getNodeTransform method
dynamic
getNodeTransform(
- dynamic node
Implementation
getNodeTransform(node) {
if (!(node.hasAttribute('transform') ||
(node.nodeName == 'use' && (node.hasAttribute('x') || node.hasAttribute('y'))))) {
return null;
}
var transform = parseNodeTransform(node);
if (transformStack.isNotEmpty) {
transform.premultiply(transformStack[transformStack.length - 1]);
}
currentTransform.copy(transform);
transformStack.add(transform);
return transform;
}