RelateNode.js 469 B

1234567891011121314151617
  1. import Node from '../../geomgraph/Node'
  2. export default class RelateNode extends Node {
  3. constructor() {
  4. super()
  5. RelateNode.constructor_.apply(this, arguments)
  6. }
  7. static constructor_() {
  8. const coord = arguments[0], edges = arguments[1]
  9. Node.constructor_.call(this, coord, edges)
  10. }
  11. updateIMFromEdges(im) {
  12. this._edges.updateIM(im)
  13. }
  14. computeIM(im) {
  15. im.setAtLeastIfValid(this._label.getLocation(0), this._label.getLocation(1), 0)
  16. }
  17. }