翻訳済み
このページは日本語に翻訳済みです。
direction
コンテンツをレイアウトできる4つの向き。
取りうる値は以下の通りです。
ltr
: 左から右。rtl
: 右から左。ttb
: 上から下。btt
: 下から上。
これらの値はグローバルスコープでも、direction型のスコープでも用いることができます。 したがって、以下の2つのどちらでも書くことができます。
#stack(dir: rtl)[A][B][C]
#stack(dir: direction.rtl)[A][B][C]

定義DefinitionsFunctions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.
Definitions
Functions and types and can have associated definitions. These are accessed by specifying the function or type, followed by a period, and then the definition's name.
axis
このdirectionが属する軸。"horizontal"
か"vertical"
のいずれかになります。
例を表示
#ltr.axis() \
#ttb.axis()

start
このdirectionの始点をalignmentとして返します。
例を表示
#ltr.start() \
#rtl.start() \
#ttb.start() \
#btt.start()

end
このdirectionの終点をalignmentとして返します。
例を表示
#ltr.end() \
#rtl.end() \
#ttb.end() \
#btt.end()
