mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
Fix naming convention
This commit is contained in:
parent
69d0d9e26d
commit
c8d45148f1
@ -478,7 +478,6 @@ pub fn commit(
|
||||
if remaining < Abs::zero() && shrinkability > Abs::zero() {
|
||||
// Attempt to reduce the length of the line, using shrinkability.
|
||||
justification_ratio = (remaining / shrinkability).max(-1.0);
|
||||
|
||||
remaining = (remaining + shrinkability).min(Abs::zero());
|
||||
} else if line.justify && fr.is_zero() {
|
||||
// Attempt to increase the length of the line, using stretchability.
|
||||
|
@ -244,9 +244,9 @@ cast! {
|
||||
Microtype,
|
||||
self => Value::Dict(self.into()),
|
||||
mut dict: Dict => {
|
||||
let max_retract = dict.take("max_retract")?.cast()?;
|
||||
let max_expand = dict.take("max_expand")?.cast()?;
|
||||
dict.finish(&["max_retract", "max_expand"])?;
|
||||
let max_retract = dict.take("max-retract")?.cast()?;
|
||||
let max_expand = dict.take("max-expand")?.cast()?;
|
||||
dict.finish(&["max-retract", "max-expand"])?;
|
||||
Self { max_retract, max_expand }
|
||||
},
|
||||
}
|
||||
@ -254,8 +254,8 @@ cast! {
|
||||
impl From<Microtype> for Dict {
|
||||
fn from(microtype: Microtype) -> Self {
|
||||
dict! {
|
||||
"max_retract" => microtype.max_retract,
|
||||
"max_expand" => microtype.max_expand,
|
||||
"max-retract" => microtype.max_retract,
|
||||
"max-expand" => microtype.max_expand,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user