Skip to content

Commit

Permalink
#214 Add dragOrientation demonstration for "arrows" in advanced sample.
Browse files Browse the repository at this point in the history
Signed-off-by: cneben <benoit@destrat.io>
  • Loading branch information
cneben committed Nov 19, 2023
1 parent 8bf029d commit d4a2e6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/advanced/AdvancedNode.qml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Qan.NodeItem {
anchors.fill: parent
radius: 10; color: light
border.color: "violet"; border.width: 2
readonly property color dark: "blue"
readonly property color dark: "#0097c9"
readonly property color light: "lightblue"
Label {
anchors.fill: parent
Expand Down
2 changes: 2 additions & 0 deletions samples/advanced/advanced.qml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ ApplicationWindow {
// Horizontal arrow
const arrow2H1 = topology.insertNode(hookDelegate);
arrow2H1.item.x = 550; arrow2H1.item.y = 500;
arrow2H1.item.dragOrientation = Qan.NodeItem.DragHorizontal;
const arrow2H2 = topology.insertNode(hookDelegate);
arrow2H2.item.x = 850; arrow2H2.item.y = 500;
arrow2H2.item.dragOrientation = Qan.NodeItem.DragHorizontal;
const arrow2 = topology.insertEdge(arrow2H1, arrow2H2);
arrow2.item.style = topology.styleManager.createEdgeStyle();
arrow2.item.style.lineColor = '#29ADB2'
Expand Down

0 comments on commit d4a2e6d

Please sign in to comment.