@syncfusion/ej2-vue-diagrams 20.3.61 → 20.4.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +184 -44
- package/dist/ej2-vue-diagrams.umd.min.js +1 -1
- package/dist/global/ej2-vue-diagrams.min.js +2 -2
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
- `#I409589` - Support to override the mouseWheel event has been added.
|
|
10
10
|
|
|
11
|
+
#### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- `I421148` - Now, connector segment does not get split into multiple segment while hover on node.
|
|
14
|
+
- `#I420202` - The issue on annotation interaction has been resolved.
|
|
15
|
+
|
|
11
16
|
## 20.3.60 (2022-12-06)
|
|
12
17
|
|
|
13
18
|
### Diagram
|
package/README.md
CHANGED
|
@@ -1,75 +1,215 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vue Diagram Control
|
|
2
2
|
|
|
3
|
-
The diagram component
|
|
3
|
+
The [Vue Diagram](https://www.syncfusion.com/react-components/react-diagram?utm_source=npm&utm_medium=listing&utm_campaign=react-diagram-npm) component is used for visualizing, creating, and editing interactive diagrams. It supports creating flowcharts, organizational charts, mind maps, floor plans, UML diagrams, and BPMN charts either through code or a visual interface.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://ej2.syncfusion.com/vue/documentation/diagram/getting-started/?utm_source=npm&utm_medium=listing&utm_campaign=vue-diagram-npm">Getting started</a> .
|
|
7
|
+
<a href="https://ej2.syncfusion.com/vue/demos/?utm_source=npm&utm_medium=listing&utm_campaign=vue-diagram-npm#/bootstrap5/diagram/default-functionality">Online demos</a> .
|
|
8
|
+
<a href="https://www.syncfusion.com/vue-components/vue-diagram?utm_source=npm&utm_medium=listing&utm_campaign=vue-diagram-npm">Learn more</a>
|
|
9
|
+
</p>
|
|
6
10
|
|
|
7
|
-
>
|
|
11
|
+
<p align="center">
|
|
12
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/vue/vue-diagram.png" alt="Vue Diagram Control"/>
|
|
13
|
+
</p>
|
|
8
14
|
|
|
9
|
-
>
|
|
15
|
+
<p align="center">
|
|
16
|
+
Trusted by the world's leading companies
|
|
17
|
+
<a href="https://www.syncfusion.com">
|
|
18
|
+
<img src="https://raw.githubusercontent.com/SyncfusionExamples/nuget-img/master/syncfusion/syncfusion-trusted-companies.webp" alt="Bootstrap logo">
|
|
19
|
+
</a>
|
|
20
|
+
</p>
|
|
10
21
|
|
|
11
22
|
## Setup
|
|
12
23
|
|
|
13
|
-
|
|
24
|
+
### Create an Vue Application
|
|
14
25
|
|
|
15
|
-
|
|
16
|
-
|
|
26
|
+
You can use [`Vue CLI`](https://github.com/vuejs/vue-cli) to setup your Vue 2 applications.To install Vue CLI use the following commands.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install -g @vue/cli
|
|
30
|
+
vue create quickstart
|
|
31
|
+
cd quickstart
|
|
32
|
+
npm run serve
|
|
17
33
|
```
|
|
34
|
+
Initiating a new project prompts us to choose the type of project to be used for the current application. Select the option `Default ([Vue 2] babel, eslint)` from the menu.
|
|
18
35
|
|
|
19
|
-
|
|
36
|
+
### Adding Syncfusion Diagram package
|
|
20
37
|
|
|
21
|
-
|
|
22
|
-
* [View Online Demos](https://ej2.syncfusion.com/vue/demos/#/material/diagram/defaultfunctionality.html)
|
|
23
|
-
* [Product Page](https://www.syncfusion.com/vue-ui-components/diagram)
|
|
38
|
+
All Syncfusion Vue packages are published in [npmjs.com](https://www.npmjs.com/~syncfusionorg) registry. To install Vue diagram package, use the following command.
|
|
24
39
|
|
|
25
|
-
|
|
40
|
+
```bash
|
|
41
|
+
npm install @syncfusion/ej2-vue-diagrams --save
|
|
42
|
+
```
|
|
26
43
|
|
|
27
|
-
|
|
44
|
+
### Registering Diagram Component
|
|
45
|
+
|
|
46
|
+
You can register the Diagram component in your application by using the **Vue.use()**. Refer to the code example given below.
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
import { DiagramPlugin } from '@syncfusion/ej2-vue-diagrams';
|
|
50
|
+
|
|
51
|
+
Vue.use(DiagramPlugin);
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
> Registering **DiagramPlugin** in vue, will register the diagram component along with its required child directives globally.
|
|
55
|
+
|
|
56
|
+
### Adding CSS references for Diagram
|
|
57
|
+
|
|
58
|
+
Add CSS references needed for Diagram in **style** section of the **App.vue** file from **../node_modules/@syncfusion** package folder.
|
|
28
59
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
60
|
+
```html
|
|
61
|
+
<style>
|
|
62
|
+
@import "../node_modules/@syncfusion/ej2-diagrams/styles/material.css";
|
|
63
|
+
@import "../node_modules/@syncfusion/ej2-vue-diagrams/styles/material.css";
|
|
64
|
+
@import "../node_modules/@syncfusion/ej2-base/styles/material.css";
|
|
65
|
+
@import "../node_modules/@syncfusion/ej2-popups/styles/material.css";
|
|
66
|
+
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css";
|
|
67
|
+
@import "../node_modules/@syncfusion/ej2-navigations/styles/material.css";
|
|
68
|
+
</style>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Add Diagram Component
|
|
72
|
+
|
|
73
|
+
Add the Vue Diagram by using **ejs-diagram** selector in **template** section of the **App.vue** file.
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<template>
|
|
77
|
+
<div id="app">
|
|
78
|
+
<ejs-diagram id="diagram" :width='width' :height='height' :nodes='nodes' :connectors='connectors'></ejs-diagram>
|
|
79
|
+
</div>
|
|
80
|
+
</template>
|
|
81
|
+
<script>
|
|
82
|
+
import Vue from "vue";
|
|
83
|
+
import { DiagramPlugin } from "@syncfusion/ej2-vue-diagrams";
|
|
84
|
+
|
|
85
|
+
Vue.use(DiagramPlugin);
|
|
86
|
+
|
|
87
|
+
//Initializes the nodes for the diagram
|
|
88
|
+
let nodes: NodeModel[] = [
|
|
89
|
+
{
|
|
90
|
+
id: "begin",
|
|
91
|
+
height: 60,
|
|
92
|
+
offsetX: 300,
|
|
93
|
+
offsetY: 80,
|
|
94
|
+
shape: { type: "Flow", shape: "Terminator" },
|
|
95
|
+
annotations: [
|
|
96
|
+
{
|
|
97
|
+
content: "Begin"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: "process",
|
|
103
|
+
height: 60,
|
|
104
|
+
offsetX: 300,
|
|
105
|
+
offsetY: 160,
|
|
106
|
+
shape: { type: "Flow", shape: "Decision" },
|
|
107
|
+
annotations: [
|
|
108
|
+
{
|
|
109
|
+
content: "Process"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "end",
|
|
115
|
+
height: 60,
|
|
116
|
+
offsetX: 300,
|
|
117
|
+
offsetY: 240,
|
|
118
|
+
shape: { type: "Flow", shape: "Process" },
|
|
119
|
+
annotations: [
|
|
120
|
+
{
|
|
121
|
+
content: "End"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
//Initializes the connector for the diagram
|
|
127
|
+
let connectors: ConnectorModel[] = [
|
|
128
|
+
{ id: "connector1", sourceID: "begin", targetID: "process" },
|
|
129
|
+
{ id: "connector2", sourceID: "process", targetID: "end" },
|
|
130
|
+
];
|
|
131
|
+
|
|
132
|
+
export default {
|
|
133
|
+
data() {
|
|
134
|
+
return {
|
|
135
|
+
width: "100%",
|
|
136
|
+
height: "350px",
|
|
137
|
+
nodes: nodes,
|
|
138
|
+
connectors: connectors
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
}
|
|
142
|
+
</script>
|
|
143
|
+
<style>
|
|
144
|
+
@import "../node_modules/@syncfusion/ej2-diagrams/styles/material.css";
|
|
145
|
+
@import "../node_modules/@syncfusion/ej2-vue-diagrams/styles/material.css";
|
|
146
|
+
@import "../node_modules/@syncfusion/ej2-base/styles/material.css";
|
|
147
|
+
@import "../node_modules/@syncfusion/ej2-popups/styles/material.css";
|
|
148
|
+
@import "../node_modules/@syncfusion/ej2-splitbuttons/styles/material.css";
|
|
149
|
+
@import "../node_modules/@syncfusion/ej2-navigations/styles/material.css";
|
|
150
|
+
</style>
|
|
151
|
+
```
|
|
152
|
+
> Refer the [Getting Started with Vue3](https://ej2.syncfusion.com/vue/documentation/diagram/getting-started-vue-3/) for using Syncfusion Vue components in Vue 3 applications.
|
|
153
|
+
|
|
154
|
+
## Supported frameworks
|
|
155
|
+
|
|
156
|
+
Diagram component is also offered in following list of frameworks.
|
|
35
157
|
|
|
36
|
-
|
|
158
|
+
| [<img src="https://ej2.syncfusion.com/github/images/js.svg" height="50" />](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github)<br/> [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/angular.svg" height="50" />](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github)<br/> [Angular](https://www.syncfusion.com/angular-components/?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/vue.svg" height="50" />](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github)<br/> [Vue](https://www.syncfusion.com/vue-ui-components?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netcore.svg" height="50" />](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_medium=listing&utm_source=github) | [<img src="https://ej2.syncfusion.com/github/images/netmvc.svg" height="50" />](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github)<br/> [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_medium=listing&utm_source=github) |
|
|
159
|
+
| :-----: | :-----: | :-----: | :-----: | :-----: |
|
|
37
160
|
|
|
38
|
-
|
|
161
|
+
## Use case demos
|
|
39
162
|
|
|
163
|
+
* [Vue Diagram Builder demo](https://ej2.syncfusion.com/showcase/vue/diagrambuilder/)
|
|
164
|
+
* [Vue Organizational Chart demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/organization-model.html)
|
|
165
|
+
* [Vue Mind Map demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/mind-map.html)
|
|
166
|
+
* [Vue BPMN Editor demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/bpmn-editor.html)
|
|
167
|
+
* [Vue Logic Circuit Diagram demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/logical-circuit.html)
|
|
168
|
+
* [Vue UML Activity Diagram demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/uml-activity.html)
|
|
169
|
+
* [Vue Network Diagram demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/network-diagram.html)
|
|
170
|
+
* [Vue UML Class Diagram demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/uml-class-diagram.html)
|
|
171
|
+
* [Vue Venn Diagram demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/venn-diagram.html)
|
|
172
|
+
* [Vue Fishbone Diagram demo](https://ej2.syncfusion.com/vue/demos/#/bootstrap5/diagram/fishbone-diagram.html)
|
|
40
173
|
|
|
41
174
|
## Key Features
|
|
42
175
|
|
|
43
|
-
- [**Nodes**](https://ej2.syncfusion.com/vue/demos
|
|
44
|
-
- [**Connectors**](https://ej2.syncfusion.com/vue/demos
|
|
45
|
-
- [**Labels**](https://ej2.syncfusion.com/vue/demos
|
|
46
|
-
|
|
47
|
-
- [**
|
|
48
|
-
- [**
|
|
49
|
-
- [**
|
|
50
|
-
- [**
|
|
51
|
-
- [**
|
|
52
|
-
- [**
|
|
53
|
-
- [**
|
|
176
|
+
- [**Nodes**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/node.html) - Nodes are used to host graphical objects (path or controls) that can be arranged and manipulated on a diagram page. Many predefined standard shapes are included. Custom shapes can also be created and added easily.
|
|
177
|
+
- [**Connectors**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/connector.html) - The relationship between two nodes is represented using a connector.
|
|
178
|
+
- [**Labels**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/annotation.html)- Labels are used to annotate nodes and connectors.
|
|
179
|
+
* [**Ports**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/port.html) - Ports act as the connection points of the node and allows to create connections with only those specific points.
|
|
180
|
+
- [**Interactive Features**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/drawing-tool.html) - Interactive features are used to improve the run time editing experience of a diagram.
|
|
181
|
+
- [**Data Binding**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/local-data.html) - Generates diagram with nodes and connectors based on the information provided from an external data source.
|
|
182
|
+
- [**Commands**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/keyboard-functions.html) - Supports a set of predefined commands that helps edit the diagram using keyboard. It is also possible to configure new commands and key combinations.
|
|
183
|
+
- [**Automatic Layout**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/hierarchical-model.html) - Automatic layouts are used to arrange nodes automatically based on a predefined layout logic. There is built-in support for organizational chart layout, hierarchical tree layout, symmetric layout, radial tree layout, and mind map layout.
|
|
184
|
+
- [**Overview Panel**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/overview.html) - The overview panel is used to improve navigation experience when exploring large diagrams.
|
|
185
|
+
- [**SymbolPalettes**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/symbol-palette.html) - The symbol palette is a gallery of reusable symbols and nodes that can be dragged and dropped on the surface of a diagram.
|
|
186
|
+
- [**Rulers**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/drawing-tool.html) - The ruler provides horizontal and vertical guides for measuring diagram objects in diagram control.
|
|
187
|
+
- [**Serialization**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/serialization.html) - When saved in JSON format a diagram’s state persists, and then it can be loaded back using serialization.
|
|
54
188
|
- [**Exporting and Printing**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/print-export.html) - Diagrams can be exported as .png, .jpeg, .bmp, and .svg image files, and can also be printed as documents.
|
|
55
|
-
- [**Gridlines**](https://ej2.syncfusion.com/vue/demos
|
|
56
|
-
- [**Page Layout**](https://ej2.syncfusion.com/vue/demos
|
|
57
|
-
- [**Context Menu**](https://ej2.syncfusion.com/vue/demos
|
|
189
|
+
- [**Gridlines**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/default-functionality.html) - Gridlines are the pattern of lines drawn behind diagram elements. It provides a visual guidance while dragging or arranging the objects on a diagram surface.
|
|
190
|
+
- [**Page Layout**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/print-export.html)- The drawing surface can be configured to page-like appearance using page size, orientation, and margins.
|
|
191
|
+
- [**Context Menu**](https://ej2.syncfusion.com/vue/demos/#/material/diagram/keyboard-functions.html) - Frequently used commands can easily be mapped to the context menu.
|
|
58
192
|
|
|
59
193
|
## Support
|
|
60
194
|
|
|
61
|
-
Product support is available
|
|
195
|
+
Product support is available through the following mediums.
|
|
62
196
|
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
197
|
+
* [Support ticket](https://support.syncfusion.com/support/tickets/create) - Guaranteed Response in 24 hours | Unlimited tickets | Holiday support
|
|
198
|
+
* [Community forum](https://www.syncfusion.com/forums/vue?utm_source=npm&utm_medium=listing&utm_campaign=vue-diagram-npm)
|
|
199
|
+
* [GitHub issues](https://github.com/syncfusion/ej2-vue-ui-components/issues/new)
|
|
200
|
+
* [Request feature or report bug](https://www.syncfusion.com/feedback/vue?utm_source=npm&utm_medium=listing&utm_campaign=vue-diagram-npm)
|
|
201
|
+
* Live chat
|
|
66
202
|
|
|
67
|
-
##
|
|
203
|
+
## Changelog
|
|
68
204
|
|
|
69
|
-
Check the
|
|
205
|
+
Check the changelog [here](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/components/diagrams/CHANGELOG.md). Get minor improvements and bug fixes every week to stay up to date with frequent updates.
|
|
70
206
|
|
|
71
|
-
##
|
|
207
|
+
## License and copyright
|
|
208
|
+
|
|
209
|
+
> This is a commercial product and requires a paid license for possession or use. Syncfusion’s licensed software, including this component, is subject to the terms and conditions of Syncfusion's [EULA](https://www.syncfusion.com/eula/es/). To acquire a license for 80+ [Vue UI components](https://www.syncfusion.com/vue-components), you can [purchase](https://www.syncfusion.com/sales/products) or [start a free 30-day trial](https://www.syncfusion.com/account/manage-trials/start-trials).
|
|
210
|
+
|
|
211
|
+
> A free community [license](https://www.syncfusion.com/products/communitylicense) is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
|
|
72
212
|
|
|
73
|
-
|
|
213
|
+
See [LICENSE FILE](https://github.com/syncfusion/ej2-vue-ui-components/blob/master/license?utm_source=npm&utm_medium=listing&utm_campaign=vue-diagram-npm) for more info.
|
|
74
214
|
|
|
75
215
|
© Copyright 2022 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-vue-diagrams.umd.min.js
|
|
3
|
-
* version : 20.
|
|
3
|
+
* version : 20.4.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|