private syncSelectionStateInverted()

in src/interactivityService.ts [370:391]


    private syncSelectionStateInverted(): void {
        let selectedIds = this.selectedIds;
        let selectableDataPoints = this.selectableDataPoints;
        if (!selectableDataPoints)
            return;

        if (selectedIds.length === 0) {
            for (let dataPoint of selectableDataPoints) {
                dataPoint.selected = false;
            }
        }
        else {
            for (let dataPoint of selectableDataPoints) {
                if (selectedIds.some((value: ISelectionId) => value.includes(dataPoint.identity as ISelectionId))) {
                    dataPoint.selected = true;
                }
                else if (dataPoint.selected) {
                    dataPoint.selected = false;
                }
            }
        }
    }