Skip to content
Shapemetry

@huukhanhnguyen/model / schema/preview

schema/preview

Preview

Preview = { items: PreviewItem[]; }

items

items: PreviewItem[]


PreviewItem

PreviewItem = { position: Point; type: "point"; } | { color?: string; positions: Point[]; type: "points"; } | { color?: string; segments: [Point, Point][]; type: "segments"; } | { anchorKey?: string; direction: Point; type: "vector"; } | { direction: Point; origin: Point; type: "axis"; } | { normal: Point; origin: Point; type: "plane"; } | { color?: string; data: ObjectData[]; type: "data"; }

Last updated: 📖 1 min readEdit on GitHub