grow-layout

1.1.2 • Public • Published

grow-layout

Parameterized grow/shrink function for CraftML

Usage

<craft>
    <craft name="grow-layout" module="grow-layout"/>
    <grow-layout></grow-layout>
</craft>

Parameters

  • factor: adjusts overall scale of growth / shrinkage
  • xfactor: adjusts scale of growth / shrinkage on x-axis
  • yfactor: adjusts scale of growth / shrinkage on y-axis
  • zfactor: adjusts scale of growth / shrinkage on z-axis

Example

<craft>
    <craft name="grow-layout" module="grow-layout"/>
    
    <col spacing="10">
        <row spacing="3">
            <grow-layout>
                <repeat n="4">
                    <cube></cube>
                </repeat>
            </grow-layout> 
        </row>
        
        <row spacing="3">
            <grow-layout factor="0.9">
                <repeat n="4">
                    <cube></cube>
                </repeat>
            </grow-layout> 
        </row>
    </col>

</craft>

example

Readme

Keywords

Package Sidebar

Install

npm i grow-layout

Weekly Downloads

3

Version

1.1.2

License

MIT

Last publish

Collaborators

  • calebhsu