pres: Create a list of presentation attributes.

Description Usage Arguments Details Value

View source: R/utils-attr.R

Description

This function creates a named list. It's purpose is mainly as a helper - by having most presentation as named arguments we can use code auto-completion to help remember the 50+ possible attributes.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pres(
  ...,
  alignment_baseline,
  baseline_shift,
  clip_path,
  clip_rule,
  color,
  color_interpolation,
  color_interpolation_filters,
  color_profile,
  color_rendering,
  cursor,
  direction,
  display,
  dominant_baseline,
  enable_background,
  fill,
  fill_opacity,
  fill_rule,
  filter,
  flood_color,
  flood_opacity,
  font,
  font_family,
  font_size,
  font_size_adjust,
  font_stretch,
  font_style,
  font_variant,
  font_weight,
  glyph_orientation_vertical,
  image_rendering,
  kerning,
  letter_spacing,
  lighting_color,
  marker,
  marker_end,
  marker_mid,
  marker_start,
  mask,
  opacity,
  overflow,
  pointer_events,
  shape_rendering,
  stop_color,
  stop_opacity,
  stroke,
  stroke_dasharray,
  stroke_dashoffset,
  stroke_linecap,
  stroke_linejoin,
  stroke_miterlimit,
  stroke_opacity,
  stroke_width,
  text_anchor,
  text_decoration,
  text_rendering,
  unicode_bidi,
  visibility,
  word_spacing,
  writing_mode
)

Arguments

...

other named parameters

alignment_baseline, baseline_shift, clip_path, clip_rule, color, color_interpolation, color_interpolation_filters, color_profile, color_rendering, cursor, direction, display, dominant_baseline, enable_background, fill, fill_opacity, fill_rule, filter, flood_color, flood_opacity, font, font_family, font_size, font_size_adjust, font_stretch, font_style, font_variant, font_weight, glyph_orientation_vertical, image_rendering, kerning, letter_spacing, lighting_color, marker, marker_end, marker_mid, marker_start, mask, opacity, overflow, pointer_events, shape_rendering, stop_color, stop_opacity, stroke, stroke_dasharray, stroke_dashoffset, stroke_linecap, stroke_linejoin, stroke_miterlimit, stroke_opacity, stroke_width, text_anchor, text_decoration, text_rendering, unicode_bidi, visibility, word_spacing, writing_mode

named parameters (included to help when using auto-complete)

Details

For convenience, any underscores in the names will be replaced by dashes. This is because no sane CSS attributes are named with an underscore, but names with dashes are clunky to write in R.

Reference: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation

Value

a list of presentation attributes


coolbutuseless/minisvg documentation built on May 2, 2020, 3:15 a.m.