tuil
ReferencePackages@mwillbanks/tuil-cellAPI

CellSceneNode

interface exported by @mwillbanks/tuil-cell.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-cell.

export interface CellSceneNode {
  readonly id: string;
  readonly kind: "box" | "text";
  readonly text?: string;
  readonly children?: readonly CellSceneNode[];
  readonly direction?: "row" | "column";
  readonly position?: "flow" | "absolute" | "portal";
  readonly x?: number;
  readonly y?: number;
  readonly width?: number;
  readonly height?: number;
  readonly padding?: number;
  readonly margin?: number;
  readonly border?: boolean;
  readonly clip?: boolean;
  readonly zIndex?: number;
  readonly focusable?: boolean;
  readonly pointerEvents?: "auto" | "none";
  readonly scrollContainerId?: string;
  readonly semantics?: Omit<SemanticMetadata, "id">;
  readonly style?: Partial<Omit<Cell, "grapheme" | "continuation">>;
}

Members

MemberTypeRequiredDescriptionRelated types
idstringYesThe id member uses the string contract.
kind"box" | "text"YesThe kind member uses the "box" | "text" contract.
textstring | undefinedNoThe text member uses the string | undefined contract.
childrenreadonly CellSceneNode[] | undefinedNoThe children member uses the readonly CellSceneNode[] | undefined contract.CellSceneNode
direction"row" | "column" | undefinedNoThe direction member uses the "row" | "column" | undefined contract.
position"flow" | "absolute" | "portal" | undefinedNoThe position member uses the "flow" | "absolute" | "portal" | undefined contract.
xnumber | undefinedNoThe x member uses the number | undefined contract.
ynumber | undefinedNoThe y member uses the number | undefined contract.
widthnumber | undefinedNoThe width member uses the number | undefined contract.
heightnumber | undefinedNoThe height member uses the number | undefined contract.
paddingnumber | undefinedNoThe padding member uses the number | undefined contract.
marginnumber | undefinedNoThe margin member uses the number | undefined contract.
borderboolean | undefinedNoThe border member uses the boolean | undefined contract.
clipboolean | undefinedNoThe clip member uses the boolean | undefined contract.
zIndexnumber | undefinedNoThe zIndex member uses the number | undefined contract.
focusableboolean | undefinedNoThe focusable member uses the boolean | undefined contract.
pointerEvents"auto" | "none" | undefinedNoThe pointerEvents member uses the "auto" | "none" | undefined contract.
scrollContainerIdstring | undefinedNoThe scrollContainerId member uses the string | undefined contract.
semanticsOmit<SemanticMetadata, "id"> | undefinedNoThe semantics member uses the Omit<SemanticMetadata, "id"> | undefined contract.SemanticMetadata
stylePartial<Omit<Cell, "grapheme" | "continuation">> | undefinedNoThe style member uses the Partial<Omit<Cell, "grapheme" | "continuation">> | undefined contract.Cell

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-cell

On this page