connectors Archives - draw.io Online Diagramming Thu, 28 Sep 2023 08:19:50 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.3 Signifying associative entities in draw.io https://drawio-app.com/blog/signifying-associative-entities-in-draw-io/ Thu, 28 Sep 2023 08:00:18 +0000 https://drawio-app.com/?p=29223 Connections hold together what belongs together. Connections show sequences, or draw your attention to essential steps in a given process. But even more importantly, they can also save you time. For example: "You meet the person of your dreams. You gather all your courage and want to talk to them. At the last moment, [...]

The post Signifying associative entities in draw.io appeared first on draw.io.

]]>
Reading Time: 9 min

Connections hold together what belongs together. Connections show sequences, or draw your attention to essential steps in a given process. But even more importantly, they can also save you time. For example:

“You meet the person of your dreams. You gather all your courage and want to talk to them. At the last moment, you check their hands. Left hand, ring finger… there is already a 1:1 relationship – damn it!”

So, a ring in a specific location can instantly tell a complete story in the background. What ends unhappily for the protagonist in our little example has immense value in the business world. Relationships here are not just 1:1; they are multilayered. For this reason, norms have been created to reflect this multilayeredness and enable associative entities.

In this blogpost, we deal with formatting using different connection endpoints in draw.io. If you are interested in the topic of connectors in general, we recommend our YouTube Connectors Playlist, which contains many helpful tips and tricks.

The default connection in draw.io is the classic arrow; there is no symbol indicating the line start, and an arrowhead to designate the line end. However, you can change this via the Format panel and the Style tab to create your own individual, expressive connectors with just two mouse clicks. Remember to save the connection in your scratchpad or even create a custom library, so that you and your colleagues can benefit from your preliminary work.

You can change further settings via the same menu. For example, depending on the diagram, it can be very useful to increase the size of the line start and end, to emphasize these.

But of course, that’s not all. There are specific connectors that are used according to international standards. So why build your own connectors, when draw.io already has them at hand? Many libraries in draw.io already offer predefined connectors. You can find examples in our General library, which can save you a lot of time. Equally, you can use our Shape Search to find specific associations.

When creating diagrams adhering to standards such as BPMN 2.0, you will find all the elements you need in the corresponding library. To locate these, head to +More Shapes in the diagram editor, or the + icon in the board editor, each located at the bottom of the left sidebar.

Locating the BPMN 2.0 shape library in the draw.io diagram editor

Locating the BPMN 2.0 shape library in the draw.io board editor

Want to dive deeper into the world of draw.io? Access our linktr.ee page to follow us on social media and learn how others use draw.io, as well as pick up some helpful tips and tricks.

Not using draw.io yet? Convince yourself and start your free 30-day trial today. Or book a free no-obligation demo with our customer success team to learn more about how draw.io can make life easier and more productive for you and everyone in (and outside of) your company!

Happy diagramming!

The post Signifying associative entities in draw.io appeared first on draw.io.

]]>
draw.io Training – Exercise 5: Create a tree diagram https://drawio-app.com/blog/draw-io-training-exercise-5-create-a-tree-diagram/ https://drawio-app.com/blog/draw-io-training-exercise-5-create-a-tree-diagram/#respond Tue, 11 May 2021 14:40:34 +0000 https://drawio.seibert-media.com/?p=2229 Reading Time: 10 min Now that you've learnt how to insert and modify shapes, add text and use connectors, it's time to put it all together. In this exercise you'll learn some more advanced formatting options by using the format panel on the right hand side.

The post draw.io Training – Exercise 5: Create a tree diagram appeared first on draw.io.

]]>
Reading Time: 10 min

What you are going to learn in this tutorial

  • Create a diagram structure from scratch
  • Use the draw.io shape search
  • Efficient formatting of shapes

Introduction

Now that you’ve learned how to insert and modify shapes, add text and use connectors, it’s time to put it all together. In this exercise you’ll learn some more advanced formatting options by using the shape search on the left and the format panel on the right hand side.

Create tree diagram with defined shapes and formatting

Tutorial

Add shapes, text and connectors for shapes

Create the tree diagram example from above in a new, blank draw.io diagram. Use the Rounded Rectangle shape from the General library, then search for the term Display, using the shape search in the upper section of the library panel.

