Skip to content

Type Alias: SelectionStylePatch

SelectionStylePatch = Partial<Omit<SelectionStyle, "colors">> & object

Defined in: packages/viewer-core/src/public/managers/SelectionManager.ts:29

selection.setStyle() 的部分补丁:未给的字段保持当前值,colors 逐实体类型深合并。

Type Declaration

colors?

optional colors?: object

colors.edge?

optional edge?: Partial<SelectionStyle["colors"]["edge"]>

colors.face?

optional face?: Partial<SelectionStyle["colors"]["face"]>

colors.node?

optional node?: Partial<SelectionStyle["colors"]["node"]>