newsmemory-ios-sdk/Frameworks/RNSVG.xcframework/ios-arm64/Headers/RNSVGSvgView.h

76 lines
2.3 KiB
C
Raw Permalink Normal View History

2024-05-02 15:08:24 +00:00
/**
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
2024-11-20 14:28:34 +00:00
#import "RNSVGUIKit.h"
2024-05-02 15:08:24 +00:00
#import "RNSVGContainer.h"
2024-11-20 14:28:34 +00:00
#import "RNSVGPainter.h"
2024-05-02 15:08:24 +00:00
#import "RNSVGVBMOS.h"
@class RNSVGNode;
2024-11-20 14:28:34 +00:00
@class RNSVGMarker;
@class RNSVGMask;
@class RNSVGFilter;
2024-05-02 15:08:24 +00:00
2024-11-20 14:28:34 +00:00
@interface RNSVGSvgView : RNSVGView <RNSVGContainer>
2024-05-02 15:08:24 +00:00
@property (nonatomic, strong) RNSVGLength *bbWidth;
@property (nonatomic, strong) RNSVGLength *bbHeight;
@property (nonatomic, assign) CGFloat minX;
@property (nonatomic, assign) CGFloat minY;
@property (nonatomic, assign) CGFloat vbWidth;
@property (nonatomic, assign) CGFloat vbHeight;
@property (nonatomic, strong) NSString *align;
@property (nonatomic, assign) RNSVGVBMOS meetOrSlice;
@property (nonatomic, assign) BOOL responsible;
@property (nonatomic, assign) BOOL active;
@property (nonatomic, assign) CGRect boundingBox;
@property (nonatomic, assign) CGAffineTransform initialCTM;
@property (nonatomic, assign) CGAffineTransform invInitialCTM;
@property (nonatomic, assign) CGAffineTransform viewBoxTransform;
2024-11-20 14:28:34 +00:00
@property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets;
2024-05-02 15:08:24 +00:00
/**
* define <ClipPath></ClipPath> content as clipPath template.
*/
- (void)defineClipPath:(__kindof RNSVGNode *)clipPath clipPathName:(NSString *)clipPathName;
- (RNSVGNode *)getDefinedClipPath:(NSString *)clipPathName;
2024-11-20 14:28:34 +00:00
- (void)defineTemplate:(__kindof RNSVGNode *)definedTemplate templateName:(NSString *)templateName;
2024-05-02 15:08:24 +00:00
- (RNSVGNode *)getDefinedTemplate:(NSString *)templateName;
- (void)definePainter:(RNSVGPainter *)painter painterName:(NSString *)painterName;
- (RNSVGPainter *)getDefinedPainter:(NSString *)painterName;
2024-11-20 14:28:34 +00:00
- (void)defineMarker:(RNSVGMarker *)marker markerName:(NSString *)markerName;
- (RNSVGMarker *)getDefinedMarker:(NSString *)markerName;
2024-05-02 15:08:24 +00:00
2024-11-20 14:28:34 +00:00
- (void)defineMask:(RNSVGMask *)mask maskName:(NSString *)maskName;
2024-05-02 15:08:24 +00:00
2024-11-20 14:28:34 +00:00
- (RNSVGMask *)getDefinedMask:(NSString *)maskName;
2024-05-02 15:08:24 +00:00
2024-11-20 14:28:34 +00:00
- (void)defineFilter:(RNSVGFilter *)filter filterName:(NSString *)filterName;
2024-05-02 15:08:24 +00:00
2024-11-20 14:28:34 +00:00
- (RNSVGFilter *)getDefinedFilter:(NSString *)filterName;
2024-05-02 15:08:24 +00:00
2024-11-20 14:28:34 +00:00
- (NSString *)getDataURLWithBounds:(CGRect)bounds;
2024-05-02 15:08:24 +00:00
- (CGRect)getContextBounds;
- (void)drawRect:(CGRect)rect;
- (void)drawToContext:(CGContextRef)context withRect:(CGRect)rect;
- (CGAffineTransform)getViewBoxTransform;
@end