Closed yixuan closed 9 years ago
92.81%
Merging #39 into master will increase coverage by +0.44% as of
e6ec2b4
@@ master #39 diff @@
======================================
Files 6 6
Stmts 328 376 +48
Branches 0 0
Methods 0 0
======================================
+ Hit 303 349 +46
Partial 0 0
- Missed 25 27 +2
Review entire Coverage Diff as of
e6ec2b4
Powered by Codecov. Updated on successful CI builds.
Apart from that small comment, this looks great!
I think it's now ready.
Awesome - thanks!
A
<style>
element will be added whensvg_new_page()
is called. This globally defines several default attributes, including fill color, stroke color, line end shape, line join shape etc.Styling properties for a single shape object will be put in an inline
style
attribute, which override the global ones in<style>
when necessary. These properties are written only when they are different from the default values. For example, the following R codewill generate SVG file
This strategy in general could further reduce the file size of plots. Using the benchmark example in README, the file size is now reduced from ~93K to ~73K.