develop: add anchor in pathVisitor and origin in tree.js