Home Reference Source
import GridLayout from 'potassium-es/src/style/GridLayout.js'
public class | source

GridLayout

Extends:

Layout → GridLayout

GridLayout implements a subset of the full CSS grid layout.

Container declarations:

  • display grid

  • grid-template 20cm 40cm / 40cm 60cm

  • gap 4cm 4cm 6cm

  • grid-auto-flow: row column

  • grid-auto-columns or grid-auto-rows 20cm

Item declarations:

  • grid-column or grid-row 1 1 / 3 1 / span 2

Constructor Summary

Public Constructor
public

constructor(node: Object3D)

Member Summary

Public Members
public get

isGrid: bool

Method Summary

Public Methods
public

apply()

public
public

Inherited Summary

From class Layout
public get

node: Object3D

public abstract

apply()

Runs the layout algorithm

Public Constructors

public constructor(node: Object3D) source

Override:

Layout#constructor

Params:

NameTypeAttributeDescription
node Object3D

the container node for this layout

Public Members

public get isGrid: bool source

Public Methods

public apply() source

Runs the layout algorithm

Override:

Layout#apply

public prettyPrint() source

public updateFromNodeStyles() source