@huukhanhnguyen/types / objects/view
objects/view
ViewData
ViewData = {
crop?:BoundingBox2d;scale:number|"auto";source:string; }
What a ViewObject places: which saved view, at what scale, optionally cropped. Not the drawing itself — that is re-derived on demand and never stored. Placement itself is instances.
crop?
optionalcrop?:BoundingBox2d
Fractions of the uncropped drawing. Omit = full drawing.
scale
scale:
number|"auto"
Drawing scale — a number (0.02 = 1) or "auto".
source
source:
string
Key of a views[] entry.
ViewInstance
ViewInstance =
BaseInstance& { }
A view placement has no surfaces; material is not on this kind.
ViewObject
ViewObject =
BaseObject& {data:ViewData;instances:ViewInstance[];type:"view"; }
Placement of a saved view on paper — the object tier of ARCHITECTURE.md's View section. Two-tier: data is a REFERENCE (a views[] key), so there is no document tier. Still carries instances — no kind is structurally singular.