Lines Matching refs:childNode
889 var childNode = group.children[ i1 ];
892 if ( childNode.tagName == "clipPath" ) {
894 … var transform = fabric.parseTransformAttribute( _this.gatherAttribute( childNode, "transform" ) );
897 for ( i2 = 0; i2 < childNode.childNodes.length; i2++ ) {
898 childNode.childNodes[ i2 ].setAttribute( "fill", "transparent" );
900 x: _this.pxToNumber( childNode.childNodes[ i2 ].getAttribute( "x" ) ),
901 y: _this.pxToNumber( childNode.childNodes[ i2 ].getAttribute( "y" ) ),
902 width: _this.pxToNumber( childNode.childNodes[ i2 ].getAttribute( "width" ) ),
903 height: _this.pxToNumber( childNode.childNodes[ i2 ].getAttribute( "height" ) )
907 group.clippings[ childNode.id ] = {
908 svg: childNode,
914 } else if ( childNode.tagName == "pattern" ) {
916 node: childNode,
917 source: childNode.getAttribute( "xlink:href" ),
918 width: Number( childNode.getAttribute( "width" ) ),
919 height: Number( childNode.getAttribute( "height" ) ),
924 for ( i2 = 0; i2 < childNode.childNodes.length; i2++ ) {
925 if ( childNode.childNodes[ i2 ].tagName == "rect" ) {
926 props.fill = childNode.childNodes[ i2 ].getAttribute( "fill" );
932 group.patterns[ childNode.id ] = props.fill ? props.fill : "transparent";
940 } else if ( childNode.tagName == "image" ) {
944 fabric.Image.fromURL( childNode.getAttribute( "xlink:href" ), function( img ) {