- <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":haze-glass/commonMain"><div class="symbol monospace"><span class="token keyword">fun </span><a href="light-position.html"><span class="token function">lightPosition</span></a><span class="token punctuation">(</span><span class="parameters "><span class="parameter ">alignment<span class="token operator">: </span><a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.html">Alignment</a></span></span><span class="token punctuation">)</span></div><p class="paragraph">Aligns the virtual light within each material's measured bounds.</p><p class="paragraph">The default is <a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.Companion.html#center">Alignment.Center</a>. Logical start and end alignments use the node's current layout direction, and a shared Style is resolved independently for each consuming node's size. <a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/BiasAlignment.html">BiasAlignment</a> and <a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/BiasAbsoluteAlignment.html">BiasAbsoluteAlignment</a> require finite horizontal and vertical biases; finite values outside <code class="lang-kotlin">-1f..1f</code> intentionally place the light beyond the material. Other <a href="https://developer.android.com/reference/kotlin/androidx/compose/ui/Alignment.html">Alignment</a> implementations retain their own contract and are not evaluated during Style construction.</p></div></div>
0 commit comments