style_to_gpar: Convert a list of style information for an element to a...

Description Usage Arguments Details Value

View source: R/css-style-to-gp-vp.R

Description

Convert a named list of CSS style information into a gpar object. E.g. list(stroke = 'black') is converted to gpar(col = 'black').

Usage

1

Arguments

style

named list of style properties for an element. E.g. list(stroke = 'black')

state

state information. See inline documentation for read_svg for more information.

Details

This function handles stroke and fill colours (and separate alphas for each), fonts, linear and radial gradients, line parameters (width, join and end types etc).

Not yet done:

Value

gpar object


coolbutuseless/svgparser documentation built on Dec. 26, 2021, 12:03 a.m.