import { ColorRepresentation, Object3D } from "three"; export interface IHighlighter { highlightObjects(objects: Object3D[]): void; unhighlightObjects(objects: Object3D[]): void; } /** * Highlight style of a model, see {@link IModelImpl.setHighlightStyle}. Unset settings take their default * values. * * The style applies to the faces, lines and points of the highlighted objects (fill settings) and to * their edges, the model edges drawn with the `edgeModel` option (line settings). */ export interface IHighlightStyle { /** * Fill color. Default is `0x4aa9fa`. */ fillColor?: ColorRepresentation; /** * Blend of the object color with the fill color, from `0` (object color) to `1` (fill color). Default * is `1`. */ fillMix?: number; /** * Opacity of the highlighted objects, from `0` to `1`, or `-1` to keep the opacity of their materials. * Default is `-1`. */ fillOpacity?: number; /** * Edge color. Default is the fill color. */ lineColor?: ColorRepresentation; /** * Blend of the edge color with the line color, from `0` (edge color) to `1` (line color). Default is * `1`. */ lineMix?: number; /** * Intensity of the fill color added on top of the lighting, a glow. Default is `0`. */ emissiveIntensity?: number; /** * Sets both {@link facesOverlay} and {@link edgesOverlay}. */ overlay?: boolean; /** * Draws the faces, lines and points of the highlighted objects once more, in the fill color with the * {@link overlayOpacity}, over all other geometry. The objects themselves then keep their colors. * Default is `true`. */ facesOverlay?: boolean; /** * Draws the edges of the highlighted objects once more, in the line color with the * {@link overlayOpacity}, over all other geometry. The edges themselves then keep their colors. Default * is `true`. */ edgesOverlay?: boolean; /** * Opacity of the geometry drawn over all other geometry, from `0` to `1`. Default is `1`. */ overlayOpacity?: number; }