891562: public repo
This commit is contained in:
Родитель
68980201ea
Коммит
62509a29b4
|
@ -315,4 +315,4 @@ namespace SyncfusionWebApp3.Controllers
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -755,32 +755,32 @@
|
|||
<div class="row db-prop-row">
|
||||
<div class="col-xs-6 org-pattern-parent">
|
||||
<div onclick="OrgChartPropertyBinding.prototype.layoutOrientationChange(event)" class="org-pattern-style org-pattern-1 vertical-alternate"
|
||||
style="background-image: url('css/assets/dbstyle/orgchart_images/org-pattern1.svg')">
|
||||
style="background-image: url('./css/assets/dbstyle/orgchart_images/org-pattern1.svg')">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-6 org-pattern-parent">
|
||||
<div onclick="OrgChartPropertyBinding.prototype.layoutOrientationChange(event)" class="org-pattern-style org-pattern-2 vertical-left"
|
||||
style="background-image: url('css/assets/dbstyle/orgchart_images/org-pattern2.svg')"></div>
|
||||
style="background-image: url('./css/assets/dbstyle/orgchart_images/org-pattern2.svg')"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row db-prop-row" style="margin-top:5px">
|
||||
<div class="col-xs-6 org-pattern-parent">
|
||||
<div onclick="OrgChartPropertyBinding.prototype.layoutOrientationChange(event)" class="org-pattern-style org-pattern-3 vertical-right"
|
||||
style="background-image: url('css/assets/dbstyle/orgchart_images/org-pattern3.svg')"></div>
|
||||
style="background-image: url('./css/assets/dbstyle/orgchart_images/org-pattern3.svg')"></div>
|
||||
</div>
|
||||
<div class="col-xs-6 org-pattern-parent">
|
||||
<div onclick="OrgChartPropertyBinding.prototype.layoutOrientationChange(event)" class="org-pattern-style org-pattern-4 horizontal-center"
|
||||
style="background-image: url('css/assets/dbstyle/orgchart_images/org-pattern4.svg')"></div>
|
||||
style="background-image: url('./css/assets/dbstyle/orgchart_images/org-pattern4.svg')"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row db-prop-row" style="margin-top:5px">
|
||||
<div class="col-xs-6 org-pattern-parent">
|
||||
<div onclick="OrgChartPropertyBinding.prototype.layoutOrientationChange(event)" class="org-pattern-style org-pattern-5 horizontal-right"
|
||||
style="background-image: url('css/assets/dbstyle/orgchart_images/org-pattern5.svg');"></div>
|
||||
style="background-image: url('./css/assets/dbstyle/orgchart_images/org-pattern5.svg');"></div>
|
||||
</div>
|
||||
<div class="col-xs-6 org-pattern-parent">
|
||||
<div onclick="OrgChartPropertyBinding.prototype.layoutOrientationChange(event)" class="org-pattern-style org-pattern-6 horizontal-left"
|
||||
style="background-image: url('css/assets/dbstyle/orgchart_images/org-pattern6.svg')"></div>
|
||||
style="background-image: url('./css/assets/dbstyle/orgchart_images/org-pattern6.svg')"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="db-prop-separator">
|
||||
|
@ -1157,7 +1157,7 @@
|
|||
</ejs-listview>
|
||||
</div>
|
||||
<div class="col-xs-9 diagramTemplates temp-right-pane" style="padding-left:0px;padding-right:0px">
|
||||
<img id="shapePreviewImage" src="css/assets/dbstyle/shapes_images/flow.png" />
|
||||
<img id="shapePreviewImage" src="./css/assets/dbstyle/shapes_images/flow.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Create flowchart, mind map, org chart with syncfusion diagram builder</title>
|
||||
<link rel="icon" type="image/x-icon" href="~/favicon.ico" />
|
||||
<base href = "/" />
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
|
||||
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>
|
||||
<link href="~/css/assets/index.css" rel="stylesheet" />
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -7,32 +7,32 @@ var DownloadExampleFiles = (function () {
|
|||
{
|
||||
'Name': 'Maria Anders', 'EmployeeID': '1', 'Role': 'Managing Director', 'Department': '',
|
||||
'Location': 'US', 'Phone': '(555) 111-1111', 'Email': 'mariaanders@fakecompany.com', 'Supervisor Name': '',
|
||||
'Supervisor ID': '', 'Image URL': 'css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
'Supervisor ID': '', 'Image URL': './css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
},
|
||||
{
|
||||
'Name': 'Carine Schmitt', 'EmployeeID': '2', 'Role': 'Project Manager', 'Department': 'Development',
|
||||
'Location': 'US', 'Phone': '(555) 222-2222', 'Email': 'carineschmitt@fakecompany.com', 'Supervisor Name': 'Maria Anders',
|
||||
'Supervisor ID': '1', 'Image URL': 'css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
'Supervisor ID': '1', 'Image URL': './css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
},
|
||||
{
|
||||
'Name': 'Daniel Tonini', 'EmployeeID': '3', 'Role': 'Project Manager', 'Department': 'Development',
|
||||
'Location': 'US', 'Phone': '(555) 333-3333', 'Email': 'danieltonini@fakecompany.com', 'Supervisor Name': 'Maria Anders',
|
||||
'Supervisor ID': '1', 'Image URL': 'css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
'Supervisor ID': '1', 'Image URL': './css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
},
|
||||
{
|
||||
'Name': 'Alex Camino', 'EmployeeID': '4', 'Role': 'Project Lead', 'Department': 'Development',
|
||||
'Location': 'US', 'Phone': '(555) 444-4444', 'Email': 'alexcamino@fakecompany.com', 'Supervisor Name': 'Daniel Tonini',
|
||||
'Supervisor ID': '3', 'Image URL': 'css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
'Supervisor ID': '3', 'Image URL': './css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
},
|
||||
{
|
||||
'Name': 'Jones Bergson', 'EmployeeID': '5', 'Role': 'Project Lead', 'Department': 'Development',
|
||||
'Location': 'US', 'Phone': '(555) 555-5555', 'Email': 'jonesbergson@fakecompany.com', 'Supervisor Name': 'Daniel Tonini',
|
||||
'Supervisor ID': '3', 'Image URL': 'css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
'Supervisor ID': '3', 'Image URL': './css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
},
|
||||
{
|
||||
'Name': 'Rene Phillips', 'EmployeeID': '6', 'Role': 'Project Lead', 'Department': 'Development',
|
||||
'Location': 'US', 'Phone': '(555) 666-6666', 'Email': 'renephillips@fakecompany.com', 'Supervisor Name': 'Daniel Tonini',
|
||||
'Supervisor ID': '3', 'Image URL': 'css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
'Supervisor ID': '3', 'Image URL': './css/assets/dbstyle/orgchart_images/blank-male.jpg'
|
||||
},
|
||||
];
|
||||
return data;
|
||||
|
@ -79,12 +79,12 @@ var DownloadExampleFiles = (function () {
|
|||
};
|
||||
DownloadExampleFiles.prototype.downloadXML = function () {
|
||||
var xmltext = '<?xml version="1.0" encoding="utf-8" ?><people>' +
|
||||
'<person Name="Maria Anders" Role="Managing Director" Location="US" Phone="(555) 111-1111" Email="mariaanders@fakecompany.com" ImageURL="css/assets/dbstyle/orgchart_images/blank-male.jpg">' +
|
||||
'<person Name="Carine Schmitt" Role="Project Manager" Department="Development" Location="US" Phone="(555) 222-2222" Email="carineschmitt@fakecompany.com" SupervisorName="Maria Anders" ImageURL="css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Daniel Tonini" Role="Project Manager" Department="Development" Location="US" Phone="(555) 333-3333" Email="danieltonini@fakecompany.com" SupervisorName="Maria Anders" ImageURL="css/assets/dbstyle/orgchart_images/blank-male.jpg">' +
|
||||
'<person Name="Alex Camino" Role="Project Manager" Department="Development" Location="US" Phone="(555) 444-4444" Email="alexcamino@fakecompany.com" SupervisorName="Daniel Tonini" ImageURL="css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Jones Bergson" Role="Project Lead" Department="Development" Location="US" Phone="(555) 555-5555" Email="jonesbergson@fakecompany.com" SupervisorName="Daniel Tonini" ImageURL="css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Rene Phillips" Role="Project Lead" Department="Development" Location="US" Phone="(555) 666-6666" Email="renephillips@fakecompany.com" SupervisorName="Daniel Tonini" ImageURL="css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Maria Anders" Role="Managing Director" Location="US" Phone="(555) 111-1111" Email="mariaanders@fakecompany.com" ImageURL="./css/assets/dbstyle/orgchart_images/blank-male.jpg">' +
|
||||
'<person Name="Carine Schmitt" Role="Project Manager" Department="Development" Location="US" Phone="(555) 222-2222" Email="carineschmitt@fakecompany.com" SupervisorName="Maria Anders" ImageURL="./css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Daniel Tonini" Role="Project Manager" Department="Development" Location="US" Phone="(555) 333-3333" Email="danieltonini@fakecompany.com" SupervisorName="Maria Anders" ImageURL="./css/assets/dbstyle/orgchart_images/blank-male.jpg">' +
|
||||
'<person Name="Alex Camino" Role="Project Manager" Department="Development" Location="US" Phone="(555) 444-4444" Email="alexcamino@fakecompany.com" SupervisorName="Daniel Tonini" ImageURL="./css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Jones Bergson" Role="Project Lead" Department="Development" Location="US" Phone="(555) 555-5555" Email="jonesbergson@fakecompany.com" SupervisorName="Daniel Tonini" ImageURL="./css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'<person Name="Rene Phillips" Role="Project Lead" Department="Development" Location="US" Phone="(555) 666-6666" Email="renephillips@fakecompany.com" SupervisorName="Daniel Tonini" ImageURL="./css/assets/dbstyle/orgchart_images/blank-male.jpg"></person>' +
|
||||
'</person>' +
|
||||
'</person>' +
|
||||
'</people>';
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -829,7 +829,7 @@ function btnMoreShapes(args) {
|
|||
}
|
||||
|
||||
function listViewSelectionChange(args) {
|
||||
document.getElementById('shapePreviewImage').src = 'css/assets/dbstyle/shapes_images/' + args.text.toLowerCase() + '.png';
|
||||
document.getElementById('shapePreviewImage').src = './css/assets/dbstyle/shapes_images/' + args.text.toLowerCase() + '.png';
|
||||
}
|
||||
function SegmentEditing(args){
|
||||
if(diagram.selectedItems.connectors){
|
||||
|
|
|
@ -400,7 +400,7 @@ var OrgChartUtilityMethods = (function () {
|
|||
};
|
||||
node.constraints = ej.diagrams.NodeConstraints.Default | ej.diagrams.NodeConstraints.AllowDrop;
|
||||
if (parentNode.shape && parentNode.shape.type === 'Image') {
|
||||
node.shape = { type: 'Image', source: 'css/assets/dbstyle/orgchart_images/blank-male.jpg', align: 'XMinYMin', scale: 'Meet' };
|
||||
node.shape = { type: 'Image', source: './css/assets/dbstyle/orgchart_images/blank-male.jpg', align: 'XMinYMin', scale: 'Meet' };
|
||||
}
|
||||
else {
|
||||
node.shape = { type: 'Basic', shape: 'Rectangle', cornerRadius: 5 };
|
||||
|
|
|
@ -11,28 +11,28 @@ var PaperSize = (function () {
|
|||
var UtilityMethods = (function () {
|
||||
function UtilityMethods() {
|
||||
this.flowChartImage = [
|
||||
{ source: 'css/assets/dbstyle/common_images/blank_diagram.svg', name: 'Blank Diagram', type: 'svg_blank' },
|
||||
{ source: 'css/assets/dbstyle/flowchart_Images/Credit_Card_Processing.svg', name: 'Credit Card Processing', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/flowchart_Images/Bank_Teller_Flow.svg', name: 'Banking Teller Process Flow', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/flowchart_Images/Developer_Workflow.SVG', name: 'Agile"s Developer Workflow', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/common_images/blank_diagram.svg', name: 'Blank Diagram', type: 'svg_blank' },
|
||||
{ source: './css/assets/dbstyle/flowchart_Images/Credit_Card_Processing.svg', name: 'Credit Card Processing', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/flowchart_Images/Bank_Teller_Flow.svg', name: 'Banking Teller Process Flow', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/flowchart_Images/Developer_Workflow.SVG', name: 'Agile"s Developer Workflow', type: 'svg_image' },
|
||||
];
|
||||
this.mindMapImage = [
|
||||
{ source: 'css/assets/dbstyle/common_images/blank_diagram_mind.svg', name: 'Blank Diagram', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/mindmap_images/BusinessPlanning.SVG', name: 'Business Planning', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/mindmap_images/TQM.SVG', name: 'Quality Management', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/mindmap_images/SoftwareLifeCycle.SVG', name: 'Software Life Cycle', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/common_images/blank_diagram_mind.svg', name: 'Blank Diagram', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/mindmap_images/BusinessPlanning.SVG', name: 'Business Planning', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/mindmap_images/TQM.SVG', name: 'Quality Management', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/mindmap_images/SoftwareLifeCycle.SVG', name: 'Software Life Cycle', type: 'svg_image' },
|
||||
];
|
||||
this.orgChartImage = [
|
||||
{ source: 'css/assets/dbstyle/common_images/blank_diagram_org.svg', name: 'Blank Diagram', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/orgchart_images/OrgRenderingStyle_1.svg', name: 'Org Template Style - 1', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/orgchart_images/OrgRenderingStyle_2.svg', name: 'Org Template Style - 2', type: 'svg_image' },
|
||||
{ source: 'css/assets/dbstyle/orgchart_images/OrgRenderingStyle_3.svg', name: 'Org Template Style - 3', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/common_images/blank_diagram_org.svg', name: 'Blank Diagram', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/orgchart_images/OrgRenderingStyle_1.svg', name: 'Org Template Style - 1', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/orgchart_images/OrgRenderingStyle_2.svg', name: 'Org Template Style - 2', type: 'svg_image' },
|
||||
{ source: './css/assets/dbstyle/orgchart_images/OrgRenderingStyle_3.svg', name: 'Org Template Style - 3', type: 'svg_image' },
|
||||
];
|
||||
this.bpmnImage = [
|
||||
{ source: 'css/assets/dbstyle/common_images/blank_diagram.svg', name: 'Blank Diagram', type: 'svg_blank' },
|
||||
{ source: 'css/assets/dbstyle/bpmn_images/Template1.png', name: 'BPMN Diagram 1' },
|
||||
{ source: 'css/assets/dbstyle/bpmn_images/Template1.png', name: 'BPMN Diagram 2' },
|
||||
{ source: 'css/assets/dbstyle/bpmn_images/Template1.png', name: 'BPMN Diagram 3' },
|
||||
{ source: './css/assets/dbstyle/common_images/blank_diagram.svg', name: 'Blank Diagram', type: 'svg_blank' },
|
||||
{ source: './css/assets/dbstyle/bpmn_images/Template1.png', name: 'BPMN Diagram 1' },
|
||||
{ source: './css/assets/dbstyle/bpmn_images/Template1.png', name: 'BPMN Diagram 2' },
|
||||
{ source: './css/assets/dbstyle/bpmn_images/Template1.png', name: 'BPMN Diagram 3' },
|
||||
]
|
||||
this.fillColorCode = ['#C4F2E8', '#F7E0B3', '#E5FEE4', '#E9D4F1', '#D4EFED', '#DEE2FF'];
|
||||
this.borderColorCode = ['#8BC1B7', '#E2C180', '#ACCBAA', '#D1AFDF', '#90C8C2', '#BBBFD6'];
|
||||
|
@ -341,17 +341,17 @@ var UtilityMethods = (function () {
|
|||
}
|
||||
else if (target.id === 'mindmap_child1') {
|
||||
mindMapObject.createMindMap(false);
|
||||
this.readTextFile('css/assets/dbstyle/mindmap_images/BusinessPlanning.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/mindmap_images/BusinessPlanning.json', selectedItem);
|
||||
MindMapUtilityMethods.templateType = 'template1';
|
||||
}
|
||||
else if (target.id === 'mindmap_child2') {
|
||||
mindMapObject.createMindMap(false);
|
||||
this.readTextFile('css/assets/dbstyle/mindmap_images/TQM.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/mindmap_images/TQM.json', selectedItem);
|
||||
MindMapUtilityMethods.templateType = 'template2';
|
||||
}
|
||||
else if (target.id === 'mindmap_child3') {
|
||||
mindMapObject.createMindMap(false);
|
||||
this.readTextFile('css/assets/dbstyle/mindmap_images/SoftwareDevelopmentLifeCycle.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/mindmap_images/SoftwareDevelopmentLifeCycle.json', selectedItem);
|
||||
MindMapUtilityMethods.templateType = 'template1';
|
||||
}
|
||||
this.hideMenuItems();
|
||||
|
@ -369,15 +369,15 @@ var UtilityMethods = (function () {
|
|||
OrgChartUtilityMethods.subTreeAlignments = 'Center';
|
||||
if (target.id === 'orgchart_child1') {
|
||||
orgChartObject.createOrgChart(false);
|
||||
this.readTextFile('css/assets/dbstyle/orgchart_images/OrgTemplateStyle1.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/orgchart_images/OrgTemplateStyle1.json', selectedItem);
|
||||
}
|
||||
else if (target.id === 'orgchart_child2') {
|
||||
orgChartObject.createOrgChart(false);
|
||||
this.readTextFile('css/assets/dbstyle/orgchart_images/OrgTemplateStyle2.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/orgchart_images/OrgTemplateStyle2.json', selectedItem);
|
||||
}
|
||||
else if (target.id === 'orgchart_child3') {
|
||||
orgChartObject.createOrgChart(false);
|
||||
this.readTextFile('css/assets/dbstyle/orgchart_images/OrgTemplateStyle3.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/orgchart_images/OrgTemplateStyle3.json', selectedItem);
|
||||
}
|
||||
}
|
||||
this.hideMenuItems();
|
||||
|
@ -388,13 +388,13 @@ var UtilityMethods = (function () {
|
|||
selectedItem.selectedDiagram.clear();
|
||||
}
|
||||
else if (target.id === 'flowchart_child1') {
|
||||
this.readTextFile('css/assets/dbstyle/flowchart_Images/CreditCardFlow.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/flowchart_Images/CreditCardFlow.json', selectedItem);
|
||||
}
|
||||
else if (target.id === 'flowchart_child2') {
|
||||
this.readTextFile('css/assets/dbstyle/flowchart_Images/BankingTellerProcess.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/flowchart_Images/BankingTellerProcess.json', selectedItem);
|
||||
}
|
||||
else if (target.id === 'flowchart_child3') {
|
||||
this.readTextFile('css/assets/dbstyle/flowchart_Images/Developer_Workflow.json', selectedItem);
|
||||
this.readTextFile('./css/assets/dbstyle/flowchart_Images/Developer_Workflow.json', selectedItem);
|
||||
}
|
||||
selectedItem.diagramType = 'GeneralDiagram';
|
||||
diagramContainer.classList.add('general-diagram');
|
||||
|
@ -750,7 +750,7 @@ var UtilityMethods = (function () {
|
|||
node.maxHeight = 100;
|
||||
selectedItem.selectedDiagram.dataBind();
|
||||
node.shape = {
|
||||
type: 'Image', source: nodeInfo[propName] && nodeInfo[propName].value ? nodeInfo[propName].value.toString() : 'css/assets/dbstyle/orgchart_images/blank-male.jpg',
|
||||
type: 'Image', source: nodeInfo[propName] && nodeInfo[propName].value ? nodeInfo[propName].value.toString() : './css/assets/dbstyle/orgchart_images/blank-male.jpg',
|
||||
align: 'XMinYMin', scale: 'Meet'
|
||||
};
|
||||
selectedItem.selectedDiagram.dataBind();
|
||||
|
|
Загрузка…
Ссылка в новой задаче