mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-27 04:38:12 +08:00
Use f64 type in layout
This commit is contained in:
committed by
Keavon Chambers
parent
e8058513f3
commit
420314d0b3
@@ -108,7 +108,7 @@ impl Attribute {
|
||||
}
|
||||
|
||||
/// Extracts a percentage from this attribute's value.
|
||||
fn percent(self) -> f32 {
|
||||
fn percent(self) -> f64 {
|
||||
match self.dimension() {
|
||||
Dimension::Percent(value) => value,
|
||||
_ => panic!("expected a percentage"),
|
||||
@@ -151,8 +151,8 @@ pub enum AttributeValue {
|
||||
pub struct LayoutAttributes {
|
||||
pub width: Dimension,
|
||||
pub height: Dimension,
|
||||
pub x_align: f32,
|
||||
pub y_align: f32,
|
||||
pub x_align: f64,
|
||||
pub y_align: f64,
|
||||
pub spacing: BoxDimensions,
|
||||
pub padding: BoxDimensions,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user