mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Flatten compute module
This commit is contained in:
parent
7fcad452b8
commit
7c12f0c07f
@ -1,5 +1,9 @@
|
|||||||
//! Building blocks for the computational part.
|
//! Building blocks for the computational part.
|
||||||
|
|
||||||
pub mod dict;
|
mod dict;
|
||||||
pub mod scope;
|
mod scope;
|
||||||
pub mod value;
|
mod value;
|
||||||
|
|
||||||
|
pub use dict::*;
|
||||||
|
pub use scope::*;
|
||||||
|
pub use value::*;
|
||||||
|
@ -21,7 +21,7 @@ pub mod prelude {
|
|||||||
pub use primitive::*;
|
pub use primitive::*;
|
||||||
pub use tree::layout_tree as layout;
|
pub use tree::layout_tree as layout;
|
||||||
|
|
||||||
use crate::compute::scope::Scope;
|
use crate::compute::Scope;
|
||||||
use crate::font::SharedFontLoader;
|
use crate::font::SharedFontLoader;
|
||||||
use crate::geom::{Margins, Size};
|
use crate::geom::{Margins, Size};
|
||||||
use crate::style::{LayoutStyle, PageStyle, TextStyle};
|
use crate::style::{LayoutStyle, PageStyle, TextStyle};
|
||||||
|
@ -44,8 +44,7 @@ use std::fmt::Debug;
|
|||||||
use std::future::Future;
|
use std::future::Future;
|
||||||
use std::pin::Pin;
|
use std::pin::Pin;
|
||||||
|
|
||||||
use crate::compute::scope::Scope;
|
use crate::compute::{Scope, Value};
|
||||||
use crate::compute::value::Value;
|
|
||||||
use crate::diagnostic::Diagnostic;
|
use crate::diagnostic::Diagnostic;
|
||||||
use crate::font::SharedFontLoader;
|
use crate::font::SharedFontLoader;
|
||||||
use crate::layout::{Commands, MultiLayout};
|
use crate::layout::{Commands, MultiLayout};
|
||||||
|
@ -16,7 +16,7 @@ pub use spacing::*;
|
|||||||
|
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
use crate::compute::scope::Scope;
|
use crate::compute::Scope;
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
|
||||||
macro_rules! std {
|
macro_rules! std {
|
||||||
|
@ -13,7 +13,7 @@ pub use tokens::*;
|
|||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
|
|
||||||
use crate::color::RgbaColor;
|
use crate::color::RgbaColor;
|
||||||
use crate::compute::dict::DictKey;
|
use crate::compute::DictKey;
|
||||||
use crate::syntax::*;
|
use crate::syntax::*;
|
||||||
use crate::{Feedback, Pass};
|
use crate::{Feedback, Pass};
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ use std::fmt::Debug;
|
|||||||
|
|
||||||
use super::parse;
|
use super::parse;
|
||||||
use crate::color::RgbaColor;
|
use crate::color::RgbaColor;
|
||||||
use crate::compute::dict::DictKey;
|
use crate::compute::DictKey;
|
||||||
use crate::length::Length;
|
use crate::length::Length;
|
||||||
use crate::syntax::*;
|
use crate::syntax::*;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! A prelude for building custom functions.
|
//! A prelude for building custom functions.
|
||||||
|
|
||||||
pub use super::*;
|
pub use super::*;
|
||||||
pub use crate::compute::value::*;
|
pub use crate::compute::*;
|
||||||
pub use crate::layout::prelude::*;
|
pub use crate::layout::prelude::*;
|
||||||
pub use crate::layout::Command::{self, *};
|
pub use crate::layout::Command::{self, *};
|
||||||
pub use crate::layout::Commands;
|
pub use crate::layout::Commands;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
use super::span::{SpanWith, Spanned};
|
use super::span::{SpanWith, Spanned};
|
||||||
use super::{Decoration, Ident, Lit, LitDict};
|
use super::{Decoration, Ident, Lit, LitDict};
|
||||||
use crate::compute::value::Value;
|
use crate::compute::Value;
|
||||||
use crate::layout::LayoutContext;
|
use crate::layout::LayoutContext;
|
||||||
use crate::Feedback;
|
use crate::Feedback;
|
||||||
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
use super::{Expr, Ident, SpanWith, Spanned, SynTree};
|
use super::{Expr, Ident, SpanWith, Spanned, SynTree};
|
||||||
use crate::color::RgbaColor;
|
use crate::color::RgbaColor;
|
||||||
use crate::compute::dict::{DictKey, SpannedEntry};
|
use crate::compute::{DictKey, DictValue, SpannedEntry, Value};
|
||||||
use crate::compute::value::{DictValue, Value};
|
|
||||||
use crate::layout::LayoutContext;
|
use crate::layout::LayoutContext;
|
||||||
use crate::length::Length;
|
use crate::length::Length;
|
||||||
use crate::{DynFuture, Feedback};
|
use crate::{DynFuture, Feedback};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user