Source
xxxxxxxxxx
if (this.#items_max_count > old_items_max_count && this.#items_loaded_count >= old_items_max_count) {
/*
** Copyright (C) 2001-2025 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
class CWidgetHoneycomb extends CWidget {
static ZBX_STYLE_DASHBOARD_WIDGET_PADDING_V = 8;
static ZBX_STYLE_DASHBOARD_WIDGET_PADDING_H = 10;
/**
* @type {CSVGHoneycomb|null}
*/
#honeycomb = null;
/**
* @type {boolean}
*/
#user_interacting = false;
/**
* @type {number}
*/
#interacting_timeout_id;
/**
* @type {number}
*/
#resize_timeout_id;
/**
* @type {number}
*/
#items_max_count = 1000;
/**
* @type {number}
*/
#items_loaded_count = 0;
/**
* Cells data from the request.
*
* @type {Map<string, Object>}
*/
#cells_data = new Map();
/**
* Host ID of selected cell
*
* @type {string|null}
*/
#selected_hostid = null;
/**
* Item ID of selected cell
*
* @type {string|null}
*/
#selected_itemid = null;
/**
* Key of selected item.
*
* @type {string|null}
*/
#selected_key_ = null;
onActivate() {
this.#items_max_count = this.#getItemsMaxCount();
}
isUserInteracting() {
return this.#user_interacting || super.isUserInteracting();
}
onResize() {
if (this.getState() !== WIDGET_STATE_ACTIVE) {
return;
}