Expand description
dc_figma_import fetches a document from Figma and converts nodes from the document
to toolkit_schema Views, which can then be further customized (changing text or style)
and presented in other components that implement logic.
The goal of this crate is to perform the mapping from Figma to the toolkit; it does not provide any kind of UI logic mapping.
Re-exports§
pub use remote_cache::RemoteNodeCache;
Modules§
- animation_
override - This file contains the conversions from the JSON animation specification to the protobuf
animation specification. The JSON structs are defined in
animation_spec_schema.rs. The protobuf structs are generated fromanimations.proto. - animation_
spec_ schema - content_
hash - Content hashing for View diffing and incremental updates.
- http_
client - Shared HTTP client for Figma API calls.
- library_
resolver - Library dependency discovery and resolution.
- meter_
schema toolkit_stylecontains all of the style-related types thattoolkit_schema::Viewuses.- node_
tracker - Tracks top-level node structure for selective re-fetching.
- reaction_
schema - remote_
cache - Persistent cache for remote node responses across poll cycles.
- scalableui_
schema - shader_
schema - tools
Structs§
- Color
- Design
Compose Definition - Design
Compose Definition Header - Document
- Document is used to access and maintain an entire Figma document, including components and image resources. It can be updated if the source document has changed since this structure was created.
- Image
Context Session - Rectangle
- View
- View
Data
Enums§
- Error
- Combined error type for all errors that can occur working with Figma documents.
- Hidden
Node Policy - Node
Query - Proxy
Config
Functions§
- load_
design_ def - A helper method to load a DesignCompose Definition from a file.
- save_
design_ def - A helper method to save serialized figma design docs.