Diagram editor tip: You can see additional shapes by clicking on + More shapes at the bottom of the symbol library.

Board editor: Clicking on the plus symbol in a box (shown by the orange circle) displays a submenu, and selecting Shapes opens up the shape panel and search box.

Duplicate the Display shape four times and position them roughly one below the other. Now use the Align and Distribute functions from the Format Panel to first center the shapes vertically and then align them at the same distance. Then select all four shapes, duplicate the set, choose Distribute > Horizontal to mirror the set and position it on the opposite side. Add the text and connectors.

Board editor: Clicking on the plus symbol in a box brings up the submenu; choose Layout > Horizontal Flow.

Add text and connectors

Click on a shape and start typing to enter text. Text size, font, and color can be adjusted in the Text tab of the format panel, in addition to the position of the text.
Double-click on a text to access the enhanced text options (they will overlay the format panel). This way, you can add numbering or bullet points to your text or set multiple links in your text, if needed.

Click and drag a connector from a connection point to another object’s connection point – it must be in a green circle to properly link the two shapes. Your connector won’t move from these connection points once you have created it – which is very useful for this tutorial example.

Connect shapes in draw.io

Format shapes, text and connectors

First we are going to change the shape styles. Perform the following changes, using the Style tab of the Format panel.

  • Set Gradient for the shapes Tree Species, Conifers, Deciduous Trees
  • Set a single color for all other shapes
  • Choose a dashed line for the lower six shapes
  • Set Linewidth to 2pt
Format shpes in draw.io

Now adjust the text of the diagram. The lower shapes already have the default font size of 12 pt, so you only have to set the font size of the heading to 24pt. Also make the text bold.

Adjust the style of a connector by selecting it, then using the Style tab in the Format panel.

  • Set Rounded lines
  • Change the colors
  • Change Linewidth (2/3pt)
  • Edit the The Line start and Line end of the arrows
Format connectors in draw.io

The post draw.io Training – Exercise 5: Create a tree diagram appeared first on draw.io.

]]>
https://drawio-app.com/blog/draw-io-training-exercise-5-create-a-tree-diagram/feed/ 0
draw.io Training – Exercise 4: Work with text and connectors https://drawio-app.com/blog/draw-io-training-exercise-4-work-with-text-and-connectors/ https://drawio-app.com/blog/draw-io-training-exercise-4-work-with-text-and-connectors/#comments Tue, 11 May 2021 14:30:08 +0000 https://drawio.seibert-media.com/?p=2212 Reading Time: 12 min Now that you are comfortable modifying an existing diagram by editing shapes, it's time to build one from scratch. You'll need to add shapes from the symbol library, draw connections between the shapes, and add text to both the shapes and the connectors.

The post draw.io Training – Exercise 4: Work with text and connectors appeared first on draw.io.

]]>
Reading Time: 12 min

What you are going to learn in this tutorial

  • Drag connectors to connect shapes
  • Create a new shape and a connection at the same time
  • Split a connection to add a new shape
  • Insert text into shapes, on the drawing canvas and on connectors

Introduction

Now that you are comfortable modifying an existing diagram by editing shapes, it’s time to build one from scratch. You’ll need to add shapes from the symbol library, draw connections between the shapes, and add text to both the shapes and the connectors.

For the upcoming tutorial, you will rebuild the diagram you see at the right (doesn’t need to be too precise).

This tutorial will cover the Diagram editor and the Board editor; both have similar features and functionality. Only the user interface between the two may differ at times.

Final diagram that you built from scratch

Tutorial

Entering text

Add a rounded rectangle shape to your diagram. After you insert the shape, you can directly start typing to add text to it. Later, you can click or double-click on a shape and start typing to enter the text inside the shape. To change the position or format of the text inside the shape, use the Text tab of the format panel on the right. By adjusting the spacing at the bottom of the Text tab, you can set the location of the text precisely.

Set spacing in your draw.io diagrams
The draw.io shape picker

You can also place text freely on the drawing area. Double click on an empty area of your diagram and choose the text option from the shape picker.

Shown left is the Diagram editor shape picker, and pictured right is the Board editor shape picker.

Text size, font and color can be altered in the Text tab of the format panel. Double-click on the text to get enhanced text options in the Format panel.

Tip: Text inside a shape wraps automatically. You can break text over multiple lines manually in free text areas or on connectors by pressing Enter.

