|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
291 bytes
|
| Rev | Line | |
|---|
| [e4c61dd] | 1 | import {linkHorizontal} from "d3-shape";
|
|---|
| 2 |
|
|---|
| 3 | function horizontalSource(d) {
|
|---|
| 4 | return [d.source.x1, d.y0];
|
|---|
| 5 | }
|
|---|
| 6 |
|
|---|
| 7 | function horizontalTarget(d) {
|
|---|
| 8 | return [d.target.x0, d.y1];
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | export default function() {
|
|---|
| 12 | return linkHorizontal()
|
|---|
| 13 | .source(horizontalSource)
|
|---|
| 14 | .target(horizontalTarget);
|
|---|
| 15 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.