function copySubtrees(src, dst) {
			dst.targetX = src.targetX;
			dst.targetY = src.targetY;
			dst.offsetX = src.offsetX;
			src.children.forEach(
				child => copySubtrees(child, dst.appendChild())
			);
		}
// Make a copy of this and its children. Also set SVG position.
Make a copy of this and its children. Also set SVG position.
Make a copy of this and its children . Also set SVG position .
function copySubtrees(src, dst) {
			dst.targetX = src.targetX;
			dst.targetY = src.targetY;
			dst.offsetX = src.offsetX;
			src.children.forEach(
				child => copySubtrees(child, dst.appendChild())
			);
		}
function copySubtrees ( src , dst ) { dst . targetX = src . targetX ; dst . targetY = src . targetY ; dst . offsetX = src . offsetX ; src . children . forEach ( child => copySubtrees ( child , dst . appendChild ( ) ) ) ; }
Make a copy of this and its children.
Make a copy of this and its children .