The draw.io text panel

Add and connect new shapes

Click on a blue arrow of your selected or unselected (when you hover over the shape with your mouse) rectangular shape, so the draw.io shape picker opens. Choose the shape in the upper left corner to duplicate the original shape 1:1 (or use one of the most used shapes from the general shape library). The shape and its content is duplicated and connected with a connector in the direction of the arrow on which you clicked.

Now add another shape at the bottom of the rectangle, but this time we add the Double Circle shape from the Misc library. Drag and drop the shape on the bottom blue arrow of the rectangle to add and connect it at the same time.

Tip: By default, a connector is equipped with an arrow.

Connector options in selected mode
Connector options in unselected mode

You can also draw connectors from an unselected shape. Hover over the Double Circle shape you just added to see small blue connection crosses. Click and drag a connector to another object’s connection point – it must be in a green circle to properly link the two shapes. Your connector won’t move from these connection points once you have created it.

You can link a connector to an edge (not a single connection point), by dragging the connector over the target shape until the outline is blue. Your connector may move around on this edge when the shape is moved on the drawing area.

You can draw connectors from the large blue arrows in the same ways.

Split connectors

To insert a shape between two connected shapes, just drag and drop the object of your choice on the connector and release the mouse once you see a purple outline around it.

Split connectors in draw.io

Add text to connectors

Double-click on the connector where you like to add the text to and start typing. Use the yellow diamond shape to reposition the text if needed. Click on the text once or twice to overwrite the entire text, or click another time to edit only parts of the text. You can modify the text with the same panels that you used to edit and format your text in shapes.

Add text to connectors

The post draw.io Training – Exercise 4: Work with text and connectors appeared first on draw.io.

]]>
https://drawio-app.com/blog/draw-io-training-exercise-4-work-with-text-and-connectors/feed/ 2
Waypoints in draw.io: Building a path for your connectors https://drawio-app.com/blog/waypoints-in-draw-io-building-a-path-for-your-connectors/ Wed, 05 Aug 2020 09:07:49 +0000 https://drawio-app.com/?p=20990 Getting from A to B: Waypoints in draw.io Connectors play a pivotal role in creating the relationships between your shapes.  Without them, they're just random shapes on your canvas.  But it's not enough just to have connectors.  Especially in more complex diagrams, which may contain many intersecting connectors, you have to have a way [...]

The post Waypoints in draw.io: Building a path for your connectors appeared first on draw.io.

]]>
Reading Time: 11 min

Getting from A to B: Waypoints in draw.io

Connectors play a pivotal role in creating the relationships between your shapes.  Without them, they’re just random shapes on your canvas.  But it’s not enough just to have connectors.  Especially in more complex diagrams, which may contain many intersecting connectors, you have to have a way to make sure that it all doesn’t look like a chaotic mess.  This is where waypoints in draw.io come in.

draw.io’s trail of breadcrumbs

Simply put, waypoints help you map a path from one shape to the next. What they do is allow your connectors to build a better relationship between their shapes.  For little dots on a line, they’re pretty important-sounding.  Then let’s jump right in and take a look at how to add waypoints to your diagram.

Adding waypoints to your connectors in draw.io

At some point, you may find yourself needing your connectors to take a different path.  But if you take the connector and drag it, it will start intersecting with the other shapes and connectors in a way that you didn’t intend.  To fix this, you need to give the connector another waypoint, so it knows it needs to “turn the corner” so to speak.

  1. right-click on one of your connectors at the location you want to add the waypoint
  2. select Add Waypoint 
  3. move your connector to its new location

Clear the waypoints

Oops!  Didn’t mean to add all those waypoints?  No problem, clear ’em out.

  1. right-click on the connector where you just added the waypoint
  2. select Clear Waypoints
  3. now you can drag your connector back to where it was

Remove a single waypoint

What if you don’t want to clear all the waypoints and just a single one? That’s easy too!

  1. right-click on the waypoint you want to remove
  2. select Remove Waypoint

Reverse waypoints

So, you’ve added a waypoint, cleared them, and then deleted a single one – what if you want to change your relationship between your two shapes?

  1. right-click and select Reverse (yes, in one step!)

You will see that the arrow that used to lead to your second shape is now pointing to your first shape.  Easy!

