'use strict'; class NodeType { static Leaf = new NodeType('Leaf'); static Branch = new NodeType('Branch'); constructor(name) { this.name = name; } toString() { return `NodeType.${this.name}`; } } class LeafNode { constructor(point) { this.type = NodeType.Leaf; this.point = point; } } class BranchNode { } class KDTree { constructor() { this.root = null; } insert(point) { this.root = new LeafNode(point); } } export { KDTree, NodeType, LeafNode, BranchNode }; export default KDTree;