UNPKG

@itwin/presentation-hierarchies

Version:

A package for creating hierarchies based on data in iTwin.js iModels.

29 lines 1.52 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); exports.ProcessedHierarchyNode = void 0; const HierarchyNodeKey_js_1 = require("../HierarchyNodeKey.js"); /** @public */ // eslint-disable-next-line @typescript-eslint/no-redeclare var ProcessedHierarchyNode; (function (ProcessedHierarchyNode) { /** Checks whether the given node is a generic node */ function isGeneric(node) { return HierarchyNodeKey_js_1.HierarchyNodeKey.isGeneric(node.key); } ProcessedHierarchyNode.isGeneric = isGeneric; /** Checks whether the given node is an ECInstances-based node */ function isInstancesNode(node) { return HierarchyNodeKey_js_1.HierarchyNodeKey.isInstances(node.key); } ProcessedHierarchyNode.isInstancesNode = isInstancesNode; /** Checks whether the given node is a grouping node */ function isGroupingNode(node) { return HierarchyNodeKey_js_1.HierarchyNodeKey.isGrouping(node.key); } ProcessedHierarchyNode.isGroupingNode = isGroupingNode; })(ProcessedHierarchyNode || (exports.ProcessedHierarchyNode = ProcessedHierarchyNode = {})); //# sourceMappingURL=IModelHierarchyNode.js.map