Learn more about connectors and waypoints

There are many more things that you can do with your shapes, connectors, and waypoints in draw.io.  Why don’t you start with an Interactive Tutorial?  You’ll find a link to download the.XML file.  Once you’ve downloaded it, learn how to import it and use the guide within your new draw.io diagram.  We also have a whole blog post dedicated to Floating & Fixed Connections – it can help you figure out how to create the right connectors for your needs.

We hope this gave you a little more insight into waypoints.  If you have any questions, don’t hesitate to contact us.  No questions, but just want to say hi?  We love hearing from you, so why not drop by one of our social media accounts?  Until next time, happy diagramming.

The post Waypoints in draw.io: Building a path for your connectors appeared first on draw.io.

]]>
Customise default colours, fonts, styles and the draw.io UI in Confluence Cloud https://drawio-app.com/blog/customise-default-colours-fonts-styles-and-the-draw-io-ui-in-confluence-cloud/ Mon, 20 Jan 2020 12:53:40 +0000 https://drawio-app.com/?p=17998 Reading Time: 7 min As an administrator, you can customise draw.io in Confluence Cloud to make it easier and faster for your users to create diagrams following your company’s particular style by setting default colours, style palettes, and fonts. You can even make the draw.io interface [...]

The post Customise default colours, fonts, styles and the draw.io UI in Confluence Cloud appeared first on draw.io.

]]>
Reading Time: 7 min

As an administrator, you can customise draw.io in Confluence Cloud to make it easier and faster for your users to create diagrams following your company’s particular style by setting default colours, style palettes, and fonts. You can even make the draw.io interface fit your customised Confluence Cloud interface.


Custom colour palettes

There are three main colour palettes you can customise in draw.io. The style palette at the top of the format panel on the Style tab, preset colours in the colour dialog, and the large colour palette in the colour dialog.

These are changed by adding colour information to the JSON string in the draw.io Configuration section in your Confluence Cloud settings.

