Block
A SceneObject whose data is { "type": "block", …Block } — the tag plus every field of Block.
Also uses: SceneObject, Mesh.
Block
Used by: PieceData.
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Behavior } from "./Behavior.js";
import type { SceneObject } from "./SceneObject.js";
export type Block = {
/**
* geometry — the evaluated objects.
*/
objects: Array<SceneObject>,
/**
* geometry — the behaviors of the block as a whole, block-local: a
* placed document's root `behaviors[]`, or a clone's source object's
* own; empty for a nest (whose own ride on its `SceneObject`).
*/
behaviors: Array<Behavior>, };| field | type | optional | class | doc |
|---|---|---|---|---|
objects | Array<SceneObject> | no | geometry | geometry — the evaluated objects. |
behaviors | Array<Behavior> | no | geometry | geometry — the behaviors of the block as a whole, block-local: a placed document's root behaviors[], or a clone's source object's own; empty for a nest (whose own ride on its SceneObject). |
Behavior
Used by: Block, SceneObject.
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { Mesh } from "./Mesh.js";
export type Behavior = { "method": "opening",
/**
* geometry — the void, in the carrying object's own local space.
*/
volume: Mesh, } | { "method": "faceCamera",
/**
* geometry — the turning point, in the carrying object's own local
* space: the object's own resolved pivot (`graph::property::
* placements`), stamped on at assembly — never an
* authored value.
*/
pivot: [number, number, number],
/**
* geometry — the unit normal that faces the viewer, in the
* carrying object's own local space.
*/
normal: [number, number, number], };Behavior — opening
| field | type | optional | class | doc |
|---|---|---|---|---|
method | "opening" | no | tag | — |
volume | Mesh | no | geometry | geometry — the void, in the carrying object's own local space. |
Behavior — faceCamera
| field | type | optional | class | doc |
|---|---|---|---|---|
method | "faceCamera" | no | tag | — |
pivot | [number, number, number] | no | geometry | geometry — the turning point, in the carrying object's own local space: the object's own resolved pivot (graph::property:: placements), stamped on at assembly — never an authored value. |
normal | [number, number, number] | no | geometry | geometry — the unit normal that faces the viewer, in the carrying object's own local space. |
📖 1 min read