RNSVGNode Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | RNSVGNode.h |
Overview
- RNSVG nodes are implemented as base UIViews. They should be implementation for all basic *interfaces for all non-defination nodes.
– renderLayerTo:
renderTo will take opacity into account and draw renderLayerTo off-screen if there is opacity specified, then composite that onto the context. renderLayerTo always draws at opacity=1.
- (void)renderLayerTo:(CGContextRef)contextDiscussion
renderTo will take opacity into account and draw renderLayerTo off-screen if there is opacity specified, then composite that onto the context. renderLayerTo always draws at opacity=1.
Declared In
RNSVGNode.h
– clip:
clip node by clipPath or clipPathRef.
- (void)clip:(CGContextRef)contextDiscussion
clip node by clipPath or clipPathRef.
Declared In
RNSVGNode.h
– getPath:
getPath will return the path inside node as a ClipPath.
- (CGPathRef)getPath:(CGContextRef)contextDiscussion
getPath will return the path inside node as a ClipPath.
Declared In
RNSVGNode.h
– hitTest:withEvent:withTransform:
run hitTest
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event withTransform:(CGAffineTransform)transfromDiscussion
run hitTest
Declared In
RNSVGNode.h
– saveDefinition
save element`s defination into svg element.
- (void)saveDefinitionDiscussion
save element`s defination into svg element.
Declared In
RNSVGNode.h
– mergeProperties:mergeList:
just for template node to merge target node`s properties into owned properties
- (void)mergeProperties:(__kindof RNSVGNode *)target mergeList:(NSArray<NSString*> *)mergeListDiscussion
just for template node to merge target node`s properties into owned properties
Declared In
RNSVGNode.h
– resetProperties
just for template node to reset all owned properties once after rendered.
- (void)resetPropertiesDiscussion
just for template node to reset all owned properties once after rendered.
Declared In
RNSVGNode.h