Skip to content

Commit 4742f30

Browse files
Integrated latest changes at 12-06-2024 4:30:14 AM
1 parent 690a151 commit 4742f30

File tree

44 files changed

+602
-789
lines changed

Some content is hidden

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

44 files changed

+602
-789
lines changed

ej2-vue/code-snippet/diagram/contextmenu/custom-cs3/app-composition.vue

Lines changed: 0 additions & 79 deletions
This file was deleted.

ej2-vue/code-snippet/diagram/contextmenu/custom-cs3/app.vue

Lines changed: 0 additions & 92 deletions
This file was deleted.

ej2-vue/code-snippet/diagram/contextmenu/custom-cs3/index.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

ej2-vue/code-snippet/diagram/contextmenu/custom-cs3/index.html

Lines changed: 0 additions & 23 deletions
This file was deleted.

ej2-vue/code-snippet/diagram/contextmenu/custom-cs3/index.js

Lines changed: 0 additions & 74 deletions
This file was deleted.

ej2-vue/code-snippet/diagram/contextmenu/custom-cs3/systemjs.config.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

ej2-vue/code-snippet/diagram/export/export-cs3/app-composition.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div id="app">
3-
3+
<button @click="exportNodes">export</button>
44
<label for="Region"> Region: </label>
55
<select id="region" ref="regionSelect" v-on:change="exportItems">
66
<option value="Content">Content</option>
@@ -55,7 +55,8 @@ onMounted(function () {
5555
})
5656
5757
// Function to handle the export button click
58-
const exportItems = () => {
58+
const exportNodes = () => {
59+
const diagramInstance = diagram.value.ej2Instances;
5960
const exportOptions = {};
6061
exportOptions.region = regionSelect.value.value;
6162
if (region === 'CustomBounds') {

ej2-vue/code-snippet/diagram/export/export-cs3/app.vue

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
<template>
22
<div id="app">
3+
<button @click="exportNodes">export</button>
34
<label for="Region"> Region: </label>
4-
<select id="region" ref="regionSelect" v-on:change="exportItems">
5+
<select id="region" ref="regionSelect">
56
<option value="Content">Content</option>
67
<option value="PageSettings">PageSettings</option>
78
<option value="CustomBounds">Custom Bounds</option>
89
</select>
9-
<ejs-diagram id="diagram" ref="diagramObj" :width="width" :height="height" :nodes="nodes"
10-
:snapSettings="snapSettings"></ejs-diagram>
10+
<ejs-diagram id="diagram" ref="diagramObj" :width="width" :height="height" :nodes="nodes" :snapSettings="snapSettings"></ejs-diagram>
1111
</div>
1212
</template>
1313

1414
<script>
15-
import { DiagramComponent, SnapConstraints, PrintAndExport, Rect } from '@syncfusion/ej2-vue-diagrams';
15+
import {
16+
DiagramComponent,
17+
SnapConstraints,
18+
PrintAndExport,
19+
Rect,
20+
} from '@syncfusion/ej2-vue-diagrams';
1621
1722
var diagramInstance;
1823
var nodes = [
@@ -44,15 +49,15 @@ export default {
4449
},
4550
data() {
4651
return {
47-
width: '1000px',
48-
height: '650px',
49-
nodes: nodes,
50-
snapSettings: { constraints: SnapConstraints.None }
52+
width: '1000px',
53+
height: '650px',
54+
nodes: nodes,
55+
snapSettings: { constraints: SnapConstraints.None },
5156
};
5257
},
5358
methods: {
5459
// Function to handle the export button click
55-
exportItems() {
60+
exportNodes() {
5661
const exportOptions = {};
5762
exportOptions.region = this.$refs.regionSelect.value;
5863
if (region === 'CustomBounds') {
@@ -73,5 +78,5 @@ export default {
7378
</script>
7479

7580
<style>
76-
@import "../node_modules/@syncfusion/ej2-vue-diagrams/styles/material.css";
77-
</style>
81+
@import '../node_modules/@syncfusion/ej2-vue-diagrams/styles/material.css';
82+
</style>

0 commit comments

Comments
 (0)