18 throw std::invalid_argument(
19 "faithful_capture node requires capture_asset_id");
33 auto controls = std::move(
image.children);
34 image.children.clear();
35 for (
auto& child : controls)
37 image.children.push_back(std::move(child));
38 image.alternate_frames.clear();
45 node = std::move(*
image);
Normalized intermediate representation (IR) for imported designs: the IR value model (style,...
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
@ faithful_capture
Definition design_ir.hpp:452
@ normal
Definition design_ir.hpp:450
@ none
Definition design_ir.hpp:259
std::optional< IRNode > lower_faithful_capture_to_image(const IRNode &node)
Canonical lowering from an authoritative browser-capture node to the ordinary image-node contract sha...
Definition design_capture_lowering.hpp:13
void lower_faithful_captures_in_place(IRNode &node)
Definition design_capture_lowering.hpp:43
@ image
Definition design_fidelity.hpp:37
Definition design_ir.hpp:614
std::optional< std::string > capture_asset_id
Asset id (into IRAssetManifest) of the browser screenshot backing when render_mode == faithful_captur...
Definition design_ir.hpp:673
std::string type
Definition design_ir.hpp:615
NodeRenderMode render_mode
How this node materializes.
Definition design_ir.hpp:666
std::vector< IRNode > children
Definition design_ir.hpp:636
std::vector< IRNode > alternate_frames
Alternate states of a faithful_svg node (multi-state capture).
Definition design_ir.hpp:691