UNPKG

@attivio/suit

Version:

Attivio SUIT, the Search UI Toolkit, is a library for creating search clients for searching the Attivio platform.

20 lines (16 loc) 598 B
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var GraphNode = function GraphNode(id, label) { var title = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; var group = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; _classCallCheck(this, GraphNode); this.id = id; this.label = label; if (title) { this.title = title; } if (group) { this.group = group; } this.docId = null; }; export { GraphNode as default };