Set custom colour palettes for draw.io in Confluence Cloud

  1. Go to the draw.io Configuration tab in the draw.io Configuration section of your Confluence Cloud settings.JSON for custom colours in draw.io for Confluence Cloud
  2. For each colour palette you want to customise, define the colours using hex codes.
    • defaultColorSchemes: Changes the styles in the format panel colour palette.
    • customColorSchemes: Adds an extra styles in front of the default colour schemes.
    • presetColors: Changes changes the default colours in the small upper pallette in the colour dialog, and you must specify colours for the entire small palette. Add hex colour codes without the hash character (#).
    • customPresetColors: Adds one or more colours which will appear in front of the default preset colours. Add hex colour codes without the hash character (#).
    • defaultColors: Changes the large palette in the colour dialog. You must define all 120 colours. Add hex colour codes without the hash character (#).
  3. Once you have finished customising, click Save.

For example, this defines a custom pastel style palette (with no border), and an orange default preset colour palette.
{
"customColorSchemes": [[{"fill": "#ffb3ba", "stroke": "none"},
{"fill": "#ffdfba", "stroke": "none"},
{"fill": "#ffffba", "stroke": "none"},
{"fill": "#baffc9", "stroke": "none"},
{"fill": "#bae1ff", "stroke": "none"},
{"fill": "#eecbff", "stroke": "none"},
{"fill": "#a2798f", "stroke": "none"},
{"fill": "#8caba8", "stroke": "none"}]],
"presetColors": [
"f79862", "f05e23", "be5504", "d7722c", "cb5c0d", "b3672c",
"b1560f", "813f0b", "ef820d", "ffbf00", "cc7722", "fda50f",
"ef7215", "964000", "ff7417", "793802", "eb9605", "883000",
"fd6a02", "f9a602", "8b4000", "f9821a", "fc6600", "daa520"] }

A pastel custom style palette in draw.io for Confluence Cloud  Custom preset colours in draw.io for Confluence Cloud

See more examples of how to customise colours in draw.io for Confluence Cloud


Custom fonts

You can change what appears by default in the list of fonts in the Font tab of the format panel by editing the draw.io configuration JSON in your Confluence Cloud Settings.

  1. Go to the draw.io Configuration tab in the draw.io Configuration section of your Confluence Cloud settings.
  2. Add the code to customise the default font list. The code below lists only three fonts in the default font list. If you don’t want to override the default fonts, use the customFonts option to add the extra fonts at the top of the fonts list.
    { "defaultFonts": ["Courier New", "Tahoma", "Helvetica"] }
    Setting custom fonts for draw.io in Confluence Cloud
  3. To use web or Google fonts, add the publicly accessible URL to the fontCssoption, and then add it to either the defaultFonts or the customFonts list. This adds two Google fonts and one web font to the custom fonts list. Make sure this is all one line.
    {
    "fontCss": "@import url('https://fonts.googleapis.com/css?family=Princess+Sofia&display=swap'); @import url('https://fonts.googleapis.com/css?family=Girassol&display=swap'); @font-face { font-family: 'Waltograph'; src: url(https://fontlibrary.org/assets/fonts/waltograph/23a40698cd1bb84f930b7a0884c134a6/ab260a56f2b852b78f81eac337e0a2fc/WaltographRegular.otf) format('opentype') }",
    "customFonts": ["Princess Sofia", "Girassol", "Waltograph"] }
  4. Click Save when you are done.

Additional Confluence fonts available by default in draw.io for Confluence Cloud

Exporting diagrams: The external image and PDF export features do not currently support custom fonts.

Learn more about using custom fonts in draw.io in Confluence Cloud


Custom default shape and connector styles

Administrators can also add JSON code in the draw.io configuration to set a custom default style for shapes and connectors. When a Confluence Cloud user adds a shape to the drawing canvas or draws a connector, it will automatically use this by default, until they set a new style.

  • defaultVertexStyle sets the default style for shapes.
  • defaultEdgeStyle sets the default style for connectors.
  1. Go to the draw.io Configuration section of your Confluence Cloud settings.
  2. Add the style settings to the JSON text entry area on the draw.io Configuration tab.
  3. Click Save when you are done.
    {
    "defaultVertexStyle": {"fontFamily":"Courier New", "fillColor":"#dae8fc", "strokeColor":"#6c8ebf", "strokeWidth":"1"},
    "defaultEdgeStyle": {"fontFamily":"Courier New", "edgeStyle":"orthogonalEdgeStyle", "rounded":"1", "jettySize":"auto", "orthogonalLoop":"1", "fillColor":"#dae8fc", "strokeColor":"#6c8ebf"}
    }

Now, whenever a new user creates a diagram, shapes added to the drawing canvas will follow this style.

Applied custom default styles in draw.io for Confluence Cloud

Learn more about using personal and global custom default styles in Confluence Cloud


Custom menu colour and theme

You can change the colour of the draw.io editor’s menu bar in Confluence Cloud by adding some CSS code to the draw.io Configuration. This is useful when you want a consistent style or theme for your Confluence apps in your customised Confluence Cloud instance. You can also set a theme to use by default whenever a user creates a diagram.

  1. Go to the draw.io Configuration tab in the draw.io Configuration section of your Confluence Cloud settings.
  2. Add the CSS code to the JSON string to customise the background colour of the menu bar.
  3. Set a default theme using the ui option.
    With the following configuration code, users will see an orange menu bar and use the Kennedy theme by default.
    {
    "css": ".geMenubarContainer { background-color: #F08705 !important; } .geMenubar { background-color: #F08705 !important; }“,
    "ui": "kennedy"
    }
  4. Click Save when you are finished.

Customise the draw.io interface to match your Confluence Cloud interface

The four themes you can use include:

  • Kennedy: The Kennedy theme does not include the draw.io logo.
  • atlassian: The default Atlassian theme uses the Atlassian colours.
  • dark: The Dark theme is for users who prefer working on a dark background.
  • min: The Minimal theme has a larger drawing canvas and uses floating panels for shape libraries and format settings.

See more about customising the draw.io user interface in Confluence Cloud

The post Customise default colours, fonts, styles and the draw.io UI in Confluence Cloud appeared first on draw.io.

]]>
Curved connectors in draw.io diagrams https://drawio-app.com/blog/curved-connectors-in-draw-io-diagrams/ Wed, 11 Sep 2019 15:38:05 +0000 https://drawio-app.com/?p=17317 Reading Time: 4 min Are you frustrated with boring straight connectors? Use curved connectors in draw.io to make your diagrams more fun for your readers.

The post Curved connectors in draw.io diagrams appeared first on draw.io.

]]>
Reading Time: 4 min

