[x] The code has been run through pretty yarn run pretty
[x] The tests pass on CircleCI
[x] You have referenced the issue(s) or other PR(s) this fixes/relates-to
[x] The PR Template has been filled out (see below)
[x] Had a beer/coffee because you are awesome
What?
Fixed typo in packages/react-diagrams-core/src/models/DiagramModel.ts and failing tests in CircleCI
Why?
1) packages/react-diagrams-core/src/models/DiagramModel.ts had a typo. NodeLayerModel was used when getting active link layer instead of LinkLayerModel
2) Tests were failing because of iframe.html has body padding set to 1rem. Because of that page.mouse.down svg based coordinates were missing the target path
How?
1) Fixed typo
2) Using getClientRects() instead of svg getPointAtLength()
Checklist
yarn run pretty
What?
Fixed typo in packages/react-diagrams-core/src/models/DiagramModel.ts and failing tests in CircleCI
Why?
1) packages/react-diagrams-core/src/models/DiagramModel.ts had a typo. NodeLayerModel was used when getting active link layer instead of LinkLayerModel
2) Tests were failing because of iframe.html has body padding set to 1rem. Because of that page.mouse.down svg based coordinates were missing the target path
How?
1) Fixed typo
2) Using getClientRects() instead of svg getPointAtLength()
Feel good image: