1 unstable release

new 0.34.0 Apr 24, 2025

#3 in #immediately

41 downloads per month

Apache-2.0

135KB
2.5K SLoC

dc_layout crate

This crate provides layout functionalities for DesignCompose.

Functionality

The dc_layout crate is responsible for:

  • Calculating the position and size of elements in a design.
  • Managing the layout of views and components.
  • Converting design specifications into a format that can be used for rendering.

Usage

This crate is primarily used internally by DesignCompose for calculating layout.

Dependencies

This crate depends on the following crates:

  • dc_bundle: Used to hold the design document structures of a design.
  • taffy: Used to perform the layout computation.

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

Dependencies

~3.5–5.5MB
~103K SLoC