//
//  GSAxisMasterGroup.h
//  GlyphsCore
//
//  Created by Florian Pircher on 17.07.23.
//  Copyright © 2023 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsCore/GlyphsCore.h>

NS_ASSUME_NONNULL_BEGIN

#ifndef GLYPHS_LITE
@interface GSAxisMasterGroup : NSObject

@property (assign, readonly) CGFloat pivotLocation;
@property (strong) NSArray<GSFontMaster *> *masters;
@property (weak, readonly) GSAxis *axis;
@property (nonatomic, readonly) NSString *displayName;

- (instancetype)initWithAxis:(GSAxis *)axis pivotLocation:(CGFloat)pivotLocation masters:(NSArray<GSFontMaster *> *)masters;

+ (NSArray<GSAxisMasterGroup *> *)groupMasters:(NSArray<GSFontMaster *> *)masters byAxis:(GSAxis *)axis;

+ (NSArray *)filterMastersOrGroups:(NSArray *)mastersOrGroups query:(NSString *)query;

@end
#endif

NS_ASSUME_NONNULL_END
