@@ -3,17 +3,16 @@ use ecow::EcoString;
33use crate :: foundations:: { func, scope, ty, Repr } ;
44use crate :: layout:: { Axis , Side } ;
55
6- /// The four directions into which content can be laid out.
6+ /// コンテンツをレイアウトできる4つの向き。
77///
8- /// Possible values are:
9- /// - `{ltr}`: Left to right.
10- /// - `{rtl}`: Right to left.
11- /// - `{ttb}`: Top to bottom.
12- /// - `{btt}`: Bottom to top.
8+ /// 取りうる値は以下の通りです。
9+ /// - `{ltr}`: 左から右。
10+ /// - `{rtl}`: 右から左。
11+ /// - `{ttb}`: 上から下。
12+ /// - `{btt}`: 下から上。
1313///
14- /// These values are available globally and
15- /// also in the direction type's scope, so you can write either of the following
16- /// two:
14+ /// これらの値はグローバルスコープでも、direction型のスコープでも用いることができます。
15+ /// したがって、以下の2つのどちらでも書くことができます。
1716/// ```example
1817/// #stack(dir: rtl)[A][B][C]
1918/// #stack(dir: direction.rtl)[A][B][C]
@@ -50,8 +49,7 @@ impl Dir {
5049 pub const TTB : Self = Self :: TTB ;
5150 pub const BTT : Self = Self :: BTT ;
5251
53- /// The axis this direction belongs to, either `{"horizontal"}` or
54- /// `{"vertical"}`.
52+ /// このdirectionが属する軸。`{"horizontal"}`か`{"vertical"}`のいずれかになります。
5553 ///
5654 /// ```example
5755 /// #ltr.axis() \
@@ -65,7 +63,7 @@ impl Dir {
6563 }
6664 }
6765
68- /// The start point of this direction, as an alignment.
66+ /// このdirectionの始点をalignmentとして返します。
6967 ///
7068 /// ```example
7169 /// #ltr.start() \
@@ -83,7 +81,7 @@ impl Dir {
8381 }
8482 }
8583
86- /// The end point of this direction, as an alignment.
84+ /// このdirectionの終点をalignmentとして返します。
8785 ///
8886 /// ```example
8987 /// #ltr.end() \
@@ -101,7 +99,7 @@ impl Dir {
10199 }
102100 }
103101
104- /// The inverse direction.
102+ /// 逆の向き。
105103 ///
106104 /// ```example
107105 /// #ltr.inv() \
0 commit comments