UNPKG

ng2-branchy

Version:

angular2 component for visualizing data that can be naturally represented as a tree

33 lines 1.03 kB
"use strict"; var CapturedNode = (function () { function CapturedNode(anElement, aTree) { this.anElement = anElement; this.aTree = aTree; } CapturedNode.prototype.canBeDroppedAt = function (element) { return !this.sameAs(element) && !this.contains(element); }; CapturedNode.prototype.contains = function (other) { return this.element.nativeElement.contains(other.nativeElement); }; CapturedNode.prototype.sameAs = function (other) { return this.element === other; }; Object.defineProperty(CapturedNode.prototype, "element", { get: function () { return this.anElement; }, enumerable: true, configurable: true }); Object.defineProperty(CapturedNode.prototype, "tree", { get: function () { return this.aTree; }, enumerable: true, configurable: true }); return CapturedNode; }()); exports.CapturedNode = CapturedNode; //# sourceMappingURL=captured-node.js.map