A library for working with phylogenetic and population genetic data.
v0.27.0
shapes.cpp
Go to the documentation of this file.
1 /*
2  Genesis - A toolkit for working with phylogenetic data.
3  Copyright (C) 2014-2017 Lucas Czech
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 
18  Contact:
19  Lucas Czech <lucas.czech@h-its.org>
20  Exelixis Lab, Heidelberg Institute for Theoretical Studies
21  Schloss-Wolfsbrunnenweg 35, D-69118 Heidelberg, Germany
22 */
23 
32 
35 
36 #include <algorithm>
37 #include <ostream>
38 #include <stdexcept>
39 
40 namespace genesis {
41 namespace utils {
42 
43 // =================================================================================================
44 // Svg Line
45 // =================================================================================================
46 
47 // -------------------------------------------------------------
48 // Constructors and Rule of Five
49 // -------------------------------------------------------------
50 
51 SvgLine::SvgLine( SvgPoint const& p1, SvgPoint const& p2, SvgStroke const& stroke )
52  : point_1( p1 )
53  , point_2( p2 )
54  , stroke( stroke )
55 {}
56 
57 SvgLine::SvgLine( double x1, double y1, double x2, double y2, SvgStroke const& stroke )
58  : SvgLine( SvgPoint( x1, y1 ), SvgPoint( x2, y2 ), stroke )
59 {}
60 
61 // -------------------------------------------------------------
62 // Members
63 // -------------------------------------------------------------
64 
66 {
67  return {
68  SvgPoint( std::min( point_1.x, point_2.x ), std::min( point_1.y, point_2.y )),
69  SvgPoint( std::max( point_1.x, point_2.x ), std::max( point_1.y, point_2.y ))
70  };
71 }
72 
73 void SvgLine::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
74 {
76  out << "<line";
77 
78  if( ! id.empty() ) {
79  out << svg_attribute( "id", id );
80  }
81 
82  out << svg_attribute( "x1", point_1.x + options.offset_x );
83  out << svg_attribute( "y1", point_1.y + options.offset_y );
84  out << svg_attribute( "x2", point_2.x + options.offset_x );
85  out << svg_attribute( "y2", point_2.y + options.offset_y );
86 
87  stroke.write( out );
88  transform.write( out );
89  out << " />\n";
90 }
91 
92 // =================================================================================================
93 // Svg Rect
94 // =================================================================================================
95 
96 // -------------------------------------------------------------
97 // Constructors and Rule of Five
98 // -------------------------------------------------------------
99 
101  SvgPoint const& position,
102  SvgSize const& size,
103  SvgStroke const& stroke,
104  SvgFill const& fill
105 )
106  : position( position )
107  , size( size )
108  , stroke( stroke )
109  , fill( fill )
110  , rx( 0.0 )
111  , ry( 0.0 )
112 {}
113 
115  double x, double y,
116  double w, double h,
117  SvgStroke const& stroke ,
118  SvgFill const& fill
119 )
120  : SvgRect( SvgPoint( x, y ), SvgSize( w, h ), stroke, fill )
121 {}
122 
123 // -------------------------------------------------------------
124 // Members
125 // -------------------------------------------------------------
126 
128 {
129  return { position, size.width, size.height };
130 }
131 
132 void SvgRect::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
133 {
135  out << "<rect";
136 
137  if( ! id.empty() ) {
138  out << svg_attribute( "id", id );
139  }
140 
141  out << svg_attribute( "x", position.x + options.offset_x );
142  out << svg_attribute( "y", position.y + options.offset_y );
143  out << svg_attribute( "width", size.width );
144  out << svg_attribute( "height", size.height );
145 
146  if( rx != 0.0 || ry != 0.0 ) {
147  out << svg_attribute( "rx", rx );
148  out << svg_attribute( "ry", ry );
149  }
150 
151  stroke.write( out );
152  fill.write( out );
153  transform.write( out );
154  out << " />\n";
155 }
156 
157 // =================================================================================================
158 // Svg Circle
159 // =================================================================================================
160 
161 // -------------------------------------------------------------
162 // Constructors and Rule of Five
163 // -------------------------------------------------------------
164 
166  SvgPoint const& center,
167  double radius,
168  SvgStroke const& stroke,
169  SvgFill const& fill
170 )
171  : center( center )
172  , radius( radius )
173  , stroke( stroke )
174  , fill( fill )
175 {}
176 
178  double cx, double cy,
179  double radius,
180  SvgStroke const& stroke,
181  SvgFill const& fill
182 )
183  : SvgCircle( SvgPoint( cx, cy ), radius, stroke, fill )
184 {}
185 
186 // -------------------------------------------------------------
187 // Members
188 // -------------------------------------------------------------
189 
191 {
192  return {
195  };
196 }
197 
198 void SvgCircle::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
199 {
201  out << "<circle";
202 
203  if( ! id.empty() ) {
204  out << svg_attribute( "id", id );
205  }
206 
207  out << svg_attribute( "cx", center.x + options.offset_x );
208  out << svg_attribute( "cy", center.y + options.offset_y );
209  out << svg_attribute( "r", radius );
210 
211  stroke.write( out );
212  fill.write( out );
213  transform.write( out );
214  out << " />\n";
215 }
216 
217 // =================================================================================================
218 // Svg Ellipse
219 // =================================================================================================
220 
221 // -------------------------------------------------------------
222 // Constructors and Rule of Five
223 // -------------------------------------------------------------
224 
226  SvgPoint const& center,
227  double rx, double ry,
228  SvgStroke const& stroke,
229  SvgFill const& fill
230 )
231  : center( center )
232  , rx( rx )
233  , ry( ry )
234  , stroke( stroke )
235  , fill( fill )
236 {}
237 
239  double cx, double cy,
240  double rx, double ry,
241  SvgStroke const& stroke,
242  SvgFill const& fill
243 )
244  : SvgEllipse( SvgPoint( cx, cy ), rx, ry, stroke, fill )
245 {}
246 
247 // -------------------------------------------------------------
248 // Members
249 // -------------------------------------------------------------
250 
252 {
253  return {
254  SvgPoint( center.x - rx, center.y - ry ),
255  SvgPoint( center.x + rx, center.y + ry )
256  };
257 }
258 
259 void SvgEllipse::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
260 {
262  out << "<ellipse";
263 
264  if( ! id.empty() ) {
265  out << svg_attribute( "id", id );
266  }
267 
268  out << svg_attribute( "cx", center.x + options.offset_x );
269  out << svg_attribute( "cy", center.y + options.offset_y );
270  out << svg_attribute( "rx", rx );
271  out << svg_attribute( "ry", ry );
272 
273  stroke.write( out );
274  fill.write( out );
275  transform.write( out );
276  out << " />\n";
277 }
278 
279 // =================================================================================================
280 // Svg Polyline
281 // =================================================================================================
282 
283 // -------------------------------------------------------------
284 // Constructors and Rule of Five
285 // -------------------------------------------------------------
286 
288  SvgStroke const& stroke,
289  SvgFill const& fill
290 )
291  : stroke( stroke )
292  , fill( fill )
293 {}
294 
296  std::vector< SvgPoint > points,
297  SvgStroke const& stroke,
298  SvgFill const& fill
299 )
300  : points( points )
301  , stroke( stroke )
302  , fill( fill )
303 {}
304 
305 // -------------------------------------------------------------
306 // Members
307 // -------------------------------------------------------------
308 
309 SvgPolyline& SvgPolyline::add( double x, double y )
310 {
311  return add( SvgPoint( x, y ));
312 }
313 
315 {
316  points.push_back( p );
317  return *this;
318 }
319 
321 {
322  return add( p );
323 }
324 
326 {
327  if( points.size() == 0 ) {
328  return {};
329  // throw std::runtime_error(
330  // "Cannot calculate bounding box of Polyline without any points."
331  // );
332  }
333 
334  auto minmax_x = std::minmax_element(
335  points.begin(), points.end(),
336  []( SvgPoint lhs, SvgPoint rhs ){ return lhs.x < rhs.x; }
337  );
338  auto minmax_y = std::minmax_element(
339  points.begin(), points.end(),
340  []( SvgPoint lhs, SvgPoint rhs ){ return lhs.y < rhs.y; }
341  );
342 
343  return {
344  SvgPoint( minmax_x.first->x, minmax_y.first->y ),
345  SvgPoint( minmax_x.second->x, minmax_y.second->y )
346  };
347 }
348 
349 void SvgPolyline::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
350 {
352  out << "<polyline";
353 
354  if( ! id.empty() ) {
355  out << svg_attribute( "id", id );
356  }
357 
358  out << " points=\"";
359  for( size_t i = 0; i < points.size(); ++i ) {
360  if( i > 0 ) {
361  out << " ";
362  }
363  out << ( points[i].x + options.offset_x ) << ",";
364  out << ( points[i].y + options.offset_y );
365  }
366  out << "\"";
367 
368  stroke.write( out );
369  fill.write( out );
370  transform.write( out );
371  out << " />\n";
372 }
373 
374 // =================================================================================================
375 // Svg Polygon
376 // =================================================================================================
377 
378 // -------------------------------------------------------------
379 // Constructors and Rule of Five
380 // -------------------------------------------------------------
381 
383  SvgStroke const& stroke,
384  SvgFill const& fill
385 )
386  : stroke( stroke )
387  , fill( fill )
388 {}
389 
391  std::vector< SvgPoint > const& points,
392  SvgStroke const& stroke,
393  SvgFill const& fill
394 )
395  : points( points )
396  , stroke( stroke )
397  , fill( fill )
398 {}
399 
400 // -------------------------------------------------------------
401 // Members
402 // -------------------------------------------------------------
403 
404 SvgPolygon& SvgPolygon::add( double x, double y )
405 {
406  return add( SvgPoint( x, y ));
407 }
408 
410 {
411  points.push_back( p );
412  return *this;
413 }
414 
416 {
417  return add( p );
418 }
419 
421 {
422  if( points.size() == 0 ) {
423  return {};
424  // throw std::runtime_error(
425  // "Cannot calculate bounding box of Polygon without any points."
426  // );
427  }
428 
429  auto minmax_x = std::minmax_element(
430  points.begin(), points.end(),
431  []( SvgPoint lhs, SvgPoint rhs ){ return lhs.x < rhs.x; }
432  );
433  auto minmax_y = std::minmax_element(
434  points.begin(), points.end(),
435  []( SvgPoint lhs, SvgPoint rhs ){ return lhs.y < rhs.y; }
436  );
437 
438  return {
439  SvgPoint( minmax_x.first->x, minmax_y.first->y ),
440  SvgPoint( minmax_x.second->x, minmax_y.second->y )
441  };
442 }
443 
444 void SvgPolygon::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
445 {
447  out << "<polygon";
448 
449  if( ! id.empty() ) {
450  out << svg_attribute( "id", id );
451  }
452 
453  out << " points=\"";
454  for( size_t i = 0; i < points.size(); ++i ) {
455  if( i > 0 ) {
456  out << " ";
457  }
458  out << ( points[i].x + options.offset_x ) << ",";
459  out << ( points[i].y + options.offset_y );
460  }
461  out << "\"";
462 
463  stroke.write( out );
464  fill.write( out );
465  transform.write( out );
466  out << " />\n";
467 }
468 
469 // =================================================================================================
470 // Svg Path
471 // =================================================================================================
472 
473 // -------------------------------------------------------------
474 // Constructors and Rule of Five
475 // -------------------------------------------------------------
476 
478  SvgStroke const& stroke,
479  SvgFill const& fill
480 )
481  : stroke( stroke )
482  , fill( fill )
483 {}
484 
486  std::vector< std::string > const& elements,
487  SvgStroke const& stroke,
488  SvgFill const& fill
489 )
490  : elements(elements)
491  , stroke( stroke )
492  , fill( fill )
493 {}
494 
495 // -------------------------------------------------------------
496 // Members
497 // -------------------------------------------------------------
498 
499 SvgPath& SvgPath::add( std::string elem )
500 {
501  elements.push_back( elem );
502  return *this;
503 }
504 
505 SvgPath& SvgPath::operator <<( std::string elem )
506 {
507  return add( elem );
508 }
509 
511 {
512  // TODO
513  return {};
514 }
515 
516 void SvgPath::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
517 {
518  (void) options;
519 
521  out << "<path";
522 
523  if( ! id.empty() ) {
524  out << svg_attribute( "id", id );
525  }
526 
527  out << " d=\"";
528  for( size_t i = 0; i < elements.size(); ++i ) {
529  if( i > 0 ) {
530  out << " ";
531  }
532  out << elements[i];
533  }
534  out << "\"";
535 
536  stroke.write( out );
537  fill.write( out );
538  transform.write( out );
539  out << " />\n";
540 }
541 
542 // =================================================================================================
543 // Svg Use
544 // =================================================================================================
545 
547 {
548  // TODO
549  return {};
550 }
551 
552 void SvgUse::write( std::ostream& out, size_t indent, SvgDrawingOptions const& options ) const
553 {
555  out << "<use";
556  out << svg_attribute( "xlink:href", "#" + referenced_id );
557  out << svg_attribute( "x", offset.x + options.offset_x );
558  out << svg_attribute( "y", offset.y + options.offset_y );
559  transform.write( out );
560  out << " />\n";
561 }
562 
563 } // namespace utils
564 } // namespace genesis
genesis::utils::SvgPolygon::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:420
genesis::utils::SvgRect::stroke
SvgStroke stroke
Definition: shapes.hpp:167
genesis::utils::SvgEllipse::center
SvgPoint center
Definition: shapes.hpp:303
genesis::utils::SvgPoint::x
double x
Definition: utils/formats/svg/helper.hpp:58
genesis::utils::SvgPolygon::points
std::vector< SvgPoint > points
Definition: shapes.hpp:443
genesis::utils::SvgCircle::radius
double radius
Definition: shapes.hpp:236
genesis::utils::SvgEllipse
Definition: shapes.hpp:249
genesis::utils::SvgRect::size
SvgSize size
Definition: shapes.hpp:165
genesis::utils::SvgPath::elements
std::vector< std::string > elements
Definition: shapes.hpp:511
genesis::utils::SvgRect::rx
double rx
Definition: shapes.hpp:170
genesis::utils::indent
std::string indent(std::string const &text, std::string const &indentation)
Indent each line of text with indentation and return the result.
Definition: string.cpp:522
genesis::utils::SvgCircle::stroke
SvgStroke stroke
Definition: shapes.hpp:238
genesis::utils::SvgPath::stroke
SvgStroke stroke
Definition: shapes.hpp:513
genesis::utils::SvgCircle::transform
SvgTransform transform
Definition: shapes.hpp:241
genesis::utils::SvgEllipse::SvgEllipse
SvgEllipse(SvgPoint const &center, double rx, double ry, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
Definition: shapes.cpp:225
genesis::utils::SvgPoint::y
double y
Definition: utils/formats/svg/helper.hpp:59
genesis::utils::SvgPath::operator<<
self_type & operator<<(std::string elem)
Definition: shapes.cpp:505
genesis::utils::SvgEllipse::transform
SvgTransform transform
Definition: shapes.hpp:310
genesis::utils::SvgPath::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:516
genesis::utils::SvgPolyline::fill
SvgFill fill
Definition: shapes.hpp:377
genesis::utils::SvgPolyline
Definition: shapes.hpp:318
genesis::utils::SvgPolyline::operator<<
self_type & operator<<(SvgPoint p)
Definition: shapes.cpp:320
genesis::utils::SvgPath
Definition: shapes.hpp:456
shapes.hpp
genesis::utils::SvgPolyline::transform
SvgTransform transform
Definition: shapes.hpp:379
genesis::utils::SvgCircle::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:198
genesis::utils::SvgPolygon::stroke
SvgStroke stroke
Definition: shapes.hpp:445
genesis::utils::SvgLine
Definition: shapes.hpp:48
genesis::utils::SvgUse::transform
SvgTransform transform
Definition: shapes.hpp:581
genesis::utils::SvgDrawingOptions::offset_y
double offset_y
Definition: utils/formats/svg/helper.hpp:205
genesis::utils::SvgRect::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:127
genesis::utils::SvgBox
Definition: utils/formats/svg/helper.hpp:116
genesis::utils::SvgDrawingOptions::offset_x
double offset_x
Definition: utils/formats/svg/helper.hpp:204
genesis::utils::SvgCircle
Definition: shapes.hpp:181
genesis::utils::SvgLine::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:73
genesis::utils::SvgPolyline::add
self_type & add(double x, double y)
Definition: shapes.cpp:309
genesis::utils::SvgLine::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:65
genesis::utils::SvgTransform::write
void write(std::ostream &out) const
Definition: attributes.cpp:304
genesis::utils::SvgPolyline::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:325
genesis::utils::SvgPath::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:510
genesis::utils::SvgPolygon::add
self_type & add(double x, double y)
Definition: shapes.cpp:404
genesis::utils::SvgEllipse::ry
double ry
Definition: shapes.hpp:305
genesis::utils::SvgDocument::indentation_string
static std::string indentation_string
Definition: svg/document.hpp:59
genesis::utils::SvgCircle::center
SvgPoint center
Definition: shapes.hpp:235
genesis::utils::SvgPoint
Definition: utils/formats/svg/helper.hpp:51
genesis::utils::SvgStroke
Definition: attributes.hpp:49
string.hpp
Provides some commonly used string utility functions.
genesis::utils::SvgRect
Definition: shapes.hpp:110
genesis::utils::SvgLine::transform
SvgTransform transform
Definition: shapes.hpp:102
document.hpp
genesis::utils::SvgLine::SvgLine
SvgLine(SvgPoint const &point_1, SvgPoint const &point_2, SvgStroke const &stroke=SvgStroke())
Definition: shapes.cpp:51
genesis::utils::SvgPolyline::points
std::vector< SvgPoint > points
Definition: shapes.hpp:374
genesis::utils::SvgPolygon
Definition: shapes.hpp:387
genesis::utils::SvgLine::stroke
SvgStroke stroke
Definition: shapes.hpp:101
genesis::utils::SvgUse::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:546
genesis::utils::SvgEllipse::fill
SvgFill fill
Definition: shapes.hpp:308
genesis::utils::SvgPolyline::SvgPolyline
SvgPolyline(SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
Definition: shapes.cpp:287
genesis::utils::SvgRect::ry
double ry
Definition: shapes.hpp:171
genesis::utils::SvgRect::fill
SvgFill fill
Definition: shapes.hpp:168
genesis::utils::SvgUse::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:552
genesis::utils::SvgRect::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:132
genesis::utils::SvgPolygon::fill
SvgFill fill
Definition: shapes.hpp:446
genesis::utils::SvgCircle::fill
SvgFill fill
Definition: shapes.hpp:239
genesis
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Definition: placement/formats/edge_color.cpp:42
genesis::utils::SvgPolygon::SvgPolygon
SvgPolygon(SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
Definition: shapes.cpp:382
genesis::utils::SvgFill
Definition: attributes.hpp:131
genesis::utils::svg_attribute
std::string svg_attribute(std::string const &name, T const &value, std::string const &unit="")
Definition: utils/formats/svg/helper.hpp:218
genesis::utils::SvgPath::SvgPath
SvgPath(SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
Definition: shapes.cpp:477
genesis::utils::SvgFill::write
void write(std::ostream &out) const
Definition: attributes.cpp:163
genesis::utils::SvgEllipse::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:251
genesis::utils::SvgCircle::bounding_box
SvgBox bounding_box() const
Definition: shapes.cpp:190
genesis::utils::SvgRect::SvgRect
SvgRect(SvgPoint const &position, SvgSize const &size, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
Definition: shapes.cpp:100
genesis::utils::SvgSize
Definition: utils/formats/svg/helper.hpp:66
genesis::utils::SvgCircle::SvgCircle
SvgCircle(SvgPoint const &center, double radius, SvgStroke const &stroke=SvgStroke(), SvgFill const &fill=SvgFill())
Definition: shapes.cpp:165
genesis::utils::SvgPath::add
self_type & add(std::string elem)
Definition: shapes.cpp:499
genesis::utils::SvgPath::fill
SvgFill fill
Definition: shapes.hpp:514
genesis::utils::SvgPolygon::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:444
genesis::utils::SvgPolygon::operator<<
self_type & operator<<(SvgPoint p)
Definition: shapes.cpp:415
genesis::utils::SvgLine::point_2
SvgPoint point_2
Definition: shapes.hpp:100
genesis::utils::repeat
std::string repeat(std::string const &word, size_t times)
Take a string and repeat it a given number of times.
Definition: string.cpp:758
genesis::utils::SvgPath::transform
SvgTransform transform
Definition: shapes.hpp:516
genesis::utils::SvgEllipse::stroke
SvgStroke stroke
Definition: shapes.hpp:307
genesis::utils::SvgLine::point_1
SvgPoint point_1
Definition: shapes.hpp:99
genesis::utils::SvgSize::width
double width
Definition: utils/formats/svg/helper.hpp:73
genesis::utils::SvgEllipse::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:259
genesis::utils::SvgStroke::write
void write(std::ostream &out) const
Definition: attributes.cpp:79
genesis::utils::SvgPolygon::transform
SvgTransform transform
Definition: shapes.hpp:448
genesis::utils::SvgUse::referenced_id
std::string referenced_id
Definition: shapes.hpp:579
genesis::utils::SvgSize::height
double height
Definition: utils/formats/svg/helper.hpp:74
genesis::utils::SvgRect::transform
SvgTransform transform
Definition: shapes.hpp:173
genesis::utils::SvgDrawingOptions
Definition: utils/formats/svg/helper.hpp:202
genesis::utils::SvgRect::position
SvgPoint position
Definition: shapes.hpp:164
genesis::utils::SvgEllipse::rx
double rx
Definition: shapes.hpp:304
genesis::utils::SvgPolyline::write
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
Definition: shapes.cpp:349
genesis::utils::SvgUse::offset
SvgPoint offset
Definition: shapes.hpp:580
genesis::utils::SvgPolyline::stroke
SvgStroke stroke
Definition: shapes.hpp:376