@iiif/iiif-tree-component
Advanced tools
Comparing version
@@ -41,2 +41,3 @@ import { TreeNode } from "manifesto.js"; | ||
selectNode(node: MultiSelectableTreeNode): void; | ||
expandNode(node: TreeNode, expanded: boolean): void; | ||
getNodeByPath(parentNode: MultiSelectableTreeNode, path: string[]): MultiSelectableTreeNode; | ||
@@ -43,0 +44,0 @@ show(): void; |
@@ -254,2 +254,7 @@ "use strict"; | ||
}; | ||
TreeComponent.prototype.expandNode = function (node, expanded) { | ||
if (!this._rootNode) | ||
return; | ||
this._setNodeExpanded(node, expanded); | ||
}; | ||
// walks down the tree using the specified path e.g. [2,2,0] | ||
@@ -256,0 +261,0 @@ TreeComponent.prototype.getNodeByPath = function (parentNode, path) { |
@@ -41,2 +41,3 @@ import { TreeNode } from "manifesto.js"; | ||
selectNode(node: MultiSelectableTreeNode): void; | ||
expandNode(node: TreeNode, expanded: boolean): void; | ||
getNodeByPath(parentNode: MultiSelectableTreeNode, path: string[]): MultiSelectableTreeNode; | ||
@@ -43,0 +44,0 @@ show(): void; |
@@ -252,2 +252,7 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
TreeComponent.prototype.expandNode = function (node, expanded) { | ||
if (!this._rootNode) | ||
return; | ||
this._setNodeExpanded(node, expanded); | ||
}; | ||
// walks down the tree using the specified path e.g. [2,2,0] | ||
@@ -254,0 +259,0 @@ TreeComponent.prototype.getNodeByPath = function (parentNode, path) { |
{ | ||
"name": "@iiif/iiif-tree-component", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist-commonjs/index.js", |
@@ -42,2 +42,3 @@ import { BaseComponent, IBaseComponentOptions } from '@iiif/base-component'; | ||
selectNode(node: MultiSelectableTreeNode): void; | ||
expandNode(node: TreeNode, expanded: boolean): void; | ||
getNodeByPath(parentNode: MultiSelectableTreeNode, path: string[]): MultiSelectableTreeNode; | ||
@@ -44,0 +45,0 @@ show(): void; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
256784
0.38%852
1.55%