style_string: Create CSS styles for the given attributes

Description Usage Arguments Value

View source: R/utils-style.R

Description

Create CSS styles for the given attributes

Usage

1
style_string(attr_names, state, geom)

Arguments

attr_names

character vector of e.g 'fill', 'stroke', 'font'

state

list including 'gc' (graphics context)

geom

which geometry has asked for a style

Value

style string ready for inclusion in an SVG tag e.g. "stroke: #ffffff; fill: #000000;"


coolbutuseless/devoutsvg documentation built on April 24, 2020, 10:32 a.m.