ProtectedbackgroundThe decoded background picture, once the render's load pass has fetched it.
Child nodes.
Original props passed to the constructor before any modifications.
OptionalkeyUnique node identifier.
Optional ReadonlynameNode type name.
The Yoga layout engine node.
Current props including defaults and inherited values.
Protected_Renders the image with correct sizing, clipping, and positioning. Handles object-fit, object-position, and visual effects like saturation.
ProtectedappendAppends a child node at the specified index.
Child node to append.
Index to insert child at
ProtectedapplyApplies node type-specific default values after inheritance.
ProtectedblendThe blend mode this node composites with, or an empty string for the ordinary source-over.
normal is the default and means exactly source-over, so it is not worth an offscreen.
ProtectedfilterThe CSS filter chain this node draws through, or an empty string for none.
saturate came first and stays a shorthand for the same machinery, so it leads the chain and
filter follows — the order they would appear in if the shorthand were written out.
Performs final layout adjustments recursively after the main layout calculation.
Whether any node was marked as dirty during finalization.
The in-flight load, starting one if nothing has asked yet.
Fetches and decodes the source, then tells Yoga what proportions it has.
cache is scoped to one render, so the same URL appearing on several nodes is fetched once.
Safe to call more than once: the first call's promise is returned again rather than a second
fetch being started.
Optionalcache: RenderImageCacheOptionaldiskCacheKeys: Set<string>Fetches this node's background picture, if it has one.
Runs in the same pass as the images, before layout, and through the same cache — so a picture used as one node's background and another's image is fetched once. A failure leaves the node without a picture rather than failing the render, which is what a missing background should do.
Optionalcache: RenderImageCacheOptionaldiskCacheKeys: Set<string>Processes and appends any children passed in the initial props.
Draws this node, through its mask when it has one.
Every component's drawing arrives here — Text, Image, Chart and Grid override
_renderContent rather than this — so masking one node type means masking all of them.
The two kinds of mask are applied differently because they are different operations. A shape or
path clips, which is a yes-or-no test per pixel and costs nothing but a save/restore. A
gradient cannot: its whole purpose is the answers in between, so the node is composited through
one instead. Both are applied to the node's layout box, before its own transform, which is
what keeps the two consistent with each other.
dither is held on the context around all of it, so the node's mask, background, content and
children are drawn with one answer and whatever draws next is left with its own.
ProtectedresolveProtectedsetApplies layout properties to the Yoga node.
Box properties containing layout values
Tells this node which moment of the render it is being drawn for.
ProtectedupdateHook for subclasses to update layout based on computed size.
Renders images with configurable sizing, positioning, and effects. Supports object-fit modes, positioning, border radius, and saturation filters.