class_docstr: Svg related methods
class_docstr_tok: ["Svg","related","methods"]
docstr: Return a css snippet containing all stroke style options
docstr_tok: ["Return","a","css","snippet","containing","all","stroke","style","options"]
code: def get_strokes(self):
      """Return a css snippet containing all stroke style options"""
  
      def stroke_dict_to_css(stroke, i=None):
          """Return a css style for the given option"""
          css = [
              "%s.series%s {\n"
              % (self.id, ".serie-%d" % i if i is not None else "")
          ]
          for key in (
              "width",
              "linejoin",
              "linecap",
              "dasharray",
              "dashoffset",
          ):
              if stroke.get(key):
                  css.append("  stroke-%s: %s;\n" % (key, stroke[key]))
          css.append("}")
          return "\n".join(css)
  
      css = []
      if self.graph.stroke_style is not None:
          css.append(stroke_dict_to_css(self.graph.stroke_style))
      for serie in self.graph.series:
          if serie.stroke_style is not None:
              css.append(
                  stroke_dict_to_css(serie.stroke_style, serie.index)
              )
  
      for secondary_serie in self.graph.secondary_series:
          if secondary_serie.stroke_style is not None:
              css.append(
                  stroke_dict_to_css(
                      secondary_serie.stroke_style,
                      secondary_serie.index,
                  )
              )
      return "\n".join(css)
  
imports: from __future__ import division
  import io
  import json
  import os
  from datetime import date, datetime
  from math import pi
  from numbers import Number
  from urllib.parse import quote_plus
  from pygal import __version__
  from pygal.etree import etree
  from pygal.util import coord_abs_project, coord_diff, coord_dual, coord_format, coord_project, minify_css, template
label_desc: Use image node_id 15 for calling the Svg obj's underlying member method code with example usage: obj.get_strokes() and returns: str, str