| | |
| | | that.crnFork = null; |
| | | |
| | | let curves = []; |
| | | that.curve = null; |
| | | that.progress = 0; |
| | | |
| | | let init = function () { |
| | | that.crnNo = crnData.crnNo; |
| | |
| | | ]) |
| | | }) |
| | | } |
| | | |
| | | curves.map((value, index) => { |
| | | console.log(value.part + " --> " + JSON.stringify(value.route.points)) |
| | | }); |
| | | |
| | | curves[0].start = true; |
| | | |
| | | console.log(curves); |
| | | |
| | | // new Route(); // load |
| | | // console.log(that.curve); |
| | | // console.log("pre" + JSON.stringify(that.prePosition)); |
| | | // console.log(JSON.stringify(that.position)); |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | } else { |
| | | let point = curves[i].route.getPoint(curves[i].progress); |
| | | console.log(point) |
| | | if ( point && point.x ) { |
| | | switch (curves[i].part) { |
| | | case 'body': |