<commit_before># BuildSVG

Class that can define and manipulate SVG elements. Build up an image by creating children BuildSVG elements.

## Import

    import BuildSVG from '@pod-point/build-svg';

## Use

### Create a new element

    var svg = new BuildSVG('svg', attrs);

    svg.element; // SVGElement

## Methods

### .attr()

    svg.attr('d'); // Get 'd'
    svg.attr('d', 'M100 200'); // Set 'd'
    svg.attr(attrs); // Set multiple

### .dimensions()
    
    svg.dimensions(width, height); // Set width and height

### .offset()

    svg.offset(); // Get { x, y }
    svg.offset(x, y); // Set { x, y } 

### .append()

    svg.append(new BuildSVG('path')); // Adds a path tag after all children

### .prepend()

    svg.append(new BuildSVG('path')); // Adds a path tag before all children

### .create()
    
    svg.create('path', attr); // Create and append child SVG path<commit_msg>Updated typo in readme<commit_after># BuildSVG

Class that can define and manipulate SVG elements. Build up an image by creating children BuildSVG elements.

## Import

    import BuildSVG from '@pod-point/build-svg';

## Use

### Create a new element

    var svg = new BuildSVG('svg', attrs);

    svg.element; // SVGElement

## Methods

### .attr()

    svg.attr('d'); // Get 'd'
    svg.attr('d', 'M100 200'); // Set 'd'
    svg.attr(attrs); // Set multiple

### .dimensions()
    
    svg.dimensions(width, height); // Set width and height

### .offset()

    svg.offset(); // Get { x, y }
    svg.offset(x, y); // Set { x, y } 

### .append()

    svg.append(new BuildSVG('path')); // Adds a path tag after all children

### .prepend()

    svg.prepend(new BuildSVG('path')); // Adds a path tag before all children

### .create()
    
    svg.create('path', attr); // Create and append child SVG path
{'fraction_non_alphanumeric': 0.16981132075471697, 'fraction_numerical': 0.006659267480577136, 'mean_word_length': 2.771966527196653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1312762', 'n_tokens_mistral': 633, 'n_tokens_neox': 584, 'n_words': 192}