Sometimes, diagrams call for a bit more creativity and fun – you can now add even more curves to your curved connectors in draw.io diagrams! You could always add curved connectors to draw.io, but we’ve made it easier now to add extra curves and waypoints.

Connectors with many curves (sometimes known as splines) will make diagrams more attractive to younger audiences (especially school-age children), and will also help you create great mind maps and attractive infographics in draw.io.

Change a connector to using the curved style

  1. Click on the connector, then in the Style tab of the format panel on the right, click on either the Line style drop down and select Curved, or click on the waypoints drop down and select the curved style towards the bottom (hover over each style to see which it is if you aren’t sure).
  2. Then, click and drag the middle waypoint of the connector and you’ll see the curve appear.

Add more curves to a curved connector

It’s easy to add more curves to a curved connector – after selecting a connector, simply click and drag any of the light blue waypoints between the darker waypoints to add more curves.

If you are using floating connectors, you’ll notice that where your connector joins your shape, it will ‘float’ around to the shortest route automatically. If you don’t want this to happen, use a fixed connector. Then you can introduce fun loops into your curved connectors!

Learn more about working with floating and fixed connectors

Add extra waypoints to your connectors

If you want even more curves, you can add extra waypoints to your connectors.

  1. Select a connector, then right click to show the context menu.
  2. Select Add Waypoint from the menu. A new waypoint will be added and your connector will be ‘stretched’ to fit it.
  3. Drag the waypoints around the drawing area to make your connector more curvy.

Want to learn more about connectors?

Show us your curviest connectors!

We’d love to see what crazy diagrams you can create with curved connectors – perhaps a puzzle for children (or new employees during their onboarding)?

Mention @drawio on Twitter and show us your curvy diagram.

The post Curved connectors in draw.io diagrams appeared first on draw.io.

]]>
Connector styles and animations in draw.io https://drawio-app.com/blog/connector-styles-and-animations-in-draw-io/ Mon, 08 Oct 2018 15:44:36 +0000 https://drawio-app.com/?p=15806 Reading Time: 6 min Lines, connectors, arrows, transitions - these are the glue that hold diagrams together. Styling your connectors will help make your diagrams more readable, and that's easy to do in draw.io!

The post Connector styles and animations in draw.io appeared first on draw.io.

]]>
Reading Time: 6 min

Lines, connectors, arrows, transitions – these are the glue that hold diagrams together. They make your diagram make sense. There are many different styles you can use on your connectors – different connection point styles or arrow heads, different line styles, colors, curve styles and more. Styling your connectors will help make your diagrams more readable.

Arrow heads and connection symbols

There are different styles of arrow heads, which also include diamonds, circles and other notations used in UML diagrams, electrical diagrams and more.

Select your connector, then look in the format panel on the right – there is a huge list of connection styles or arrows you can use for both the start and the end of your connector. Choose an arrow or connection symbol from the start and end drop-down lists.

Alternatively, you can use the connector shapes (with arrows attached) from the General or Misc shape libraries in the left pane.

Once you have chosen a certain style, when you draw a new connector, it will use that style.

Line styles

There are several different line styles that you can use for your connectors,  found in the Style tab of the format panel on the right. Select a connector then select the line style from the second drop down selector.

Double-line connectors and a larger arrow outline shape are available in the first drop down selector in the format panel, from in the General shape library on the left, or in the toolbar above.

Filled double line connectors are available from the Misc shape library (the Filled edge shape). These are ideal to use as water pipes – red for hot water, blue for cold – or any other types of ‘pipes’.

Where connectors cross over each other, you can use line jumps to make it clear that they don’t intersect. In the format panel, you can choose between no line jumps, or to style your line jumps as an arc, a gap, or a sharp ‘bend’.

Connector colors

You can change the connector colors easily – use the palette in the Style panel, or click on the color box.

Waypoints

Waypoints are used to add curves or bends to connectors. Simply click and drag one of the light blue waypoints to add a new waypoint and reshape your connector.

To remove a single waypoint, drag it so that it is in line with the waypoints on either side. You can also select the connector, right click and select Clear Waypoints from the context menu to remove all waypoints.

For connectors with bends or waypoints in them, you can choose to style the bends as sharp, rounded or curved.

