---
title: CapStyle
summary: Type alias in @bimworks/viewer3d.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewer3d
---

# CapStyle

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewer3d` · Type alias

````typescript sdk=js sdk-namespace="@bimworks/viewer3d"
type CapStyle = "generic" | "plain" | "concrete" | "brick" | "block" | "insulation" | "wood" | "metal" | "gypsum" | "glass" | "stone" | "earth" | "membrane" | "services";
````

A section cap style (docs/section-cap-patterns.md): the pattern a cut object's cap gets with
`SectionPlanes.capStyles`. "plain" draws no strokes over a neutral fill (the object's colour with
`SectionPlanes.objectEndcaps`); "services" always the object's colour
