Skip to content

Releases: mm21/glyphsynth

0.6.1

29 Nov 07:21
Compare
Choose a tag to compare

Glyph variant exporting

  • Automatically set glyph class in subclassed BaseVariantFactory from type parameter
    • Avoids redundancy of user setting glyph_cls

0.6.0

29 Nov 01:24
Compare
Choose a tag to compare

Glyph API

  • Aggregate glyph params and SVG properties based on whether field is non-None or explicitly set
    • Preserves param defaults while allowing to "unset" fields by explicitly setting to None

0.5.1

29 Nov 00:48
Compare
Choose a tag to compare

Drawing API

  • Enable insert_glyph() on Group in addition to BaseGlyph

0.5.0

29 Nov 00:18
Compare
Choose a tag to compare

Glyph API

  • Added more specific type hints for SVG property values
  • Use default_params or default_properties to instantiate default params or properties respectively on BaseGlyph subclass
  • Improved gradient creation via create_linear_gradient() and create_radial_gradient(), defined on BaseGlyph and Group

0.3.0

25 Nov 07:41
Compare
Choose a tag to compare

Interface changes

  • Added proxy objects for svgwrite elements: Rect, Circle, etc
    • Provide type-safe APIs and conveniences for working with gradients, groups, etc
  • Enable creating elements on a Group instance, nesting created elements under the group

0.2.0

23 Nov 09:11
Compare
Choose a tag to compare

API changes

  • draw_*() APIs now take PaintingProperties instance instead of kwargs
    • Enables better type checking and autocompletion