Animate the connectors

Animating your connectors is great for demonstrating directional flow charts, electrical circuits and more. To animate your connectors:

  1. Click on the connector you wish to animate. Hold Ctrl or Cmd and click to select multiple connectors
  2. On the right-hand side go to Style > Property and click on the arrow to expand the field
  3. Scroll down to Flow Animation and check the box
Activate animation for your connectors

Working with connectors

We’ve covered the different styles of connectors in this post, but in previous posts, we’ve also explained how to work with connectors:

The post Connector styles and animations in draw.io appeared first on draw.io.

]]>
Floating and Fixed Connections in draw.io https://drawio-app.com/blog/floating-and-fixed-connections-in-draw-io/ https://drawio-app.com/blog/floating-and-fixed-connections-in-draw-io/#respond Wed, 24 May 2017 15:00:14 +0000 https://drawio.seibert-media.com/?p=1883 Reading Time: 4 min Sometimes you don't want to connect to any particular connection point, but to the edge of a shape. And perhaps you want one end of a connector to move and the other to stay in one position. There are two types of connections, indicated with blue and green frames in draw.io.

The post Floating and Fixed Connections in draw.io appeared first on draw.io.

]]>
Reading Time: 4 min

You’ve seen diagrams with connectors – arrows or lines that connect shapes in flow charts, mind maps, organization charts, and more. Almost every diagram uses connectors – these connections indicate relationships between the shapes in a diagram.

The most simple (and suboptimal) way is to draw a line between the two shapes. But if it is a simple line and not a connector, whenever you move one of the shapes, you’ll have to manually move the line.

Adding connectors

Using a connector instead of just a separate line will save you a lot of time and effort: When you move a shape the connector moves with them.

There are several ways to draw and attach connectors in draw.io.

Method 1: Start and end on connection points

Make sure the shape you start from is not selected. Hover over the shape, then click and drag a connection from one of these blue crosses (connection points) to the shape you want to connect to. Release the mouse button when you see a green circle on the target connection point – otherwise the connector will not be linked to that target shape.

Method 2:  Start from one of the blue arrows

When you hover over a shape, you can draw a connector from one of the four blue arrows in the same way as method 1.

Method 3: Use the symbol library

You can insert a connector from the symbol library, and drag each end to a connection point of a shape.

Floating and fixed connection points

Sometimes you don’t want to connect to any particular connection point, but to the edge of a shape. And perhaps you want one end of a connector to move (float along the shape’s edge) and the other to stay in one position. There are two types of connections, indicated with blue and green frames in draw.io.

Create a floating connection

Drag the end of your connector over a shape until you see a blue frame appear on your target shape. In the example below, the top connector has been dragged to the shape on the left – you can see the blue frame around it.

draw.io - drawing a floating connector - blue frame

Create a fixed connection

Drag the end of your connector over the shape and wait for about 3 seconds, or move further onto the shape until the frame turns green. Alternatively, you can press the Alt key before connecting to the shape, to make sure the frame is green and you create a fixed connection.

draw.io - drawing a fixed connector - green frame

Now when you move the shape on the right down a little, you’ll see the top connector ‘slides’ or ‘floats’ along the edge of the left hand shape, and the bottom connector remains in a fixed position.

draw.io - fixed and moveable connectors, an example

Need to clone a connector?

Do you want to clone a connector, and keep one end attached? Easy!

Select the connector, hold the Ctrl key, then select the end of the connector that you want to place elsewhere, and release the mouse button. Your connector will be duplicated, including its style and label.

draw.io - clone a connector by holding Ctrl draw.io - a cloned connector

Not sure what type of connection is currently used?

When you select a connection, you can see two blue end-point circles. A ‘.‘ inside this circle indicates a floating connection, and an ‘X‘ means it is a fixed connection.

draw.io - connection type indicators

Watch the video below to see more clearly how to create fixed and floating connections. You are also welcome to experiment with connectors in our example diagram.

Just getting started?

Download our beginner cheat sheets to keep draw.io keyboard shortcuts on hand while you are diagramming.

Step through our getting started guide for draw.io to learn more about working with connectors and shapes, or have a look at our extensive user documentation.

