example/js/svg.js
function(parent) {
    if(this == parent) return this
    var ctm = this.screenCTM()
    var temp = parent.rect(1,1)
    var pCtm = temp.screenCTM().inverse()
    temp.remove()

    this.addTo(parent).untransform().transform(pCtm.multiply(ctm))

    return this
  }
function(parent) {
    if(this == parent) return this
    var ctm = this.screenCTM()
    var temp = parent.rect(1,1)
    var pCtm = temp.screenCTM().inverse()
    temp.remove()

    this.addTo(parent).untransform().transform(pCtm.multiply(ctm))

    return this
  }
function ( parent ) { if ( this == parent ) return this var ctm = this . screenCTM ( ) var temp = parent . rect ( 1 , 1 ) var pCtm = temp . screenCTM ( ) . inverse ( ) temp . remove ( ) this . addTo ( parent ) . untransform ( ) . transform ( pCtm . multiply ( ctm ) ) return this }
add an element to another parent without changing the visual representation on the screen
add an element to another parent without changing the visual representation on the screen