Skip to content

Commit

Permalink
Document Dimension::Points as being abstract units rather than typogr…
Browse files Browse the repository at this point in the history
…aphic points (fixes DioxusLabs#236)
  • Loading branch information
nicoburns committed Nov 28, 2022
1 parent 1d62a71 commit ad29af6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,8 @@ pub enum Dimension {
Undefined,
/// The dimension should be automatically computed
Auto,
/// The dimension is stored in [points](https://en.wikipedia.org/wiki/Point_(typography))
///
/// Each point is about 0.353 mm in size.
/// Points are abstract absolute units. Users of Taffy may define what they correspond
/// to in their application (pixels, logical pixels, mm, etc) as they see fit.
Points(f32),
/// The dimension is stored in percentage relative to the parent item.
Percent(f32),
Expand Down

0 comments on commit ad29af6

Please sign in to comment.