Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@rudrankriyam rudrankriyam released this 25 Feb 11:34

MeshingKit 2.0 Release Notes

API Improvements

New Template System

  • Introduced a new protocol-based gradient template system
  • Added support for custom gradient templates through the CustomGradientTemplate struct
  • Maintained backward compatibility with existing size-specific methods

Simplified API Access

  • Added clean dot syntax for accessing predefined templates:
    // Before
    MeshingKit.gradientSize3(template: .auroraBorealis)
    
    // Now
    MeshingKit.gradient(template: .size3(.auroraBorealis))

New Namespace Organization

  • Introduced PredefinedTemplate for better type safety and organization
  • Templates are now categorized by size (size2, size3, size4)

Custom Template Support

  • Added ability to create custom gradient templates:
    let customTemplate = CustomGradientTemplate(name: "Custom", size: 4, ...)
    MeshingKit.gradient(template: customTemplate)

Other Improvements

  • Better documentation with more examples
  • Improved type safety across the API
  • Maintained all existing gradient templates and animations

Migration Guide

Existing code using size-specific methods (gradientSize2, gradientSize3, gradientSize4) will continue to work. To adopt the new API style, update your template references to use the new dot syntax.