@@ -93,24 +93,25 @@ use crate::visualize::{Paint, Stroke};
9393///
9494/// - [`fill`]($grid.fill)は全てのセルに背景を設定します。
9595/// - [`align`]($grid.align)はセルの配置方法を変更します。
96- /// - [`inset`]($grid.inset)はオプションで各セル内のパディングを追加します 。
96+ /// - [`inset`]($grid.inset)は各セル内に任意のパディングを追加します 。
9797/// - [`stroke`]($grid.stroke)は特定のストロークでグリッドの線をオプションで有効化します。
9898///
9999/// もし単一セルに対して上記のオプションの1つを上書きしなければならない場合は、[`grid.cell`]($grid.cell)要素が使用できます。
100100/// 同様に、個々のグリッドの線も[`grid.hline`]($grid.hline)要素や[`grid.vline`]($grid.vline)要素を用いて上書きできます。
101101///
102- /// Alternatively, if you need the appearance options to depend on a cell's position (column and row), you may specify a function to `fill` or `align` of the form `(column, row) => value`.
103- /// [`grid.cell`]($grid.cell)に対してもshowルールを使用できます。 - see that element's examples or the examples below for more information.
102+ /// 別の方法として、外観オプションをセルの位置(列と行)に依存させる必要がある場合、`fill`や`align`に`(column, row) => value`という形式の関数を指定できます。
103+ /// [`grid.cell`]($grid.cell)に対してもshowルールを使用できます。
104+ /// 詳細はその要素の例や以下の例を参照してください。
104105///
105- /// スタイル設定の多くはsetルールとshowルールを用いることを推奨します。 is recommended, as it keeps the grid's or table's actual usages clean and easy to read.
106- /// It also allows you to easily change the grid's appearance in one place.
106+ /// グリッドやテーブルの実際の使い方が簡素かつ読みやすくなるため、基本的にスタイル設定にはsetルールとshowルールを用いることを推奨します。
107+ /// これによって、グリッドの外観を1か所で簡単に変更もできます。
107108///
108109/// ## ストロークのスタイル設定の優先順位
109110/// グリッドセルのストローク指定方法は3種類あります。
110111/// [`{grid.cell}`の`stroke`フィールド]($grid.cell.stroke)を用いる方法、[`{grid.hline}`]($grid.hline)と[`{grid.vline}`]($grid.vline)を用いる方法、[`{grid}`の`stroke`フィールド]($grid.stroke)を用いる方法です。
111112/// これらの設定が複数存在し、競合する場合、`hline`と`vline`の設定が最優先となり、続いて優先されるのが`cell`の設定で、最後に`grid`の設定が適用されます。
112113///
113- /// Furthermore, strokes of a repeated grid header or footer will take precedence over regular cell strokes.
114+ /// さらに、グリッドの繰り返されたヘッダーおよびフッターのストロークは、通常のセルのストロークよりも優先されます。
114115#[ elem( scope, Show ) ]
115116pub struct GridElem {
116117 /// 列の数。
@@ -264,7 +265,7 @@ pub struct GridElem {
264265
265266 /// The contents of the grid cells, plus any extra grid lines specified with the [`grid.hline`]($grid.hline) and [`grid.vline`]($grid.vline) elements.
266267 ///
267- /// The cells are populated in row-major order.
268+ /// セルは行優先で埋められます。
268269 #[ variadic]
269270 pub children : Vec < GridChild > ,
270271}
0 commit comments