applyShapeProps() — react Function Reference
Architecture documentation for the applyShapeProps() function in ReactFiberConfigART.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 629950fb_b07f_5178_57fc_fab4a2f9a499["applyShapeProps()"] 18cde195_5800_e07a_4f5e_1af7f71a810d["ReactFiberConfigART.js"] 629950fb_b07f_5178_57fc_fab4a2f9a499 -->|defined in| 18cde195_5800_e07a_4f5e_1af7f71a810d 8059b2ed_0e5c_78b6_bb11_5c9e7fc9b67d["applyRenderableNodeProps()"] 629950fb_b07f_5178_57fc_fab4a2f9a499 -->|calls| 8059b2ed_0e5c_78b6_bb11_5c9e7fc9b67d 211956bf_1315_6470_f1ff_5505d7cabdc2["childrenAsString()"] 629950fb_b07f_5178_57fc_fab4a2f9a499 -->|calls| 211956bf_1315_6470_f1ff_5505d7cabdc2 style 629950fb_b07f_5178_57fc_fab4a2f9a499 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-art/src/ReactFiberConfigART.js lines 214–233
function applyShapeProps(instance, props, prevProps = {}) {
applyRenderableNodeProps(instance, props, prevProps);
const path = props.d || childrenAsString(props.children);
const prevDelta = instance._prevDelta;
const prevPath = instance._prevPath;
if (
path !== prevPath ||
path.delta !== prevDelta ||
prevProps.height !== props.height ||
prevProps.width !== props.width
) {
instance.draw(path, props.width, props.height);
instance._prevDelta = path.delta;
instance._prevPath = path;
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does applyShapeProps() do?
applyShapeProps() is a function in the react codebase, defined in packages/react-art/src/ReactFiberConfigART.js.
Where is applyShapeProps() defined?
applyShapeProps() is defined in packages/react-art/src/ReactFiberConfigART.js at line 214.
What does applyShapeProps() call?
applyShapeProps() calls 2 function(s): applyRenderableNodeProps, childrenAsString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free