Skip to content
Shapemetry

Model - Spaces

API reference for src/graph/spaces, src/schema/spaces on @huukhanhnguyen/model, reachable from ..

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

asSheetEntities

function

asSheetEntities(entities: Entity[]): SheetEntities

asViewEntities

function

asViewEntities(entities: Entity[]): ViewEntities

asWorldEntities

function

Coordinate-space branding helpers. Types live in schema/spaces.ts (Law 1).

asWorldEntities(entities: Entity[]): WorldEntities

SheetEntities

type

type SheetEntities
// = Entity[] & { readonly [SheetSpace]: "sheet"; }

ViewEntities

type

type ViewEntities
// = Entity[] & { readonly [ViewSpace]: "view"; }

WorldEntities

type

type WorldEntities
// = Entity[] & { readonly [WorldSpace]: "world"; }
Last updated: 📖 1 min readEdit on GitHub