public async scrub()

in pbi-heat-streams/src/Interactions.ts [40:54]


	public async scrub(
		bounds: TimeDomain,
		dv: powerbiVisualsApi.DataView,
	): Promise<void> {
		logger.info('Handle Scrub', bounds)
		if (bounds === null || bounds === undefined || +bounds[0] === +bounds[1]) {
			this.applyFilter(null)
			return
		}
		const column = dv.metadata.columns.find(
			(col: powerbiVisualsApi.DataViewMetadataColumn) => col.roles!.grouping,
		)
		const filter = buildDomainScrub(bounds, column!.identityExprs![0])
		this.applyFilter(filter)
	}