Skip to content

Commit 4364e07

Browse files
authored
Add Diagram (#108)
1 parent 26d7e6a commit 4364e07

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+414
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Diagram
3+
author: Svetlana Nikulina
4+
---
5+
# Diagram
6+
7+
The **Diagram** tool allows you to design diagrams, flowcharts, and organizational charts online.
8+
9+
![Diagram](../images/diagram-overview.png)
10+
11+
12+
* [First Look at the Diagram](diagram/first-look-at-the-diagram.md)
13+
* [Create a New Chart](diagram/create-a-new-chart.md)
14+
* [Select Elements](diagram/select-elements.md)
15+
* [Work with Chart Elements](diagram/work-with-chart-elements.md)
16+
* [Chart Layout](diagram/chart-layout.md)
17+
* [Page Settings](diagram/page-and-view-settings.md)
18+
* [Export to an Image](diagram/export-to-an-image.md)
19+
* [Keyboard Shortcuts](diagram/keyboard-shortcuts.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
title: Chart Layout
3+
author: Svetlana Nikulina
4+
---
5+
# Chart Layout
6+
The **Diagram** tool creates a chart layout based on predefined algorithms:
7+
8+
9+
- The **Tree** layout algorithm is used to draw hierarchical diagrams. It arranges shapes in a tree structure and aligns them based on their hierarchical level.
10+
11+
- The **Layered** layout algorithm is used to draw layered graphs. It arranges shapes in horizontal rows or layers to reduce the number of connector crossings.
12+
13+
To select your chart's layout type and direction, click a layout command on the **Properties > Layout** tab.
14+
15+
16+
![Layout](../../images/diagram-layout.png)
17+
18+
If your document contains several unconnected charts, you can specify a layout for a particular chart. Select the chart's element (shape or connector) and click a layout command. The **Diagram** tool rebuilds the layout of a chart to which the selected element belongs.
19+
20+
![Layout](../../images/diagram-layout-with-selection.png)
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: Create a New Chart
3+
author: Svetlana Nikulina
4+
---
5+
# Create a New Chart
6+
This topic explains how to create a new chart and customize its settings.
7+
8+
## Add a Shape
9+
10+
1. Drag a shape from the **Toolbox** onto the page.
11+
12+
1. Double click the shape to add/edit its text.
13+
14+
![Add a Shape](../../images/diagram-add-shape.gif)
15+
16+
## Connect Shapes
17+
18+
1. Add another shape to the chart.
19+
20+
1. Hover the mouse pointer over a shape to display its connection points.
21+
22+
23+
1. Hover a point, press the left mouse button, drag the connector to another shape's connection point, and release the mouse button. Now, if you move a shape, the connector stretches to it.
24+
25+
26+
1. Double click the connector to add text. You can use the mouse to move the text along the connector.
27+
28+
29+
![Add a Connector](../../images/diagram-add-connector.gif)
30+
31+
## Place a Shape Into a Container
32+
33+
You can arrange shapes into collapsible horizontal and vertical containers.
34+
35+
Drag a shape over a container (this highlights the container) and drop the shape.
36+
37+
38+
![Container](../../images/diagram-container.gif)
39+
40+
## Resize a Shape
41+
42+
1. Click a shape to select it.
43+
44+
1. Drag the squares at the shape's borders and corners to resize the shape.
45+
46+
47+
![Resize a Shape](../../images/diagram-resizing.gif)
48+
49+
## Insert an OrgChart Shape (Shape with Image)
50+
51+
1. Drag a shape from the **Org Chart** toolbox group onto the page.
52+
53+
1. Double click the shape to change its text.
54+
55+
56+
1. Right click the shape to invoke the context menu. Select the **Insert Shape Image...** command.
57+
58+
1. Select the shape image and click OK.
59+
60+
To change or delete the image, select the corresponding command in the context menu.
61+
62+
![OrgChart Card](../../images/diagram-orgchart.gif)
63+
64+
## Customize Shape and Connector Style Settings
65+
66+
1. Select a shape, connector, or group of elements.
67+
68+
69+
1. Click the **Properties** button to invoke the **Properties** toolbar.
70+
71+
1. Use the editors on the **Style** tab to customize style settings.
72+
73+
![Customization](../../images/diagram-customization.gif)
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Export to an Image
3+
author: Svetlana Nikulina
4+
---
5+
# Export to an Image
6+
7+
The **Diagram** tool can export its content to the following image formats:
8+
- PNG
9+
- JPEG
10+
- SVG
11+
12+
Click the **Export** command on the **View** toolbar and select a format to download the document.
13+
14+
![Export](../../images/diagram-export.png)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: First Look at the Diagram
3+
author: Svetlana Nikulina
4+
---
5+
# First Look at the Diagram
6+
7+
![Tools](../../images/diagram-tools.png)
8+
9+
## Diagram Tools
10+
11+
- The **History** toolbar contains **Undo** and **Redo** commands that allow you to undo and redo actions. On mobile devises, the toolbar also displays the **Show Toolbox** button that shows/hides the **Toolbox**.
12+
13+
![Show Toolbox Button](../../images/diagram-history-and-toolbox-button.png)
14+
15+
- The **Toolbox** allows you to add shapes to your chart. Select **View** > **Settings** > **Show Toolbox** to change the **Toolbox**'s visibility. On mobile devises, there is an additional **Show Toolbox** button in the **History** toolbar.
16+
17+
18+
- The **Properties** toolbar allows you to [customize shape and connector style settings](create-a-new-chart.md#customize-shape-and-connector-style-settings), change the [chart layout](chart-layout.md), and specify [page settings](page-and-view-settings.md). Click the **Properties** button to display the toolbar.
19+
20+
- The **View** toolbar contains commands related to the **Diagram**'s [view settings](page-and-view-settings.md).
21+
22+
- You can use the **Context Toolbox** to [create a shape at the end of a connector](work-with-chart-elements.md#create-a-shape-via-the-context-toolbox).
23+
24+
![Context Toolbox](../../images/diagram-context-toolbox.png)
25+
26+
- The **Context Menu** appears when you right-click a chart element.
27+
28+
![Context Menu](../../images/diagram-context-menu.png)
29+
30+
On mobile devises, tap a chart element to display the **Context Menu**.
31+
32+
![Mobile Context Menu](../../images/diagram-mobile-context-menu.png)
33+
34+
The table below lists the menu commands.
35+
36+
| Icon | Text | Description |
37+
|---|---|---|
38+
| ![](../../images/diagram-cm-cut.png) | Cut | Cuts the selected elements. |
39+
| ![](../../images/diagram-cm-copy.png) | Copy | Copies the selected elements to the clipboard. |
40+
| ![](../../images/diagram-cm-paste.png) | Paste | Pastes the copied elements from the clipboard. |
41+
| ![](../../images/diagram-cm-delete.png) | Delete | Deletes the selected elements. |
42+
| ![](../../images/diagram-cm-select-all.png) | Selects All | Select all elements in the document. |
43+
| ![](../../images/diagram-cm-front.png) | Bring to Front | Moves the selected elements on top of other overlapping elements. |
44+
| ![](../../images/diagram-cm-back.png) | Send to Back | Moves the selected elements behind other overlapping elements. |
45+
| ![](../../images/diagram-cm-lock.png) | Lock | Locks the selected elements.|
46+
| ![](../../images/diagram-cm-unlock.png) | Unlock | Unlocks the selected elements. |
47+
| ![](../../images/diagram-cm-insert-image.png) | Insert Shape Image... | Shows **Insert Image** dialog. |
48+
| ![](../../images/diagram-cm-change-image.png) | Change Shape Image... | Shows **Change Image** dialog. |
49+
| ![](../../images/diagram-cm-delete-image.png) | Delete Shape Image | Deletes an image from the selected shape. |
50+
51+
## Chart Elements
52+
53+
![Chart Elements](../../images/diagram-chart-elements.png)
54+
55+
- **Shape** - a base chart element.
56+
- **Connector** - a line that connects shapes. If you move a shape, the connector stretches to it.
57+
- **Chart** - a group of shapes linked by connectors. A document can contain several unconnected charts.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: Keyboard Shortcuts
3+
author: Svetlana Nikulina
4+
---
5+
# Keyboard Shortcuts
6+
7+
The table below lists key combinations available in the **Diagram** tool.
8+
9+
| Shortcut | Description |
10+
|---|---|
11+
| Left arrow key | Moves the selected elements one grid cell to the left. |
12+
| Right arrow key | Moves the selected elements one grid cell to the right. |
13+
| Up arrow key | Moves the selected elements one grid cell up. |
14+
| Down arrow key | Moves the selected elements one grid cell down. |
15+
| Shift + Left arrow key | Moves the selected elements one pixel to the left. |
16+
| Shift + Right arrow key | Moves the selected elements one pixel to the right. |
17+
| Shift + Up arrow key | Moves the selected elements one pixel up. |
18+
| Shift + Down arrow key | Moves the selected elements one pixel down. |
19+
| Ctrl+A | Selects all chart elements in the document. |
20+
| Ctrl+C | Copies the selected elements to the clipboard. |
21+
| Ctrl+V | Pastes the copied elements from the clipboard. |
22+
| Ctrl+X | Cuts the selected elements. |
23+
| Delete | Deletes the selected elements. |
24+
| Ctrl+Z | Undoes the last action. |
25+
| Ctrl+Y | Redoes the last undone action. |
26+
| Ctrl+B | Applies bold formatting to the selected text. |
27+
| Ctrl+I | Applies italic formatting to the selected text. |
28+
| Ctrl+U | Underlines the selected text. |
29+
| Ctrl+Enter | Finishes shape/connector text editing. |
30+
| F11 | Switches to full screen. |
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
title: Page and View Settings
3+
author: Svetlana Nikulina
4+
---
5+
# Page and View Settings
6+
7+
The **Diagram** tool divides the work area into pages. Use the commands on the **Properties > Diagram** tab to specify a page's size, orientation, and color.
8+
9+
![Page and View Settings](../../images/diagram-page-settings.png)
10+
11+
## Simple View
12+
In simple view mode, the **Diagram** tool does not divide the work area into pages and a content occupies all the available work area.
13+
14+
To switch to simple view mode, select the **Simple View** command on the **View** toolbar.
15+
16+
![Simple View](../../images/diagram-simple-view.png)
17+
18+
## Grid Settings
19+
20+
Use the following commands on the **View** toolbar to control grid settings.
21+
22+
- **Show Grid** - controls the grid visibility.
23+
- **Snap to Grid** - specifies whether shapes and connectors are snapped to the grid.
24+
25+
![Grid Settings](../../images/diagram-grid-settings.png)
26+
27+
## Full Screen
28+
29+
To switch to full screen mode, click the **Full Screen** command on the **View** toolbar or press F11 while the **Diagram** tool has focus.
30+
31+
![Full Screen](../../images/diagram-full-screen.png)
32+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Select Elements
3+
author: Svetlana Nikulina
4+
---
5+
# Select Elements
6+
7+
- Click a shape or connector to select it.
8+
9+
- Click an element while holding down the Shift key to toggle the element's selected state.
10+
11+
## Select Multiple Elements
12+
13+
To select multiple elements do one of the following.
14+
15+
- Click elements while holding down the Shift key.
16+
- Drag a mouse over elements while holding down the left mouse button. Elements that are inside or cross the selection area, will be selected.
17+
18+
![Selection](../../images/diagram-selection.png)
19+
20+
## Select All
21+
22+
Press Ctrl+A to select all elements in the document.

0 commit comments

Comments
 (0)