Skip to content

Commit 1fe6112

Browse files
committed
/docs/reference/layout/rotateの翻訳
1 parent fbef551 commit 1fe6112

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

crates/typst-library/src/layout/transform.rs

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ impl Show for Packed<MoveElem> {
4545
}
4646
}
4747

48-
/// Rotates content without affecting layout.
48+
/// レイアウトに影響を与えないコンテンツの回転。
4949
///
50-
/// Rotates an element by a given angle. The layout will act as if the element
51-
/// was not rotated unless you specify `{reflow: true}`.
50+
/// 要素を指定された角度だけ回転させます。
51+
/// `{reflow: true}`を指定しない限り、レイアウトは、その要素が回転していないかのように振る舞います。
5252
///
53-
/// # Example
53+
/// #
5454
/// ```example
5555
/// #stack(
5656
/// dir: ltr,
@@ -61,7 +61,7 @@ impl Show for Packed<MoveElem> {
6161
/// ```
6262
#[elem(Show)]
6363
pub struct RotateElem {
64-
/// The amount of rotation.
64+
/// 回転させる量。
6565
///
6666
/// ```example
6767
/// #rotate(-1.571rad)[Space!]
@@ -70,11 +70,9 @@ pub struct RotateElem {
7070
#[positional]
7171
pub angle: Angle,
7272

73-
/// The origin of the rotation.
73+
/// 回転の中心点。
7474
///
75-
/// If, for instance, you wanted the bottom left corner of the rotated
76-
/// element to stay aligned with the baseline, you would set it to `bottom +
77-
/// left` instead.
75+
/// 例えば、回転した要素の左下隅をベースラインに揃えたままにしたい場合、代わりに`bottom + left`を指定します。
7876
///
7977
/// ```example
8078
/// #set text(spacing: 8pt)
@@ -89,19 +87,18 @@ pub struct RotateElem {
8987
#[default(HAlignment::Center + VAlignment::Horizon)]
9088
pub origin: Alignment,
9189

92-
/// Whether the rotation impacts the layout.
90+
/// 回転がレイアウトに影響を与えるかどうか。
9391
///
94-
/// If set to `{false}`, the rotated content will retain the bounding box of
95-
/// the original content. If set to `{true}`, the bounding box will take the
96-
/// rotation of the content into account and adjust the layout accordingly.
92+
/// `{false}`に設定された場合、回転したコンテンツは元々のコンテンツのバウンディングボックスに留まります。
93+
/// `{true}`に設定された場合、バウンディングボックスはコンテンツの回転を考慮してレイアウトを調整します。
9794
///
9895
/// ```example
9996
/// Hello #rotate(90deg, reflow: true)[World]!
10097
/// ```
10198
#[default(false)]
10299
pub reflow: bool,
103100

104-
/// The content to rotate.
101+
/// 回転させるコンテンツ。
105102
#[required]
106103
pub body: Content,
107104
}

website/translation-status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"/docs/reference/layout/ratio/": "translated",
124124
"/docs/reference/layout/relative/": "translated",
125125
"/docs/reference/layout/repeat/": "translated",
126-
"/docs/reference/layout/rotate/": "untranslated",
126+
"/docs/reference/layout/rotate/": "translated",
127127
"/docs/reference/layout/scale/": "untranslated",
128128
"/docs/reference/layout/skew/": "untranslated",
129129
"/docs/reference/layout/h/": "translated",

0 commit comments

Comments
 (0)