insightSetLayers()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Gets a new insight that ‘inherits’ all data from the provided insight but has different layers.
export declare function insightSetLayers<T extends IInsightDefinition>(insight: T, layers?: IInsightLayerDefinition[]): T;
Parameters
Parameter | Type | Description |
|---|---|---|
insight | T | insight to work with |
layers | (Optional) new layers to apply |
Returns
T
always new instance
Remarks
New layers will be used in the new insight as-is, no merging with existing layers.