The post Floating and Fixed Connections in draw.io appeared first on draw.io.

]]>
https://drawio-app.com/blog/floating-and-fixed-connections-in-draw-io/feed/ 0
4 Ways to Connect Shapes https://drawio-app.com/blog/4-ways-to-connect-shapes/ https://drawio-app.com/blog/4-ways-to-connect-shapes/#respond Mon, 27 Feb 2017 15:58:26 +0000 https://drawio.seibert-media.com/?p=1436 Reading Time: 3 min If you draw additional lines between shapes in a diagram, they won't move with your shapes when you move them around the drawing area. By using actual connectors (not lines), your diagram becomes much more flexible and easy to work with. There are four different ways you can create connectors between shapes and quickly extend your diagrams in draw.io.

The post 4 Ways to Connect Shapes appeared first on draw.io.

]]>
Reading Time: 3 min

If you draw additional lines between shapes in a diagram, they won’t move with your shapes when you move them around the drawing area. By using actual connectors (not lines), your diagram becomes much more flexible and easy to work with.

There are four different ways you can create connectors between shapes and quickly extend your diagrams in draw.io.

 

1. Focus/mouseover

This creates a duplicate of the shape connected with the standard connector, with an arrow pointing to the new shape by default. Simply clicking on the blue arrow that appears when you hover over a shape creates a duplicate of this shape at a set distance.

If you want to position the shape differently, hold down control (Ctrl), click on the blue arrow or on one of the small blue connection points, hold the button down, drag your mouse to the position you want and release. This will duplicate your shape in the position you want, connected with the standard connector from the connection point that you selected.

Ctrl+drag or click the blue arrow, or Ctrl+drag from a connection point.
Tip: (Shift)+Tab to move the focus.

 

2. Drag and drop

To connect a different shape to an existing connector, select and drag the shape you want from the shape library on the left and drop it onto the circle displayed when you hover over the connector.

To connect a different shape to one that doesn’t yet have a connector attached, select and drag the shape you want from the library over the existing shape until the blue arrows appear, and drop your shape onto the connection direction you want to use. This will automatically locate your new shape a set distance from the existing one, and link them with a connector.

Drag a shape from the sidebar to the blue arrow or circle.
Tip: Drag a new shape over an existing shape and release to replace the shape.

 

3. Select + Sidebar

To add shapes quickly without needing to drag them around, select the connector or shape you want to connect a shape to, then hold down Alt and X, then click on the new shape you want to add in the library on the left. This automatically places the new shape a set distance away from the selected connector or shape and connects them together.

Select a shape or connector, then (Alt+X) and click on a shape in the sidebar.
Tip: Shift+Click replaces the existing selected shape.

 

4. Select + Keyboard

Another way to quickly add multiple different shapes, is by using the keyboard shortcuts. Select an existing shape in your diagram, then press Alt+Shift plus an arrow key (cursor key) on the keyboard to create a connection with a clone of the selected shape in the direction of the key you pressed. To change the shape, keep the mouse in the sidebar, hold down Shift and click on the new shape in the sidebar.

Select an existing shape, then press Alt+Shift+Cursor key.
See: Keyboard Shortcuts

 

You are welcome to open these instructions as an SVG or view them in draw.io directly:
https://jgraph.github.io/drawio-diagrams/diagrams/connect-shapes.svg

The post 4 Ways to Connect Shapes appeared first on draw.io.

]]>
https://drawio-app.com/blog/4-ways-to-connect-shapes/feed/ 0
Add and rotate connector labels https://drawio-app.com/blog/add-and-rotate-connector-labels/ https://drawio-app.com/blog/add-and-rotate-connector-labels/#respond Wed, 10 Aug 2016 12:12:37 +0000 https://drawio-app.com/?p=536 You can double click anywhere on a connector to add a text label in that position. Once created, that label can be rotated like any shape, using the rotation handle. Animation of adding and rotating edge labels in draw.io

The post Add and rotate connector labels appeared first on draw.io.

]]>
Reading Time: < 1 min

You can double click anywhere on a connector to add a text label in that position. Once created, that label can be rotated like any shape, using the rotation handle.

Animation of adding and rotating edge labels in draw.io

Animation of adding and rotating edge labels in draw.io

The post Add and rotate connector labels appeared first on draw.io.

]]>
https://drawio-app.com/blog/add-and-rotate-connector-labels/feed/ 0