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)context

Discussion

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)context

Discussion

clip node by clipPath or clipPathRef.

Declared In

RNSVGNode.h

– getPath:

getPath will return the path inside node as a ClipPath.

- (CGPathRef)getPath:(CGContextRef)context

Discussion

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)transfrom

Discussion

run hitTest

Declared In

RNSVGNode.h

– saveDefinition

save element`s defination into svg element.

- (void)saveDefinition

Discussion

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*> *)mergeList

Discussion

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)resetProperties

Discussion

just for template node to reset all owned properties once after rendered.

Declared In

RNSVGNode.h