All functions

apply_transform()

Apply the given transform to x,y coordds

arc_to_df()

Convert <path> arc to a data.frame of coordinates

bezier3_to_df() bezier2_to_df()

Convert cubic and quadratic beziers to data.frame of coordinates along curve

create_rect_df()

Create a data.frame for a rectangle with rounded corners

css_calc_all_styles()

Create a named list to store computed styles indexed by the xpath of each element

css_value_as_numeric()

Convert a string value from CSS into a numeric value

data_frame()

data.frame creation

ellipse_to_df()

Convert Ellipse parameters into a data.frame of coords

get_element_by_id()

Get an element from an XML document by ID. Return NA if ID does not exist.

gpar_to_df()

Convert a gpar object to a data.frame

lex()

Break a string into labelled tokens based upon a set of patterns

load_supertinyicon()

Load an SVG icon from the supertinyicons icon pack

parse_command_to_matrix()

Parse tokens representing a single transform instruction into a matrix

parse_svg_group()

Parse xml representing some SVG

parse_svg_radialGradient() parse_svg_linearGradient() parse_svg_switch() parse_svg_image() parse_svg_use() parse_svg_path() parse_svg_polyline() parse_svg_polygon() parse_svg_line() parse_svg_rect() parse_svg_circle() parse_svg_ellipse() parse_svg_text()

Parse an SVG tag of given type

parse_svg_path_d()

Parse path into a list of parameters and meta-information

parse_transform_string_to_matrices()

Parse a transform string to a list of matrices - 1 per command. Mainly for debugging

parse_transform_string_to_matrix()

Parse a transform string to asingle transform matrix

path_list_expand_beziers()

Prepare complete list of control point coordinates for all beziers

path_list_to_abs_path_list()

Convert path relative coordinates to absolute coordinates

path_list_to_df()

Convert a path list to a data.frame

rbind_dfs()

Internal function for perfroming do.call(rbind...)

read_file()

Brute force file reader that is not concerned with file endings

read_svg()

Read an svg file (or text) into a grid::grobTree object or data.frame

shotgun_match()

Pick the closest matching word from a list of words.

style_to_gpar()

Convert a list of style information for an element to a gpar object

style_to_viewport()

Convert a list of style information to a viewport object

supertinyicon_names

Names of icons in supertinyicons set

svg_colour_to_r_colour()

Convert an SVG colour to an R colour

trim()

Trim the end off a word.

update_transform()

Update a transform matrix with an element

update_transform_with_string()

Update a transform matrix with the new SVG transform string