9.0.9 release
This commit is contained in:
parent
8255394e1f
commit
3d9619a3f9
29 changed files with 3808 additions and 2335 deletions
|
@ -1,3 +1,9 @@
|
|||
27-AUG-2018: 9.0.9
|
||||
|
||||
- Uses mxGraph 3.9.9 beta 8
|
||||
- Adds new color palette
|
||||
- GCP stencil updates
|
||||
|
||||
23-AUG-2018: 9.0.8
|
||||
|
||||
- Fixes XSS vulnerability in Trello Power-Up
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
9.0.8
|
||||
9.0.9
|
|
@ -1453,8 +1453,9 @@ mxConnectionHandler.prototype.getTargetPerimeterPoint=function(a,b){var c=null,d
|
|||
mxConnectionHandler.prototype.getSourcePerimeterPoint=function(a,b,c){c=null;var d=a.view,e=d.getPerimeterFunction(a),f=new mxPoint(a.getCenterX(),a.getCenterY());if(null!=e){var g=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0),k=Math.PI/180*-g;0!=g&&(b=mxUtils.getRotatedPoint(new mxPoint(b.x,b.y),Math.cos(k),Math.sin(k),f));a=e(d.getPerimeterBounds(a),a,b,!1);null!=a&&(0!=g&&(a=mxUtils.getRotatedPoint(new mxPoint(a.x,a.y),Math.cos(-k),Math.sin(-k),f)),c=a)}else c=f;return c};
|
||||
mxConnectionHandler.prototype.updateIcons=function(a,b,c){};mxConnectionHandler.prototype.isStopEvent=function(a){return null!=a.getState()};
|
||||
mxConnectionHandler.prototype.addWaypointForEvent=function(a){var b=mxUtils.convertPoint(this.graph.container,a.getX(),a.getY()),c=Math.abs(b.x-this.first.x),b=Math.abs(b.y-this.first.y);if(null!=this.waypoints||1<this.mouseDownCounter&&(c>this.graph.tolerance||b>this.graph.tolerance))null==this.waypoints&&(this.waypoints=[]),c=this.graph.view.scale,b=new mxPoint(this.graph.snap(a.getGraphX()/c)*c,this.graph.snap(a.getGraphY()/c)*c),this.waypoints.push(b)};
|
||||
mxConnectionHandler.prototype.mouseUp=function(a,b){if(!b.isConsumed()&&this.isConnecting()){if(this.waypointsEnabled&&!this.isStopEvent(b)){this.addWaypointForEvent(b);b.consume();return}if(null==this.error){var c=null!=this.previous?this.previous.cell:null,d=null;null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus&&(d=this.constraintHandler.currentFocus.cell);null==d&&null!=this.currentState&&(d=this.currentState.cell);this.connect(c,d,b.getEvent(),b.getCell())}else null!=
|
||||
this.previous&&null!=this.marker.validState&&this.previous.cell==this.marker.validState.cell&&this.graph.selectCellForEvent(this.marker.source,evt),0<this.error.length&&this.graph.validationAlert(this.error);this.destroyIcons();b.consume()}null!=this.first&&this.reset()};
|
||||
mxConnectionHandler.prototype.checkConstraints=function(a,b){return null==a||null==b||null==a.point||null==b.point||!a.point.equals(b.point)||a.perimeter!=b.perimeter};
|
||||
mxConnectionHandler.prototype.mouseUp=function(a,b){if(!b.isConsumed()&&this.isConnecting()){if(this.waypointsEnabled&&!this.isStopEvent(b)){this.addWaypointForEvent(b);b.consume();return}var c=this.sourceConstraint,d=this.constraintHandler.currentConstraint;null==this.error&&this.checkConstraints(c,d)?(c=null!=this.previous?this.previous.cell:null,d=null,null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus&&(d=this.constraintHandler.currentFocus.cell),null==d&&
|
||||
null!=this.currentState&&(d=this.currentState.cell),this.connect(c,d,b.getEvent(),b.getCell())):(null!=this.previous&&null!=this.marker.validState&&this.previous.cell==this.marker.validState.cell&&this.graph.selectCellForEvent(this.marker.source,b.getEvent()),null!=this.error&&0<this.error.length&&this.graph.validationAlert(this.error));this.destroyIcons();b.consume()}null!=this.first&&this.reset()};
|
||||
mxConnectionHandler.prototype.reset=function(){null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.cursor&&null!=this.graph.container&&(this.graph.container.style.cursor="");this.destroyIcons();this.marker.reset();this.constraintHandler.reset();this.sourceConstraint=this.error=this.previous=this.edgeState=this.currentPoint=this.originalPoint=null;this.mouseDownCounter=0;this.first=null;this.fireEvent(new mxEventObject(mxEvent.RESET))};
|
||||
mxConnectionHandler.prototype.drawPreview=function(){this.updatePreview(null==this.error);this.shape.redraw()};mxConnectionHandler.prototype.updatePreview=function(a){this.shape.strokewidth=this.getEdgeWidth(a);this.shape.stroke=this.getEdgeColor(a)};mxConnectionHandler.prototype.getEdgeColor=function(a){return a?mxConstants.VALID_COLOR:mxConstants.INVALID_COLOR};mxConnectionHandler.prototype.getEdgeWidth=function(a){return a?3:1};
|
||||
mxConnectionHandler.prototype.connect=function(a,b,c,d){if(null!=b||this.isCreateTarget(c)||this.graph.allowDanglingEdges){var e=this.graph.getModel(),f=!1,g=null;e.beginUpdate();try{if(null!=a&&null==b&&!this.graph.isIgnoreTerminalEvent(c)&&this.isCreateTarget(c)&&(b=this.createTargetVertex(c,a),null!=b)){d=this.graph.getDropTarget([b],c,d);f=!0;if(null!=d&&this.graph.getModel().isEdge(d))d=this.graph.getDefaultParent();else{var k=this.graph.getView().getState(d);if(null!=k){var l=e.getGeometry(b);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
CACHE MANIFEST
|
||||
|
||||
# THIS FILE WAS GENERATED. DO NOT MODIFY!
|
||||
# 08/23/2018 04:42 PM
|
||||
# 08/27/2018 04:58 PM
|
||||
|
||||
app.html
|
||||
index.html?offline=1
|
||||
|
|
|
@ -113,27 +113,27 @@ function createWindow (opt = {})
|
|||
mainWindow.webContents.on('did-fail-load', function(err)
|
||||
{
|
||||
let ourl = url.format(
|
||||
{
|
||||
pathname: `${__dirname}/index.html`,
|
||||
protocol: 'file:',
|
||||
query:
|
||||
{
|
||||
pathname: `${__dirname}/index.html`,
|
||||
protocol: 'file:',
|
||||
query:
|
||||
{
|
||||
'dev': __DEV__ ? 1 : 0,
|
||||
'drawdev': __DEV__ ? 1 : 0,
|
||||
'test': __DEV__ ? 1 : 0,
|
||||
'db': 0,
|
||||
'gapi': 0,
|
||||
'od': 0,
|
||||
'gh': 0,
|
||||
'tr': 0,
|
||||
'analytics': 0,
|
||||
'picker': 0,
|
||||
'mode': 'device',
|
||||
'browser': 0,
|
||||
'export': 'https://exp.draw.io/ImageExport4/export'
|
||||
},
|
||||
slashes: true,
|
||||
})
|
||||
'dev': __DEV__ ? 1 : 0,
|
||||
'drawdev': __DEV__ ? 1 : 0,
|
||||
'test': __DEV__ ? 1 : 0,
|
||||
'db': 0,
|
||||
'gapi': 0,
|
||||
'od': 0,
|
||||
'gh': 0,
|
||||
'tr': 0,
|
||||
'analytics': 0,
|
||||
'picker': 0,
|
||||
'mode': 'device',
|
||||
'browser': 0,
|
||||
'export': 'https://exp.draw.io/ImageExport4/export'
|
||||
},
|
||||
slashes: true,
|
||||
})
|
||||
|
||||
mainWindow.loadURL(ourl)
|
||||
})
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 133 KiB |
1589
src/main/webapp/js/app.min.js
vendored
1589
src/main/webapp/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
795
src/main/webapp/js/atlas-viewer.min.js
vendored
795
src/main/webapp/js/atlas-viewer.min.js
vendored
File diff suppressed because one or more lines are too long
956
src/main/webapp/js/atlas.min.js
vendored
956
src/main/webapp/js/atlas.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3868,7 +3868,7 @@ var PopupDialog = function(editorUi, url, pre, fallback, hideDialog)
|
|||
pre();
|
||||
}
|
||||
|
||||
editorUi.openLink(url);
|
||||
editorUi.openLink(url, null, true);
|
||||
});
|
||||
wndBtn.className = 'geBtn gePrimaryBtn';
|
||||
wndBtn.style.width = replaceBtn.style.width;
|
||||
|
|
|
@ -1000,6 +1000,10 @@
|
|||
{fill: '#dae8fc', stroke: '#6c8ebf'}, {fill: '#d5e8d4', stroke: '#82b366'},
|
||||
{fill: '#ffe6cc', stroke: '#d79b00'}, {fill: '#fff2cc', stroke: '#d6b656'},
|
||||
{fill: '#f8cecc', stroke: '#b85450'}, {fill: '#e1d5e7', stroke: '#9673a6'}],
|
||||
[null, {fill: mxConstants.NONE, stroke: '#36393d'},
|
||||
{fill: '#fad7ac', stroke: '#b46504'}, {fill: '#fad9d5', stroke: '#ae4132'},
|
||||
{fill: '#b0e3e6', stroke: '#0e8088'}, {fill: '#b1ddf0', stroke: '#10739e'},
|
||||
{fill: '#d0cee2', stroke: '#56517e'}, {fill: '#bac8d3', stroke: '#23445d'}],
|
||||
[null,
|
||||
{fill: '#f5f5f5', stroke: '#666666', gradient: '#b3b3b3'},
|
||||
{fill: '#dae8fc', stroke: '#6c8ebf', gradient: '#7ea6e0'},
|
||||
|
@ -1029,6 +1033,9 @@
|
|||
}
|
||||
|
||||
styleFormatPanelInit.apply(this, arguments);
|
||||
|
||||
if (urlParams['properties'] == '1')
|
||||
this.container.appendChild(this.addProperties(this.createPanel(), sstate));
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1065,6 +1072,250 @@
|
|||
return styleFormatPanelAddStyleOps.apply(this, arguments);
|
||||
};
|
||||
|
||||
/**
|
||||
* Create Properties Panel
|
||||
*/
|
||||
StyleFormatPanel.prototype.addProperties = function(div, state)
|
||||
{
|
||||
var that = this;
|
||||
var graph = this.editorUi.editor.graph;
|
||||
|
||||
function applyStyleVal(pName, newVal)
|
||||
{
|
||||
graph.getModel().beginUpdate();
|
||||
try
|
||||
{
|
||||
graph.setCellStyles(pName, newVal, graph.getSelectionCells());
|
||||
that.editorUi.fireEvent(new mxEventObject('styleChanged', 'keys', [pName],
|
||||
'values', [newVal], 'cells', graph.getSelectionCells()));
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
graph.getModel().endUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
function setElementPos(td, elem, adjustHeight)
|
||||
{
|
||||
var pos = mxUtils.getOffset(td, true);
|
||||
elem.style.position = 'absolute';
|
||||
elem.style.left = pos.x + 'px';
|
||||
elem.style.top = pos.y + 'px';
|
||||
elem.style.width = td.offsetWidth + 'px';
|
||||
elem.style.height = (td.offsetHeight - (adjustHeight? 4 : 0)) + 'px';
|
||||
elem.style.zIndex = 5;
|
||||
};
|
||||
|
||||
function createColorBtn(pName, pValue)
|
||||
{
|
||||
var clrDiv = document.createElement("div");
|
||||
clrDiv.style.width = '32px';
|
||||
clrDiv.style.height = '4px';
|
||||
clrDiv.style.margin = "2px";
|
||||
clrDiv.style.border = "1px solid black";
|
||||
clrDiv.style.backgroundColor = pValue;
|
||||
|
||||
btn = mxUtils.button('', mxUtils.bind(that, function(evt)
|
||||
{
|
||||
this.editorUi.pickColor(pValue, function(color)
|
||||
{
|
||||
clrDiv.style.backgroundColor = color;
|
||||
applyStyleVal(pName, color);
|
||||
});
|
||||
mxEvent.consume(evt);
|
||||
}));
|
||||
|
||||
btn.style.height = '12px';
|
||||
btn.style.width = '40px';
|
||||
btn.className = 'geColorBtn';
|
||||
|
||||
btn.appendChild(clrDiv);
|
||||
return btn;
|
||||
};
|
||||
|
||||
function createCheckbox(pName, pValue)
|
||||
{
|
||||
var input = document.createElement('input');
|
||||
input.type = "checkbox";
|
||||
input.checked = pValue == '1';
|
||||
|
||||
mxEvent.addListener(input, 'change', function()
|
||||
{
|
||||
applyStyleVal(pName, input.checked? '1' : '0');
|
||||
});
|
||||
return input;
|
||||
};
|
||||
|
||||
function createPropertyRow(pName, pDiplayName, pValue, pType, isOdd)
|
||||
{
|
||||
var row = document.createElement('tr');
|
||||
row.className = "propRow" + (isOdd? "Alt" : "");
|
||||
var td = document.createElement('td');
|
||||
td.className = "propRowCell";
|
||||
td.innerHTML = mxUtils.htmlEntities(pDiplayName);
|
||||
row.appendChild(td);
|
||||
td = document.createElement('td');
|
||||
td.className = "propRowCell";
|
||||
|
||||
if (pType == "color")
|
||||
{
|
||||
td.appendChild(createColorBtn(pName, pValue));
|
||||
}
|
||||
else if (pType == "bool")
|
||||
{
|
||||
td.appendChild(createCheckbox(pName, pValue));
|
||||
}
|
||||
else if (pType.type == "enum")
|
||||
{
|
||||
for (var i = 0; i < pType.options.length; i++)
|
||||
{
|
||||
var op = pType.options[i];
|
||||
|
||||
if (op.val == pValue)
|
||||
{
|
||||
td.innerHTML = mxUtils.htmlEntities(op.dispName);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
mxEvent.addListener(td, 'click', mxUtils.bind(that, function()
|
||||
{
|
||||
var select = document.createElement('select');
|
||||
setElementPos(td, select);
|
||||
|
||||
for (var i = 0; i < pType.options.length; i++)
|
||||
{
|
||||
var op = pType.options[i];
|
||||
var opElem = document.createElement('option');
|
||||
opElem.value = mxUtils.htmlEntities(op.val);
|
||||
opElem.innerHTML = mxUtils.htmlEntities(op.dispName);
|
||||
select.appendChild(opElem);
|
||||
}
|
||||
|
||||
select.value = mxUtils.htmlEntities(pValue);
|
||||
|
||||
document.body.appendChild(select);
|
||||
|
||||
mxEvent.addListener(select, 'blur', function()
|
||||
{
|
||||
document.body.removeChild(select);
|
||||
});
|
||||
|
||||
mxEvent.addListener(select, 'change', function()
|
||||
{
|
||||
applyStyleVal(pName, select.value);
|
||||
td.innerHTML = mxUtils.htmlEntities(select.value);
|
||||
});
|
||||
select.focus();
|
||||
}));
|
||||
}
|
||||
else
|
||||
{
|
||||
td.innerHTML = mxUtils.htmlEntities(pValue);
|
||||
mxEvent.addListener(td, 'click', mxUtils.bind(that, function()
|
||||
{
|
||||
var input = document.createElement('input');
|
||||
setElementPos(td, input, true);
|
||||
input.value = pValue;
|
||||
input.className = "propEditor";
|
||||
|
||||
if (pType == "int" || pType == "float")
|
||||
{
|
||||
input.type = "number";
|
||||
input.step = pType == "int"? "1" : "any";
|
||||
}
|
||||
|
||||
document.body.appendChild(input);
|
||||
mxEvent.addListener(input, 'blur', function(){
|
||||
document.body.removeChild(input);
|
||||
});
|
||||
|
||||
function setInputVal()
|
||||
{
|
||||
var newVal = pType == "int"? parseInt(input.value) + '' : input.value;
|
||||
applyStyleVal(pName, newVal);
|
||||
td.innerHTML = mxUtils.htmlEntities(newVal);
|
||||
}
|
||||
|
||||
mxEvent.addListener(input, 'change', setInputVal);
|
||||
mxEvent.addListener(input, 'keypress', function(e)
|
||||
{
|
||||
if (e.keyCode == 13)
|
||||
{
|
||||
setInputVal();
|
||||
|
||||
try
|
||||
{
|
||||
document.body.removeChild(input);
|
||||
}
|
||||
catch(e){}
|
||||
}
|
||||
});
|
||||
|
||||
input.focus();
|
||||
}));
|
||||
}
|
||||
row.appendChild(td);
|
||||
return row;
|
||||
};
|
||||
|
||||
div.style.position = 'relative';
|
||||
div.style.padding = '0';
|
||||
var grid = document.createElement('table');
|
||||
grid.style.whiteSpace = 'nowrap';
|
||||
grid.style.width = '100%';
|
||||
//create header row
|
||||
var hrow = document.createElement('tr');
|
||||
hrow.className = "propHeader";
|
||||
var th = document.createElement('th');
|
||||
th.className = "propHeaderCell";
|
||||
th.innerHTML = mxResources.get('property', null, 'Property');
|
||||
hrow.appendChild(th);
|
||||
th = document.createElement('th');
|
||||
th.className = "propHeaderCell";
|
||||
th.innerHTML = mxResources.get('value', null, 'Value');
|
||||
hrow.appendChild(th);
|
||||
grid.appendChild(hrow);
|
||||
|
||||
var isOdd = false;
|
||||
for (var key in state.style)
|
||||
{
|
||||
var pValue = state.style[key];
|
||||
|
||||
//skip non-common properties (which are set to empty string)
|
||||
if (pValue == "") continue;
|
||||
|
||||
var type = "string";
|
||||
|
||||
if (typeof pValue == "string" && pValue.indexOf("#") == 0 && pValue.length == 7)
|
||||
{
|
||||
type = "color";
|
||||
}
|
||||
else if (pValue == '1')
|
||||
{
|
||||
type = 'bool';
|
||||
}
|
||||
else if (parseInt(pValue) == parseFloat(pValue))
|
||||
{
|
||||
type = "int";
|
||||
}
|
||||
else if (isFinite(parseFloat(pValue)))
|
||||
{
|
||||
type = "float";
|
||||
}
|
||||
else if (pValue == 'middle')
|
||||
{
|
||||
type = {type: 'enum', options: [{val: 'middle', dispName: 'Middle'}, {val: 'bottom', dispName: 'Bottom'}, {val: 'top', dispName: 'Top'}]};
|
||||
}
|
||||
grid.appendChild(createPropertyRow(key, key.charAt(0).toUpperCase() + key.substr(1), pValue, type, isOdd));
|
||||
isOdd = !isOdd;
|
||||
}
|
||||
|
||||
div.appendChild(grid);
|
||||
|
||||
return div;
|
||||
}
|
||||
/**
|
||||
* Creates the buttons for the predefined styles.
|
||||
*/
|
||||
|
@ -1147,6 +1398,10 @@
|
|||
colorset['gradient'] + ' 100%)';
|
||||
}
|
||||
}
|
||||
else if (colorset['fill'] == mxConstants.NONE)
|
||||
{
|
||||
btn.style.background = 'url(\'' + Dialog.prototype.noColorImage + '\')';
|
||||
}
|
||||
else
|
||||
{
|
||||
btn.style.backgroundColor = colorset['fill'];
|
||||
|
|
|
@ -202,10 +202,10 @@
|
|||
/**
|
||||
* Hook for subclassers.
|
||||
*/
|
||||
EditorUi.prototype.openLink = function(url, target)
|
||||
EditorUi.prototype.openLink = function(url, target, allowOpener)
|
||||
{
|
||||
// LATER: Replace this with direct calls to graph
|
||||
return this.editor.graph.openLink(url, target);
|
||||
return this.editor.graph.openLink(url, target, allowOpener);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -171,10 +171,10 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
|
|||
|
||||
if (paths !== undefined && paths[0] != null)
|
||||
{
|
||||
var path = paths[0];
|
||||
var asImage = /\.png$/i.test(path) || /\.gif$/i.test(path) || /\.jpe?g$/i.test(path);
|
||||
var encoding = (asImage || /\.vsdx$/i.test(path) || /\.vssx$/i.test(path)) ?
|
||||
'base64' : 'utf-8';
|
||||
var path = paths[0];
|
||||
var asImage = /\.png$/i.test(path) || /\.gif$/i.test(path) || /\.jpe?g$/i.test(path);
|
||||
var encoding = (asImage || /\.vsdx$/i.test(path) || /\.vssx$/i.test(path)) ?
|
||||
'base64' : 'utf-8';
|
||||
|
||||
if (editorUi.spinner.spin(document.body, mxResources.get('loading')))
|
||||
{
|
||||
|
@ -635,10 +635,6 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
|
|||
this.fileObject.type = 'utf-8';
|
||||
fn();
|
||||
}
|
||||
else if (error != null)
|
||||
{
|
||||
error();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -6,6 +6,8 @@ EditorUi.initMinimalTheme = function()
|
|||
// Disabled in lightbox and chromeless mode
|
||||
if (urlParams['lightbox'] == '1' || urlParams['chrome'] == '0' || typeof window.Format === 'undefined' || typeof window.Menus === 'undefined')
|
||||
{
|
||||
window.uiTheme = null;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -816,15 +818,16 @@ EditorUi.initMinimalTheme = function()
|
|||
this.put('exportAs', new Menu(mxUtils.bind(this, function(menu, parent)
|
||||
{
|
||||
exportAsMenu.funct(menu, parent);
|
||||
menu.addSeparator(parent);
|
||||
ui.menus.addSubmenu('embed', menu, parent);
|
||||
|
||||
|
||||
if (!mxClient.IS_CHROMEAPP && !EditorUi.isElectronApp)
|
||||
{
|
||||
// Publish menu contains only one element by default...
|
||||
//ui.menus.addSubmenu('publish', menu, parent);
|
||||
ui.menus.addMenuItems(menu, ['publishLink'], parent);
|
||||
}
|
||||
|
||||
menu.addSeparator(parent);
|
||||
ui.menus.addSubmenu('embed', menu, parent);
|
||||
})));
|
||||
|
||||
var langMenu = this.get('language');
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
this.addGCP2PathsPalette();
|
||||
this.addGCP2ZonesPalette();
|
||||
this.addGCP2ServiceCardsPalette();
|
||||
this.addGCP2UserDeviceCardsPalette();
|
||||
this.addGCP2ComputePalette();
|
||||
this.addGCP2APIPlatformEcosystemsPalette();
|
||||
this.addGCP2IdentitySecurityPalette();
|
||||
|
@ -160,7 +161,101 @@
|
|||
bg.insert(zone12Cell);
|
||||
|
||||
return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Project Zone / Cloud Service Provider');
|
||||
})
|
||||
}),
|
||||
|
||||
this.createVertexTemplateEntry('fillColor=#4DA1F5;strokeColor=none;shadow=1;gradientColor=none;fontSize=14;align=left;spacingLeft=50;fontColor=#ffffff;',
|
||||
1000, 40, 'Architecture: App Engine and Cloud Endpoints', 'Title bar', null, null, this.getTagsForStencil(gn, '', dt + 'title bar').join(' ')),
|
||||
this.createVertexTemplateEntry('fillColor=#ffffff;strokeColor=none;shadow=0;gradientColor=none;fontSize=11;align=left;spacing=10;fontColor=#;9E9E9E;verticalAlign=top;spacingTop=100;',
|
||||
300, 350, 'Use this note to call out\nor clarify parts of a diagram', 'Note', null, null, this.getTagsForStencil(gn, '', dt + 'note').join(' ')),
|
||||
|
||||
this.addEntry(dt + 'project', function()
|
||||
{
|
||||
var bg = new mxCell('<b>Google </b>Cloud Platform', new mxGeometry(0, 0, 650, 350),
|
||||
'fillColor=#F6F6F6;strokeColor=none;shadow=0;gradientColor=none;fontSize=14;align=left;spacing=10;fontColor=#717171;9E9E9E;verticalAlign=top;spacingTop=-4;fontStyle=0;spacingLeft=40;html=1;');
|
||||
bg.vertex = true;
|
||||
|
||||
var zone1Cell = new mxCell('',
|
||||
new mxGeometry(0, 0, 23, 20),
|
||||
'shape=mxgraph.gcp2.google_cloud_platform;fillColor=#F6F6F6;strokeColor=none;shadow=0;gradientColor=none;');
|
||||
zone1Cell.geometry.relative = true;
|
||||
zone1Cell.geometry.offset = new mxPoint(20, 10);
|
||||
zone1Cell.vertex = true;
|
||||
bg.insert(zone1Cell);
|
||||
|
||||
return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Project Zone');
|
||||
}),
|
||||
|
||||
this.addEntry(dt + 'markers', function()
|
||||
{
|
||||
s = 'shape=ellipse;fillColor=#ffffff;strokeColor=#BDBDBD;strokeWidth=2;shadow=0;gradientColor=none;fontColor=#757575;align=center;html=1;fontStyle=1;spacingTop=-1;';
|
||||
|
||||
var icon1 = new mxCell('1', new mxGeometry(0, 0, 20, 20), s);
|
||||
icon1.vertex = true;
|
||||
var icon2 = new mxCell('2', new mxGeometry(40, 0, 20, 20), s);
|
||||
icon2.vertex = true;
|
||||
var icon3 = new mxCell('3', new mxGeometry(80, 0, 20, 20), s);
|
||||
icon3.vertex = true;
|
||||
var icon4 = new mxCell('4', new mxGeometry(120, 0, 20, 20), s);
|
||||
icon4.vertex = true;
|
||||
var icon5 = new mxCell('5', new mxGeometry(160, 0, 20, 20), s);
|
||||
icon5.vertex = true;
|
||||
var icon6 = new mxCell('6', new mxGeometry(200, 0, 20, 20), s);
|
||||
icon6.vertex = true;
|
||||
var icon7 = new mxCell('7', new mxGeometry(240, 0, 20, 20), s);
|
||||
icon7.vertex = true;
|
||||
var label1 = new mxCell('Markers to be used with the legend', new mxGeometry(0, 20, 260, 30),
|
||||
'strokeColor=none;fillColor=none;fontColor=#757575;align=left;html=1;fontStyle=0;fontSize=11;');
|
||||
label1.vertex = true;
|
||||
|
||||
return sb.createVertexTemplateFromCells([icon1, icon2, icon3, icon4, icon5, icon6, icon7, label1], 260, 50, 'Markers');
|
||||
}),
|
||||
|
||||
this.addEntry(dt + 'markers', function()
|
||||
{
|
||||
var s = 'strokeColor=none;fillColor=none;fontColor=#757575;align=left;html=1;fontStyle=0;spacingLeft=5;fontSize=11;verticalAlign=top;whiteSpace=wrap;spacingRight=5;';
|
||||
|
||||
var bg = new mxCell('', new mxGeometry(0, 0, 600, 70),
|
||||
'fillColor=#ffffff;strokeColor=#BDBDBD;strokeWidth=1;shadow=0;gradientColor=none;');
|
||||
bg.vertex = true;
|
||||
|
||||
var label1 = new mxCell('1 Commit code', new mxGeometry(0, 0, 200, 30), s);
|
||||
label1.geometry.relative = true;
|
||||
label1.vertex = true;
|
||||
bg.insert(label1);
|
||||
|
||||
var label2 = new mxCell('2 Detect code change', new mxGeometry(0, 0, 200, 30), s);
|
||||
label2.geometry.relative = true;
|
||||
label2.geometry.offset = new mxPoint(0, 30);
|
||||
label2.vertex = true;
|
||||
bg.insert(label2);
|
||||
|
||||
var label3 = new mxCell('3 Build immutable image', new mxGeometry(0, 0, 200, 30), s);
|
||||
label3.geometry.relative = true;
|
||||
label3.geometry.offset = new mxPoint(200, 0);
|
||||
label3.vertex = true;
|
||||
bg.insert(label3);
|
||||
|
||||
var label4 = new mxCell('4 Launch test instance from image', new mxGeometry(0, 0, 200, 30), s);
|
||||
label4.geometry.relative = true;
|
||||
label4.geometry.offset = new mxPoint(200, 30);
|
||||
label4.vertex = true;
|
||||
bg.insert(label4);
|
||||
|
||||
var label5 = new mxCell('5 Run tests', new mxGeometry(0, 0, 200, 30), s);
|
||||
label5.geometry.relative = true;
|
||||
label5.geometry.offset = new mxPoint(400, 0);
|
||||
label5.vertex = true;
|
||||
bg.insert(label5);
|
||||
|
||||
var label6 = new mxCell('6 Perform rolling update of image to autoscaler', new mxGeometry(0, 0, 200, 30), s);
|
||||
label6.geometry.relative = true;
|
||||
label6.geometry.offset = new mxPoint(400, 30);
|
||||
label6.vertex = true;
|
||||
bg.insert(label6);
|
||||
|
||||
return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, 'Markers');
|
||||
}),
|
||||
|
||||
];
|
||||
|
||||
this.addPalette('gcp2Zones', 'GCP / Zones', false, mxUtils.bind(this, function(content)
|
||||
|
@ -518,6 +613,45 @@
|
|||
}));
|
||||
};
|
||||
|
||||
Sidebar.prototype.addGCP2UserDeviceCardsPalette = function()
|
||||
{
|
||||
var dt = 'gcp google cloud platform user and device cards';
|
||||
var fns = [];
|
||||
|
||||
this.addGCP2UserDeviceCard('Application', 'application', 1, 0.8, 0, dt + 'application', fns);
|
||||
this.addGCP2UserDeviceCard('Beacon', 'beacon', 0.73, 1, 0, dt + 'beacon', fns);
|
||||
this.addGCP2UserDeviceCard('Circuit-Board', 'circuit_board', 1, 0.9, 15, dt + 'circuit board', fns);
|
||||
this.addGCP2UserDeviceCard('Database', 'database', 1, 0.9, 0, dt + 'database db', fns);
|
||||
this.addGCP2UserDeviceCard('Desktop', 'desktop', 1, 0.9, 0, dt + 'desktop', fns);
|
||||
this.addGCP2UserDeviceCard('Desktop and Mobile', 'desktop_and_mobile', 1, 0.66, 15, dt + 'desktop and mobile', fns);
|
||||
this.addGCP2UserDeviceCard('Game', 'game', 1, 0.54, 0, dt + 'game', fns);
|
||||
this.addGCP2UserDeviceCard('Gateway', 'gateway_icon', 1, 0.44, 0, dt + 'gateway icon', fns);
|
||||
this.addGCP2UserDeviceCard('Laptop', 'laptop', 1, 0.66, 0, dt + 'laptop', fns);
|
||||
this.addGCP2UserDeviceCard('Lightbulb', 'lightbulb', 0.7, 1, 0, dt + 'lighbulb', fns);
|
||||
this.addGCP2UserDeviceCard('List', 'list', 0.89, 1, 0, dt + 'list', fns);
|
||||
this.addGCP2UserDeviceCard('Live', 'live', 0.74, 1, 0, dt + 'live', fns);
|
||||
this.addGCP2UserDeviceCard('Local-Compute', 'compute_engine_icon', 1, 0.89, 15, dt + 'local compute', fns);
|
||||
this.addGCP2UserDeviceCard('Mobile Devices', 'mobile_devices', 1, 0.73, 15, dt + 'mobile devices', fns);
|
||||
this.addGCP2UserDeviceCard('Payment', 'payment', 1, 0.8, 0, dt + 'payment', fns);
|
||||
this.addGCP2UserDeviceCard('Phone', 'phone', 0.64, 1, 0, dt + 'phone', fns);
|
||||
this.addGCP2UserDeviceCard('Record', 'record', 1, 0.66, 0, dt + 'record', fns);
|
||||
this.addGCP2UserDeviceCard('Report', 'report', 1, 1, 0, dt + 'report', fns);
|
||||
this.addGCP2UserDeviceCard('Retail', 'retail', 1, 0.89, 0, dt + 'retail', fns);
|
||||
this.addGCP2UserDeviceCard('Speaker', 'speaker', 0.7, 1, 0, dt + 'speaker', fns);
|
||||
this.addGCP2UserDeviceCard('Storage', 'storage', 1, 0.8, 0, dt + 'storage', fns);
|
||||
this.addGCP2UserDeviceCard('Stream', 'stream', 1, 0.82, 0, dt + 'stream', fns);
|
||||
this.addGCP2UserDeviceCard('Users', 'users', 1, 0.63, 0, dt + 'users', fns);
|
||||
this.addGCP2UserDeviceCard('Webcam', 'webcam', 0.5, 1, 0, dt + 'webcam', fns);
|
||||
|
||||
this.addPalette('gcp2User Device Cards', 'GCP / User and Device Cards', false, mxUtils.bind(this, function(content)
|
||||
{
|
||||
for (var i = 0; i < fns.length; i++)
|
||||
{
|
||||
content.appendChild(fns[i](content));
|
||||
}
|
||||
}));
|
||||
};
|
||||
|
||||
Sidebar.prototype.addGCP2CardSet = function(label, icon, w1, w2, dt, fns)
|
||||
{
|
||||
var sb = this;
|
||||
|
@ -772,4 +906,27 @@
|
|||
);
|
||||
};
|
||||
|
||||
Sidebar.prototype.addGCP2UserDeviceCard = function(label, icon, scaleX, scaleY, h1, dt, fns)
|
||||
{
|
||||
var sb = this;
|
||||
var s = 'dashed=0;html=1;fillColor=#757575;strokeColor=none;' + mxConstants.STYLE_SHAPE + '=mxgraph.gcp2.';
|
||||
var label1 = label.replace('\n', ' ');
|
||||
var label1 = label1.replace('- ', '-');
|
||||
|
||||
fns.push(
|
||||
this.addEntry(dt, function()
|
||||
{
|
||||
var bg = new mxCell(label, new mxGeometry(0, 0, 70, 85 + h1),
|
||||
'strokeColor=#dddddd;fillColor=#ffffff;shadow=1;strokeWidth=1;rounded=1;absoluteArcSize=1;arcSize=2;labelPosition=center;verticalLabelPosition=middle;align=center;verticalAlign=bottom;spacingLeft=0;fontColor=#999999;fontSize=12;whiteSpace=wrap;spacingBottom=2;');
|
||||
bg.vertex = true;
|
||||
var icon1 = new mxCell('', new mxGeometry(0.5, 0, 50 * scaleX, 50 * scaleY), s + icon + ';part=1;');
|
||||
icon1.geometry.relative = true;
|
||||
icon1.geometry.offset = new mxPoint(- scaleX * 25, 10 + (1 - scaleY) * 25);
|
||||
icon1.vertex = true;
|
||||
bg.insert(icon1);
|
||||
|
||||
return sb.createVertexTemplateFromCells([bg], bg.geometry.width, bg.geometry.height, label1);
|
||||
})
|
||||
);
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
Sidebar.prototype.gcp2 = ['Paths', 'Zones', 'Service Cards', 'Compute', 'API Platform and Ecosystems', 'Identity and Security', 'Big Data', 'Data Transfer', 'Cloud AI', 'Internet of Things', 'Storage and Databases', 'Management Tools', 'Networking', 'Developer Tools', 'Expanded Product Cards'];
|
||||
Sidebar.prototype.gcp2 = ['Paths', 'Zones', 'Service Cards', 'Compute', 'API Platform and Ecosystems', 'Identity and Security', 'Big Data', 'Data Transfer', 'Cloud AI', 'Internet of Things', 'Storage and Databases', 'Management Tools', 'Networking', 'Developer Tools', 'Expanded Product Cards', 'User Device Cards'];
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
@ -823,6 +823,14 @@ var com;
|
|||
}
|
||||
;
|
||||
}
|
||||
|
||||
/* put */ (function (m, k, v) { if (m.entries == null)
|
||||
m.entries = []; for (var i = 0; i < m.entries.length; i++)
|
||||
if (m.entries[i].key.equals != null && m.entries[i].key.equals(k) || m.entries[i].key === k) {
|
||||
m.entries[i].value = v;
|
||||
return;
|
||||
} m.entries.push({ key: k, value: v, getKey: function () { return this.key; }, getValue: function () { return this.value; } }); })(this.vertexMap, new com.mxgraph.io.vsdx.ShapePageId(pageId, shape.getId()), group);
|
||||
|
||||
return group;
|
||||
};
|
||||
mxVsdxCodec.rotatedEdgePoint = function (pt, rotation, cx, cy) {
|
||||
|
|
93
src/main/webapp/js/embed-static.min.js
vendored
93
src/main/webapp/js/embed-static.min.js
vendored
|
@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+z.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
|
|||
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
|
||||
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
||||
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
|
||||
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"9.0.8",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
|
||||
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"9.0.9",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
|
||||
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
|
||||
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
|
||||
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||
|
||||
|
@ -1440,8 +1440,9 @@ mxConnectionHandler.prototype.getTargetPerimeterPoint=function(a,b){var c=null,d
|
|||
mxConnectionHandler.prototype.getSourcePerimeterPoint=function(a,b,c){c=null;var d=a.view,e=d.getPerimeterFunction(a),f=new mxPoint(a.getCenterX(),a.getCenterY());if(null!=e){var g=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0),h=Math.PI/180*-g;0!=g&&(b=mxUtils.getRotatedPoint(new mxPoint(b.x,b.y),Math.cos(h),Math.sin(h),f));a=e(d.getPerimeterBounds(a),a,b,!1);null!=a&&(0!=g&&(a=mxUtils.getRotatedPoint(new mxPoint(a.x,a.y),Math.cos(-h),Math.sin(-h),f)),c=a)}else c=f;return c};
|
||||
mxConnectionHandler.prototype.updateIcons=function(a,b,c){};mxConnectionHandler.prototype.isStopEvent=function(a){return null!=a.getState()};
|
||||
mxConnectionHandler.prototype.addWaypointForEvent=function(a){var b=mxUtils.convertPoint(this.graph.container,a.getX(),a.getY()),c=Math.abs(b.x-this.first.x),b=Math.abs(b.y-this.first.y);if(null!=this.waypoints||1<this.mouseDownCounter&&(c>this.graph.tolerance||b>this.graph.tolerance))null==this.waypoints&&(this.waypoints=[]),c=this.graph.view.scale,b=new mxPoint(this.graph.snap(a.getGraphX()/c)*c,this.graph.snap(a.getGraphY()/c)*c),this.waypoints.push(b)};
|
||||
mxConnectionHandler.prototype.mouseUp=function(a,b){if(!b.isConsumed()&&this.isConnecting()){if(this.waypointsEnabled&&!this.isStopEvent(b)){this.addWaypointForEvent(b);b.consume();return}if(null==this.error){var c=null!=this.previous?this.previous.cell:null,d=null;null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus&&(d=this.constraintHandler.currentFocus.cell);null==d&&null!=this.currentState&&(d=this.currentState.cell);this.connect(c,d,b.getEvent(),b.getCell())}else null!=
|
||||
this.previous&&null!=this.marker.validState&&this.previous.cell==this.marker.validState.cell&&this.graph.selectCellForEvent(this.marker.source,evt),0<this.error.length&&this.graph.validationAlert(this.error);this.destroyIcons();b.consume()}null!=this.first&&this.reset()};
|
||||
mxConnectionHandler.prototype.checkConstraints=function(a,b){return null==a||null==b||null==a.point||null==b.point||!a.point.equals(b.point)||a.perimeter!=b.perimeter};
|
||||
mxConnectionHandler.prototype.mouseUp=function(a,b){if(!b.isConsumed()&&this.isConnecting()){if(this.waypointsEnabled&&!this.isStopEvent(b)){this.addWaypointForEvent(b);b.consume();return}var c=this.sourceConstraint,d=this.constraintHandler.currentConstraint;null==this.error&&this.checkConstraints(c,d)?(c=null!=this.previous?this.previous.cell:null,d=null,null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus&&(d=this.constraintHandler.currentFocus.cell),null==d&&
|
||||
null!=this.currentState&&(d=this.currentState.cell),this.connect(c,d,b.getEvent(),b.getCell())):(null!=this.previous&&null!=this.marker.validState&&this.previous.cell==this.marker.validState.cell&&this.graph.selectCellForEvent(this.marker.source,b.getEvent()),null!=this.error&&0<this.error.length&&this.graph.validationAlert(this.error));this.destroyIcons();b.consume()}null!=this.first&&this.reset()};
|
||||
mxConnectionHandler.prototype.reset=function(){null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.cursor&&null!=this.graph.container&&(this.graph.container.style.cursor="");this.destroyIcons();this.marker.reset();this.constraintHandler.reset();this.sourceConstraint=this.error=this.previous=this.edgeState=this.currentPoint=this.originalPoint=null;this.mouseDownCounter=0;this.first=null;this.fireEvent(new mxEventObject(mxEvent.RESET))};
|
||||
mxConnectionHandler.prototype.drawPreview=function(){this.updatePreview(null==this.error);this.shape.redraw()};mxConnectionHandler.prototype.updatePreview=function(a){this.shape.strokewidth=this.getEdgeWidth(a);this.shape.stroke=this.getEdgeColor(a)};mxConnectionHandler.prototype.getEdgeColor=function(a){return a?mxConstants.VALID_COLOR:mxConstants.INVALID_COLOR};mxConnectionHandler.prototype.getEdgeWidth=function(a){return a?3:1};
|
||||
mxConnectionHandler.prototype.connect=function(a,b,c,d){if(null!=b||this.isCreateTarget(c)||this.graph.allowDanglingEdges){var e=this.graph.getModel(),f=!1,g=null;e.beginUpdate();try{if(null!=a&&null==b&&!this.graph.isIgnoreTerminalEvent(c)&&this.isCreateTarget(c)&&(b=this.createTargetVertex(c,a),null!=b)){d=this.graph.getDropTarget([b],c,d);f=!0;if(null!=d&&this.graph.getModel().isEdge(d))d=this.graph.getDefaultParent();else{var h=this.graph.getView().getState(d);if(null!=h){var k=e.getGeometry(b);
|
||||
|
@ -1561,7 +1562,7 @@ function(b){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,thi
|
|||
if(null!=a)if(a=a.parentNode,this.useCssTransforms){var b=a.getAttribute("transform");a.setAttribute("transformOrigin","0 0");a.setAttribute("transform","scale("+this.currentScale+","+this.currentScale+")translate("+this.currentTranslate.x+","+this.currentTranslate.y+")");if(b!=a.getAttribute("transform"))try{if(mxClient.IS_EDGE){var c=a.style.display;a.style.display="none";a.getBBox();a.style.display=c}}catch(g){}}else a.removeAttribute("transformOrigin"),a.removeAttribute("transform")};var b=mxGraphView.prototype.validateBackgroundPage;
|
||||
mxGraphView.prototype.validateBackgroundPage=function(){var a=this.graph.useCssTransforms,c=this.scale,f=this.translate;a&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);b.apply(this,arguments);a&&(this.scale=c,this.translate=f)};var c=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(a,b,f){var d=this.useCssTransforms,e=this.view.scale,k=this.view.translate;d&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=
|
||||
!1);c.apply(this,arguments);d&&(this.view.scale=e,this.view.translate=k,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.labelLinkClicked=function(a,b,c){b=b.getAttribute("href");if(null!=b&&!this.isCustomLink(b)&&mxEvent.isLeftMouseButton(c)&&!mxEvent.isPopupTrigger(c)||mxEvent.isTouchEvent(c)){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(b)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(b),a);mxEvent.consume(c)}};
|
||||
Graph.prototype.openLink=function(a,b){var c=window;if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top){var d=a.split("#")[1];window.location.hash=="#"+d&&(window.location.hash="");window.location.hash=d}else c=window.open(a,b);return c};Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};
|
||||
Graph.prototype.openLink=function(a,b,c){var d=window;"_self"==b&&window!=window.top?window.location.href=a:a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top?(a=a.split("#")[1],window.location.hash=="#"+a&&(window.location.hash=""),window.location.hash=a):(d=window.open(a,b),null==d||c||(d.opener=null));return d};Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};
|
||||
Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};
|
||||
Graph.prototype.isRelativeUrl=function(a){return null!=a&&!this.absoluteUrlPattern.test(a)&&"data:"!==a.substring(0,5)&&!this.isExternalProtocol(a)};
|
||||
Graph.prototype.initLayoutManager=function(){this.layoutManager=new mxLayoutManager(this);this.layoutManager.getLayout=function(a){var b=this.graph.view.getState(a);a=null!=b?b.style:this.graph.getCellStyle(a);return"stackLayout"==a.childLayout?(b=new mxStackLayout(this.graph,!0),b.resizeParentMax="1"==mxUtils.getValue(a,"resizeParentMax","1"),b.horizontal="1"==mxUtils.getValue(a,"horizontalStack","1"),b.resizeParent="1"==mxUtils.getValue(a,"resizeParent","1"),b.resizeLast="1"==mxUtils.getValue(a,
|
||||
|
@ -1684,48 +1685,48 @@ this.view.scale-this.view.translate.x,c=this.container.scrollTop/this.view.scale
|
|||
(b.y+b.height)/a.scale-a.translate.y+2*this.gridSize)));return new mxPoint(d,a)};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.addText=function(a,b,c){var d=new mxCell;d.value="Text";d.style="text;html=1;resizable=0;points=[];";d.geometry=new mxGeometry(0,0,0,0);d.vertex=!0;if(null!=c){d.style+="align=center;verticalAlign=middle;labelBackgroundColor=#ffffff;";d.geometry.relative=!0;d.connectable=!1;var e=this.view.getRelativePoint(c,a,b);d.geometry.x=Math.round(1E4*e.x)/
|
||||
1E4;d.geometry.y=Math.round(e.y);d.geometry.offset=new mxPoint(0,0);var e=this.view.getPoint(c,d.geometry),f=this.view.scale;d.geometry.offset=new mxPoint(Math.round((a-e.x)/f),Math.round((b-e.y)/f))}else d.style+="autosize=1;align=left;verticalAlign=top;spacingTop=-4;",e=this.view.translate,d.geometry.width=40,d.geometry.height=20,d.geometry.x=Math.round(a/this.view.scale)-e.x,d.geometry.y=Math.round(b/this.view.scale)-e.y;this.getModel().beginUpdate();try{this.addCells([d],null!=c?c.cell:null),
|
||||
this.fireEvent(new mxEventObject("textInserted","cells",[d])),this.autoSizeCell(d)}finally{this.getModel().endUpdate()}return d};Graph.prototype.getAbsoluteUrl=function(a){null!=a&&this.isRelativeUrl(a)&&(a="#"==a.charAt(0)?this.baseUrl+a:"/"==a.charAt(0)?this.domainUrl+a:this.domainPathUrl+a);return a};Graph.prototype.addClickHandler=function(a,b,c){var d=mxUtils.bind(this,function(){var a=this.container.getElementsByTagName("a");if(null!=a)for(var c=0;c<a.length;c++){var d=this.getAbsoluteUrl(a[c].getAttribute("href"));
|
||||
null!=d&&(a[c].setAttribute("href",d),null!=b&&mxEvent.addGestureListeners(a[c],null,null,b))}});this.model.addListener(mxEvent.CHANGE,d);d();var e=this.container.style.cursor,f=this.getTolerance(),g=this,h={currentState:null,currentLink:null,highlight:null!=a&&""!=a&&a!=mxConstants.NONE?new mxCellHighlight(g,a,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(a){var b=a.sourceState;if(null==b||null==g.getLinkForCell(b.cell))a=g.getCellAt(a.getGraphX(),a.getGraphY(),null,
|
||||
null,null,function(a,b,c){return null==g.getLinkForCell(a.cell)}),b=g.view.getState(a);b!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=b,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(a,b){this.startX=b.getGraphX();this.startY=b.getGraphY();this.scrollLeft=g.container.scrollLeft;this.scrollTop=g.container.scrollTop;null==this.currentLink&&"auto"==g.container.style.overflow&&(g.container.style.cursor="move");this.updateCurrentState(b)},
|
||||
mouseMove:function(a,b){if(g.isMouseDown){if(null!=this.currentLink){var c=Math.abs(this.startX-b.getGraphX()),d=Math.abs(this.startY-b.getGraphY());(c>f||d>f)&&this.clear()}}else{for(c=b.getSource();null!=c&&"a"!=c.nodeName.toLowerCase();)c=c.parentNode;null!=c?this.clear():(null!=g.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&g.tooltipHandler.reset(b,!0,this.currentState),(null==this.currentState||b.getState()!=this.currentState&&null!=b.sourceState||!g.intersects(this.currentState,
|
||||
b.getGraphX(),b.getGraphY()))&&this.updateCurrentState(b))}},mouseUp:function(a,d){for(var e=d.getSource(),h=d.getEvent();null!=e&&"a"!=e.nodeName.toLowerCase();)e=e.parentNode;null==e&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&(null==d.sourceState||!d.isSource(d.sourceState.control))&&((mxEvent.isLeftMouseButton(h)||mxEvent.isMiddleMouseButton(h))&&!mxEvent.isPopupTrigger(h)||mxEvent.isTouchEvent(h))&&(null!=this.currentLink?(e=g.isBlankLink(this.currentLink),
|
||||
"data:"!==this.currentLink.substring(0,5)&&e||null==b||b(h,this.currentLink),mxEvent.isConsumed(h)||(h=mxEvent.isMiddleMouseButton(h)?"_blank":e?g.linkTarget:"_top",g.openLink(this.currentLink,h),d.consume())):null!=c&&!d.isConsumed()&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&Math.abs(this.startX-d.getGraphX())<f&&Math.abs(this.startY-d.getGraphY())<f&&c(d.getEvent()));this.clear()},activate:function(a){this.currentLink=g.getAbsoluteUrl(g.getLinkForCell(a.cell));
|
||||
null!=this.currentLink&&(g.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(a))},clear:function(){null!=g.container&&(g.container.style.cursor=e);this.currentLink=this.currentState=null;null!=this.highlight&&this.highlight.hide();null!=g.tooltipHandler&&g.tooltipHandler.hide()}};g.click=function(a){};g.addMouseListener(h);mxEvent.addListener(document,"mouseleave",function(a){h.clear()})};Graph.prototype.duplicateCells=function(a,b){a=null!=a?a:this.getSelectionCells();
|
||||
b=null!=b?b:!0;a=this.model.getTopmostCells(a);var c=this.getModel(),d=this.gridSize,e=[];c.beginUpdate();try{for(var f=this.cloneCells(a,!1),g=0;g<a.length;g++){var h=c.getParent(a[g]),k=this.moveCells([f[g]],d,d,!1)[0];e.push(k);if(b)c.add(h,f[g]);else{var l=h.getIndex(a[g]);c.add(h,f[g],l+1)}}}finally{c.endUpdate()}return e};Graph.prototype.insertImage=function(a,b,c){if(null!=a){for(var d=this.cellEditor.textarea.getElementsByTagName("img"),e=[],f=0;f<d.length;f++)e.push(d[f]);document.execCommand("insertimage",
|
||||
!1,a);a=this.cellEditor.textarea.getElementsByTagName("img");if(a.length==e.length+1)for(f=a.length-1;0<=f;f--)if(0==f||a[f]!=e[f-1]){a[f].setAttribute("width",b);a[f].setAttribute("height",c);break}}};Graph.prototype.insertLink=function(a){if(0==a.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var b=this.cellEditor.textarea.getElementsByTagName("a"),c=[],d=0;d<b.length;d++)c.push(b[d]);document.execCommand("createlink",!1,mxUtils.trim(a));b=this.cellEditor.textarea.getElementsByTagName("a");
|
||||
if(b.length==c.length+1)for(d=b.length-1;0<=d;d--)if(b[d]!=c[d-1]){for(b=b[d].getElementsByTagName("a");0<b.length;){for(c=b[0].parentNode;null!=b[0].firstChild;)c.insertBefore(b[0].firstChild,b[0]);c.removeChild(b[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(a))};Graph.prototype.isCellResizable=function(a){var b=mxGraph.prototype.isCellResizable.apply(this,arguments),c=this.view.getState(a),c=null!=c?c.style:this.getCellStyle(a);return b||"0"!=mxUtils.getValue(c,mxConstants.STYLE_RESIZABLE,
|
||||
"1")&&"wrap"==c[mxConstants.STYLE_WHITE_SPACE]};Graph.prototype.distributeCells=function(a,b){null==b&&(b=this.getSelectionCells());if(null!=b&&1<b.length){for(var c=[],d=null,e=null,f=0;f<b.length;f++)if(this.getModel().isVertex(b[f])){var g=this.view.getState(b[f]);if(null!=g){var h=a?g.getCenterX():g.getCenterY(),d=null!=d?Math.max(d,h):h,e=null!=e?Math.min(e,h):h;c.push(g)}}if(2<c.length){c.sort(function(b,c){return a?b.x-c.x:b.y-c.y});g=this.view.translate;h=this.view.scale;e=e/h-(a?g.x:g.y);
|
||||
d=d/h-(a?g.x:g.y);this.getModel().beginUpdate();try{for(var k=(d-e)/(c.length-1),d=e,f=1;f<c.length-1;f++){var l=this.view.getState(this.model.getParent(c[f].cell)),m=this.getCellGeometry(c[f].cell),d=d+k;null!=m&&null!=l&&(m=m.clone(),a?m.x=Math.round(d-m.width/2)-l.origin.x:m.y=Math.round(d-m.height/2)-l.origin.y,this.getModel().setGeometry(c[f].cell,m))}}finally{this.getModel().endUpdate()}}}return b};Graph.prototype.isCloneEvent=function(a){return mxClient.IS_MAC&&mxEvent.isMetaDown(a)||mxEvent.isControlDown(a)};
|
||||
Graph.prototype.encodeCells=function(a){for(var b=this.cloneCells(a),c=new mxDictionary,d=0;d<a.length;d++)c.put(a[d],!0);for(d=0;d<b.length;d++){var e=this.view.getState(a[d]);if(null!=e){var f=this.getCellGeometry(b[d]);null==f||!f.relative||this.model.isEdge(a[d])||c.get(this.model.getParent(a[d]))||(f.relative=!1,f.x=e.x/e.view.scale-e.view.translate.x,f.y=e.y/e.view.scale-e.view.translate.y)}}c=new mxCodec;e=new mxGraphModel;f=e.getChildAt(e.getRoot(),0);for(d=0;d<a.length;d++)e.add(f,b[d]);
|
||||
return c.encode(e)};Graph.prototype.createSvgImageExport=function(){var a=new mxImageExport;a.getLinkForCellState=mxUtils.bind(this,function(a,b){return this.getLinkForCell(a.cell)});return a};Graph.prototype.getSvg=function(a,b,c,d,e,f,g,h){var k=this.useCssTransforms;k&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{b=null!=b?b:1;c=null!=c?c:0;e=null!=e?e:!0;f=null!=f?f:!0;g=null!=g?g:!0;var l=f||d?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells());if(null==
|
||||
l)throw Error(mxResources.get("drawingEmpty"));var m=this.view.scale,n=mxUtils.createXmlDocument(),p=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"svg"):n.createElement("svg");null!=a&&(null!=p.style?p.style.backgroundColor=a:p.setAttribute("style","background-color:"+a));null==n.createElementNS?(p.setAttribute("xmlns",mxConstants.NS_SVG),p.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):p.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);a=b/m;p.setAttribute("width",
|
||||
Math.max(1,Math.ceil(l.width*a)+2*c)+"px");p.setAttribute("height",Math.max(1,Math.ceil(l.height*a)+2*c)+"px");p.setAttribute("version","1.1");d=p;if(e){var v=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"g"):n.createElement("g");v.setAttribute("transform","translate(0.5,0.5)");p.appendChild(v);n.appendChild(p);d=v}else n.appendChild(p);var q=this.createSvgCanvas(d);q.foOffset=e?-.5:0;q.textOffset=e?-.5:0;q.imageOffset=e?-.5:0;q.translate(Math.floor((c/b-l.x)/m),Math.floor((c/b-l.y)/
|
||||
m));var r=document.createElement("textarea"),t=q.createAlternateContent;q.createAlternateContent=function(a,b,c,d,e,f,g,h,k,l,m,n,p){var v=this.state;if(null!=this.foAltText&&(0==d||0!=v.fontSize&&f.length<5*d/v.fontSize)){var q=this.createElement("text");q.setAttribute("x",Math.round(d/2));q.setAttribute("y",Math.round((e+v.fontSize)/2));q.setAttribute("fill",v.fontColor||"black");q.setAttribute("text-anchor","middle");q.setAttribute("font-size",Math.round(v.fontSize)+"px");q.setAttribute("font-family",
|
||||
v.fontFamily);(v.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&q.setAttribute("font-weight","bold");(v.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&q.setAttribute("font-style","italic");(v.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&q.setAttribute("text-decoration","underline");try{return r.innerHTML=f,q.textContent=r.value,q}catch(Aa){return t.apply(this,arguments)}}else return t.apply(this,arguments)};var u=this.backgroundImage;if(null!=u){b=m/b;
|
||||
var G=this.view.translate,Q=new mxRectangle(G.x*b,G.y*b,u.width*b,u.height*b);mxUtils.intersects(l,Q)&&q.image(G.x,G.y,u.width,u.height,u.src,!0)}q.scale(a);q.textEnabled=g;h=null!=h?h:this.createSvgImageExport();var w=h.drawCellState;h.drawCellState=function(a,b){for(var c=a.view.graph,d=c.isCellSelected(a.cell),e=c.model.getParent(a.cell);!f&&!d&&null!=e;)d=c.isCellSelected(e),e=c.model.getParent(e);(f||d)&&w.apply(this,arguments)};h.drawState(this.getView().getState(this.model.root),q);return p}finally{k&&
|
||||
(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.createSvgCanvas=function(a){return new mxSvgCanvas2D(a)};Graph.prototype.getSelectedElement=function(){var a=null;if(window.getSelection){var b=window.getSelection();b.getRangeAt&&b.rangeCount&&(a=b.getRangeAt(0).commonAncestorContainer)}else document.selection&&(a=document.selection.createRange().parentElement());return a};Graph.prototype.getParentByName=function(a,b,c){for(;null!=a&&a.nodeName!=b;){if(a==c)return null;
|
||||
a=a.parentNode}return a};Graph.prototype.selectNode=function(a){var b=null;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){var c=document.createRange();c.selectNode(a);b.removeAllRanges();b.addRange(c)}}else(b=document.selection)&&"Control"!=b.type&&(a=b.createRange(),a.collapse(!0),c=b.createRange(),c.setEndPoint("StartToStart",a),c.select())};Graph.prototype.insertRow=function(a,b){for(var c=a.tBodies[0],d=c.rows[0].cells,e=0,f=0;f<d.length;f++)var g=d[f].getAttribute("colspan"),
|
||||
e=e+(null!=g?parseInt(g):1);c=c.insertRow(b);for(f=0;f<e;f++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(a,b){a.tBodies[0].deleteRow(b)};Graph.prototype.insertColumn=function(a,b){var c=a.tHead;if(null!=c)for(var d=0;d<c.rows.length;d++){var e=document.createElement("th");c.rows[d].appendChild(e);mxUtils.br(e)}c=a.tBodies[0];for(d=0;d<c.rows.length;d++)e=c.rows[d].insertCell(b),mxUtils.br(e);return c.rows[0].cells[0<=b?b:c.rows[0].cells.length-1]};Graph.prototype.deleteColumn=
|
||||
function(a,b){if(0<=b)for(var c=a.tBodies[0].rows,d=0;d<c.length;d++)c[d].cells.length>b&&c[d].deleteCell(b)};Graph.prototype.pasteHtmlAtCaret=function(a){var b;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){b=b.getRangeAt(0);b.deleteContents();var c=document.createElement("div");c.innerHTML=a;a=document.createDocumentFragment();for(var d;d=c.firstChild;)lastNode=a.appendChild(d);b.insertNode(a)}}else(b=document.selection)&&"Control"!=b.type&&b.createRange().pasteHTML(a)};
|
||||
Graph.prototype.createLinkForHint=function(a,b){function c(a,b){a.length>b&&(a=a.substring(0,Math.round(b/2))+"..."+a.substring(a.length-Math.round(b/4)));return a}a=null!=a?a:"javascript:void(0);";if(null==b||0==b.length)b=this.isCustomLink(a)?this.getLinkTitle(a):a;var d=document.createElement("a");d.setAttribute("href",this.getAbsoluteUrl(a));d.setAttribute("title",c(this.isCustomLink(a)?this.getLinkTitle(a):a,80));null!=this.linkTarget&&d.setAttribute("target",this.linkTarget);mxUtils.write(d,
|
||||
c(b,40));this.isCustomLink(a)&&mxEvent.addListener(d,"click",mxUtils.bind(this,function(b){this.customLinkClicked(a);mxEvent.consume(b)}));return d};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(a,b){this.popupMenuHandler.hideMenu()});var a=this.updateMouseEvent;this.updateMouseEvent=function(b){b=a.apply(this,arguments);if(mxEvent.isTouchEvent(b.getEvent())&&
|
||||
null==b.getState()){var c=this.getCellAt(b.graphX,b.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,b.graphX,b.graphY)||(b.state=this.view.getState(c),null!=b.state&&null!=b.state.shape&&(this.container.style.cursor=b.state.shape.node.style.cursor))}null==b.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return b};var b=!1,c=!1,d=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(a,f,g){a==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f),b=this.isCellSelected(f.getCell()),
|
||||
c=this.isSelectionEmpty(),d=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(a,e){this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!d&&!mxEvent.isMouseEvent(e.getEvent())&&(c&&null==e.getCell()&&this.isSelectionEmpty()||b&&this.isCellSelected(e.getCell())));mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,
|
||||
arguments)})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this.editingCell);return null!=a&&1==a.style.html};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var a=window.getSelection();if(a.getRangeAt&&a.rangeCount){for(var b=[],c=0,d=a.rangeCount;c<d;++c)b.push(a.getRangeAt(c));return b}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=
|
||||
function(a){try{if(a)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var b=0,c=a.length;b<c;++b)sel.addRange(a[b])}else document.selection&&a.select&&a.select()}catch(I){}};var e=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(a){null!=a.text&&(a.text.replaceLinefeeds="0"!=mxUtils.getValue(a.style,"nl2Br","1"));e.apply(this,arguments)};var f=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(a,b){this.isKeepFocusEvent(a)||
|
||||
!mxEvent.isAltDown(a.getEvent())?f.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(a){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var g=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(a,b){g.apply(this,arguments);var c=this.graph.view.getState(a);this.textarea.className=null!=c&&1==c.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";
|
||||
this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(a);var c=this.graph.getModel().getParent(a),d=this.graph.getCellGeometry(a);this.graph.getModel().isEdge(c)&&null!=d&&d.relative||this.graph.getModel().isEdge(a)?mxClient.IS_QUIRKS?this.textarea.style.border="gray dotted 1px":this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":"":mxClient.IS_QUIRKS&&(this.textarea.style.outline="none",this.textarea.style.border=
|
||||
"")};var h=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(a){function b(a,c){c.originalNode=a;a=a.firstChild;for(var d=c.firstChild;null!=a&&null!=d;)b(a,d),a=a.nextSibling,d=d.nextSibling;return c}function c(a,b){if(null!=a)if(b.originalNode!=a)d(a);else for(a=a.firstChild,b=b.firstChild;null!=a;){var e=a.nextSibling;null==b?d(a):(c(a,b),b=b.nextSibling);a=e}}function d(a){for(var b=a.firstChild;null!=b;){var c=b.nextSibling;d(b);b=c}1==a.nodeType&&("BR"===
|
||||
a.nodeName||null!=a.firstChild)||3==a.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(a)).length?(3==a.nodeType&&mxUtils.setTextContent(a,mxUtils.getTextContent(a).replace(/\n|\r/g,"")),1==a.nodeType&&(a.removeAttribute("style"),a.removeAttribute("class"),a.removeAttribute("width"),a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.removeAttribute("border"))):a.parentNode.removeChild(a)}h.apply(this,arguments);mxClient.IS_QUIRKS||7===document.documentMode||8===document.documentMode||
|
||||
mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(a){var d=b(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){c(this.textarea,d)}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this.editingCell),b=null!=a&&"0"!=mxUtils.getValue(a.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){h=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<h.length&&"\n"==h.charAt(h.length-1)&&(h=h.substring(0,
|
||||
h.length-1));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"<br/>"):h,!0);this.textarea.className="mxCellEditor geContentEditable";var d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style,
|
||||
mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,a=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+"px";this.textarea.style.textDecoration=a?"underline":"";this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=
|
||||
g?"italic":"";this.textarea.style.fontFamily=b;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var h=mxUtils.htmlEntities(this.textarea.innerHTML);
|
||||
mxClient.IS_QUIRKS||8==document.documentMode||(h=mxUtils.replaceTrailingNewlines(h,"<div><br></div>"));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"").replace(/<br\s*.?>/g,"<br>"):h,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var d=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+"px";this.textarea.style.textDecoration="";
|
||||
this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.padding="2px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=c;this.resize()};var k=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(a,
|
||||
b){if(null!=this.textarea)if(a=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=a){var c=a.view.scale;this.bounds=mxRectangle.fromRectangle(a);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var d=null!=a.text?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));
|
||||
this.bounds.x+=d.x*this.bounds.width;this.bounds.y+=d.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*c);this.textarea.clientWidth<
|
||||
this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/c)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*c);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxClient.IS_VML?this.textarea.style.zoom=c:mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")")}else this.textarea.style.height="",this.textarea.style.overflow="",
|
||||
k.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(a,b){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var c=this.graph.getEditingValue(a.cell,b);"1"==mxUtils.getValue(a.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));return c=this.graph.sanitizeHtml(c,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=
|
||||
null!=d&&(a[c].setAttribute("rel","nofollow noopener noreferrer"),a[c].setAttribute("href",d),null!=b&&mxEvent.addGestureListeners(a[c],null,null,b))}});this.model.addListener(mxEvent.CHANGE,d);d();var e=this.container.style.cursor,f=this.getTolerance(),g=this,h={currentState:null,currentLink:null,highlight:null!=a&&""!=a&&a!=mxConstants.NONE?new mxCellHighlight(g,a,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(a){var b=a.sourceState;if(null==b||null==g.getLinkForCell(b.cell))a=
|
||||
g.getCellAt(a.getGraphX(),a.getGraphY(),null,null,null,function(a,b,c){return null==g.getLinkForCell(a.cell)}),b=g.view.getState(a);b!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=b,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(a,b){this.startX=b.getGraphX();this.startY=b.getGraphY();this.scrollLeft=g.container.scrollLeft;this.scrollTop=g.container.scrollTop;null==this.currentLink&&"auto"==g.container.style.overflow&&(g.container.style.cursor=
|
||||
"move");this.updateCurrentState(b)},mouseMove:function(a,b){if(g.isMouseDown){if(null!=this.currentLink){var c=Math.abs(this.startX-b.getGraphX()),d=Math.abs(this.startY-b.getGraphY());(c>f||d>f)&&this.clear()}}else{for(c=b.getSource();null!=c&&"a"!=c.nodeName.toLowerCase();)c=c.parentNode;null!=c?this.clear():(null!=g.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&g.tooltipHandler.reset(b,!0,this.currentState),(null==this.currentState||b.getState()!=this.currentState&&null!=b.sourceState||
|
||||
!g.intersects(this.currentState,b.getGraphX(),b.getGraphY()))&&this.updateCurrentState(b))}},mouseUp:function(a,d){for(var e=d.getSource(),h=d.getEvent();null!=e&&"a"!=e.nodeName.toLowerCase();)e=e.parentNode;null==e&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&(null==d.sourceState||!d.isSource(d.sourceState.control))&&((mxEvent.isLeftMouseButton(h)||mxEvent.isMiddleMouseButton(h))&&!mxEvent.isPopupTrigger(h)||mxEvent.isTouchEvent(h))&&(null!=
|
||||
this.currentLink?(e=g.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&e||null==b||b(h,this.currentLink),mxEvent.isConsumed(h)||(h=mxEvent.isMiddleMouseButton(h)?"_blank":e?g.linkTarget:"_top",g.openLink(this.currentLink,h),d.consume())):null!=c&&!d.isConsumed()&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&Math.abs(this.startX-d.getGraphX())<f&&Math.abs(this.startY-d.getGraphY())<f&&c(d.getEvent()));this.clear()},activate:function(a){this.currentLink=
|
||||
g.getAbsoluteUrl(g.getLinkForCell(a.cell));null!=this.currentLink&&(g.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(a))},clear:function(){null!=g.container&&(g.container.style.cursor=e);this.currentLink=this.currentState=null;null!=this.highlight&&this.highlight.hide();null!=g.tooltipHandler&&g.tooltipHandler.hide()}};g.click=function(a){};g.addMouseListener(h);mxEvent.addListener(document,"mouseleave",function(a){h.clear()})};Graph.prototype.duplicateCells=function(a,
|
||||
b){a=null!=a?a:this.getSelectionCells();b=null!=b?b:!0;a=this.model.getTopmostCells(a);var c=this.getModel(),d=this.gridSize,e=[];c.beginUpdate();try{for(var f=this.cloneCells(a,!1),g=0;g<a.length;g++){var h=c.getParent(a[g]),k=this.moveCells([f[g]],d,d,!1)[0];e.push(k);if(b)c.add(h,f[g]);else{var l=h.getIndex(a[g]);c.add(h,f[g],l+1)}}}finally{c.endUpdate()}return e};Graph.prototype.insertImage=function(a,b,c){if(null!=a){for(var d=this.cellEditor.textarea.getElementsByTagName("img"),e=[],f=0;f<d.length;f++)e.push(d[f]);
|
||||
document.execCommand("insertimage",!1,a);a=this.cellEditor.textarea.getElementsByTagName("img");if(a.length==e.length+1)for(f=a.length-1;0<=f;f--)if(0==f||a[f]!=e[f-1]){a[f].setAttribute("width",b);a[f].setAttribute("height",c);break}}};Graph.prototype.insertLink=function(a){if(0==a.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var b=this.cellEditor.textarea.getElementsByTagName("a"),c=[],d=0;d<b.length;d++)c.push(b[d]);document.execCommand("createlink",!1,mxUtils.trim(a));
|
||||
b=this.cellEditor.textarea.getElementsByTagName("a");if(b.length==c.length+1)for(d=b.length-1;0<=d;d--)if(b[d]!=c[d-1]){for(b=b[d].getElementsByTagName("a");0<b.length;){for(c=b[0].parentNode;null!=b[0].firstChild;)c.insertBefore(b[0].firstChild,b[0]);c.removeChild(b[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(a))};Graph.prototype.isCellResizable=function(a){var b=mxGraph.prototype.isCellResizable.apply(this,arguments),c=this.view.getState(a),c=null!=c?c.style:this.getCellStyle(a);
|
||||
return b||"0"!=mxUtils.getValue(c,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==c[mxConstants.STYLE_WHITE_SPACE]};Graph.prototype.distributeCells=function(a,b){null==b&&(b=this.getSelectionCells());if(null!=b&&1<b.length){for(var c=[],d=null,e=null,f=0;f<b.length;f++)if(this.getModel().isVertex(b[f])){var g=this.view.getState(b[f]);if(null!=g){var h=a?g.getCenterX():g.getCenterY(),d=null!=d?Math.max(d,h):h,e=null!=e?Math.min(e,h):h;c.push(g)}}if(2<c.length){c.sort(function(b,c){return a?b.x-c.x:b.y-c.y});
|
||||
g=this.view.translate;h=this.view.scale;e=e/h-(a?g.x:g.y);d=d/h-(a?g.x:g.y);this.getModel().beginUpdate();try{for(var k=(d-e)/(c.length-1),d=e,f=1;f<c.length-1;f++){var l=this.view.getState(this.model.getParent(c[f].cell)),m=this.getCellGeometry(c[f].cell),d=d+k;null!=m&&null!=l&&(m=m.clone(),a?m.x=Math.round(d-m.width/2)-l.origin.x:m.y=Math.round(d-m.height/2)-l.origin.y,this.getModel().setGeometry(c[f].cell,m))}}finally{this.getModel().endUpdate()}}}return b};Graph.prototype.isCloneEvent=function(a){return mxClient.IS_MAC&&
|
||||
mxEvent.isMetaDown(a)||mxEvent.isControlDown(a)};Graph.prototype.encodeCells=function(a){for(var b=this.cloneCells(a),c=new mxDictionary,d=0;d<a.length;d++)c.put(a[d],!0);for(d=0;d<b.length;d++){var e=this.view.getState(a[d]);if(null!=e){var f=this.getCellGeometry(b[d]);null==f||!f.relative||this.model.isEdge(a[d])||c.get(this.model.getParent(a[d]))||(f.relative=!1,f.x=e.x/e.view.scale-e.view.translate.x,f.y=e.y/e.view.scale-e.view.translate.y)}}c=new mxCodec;e=new mxGraphModel;f=e.getChildAt(e.getRoot(),
|
||||
0);for(d=0;d<a.length;d++)e.add(f,b[d]);return c.encode(e)};Graph.prototype.createSvgImageExport=function(){var a=new mxImageExport;a.getLinkForCellState=mxUtils.bind(this,function(a,b){return this.getLinkForCell(a.cell)});return a};Graph.prototype.getSvg=function(a,b,c,d,e,f,g,h){var k=this.useCssTransforms;k&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{b=null!=b?b:1;c=null!=c?c:0;e=null!=e?e:!0;f=null!=f?f:!0;g=null!=g?g:!0;var l=f||d?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells());
|
||||
if(null==l)throw Error(mxResources.get("drawingEmpty"));var m=this.view.scale,n=mxUtils.createXmlDocument(),p=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"svg"):n.createElement("svg");null!=a&&(null!=p.style?p.style.backgroundColor=a:p.setAttribute("style","background-color:"+a));null==n.createElementNS?(p.setAttribute("xmlns",mxConstants.NS_SVG),p.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):p.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);
|
||||
a=b/m;p.setAttribute("width",Math.max(1,Math.ceil(l.width*a)+2*c)+"px");p.setAttribute("height",Math.max(1,Math.ceil(l.height*a)+2*c)+"px");p.setAttribute("version","1.1");d=p;if(e){var v=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"g"):n.createElement("g");v.setAttribute("transform","translate(0.5,0.5)");p.appendChild(v);n.appendChild(p);d=v}else n.appendChild(p);var q=this.createSvgCanvas(d);q.foOffset=e?-.5:0;q.textOffset=e?-.5:0;q.imageOffset=e?-.5:0;q.translate(Math.floor((c/
|
||||
b-l.x)/m),Math.floor((c/b-l.y)/m));var r=document.createElement("textarea"),t=q.createAlternateContent;q.createAlternateContent=function(a,b,c,d,e,f,g,h,k,l,m,n,p){var v=this.state;if(null!=this.foAltText&&(0==d||0!=v.fontSize&&f.length<5*d/v.fontSize)){var q=this.createElement("text");q.setAttribute("x",Math.round(d/2));q.setAttribute("y",Math.round((e+v.fontSize)/2));q.setAttribute("fill",v.fontColor||"black");q.setAttribute("text-anchor","middle");q.setAttribute("font-size",Math.round(v.fontSize)+
|
||||
"px");q.setAttribute("font-family",v.fontFamily);(v.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&q.setAttribute("font-weight","bold");(v.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&q.setAttribute("font-style","italic");(v.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&q.setAttribute("text-decoration","underline");try{return r.innerHTML=f,q.textContent=r.value,q}catch(Aa){return t.apply(this,arguments)}}else return t.apply(this,arguments)};var u=this.backgroundImage;
|
||||
if(null!=u){b=m/b;var G=this.view.translate,Q=new mxRectangle(G.x*b,G.y*b,u.width*b,u.height*b);mxUtils.intersects(l,Q)&&q.image(G.x,G.y,u.width,u.height,u.src,!0)}q.scale(a);q.textEnabled=g;h=null!=h?h:this.createSvgImageExport();var w=h.drawCellState;h.drawCellState=function(a,b){for(var c=a.view.graph,d=c.isCellSelected(a.cell),e=c.model.getParent(a.cell);!f&&!d&&null!=e;)d=c.isCellSelected(e),e=c.model.getParent(e);(f||d)&&w.apply(this,arguments)};h.drawState(this.getView().getState(this.model.root),
|
||||
q);return p}finally{k&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.createSvgCanvas=function(a){return new mxSvgCanvas2D(a)};Graph.prototype.getSelectedElement=function(){var a=null;if(window.getSelection){var b=window.getSelection();b.getRangeAt&&b.rangeCount&&(a=b.getRangeAt(0).commonAncestorContainer)}else document.selection&&(a=document.selection.createRange().parentElement());return a};Graph.prototype.getParentByName=function(a,b,c){for(;null!=a&&a.nodeName!=
|
||||
b;){if(a==c)return null;a=a.parentNode}return a};Graph.prototype.selectNode=function(a){var b=null;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){var c=document.createRange();c.selectNode(a);b.removeAllRanges();b.addRange(c)}}else(b=document.selection)&&"Control"!=b.type&&(a=b.createRange(),a.collapse(!0),c=b.createRange(),c.setEndPoint("StartToStart",a),c.select())};Graph.prototype.insertRow=function(a,b){for(var c=a.tBodies[0],d=c.rows[0].cells,e=0,f=0;f<d.length;f++)var g=
|
||||
d[f].getAttribute("colspan"),e=e+(null!=g?parseInt(g):1);c=c.insertRow(b);for(f=0;f<e;f++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(a,b){a.tBodies[0].deleteRow(b)};Graph.prototype.insertColumn=function(a,b){var c=a.tHead;if(null!=c)for(var d=0;d<c.rows.length;d++){var e=document.createElement("th");c.rows[d].appendChild(e);mxUtils.br(e)}c=a.tBodies[0];for(d=0;d<c.rows.length;d++)e=c.rows[d].insertCell(b),mxUtils.br(e);return c.rows[0].cells[0<=b?b:c.rows[0].cells.length-
|
||||
1]};Graph.prototype.deleteColumn=function(a,b){if(0<=b)for(var c=a.tBodies[0].rows,d=0;d<c.length;d++)c[d].cells.length>b&&c[d].deleteCell(b)};Graph.prototype.pasteHtmlAtCaret=function(a){var b;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){b=b.getRangeAt(0);b.deleteContents();var c=document.createElement("div");c.innerHTML=a;a=document.createDocumentFragment();for(var d;d=c.firstChild;)lastNode=a.appendChild(d);b.insertNode(a)}}else(b=document.selection)&&"Control"!=
|
||||
b.type&&b.createRange().pasteHTML(a)};Graph.prototype.createLinkForHint=function(a,b){function c(a,b){a.length>b&&(a=a.substring(0,Math.round(b/2))+"..."+a.substring(a.length-Math.round(b/4)));return a}a=null!=a?a:"javascript:void(0);";if(null==b||0==b.length)b=this.isCustomLink(a)?this.getLinkTitle(a):a;var d=document.createElement("a");d.setAttribute("rel","nofollow noopener noreferrer");d.setAttribute("href",this.getAbsoluteUrl(a));d.setAttribute("title",c(this.isCustomLink(a)?this.getLinkTitle(a):
|
||||
a,80));null!=this.linkTarget&&d.setAttribute("target",this.linkTarget);mxUtils.write(d,c(b,40));this.isCustomLink(a)&&mxEvent.addListener(d,"click",mxUtils.bind(this,function(b){this.customLinkClicked(a);mxEvent.consume(b)}));return d};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(a,b){this.popupMenuHandler.hideMenu()});var a=this.updateMouseEvent;this.updateMouseEvent=
|
||||
function(b){b=a.apply(this,arguments);if(mxEvent.isTouchEvent(b.getEvent())&&null==b.getState()){var c=this.getCellAt(b.graphX,b.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,b.graphX,b.graphY)||(b.state=this.view.getState(c),null!=b.state&&null!=b.state.shape&&(this.container.style.cursor=b.state.shape.node.style.cursor))}null==b.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return b};var b=!1,c=!1,d=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(a,
|
||||
f,g){a==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f),b=this.isCellSelected(f.getCell()),c=this.isSelectionEmpty(),d=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(a,e){this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!d&&!mxEvent.isMouseEvent(e.getEvent())&&(c&&null==e.getCell()&&this.isSelectionEmpty()||b&&
|
||||
this.isCellSelected(e.getCell())));mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,arguments)})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this.editingCell);return null!=a&&1==a.style.html};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var a=window.getSelection();if(a.getRangeAt&&a.rangeCount){for(var b=[],c=0,d=a.rangeCount;c<d;++c)b.push(a.getRangeAt(c));return b}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();
|
||||
return null};mxCellEditor.prototype.restoreSelection=function(a){try{if(a)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var b=0,c=a.length;b<c;++b)sel.addRange(a[b])}else document.selection&&a.select&&a.select()}catch(I){}};var e=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(a){null!=a.text&&(a.text.replaceLinefeeds="0"!=mxUtils.getValue(a.style,"nl2Br","1"));e.apply(this,arguments)};var f=mxConstraintHandler.prototype.update;
|
||||
mxConstraintHandler.prototype.update=function(a,b){this.isKeepFocusEvent(a)||!mxEvent.isAltDown(a.getEvent())?f.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(a){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var g=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(a,b){g.apply(this,arguments);var c=this.graph.view.getState(a);this.textarea.className=null!=
|
||||
c&&1==c.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(a);var c=this.graph.getModel().getParent(a),d=this.graph.getCellGeometry(a);this.graph.getModel().isEdge(c)&&null!=d&&d.relative||this.graph.getModel().isEdge(a)?mxClient.IS_QUIRKS?this.textarea.style.border="gray dotted 1px":this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":
|
||||
"":mxClient.IS_QUIRKS&&(this.textarea.style.outline="none",this.textarea.style.border="")};var h=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(a){function b(a,c){c.originalNode=a;a=a.firstChild;for(var d=c.firstChild;null!=a&&null!=d;)b(a,d),a=a.nextSibling,d=d.nextSibling;return c}function c(a,b){if(null!=a)if(b.originalNode!=a)d(a);else for(a=a.firstChild,b=b.firstChild;null!=a;){var e=a.nextSibling;null==b?d(a):(c(a,b),b=b.nextSibling);a=e}}function d(a){for(var b=
|
||||
a.firstChild;null!=b;){var c=b.nextSibling;d(b);b=c}1==a.nodeType&&("BR"===a.nodeName||null!=a.firstChild)||3==a.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(a)).length?(3==a.nodeType&&mxUtils.setTextContent(a,mxUtils.getTextContent(a).replace(/\n|\r/g,"")),1==a.nodeType&&(a.removeAttribute("style"),a.removeAttribute("class"),a.removeAttribute("width"),a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.removeAttribute("border"))):a.parentNode.removeChild(a)}h.apply(this,arguments);
|
||||
mxClient.IS_QUIRKS||7===document.documentMode||8===document.documentMode||mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(a){var d=b(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){c(this.textarea,d)}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this.editingCell),b=null!=a&&"0"!=mxUtils.getValue(a.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){h=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);
|
||||
0<h.length&&"\n"==h.charAt(h.length-1)&&(h=h.substring(0,h.length-1));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"<br/>"):h,!0);this.textarea.className="mxCellEditor geContentEditable";var d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==
|
||||
mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,a=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+"px";this.textarea.style.textDecoration=a?"underline":"";this.textarea.style.fontWeight=
|
||||
f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontFamily=b;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");
|
||||
var h=mxUtils.htmlEntities(this.textarea.innerHTML);mxClient.IS_QUIRKS||8==document.documentMode||(h=mxUtils.replaceTrailingNewlines(h,"<div><br></div>"));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"").replace(/<br\s*.?>/g,"<br>"):h,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var d=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+
|
||||
"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.padding="2px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=c;this.resize()};var k=mxCellEditor.prototype.resize;
|
||||
mxCellEditor.prototype.resize=function(a,b){if(null!=this.textarea)if(a=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=a){var c=a.view.scale;this.bounds=mxRectangle.fromRectangle(a);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var d=null!=a.text?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,
|
||||
mxConstants.ALIGN_MIDDLE)));this.bounds.x+=d.x*this.bounds.width;this.bounds.y+=d.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*
|
||||
c);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/c)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*c);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxClient.IS_VML?this.textarea.style.zoom=c:mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")")}else this.textarea.style.height="",this.textarea.style.overflow=
|
||||
"",k.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(a,b){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var c=this.graph.getEditingValue(a.cell,b);"1"==mxUtils.getValue(a.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));return c=this.graph.sanitizeHtml(c,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=
|
||||
function(a){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var b=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return b="1"==mxUtils.getValue(a.style,"nl2Br","1")?b.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):b.replace(/\r\n/g,"").replace(/\n/g,"")};var l=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(a){this.codeViewMode&&this.toggleViewMode();l.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=
|
||||
function(){try{this.graph.container.focus()}catch(v){}};var m=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(a,b){this.graph.getModel().beginUpdate();try{if(m.apply(this,arguments),this.graph.isCellDeletable(a.cell)&&0==this.graph.model.getChildCount(a.cell)){var c=mxUtils.getValue(a.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),d=mxUtils.getValue(a.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);""==b&&c==mxConstants.NONE&&d==mxConstants.NONE&&this.graph.removeCells([a.cell],
|
||||
!1)}}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(a){var b=null;if(this.graph.getModel().isEdge(a.cell)||this.graph.getModel().isEdge(this.graph.getModel().getParent(a.cell)))b=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null),b==mxConstants.NONE&&(b=null);return b};mxCellEditor.prototype.getMinimumSize=function(a){var b=this.graph.getView().scale;return new mxRectangle(0,0,null==a.text?30:a.text.size*b+20,30)};var n=mxGraphHandler.prototype.moveCells;
|
||||
|
|
317
src/main/webapp/js/extensions.min.js
vendored
317
src/main/webapp/js/extensions.min.js
vendored
|
@ -1,26 +1,26 @@
|
|||
LucidImporter={};
|
||||
(function(){function c(a){var b=null!=a.Text?a.Text:null!=a.Value?a.Value:a.Lane_0;null==b&&null!=a.State?null!=a.State.t&&(b=a.State):null==b&&null!=a.Note?null!=a.Note.t&&(b=a.Note):null==b&&null!=a.Title?null!=a.Title.t&&(b=a.Title):null!=a.t&&(b=a);null==b&&null!=a.TextAreas&&null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.t&&(b=a.TextAreas.Text.Value);if(null!=b){if(null!=b.t)return b.t=b.t.replace(/</g,"<"),b.t=b.t.replace(/>/g,">"),b.t;if(null!=b.Value&&
|
||||
null!=b.Value.t)return b.Value.t=b.Value.t.replace(/</g,"<"),b.Value.t=b.Value.t.replace(/>/g,">"),b.Value.t}return""}function m(a){return null!=a.Action?a.Action:a}function w(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else if(null!=a.m)return a.m;return null}function l(c){return h(c)+f(c)+b(c)+a(c)+d(c)+g(c)+p(c)+D(c)+E(c)+y(c)}function h(a){a=
|
||||
null!=b.Value.t)return b.Value.t=b.Value.t.replace(/</g,"<"),b.Value.t=b.Value.t.replace(/>/g,">"),b.Value.t}return""}function m(a){return null!=a.Action?a.Action:a}function w(a){if(null!=a.Text){if(null!=a.Text.m)return a.Text.m}else if(null!=a.TextAreas){if(null!=a.TextAreas.Text&&null!=a.TextAreas.Text.Value&&null!=a.TextAreas.Text.Value.m)return a.TextAreas.Text.Value.m}else if(null!=a.m)return a.m;return null}function l(c){return h(c)+f(c)+b(c)+a(c)+d(c)+g(c)+p(c)+D(c)+E(c)+x(c)}function h(a){a=
|
||||
w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("s"==d.n&&null!=d.v)return"fontSize="+Math.round(.6*d.v)+";";b++}return"fontSize=11;"}function f(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("c"==d.n&&null!=d.v)return a=d.v,"#"!=a.charAt(0)&&(a="#"+a),a=a.substring(0,7),mxConstants.STYLE_FONTCOLOR+"="+a+";";b++}return""}function b(a){a=w(a);if(null!=a){var b=0,d=!1;if(null!=a)for(var g=0;!d&&g<a.length;){var e=a[g];"b"==e.n&&null!=e.v&&e.v&&(d=!0,b+=1);g++}d=!1;if(null!=a)for(g=
|
||||
0;!d&&g<a.length;)e=a[g],"i"==e.n&&null!=e.v&&e.v&&(d=!0,b+=2),g++;d=!1;if(null!=a)for(g=0;!d&&g<a.length;)e=a[g],"u"==e.n&&null!=e.v&&e.v&&(d=!0,b+=4),g++;if(0<b)return"fontStyle="+b+";"}return""}function a(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("a"==d.n&&null!=d.v)return"align="+d.v+";";b++}return""}function d(b){var d=w(b);if(null!=d)for(var g=0;g<d.length;){var p=d[g];if(null!=p.v){if("il"==p.n)return"spacingLeft="+.6*p.v+";";a(b)}g++}return""}function g(a){a=w(a);if(null!=
|
||||
a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function p(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function D(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function E(a){return"number"===typeof a.InsetMargin?"spacing="+parseInt(a.InsetMargin)+";":""}function y(a){return null!=a.Text_VAlign&&
|
||||
a)for(var b=0;b<a.length;){var d=a[b];if("ir"==d.n&&null!=d.v)return"spacingRight="+d.v+";";b++}return""}function p(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mt"==d.n&&null!=d.v)return"spacingTop="+d.v+";";b++}return""}function D(a){a=w(a);if(null!=a)for(var b=0;b<a.length;){var d=a[b];if("mb"==d.n&&null!=d.v)return"spacingBottom="+d.v+";";b++}return""}function E(a){return"number"===typeof a.InsetMargin?"spacing="+parseInt(a.InsetMargin)+";":""}function x(a){return null!=a.Text_VAlign&&
|
||||
"string"===typeof a.Text_VAlign?"verticalAlign="+a.Text_VAlign+";":M(mxConstants.STYLE_VERTICAL_ALIGN,a.TextVAlign,"middle")}function t(a,b){return 0>mxUtils.indexOf(fb,b.Class)?0==a.LineWidth?mxConstants.STYLE_STROKECOLOR+"=none;":M(mxConstants.STYLE_STROKECOLOR,a.LineColor.substring(0,7),"#000000"):"Venn"==b.Class.substring(0,4)?M(mxConstants.STYLE_STROKECOLOR,a.FillColor.substring(0,7),"#FFFFFF"):""}function z(a,b){var d="",g=0<=mxUtils.indexOf(Tb,b.Class);g||(d+=M(mxConstants.STYLE_OPACITY,a.Opacity,
|
||||
"100"));if("string"===typeof a.LineColor&&!g&&7<a.LineColor.length)var e="0x"+a.LineColor.substring(a.LineColor.length-2,a.LineColor.length),d=d+("strokeOpacity="+Math.round(parseInt(e)/2.55)+";");"string"===typeof a.FillColor&&!g&&7<a.FillColor.length&&(g="0x"+a.FillColor.substring(a.FillColor.length-2,a.FillColor.length),d+="fillOpacity="+Math.round(parseInt(g)/2.55)+";");return d}function aa(a,b,d){if(!d.edge)if(null!=a.Rounding&&0>mxUtils.indexOf(sa,b.Class)){if(0<a.Rounding)return"rounded=1;absoluteArcSize=1;arcSize="+
|
||||
.6*a.Rounding+";"}else if(null==a.Rounding&&0<=mxUtils.indexOf(za,b.Class))return"rounded=1;absoluteArcSize=1;arcSize=8;";return""}function I(a,b,d){return null!=a.Rotation&&(a=mxUtils.toDegree(parseFloat(a.Rotation)),"AdvancedSwimLaneBlockRotated"==b.Class?(a+=90,d.geometry.rotate90()):0<=mxUtils.indexOf(bc,b.Class)?(a-=90,d.geometry.rotate90(),d.geometry.rotate90(),d.geometry.rotate90()):0<=mxUtils.indexOf(cc,b.Class)&&(a+=180,d.geometry.rotate90(),d.geometry.rotate90()),0!=a)?"rotation="+a+";":
|
||||
""}function C(a){return null!=a.Shadow?mxConstants.STYLE_SHADOW+"=1;":""}function A(a,b){if(null!=a.FillColor&&0>mxUtils.indexOf(Ub,b.Class))if("object"===typeof a.FillColor){if(null!=a.FillColor.cs&&1<a.FillColor.cs.length)return M(mxConstants.STYLE_FILLCOLOR,a.FillColor.cs[0].c.substring(0,7))+M(mxConstants.STYLE_GRADIENTCOLOR,a.FillColor.cs[1].c.substring(0,7))}else return"string"===typeof a.FillColor?M(mxConstants.STYLE_FILLCOLOR,a.FillColor.substring(0,7),"#FFFFFF"):M(mxConstants.STYLE_FILLCOLOR,
|
||||
"none");return""}function F(a){return"dashed"==a.StrokeStyle?"dashed=1;":"dotted"==a.StrokeStyle?"dashed=1;dashPattern=1 4;":"dashdot"==a.StrokeStyle?"dashed=1;dashPattern=10 5 1 5;":"dotdotdot"==a.StrokeStyle?"dashed=1;dashPattern=1 1;":""}function B(a){return M(mxConstants.STYLE_STROKEWIDTH,.6*parseFloat(a.LineWidth),"1")}function Y(l,w){var Y=m(w);if(null!=Y){var n=gb[Y.Class];null!=n&&(l.style+=n+";");n=null!=Y.Properties?Y.Properties:Y;if(null!=n){l.value=c(n);var e=l.style,J=h(n)+f(n)+b(n)+
|
||||
a(n,l)+d(n)+g(n)+p(n)+D(n)+E(n)+y(n)+t(n,Y)+z(n,Y)+aa(n,Y,l)+I(n,Y,l)+(n.FlipX?"flipH=1;":"")+(n.FlipY?"flipV=1;":"")+C(n)+A(n,Y)+F(n)+B(n);Y="ImageSearchBlock2"==Y.Class?"image="+n.URL+";":"";l.style=e+(J+Y);if(l.edge){l.style=null!=n.Rounding?l.style+("rounded=1;arcSize="+n.Rounding+";"):l.style+"rounded=0;";if("diagonal"!=n.Shape)if(null!=n.ElbowPoints)for(l.geometry.points=[],Y=0;Y<n.ElbowPoints.length;Y++)l.geometry.points.push(new mxPoint(Math.round(.6*n.ElbowPoints[Y].x+0),Math.round(.6*n.ElbowPoints[Y].y+
|
||||
a(n,l)+d(n)+g(n)+p(n)+D(n)+E(n)+x(n)+t(n,Y)+z(n,Y)+aa(n,Y,l)+I(n,Y,l)+(n.FlipX?"flipH=1;":"")+(n.FlipY?"flipV=1;":"")+C(n)+A(n,Y)+F(n)+B(n);Y="ImageSearchBlock2"==Y.Class?"image="+n.URL+";":"";l.style=e+(J+Y);if(l.edge){l.style=null!=n.Rounding?l.style+("rounded=1;arcSize="+n.Rounding+";"):l.style+"rounded=0;";if("diagonal"!=n.Shape)if(null!=n.ElbowPoints)for(l.geometry.points=[],Y=0;Y<n.ElbowPoints.length;Y++)l.geometry.points.push(new mxPoint(Math.round(.6*n.ElbowPoints[Y].x+0),Math.round(.6*n.ElbowPoints[Y].y+
|
||||
0)));else"elbow"==n.Shape?l.style=null!=n.Endpoint1.Block&&null!=n.Endpoint1.Block?l.style+"edgeStyle=orthogonalEdgeStyle;":l.style+"edgeStyle=elbowEdgeStyle;":null!=n.Endpoint1.Block&&null!=n.Endpoint1.Block&&(l.style+="edgeStyle=orthogonalEdgeStyle;","curve"==n.Shape&&(l.style+="curved=1;"));null!=n.Endpoint1.Style&&(l.style+="startArrow="+xb[n.Endpoint1.Style]+";");null!=n.Endpoint2.Style&&(l.style+="endArrow="+xb[n.Endpoint2.Style].replace(/startSize/g,"endSize")+";");fa(l,n.Endpoint1,!0);fa(l,
|
||||
n.Endpoint2,!1)}}}}function J(a){var b=m(a).Properties.BoundingBox;null!=a.Class&&"AWS"===a.Class.substring(0,3)&&(b.h-=20);v=new mxCell("",new mxGeometry(Math.round(.6*b.x+0),Math.round(.6*b.y+0),Math.round(.6*b.w),Math.round(.6*b.h)),"html=1;whiteSpace=wrap;");v.vertex=!0;Y(v,a);return v}function X(a,b,d){d=2*(parseFloat(a.Location)-.5);a=new mxCell(c(a),new mxGeometry(d,0,0,0),"text;html=1;resizable=0;labelBackgroundColor=#ffffff;align=center;verticalAlign=middle;");a.geometry.relative=!0;a.vertex=
|
||||
!0;b.insert(a);return b}function M(a,b,d,g){null!=b&&null!=g&&(b=g(b));return null!=b&&b!=d?a+"="+b+";":""}function fa(a,b,d){null!=b&&null!=b.LinkX&&null!=b.LinkY&&(a.style+=(d?"exitX":"entryX")+"="+b.LinkX+";"+(d?"exitY":"entryY")+"="+b.LinkY+";"+(d?"exitPerimeter":"entryPerimeter")+"=1;")}function ga(a,b,d,g,e,p){a.getModel().beginUpdate();try{var c=function(b,e){var d=null!=e.Endpoint1.Block?D[e.Endpoint1.Block]:null,g=null!=e.Endpoint2.Block?D[e.Endpoint2.Block]:null,p;p=new mxCell("",new mxGeometry(0,
|
||||
0,100,100),"html=1;jettySize=18;");p.geometry.relative=!0;p.edge=!0;Y(p,b);var c=m(b).Properties,k=null!=c?c.TextAreas:b.TextAreas;if(null!=k){for(var y=0;null!=k["t"+y];){var E=k["t"+y];p=X(E,p);y++}for(y=1;null!=k["m"+y];)E=k["m"+y],p=X(E,p,b),y++;null!=k.Text&&(p=X(k,p,b));k=null!=c?c.TextAreas:b.TextAreas;null!=k.Message&&(p=X(k.Message,p,b))}null==d&&null!=e.Endpoint1&&p.geometry.setTerminalPoint(new mxPoint(Math.round(.6*e.Endpoint1.x),Math.round(.6*e.Endpoint1.y)),!0);null==g&&null!=e.Endpoint2&&
|
||||
p.geometry.setTerminalPoint(new mxPoint(Math.round(.6*e.Endpoint2.x),Math.round(.6*e.Endpoint2.y)),!1);f.push(a.addCell(p,null,null,d,g))},f=[],D={},y=[],E=[],t=0;if(null!=b.Groups)for(var n in b.Groups){var h=b.Groups[n];h.id=n;if(1==h.Hidden&&null!=h.Members){0>mxUtils.indexOf(E,n)&&E.push(n);for(var l in h.Members)E=zb(l,b.Groups,E)}}if(null!=b.Blocks)for(n in b.Blocks)h=b.Blocks[n],h.id=n,0>mxUtils.indexOf(E,n)&&(l=!1,null!=gb[h.Class]&&"mxCompositeShape"==gb[h.Class]&&(D[h.id]=Ga(h,f,a),y.push(h),
|
||||
l=!0),l||(D[h.id]=J(h),y.push(h)));else for(t=0;t<b.Objects.length;t++)h=b.Objects[t],null!=h.Action&&"mxCompositeShape"==gb[h.Action.Class]?D[h.id]=Ga(h,f,a):h.IsBlock&&null!=h.Action&&null!=h.Action.Properties&&(D[h.id]=J(h)),y.push(h);y.sort(function(a,b){a=m(a);b=m(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(t=0;t<y.length;t++){var h=y[t],z=D[h.id];null!=z?f.push(a.addCell(z)):h.IsLine&&null!=h.Action&&null!=h.Action.Properties&&c(h,h.Action.Properties)}if(null!=
|
||||
0,100,100),"html=1;jettySize=18;");p.geometry.relative=!0;p.edge=!0;Y(p,b);var c=m(b).Properties,k=null!=c?c.TextAreas:b.TextAreas;if(null!=k){for(var x=0;null!=k["t"+x];){var E=k["t"+x];p=X(E,p);x++}for(x=1;null!=k["m"+x];)E=k["m"+x],p=X(E,p,b),x++;null!=k.Text&&(p=X(k,p,b));k=null!=c?c.TextAreas:b.TextAreas;null!=k.Message&&(p=X(k.Message,p,b))}null==d&&null!=e.Endpoint1&&p.geometry.setTerminalPoint(new mxPoint(Math.round(.6*e.Endpoint1.x),Math.round(.6*e.Endpoint1.y)),!0);null==g&&null!=e.Endpoint2&&
|
||||
p.geometry.setTerminalPoint(new mxPoint(Math.round(.6*e.Endpoint2.x),Math.round(.6*e.Endpoint2.y)),!1);f.push(a.addCell(p,null,null,d,g))},f=[],D={},x=[],E=[],t=0;if(null!=b.Groups)for(var n in b.Groups){var h=b.Groups[n];h.id=n;if(1==h.Hidden&&null!=h.Members){0>mxUtils.indexOf(E,n)&&E.push(n);for(var l in h.Members)E=zb(l,b.Groups,E)}}if(null!=b.Blocks)for(n in b.Blocks)h=b.Blocks[n],h.id=n,0>mxUtils.indexOf(E,n)&&(l=!1,null!=gb[h.Class]&&"mxCompositeShape"==gb[h.Class]&&(D[h.id]=Ga(h,f,a),x.push(h),
|
||||
l=!0),l||(D[h.id]=J(h),x.push(h)));else for(t=0;t<b.Objects.length;t++)h=b.Objects[t],null!=h.Action&&"mxCompositeShape"==gb[h.Action.Class]?D[h.id]=Ga(h,f,a):h.IsBlock&&null!=h.Action&&null!=h.Action.Properties&&(D[h.id]=J(h)),x.push(h);x.sort(function(a,b){a=m(a);b=m(b);return null!=a.Properties&&null!=b.Properties?a.Properties.ZOrder-b.Properties.ZOrder:0});for(t=0;t<x.length;t++){var h=x[t],z=D[h.id];null!=z?f.push(a.addCell(z)):h.IsLine&&null!=h.Action&&null!=h.Action.Properties&&c(h,h.Action.Properties)}if(null!=
|
||||
b.Lines)for(n in b.Lines)0>mxUtils.indexOf(E,n)&&(h=b.Lines[n],c(h,h));if(e&&null!=d&&null!=g){a.isGridEnabled()&&(d=a.snap(d),g=a.snap(g));var k=a.getBoundingBoxFromGeometry(f,!0);null!=k&&a.moveCells(f,d-k.x,g-k.y)}p||a.setSelectionCells(f)}finally{a.getModel().endUpdate()}}function db(){var a=new Graph;a.setExtendParents(!1);a.setExtendParentsOnAdd(!1);a.setConstrainChildren(!1);a.setHtmlLabels(!0);a.getModel().maintainEdgeParent=!1;return a}function Aa(a,b,d,g,e,p,c,f){a=new mxCell("",new mxGeometry(a,
|
||||
b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;c.insert(a);p=[a];d=sb.cloneCell(d);f.insertEdge(d,!1);a.insertEdge(d,!0);p.push(d);g.push(e.addCell(d,null,null,null,null))}function ca(a,b,d,g,e,p,c,f,D){a=new mxCell("",new mxGeometry(a,b,0,0),"strokeColor=none;fillColor=none;");a.vertex=!0;D.insert(a);d=new mxCell("",new mxGeometry(d,g,0,0),"strokeColor=none;fillColor=none;");d.vertex=!0;D.insert(d);f=[d];e=sb.cloneCell(e);a.insertEdge(e,!0);d.insertEdge(e,!1);f.push(e);p.push(c.addCell(e,
|
||||
null,null,null,null))}function Ga(w,J,M){var n=m(w),e=n.Properties,X=e.BoundingBox,u=Math.round(.6*X.w),r=Math.round(.6*X.h),ga=Math.round(.6*X.x+0),fa=Math.round(.6*X.y+0);v=new mxCell("",new mxGeometry(ga,fa,u,r),"html=1;whiteSpace=wrap;");v.vertex=!0;switch(null!=w.Class?w.Class:null!=n?n.Class:null){case "BraceNoteBlock":case "UI2BraceNoteBlock":var db=!1;null!=e.BraceDirection&&"Right"==e.BraceDirection&&(db=!0);var Ga=null,sa=null;db?(Ga=new mxCell("",new mxGeometry(u-.125*r,0,.125*r,r),"shape=curlyBracket;rounded=1;"),
|
||||
sa=new mxCell("",new mxGeometry(0,0,u-.125*r,r),"strokeColor=none;fillColor=none;")):(Ga=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),sa=new mxCell("",new mxGeometry(.125*r,0,u-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=I(e,n,v);Ga.vertex=!0;v.insert(Ga);Ga.style+=t(e,n)+z(e,n)+C(e)+F(e)+B(e);sa.vertex=!0;sa.value=c(e);v.insert(sa);sa.style+=h(e)+f(e)+b(e)+a(e,sa)+d(e)+g(e)+p(e)+D(e)+E(e)+y(e);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var Tb=
|
||||
0;null!=e.Lanes&&(Tb=e.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var Ub=0,za=[],k=0;k<Tb;k++){var lc=parseFloat(e.Lanes[k].p);za.push(new mxCell("",new mxGeometry(u*Ub,0,u*lc,r),"shape=swimlane;startSize=25;"));za[k].vertex=!0;v.insert(za[k]);za[k].value=c(e["Lane_"+k]);za[k].style+=h(e["Lane_"+k])+f(e["Lane_"+k])+b(e["Lane_"+k])+a(e["Lane_"+k],za[k])+d(e["Lane_"+k])+g(e["Lane_"+k])+p(e["Lane_"+k])+D(e["Lane_"+k])+E(e["Lane_"+k])+y(e["Lane_"+k])+t(e,n)+z(e,n)+aa(e,n,za[k])+I(e,
|
||||
sa=new mxCell("",new mxGeometry(0,0,u-.125*r,r),"strokeColor=none;fillColor=none;")):(Ga=new mxCell("",new mxGeometry(0,0,.125*r,r),"shape=curlyBracket;rounded=1;flipH=1;"),sa=new mxCell("",new mxGeometry(.125*r,0,u-.125*r,r),"strokeColor=none;fillColor=none;"));v.style="strokeColor=none;fillColor=none;";v.style+=I(e,n,v);Ga.vertex=!0;v.insert(Ga);Ga.style+=t(e,n)+z(e,n)+C(e)+F(e)+B(e);sa.vertex=!0;sa.value=c(e);v.insert(sa);sa.style+=h(e)+f(e)+b(e)+a(e,sa)+d(e)+g(e)+p(e)+D(e)+E(e)+x(e);break;case "AdvancedSwimLaneBlockRotated":case "AdvancedSwimLaneBlock":var Tb=
|
||||
0;null!=e.Lanes&&(Tb=e.Lanes.length);v.style="strokeColor=none;fillColor=none;";for(var Ub=0,za=[],k=0;k<Tb;k++){var lc=parseFloat(e.Lanes[k].p);za.push(new mxCell("",new mxGeometry(u*Ub,0,u*lc,r),"shape=swimlane;startSize=25;"));za[k].vertex=!0;v.insert(za[k]);za[k].value=c(e["Lane_"+k]);za[k].style+=h(e["Lane_"+k])+f(e["Lane_"+k])+b(e["Lane_"+k])+a(e["Lane_"+k],za[k])+d(e["Lane_"+k])+g(e["Lane_"+k])+p(e["Lane_"+k])+D(e["Lane_"+k])+E(e["Lane_"+k])+x(e["Lane_"+k])+t(e,n)+z(e,n)+aa(e,n,za[k])+I(e,
|
||||
n,za[k])+(e.FlipX?"flipH=1;":"")+(e.FlipY?"flipV=1;":"")+C(e)+A(e,n)+F(e)+B(e);Ub+=lc}break;case "AndroidDevice":if(null!=e.AndroidDeviceName){v.style="fillColor=#000000;strokeColor=#000000;";var cb=null,fb=null,wb=null;if("Tablet"==e.AndroidDeviceName||"Mini Tablet"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.tab2;",cb=new mxCell("",new mxGeometry(.112*u,.077*r,.77*u,.85*r),""),e.KeyboardShown&&(fb=new mxCell("",new mxGeometry(.112*u,.727*r,.77*u,.2*r),"shape=mxgraph.android.keyboard;")),
|
||||
e.FullScreen||(wb=new mxCell("",new mxGeometry(.112*u,.077*r,.77*u,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));else if("Large Phone"==e.AndroidDeviceName||"Phone"==e.AndroidDeviceName)v.style+="shape=mxgraph.android.phone2;",cb=new mxCell("",new mxGeometry(.04*u,.092*r,.92*u,.816*r),""),e.KeyboardShown&&(fb=new mxCell("",new mxGeometry(.04*u,.708*r,.92*u,.2*r),"shape=mxgraph.android.keyboard;")),e.FullScreen||(wb=new mxCell("",
|
||||
new mxGeometry(.04*u,.092*r,.92*u,.03*r),"shape=mxgraph.android.statusBar;strokeColor=#33b5e5;fillColor=#000000;fontColor=#33b5e5;fontSize="+.015*r+";"));cb.vertex=!0;v.insert(cb);"Dark"==e.Scheme?cb.style+="fillColor=#111111;":"Light"==e.Scheme&&(cb.style+="fillColor=#ffffff;");null!=fb&&(fb.vertex=!0,v.insert(fb));null!=wb&&(wb.vertex=!0,v.insert(wb))}break;case "AndroidAlertDialog":var Ia=new mxCell("",new mxGeometry(0,0,u,30),"strokeColor=none;fillColor=none;spacingLeft=9;");Ia.vertex=!0;v.insert(Ia);
|
||||
|
@ -65,7 +65,7 @@ Ka.vertex=!0;v.insert(Ka);v.style+=A(e,n)+z(e,n)+"strokeColor=none;";break;case
|
|||
na.vertex=!0;v.insert(na);na.value=c(e.Option13);na.style+=l(e.Option13);oa=new mxCell("",new mxGeometry(.2*u,.4*r,.25*u,.2*r),"strokeColor=none;fillColor=none;");oa.vertex=!0;v.insert(oa);oa.value=c(e.Option23);oa.style+=l(e.Option23);Ta=new mxCell("",new mxGeometry(.45*u,.4*r,.2*u,.2*r),"strokeColor=none;fillColor=none;");Ta.vertex=!0;v.insert(Ta);Ta.value=c(e.Option33);Ta.style+=l(e.Option33);pa=new mxCell("",new mxGeometry(.6*u,.4*r,.2*u,.2*r),"strokeColor=none;fillColor=none;");pa.vertex=!0;
|
||||
v.insert(pa);pa.value=c(e.Option43);pa.style+=l(e.Option43);qa=new mxCell("",new mxGeometry(0,.6*r,.25*u,.2*r),"strokeColor=none;fillColor=none;");qa.vertex=!0;v.insert(qa);qa.value=c(e.Option14);qa.style+=l(e.Option14);Va=new mxCell("",new mxGeometry(.45*u,.6*r,.2*u,.2*r),"strokeColor=none;fillColor=none;");Va.vertex=!0;v.insert(Va);Va.value=c(e.Option34);Va.style+=l(e.Option34);ra=new mxCell("",new mxGeometry(0,.8*r,.25*u,.2*r),"strokeColor=none;fillColor=none;");ra.vertex=!0;v.insert(ra);ra.value=
|
||||
c(e.Option15);ra.style+=l(e.Option15);Ya=new mxCell("",new mxGeometry(.45*u,.8*r,.2*u,.2*r),"strokeColor=none;fillColor=none;");Ya.vertex=!0;v.insert(Ya);Ya.value=c(e.Option35);Ya.style+=l(e.Option35);Ja=new mxCell("",new mxGeometry(0,.4*r-2,u,4),"shape=line;strokeColor=#888888;");Ja.vertex=!0;v.insert(Ja);Ka=new mxCell("",new mxGeometry(0,.6*r-2,u,4),"shape=line;strokeColor=#888888;");Ka.vertex=!0;v.insert(Ka);v.style+=A(e,n)+z(e,n)+"strokeColor=none;";break;case "iOSBasicCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;spacing=0;align=left;spacingLeft="+
|
||||
.6*e.SeparatorInset+";";v.style+=h(e.text)+f(e.text)+b(e.text)+y(e.text);v.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);var ha=new mxCell("",new mxGeometry(.79*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
||||
.6*e.SeparatorInset+";";v.style+=h(e.text)+f(e.text)+b(e.text)+x(e.text);v.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);var ha=new mxCell("",new mxGeometry(.79*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
||||
ha.vertex=!0;v.insert(ha);break;case "DetailIndicator":ha=new mxCell("",new mxGeometry(.87*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ha.vertex=!0;v.insert(ha);break;case "CheckMark":U=new mxCell("",new mxGeometry(.89*u,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),U.vertex=!0,v.insert(U)}break;case "iOSSubtitleCell":v.style+="shape=partialRectangle;left=0;top=0;right=0;fillColor=#ffffff;strokeColor=#C8C7CC;align=left;spacing=0;verticalAlign=top;spacingLeft="+
|
||||
.6*e.SeparatorInset+";";v.style+=h(e.subtext)+f(e.subtext)+b(e.subtext);v.value=c(e.subtext);var ja=new mxCell("",new mxGeometry(0,.4*r,u,.6*r),"fillColor=none;strokeColor=none;spacing=0;align=left;verticalAlign=bottom;spacingLeft="+.6*e.SeparatorInset+";");ja.vertex=!0;v.insert(ja);ja.style+=h(e.text)+f(e.text)+b(e.text);ja.value=c(e.text);switch(e.AccessoryIndicatorType){case "Disclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");
|
||||
U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);ha=new mxCell("",new mxGeometry(.79*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ha.vertex=!0;v.insert(ha);break;case "DetailIndicator":ha=new mxCell("",new mxGeometry(.87*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ha.vertex=
|
||||
|
@ -77,14 +77,14 @@ u,r),"fillColor=none;strokeColor=none;spacing=0;align=right;verticalAlign=middle
|
|||
u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);break;case "DetailDisclosure":U=new mxCell("",new mxGeometry(.91*u,.35*r,.15*r,.3*r),"shape=mxgraph.ios7.misc.right;strokeColor=#D2D2D6;");U.vertex=!0;v.insert(U);ha=new mxCell("",new mxGeometry(.79*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");ha.vertex=!0;v.insert(ha);break;case "DetailIndicator":ha=new mxCell("",new mxGeometry(.87*u,.25*r,.5*r,.5*r),"shape=mxgraph.ios7.icons.info;strokeColor=#007AFF;fillColor=#ffffff;");
|
||||
ha.vertex=!0;v.insert(ha);break;case "CheckMark":U=new mxCell("",new mxGeometry(.89*u,.37*r,.4*r,.26*r),"shape=mxgraph.ios7.misc.check;strokeColor=#007AFF;strokeWidth=2;"),U.vertex=!0,v.insert(U)}break;case "iOSTableGroupedSectionBreak":v.style+="shape=partialRectangle;left=0;right=0;fillColor=#EFEFF4;strokeColor=#C8C7CC;";R=new mxCell("",new mxGeometry(0,0,u,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");R.vertex=!0;v.insert(R);R.style+=h(e.text)+f(e.text)+b(e.text);R.value=c(e.text);
|
||||
va=new mxCell("",new mxGeometry(0,.6*r,u,.4*r),"fillColor=none;strokeColor=none;spacing=10;align=left;");va.vertex=!0;v.insert(va);va.style+=h(e["bottom-text"])+f(e["bottom-text"])+b(e["bottom-text"]);va.value=c(e["bottom-text"]);break;case "iOSTablePlainHeaderFooter":v.style+="fillColor=#F7F7F7;strokeColor=none;align=left;spacingLeft=5;spacing=0;";v.style+=h(e.text)+f(e.text)+b(e.text);v.value=c(e.text);break;case "SMPage":if(e.Group){v.style+="strokeColor=none;fillColor=none;";var q=new mxCell("",
|
||||
new mxGeometry(0,0,.9*u,.9*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);var x=new mxCell("",new mxGeometry(.1*u,.1*r,.9*u,.9*r),"part=1;");x.vertex=!0;v.insert(x);x.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e);x.value=c(e.Text);e.Future&&(q.style+="dashed=1;",x.style+="dashed=1;")}else e.Future&&(v.style+="dashed=1;"),v.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e),v.value=c(e.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=
|
||||
new mxGeometry(0,0,.9*u,.9*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);var y=new mxCell("",new mxGeometry(.1*u,.1*r,.9*u,.9*r),"part=1;");y.vertex=!0;v.insert(y);y.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e);y.value=c(e.Text);e.Future&&(q.style+="dashed=1;",y.style+="dashed=1;")}else e.Future&&(v.style+="dashed=1;"),v.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e),v.value=c(e.Text);break;case "SMHome":case "SMPrint":case "SMSearch":case "SMSettings":case "SMSitemap":case "SMSuccess":case "SMVideo":case "SMAudio":case "SMCalendar":case "SMChart":case "SMCloud":case "SMDocument":case "SMForm":case "SMGame":case "SMUpload":v.style+=
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);q=null;switch(w.Class){case "SMHome":q=new mxCell("",new mxGeometry(.5*u-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.home;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMPrint":q=new mxCell("",new mxGeometry(.5*u-.4*r,.19*r,.8*r,.62*r),"part=1;shape=mxgraph.office.devices.printer;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSearch":q=new mxCell("",new mxGeometry(.5*u-.4*r,.1*r,.8*r,.8*r),"part=1;shape=mxgraph.office.concepts.search;flipH=1;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
||||
break;case "SMSettings":q=new mxCell("",new mxGeometry(.5*u-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.settings;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSitemap":q=new mxCell("",new mxGeometry(.5*u-.35*r,.2*r,.7*r,.6*r),"part=1;shape=mxgraph.office.sites.site_collection;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMSuccess":q=new mxCell("",new mxGeometry(.5*u-.3*r,.25*r,.6*r,.5*r),"part=1;shape=mxgraph.mscae.general.checkmark;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
||||
break;case "SMVideo":q=new mxCell("",new mxGeometry(.5*u-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.office.concepts.video_play;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMAudio":q=new mxCell("",new mxGeometry(.5*u-.3*r,.2*r,.6*r,.6*r),"part=1;shape=mxgraph.mscae.general.audio;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMCalendar":q=new mxCell("",new mxGeometry(.5*u-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
||||
break;case "SMChart":var H=A(e,n),H=""==H?"#ffffff;":H.replace("fillColor=",""),q=new mxCell("",new mxGeometry(.5*u-.35*r,.15*r,.7*r,.7*r),"part=1;shape=mxgraph.ios7.icons.pie_chart;fillColor=#e6e6e6;fillOpacity=50;strokeWidth=4;strokeColor="+H);break;case "SMCloud":q=new mxCell("",new mxGeometry(.5*u-.4*r,.27*r,.8*r,.46*r),"part=1;shape=mxgraph.networks.cloud;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMDocument":q=new mxCell("",new mxGeometry(.5*u-.25*r,.15*r,.5*r,.7*r),"part=1;shape=mxgraph.mscae.enterprise.document;fillColor=#e6e6e6;opacity=50;strokeColor=none;");
|
||||
break;case "SMForm":q=new mxCell("",new mxGeometry(.5*u-.4*r,.15*r,.8*r,.7*r),"part=1;shape=mxgraph.office.concepts.form;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMGame":q=new mxCell("",new mxGeometry(.5*u-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.general.game_controller;fillColor=#e6e6e6;opacity=50;strokeColor=none;");break;case "SMUpload":q=new mxCell("",new mxGeometry(.5*u-.4*r,.2*r,.8*r,.6*r),"part=1;shape=mxgraph.mscae.enterprise.backup_online;fillColor=#e6e6e6;opacity=50;strokeColor=none;")}q.vertex=
|
||||
!0;v.insert(q);q.style+=l(e);q.value=c(e.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";q=new mxCell("",new mxGeometry(.1*u,0,.9*u,.9*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);x=new mxCell("",new mxGeometry(0,.1*r,.9*u,.9*r),"part=1;");x.vertex=!0;v.insert(x);x.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);x.value=c(e.Text);break;case "UMLConstraintBlock":var Vb=new mxCell("",new mxGeometry(0,0,.25*r,r),"shape=curlyBracket;rounded=1;");
|
||||
Vb.vertex=!0;v.insert(Vb);var Wb=new mxCell("",new mxGeometry(u-.25*r,0,.25*r,r),"shape=curlyBracket;rounded=1;flipH=1;");Wb.vertex=!0;v.insert(Wb);sa=new mxCell("",new mxGeometry(.25*r,0,u-.5*r,r),"strokeColor=none;fillColor=none;");sa.vertex=!0;sa.value=c(e);v.insert(sa);v.style="strokeColor=none;fillColor=none;";v.style+=I(e,n,v);Vb.style+=t(e,n)+z(e,n)+C(e)+F(e)+B(e);Wb.style+=t(e,n)+z(e,n)+C(e)+F(e)+B(e);sa.style+=h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+p(e)+D(e)+E(e)+y(e);break;case "UMLTextBlock":v.style+=
|
||||
!0;v.insert(q);q.style+=l(e);q.value=c(e.Text);break;case "UMLMultiplicityBlock":v.style+="strokeColor=none;fillColor=none;";q=new mxCell("",new mxGeometry(.1*u,0,.9*u,.9*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);y=new mxCell("",new mxGeometry(0,.1*r,.9*u,.9*r),"part=1;");y.vertex=!0;v.insert(y);y.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);y.value=c(e.Text);break;case "UMLConstraintBlock":var Vb=new mxCell("",new mxGeometry(0,0,.25*r,r),"shape=curlyBracket;rounded=1;");
|
||||
Vb.vertex=!0;v.insert(Vb);var Wb=new mxCell("",new mxGeometry(u-.25*r,0,.25*r,r),"shape=curlyBracket;rounded=1;flipH=1;");Wb.vertex=!0;v.insert(Wb);sa=new mxCell("",new mxGeometry(.25*r,0,u-.5*r,r),"strokeColor=none;fillColor=none;");sa.vertex=!0;sa.value=c(e);v.insert(sa);v.style="strokeColor=none;fillColor=none;";v.style+=I(e,n,v);Vb.style+=t(e,n)+z(e,n)+C(e)+F(e)+B(e);Wb.style+=t(e,n)+z(e,n)+C(e)+F(e)+B(e);sa.style+=h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+p(e)+D(e)+E(e)+x(e);break;case "UMLTextBlock":v.style+=
|
||||
"strokeColor=none;"+z(e,n)+C(e)+F(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case "BPMNActivity":switch(e.bpmnActivityType){case 1:v.style+=A(e,n)+t(e,n)+z(e,n)+C(e)+F(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case 2:v.style+="shape=ext;double=1;"+A(e,n)+t(e,n)+z(e,n)+C(e)+F(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case 3:v.style+="shape=ext;dashed=1;dashPattern=2 1;"+A(e,n)+t(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);v.value=c(e.Text);break;case 4:v.style+="shape=ext;strokeWidth=2;"+A(e,n)+t(e,n)+z(e,n)+C(e)+
|
||||
F(e)+l(e.Text),v.value=c(e.Text)}if(0!=e.bpmnTaskType){switch(e.bpmnTaskType){case 1:q=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");q.geometry.offset=new mxPoint(4,7);break;case 2:q=new mxCell("",new mxGeometry(0,0,19,12),"shape=message;");q.geometry.offset=new mxPoint(4,7);break;case 3:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.user_task;");q.geometry.offset=new mxPoint(4,5);break;case 4:q=new mxCell("",new mxGeometry(0,0,15,10),"shape=mxgraph.bpmn.manual_task;");
|
||||
q.geometry.offset=new mxPoint(4,7);break;case 5:q=new mxCell("",new mxGeometry(0,0,18,13),"shape=mxgraph.bpmn.business_rule_task;");q.geometry.offset=new mxPoint(4,7);break;case 6:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.service_task;");q.geometry.offset=new mxPoint(4,5);break;case 7:q=new mxCell("",new mxGeometry(0,0,15,15),"shape=mxgraph.bpmn.script_task;"),q.geometry.offset=new mxPoint(4,5)}if(1==e.bpmnTaskType){var Lb=A(e,n),H=t(e,n),H=H.replace("strokeColor","fillColor"),
|
||||
|
@ -100,58 +100,58 @@ A(e,n)+t(e,n)+z(e,n)+C(e)+F(e)+l(e);switch(e.bpmnGatewayType){case 0:v.style+="o
|
|||
case "BPMNData":v.style+="shape=note;size=14;"+A(e,n)+t(e,n)+z(e,n)+C(e)+F(e)+l(e);switch(e.bpmnDataType){case 1:q=new mxCell("",new mxGeometry(.5,1,12,10),"shape=parallelMarker;part=1;");q.geometry.offset=new mxPoint(-6,-15);q.style+=A(e,n)+t(e,n);q.geometry.relative=!0;q.vertex=!0;v.insert(q);break;case 2:q=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;");q.geometry.offset=new mxPoint(3,3);q.style+=A(e,n)+t(e,n);q.geometry.relative=!0;q.vertex=!0;
|
||||
v.insert(q);v.style+="verticalLabelPosition=bottom;verticalAlign=top;";R=new mxCell("",new mxGeometry(0,0,u,20),"strokeColor=none;fillColor=none;");R.geometry.offset=new mxPoint(0,14);R.geometry.relative=!0;R.vertex=!0;v.insert(R);R.value=c(e.Text);R.style+=l(e);break;case 3:q=new mxCell("",new mxGeometry(0,0,12,10),"shape=singleArrow;part=1;arrowWidth=0.4;arrowSize=0.4;"),q.geometry.offset=new mxPoint(3,3),q.style+=t(e,n),q.geometry.relative=!0,q.vertex=!0,v.insert(q),H=t(e,n),H=H.replace("strokeColor",
|
||||
"fillColor"),""==H&&(H="fillColor=#000000;"),q.style+=H,R=new mxCell("",new mxGeometry(0,0,u,20),"strokeColor=none;fillColor=none;"),R.geometry.offset=new mxPoint(0,14),R.geometry.relative=!0,R.vertex=!0,v.insert(R),R.value=c(e.Text),R.style+=l(e)}break;case "BPMNBlackPool":v.style+=A(e,n)+t(e,n)+z(e,n)+C(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,u,r),"fillColor=#000000;strokeColor=none;opacity=30;");q.vertex=!0;v.insert(q);break;case "DFDExternalEntityBlock":v.style+="strokeColor=none;fillColor=none;";
|
||||
q=new mxCell("",new mxGeometry(0,0,.95*u,.95*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);x=new mxCell("",new mxGeometry(.05*u,.05*r,.95*u,.95*r),"part=1;");x.vertex=!0;v.insert(x);x.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);x.value=c(e.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,.2*u,r),"part=1;");q.vertex=!0;v.insert(q);q.style+=
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Number);q.value=c(e.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==w.Class?v.value=c(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=c(e.Resources));v.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+E(e)+y(e);"VSMDedicatedProcessBlock"==w.Class&&(q=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),
|
||||
q=new mxCell("",new mxGeometry(0,0,.95*u,.95*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e);y=new mxCell("",new mxGeometry(.05*u,.05*r,.95*u,.95*r),"part=1;");y.vertex=!0;v.insert(y);y.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);y.value=c(e.Text);break;case "GSDFDDataStoreBlock":v.style+="shape=partialRectangle;right=0;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Text);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,.2*u,r),"part=1;");q.vertex=!0;v.insert(q);q.style+=
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Number);q.value=c(e.Number);break;case "VSMDedicatedProcessBlock":case "VSMProductionControlBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process;spacingTop=15;";"VSMDedicatedProcessBlock"==w.Class?v.value=c(e.Text):"VSMProductionControlBlock"==w.Class&&(v.value=c(e.Resources));v.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+E(e)+x(e);"VSMDedicatedProcessBlock"==w.Class&&(q=new mxCell("",new mxGeometry(0,1,11,9),"part=1;shape=mxgraph.lean_mapping.operator;"),
|
||||
q.geometry.relative=!0,q.geometry.offset=new mxPoint(4,-13),q.vertex=!0,v.insert(q),q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e));R=new mxCell("",new mxGeometry(0,0,u,15),"strokeColor=none;fillColor=none;part=1;");R.vertex=!0;v.insert(R);R.value=c(e.Title);R.style+=l(e.Title);break;case "VSMSharedProcessBlock":v.style+="shape=mxgraph.lean_mapping.manufacturing_process_shared;spacingTop=-5;verticalAlign=top;";v.value=c(e.Text);v.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+p(e)+
|
||||
E(e);R=new mxCell("",new mxGeometry(.1*u,.3*r,.8*u,.6*r),"part=1;");R.vertex=!0;v.insert(R);R.value=c(e.Resource);R.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e.Resource);break;case "VSMWorkcellBlock":v.style+="shape=mxgraph.lean_mapping.work_cell;verticalAlign=top;spacingTop=-2;";v.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+D(e)+E(e);v.value=c(e.Text);break;case "VSMSafetyBufferStockBlock":case "VSMDatacellBlock":v.style+="strokeColor=none;fillColor=none;";var ta=r,La=parseInt(e.Cells),
|
||||
N=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+"part=1;";0<La&&(ta/=La);K=[];ia=[];for(k=1;k<=La;k++)K[k]=new mxCell("",new mxGeometry(0,(k-1)*ta,u,ta),N),K[k].vertex=!0,v.insert(K[k]),K[k].value=c(e["cell_"+k]),K[k].style+=l(e["cell_"+k]);break;case "VSMInventoryBlock":v.style+="shape=mxgraph.lean_mapping.inventory_box;verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+h(e)+f(e)+b(e)+a(e)+d(e)+g(e)+p(e)+D(e)+E(e);v.value=c(e.Text);break;case "VSMSupermarketBlock":v.style+="strokeColor=none;"+
|
||||
A(e,n);ta=r;La=parseInt(e.Cells);N=t(e,n)+z(e,n)+B(e)+"part=1;fillColor=none;";0<La&&(ta/=La);K=[];Ha=[];for(k=1;k<=La;k++)K[k]=new mxCell("",new mxGeometry(.5*u,(k-1)*ta,.5*u,ta),"shape=partialRectangle;left=0;"+N),K[k].vertex=!0,v.insert(K[k]),Ha[k]=new mxCell("",new mxGeometry(0,(k-1)*ta,u,ta),"strokeColor=none;fillColor=none;part=1;"),Ha[k].vertex=!0,v.insert(Ha[k]),Ha[k].value=c(e["cell_"+k]),Ha[k].style+=l(e["cell_"+k]);break;case "VSMFIFOLaneBlock":v.style+="shape=mxgraph.lean_mapping.fifo_sequence_flow;fontStyle=0;fontSize=18";
|
||||
v.value="FIFO";break;case "VSMGoSeeProductionBlock":v.style+="shape=ellipse;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.17*u,.2*r,13,6),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+A(e,n)+z(e,n)+B(e);break;case "VSMProductionKanbanBatchBlock":v.style+="strokeColor=none;fillColor=none;";N="shape=card;size=18;flipH=1;part=1;"+t(e,n)+A(e,n)+z(e,n)+B(e);q=new mxCell("",
|
||||
new mxGeometry(.1*u,0,.9*u,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");q.vertex=!0;v.insert(q);q.style+=N;x=new mxCell("",new mxGeometry(.05*u,.1*r,.9*u,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");x.vertex=!0;v.insert(x);x.style+=N;var G=new mxCell("",new mxGeometry(0,.2*r,.9*u,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");G.vertex=!0;v.insert(G);G.style+=N+
|
||||
l(e);G.value=c(e.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),
|
||||
x.geometry.relative=!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.Beanstalk?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),
|
||||
x.geometry.relative=!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.EC2?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),x.geometry.relative=
|
||||
!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.Subnet?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),x.geometry.relative=
|
||||
!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.VPC?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),x.geometry.relative=
|
||||
!0,x.geometry.offset=new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.AWS?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),x.geometry.relative=!0,x.geometry.offset=
|
||||
new mxPoint(30,0),x.vertex=!0,v.insert(x)):e.Corporate?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),x=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),x.geometry.relative=!0,x.geometry.offset=
|
||||
new mxPoint(30,0),x.vertex=!0,v.insert(x)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+t(e,n)+l(e.Title)+F(e)+B(e),v.value=c(e.Title));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+l(e.Title)+A(e,n)+z(e,n)+C(e);v.value=c(e.Title);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+
|
||||
new mxGeometry(.1*u,0,.9*u,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");q.vertex=!0;v.insert(q);q.style+=N;y=new mxCell("",new mxGeometry(.05*u,.1*r,.9*u,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;");y.vertex=!0;v.insert(y);y.style+=N;var G=new mxCell("",new mxGeometry(0,.2*r,.9*u,.8*r),"shape=mxgraph.lean_mapping.go_see_production_scheduling;flipH=1;part=1;whiteSpace=wrap;html=1;spacing=2;");G.vertex=!0;v.insert(G);G.style+=N+
|
||||
l(e);G.value=c(e.Text);break;case "AWSRoundedRectangleContainerBlock2":v.style+="strokeColor=none;fillColor=none;";e.Spotfleet?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,35,40),"strokeColor=none;shape=mxgraph.aws3.spot_instance;fillColor=#f58536;"),
|
||||
y.geometry.relative=!0,y.geometry.offset=new mxPoint(30,0),y.vertex=!0,v.insert(y)):e.Beanstalk?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,30,40),"strokeColor=none;shape=mxgraph.aws3.elastic_beanstalk;fillColor=#759C3E;"),
|
||||
y.geometry.relative=!0,y.geometry.offset=new mxPoint(30,0),y.vertex=!0,v.insert(y)):e.EC2?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.ec2;fillColor=#F58534;"),y.geometry.relative=
|
||||
!0,y.geometry.offset=new mxPoint(30,0),y.vertex=!0,v.insert(y)):e.Subnet?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,32,40),"strokeColor=none;shape=mxgraph.aws3.permissions;fillColor=#146EB4;"),y.geometry.relative=
|
||||
!0,y.geometry.offset=new mxPoint(30,0),y.vertex=!0,v.insert(y)):e.VPC?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.virtual_private_cloud;fillColor=#146EB4;"),y.geometry.relative=
|
||||
!0,y.geometry.offset=new mxPoint(30,0),y.vertex=!0,v.insert(y)):e.AWS?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,60,40),"strokeColor=none;shape=mxgraph.aws3.cloud;fillColor=#F58534;"),y.geometry.relative=!0,y.geometry.offset=
|
||||
new mxPoint(30,0),y.vertex=!0,v.insert(y)):e.Corporate?(q=new mxCell("",new mxGeometry(0,0,u,r-20),"resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"),q.geometry.offset=new mxPoint(0,20),q.geometry.relative=!0,q.vertex=!0,v.insert(q),q.style+=t(e,n)+l(e.Title)+F(e)+B(e),q.value=c(e.Title),y=new mxCell("",new mxGeometry(0,0,25,40),"strokeColor=none;shape=mxgraph.aws3.corporate_data_center;fillColor=#7D7C7C;"),y.geometry.relative=!0,y.geometry.offset=
|
||||
new mxPoint(30,0),y.vertex=!0,v.insert(y)):(v.style="resizeWidth=1;resizeHeight=1;fillColor=none;align=center;verticalAlign=bottom;spacing=2;rounded=1;arcSize=10;"+t(e,n)+l(e.Title)+F(e)+B(e),v.value=c(e.Title));break;case "AWSElasticComputeCloudBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.ec2;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+l(e.Title)+A(e,n)+z(e,n)+C(e);v.value=c(e.Title);break;case "AWSRoute53Block2":v.style+="strokeColor=none;shape=mxgraph.aws3.route_53;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+
|
||||
l(e.Title)+A(e,n)+z(e,n)+C(e);v.value=c(e.Title);break;case "AWSRDBSBlock2":v.style+="strokeColor=none;shape=mxgraph.aws3.rds;verticalLabelPosition=bottom;align=center;verticalAlign=top;"+l(e.Title)+A(e,n)+z(e,n)+C(e);v.value=c(e.Title);break;case "NET_RingNetwork":v.style+="strokeColor=none;fillColor=none;";var V=new mxCell("",new mxGeometry(.25*u,.25*r,.5*u,.5*r),"html=1;shape=ellipse;perimeter=ellipsePerimeter;strokeColor=#29AAE1;strokeWidth=2;");V.vertex=!0;v.insert(V);var Z=[V];V.style+=A(e,
|
||||
n);var S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=none;dashed=0;html=1;strokeColor=#29AAE1;strokeWidth=2;");S.geometry.relative=!0;S.edge=!0;Aa(.5*u,0,S,J,M,Z,v,V);Aa(.855*u,.145*r,S,J,M,Z,v,V);Aa(u,.5*r,S,J,M,Z,v,V);Aa(.855*u,.855*r,S,J,M,Z,v,V);Aa(.5*u,r,S,J,M,Z,v,V);Aa(.145*u,.855*r,S,J,M,Z,v,V);Aa(0,.5*r,S,J,M,Z,v,V);Aa(.145*u,.145*r,S,J,M,Z,v,V);break;case "NET_Ethernet":v.style+="strokeColor=none;fillColor=none;";V=new mxCell("",new mxGeometry(0,.5*r-10,u,20),
|
||||
"shape=mxgraph.networks.bus;gradientColor=none;gradientDirection=north;fontColor=#ffffff;perimeter=backbonePerimeter;backboneSize=20;fillColor=#29AAE1;strokeColor=#29AAE1;");V.vertex=!0;v.insert(V);Z=[V];S=new mxCell("",new mxGeometry(0,0,0,0),"strokeColor=#29AAE1;edgeStyle=none;rounded=0;endArrow=none;html=1;strokeWidth=2;");S.geometry.relative=!0;S.edge=!0;for(var Z=[V],Nb=u/e.NumTopNodes,k=0;k<e.NumTopNodes;k++)Aa(.5*Nb+k*Nb,0,S,J,M,Z,v,V);Nb=u/e.NumBottomNodes;for(k=0;k<e.NumBottomNodes;k++)Aa(.5*
|
||||
Nb+k*Nb,r,S,J,M,Z,v,V);break;case "EE_OpAmp":v.style+="shape=mxgraph.electrical.abstract.operational_amp_1;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+l(e);v.value=c(e.Title);e.ToggleCharge&&(v.style+="flipV=1;");break;case "EIMessageChannelBlock":case "EIDatatypeChannelBlock":case "EIInvalidMessageChannelBlock":case "EIDeadLetterChannelBlock":case "EIGuaranteedDeliveryBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);"EIMessageChannelBlock"==
|
||||
w.Class?(q=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;"),q.geometry.offset=new mxPoint(.45*-u,0)):"EIDatatypeChannelBlock"==w.Class?(q=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.dataChannel;fillColor=#818181;part=1;"),q.geometry.offset=new mxPoint(.45*-u,0)):"EIInvalidMessageChannelBlock"==w.Class?(q=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.invalidMessageChannel;fillColor=#818181;part=1;"),q.geometry.offset=
|
||||
new mxPoint(.45*-u,0)):"EIDeadLetterChannelBlock"==w.Class?(q=new mxCell("",new mxGeometry(.5,.5,.9*u,20),"shape=mxgraph.eip.deadLetterChannel;fillColor=#818181;part=1;"),q.geometry.offset=new mxPoint(.45*-u,0)):"EIGuaranteedDeliveryBlock"==w.Class&&(q=new mxCell("",new mxGeometry(.5,.5,20,27),"shape=cylinder;fillColor=#818181;part=1;"),q.geometry.offset=new mxPoint(-10,-7));q.geometry.relative=!0;q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e);S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");
|
||||
S.geometry.relative=!0;S.edge=!0;ca(.15*u,.25*r,.85*u,.25*r,S,J,M,Z,v,V);break;case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,.07*r,.21*u,.86*r),"fillColor=#FFFF33;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e)+F(e);x=new mxCell("",new mxGeometry(.26*u,.09*r,.2*u,.82*r),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");x.vertex=!0;v.insert(x);
|
||||
x.style+=t(e,n)+z(e,n)+B(e)+F(e);G=new mxCell("",new mxGeometry(1,.5,.35*u,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");G.geometry.relative=!0;G.geometry.offset=new mxPoint(.4*-u,-10);G.vertex=!0;v.insert(G);G.style+=t(e,n)+z(e,n)+B(e)+F(e);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");P.geometry.relative=!0;P.edge=!0;q.insertEdge(P,!0);x.insertEdge(P,
|
||||
!1);P.style+=t(e,n);J.push(M.addCell(P,null,null,null,null));O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");O.geometry.relative=!0;O.edge=!0;x.insertEdge(O,!0);G.insertEdge(O,!1);J.push(M.addCell(O,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+=
|
||||
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);for(var Ob=e.Messages,ec=(r-17)/Ob,x=[],S=[],k=0;k<Ob;k++){var Pb=ec*(k+1)-3;x[k]=new mxCell("",new mxGeometry(u-20,Pb,20,20),"part=1;");x[k].vertex=!0;v.insert(x[k]);x[k].style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e);switch(w.Class){case "EIMessageBlock":x[k].value=c(e["message_"+
|
||||
(k+1)]);x.style+=l(e["message_"+(k+1)]);break;case "EICommandMessageBlock":x[k].value="C";x[k].style+="fontStyle=1;fontSize=11;";break;case "EIDocumentMessageBlock":x[k].value="D";x[k].style+="fontStyle=1;fontSize=11;";break;case "EIEventMessageBlock":x[k].value="E",x[k].style+="fontStyle=1;fontSize=11;"}S[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");S[k].geometry.relative=!0;S[k].edge=!0;q.insertEdge(S[k],!1);
|
||||
x[k].insertEdge(S[k],!0);S[k].style+=t(e,n)+B(e);var eb=[];eb.push(new mxPoint(ga+8.5,fa+Pb+10));S[k].geometry.points=eb;J.push(M.addCell(S[k],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.45*u,.25*r,.3*u,.5*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e);S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");
|
||||
S.geometry.relative=!0;S.edge=!0;ca(.15*u,.25*r,.85*u,.25*r,S,J,M,Z,v,V);break;case "EIChannelAdapterBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,.07*r,.21*u,.86*r),"fillColor=#FFFF33;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e)+F(e);y=new mxCell("",new mxGeometry(.26*u,.09*r,.2*u,.82*r),"shape=mxgraph.eip.channel_adapter;fillColor=#4CA3D9;part=1;");y.vertex=!0;v.insert(y);
|
||||
y.style+=t(e,n)+z(e,n)+B(e)+F(e);G=new mxCell("",new mxGeometry(1,.5,.35*u,20),"shape=mxgraph.eip.messageChannel;fillColor=#818181;part=1;");G.geometry.relative=!0;G.geometry.offset=new mxPoint(.4*-u,-10);G.vertex=!0;v.insert(G);G.style+=t(e,n)+z(e,n)+B(e)+F(e);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=none;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=2;");P.geometry.relative=!0;P.edge=!0;q.insertEdge(P,!0);y.insertEdge(P,
|
||||
!1);P.style+=t(e,n);J.push(M.addCell(P,null,null,null,null));O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=1;exitY=0.5;entryX=0;entryY=0.5;endArrow=block;startArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=2;startFill=1;startSize=2;");O.geometry.relative=!0;O.edge=!0;y.insertEdge(O,!0);G.insertEdge(O,!1);J.push(M.addCell(O,null,null,null,null));break;case "EIMessageBlock":case "EICommandMessageBlock":case "EIDocumentMessageBlock":case "EIEventMessageBlock":v.style+=
|
||||
"strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);for(var Ob=e.Messages,ec=(r-17)/Ob,y=[],S=[],k=0;k<Ob;k++){var Pb=ec*(k+1)-3;y[k]=new mxCell("",new mxGeometry(u-20,Pb,20,20),"part=1;");y[k].vertex=!0;v.insert(y[k]);y[k].style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e);switch(w.Class){case "EIMessageBlock":y[k].value=c(e["message_"+
|
||||
(k+1)]);y.style+=l(e["message_"+(k+1)]);break;case "EICommandMessageBlock":y[k].value="C";y[k].style+="fontStyle=1;fontSize=11;";break;case "EIDocumentMessageBlock":y[k].value="D";y[k].style+="fontStyle=1;fontSize=11;";break;case "EIEventMessageBlock":y[k].value="E",y[k].style+="fontStyle=1;fontSize=11;"}S[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");S[k].geometry.relative=!0;S[k].edge=!0;q.insertEdge(S[k],!1);
|
||||
y[k].insertEdge(S[k],!0);S[k].style+=t(e,n)+B(e);var eb=[];eb.push(new mxPoint(ga+8.5,fa+Pb+10));S[k].geometry.points=eb;J.push(M.addCell(S[k],null,null,null,null))}break;case "EIMessageEndpointBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.45*u,.25*r,.3*u,.5*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e);S=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");
|
||||
S.geometry.relative=!0;S.edge=!0;ca(0,.5*r,.4*u,.5*r,S,J,M,Z,v,V);break;case "EIPublishSubscribeChannelBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);var P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");P.geometry.relative=!0;P.edge=!0;ca(.05*u,.5*r,.85*u,.5*r,P,J,M,Z,v,V);var O=new mxCell("",new mxGeometry(0,0,0,0),
|
||||
"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");O.geometry.relative=!0;O.edge=!0;ca(.05*u,.5*r,.85*u,.15*r,O,J,M,Z,v,V);var W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");W.geometry.relative=!0;W.edge=!0;ca(.05*u,.5*r,.85*u,.85*r,W,J,M,Z,v,V);break;case "EIMessageBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");P.geometry.relative=!0;P.edge=!0;P.style+=t(e,n);ca(.05*u,.5*r,.95*u,.5*r,P,J,M,Z,v,V);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
||||
O.geometry.relative=!0;O.edge=!0;O.style+=t(e,n);ca(.3*u,.1*r,.3*u,.5*r,O,J,M,Z,v,V);W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");W.geometry.relative=!0;W.edge=!0;W.style+=t(e,n);ca(.7*u,.1*r,.7*u,.5*r,W,J,M,Z,v,V);var ka=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;dashed=0;html=1;strokeWidth=1;endFill=1;endSize=4;startArrow=block;startFill=1;startSize=4;");
|
||||
ka.geometry.relative=!0;ka.edge=!0;ka.style+=t(e,n);ca(.5*u,.5*r,.5*u,.9*r,ka,J,M,Z,v,V);break;case "EIRequestReplyBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.2*u,.21*r,.16*u,.24*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");
|
||||
P.geometry.relative=!0;P.edge=!0;ca(.45*u,.33*r,.8*u,.33*r,P,J,M,Z,v,V);x=new mxCell("",new mxGeometry(.64*u,.55*r,.16*u,.24*r),"part=1;");x.vertex=!0;v.insert(x);x.style+=t(e,n)+z(e,n)+B(e);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");O.geometry.relative=!0;O.edge=!0;ca(.55*u,.67*r,.2*u,.67*r,O,J,M,Z,v,V);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
||||
P.geometry.relative=!0;P.edge=!0;ca(.45*u,.33*r,.8*u,.33*r,P,J,M,Z,v,V);y=new mxCell("",new mxGeometry(.64*u,.55*r,.16*u,.24*r),"part=1;");y.vertex=!0;v.insert(y);y.style+=t(e,n)+z(e,n)+B(e);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=none;rounded=0;endArrow=block;dashed=0;html=1;strokeColor=#818181;strokeWidth=1;endFill=1;endSize=6;");O.geometry.relative=!0;O.edge=!0;ca(.55*u,.67*r,.2*u,.67*r,O,J,M,Z,v,V);break;case "EIReturnAddressBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.1*u,.15*r,.8*u,.7*r),"part=1;shape=mxgraph.eip.retAddr;fillColor=#FFE040;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+z(e,n)+B(e);break;case "EICorrelationIDBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.04*u,.06*r,.18*u,.28*r),"shape=ellipse;fillColor=#808080;part=1;");q.vertex=!0;v.insert(q);q.style+=
|
||||
t(e,n)+B(e);x=new mxCell("",new mxGeometry(.2*u,.56*r,.2*u,.32*r),"part=1;");x.vertex=!0;v.insert(x);x.style+=t(e,n)+z(e,n)+B(e)+F(e);x.value="A";x.style+="fontStyle=1;fontSize=11;";P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");P.geometry.relative=!0;P.edge=!0;q.insertEdge(P,!1);x.insertEdge(P,!0);P.style+=t(e,n)+B(e);eb=[];eb.push(new mxPoint(ga+.13*u,fa+.72*r));P.geometry.points=eb;J.push(M.addCell(P,null,
|
||||
t(e,n)+B(e);y=new mxCell("",new mxGeometry(.2*u,.56*r,.2*u,.32*r),"part=1;");y.vertex=!0;v.insert(y);y.style+=t(e,n)+z(e,n)+B(e)+F(e);y.value="A";y.style+="fontStyle=1;fontSize=11;";P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");P.geometry.relative=!0;P.edge=!0;q.insertEdge(P,!1);y.insertEdge(P,!0);P.style+=t(e,n)+B(e);eb=[];eb.push(new mxPoint(ga+.13*u,fa+.72*r));P.geometry.points=eb;J.push(M.addCell(P,null,
|
||||
null,null,null));G=new mxCell("",new mxGeometry(.6*u,.06*r,.18*u,.28*r),"shape=ellipse;fillColor=#808080;part=1;");G.vertex=!0;v.insert(G);G.style+=t(e,n)+B(e);Q=new mxCell("",new mxGeometry(.76*u,.56*r,.2*u,.32*r),"part=1;");Q.vertex=!0;v.insert(Q);Q.style+=t(e,n)+z(e,n)+B(e)+F(e);Q.value="B";Q.style+="fontStyle=1;fontSize=11;";O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;part=1;");O.geometry.relative=!0;O.edge=!0;
|
||||
G.insertEdge(O,!1);Q.insertEdge(O,!0);O.style+=t(e,n)+B(e);var pc=[];pc.push(new mxPoint(ga+.69*u,fa+.72*r));O.geometry.points=pc;J.push(M.addCell(O,null,null,null,null));W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;endSize=6;part=1;");W.geometry.relative=!0;W.edge=!0;q.insertEdge(W,!1);G.insertEdge(W,!0);W.style+=t(e,n)+B(e);J.push(M.addCell(W,null,null,null,null));break;case "EIMessageSequenceBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("1",new mxGeometry(.2*u,.4*r,.1*u,.19*r),"fontStyle=1;fontSize=11;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);x=new mxCell("2",new mxGeometry(.45*u,.4*r,.1*u,.19*r),"fontStyle=1;fontSize=11;part=1;");x.vertex=!0;v.insert(x);x.style+=t(e,n)+B(e);G=new mxCell("3",new mxGeometry(.7*u,.4*r,.1*u,.19*r),"fontStyle=1;fontSize=11;part=1;");G.vertex=!0;v.insert(G);G.style+=t(e,n)+B(e);P=new mxCell("",new mxGeometry(0,0,0,0),
|
||||
"curved=1;endArrow=block;html=1;endSize=3;part=1;");q.insertEdge(P,!1);x.insertEdge(P,!0);P.geometry.points=[new mxPoint(ga+.375*u,fa+.15*r)];P.geometry.relative=!0;P.edge=!0;P.style+=t(e,n)+B(e);J.push(M.addCell(P,null,null,null,null));O=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");x.insertEdge(O,!1);G.insertEdge(O,!0);O.geometry.points=[new mxPoint(ga+.675*u,fa+.15*r)];O.geometry.relative=!0;O.edge=!0;O.style+=t(e,n)+B(e);J.push(M.addCell(O,null,null,
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("1",new mxGeometry(.2*u,.4*r,.1*u,.19*r),"fontStyle=1;fontSize=11;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);y=new mxCell("2",new mxGeometry(.45*u,.4*r,.1*u,.19*r),"fontStyle=1;fontSize=11;part=1;");y.vertex=!0;v.insert(y);y.style+=t(e,n)+B(e);G=new mxCell("3",new mxGeometry(.7*u,.4*r,.1*u,.19*r),"fontStyle=1;fontSize=11;part=1;");G.vertex=!0;v.insert(G);G.style+=t(e,n)+B(e);P=new mxCell("",new mxGeometry(0,0,0,0),
|
||||
"curved=1;endArrow=block;html=1;endSize=3;part=1;");q.insertEdge(P,!1);y.insertEdge(P,!0);P.geometry.points=[new mxPoint(ga+.375*u,fa+.15*r)];P.geometry.relative=!0;P.edge=!0;P.style+=t(e,n)+B(e);J.push(M.addCell(P,null,null,null,null));O=new mxCell("",new mxGeometry(0,0,0,0),"curved=1;endArrow=block;html=1;endSize=3;part=1;");y.insertEdge(O,!1);G.insertEdge(O,!0);O.geometry.points=[new mxPoint(ga+.675*u,fa+.15*r)];O.geometry.relative=!0;O.edge=!0;O.style+=t(e,n)+B(e);J.push(M.addCell(O,null,null,
|
||||
null,null));break;case "EIMessageExpirationBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.3*u,.2*r,.4*u,.6*r),"shape=mxgraph.ios7.icons.clock;flipH=1;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);break;case "EIMessageBrokerBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+h(e)+f(e)+b(e)+a(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.38*
|
||||
u,.42*r,.24*u,.16*r),"part=1;fillColor=#aefe7d;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);x=new mxCell("",new mxGeometry(.38*u,0,.24*u,.16*r),"part=1;");x.vertex=!0;v.insert(x);x.style+=A(e,n)+t(e,n)+B(e);G=new mxCell("",new mxGeometry(.76*u,.23*r,.24*u,.16*r),"part=1;");G.vertex=!0;v.insert(G);G.style=x.style;var Q=new mxCell("",new mxGeometry(.76*u,.61*r,.24*u,.16*r),"part=1;");Q.vertex=!0;v.insert(Q);Q.style=x.style;var Xb=new mxCell("",new mxGeometry(.38*u,.84*r,.24*u,.16*r),"part=1;");Xb.vertex=
|
||||
!0;v.insert(Xb);Xb.style=x.style;var Yb=new mxCell("",new mxGeometry(0,.61*r,.24*u,.16*r),"part=1;");Yb.vertex=!0;v.insert(Yb);Yb.style=x.style;var Zb=new mxCell("",new mxGeometry(0,.23*r,.24*u,.16*r),"part=1;");Zb.vertex=!0;v.insert(Zb);Zb.style=x.style;P=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(P,!1);x.insertEdge(P,!0);P.edge=!0;P.style+=t(e,n)+B(e);J.push(M.addCell(P,null,null,null,null));O=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(O,
|
||||
u,.42*r,.24*u,.16*r),"part=1;fillColor=#aefe7d;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);y=new mxCell("",new mxGeometry(.38*u,0,.24*u,.16*r),"part=1;");y.vertex=!0;v.insert(y);y.style+=A(e,n)+t(e,n)+B(e);G=new mxCell("",new mxGeometry(.76*u,.23*r,.24*u,.16*r),"part=1;");G.vertex=!0;v.insert(G);G.style=y.style;var Q=new mxCell("",new mxGeometry(.76*u,.61*r,.24*u,.16*r),"part=1;");Q.vertex=!0;v.insert(Q);Q.style=y.style;var Xb=new mxCell("",new mxGeometry(.38*u,.84*r,.24*u,.16*r),"part=1;");Xb.vertex=
|
||||
!0;v.insert(Xb);Xb.style=y.style;var Yb=new mxCell("",new mxGeometry(0,.61*r,.24*u,.16*r),"part=1;");Yb.vertex=!0;v.insert(Yb);Yb.style=y.style;var Zb=new mxCell("",new mxGeometry(0,.23*r,.24*u,.16*r),"part=1;");Zb.vertex=!0;v.insert(Zb);Zb.style=y.style;P=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(P,!1);y.insertEdge(P,!0);P.edge=!0;P.style+=t(e,n)+B(e);J.push(M.addCell(P,null,null,null,null));O=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(O,
|
||||
!1);G.insertEdge(O,!0);O.edge=!0;O.style+=t(e,n)+B(e);J.push(M.addCell(O,null,null,null,null));W=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(W,!1);Q.insertEdge(W,!0);W.edge=!0;W.style+=t(e,n)+B(e);J.push(M.addCell(W,null,null,null,null));ka=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(ka,!1);Xb.insertEdge(ka,!0);ka.edge=!0;ka.style+=t(e,n)+B(e);J.push(M.addCell(ka,null,null,null,null));var tb=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");
|
||||
q.insertEdge(tb,!1);Yb.insertEdge(tb,!0);tb.edge=!0;tb.style+=t(e,n)+B(e);J.push(M.addCell(tb,null,null,null,null));var ub=new mxCell("",new mxGeometry(0,0,0,0),"endArrow=none;part=1;");q.insertEdge(ub,!1);Zb.insertEdge(ub,!0);ub.edge=!0;ub.style+=t(e,n)+B(e);J.push(M.addCell(ub,null,null,null,null));break;case "EIDurableSubscriberBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);P=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");
|
||||
P.geometry.relative=!0;P.edge=!0;ca(.05*u,.5*r,.6*u,.25*r,P,J,M,Z,v,V);O=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;rounded=0;endArrow=block;endFill=1;endSize=6;");O.geometry.relative=!0;O.edge=!0;ca(.05*u,.5*r,.6*u,.75*r,O,J,M,Z,v,V);q=new mxCell("",new mxGeometry(.7*u,.1*r,.15*u,.32*r),"shape=mxgraph.eip.durable_subscriber;part=1;fillColor=#818181;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);break;case "EIControlBusBlock":v.style+="verticalLabelPosition=bottom;verticalAlign=top;"+
|
||||
t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.25*u,.25*r,.5*u,.5*r),"shape=mxgraph.eip.control_bus;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);break;case "EIMessageHistoryBlock":v.style+="strokeColor=none;fillColor=none;verticalLabelPosition=bottom;verticalAlign=top;"+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,17,17),"shape=ellipse;fillColor=#808080;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);G=new mxCell("",new mxGeometry(u-
|
||||
45,30,30,20),"shape=mxgraph.mockup.misc.mail2;fillColor=#FFE040;part=1;");G.vertex=!0;v.insert(G);G.style+=t(e,n)+B(e);W=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");W.geometry.relative=!0;W.edge=!0;q.insertEdge(W,!1);G.insertEdge(W,!0);W.style+=t(e,n)+B(e);W.geometry.points=[new mxPoint(ga+8.5,fa+40)];J.push(M.addCell(W,null,null,null,null));Q=new mxCell("",new mxGeometry(u-45,r-20,20,20),"part=1;");Q.vertex=!0;
|
||||
v.insert(Q);Q.value=c(e.message_0);Q.style+=l(e.message_0);Q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e);ka=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");ka.geometry.relative=!0;ka.edge=!0;q.insertEdge(ka,!1);Q.insertEdge(ka,!0);ka.style+=t(e,n)+B(e);ka.geometry.points=[new mxPoint(ga+8.5,fa+r-10)];J.push(M.addCell(ka,null,null,null,null));Ob=e.HistoryMessages;ec=(r-75)/Ob;x=[];S=[];for(k=0;k<Ob;k++)Pb=ec*(k+1)+30,
|
||||
x[k]=new mxCell("",new mxGeometry(u-20,Pb,20,20),"part=1;"),x[k].vertex=!0,x[k].value=c(e["message_"+(k+1)]),x.style+=l(e["message_"+(k+1)]),v.insert(x[k]),x[k].style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e),S[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),S[k].geometry.relative=!0,S[k].edge=!0,G.insertEdge(S[k],!1),x[k].insertEdge(S[k],!0),S[k].style+=t(e,n)+B(e),eb=[],eb.push(new mxPoint(ga+u-30,fa+Pb+10)),S[k].geometry.points=
|
||||
v.insert(Q);Q.value=c(e.message_0);Q.style+=l(e.message_0);Q.style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e);ka=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;");ka.geometry.relative=!0;ka.edge=!0;q.insertEdge(ka,!1);Q.insertEdge(ka,!0);ka.style+=t(e,n)+B(e);ka.geometry.points=[new mxPoint(ga+8.5,fa+r-10)];J.push(M.addCell(ka,null,null,null,null));Ob=e.HistoryMessages;ec=(r-75)/Ob;y=[];S=[];for(k=0;k<Ob;k++)Pb=ec*(k+1)+30,
|
||||
y[k]=new mxCell("",new mxGeometry(u-20,Pb,20,20),"part=1;"),y[k].vertex=!0,y[k].value=c(e["message_"+(k+1)]),y.style+=l(e["message_"+(k+1)]),v.insert(y[k]),y[k].style+=t(e,n)+A(e,n)+z(e,n)+C(e)+B(e)+F(e),S[k]=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=orthogonalEdgeStyle;rounded=0;exitX=0;exitY=0.5;endArrow=none;dashed=0;html=1;"),S[k].geometry.relative=!0,S[k].edge=!0,G.insertEdge(S[k],!1),y[k].insertEdge(S[k],!0),S[k].style+=t(e,n)+B(e),eb=[],eb.push(new mxPoint(ga+u-30,fa+Pb+10)),S[k].geometry.points=
|
||||
eb,J.push(M.addCell(S[k],null,null,null,null));break;case "fpDoor":v.style+="shape=mxgraph.floorplan.doorRight;"+t(e,n)+z(e,n)+C(e)+B(e)+I(e,n,v);F(e);0>e.DoorAngle&&(v.style+="flipV=1;");break;case "fpDoubleDoor":v.style+="shape=mxgraph.floorplan.doorDouble;"+t(e,n)+z(e,n)+C(e)+B(e)+I(e,n,v)+F(e);0<e.DoorAngle&&(v.style+="flipV=1;");break;case "fpRestroomLights":v.style+="strokeColor=none;fillColor=none;"+I(e,n,v);q=new mxCell("",new mxGeometry(0,0,u,.25*r),"part=1;");q.vertex=!0;v.insert(q);q.style+=
|
||||
t(e,n)+A(e,n)+B(e)+z(e,n)+C(e)+F(e);for(var x=[],qc=.02*u,fc=(u-2*qc)/e.LightCount,rc=.8*fc,k=0;k<e.LightCount;k++)x[k]=new mxCell("",new mxGeometry(qc+fc*k+(fc-rc)/2,.25*r,rc,.75*r),"part=1;shape=ellipse;"),x[k].vertex=!0,v.insert(x[k]),x[k].style+=t(e,n)+A(e,n)+B(e)+z(e,n)+C(e)+F(e);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;"+I(e,n,v);for(var q=[],sc=u/e.SinkCount,k=0;k<e.SinkCount;k++)q[k]=new mxCell("",new mxGeometry(sc*k,0,sc,r),"part=1;shape=mxgraph.floorplan.sink_2;"),
|
||||
t(e,n)+A(e,n)+B(e)+z(e,n)+C(e)+F(e);for(var y=[],qc=.02*u,fc=(u-2*qc)/e.LightCount,rc=.8*fc,k=0;k<e.LightCount;k++)y[k]=new mxCell("",new mxGeometry(qc+fc*k+(fc-rc)/2,.25*r,rc,.75*r),"part=1;shape=ellipse;"),y[k].vertex=!0,v.insert(y[k]),y[k].style+=t(e,n)+A(e,n)+B(e)+z(e,n)+C(e)+F(e);break;case "fpRestroomSinks":v.style+="strokeColor=none;fillColor=none;"+I(e,n,v);for(var q=[],sc=u/e.SinkCount,k=0;k<e.SinkCount;k++)q[k]=new mxCell("",new mxGeometry(sc*k,0,sc,r),"part=1;shape=mxgraph.floorplan.sink_2;"),
|
||||
q[k].vertex=!0,v.insert(q[k]),q[k].style+=t(e,n)+A(e,n)+B(e)+z(e,n)+C(e)+F(e);break;case "fpRestroomStalls":v.style+="strokeColor=none;fillColor=none;";var xa=.1*u/e.StallCount,q=new mxCell("",new mxGeometry(0,0,xa,r),"fillColor=#000000;part=1;");q.vertex=!0;v.insert(q);q.style+=t(e,n)+B(e);for(var Fa=(u-xa)/e.StallCount,gc=[],Qb=[],Rb=[],Sb=[],H=t(e,n),H=""==H?"#000000;":H.replace("stokreColor=",""),bc="part=1;fillColor="+H+t(e,n)+B(e),hc=A(e,n)+t(e,n)+B(e),k=0;k<e.StallCount;k++)gc[k]=new mxCell("",
|
||||
new mxGeometry((k+1)*Fa,0,xa,r),bc),gc[k].vertex=!0,v.insert(gc[k]),Rb[k]=new mxCell("",new mxGeometry(xa+k*Fa+.05*(Fa-xa),r-.92*(Fa-xa),.9*(Fa-xa),.92*(Fa-xa)),"shape=mxgraph.floorplan.doorRight;flipV=1;part=1;"),Rb[k].vertex=!0,v.insert(Rb[k]),Rb[k].style+=hc,Qb[k]=new mxCell("",new mxGeometry(xa+k*Fa+.2*(Fa-xa),0,.6*(Fa-xa),.8*(Fa-xa)),"shape=mxgraph.floorplan.toilet;part=1;"),Qb[k].vertex=!0,v.insert(Qb[k]),Qb[k].style+=hc,Sb[k]=new mxCell("",new mxGeometry(xa+k*Fa,.42*r,.15*(Fa-xa),.12*(Fa-xa)),
|
||||
"part=1;"),Sb[k].vertex=!0,v.insert(Sb[k]),Sb[k].style+=hc;break;case "PEOneToMany":v.style+="strokeColor=none;fillColor=none;";var $b="edgeStyle=none;endArrow=none;part=1;"+t(e,n)+B(e)+z(e,n)+C(e)+F(e),H=t(e,n),H=""==H?"#000000;":H.replace("stokreColor=",""),ic="shape=triangle;part=1;fillColor="+H+t(e,n)+B(e)+z(e,n)+C(e)+F(e),P=new mxCell("",new mxGeometry(0,0,0,0),$b);P.geometry.relative=!0;P.edge=!0;ca(0,.5*r,.65*u,.5*r,P,J,M,Z,v,V);for(var L=r/e.numLines,O=[],ib=[],k=0;k<e.numLines;k++)O[k]=new mxCell("",
|
||||
|
@ -162,50 +162,50 @@ v.value=c(e.Text);v.style=0==e.columnType?v.style+"shape=mxgraph.pid.vessels.pre
|
|||
(P=new mxCell("",new mxGeometry(0,0,0,0),""),P.geometry.relative=!0,P.edge=!0,P.style+=N,ca(0,0,0,.2*r,P,J,M,Z,v,V),O=new mxCell("",new mxGeometry(0,0,0,0),""),O.geometry.relative=!0,O.edge=!0,O.style+=N,ca(u,.67*r,u,r,O,J,M,Z,v,V)):(q.style+="flipH=1;",P=new mxCell("",new mxGeometry(0,0,0,0),""),P.geometry.relative=!0,P.edge=!0,P.style+=N,ca(0,0,0,.33*r,P,J,M,Z,v,V),O=new mxCell("",new mxGeometry(0,0,0,0),""),O.geometry.relative=!0,O.edge=!0,O.style+=N,ca(u,.8*r,u,r,O,J,M,Z,v,V));1==e.centerLineType&&
|
||||
(W=new mxCell("",new mxGeometry(0,0,0,0),""),W.geometry.relative=!0,W.edge=!0,W.style+=N,ca(.2*u,.5*r,.8*u,.5*r,W,J,M,Z,v,V));break;case "PEMotorDrivenTurbineBlock":N=t(e,n)+A(e,n)+B(e)+z(e,n)+F(e);v.style+="shape=ellipse;"+C(e)+I(e,n,v)+l(e);v.value=c(e.Text);q=new mxCell("",new mxGeometry(.2*u,.2*r,.6*u,.6*r),"part=1;shape=trapezoid;perimeter=trapezoidPerimeter;direction=south;");q.vertex=!0;v.insert(q);q.style+=N;break;case "PEIndicatorBlock":case "PEIndicator2Block":case "PESharedIndicatorBlock":case "PEComputerIndicatorBlock":case "PESharedIndicator2Block":case "PEProgrammableIndicatorBlock":N=
|
||||
z(e,n);v.style+=N+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);switch(w.Class){case "PEIndicatorBlock":v.style+="shape=mxgraph.pid2inst.discInst;";break;case "PEIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=inst;";break;case "PESharedIndicatorBlock":v.style+="shape=mxgraph.pid2inst.sharedCont;";break;case "PEComputerIndicatorBlock":v.style+="shape=mxgraph.pid2inst.compFunc;";break;case "PESharedIndicator2Block":v.style+="shape=mxgraph.pid2inst.indicator;indType=ctrl;";break;case "PEProgrammableIndicatorBlock":v.style+=
|
||||
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==w.Class||"PESharedIndicator2Block"==w.Class?(q=new mxCell("",new mxGeometry(0,0,u,.5*u),"part=1;strokeColor=none;fillColor=none;"),q.vertex=!0,v.insert(q),q.style+=N+l(e.TopText),q.value=c(e.TopText),x=new mxCell("",new mxGeometry(0,.5*u,u,.5*u),"part=1;strokeColor=none;fillColor=none;")):(q=new mxCell("",new mxGeometry(0,0,u,.5*r),"part=1;strokeColor=none;fillColor=none;"),q.vertex=!0,v.insert(q),q.style+=N+l(e.TopText),q.value=c(e.TopText),
|
||||
x=new mxCell("",new mxGeometry(0,.5*r,u,.5*r),"part=1;strokeColor=none;fillColor=none;"));x.vertex=!0;v.insert(x);x.style+=N;l(e.BotText);x.value=c(e.BotText);switch(e.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var jc=!1;"PEPoweredValveBlock"==
|
||||
"shape=mxgraph.pid2inst.progLogCont;"}"PEIndicator2Block"==w.Class||"PESharedIndicator2Block"==w.Class?(q=new mxCell("",new mxGeometry(0,0,u,.5*u),"part=1;strokeColor=none;fillColor=none;"),q.vertex=!0,v.insert(q),q.style+=N+l(e.TopText),q.value=c(e.TopText),y=new mxCell("",new mxGeometry(0,.5*u,u,.5*u),"part=1;strokeColor=none;fillColor=none;")):(q=new mxCell("",new mxGeometry(0,0,u,.5*r),"part=1;strokeColor=none;fillColor=none;"),q.vertex=!0,v.insert(q),q.style+=N+l(e.TopText),q.value=c(e.TopText),
|
||||
y=new mxCell("",new mxGeometry(0,.5*r,u,.5*r),"part=1;strokeColor=none;fillColor=none;"));y.vertex=!0;v.insert(y);y.style+=N;l(e.BotText);y.value=c(e.BotText);switch(e.instrumentLocation){case 0:v.style+="mounting=field;";break;case 1:v.style+="mounting=inaccessible;";break;case 2:v.style+="mounting=room;";break;case 3:v.style+="mounting=local;"}break;case "PEGateValveBlock":case "PEGlobeValveBlock":case "PEAngleValveBlock":case "PEAngleGlobeValveBlock":case "PEPoweredValveBlock":var jc=!1;"PEPoweredValveBlock"==
|
||||
w.Class?1!=e.poweredHandOperated&&(jc=!0):1!=e.handOperated&&(jc=!0);if(jc){var e=m(w).Properties,X=e.BoundingBox,cc=X.h;X.h="PEAngleValveBlock"==w.Class||"PEAngleGlobeValveBlock"==w.Class?.7*X.h:.6*X.h;v=new mxCell("",new mxGeometry(Math.round(.6*X.x+0),Math.round(.6*(X.y+cc-X.h)+0),Math.round(.6*X.w),Math.round(.6*X.h)),"");v.vertex=!0;Y(v,w)}if("PEPoweredValveBlock"==w.Class)v.style+="shape=mxgraph.pid2valves.valve;verticalLabelPosition=bottom;verticalAlign=top;"+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+
|
||||
C(e)+I(e,n,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",q=new mxCell("",new mxGeometry(.325*u,0,.35*u,.35*r),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),q.vertex=!0,v.insert(q),q.style+=N+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+"fontSize=6;"+f(e.PoweredText)+b(e.PoweredText)+a(e.PoweredText)+d(e.PoweredText)+g(e.PoweredText)+D(e.PoweredText)+E(e.PoweredText)+y(e.PoweredText),q.value=c(e.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+
|
||||
C(e)+I(e,n,v),1==e.poweredHandOperated?(v.style+="valveType=gate;actuator=powered;",q=new mxCell("",new mxGeometry(.325*u,0,.35*u,.35*r),"part=1;strokeColor=none;fillColor=none;spacingTop=2;"),q.vertex=!0,v.insert(q),q.style+=N+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+"fontSize=6;"+f(e.PoweredText)+b(e.PoweredText)+a(e.PoweredText)+d(e.PoweredText)+g(e.PoweredText)+D(e.PoweredText)+E(e.PoweredText)+x(e.PoweredText),q.value=c(e.PoweredText)):v.style+="valveType=gate;";else{v.style+="verticalLabelPosition=bottom;verticalAlign=top;shape=mxgraph.pid2valves.valve;"+
|
||||
z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v)+h(e)+f(e)+b(e)+a(e);v.value=c(e.Text);switch(w.Class){case "PEGateValveBlock":v.style+="valveType=gate;";break;case "PEGlobeValveBlock":v.style+="valveType=globe;";break;case "PEAngleValveBlock":v.style+="valveType=angle;";break;case "PEAngleGlobeValveBlock":v.style+="valveType=angleGlobe;flipH=1;"}1==e.handOperated&&(v.style+="actuator=man;")}break;case "UI2BrowserBlock":v.style+="shape=mxgraph.mockup.containers.browserWindow;mainText=;"+z(e,n)+t(e,n)+
|
||||
A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-130),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-110),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,110),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==e.hScroll&&(Q=1==e.vScroll?new mxCell("",new mxGeometry(0,
|
||||
1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2WindowBlock":v.style+="shape=mxgraph.mockup.containers.window;mainText=;align=center;verticalAlign=top;spacing=5;"+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v)+h(e.Title)+f(e.Title)+b(e.Title);v.value=
|
||||
c(e.Title);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");1==e.hScroll&&(Q=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):
|
||||
new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2DialogBlock":v.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v)+l(e.Text);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,u,30),"part=1;resizeHeight=0;");q.vertex=!0;v.insert(q);q.style+=N+l(e.Title);q.value=c(e.Title);x=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
|
||||
x.geometry.relative=!0;x.geometry.offset=new mxPoint(-25,-10);x.vertex=!0;q.insert(x);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");
|
||||
new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2DialogBlock":v.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v)+l(e.Text);v.value=c(e.Text);q=new mxCell("",new mxGeometry(0,0,u,30),"part=1;resizeHeight=0;");q.vertex=!0;v.insert(q);q.style+=N+l(e.Title);q.value=c(e.Title);y=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");
|
||||
y.geometry.relative=!0;y.geometry.offset=new mxPoint(-25,-10);y.vertex=!0;q.insert(y);1==e.vScroll&&(G=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-50),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-30),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(-20,30),G.vertex=!0,v.insert(G),v.style+="spacingRight=20;");
|
||||
1==e.hScroll&&(Q=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),Q.geometry.relative=!0,Q.geometry.offset=new mxPoint(0,-20),Q.vertex=!0,v.insert(Q));break;case "UI2AccordionBlock":v.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);q=[];L=25;for(k=0;k<=e.Panels-1;k++)q[k]=k<e.Selected-1?new mxCell("",
|
||||
new mxGeometry(0,k*L,u,L),"part=1;fillColor=#000000;fillOpacity=25;"):k==e.Selected-1?new mxCell("",new mxGeometry(0,k*L,u,L),"part=1;fillColor=none;"):new mxCell("",new mxGeometry(0,r-(e.Panels-e.Selected)*L+(k-e.Selected)*L,u,L),"part=1;fillColor=#000000;fillOpacity=25;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=l(e["Panel_"+(k+1)]),q[k].value=c(e["Panel_"+(k+1)]),0>q[k].style.indexOf(";align=")&&(q[k].style+="align=left;spacingLeft=5;");var ea=t(e,n),ea=ea.replace("strokeColor","fillColor2");
|
||||
""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-e.Selected*L-20-(e.Panels-e.Selected)*L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-e.Selected*L-(e.Panels-e.Selected)*L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,e.Selected*L),x.vertex=!0,v.insert(x),
|
||||
v.style+="spacingRight=20;",x.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*L),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));Q=1==e.vScroll?
|
||||
new mxCell("",new mxGeometry(0,e.Selected*L,u-20,r-e.Selected*L-20-(e.Panels-e.Selected)*L),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*L,u-20,r-e.Selected*L-(e.Panels-e.Selected)*L),"part=1;fillColor=none;strokeColor=none;");Q.vertex=!0;v.insert(Q);Q.style+=l(e.Content_1);0>Q.style.indexOf(";align=")&&(Q.style+="align=left;spacingLeft=5;");Q.value=c(e.Content_1);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var q=[],x=[],
|
||||
L=25,Ca=3,T=(u+Ca)/(e.Tabs+1),Da=new mxCell("",new mxGeometry(0,L,u,r-L),"part=1;");Da.vertex=!0;v.insert(Da);Da.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(10+k*T,0,T-Ca,L),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Tab_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(10+k*T,0,T-Ca,L),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),x[k]=new mxCell("",
|
||||
new mxGeometry(0,0,T-Ca,L),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=t(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),x[k].value=c(e["Tab_"+(k+1)]),0>x[k].style.indexOf(";align=")&&(x[k].style+="align=left;spacingLeft=2;");ea=t(e,n);ea=ea.replace("strokeColor","fillColor2");""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
|
||||
new mxCell("",new mxGeometry(1,0,20,r-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,L),x.vertex=!0,v.insert(x),v.style+="spacingRight=20;",x.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
|
||||
G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];x=[];L=25;Ca=3;T=(u+Ca)/e.Tabs;Da=new mxCell("",new mxGeometry(0,L,u,r-L),"part=1;");Da.vertex=!0;v.insert(Da);Da.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(k*T,0,T-Ca,L),""),x[k].vertex=!0,v.insert(x[k]),
|
||||
x[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Tab_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(k*T,0,T-Ca,L),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),x[k]=new mxCell("",new mxGeometry(0,0,T-Ca,L),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=t(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),x[k].value=c(e["Tab_"+(k+1)]),0>x[k].style.indexOf(";align=")&&(x[k].style+="align=left;spacingLeft=2;");ea=t(e,n);ea=ea.replace("strokeColor",
|
||||
"fillColor2");""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,L),x.vertex=!0,v.insert(x),v.style+="spacingRight=20;",x.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+
|
||||
F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];x=[];Ca=3;L=25+Ca;
|
||||
T=80;$a=10;Da=new mxCell("",new mxGeometry(T,0,u-T,r),"part=1;");Da.vertex=!0;v.insert(Da);Da.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(0,$a+k*L,T,L-Ca),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Tab_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(0,$a+k*L,T,L-Ca),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),x[k]=new mxCell("",new mxGeometry(0,
|
||||
0,T,L-Ca),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=t(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),x[k].value=c(e["Tab_"+(k+1)]),0>x[k].style.indexOf(";align=")&&(x[k].style+="align=left;spacingLeft=2;");ea=t(e,n);ea=ea.replace("strokeColor","fillColor2");""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(x=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",
|
||||
new mxGeometry(1,0,20,r),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),x.geometry.relative=!0,x.geometry.offset=new mxPoint(-20,0),x.vertex=!0,v.insert(x),v.style+="spacingRight=20;",x.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(T,1,u-20-T,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(T,1,u-T,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
|
||||
G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";L=r/e.Options;q=[];x=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(0,k*L+.5*L-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+
|
||||
(k+1)]),null!=e.Selected[k+1]&&1==e.Selected[k+1]&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),q[k].value=c(e["Option_"+(k+1)]);break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";T=u/e.Options;q=[];x=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(k*T,.5*
|
||||
r-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+(k+1)]),null!=e.Selected[k+1]&&1==e.Selected[k+1]&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),
|
||||
q[k].value=c(e["Option_"+(k+1)]);break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";L=r/e.Options;q=[];x=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(0,k*L+.5*L-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+(k+1)]),null!=e.Selected&&e.Selected==k+1&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),
|
||||
""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"shape=ellipse;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),q[k].value=c(e["Option_"+(k+1)]);break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";T=u/e.Options;q=[];x=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(k*T,.5*r-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
|
||||
q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+(k+1)]),null!=e.Selected&&e.Selected==k+1&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),x[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=ellipse;part=1;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),q[k].value=c(e["Option_"+(k+1)]);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;"+
|
||||
z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e);"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";q=new mxCell("",new mxGeometry(0,0,.6*u,r),"part=1;");q.vertex=!0;v.insert(q);q.style+=z(e,n)+t(e,n)+B(e)+F(e)+C(e)+l(e.Date);q.value=c(e.Date);H=t(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");x=new mxCell("",new mxGeometry(.75*u,0,.25*u,r),"part=1;shape=mxgraph.gmdl.calendar;");
|
||||
x.vertex=!0;v.insert(x);x.style+=H+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e);break;case "UI2SearchBlock":v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+z(e,n)+t(e,n)+B(e)+F(e)+C(e)+h(e.Search)+f(e.Search)+b(e.Search);v.value=c(e.Search);break;case "UI2NumericStepperBlock":H=t(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
|
||||
H+z(e,n)+t(e,n)+B(e)+F(e)+C(e)+h(e.Number)+f(e.Number)+b(e.Number);v.value=c(e.Number);break;case "UI2ButtonBarBlock":v.style+=z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];x=[];T=u/e.Buttons;for(k=0;k<=e.Buttons-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(k*T,0,T,r),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Button_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(k*T,0,T,r),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),
|
||||
x[k]=new mxCell("",new mxGeometry(0,0,T,r),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=t(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)])),x[k].value=c(e["Button_"+(k+1)]);break;case "UI2VerticalButtonBarBlock":v.style+=z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];x=[];L=r/e.Buttons;for(k=0;k<=e.Buttons-1;k++)k==e.Selected-1?(x[k]=new mxCell("",new mxGeometry(0,k*L,u,L),""),x[k].vertex=!0,v.insert(x[k]),x[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Button_"+(k+1)])):(q[k]=new mxCell("",
|
||||
new mxGeometry(0,k*L,u,L),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),x[k]=new mxCell("",new mxGeometry(0,0,u,L),"fillColor=#000000;fillOpacity=25;"),x[k].vertex=!0,q[k].insert(x[k]),x[k].style+=t(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)])),x[k].value=c(e["Button_"+(k+1)]);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;"+z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];x=[];T=u/e.Links;for(k=0;k<e.Links;k++)0!=k?(x[k]=new mxCell("",new mxGeometry(k*T,0,T,r),
|
||||
"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),x[k].style+=z(e,n)+C(e)+t(e,n)+B(e)+F(e)):x[k]=new mxCell("",new mxGeometry(k*T,0,T,r),"fillColor=none;strokeColor=none;"),x[k].vertex=!0,v.insert(x[k]),x[k].style+=l(e["Link_"+(k+1)]),x[k].value=c(e["Link_"+(k+1)]);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;"+z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];x=[];T=u/e.Links;for(k=0;k<e.Links;k++)q[k]=new mxCell("",new mxGeometry(k*T,0,T,r),"fillColor=none;strokeColor=none;"),
|
||||
q[k].vertex=!0,v.insert(q[k]),q[k].style+=l(e["Link_"+(k+1)]),q[k].value=c(e["Link_"+(k+1)]);for(k=1;k<e.Links;k++)x[k]=new mxCell("",new mxGeometry(k/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),x[k].geometry.relative=!0,x[k].geometry.offset=new mxPoint(-3,-5),x[k].vertex=!0,v.insert(x[k]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;"+z(e,n)+A(e,n)+C(e);q=[];T=u/(e.Buttons+1);for(k=0;k<=e.Buttons-1;k++)q[k]=k!=e.Selected-1?new mxCell("",new mxGeometry(0,0,T,r),"strokeColor=none;fillColor=none;resizeHeight=1;"):
|
||||
""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(y=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-e.Selected*L-20-(e.Panels-e.Selected)*L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-e.Selected*L-(e.Panels-e.Selected)*L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),y.geometry.relative=!0,y.geometry.offset=new mxPoint(-20,e.Selected*L),y.vertex=!0,v.insert(y),
|
||||
v.style+="spacingRight=20;",y.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20-(e.Panels-e.Selected)*L),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));Q=1==e.vScroll?
|
||||
new mxCell("",new mxGeometry(0,e.Selected*L,u-20,r-e.Selected*L-20-(e.Panels-e.Selected)*L),"part=1;fillColor=none;strokeColor=none;"):new mxCell("",new mxGeometry(0,e.Selected*L,u-20,r-e.Selected*L-(e.Panels-e.Selected)*L),"part=1;fillColor=none;strokeColor=none;");Q.vertex=!0;v.insert(Q);Q.style+=l(e.Content_1);0>Q.style.indexOf(";align=")&&(Q.style+="align=left;spacingLeft=5;");Q.value=c(e.Content_1);break;case "UI2TabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";var q=[],y=[],
|
||||
L=25,Ca=3,T=(u+Ca)/(e.Tabs+1),Da=new mxCell("",new mxGeometry(0,L,u,r-L),"part=1;");Da.vertex=!0;v.insert(Da);Da.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(y[k]=new mxCell("",new mxGeometry(10+k*T,0,T-Ca,L),""),y[k].vertex=!0,v.insert(y[k]),y[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Tab_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(10+k*T,0,T-Ca,L),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),y[k]=new mxCell("",
|
||||
new mxGeometry(0,0,T-Ca,L),"fillColor=#000000;fillOpacity=25;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=t(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),y[k].value=c(e["Tab_"+(k+1)]),0>y[k].style.indexOf(";align=")&&(y[k].style+="align=left;spacingLeft=2;");ea=t(e,n);ea=ea.replace("strokeColor","fillColor2");""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(y=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):
|
||||
new mxCell("",new mxGeometry(1,0,20,r-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),y.geometry.relative=!0,y.geometry.offset=new mxPoint(-20,L),y.vertex=!0,v.insert(y),v.style+="spacingRight=20;",y.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
|
||||
G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));break;case "UI2TabBar2ContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];y=[];L=25;Ca=3;T=(u+Ca)/e.Tabs;Da=new mxCell("",new mxGeometry(0,L,u,r-L),"part=1;");Da.vertex=!0;v.insert(Da);Da.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(y[k]=new mxCell("",new mxGeometry(k*T,0,T-Ca,L),""),y[k].vertex=!0,v.insert(y[k]),
|
||||
y[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Tab_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(k*T,0,T-Ca,L),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),y[k]=new mxCell("",new mxGeometry(0,0,T-Ca,L),"fillColor=#000000;fillOpacity=25;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=t(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),y[k].value=c(e["Tab_"+(k+1)]),0>y[k].style.indexOf(";align=")&&(y[k].style+="align=left;spacingLeft=2;");ea=t(e,n);ea=ea.replace("strokeColor",
|
||||
"fillColor2");""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(y=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",new mxGeometry(1,0,20,r-L),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),y.geometry.relative=!0,y.geometry.offset=new mxPoint(-20,L),y.vertex=!0,v.insert(y),v.style+="spacingRight=20;",y.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+
|
||||
F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(0,1,u-20,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(0,1,u,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));break;case "UI2VTabBarContainerBlock":v.style+="strokeColor=none;fillColor=none;";q=[];y=[];Ca=3;L=25+Ca;
|
||||
T=80;$a=10;Da=new mxCell("",new mxGeometry(T,0,u-T,r),"part=1;");Da.vertex=!0;v.insert(Da);Da.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v);for(k=0;k<=e.Tabs-1;k++)k==e.Selected-1?(y[k]=new mxCell("",new mxGeometry(0,$a+k*L,T,L-Ca),""),y[k].vertex=!0,v.insert(y[k]),y[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Tab_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(0,$a+k*L,T,L-Ca),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),y[k]=new mxCell("",new mxGeometry(0,
|
||||
0,T,L-Ca),"fillColor=#000000;fillOpacity=25;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=t(e,n)+B(e)+F(e)+l(e["Tab_"+(k+1)])),y[k].value=c(e["Tab_"+(k+1)]),0>y[k].style.indexOf(";align=")&&(y[k].style+="align=left;spacingLeft=2;");ea=t(e,n);ea=ea.replace("strokeColor","fillColor2");""==ea&&(ea="fillColor2=#000000;");1==e.vScroll&&(y=1==e.hScroll?new mxCell("",new mxGeometry(1,0,20,r-20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"):new mxCell("",
|
||||
new mxGeometry(1,0,20,r),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=95;direction=north;resizeHeight=1;"),y.geometry.relative=!0,y.geometry.offset=new mxPoint(-20,0),y.vertex=!0,v.insert(y),v.style+="spacingRight=20;",y.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));1==e.hScroll&&(G=1==e.vScroll?new mxCell("",new mxGeometry(T,1,u-20-T,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"):new mxCell("",new mxGeometry(T,1,u-T,20),"part=1;shape=mxgraph.mockup.navigation.scrollBar;barPos=5;resizeWidth=1;"),
|
||||
G.geometry.relative=!0,G.geometry.offset=new mxPoint(0,-20),G.vertex=!0,v.insert(G),G.style+=ea+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e));break;case "UI2CheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";L=r/e.Options;q=[];y=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(0,k*L+.5*L-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+
|
||||
(k+1)]),null!=e.Selected[k+1]&&1==e.Selected[k+1]&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),y[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),q[k].value=c(e["Option_"+(k+1)]);break;case "UI2HorizontalCheckBoxBlock":v.style+="strokeColor=none;fillColor=none;";T=u/e.Options;q=[];y=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(k*T,.5*
|
||||
r-5,10,10),"labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+(k+1)]),null!=e.Selected[k+1]&&1==e.Selected[k+1]&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),y[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=mxgraph.mscae.general.checkmark;part=1;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),
|
||||
q[k].value=c(e["Option_"+(k+1)]);break;case "UI2RadioBlock":v.style+="strokeColor=none;fillColor=none;";L=r/e.Options;q=[];y=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(0,k*L+.5*L-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+(k+1)]),null!=e.Selected&&e.Selected==k+1&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),
|
||||
""==H&&(H="fillColor=#000000;"),y[k]=new mxCell("",new mxGeometry(2.5,2.5,5,5),"shape=ellipse;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),q[k].value=c(e["Option_"+(k+1)]);break;case "UI2HorizontalRadioBlock":v.style+="strokeColor=none;fillColor=none;";T=u/e.Options;q=[];y=[];for(k=0;k<e.Options;k++)q[k]=new mxCell("",new mxGeometry(k*T,.5*r-5,10,10),"shape=ellipse;labelPosition=right;part=1;verticalLabelPosition=middle;align=left;verticalAlign=middle;spacingLeft=3;"),
|
||||
q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Option_"+(k+1)]),null!=e.Selected&&e.Selected==k+1&&(H=t(e,n),H=H.replace("strokeColor","fillColor"),""==H&&(H="fillColor=#000000;"),y[k]=new mxCell("",new mxGeometry(2,2,6,6),"shape=ellipse;part=1;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=H+z(e,n)+t(e,n)+B(e)+F(e)),q[k].value=c(e["Option_"+(k+1)]);break;case "UI2HSliderBlock":case "UI2VSliderBlock":v.style+="shape=mxgraph.mockup.forms.horSlider;sliderStyle=basic;handleStyle=handle;"+
|
||||
z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e);"UI2VSliderBlock"==w.Class&&(v.style+="direction=south;");v.style+="sliderPos="+100*e.ScrollVal+";";break;case "UI2DatePickerBlock":v.style+="strokeColor=none;fillColor=none;";q=new mxCell("",new mxGeometry(0,0,.6*u,r),"part=1;");q.vertex=!0;v.insert(q);q.style+=z(e,n)+t(e,n)+B(e)+F(e)+C(e)+l(e.Date);q.value=c(e.Date);H=t(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");y=new mxCell("",new mxGeometry(.75*u,0,.25*u,r),"part=1;shape=mxgraph.gmdl.calendar;");
|
||||
y.vertex=!0;v.insert(y);y.style+=H+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e);break;case "UI2SearchBlock":v.style+="shape=mxgraph.mockup.forms.searchBox;mainText=;flipH=1;align=left;spacingLeft=26;"+z(e,n)+t(e,n)+B(e)+F(e)+C(e)+h(e.Search)+f(e.Search)+b(e.Search);v.value=c(e.Search);break;case "UI2NumericStepperBlock":H=t(e,n);H=H.replace("strokeColor","fillColor");""==H&&(H="fillColor=#000000;");v.style+="shape=mxgraph.mockup.forms.spinner;spinLayout=right;spinStyle=normal;adjStyle=triangle;mainText=;align=left;spacingLeft=8;"+
|
||||
H+z(e,n)+t(e,n)+B(e)+F(e)+C(e)+h(e.Number)+f(e.Number)+b(e.Number);v.value=c(e.Number);break;case "UI2ButtonBarBlock":v.style+=z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];y=[];T=u/e.Buttons;for(k=0;k<=e.Buttons-1;k++)k==e.Selected-1?(y[k]=new mxCell("",new mxGeometry(k*T,0,T,r),""),y[k].vertex=!0,v.insert(y[k]),y[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Button_"+(k+1)])):(q[k]=new mxCell("",new mxGeometry(k*T,0,T,r),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),
|
||||
y[k]=new mxCell("",new mxGeometry(0,0,T,r),"fillColor=#000000;fillOpacity=25;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=t(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)])),y[k].value=c(e["Button_"+(k+1)]);break;case "UI2VerticalButtonBarBlock":v.style+=z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];y=[];L=r/e.Buttons;for(k=0;k<=e.Buttons-1;k++)k==e.Selected-1?(y[k]=new mxCell("",new mxGeometry(0,k*L,u,L),""),y[k].vertex=!0,v.insert(y[k]),y[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+l(e["Button_"+(k+1)])):(q[k]=new mxCell("",
|
||||
new mxGeometry(0,k*L,u,L),"strokeColor=none;"),q[k].vertex=!0,v.insert(q[k]),q[k].style+=z(e,n)+A(e,n)+C(e),y[k]=new mxCell("",new mxGeometry(0,0,u,L),"fillColor=#000000;fillOpacity=25;"),y[k].vertex=!0,q[k].insert(y[k]),y[k].style+=t(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)])),y[k].value=c(e["Button_"+(k+1)]);break;case "UI2LinkBarBlock":v.style+="strokeColor=none;fillColor=none;"+z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];y=[];T=u/e.Links;for(k=0;k<e.Links;k++)0!=k?(y[k]=new mxCell("",new mxGeometry(k*T,0,T,r),
|
||||
"shape=partialRectangle;top=0;bottom=0;right=0;fillColor=none;"),y[k].style+=z(e,n)+C(e)+t(e,n)+B(e)+F(e)):y[k]=new mxCell("",new mxGeometry(k*T,0,T,r),"fillColor=none;strokeColor=none;"),y[k].vertex=!0,v.insert(y[k]),y[k].style+=l(e["Link_"+(k+1)]),y[k].value=c(e["Link_"+(k+1)]);break;case "UI2BreadCrumbsBlock":v.style+="strokeColor=none;fillColor=none;"+z(e,n)+t(e,n)+B(e)+F(e)+C(e);q=[];y=[];T=u/e.Links;for(k=0;k<e.Links;k++)q[k]=new mxCell("",new mxGeometry(k*T,0,T,r),"fillColor=none;strokeColor=none;"),
|
||||
q[k].vertex=!0,v.insert(q[k]),q[k].style+=l(e["Link_"+(k+1)]),q[k].value=c(e["Link_"+(k+1)]);for(k=1;k<e.Links;k++)y[k]=new mxCell("",new mxGeometry(k/e.Links,.5,6,10),"shape=mxgraph.ios7.misc.right;"),y[k].geometry.relative=!0,y[k].geometry.offset=new mxPoint(-3,-5),y[k].vertex=!0,v.insert(y[k]);break;case "UI2MenuBarBlock":v.style+="strokeColor=none;"+z(e,n)+A(e,n)+C(e);q=[];T=u/(e.Buttons+1);for(k=0;k<=e.Buttons-1;k++)q[k]=k!=e.Selected-1?new mxCell("",new mxGeometry(0,0,T,r),"strokeColor=none;fillColor=none;resizeHeight=1;"):
|
||||
new mxCell("",new mxGeometry(0,0,T,r),"fillColor=#000000;fillOpacity=25;strokeColor=none;resizeHeight=1;"),q[k].geometry.relative=!0,q[k].geometry.offset=new mxPoint(k*T,0),q[k].vertex=!0,v.insert(q[k]),q[k].style+=l(e["MenuItem_"+(k+1)]),q[k].value=c(e["MenuItem_"+(k+1)]);break;case "UI2AtoZBlock":v.style+="fillColor=none;strokeColor=none;"+l(e.Text_0);v.value="0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z";break;case "UI2PaginationBlock":v.style+="fillColor=none;strokeColor=none;"+l(e.Text_prev);
|
||||
v.value=c(e.Text_prev)+" ";for(k=0;k<e.Links;k++)v.value+=c(e["Link_"+(k+1)])+" ";v.value+=c(e.Text_next);break;case "UI2ContextMenuBlock":v.style+=z(e,n)+A(e,n)+t(e,n)+B(e)+F(e)+C(e);for(var K=[],Za=[],vb=[],L=r/e.Lines,N=null,k=0;k<e.Lines;k++)null!=e["Item_"+(k+1)]&&(null==N&&(N=""+h(e["Item_"+(k+1)])+f(e["Item_"+(k+1)])+b(e["Item_"+(k+1)])),K[k]=new mxCell("",new mxGeometry(0,k*r/e.Lines,u,L),"strokeColor=none;fillColor=none;spacingLeft=20;align=left;html=1;"),K[k].vertex=!0,v.insert(K[k]),K[k].style+=
|
||||
N,K[k].value=c(e["Item_"+(k+1)])),null!=e.Icons[k+1]&&null!=K[k]&&("dot"==e.Icons[k+1]?(Za[k]=new mxCell("",new mxGeometry(0,.5,8,8),"shape=ellipse;strokeColor=none;"),Za[k].geometry.offset=new mxPoint(6,-4)):"check"==e.Icons[k+1]&&(Za[k]=new mxCell("",new mxGeometry(0,.5,7,8),"shape=mxgraph.mscae.general.checkmark;strokeColor=none;"),Za[k].geometry.offset=new mxPoint(6.5,-4)),null!=Za[k]&&(Za[k].geometry.relative=!0,Za[k].vertex=!0,K[k].insert(Za[k]),H=t(e,n),H=H.replace("strokeColor","fillColor"),
|
||||
""==H&&(H="fillColor=#000000;"),Za[k].style+=H)),null!=e["Shortcut_"+(k+1)]&&(null==N&&(N=""+h(e["Shortcut_"+(k+1)])+f(e["Shortcut_"+(k+1)])+b(e["Shortcut_"+(k+1)])),vb[k]=new mxCell("",new mxGeometry(.6*u,k*r/e.Lines,.4*u,L),"strokeColor=none;fillColor=none;spacingRight=3;align=right;html=1;"),vb[k].vertex=!0,v.insert(vb[k]),vb[k].style+=N,vb[k].value=c(e["Shortcut_"+(k+1)])),null!=e.Dividers[k+1]&&(K[k]=new mxCell("",new mxGeometry(.05*u,k*r/e.Lines,.9*u,L),"shape=line;strokeWidth=0.25;"),K[k].vertex=
|
||||
!0,v.insert(K[k]),K[k].style+=t(e,n));break;case "UI2ProgressBarBlock":v.style+="shape=mxgraph.mockup.misc.progressBar;fillColor2=#888888;barPos="+100*e.ScrollVal+";";break;case "UI2TooltipSquareBlock":v.style+="html=1;shape=callout;flipV=1;base=13;size=7;position=0.5;position2=0.66;rounded=1;arcSize="+e.RoundCorners+";"+z(e,n)+A(e,n)+t(e,n)+B(e)+F(e)+C(e)+l(e.Tip);v.value=c(e.Tip);break;case "UI2CalloutBlock":v.style+="shape=ellipse;"+z(e,n)+A(e,n)+t(e,n)+B(e)+F(e)+C(e)+l(e.Txt);v.value=c(e.Txt);
|
||||
break;case "UI2AlertBlock":v.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v)+l(e.Txt);v.value=c(e.Txt);q=new mxCell("",new mxGeometry(0,0,u,30),"part=1;resizeHeight=0;");q.vertex=!0;v.insert(q);q.style+=N+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+l(e.Title);q.value=c(e.Title);x=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");x.geometry.relative=!0;x.geometry.offset=new mxPoint(-25,-10);x.vertex=!0;q.insert(x);for(var tc=45*e.Buttons+
|
||||
break;case "UI2AlertBlock":v.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+C(e)+I(e,n,v)+l(e.Txt);v.value=c(e.Txt);q=new mxCell("",new mxGeometry(0,0,u,30),"part=1;resizeHeight=0;");q.vertex=!0;v.insert(q);q.style+=N+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+l(e.Title);q.value=c(e.Title);y=new mxCell("",new mxGeometry(1,.5,20,20),"part=1;shape=ellipse;strokeColor=#008cff;resizable=0;fillColor=none;html=1;");y.geometry.relative=!0;y.geometry.offset=new mxPoint(-25,-10);y.vertex=!0;q.insert(y);for(var tc=45*e.Buttons+
|
||||
(10*e.Buttons-1),G=[],k=0;k<e.Buttons;k++)G[k]=new mxCell("",new mxGeometry(.5,1,45,20),"part=1;html=1;"),G[k].geometry.relative=!0,G[k].geometry.offset=new mxPoint(.5*-tc+55*k,-40),G[k].vertex=!0,v.insert(G[k]),G[k].style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+l(e["Button_"+(k+1)]),G[k].value=c(e["Button_"+(k+1)]);break;case "UMLClassBlock":if(0==e.Simple){var N=A(e,n),ya=Math.round(.6*e.TitleHeight),N=N.replace("fillColor","swimlaneFillColor");""==N&&(N="swimlaneFillColor=#ffffff;");v.style+="swimlane;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"+
|
||||
N+"startSize="+ya+";"+z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+l(e.Title);v.value=c(e.Title);for(var K=[],kc=[],ua=ya/r,k=0;k<=e.Attributes;k++)0<k&&(kc[k]=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),kc[k].vertex=!0,v.insert(kc[k])),L=0,k<e.Attributes?(L=e["Text"+(k+1)+"Percent"],ua+=L):L=1-ua,K[k]=new mxCell("",new mxGeometry(0,0,u,Math.round((r-
|
||||
ya)*L)),"part=1;resizeHeight=0;strokeColor=none;fillColor=none;align=left;verticalAlign=middle;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),K[k].vertex=!0,v.insert(K[k]),K[k].style+=N+z(e,n)+h(e["Text"+(k+1)])+f(e["Text"+(k+1)])+b(e["Text"+(k+1)]),K[k].value=c(e["Text"+(k+1)])}else v.style+=z(e,n)+t(e,n)+A(e,n)+B(e)+F(e)+l(e.Title),v.value=c(e.Title);break;case "ERDEntityBlock":N=A(e,n);ya=.6*e.Name_h;N=N.replace("fillColor","swimlaneFillColor");
|
||||
|
@ -486,36 +486,36 @@ b.push(' name="'+mxUtils.htmlEntities(d[e].Properties.Title)+'"');ga(a,d[e],null
|
|||
"visio/windows.xml":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Windows ClientWidth='0' ClientHeight='0' xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve' />","visio/_rels/document.xml.rels":"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><Relationships xmlns='http://schemas.openxmlformats.org/package/2006/relationships'><Relationship Id='rId1' Type='http://schemas.microsoft.com/visio/2010/relationships/masters' Target='masters/masters.xml' /><Relationship Id='rId2' Type='http://schemas.microsoft.com/visio/2010/relationships/pages' Target='pages/pages.xml' /><Relationship Id='rId3' Type='http://schemas.microsoft.com/visio/2010/relationships/windows' Target='windows.xml' /></Relationships>",
|
||||
"visio/masters/_rels/masters.xml.rels":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.microsoft.com/visio/2010/relationships/master" Target="master1.xml"/></Relationships>',"visio/masters/masters.xml":"<?xml version='1.0' encoding='utf-8' ?><Masters xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Master ID='4' NameU='Dynamic connector' IsCustomNameU='1' Name='Dynamic connector' IsCustomName='1' Prompt='This connector automatically routes between the shapes it connects.' IconSize='1' AlignName='2' MatchByName='1' IconUpdate='0' UniqueID='{002A9108-0000-0000-8E40-00608CF305B2}' BaseID='{F7290A45-E3AD-11D2-AE4F-006008C9F5A9}' PatternFlags='0' Hidden='0' MasterType='0'><PageSheet LineStyle='0' FillStyle='0' TextStyle='0'><Cell N='PageWidth' V='3'/><Cell N='PageHeight' V='3'/><Cell N='ShdwOffsetX' V='0.125'/><Cell N='ShdwOffsetY' V='-0.125'/><Cell N='PageScale' V='1' U='IN_F'/><Cell N='DrawingScale' V='1' U='IN_F'/><Cell N='DrawingSizeType' V='4'/><Cell N='DrawingScaleType' V='0'/><Cell N='InhibitSnap' V='0'/><Cell N='PageLockReplace' V='0' U='BOOL'/><Cell N='PageLockDuplicate' V='0' U='BOOL'/><Cell N='UIVisibility' V='0'/><Cell N='ShdwType' V='0'/><Cell N='ShdwObliqueAngle' V='0'/><Cell N='ShdwScaleFactor' V='1'/><Cell N='DrawingResizeType' V='0'/><Section N='Layer'><Row IX='0'><Cell N='Name' V='Connector'/><Cell N='Color' V='255'/><Cell N='Status' V='0'/><Cell N='Visible' V='1'/><Cell N='Print' V='1'/><Cell N='Active' V='0'/><Cell N='Lock' V='0'/><Cell N='Snap' V='1'/><Cell N='Glue' V='1'/><Cell N='NameUniv' V='Connector'/><Cell N='ColorTrans' V='0'/></Row></Section></PageSheet><Rel r:id='rId1'/></Master></Masters>",
|
||||
"visio/masters/master1.xml":"<?xml version='1.0' encoding='utf-8' ?><MasterContents xmlns='http://schemas.microsoft.com/office/visio/2012/main' xmlns:r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' xml:space='preserve'><Shapes><Shape ID='5' OriginalID='0' Type='Shape' LineStyle='7' FillStyle='7' TextStyle='7'><Cell N='PinX' V='1.5' F='GUARD((BeginX+EndX)/2)'/><Cell N='PinY' V='1.5' F='GUARD((BeginY+EndY)/2)'/><Cell N='Width' V='1' F='GUARD(EndX-BeginX)'/><Cell N='Height' V='-1' F='GUARD(EndY-BeginY)'/><Cell N='LocPinX' V='0.5' F='GUARD(Width*0.5)'/><Cell N='LocPinY' V='-0.5' F='GUARD(Height*0.5)'/><Cell N='Angle' V='0' F='GUARD(0DA)'/><Cell N='FlipX' V='0' F='GUARD(FALSE)'/><Cell N='FlipY' V='0' F='GUARD(FALSE)'/><Cell N='ResizeMode' V='0'/><Cell N='BeginX' V='1'/><Cell N='BeginY' V='2'/><Cell N='EndX' V='2'/><Cell N='EndY' V='1'/><Cell N='TxtPinX' V='0' F='SETATREF(Controls.TextPosition)'/><Cell N='TxtPinY' V='-1' F='SETATREF(Controls.TextPosition.Y)'/><Cell N='TxtWidth' V='0.5555555555555556' F='MAX(TEXTWIDTH(TheText),5*Char.Size)'/><Cell N='TxtHeight' V='0.2444444444444444' F='TEXTHEIGHT(TheText,TxtWidth)'/><Cell N='TxtLocPinX' V='0.2777777777777778' F='TxtWidth*0.5'/><Cell N='TxtLocPinY' V='0.1222222222222222' F='TxtHeight*0.5'/><Cell N='TxtAngle' V='0'/><Cell N='LockHeight' V='1'/><Cell N='LockCalcWH' V='1'/><Cell N='HelpTopic' V='Vis_SE.chm!#20000'/><Cell N='Copyright' V='Copyright 2001 Microsoft Corporation. All rights reserved.'/><Cell N='NoAlignBox' V='1'/><Cell N='DynFeedback' V='2'/><Cell N='GlueType' V='2'/><Cell N='ObjType' V='2'/><Cell N='NoLiveDynamics' V='1'/><Cell N='ShapeSplittable' V='1'/><Cell N='LayerMember' V='0'/><Section N='Control'><Row N='TextPosition'><Cell N='X' V='0'/><Cell N='Y' V='-1'/><Cell N='XDyn' V='0' F='Controls.TextPosition'/><Cell N='YDyn' V='-1' F='Controls.TextPosition.Y'/><Cell N='XCon' V='5' F='IF(OR(STRSAME(SHAPETEXT(TheText),\"\"),HideText),5,0)'/><Cell N='YCon' V='0'/><Cell N='CanGlue' V='0'/><Cell N='Prompt' V='Reposition Text'/></Row></Section><Section N='Geometry' IX='0'><Cell N='NoFill' V='1'/><Cell N='NoLine' V='0'/><Cell N='NoShow' V='0'/><Cell N='NoSnap' V='0'/><Cell N='NoQuickDrag' V='0'/><Row T='MoveTo' IX='1'><Cell N='X' V='0'/><Cell N='Y' V='0'/></Row><Row T='LineTo' IX='2'><Cell N='X' V='0'/><Cell N='Y' V='-1'/></Row></Section></Shape></Shapes></MasterContents>"},
|
||||
g;for(g in d)if(1<b&&g==C.CONTENT_TYPES_XML){for(var p=mxUtils.parseXml(d[g]),c=p.documentElement,f=c.children,D=null,y=0;y<f.length;y++){var E=f[y];"/visio/pages/page1.xml"==E.getAttribute(C.PART_NAME)&&(D=E)}for(y=2;y<=b;y++)f=D.cloneNode(),f.setAttribute(C.PART_NAME,"/visio/pages/page"+y+".xml"),c.appendChild(f);z(a,g,p,!0)}else a.file(g,d[g])}function w(a,b,d){return null!=a.createElementNS?a.createElementNS(b,d):a.createElement(d)}function l(a){var b=F[a];null==b&&(b=B++,F[a]=b);return b}function h(a){var b=
|
||||
{};try{var d=a.getGraphBounds().clone(),g=a.view.scale,p=a.view.translate,c=Math.round(d.x/g)-p.x,f=Math.round(d.y/g)-p.y,D=a.pageFormat.width,y=a.pageFormat.height;0>c&&(c+=Math.ceil((p.x-d.x/g)/D)*D);0>f&&(f+=Math.ceil((p.y-d.y/g)/y)*y);var E=Math.max(1,Math.ceil((d.width/g+c)/D)),t=Math.max(1,Math.ceil((d.height/g+f)/y));b.gridEnabled=a.gridEnabled;b.gridSize=a.gridSize;b.guidesEnabled=a.graphHandler.guidesEnabled;b.pageVisible=a.pageVisible;b.pageScale=a.pageScale;b.pageWidth=a.pageFormat.width*
|
||||
g;for(g in d)if(1<b&&g==C.CONTENT_TYPES_XML){for(var p=mxUtils.parseXml(d[g]),c=p.documentElement,f=c.children,D=null,x=0;x<f.length;x++){var E=f[x];"/visio/pages/page1.xml"==E.getAttribute(C.PART_NAME)&&(D=E)}for(x=2;x<=b;x++)f=D.cloneNode(),f.setAttribute(C.PART_NAME,"/visio/pages/page"+x+".xml"),c.appendChild(f);z(a,g,p,!0)}else a.file(g,d[g])}function w(a,b,d){return null!=a.createElementNS?a.createElementNS(b,d):a.createElement(d)}function l(a){var b=F[a];null==b&&(b=B++,F[a]=b);return b}function h(a){var b=
|
||||
{};try{var d=a.getGraphBounds().clone(),g=a.view.scale,p=a.view.translate,c=Math.round(d.x/g)-p.x,f=Math.round(d.y/g)-p.y,D=a.pageFormat.width,x=a.pageFormat.height;0>c&&(c+=Math.ceil((p.x-d.x/g)/D)*D);0>f&&(f+=Math.ceil((p.y-d.y/g)/x)*x);var E=Math.max(1,Math.ceil((d.width/g+c)/D)),t=Math.max(1,Math.ceil((d.height/g+f)/x));b.gridEnabled=a.gridEnabled;b.gridSize=a.gridSize;b.guidesEnabled=a.graphHandler.guidesEnabled;b.pageVisible=a.pageVisible;b.pageScale=a.pageScale;b.pageWidth=a.pageFormat.width*
|
||||
E;b.pageHeight=a.pageFormat.height*t;b.backgroundClr=a.background;b.mathEnabled=a.mathEnabled;b.shadowVisible=a.shadowVisible}catch(za){}return b}function f(a,d,g,p){return b(a,d/C.CONVERSION_FACTOR,g,p)}function b(a,b,d,g){d=w(d,C.XMLNS,"Cell");d.setAttribute("N",a);d.setAttribute("V",b);g&&d.setAttribute("F",g);return d}function a(a,b,d,g,p){var c=w(p,C.XMLNS,"Row");c.setAttribute("T",a);c.setAttribute("IX",b);c.appendChild(f("X",d,p));c.appendChild(f("Y",g,p));return c}function d(a,d,g){var p=
|
||||
a.style[mxConstants.STYLE_FILLCOLOR];if(p&&"none"!=p){if(d.appendChild(b("FillForegnd",p,g)),(p=a.style[mxConstants.STYLE_GRADIENTCOLOR])&&"none"!=p){d.appendChild(b("FillBkgnd",p,g));var p=a.style[mxConstants.STYLE_GRADIENT_DIRECTION],c=28;if(p)switch(p){case mxConstants.DIRECTION_EAST:c=25;break;case mxConstants.DIRECTION_WEST:c=27;break;case mxConstants.DIRECTION_NORTH:c=30}d.appendChild(b("FillPattern",c,g))}}else d.appendChild(b("FillPattern",0,g));(p=a.style[mxConstants.STYLE_STROKECOLOR])&&
|
||||
"none"!=p?d.appendChild(b("LineColor",p,g)):d.appendChild(b("LinePattern",0,g));(p=a.style[mxConstants.STYLE_STROKEWIDTH])&&d.appendChild(f("LineWeight",p,g));(c=a.style[mxConstants.STYLE_OPACITY])?p=c:(p=a.style[mxConstants.STYLE_FILL_OPACITY],c=a.style[mxConstants.STYLE_STROKE_OPACITY]);p&&d.appendChild(b("FillForegndTrans",1-parseInt(p)/100,g));c&&d.appendChild(b("LineColorTrans",1-parseInt(c)/100,g));if(1==a.style[mxConstants.STYLE_DASHED]){p=a.style[mxConstants.STYLE_DASH_PATTERN];c=9;if(p)switch(p){case "1 1":c=
|
||||
10;break;case "1 2":c=3;break;case "1 4":c=17}d.appendChild(b("LinePattern",c,g))}1==a.style[mxConstants.STYLE_SHADOW]&&(d.appendChild(b("ShdwPattern",1,g)),d.appendChild(b("ShdwForegnd","#000000",g)),d.appendChild(b("ShdwForegndTrans",.6,g)),d.appendChild(b("ShapeShdwType",1,g)),d.appendChild(b("ShapeShdwOffsetX","0.02946278254943948",g)),d.appendChild(b("ShapeShdwOffsetY","-0.02946278254943948",g)),d.appendChild(b("ShapeShdwScaleFactor","1",g)),d.appendChild(b("ShapeShdwBlur","0.05555555555555555",
|
||||
g)),d.appendChild(b("ShapeShdwShow",2,g)));1==a.style[mxConstants.STYLE_FLIPH]&&d.appendChild(b("FlipX",1,g));1==a.style[mxConstants.STYLE_FLIPV]&&d.appendChild(b("FlipY",1,g));1==a.style[mxConstants.STYLE_ROUNDED]&&d.appendChild(f("Rounding",.1*a.cell.geometry.width,g));(a=a.style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR])&&d.appendChild(b("TextBkgnd",a,g))}function g(a,b,d,g,p){var c=w(d,C.XMLNS,"Shape");c.setAttribute("ID",a);c.setAttribute("NameU","Shape"+a);c.setAttribute("LineStyle","0");c.setAttribute("FillStyle",
|
||||
"0");c.setAttribute("TextStyle","0");a=b.width/2;var D=b.height/2;c.appendChild(f("PinX",b.x+a+(p?0:A.shiftX),d));c.appendChild(f("PinY",g-b.y-D-(p?0:A.shiftY),d));c.appendChild(f("Width",b.width,d));c.appendChild(f("Height",b.height,d));c.appendChild(f("LocPinX",a,d));c.appendChild(f("LocPinY",D,d));return c}function p(a,b){var d=C.ARROWS_MAP[(null==a?"none":a)+"|"+(null==b?"1":b)];return null!=d?d:1}function D(a){return null==a?2:2>=a?0:3>=a?1:5>=a?2:7>=a?3:9>=a?4:22>=a?5:6}function E(g,c,y,E,t){var h=
|
||||
c.view.getState(g,!0);if(null==h)return null;c=w(y,C.XMLNS,"Shape");var z=l(g.id);c.setAttribute("ID",z);c.setAttribute("NameU","Dynamic connector."+z);c.setAttribute("Name","Dynamic connector."+z);c.setAttribute("Type","Shape");c.setAttribute("Master","4");var aa=A.state,z=h.absolutePoints,m=h.cellBounds,I=m.width/2,B=m.height/2;c.appendChild(f("PinX",m.x+I,y));c.appendChild(f("PinY",E-m.y-B,y));c.appendChild(f("Width",m.width,y));c.appendChild(f("Height",m.height,y));c.appendChild(f("LocPinX",I,
|
||||
y));c.appendChild(f("LocPinY",B,y));A.newEdge(c,h,y);I=function(a,b){var d=a.x,g=a.y,d=d*aa.scale-m.x+aa.dx+(t?0:A.shiftX),g=(b?0:m.height)-g*aa.scale+m.y-aa.dy-(t?0:A.shiftY);return{x:d,y:g}};B=I(z[0],!0);c.appendChild(f("BeginX",m.x+B.x,y,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));c.appendChild(f("BeginY",E-m.y+B.y,y,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));B=I(z[z.length-1],!0);c.appendChild(f("EndX",m.x+B.x,y,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));c.appendChild(f("EndY",
|
||||
E-m.y+B.y,y,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));c.appendChild(b("BegTrigger","2",y,g.source?"_XFTRIGGER(Sheet."+l(g.source.id)+"!EventXFMod)":null));c.appendChild(b("EndTrigger","2",y,g.target?"_XFTRIGGER(Sheet."+l(g.target.id)+"!EventXFMod)":null));c.appendChild(b("ConFixedCode","6",y));c.appendChild(b("LayerMember","0",y));d(h,c,y);E=h.style[mxConstants.STYLE_STARTSIZE];g=p(h.style[mxConstants.STYLE_STARTARROW],h.style[mxConstants.STYLE_STARTFILL]);c.appendChild(b("BeginArrow",g,
|
||||
y));c.appendChild(b("BeginArrowSize",D(E),y));E=h.style[mxConstants.STYLE_ENDSIZE];g=p(h.style[mxConstants.STYLE_ENDARROW],h.style[mxConstants.STYLE_ENDFILL]);c.appendChild(b("EndArrow",g,y));c.appendChild(b("EndArrowSize",D(E),y));null!=h.text&&h.text.checkBounds()&&(A.save(),h.text.paint(A),A.restore());h=w(y,C.XMLNS,"Section");h.setAttribute("N","Geometry");h.setAttribute("IX","0");for(g=0;g<z.length;g++)E=I(z[g]),h.appendChild(a(0==g?"MoveTo":"LineTo",g+1,E.x,E.y,y));h.appendChild(b("NoFill",
|
||||
"1",y));h.appendChild(b("NoLine","0",y));c.appendChild(h);return c}function y(a,b,p,c,f,D){var t=a.geometry;if(null!=t){t.relative&&f&&(t=t.clone(),t.x*=f.width,t.y*=f.height,t.relative=0);f=l(a.id);if(!a.treatAsSingle&&0<a.getChildCount()){c=g(f+"10000",t,p,c,D);c.setAttribute("Type","Group");D=w(p,C.XMLNS,"Shapes");A.save();A.translate(-t.x,-t.y);f=t.clone();f.x=0;f.y=0;a.setGeometry(f);a.treatAsSingle=!0;f=y(a,b,p,t.height,t,!0);a.treatAsSingle=!1;a.setGeometry(t);D.appendChild(f);for(var h=0;h<
|
||||
a.children.length;h++)f=y(a.children[h],b,p,t.height,t,!0),D.appendChild(f);c.appendChild(D);A.restore();return c}return a.vertex?(c=g(f,t,p,c,D),a=b.view.getState(a,!0),d(a,c,p),A.newShape(c,a,p),null!=a.text&&a.text.checkBounds()&&(A.save(),a.text.paint(A),A.restore()),null!=a.shape&&a.shape.checkBounds()&&(A.save(),a.shape.paint(A),A.restore()),c.appendChild(A.getShapeGeo()),A.endShape(),c.setAttribute("Type",A.getShapeType()),c):E(a,b,p,c,D)}return null}function t(a,b){var d=mxUtils.createXmlDocument(),
|
||||
"0");c.setAttribute("TextStyle","0");a=b.width/2;var D=b.height/2;c.appendChild(f("PinX",b.x+a+(p?0:A.shiftX),d));c.appendChild(f("PinY",g-b.y-D-(p?0:A.shiftY),d));c.appendChild(f("Width",b.width,d));c.appendChild(f("Height",b.height,d));c.appendChild(f("LocPinX",a,d));c.appendChild(f("LocPinY",D,d));return c}function p(a,b){var d=C.ARROWS_MAP[(null==a?"none":a)+"|"+(null==b?"1":b)];return null!=d?d:1}function D(a){return null==a?2:2>=a?0:3>=a?1:5>=a?2:7>=a?3:9>=a?4:22>=a?5:6}function E(g,c,x,E,t){var h=
|
||||
c.view.getState(g,!0);if(null==h)return null;c=w(x,C.XMLNS,"Shape");var z=l(g.id);c.setAttribute("ID",z);c.setAttribute("NameU","Dynamic connector."+z);c.setAttribute("Name","Dynamic connector."+z);c.setAttribute("Type","Shape");c.setAttribute("Master","4");var aa=A.state,z=h.absolutePoints,m=h.cellBounds,I=m.width/2,F=m.height/2;c.appendChild(f("PinX",m.x+I,x));c.appendChild(f("PinY",E-m.y-F,x));c.appendChild(f("Width",m.width,x));c.appendChild(f("Height",m.height,x));c.appendChild(f("LocPinX",I,
|
||||
x));c.appendChild(f("LocPinY",F,x));A.newEdge(c,h,x);I=function(a,b){var d=a.x,g=a.y,d=d*aa.scale-m.x+aa.dx+(t?0:A.shiftX),g=(b?0:m.height)-g*aa.scale+m.y-aa.dy-(t?0:A.shiftY);return{x:d,y:g}};F=I(z[0],!0);c.appendChild(f("BeginX",m.x+F.x,x,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));c.appendChild(f("BeginY",E-m.y+F.y,x,"_WALKGLUE(BegTrigger,EndTrigger,WalkPreference)"));F=I(z[z.length-1],!0);c.appendChild(f("EndX",m.x+F.x,x,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));c.appendChild(f("EndY",
|
||||
E-m.y+F.y,x,"_WALKGLUE(EndTrigger,BegTrigger,WalkPreference)"));c.appendChild(b("BegTrigger","2",x,g.source?"_XFTRIGGER(Sheet."+l(g.source.id)+"!EventXFMod)":null));c.appendChild(b("EndTrigger","2",x,g.target?"_XFTRIGGER(Sheet."+l(g.target.id)+"!EventXFMod)":null));c.appendChild(b("ConFixedCode","6",x));c.appendChild(b("LayerMember","0",x));d(h,c,x);E=h.style[mxConstants.STYLE_STARTSIZE];g=p(h.style[mxConstants.STYLE_STARTARROW],h.style[mxConstants.STYLE_STARTFILL]);c.appendChild(b("BeginArrow",g,
|
||||
x));c.appendChild(b("BeginArrowSize",D(E),x));E=h.style[mxConstants.STYLE_ENDSIZE];g=p(h.style[mxConstants.STYLE_ENDARROW],h.style[mxConstants.STYLE_ENDFILL]);c.appendChild(b("EndArrow",g,x));c.appendChild(b("EndArrowSize",D(E),x));null!=h.text&&h.text.checkBounds()&&(A.save(),h.text.paint(A),A.restore());h=w(x,C.XMLNS,"Section");h.setAttribute("N","Geometry");h.setAttribute("IX","0");for(g=0;g<z.length;g++)E=I(z[g]),h.appendChild(a(0==g?"MoveTo":"LineTo",g+1,E.x,E.y,x));h.appendChild(b("NoFill",
|
||||
"1",x));h.appendChild(b("NoLine","0",x));c.appendChild(h);return c}function x(a,b,p,c,f,D){var t=a.geometry;if(null!=t){t.relative&&f&&(t=t.clone(),t.x*=f.width,t.y*=f.height,t.relative=0);f=l(a.id);if(!a.treatAsSingle&&0<a.getChildCount()){c=g(f+"10000",t,p,c,D);c.setAttribute("Type","Group");D=w(p,C.XMLNS,"Shapes");A.save();A.translate(-t.x,-t.y);f=t.clone();f.x=0;f.y=0;a.setGeometry(f);a.treatAsSingle=!0;f=x(a,b,p,t.height,t,!0);a.treatAsSingle=!1;a.setGeometry(t);D.appendChild(f);for(var h=0;h<
|
||||
a.children.length;h++)f=x(a.children[h],b,p,t.height,t,!0),D.appendChild(f);c.appendChild(D);A.restore();return c}return a.vertex?(c=g(f,t,p,c,D),a=b.view.getState(a,!0),d(a,c,p),A.newShape(c,a,p),null!=a.text&&a.text.checkBounds()&&(A.save(),a.text.paint(A),A.restore()),null!=a.shape&&a.shape.checkBounds()&&(A.save(),a.shape.paint(A),A.restore()),c.appendChild(A.getShapeGeo()),A.endShape(),c.setAttribute("Type",A.getShapeType()),c):E(a,b,p,c,D)}return null}function t(a,b){var d=mxUtils.createXmlDocument(),
|
||||
g=w(d,C.XMLNS,"PageContents");g.setAttribute("xmlns:r",C.XMLNS_R);g.setAttribute("xml:space",C.XML_SPACE);var p=w(d,C.XMLNS,"Shapes");g.appendChild(p);var c=a.model,f=a.view.translate,D=a.view.scale,E=a.getGraphBounds();A.shiftX=0;A.shiftY=0;if(E.x/D<f.x||E.y/D<f.y)A.shiftX=Math.ceil((f.x-E.x/D)/a.pageFormat.width)*a.pageFormat.width,A.shiftY=Math.ceil((f.y-E.y/D)/a.pageFormat.height)*a.pageFormat.height;A.save();A.translate(-f.x,-f.y);A.scale(1/D);A.newPage();var D=a.getDefaultParent(),t;for(t in c.cells)f=
|
||||
c.cells[t],f.parent==D&&(f=y(f,a,d,b.pageHeight),null!=f&&p.appendChild(f));p=w(d,C.XMLNS,"Connects");g.appendChild(p);for(t in c.cells)f=c.cells[t],f.edge&&(f.source&&(D=w(d,C.XMLNS,"Connect"),D.setAttribute("FromSheet",l(f.id)),D.setAttribute("FromCell","BeginX"),D.setAttribute("ToSheet",l(f.source.id)),p.appendChild(D)),f.target&&(D=w(d,C.XMLNS,"Connect"),D.setAttribute("FromSheet",l(f.id)),D.setAttribute("FromCell","EndX"),D.setAttribute("ToSheet",l(f.target.id)),p.appendChild(D)));d.appendChild(g);
|
||||
A.restore();return d}function z(a,b,d,g){a.file(b,(g?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(d))}function aa(a,d,g){var p=mxUtils.createXmlDocument(),c=mxUtils.createXmlDocument(),D=w(p,C.XMLNS,"Pages");D.setAttribute("xmlns:r",C.XMLNS_R);D.setAttribute("xml:space",C.XML_SPACE);var y=w(c,C.RELS_XMLNS,"Relationships"),E=1,t;for(t in d){var h="page"+E+".xml",l=w(p,C.XMLNS,"Page");l.setAttribute("ID",E-1);l.setAttribute("NameU",t);l.setAttribute("Name",t);var aa=
|
||||
c.cells[t],f.parent==D&&(f=x(f,a,d,b.pageHeight),null!=f&&p.appendChild(f));p=w(d,C.XMLNS,"Connects");g.appendChild(p);for(t in c.cells)f=c.cells[t],f.edge&&(f.source&&(D=w(d,C.XMLNS,"Connect"),D.setAttribute("FromSheet",l(f.id)),D.setAttribute("FromCell","BeginX"),D.setAttribute("ToSheet",l(f.source.id)),p.appendChild(D)),f.target&&(D=w(d,C.XMLNS,"Connect"),D.setAttribute("FromSheet",l(f.id)),D.setAttribute("FromCell","EndX"),D.setAttribute("ToSheet",l(f.target.id)),p.appendChild(D)));d.appendChild(g);
|
||||
A.restore();return d}function z(a,b,d,g){a.file(b,(g?"":'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>')+mxUtils.getXml(d))}function aa(a,d,g){var p=mxUtils.createXmlDocument(),c=mxUtils.createXmlDocument(),D=w(p,C.XMLNS,"Pages");D.setAttribute("xmlns:r",C.XMLNS_R);D.setAttribute("xml:space",C.XML_SPACE);var x=w(c,C.RELS_XMLNS,"Relationships"),E=1,t;for(t in d){var h="page"+E+".xml",l=w(p,C.XMLNS,"Page");l.setAttribute("ID",E-1);l.setAttribute("NameU",t);l.setAttribute("Name",t);var aa=
|
||||
w(p,C.XMLNS,"PageSheet"),m=g[t];aa.appendChild(f("PageWidth",m.pageWidth,p));aa.appendChild(f("PageHeight",m.pageHeight,p));aa.appendChild(b("PageScale",m.pageScale,p));aa.appendChild(b("DrawingScale",1,p));m=w(p,C.XMLNS,"Rel");m.setAttribute("r:id","rId"+E);var I=w(p,C.XMLNS,"Section");I.setAttribute("N","Layer");var A=w(p,C.XMLNS,"Row");A.setAttribute("IX","0");I.appendChild(A);A.appendChild(b("Name","Connector",p));A.appendChild(b("Color","255",p));A.appendChild(b("Status","0",p));A.appendChild(b("Visible",
|
||||
"1",p));A.appendChild(b("Print","1",p));A.appendChild(b("Active","0",p));A.appendChild(b("Lock","0",p));A.appendChild(b("Snap","1",p));A.appendChild(b("Glue","1",p));A.appendChild(b("NameUniv","Connector",p));A.appendChild(b("ColorTrans","0",p));aa.appendChild(I);l.appendChild(aa);l.appendChild(m);D.appendChild(l);l=w(c,C.RELS_XMLNS,"Relationship");l.setAttribute("Id","rId"+E);l.setAttribute("Type",C.PAGES_TYPE);l.setAttribute("Target",h);y.appendChild(l);z(a,C.VISIO_PAGES+h,d[t]);E++}p.appendChild(D);
|
||||
c.appendChild(y);z(a,C.VISIO_PAGES+"pages.xml",p);z(a,C.VISIO_PAGES+"_rels/pages.xml.rels",c)}function I(a,b){var d=C.VISIO_PAGES_RELS+"page"+b+".xml.rels",g=mxUtils.createXmlDocument(),p=w(g,C.RELS_XMLNS,"Relationships"),c=w(g,C.RELS_XMLNS,"Relationship");c.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");c.setAttribute("Id","rId1");c.setAttribute("Target","../masters/master1.xml");p.appendChild(c);var f=A.images;if(0<f.length)for(var D=0;D<f.length;D++)c=w(g,C.RELS_XMLNS,
|
||||
"Relationship"),c.setAttribute("Type",C.XMLNS_R+"/image"),c.setAttribute("Id","rId"+(D+2)),c.setAttribute("Target","../media/"+f[D]),p.appendChild(c);g.appendChild(p);z(a,d,g)}var C=this,A=new mxVsdxCanvas2D,F={},B=1;this.exportCurrentDiagrams=function(){try{if(c.spinner.spin(document.body,mxResources.get("exporting"))){var a=new JSZip;A.init(a);F={};B=1;var b={},d={},g=null!=c.pages?c.pages.length:1;if(null!=c.pages){for(var p=c.editor.graph.getSelectionCells(),f=c.currentPage,D=0;D<c.pages.length;D++){var y=
|
||||
c.pages[D];c.currentPage!=y&&c.selectPage(y,!0);var E=y.getName(),l=c.editor.graph,z=h(l);b[E]=t(l,z);I(a,D+1);d[E]=z}f!=c.currentPage&&c.selectPage(f,!0);c.editor.graph.setSelectionCells(p)}else l=c.editor.graph,z=h(l),E="Page1",b[E]=t(l,z),I(a,1),d[E]=z;m(a,g);aa(a,b,d);b=function(){a.generateAsync({type:"base64"}).then(function(a){c.spinner.stop();var b=c.getBaseFilename();c.saveData(b+".vsdx","vsdx",a,"application/vnd.visio2013",!0)})};0<A.filesLoading?A.onFilesLoaded=b:b()}return!0}catch(za){return console.log(za),
|
||||
"1",p));A.appendChild(b("Print","1",p));A.appendChild(b("Active","0",p));A.appendChild(b("Lock","0",p));A.appendChild(b("Snap","1",p));A.appendChild(b("Glue","1",p));A.appendChild(b("NameUniv","Connector",p));A.appendChild(b("ColorTrans","0",p));aa.appendChild(I);l.appendChild(aa);l.appendChild(m);D.appendChild(l);l=w(c,C.RELS_XMLNS,"Relationship");l.setAttribute("Id","rId"+E);l.setAttribute("Type",C.PAGES_TYPE);l.setAttribute("Target",h);x.appendChild(l);z(a,C.VISIO_PAGES+h,d[t]);E++}p.appendChild(D);
|
||||
c.appendChild(x);z(a,C.VISIO_PAGES+"pages.xml",p);z(a,C.VISIO_PAGES+"_rels/pages.xml.rels",c)}function I(a,b){var d=C.VISIO_PAGES_RELS+"page"+b+".xml.rels",g=mxUtils.createXmlDocument(),p=w(g,C.RELS_XMLNS,"Relationships"),c=w(g,C.RELS_XMLNS,"Relationship");c.setAttribute("Type","http://schemas.microsoft.com/visio/2010/relationships/master");c.setAttribute("Id","rId1");c.setAttribute("Target","../masters/master1.xml");p.appendChild(c);var f=A.images;if(0<f.length)for(var D=0;D<f.length;D++)c=w(g,C.RELS_XMLNS,
|
||||
"Relationship"),c.setAttribute("Type",C.XMLNS_R+"/image"),c.setAttribute("Id","rId"+(D+2)),c.setAttribute("Target","../media/"+f[D]),p.appendChild(c);g.appendChild(p);z(a,d,g)}var C=this,A=new mxVsdxCanvas2D,F={},B=1;this.exportCurrentDiagrams=function(){try{if(c.spinner.spin(document.body,mxResources.get("exporting"))){var a=new JSZip;A.init(a);F={};B=1;var b={},d={},g=null!=c.pages?c.pages.length:1;if(null!=c.pages){for(var p=c.editor.graph.getSelectionCells(),f=c.currentPage,D=0;D<c.pages.length;D++){var x=
|
||||
c.pages[D];c.currentPage!=x&&c.selectPage(x,!0);var E=x.getName(),l=c.editor.graph,z=h(l);b[E]=t(l,z);I(a,D+1);d[E]=z}f!=c.currentPage&&c.selectPage(f,!0);c.editor.graph.setSelectionCells(p)}else l=c.editor.graph,z=h(l),E="Page1",b[E]=t(l,z),I(a,1),d[E]=z;m(a,g);aa(a,b,d);b=function(){a.generateAsync({type:"base64"}).then(function(a){c.spinner.stop();var b=c.getBaseFilename();c.saveData(b+".vsdx","vsdx",a,"application/vnd.visio2013",!0)})};0<A.filesLoading?A.onFilesLoaded=b:b()}return!0}catch(za){return console.log(za),
|
||||
!1}}}VsdxExport.prototype.CONVERSION_FACTOR=101.6;VsdxExport.prototype.PAGES_TYPE="http://schemas.microsoft.com/visio/2010/relationships/page";VsdxExport.prototype.RELS_XMLNS="http://schemas.openxmlformats.org/package/2006/relationships";VsdxExport.prototype.XML_SPACE="preserve";VsdxExport.prototype.XMLNS_R="http://schemas.openxmlformats.org/officeDocument/2006/relationships";VsdxExport.prototype.XMLNS="http://schemas.microsoft.com/office/visio/2012/main";VsdxExport.prototype.VISIO_PAGES="visio/pages/";
|
||||
VsdxExport.prototype.PREFEX="com/mxgraph/io/vsdx/resources/export/";VsdxExport.prototype.VSDX_ENC="ISO-8859-1";VsdxExport.prototype.PART_NAME="PartName";VsdxExport.prototype.CONTENT_TYPES_XML="[Content_Types].xml";VsdxExport.prototype.VISIO_PAGES_RELS="visio/pages/_rels/";
|
||||
VsdxExport.prototype.ARROWS_MAP={"none|1":0,"none|0":0,"open|1":1,"open|0":1,"block|1":4,"block|0":14,"classic|1":5,"classic|0":17,"oval|1":10,"oval|0":20,"diamond|1":11,"diamond|0":22,"blockThin|1":2,"blockThin|0":15,"dash|1":23,"dash|0":23,"ERone|1":24,"ERone|0":24,"ERmandOne|1":25,"ERmandOne|0":25,"ERmany|1":27,"ERmany|0":27,"ERoneToMany|1":28,"ERoneToMany|0":28,"ERzeroToMany|1":29,"ERzeroToMany|0":29,"ERzeroToOne|1":30,"ERzeroToOne|0":30,"openAsync|1":9,"openAsync|0":9};function mxVsdxCanvas2D(){mxAbstractCanvas2D.call(this)}mxUtils.extend(mxVsdxCanvas2D,mxAbstractCanvas2D);mxVsdxCanvas2D.prototype.textEnabled=!0;mxVsdxCanvas2D.prototype.init=function(c){this.filesLoading=0;this.zip=c};mxVsdxCanvas2D.prototype.onFilesLoaded=function(){};mxVsdxCanvas2D.prototype.createElt=function(c){return null!=this.xmlDoc.createElementNS?this.xmlDoc.createElementNS(VsdxExport.prototype.XMLNS,c):this.xmlDoc.createElement(c)};
|
||||
mxVsdxCanvas2D.prototype.createGeoSec=function(){null!=this.geoSec&&this.shape.appendChild(this.geoSec);var c=this.createElt("Section");c.setAttribute("N","Geometry");c.setAttribute("IX",this.geoIndex++);this.geoSec=c;this.geoStepIndex=1;this.lastMoveToY=this.lastMoveToX=this.lastY=this.lastX=0};mxVsdxCanvas2D.prototype.newShape=function(c,m,w){this.geoIndex=0;this.shape=c;this.cellState=m;this.xmGeo=m.cell.geometry;this.xmlDoc=w;this.shapeImg=this.geoSec=null;this.shapeType="Shape";this.createGeoSec()};
|
||||
mxVsdxCanvas2D.prototype.newEdge=function(c,m,w){this.shape=c;this.cellState=m;this.xmGeo=m.cellBounds;this.xmlDoc=w};mxVsdxCanvas2D.prototype.endShape=function(){null!=this.shapeImg&&this.addForeignData(this.shapeImg.type,this.shapeImg.id)};mxVsdxCanvas2D.prototype.newPage=function(){this.images=[]};mxVsdxCanvas2D.prototype.getShapeType=function(){return this.shapeType};mxVsdxCanvas2D.prototype.getShapeGeo=function(){return this.geoSec};
|
||||
mxVsdxCanvas2D.prototype.createCellElemScaled=function(c,m,w){return this.createCellElem(c,m/VsdxExport.prototype.CONVERSION_FACTOR,w)};mxVsdxCanvas2D.prototype.createCellElem=function(c,m,w){var l=this.createElt("Cell");l.setAttribute("N",c);l.setAttribute("V",m);w&&l.setAttribute("F",w);return l};
|
||||
mxVsdxCanvas2D.prototype.createRowScaled=function(c,m,w,l,h,f,b,a,d,g,p,D,E,y){return this.createRowRel(c,m,w/VsdxExport.prototype.CONVERSION_FACTOR,l/VsdxExport.prototype.CONVERSION_FACTOR,h/VsdxExport.prototype.CONVERSION_FACTOR,f/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,d,g,p,D,E,y)};
|
||||
mxVsdxCanvas2D.prototype.createRowRel=function(c,m,w,l,h,f,b,a,d,g,p,D,E,y){var t=this.createElt("Row");t.setAttribute("T",c);t.setAttribute("IX",m);t.appendChild(this.createCellElem("X",w,d));t.appendChild(this.createCellElem("Y",l,g));null!=h&&t.appendChild(this.createCellElem("A",h,p));null!=f&&t.appendChild(this.createCellElem("B",f,D));null!=b&&t.appendChild(this.createCellElem("C",b,E));null!=a&&t.appendChild(this.createCellElem("D",a,y));return t};
|
||||
mxVsdxCanvas2D.prototype.createRowScaled=function(c,m,w,l,h,f,b,a,d,g,p,D,E,x){return this.createRowRel(c,m,w/VsdxExport.prototype.CONVERSION_FACTOR,l/VsdxExport.prototype.CONVERSION_FACTOR,h/VsdxExport.prototype.CONVERSION_FACTOR,f/VsdxExport.prototype.CONVERSION_FACTOR,b/VsdxExport.prototype.CONVERSION_FACTOR,a/VsdxExport.prototype.CONVERSION_FACTOR,d,g,p,D,E,x)};
|
||||
mxVsdxCanvas2D.prototype.createRowRel=function(c,m,w,l,h,f,b,a,d,g,p,D,E,x){var t=this.createElt("Row");t.setAttribute("T",c);t.setAttribute("IX",m);t.appendChild(this.createCellElem("X",w,d));t.appendChild(this.createCellElem("Y",l,g));null!=h&&t.appendChild(this.createCellElem("A",h,p));null!=f&&t.appendChild(this.createCellElem("B",f,D));null!=b&&t.appendChild(this.createCellElem("C",b,E));null!=a&&t.appendChild(this.createCellElem("D",a,x));return t};
|
||||
mxVsdxCanvas2D.prototype.begin=function(){1<this.geoStepIndex&&this.createGeoSec()};
|
||||
mxVsdxCanvas2D.prototype.rect=function(c,m,w,l){1<this.geoStepIndex&&this.createGeoSec();var h=this.state;w*=h.scale;l*=h.scale;var f=this.xmGeo;c=(c-f.x+h.dx)*h.scale/w;m=(f.height-m+f.y-h.dy)*h.scale/l;this.geoSec.appendChild(this.createRowRel("RelMoveTo",this.geoStepIndex++,c,m));this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c+1,m));this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c+1,m-1));this.geoSec.appendChild(this.createRowRel("RelLineTo",
|
||||
this.geoStepIndex++,c,m-1));this.geoSec.appendChild(this.createRowRel("RelLineTo",this.geoStepIndex++,c,m))};mxVsdxCanvas2D.prototype.roundrect=function(c,m,w,l,h,f){this.rect(c,m,w,l);this.shape.appendChild(this.createCellElemScaled("Rounding",h))};
|
||||
|
@ -530,13 +530,13 @@ try{w(c)}catch(b){}l.filesLoading--;if(0==l.filesLoading)l.onFilesLoaded()};img.
|
|||
mxVsdxCanvas2D.prototype.image=function(c,m,w,l,h,f,b,a){var d=this,g="image"+(this.images.length+1)+".",p;if(0==h.indexOf("data:"))p=h.indexOf("base64,"),f=h.substring(p+7),p=h.substring(11,p-1),0==p.indexOf("svg")?(p="png",g+=p,this.convertSvg2Png(f,!0,function(a){d.zip.file("visio/media/"+g,a.substring(22),{base64:!0})})):(g+=p,this.zip.file("visio/media/"+g,f,{base64:!0}));else if(window.XMLHttpRequest){h=this.converter.convert(h);this.filesLoading++;p=h.lastIndexOf(".");p=h.substring(p+1);var D=
|
||||
!1;0==p.indexOf("svg")&&(p="png",D=!0);g+=p;f=new XMLHttpRequest;f.open("GET",h,!0);f.responseType="arraybuffer";f.onreadystatechange=function(a){if(4==this.readyState&&(200==this.status&&(D?d.convertSvg2Png(this.response,!1,function(a){d.zip.file("visio/media/"+g,a.substring(22),{base64:!0})}):d.zip.file("visio/media/"+g,this.response)),d.filesLoading--,0==d.filesLoading))d.onFilesLoaded()};f.send()}this.images.push(g);this.shapeImg={type:p,id:this.images.length+1};h=this.state;w*=h.scale;l*=h.scale;
|
||||
p=this.xmGeo;c=(c-p.x+h.dx)*h.scale;m=(p.height-m+p.y-h.dy)*h.scale;this.shape.appendChild(this.createCellElemScaled("ImgOffsetX",c));this.shape.appendChild(this.createCellElemScaled("ImgOffsetY",m-l));this.shape.appendChild(this.createCellElemScaled("ImgWidth",w));this.shape.appendChild(this.createCellElemScaled("ImgHeight",l))};
|
||||
mxVsdxCanvas2D.prototype.text=function(c,m,w,l,h,f,b,a,d,g,p,D,E){var y=this;if(this.textEnabled&&null!=h){mxUtils.isNode(h)&&(h=mxUtils.getOuterHtml(h));0==w&&0==l&&(l=mxUtils.getSizeForString(h,y.cellState.style.fontSize,y.cellState.style.fontFamily),w=1.2*l.width,l=1.2*l.height);"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=
|
||||
mxVsdxCanvas2D.prototype.text=function(c,m,w,l,h,f,b,a,d,g,p,D,E){var x=this;if(this.textEnabled&&null!=h){mxUtils.isNode(h)&&(h=mxUtils.getOuterHtml(h));0==w&&0==l&&(l=mxUtils.getSizeForString(h,x.cellState.style.fontSize,x.cellState.style.fontFamily),w=1.2*l.width,l=1.2*l.height);"html"==d&&("0"!=mxUtils.getValue(this.cellState.style,"nl2Br","1")&&(h=h.replace(/\n/g,"").replace(/<br\s*.?>/g,"\n")),null==this.html2txtDiv&&(this.html2txtDiv=document.createElement("div")),this.html2txtDiv.innerHTML=
|
||||
h,h=mxUtils.extractTextWithWhitespace(this.html2txtDiv.childNodes));g=this.state;p=this.xmGeo;w*=g.scale;l*=g.scale;var t=this.createElt("Section");t.setAttribute("N","Character");var z=this.createElt("Section");z.setAttribute("N","Paragraph");var aa=this.createElt("Text"),I=0,C=0,A=0,F=0,B=0,Y=0,J=function(b,d,g,p,c){g=b.fontSize;var f=b.fontFamily,D=mxUtils.getSizeForString(c,g,f);a&&D.width>w&&(D=mxUtils.getSizeForString(c,g,f,w));b.blockElem?(F+=D.width,C=Math.min(Math.max(C,F),w),F=0,B=Math.max(B,
|
||||
D.height),A+=B+Y,Y=B,B=0):(F+=D.width,C=Math.min(Math.max(C,F),w),B=Math.max(B,D.height),A=Math.max(A,B));D=y.createElt("Row");D.setAttribute("IX",I);b.fontColor&&D.appendChild(y.createCellElem("Color",b.fontColor));g&&D.appendChild(y.createCellElemScaled("Size",.97*g));f&&D.appendChild(y.createCellElem("Font",f));g=0;b.bold&&(g|=17);b.italic&&(g|=34);b.underline&&(g|=4);D.appendChild(y.createCellElem("Style",g));D.appendChild(y.createCellElem("Case","0"));D.appendChild(y.createCellElem("Pos","0"));
|
||||
D.appendChild(y.createCellElem("FontScale","1"));D.appendChild(y.createCellElem("Letterspace","0"));d.appendChild(D);d=y.createElt("cp");d.setAttribute("IX",I++);p.appendChild(d);b=y.xmlDoc.createTextNode(c+(b.blockElem?"\n":""));p.appendChild(b)},X=function(a,b){b=b||{};for(var d=0;d<a.length;d++)if(3==a[d].nodeType){var g=y.cellState.style.fontStyle,p={fontColor:b.fontColor||y.cellState.style.fontColor,fontSize:b.fontSize||y.cellState.style.fontSize,fontFamily:b.fontFamily||y.cellState.style.fontFamily,
|
||||
align:b.align||y.cellState.style.align,bold:b.bold||g&1,italic:b.italic||g&2,underline:b.underline||g&4};J(p,t,z,aa,a[d].textContent)}else if(1==a[d].nodeType){var p=a[d].nodeName.toUpperCase(),g=a[d].childNodes.length,c=window.getComputedStyle(a[d],null),f="bold"==c.getPropertyValue("font-weight")||b.bold,D="italic"==c.getPropertyValue("font-style")||b.italic,E=0<=c.getPropertyValue("text-decoration").indexOf("underline")||b.underline,h=c.getPropertyValue("text-align"),l;l=c.getPropertyValue("color");
|
||||
D.height),A+=B+Y,Y=B,B=0):(F+=D.width,C=Math.min(Math.max(C,F),w),B=Math.max(B,D.height),A=Math.max(A,B));D=x.createElt("Row");D.setAttribute("IX",I);b.fontColor&&D.appendChild(x.createCellElem("Color",b.fontColor));g&&D.appendChild(x.createCellElemScaled("Size",.97*g));f&&D.appendChild(x.createCellElem("Font",f));g=0;b.bold&&(g|=17);b.italic&&(g|=34);b.underline&&(g|=4);D.appendChild(x.createCellElem("Style",g));D.appendChild(x.createCellElem("Case","0"));D.appendChild(x.createCellElem("Pos","0"));
|
||||
D.appendChild(x.createCellElem("FontScale","1"));D.appendChild(x.createCellElem("Letterspace","0"));d.appendChild(D);d=x.createElt("cp");d.setAttribute("IX",I++);p.appendChild(d);b=x.xmlDoc.createTextNode(c+(b.blockElem?"\n":""));p.appendChild(b)},X=function(a,b){b=b||{};for(var d=0;d<a.length;d++)if(3==a[d].nodeType){var g=x.cellState.style.fontStyle,p={fontColor:b.fontColor||x.cellState.style.fontColor,fontSize:b.fontSize||x.cellState.style.fontSize,fontFamily:b.fontFamily||x.cellState.style.fontFamily,
|
||||
align:b.align||x.cellState.style.align,bold:b.bold||g&1,italic:b.italic||g&2,underline:b.underline||g&4};J(p,t,z,aa,a[d].textContent)}else if(1==a[d].nodeType){var p=a[d].nodeName.toUpperCase(),g=a[d].childNodes.length,c=window.getComputedStyle(a[d],null),f="bold"==c.getPropertyValue("font-weight")||b.bold,D="italic"==c.getPropertyValue("font-style")||b.italic,E=0<=c.getPropertyValue("text-decoration").indexOf("underline")||b.underline,h=c.getPropertyValue("text-align"),l;l=c.getPropertyValue("color");
|
||||
l=(l=l.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===l.length?"#"+("0"+parseInt(l[1],10).toString(16)).slice(-2)+("0"+parseInt(l[2],10).toString(16)).slice(-2)+("0"+parseInt(l[3],10).toString(16)).slice(-2):"";p={bold:f,italic:D,underline:E,align:h,fontColor:l,fontSize:parseFloat(c.getPropertyValue("font-size")),fontFamily:c.getPropertyValue("font-family").replace(/"/g,""),blockElem:"block"==c.getPropertyValue("display")||"BR"==p||"LI"==p};0<g?(J(p,t,z,aa,""),
|
||||
X(a[d].childNodes,p)):J(p,t,z,aa,a[d].textContent)}};"html"==d&&mxClient.IS_SVG?(h=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=h&&X(h.childNodes,{})):J({fontColor:y.cellState.style.fontColor,fontSize:y.cellState.style.fontSize,fontFamily:y.cellState.style.fontFamily},t,z,aa,h);d=h=0;switch(f){case "right":h=C/2;break;case "center":h=0;break;case "left":h=-C/2}switch(b){case "top":d=A/2;break;case "middle":d=0;break;case "bottom":d=-A/2}l=Math.max(l,A);w=Math.max(w,
|
||||
X(a[d].childNodes,p)):J(p,t,z,aa,a[d].textContent)}};"html"==d&&mxClient.IS_SVG?(h=this.cellState.text.node.getElementsByTagName("div")[mxClient.NO_FO?0:1],null!=h&&X(h.childNodes,{})):J({fontColor:x.cellState.style.fontColor,fontSize:x.cellState.style.fontSize,fontFamily:x.cellState.style.fontFamily},t,z,aa,h);d=h=0;switch(f){case "right":h=C/2;break;case "center":h=0;break;case "left":h=-C/2}switch(b){case "top":d=A/2;break;case "middle":d=0;break;case "bottom":d=-A/2}l=Math.max(l,A);w=Math.max(w,
|
||||
C);c=(c-p.x+g.dx)*g.scale;m=(p.height-m+p.y-g.dy)*g.scale;f=w/2;b=l/2;this.shape.appendChild(this.createCellElemScaled("TxtPinX",c));this.shape.appendChild(this.createCellElemScaled("TxtPinY",m));this.shape.appendChild(this.createCellElemScaled("TxtWidth",w));this.shape.appendChild(this.createCellElemScaled("TxtHeight",l));this.shape.appendChild(this.createCellElemScaled("TxtLocPinX",f+h));this.shape.appendChild(this.createCellElemScaled("TxtLocPinY",b+d));0!=D&&this.shape.appendChild(this.createCellElem("TxtAngle",
|
||||
(360-D)*Math.PI/180));this.shape.appendChild(t);this.shape.appendChild(aa)}};mxVsdxCanvas2D.prototype.rotate=function(c,m,w,l,h){0!=c&&(m=this.state,l+=m.dx,h+=m.dy,l*=m.scale,h*=m.scale,this.shape.appendChild(this.createCellElem("Angle",(360-c)*Math.PI/180)),m.rotation+=c,m.rotationCx=l,m.rotationCy=h)};mxVsdxCanvas2D.prototype.stroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","1"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};
|
||||
mxVsdxCanvas2D.prototype.fill=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","1"))};mxVsdxCanvas2D.prototype.fillAndStroke=function(){this.geoSec.appendChild(this.createCellElem("NoFill","0"));this.geoSec.appendChild(this.createCellElem("NoLine","0"))};function BmpDecoder(c,m){this.pos=0;this.buffer=c;this.is_with_alpha=!!m;if(66!=this.buffer[0]&&77!=this.buffer[1])throw Error("Invalid BMP File");this.pos+=2;this.parseHeader();this.parseBGR()}
|
||||
|
@ -554,56 +554,57 @@ BmpDecoder.prototype.bit32=function(){for(var c=this.height-1;0<=c;c--)for(var m
|
|||
(function(c){(function(m){(function(w){var l=function(){function h(){this.RESPONSE_END="</mxfile>";this.RESPONSE_DIAGRAM_START="";this.RESPONSE_DIAGRAM_END="</diagram>";this.RESPONSE_HEADER='<?xml version="1.0" encoding="UTF-8"?><mxfile>';this.vertexMap={};this.edgeShapeMap={};this.vertexShapeMap={};this.parentsMap={};this.layersMap={};this.debugPaths=!1;this.vsdxModel=null}h.vsdxPlaceholder_$LI$=function(){null==h.vsdxPlaceholder&&(h.vsdxPlaceholder=window.atob?atob("dmlzaW8="):Base64.decode("dmlzaW8=",
|
||||
!0));return h.vsdxPlaceholder};h.parsererrorNS_$LI$=function(){if(null==h.parsererrorNS&&(h.parsererrorNS="",window.DOMParser)){var c=new DOMParser;try{h.parsererrorNS=c.parseFromString("<","text/xml").getElementsByTagName("parsererror")[0].namespaceURI}catch(b){}}return h.parsererrorNS};h.parseXml=function(c){try{var b=mxUtils.parseXml(c);return 0<b.getElementsByTagNameNS(h.parsererrorNS,"parsererror").length?null:b}catch(a){return null}};h.decodeUTF16LE=function(c){for(var b="",a=0;a<c.length;a+=
|
||||
2)b+=String.fromCharCode(c.charCodeAt(a)|c.charCodeAt(a+1)<<8);return b};h.prototype.scaleGraph=function(c,b){if(1!==b){var a=c.getModel(),d;for(d in a.cells){var g=a.cells[d],p=a.getGeometry(g);if(null!=p&&(this.scaleRect(p,b),this.scaleRect(p.alternateBounds,b),a.isEdge(g)&&(this.scalePoint(p.sourcePoint,b),this.scalePoint(p.targetPoint,b),this.scalePoint(p.offset,b),g=p.points,null!=g)))for(p=0;p<g.length;p++)this.scalePoint(g[p],b)}}};h.prototype.decodeVsdx=function(f,b,a,d){var g=this,p={},D=
|
||||
{},E=function(){for(var a=h.vsdxPlaceholder+"/document.xml",d=p[a]?p[a]:null,f=d.firstChild;null!=f&&1!=f.nodeType;)f=f.nextSibling;if(null!=f&&1==f.nodeType)g.importNodes(d,f,a,p);else return null;g.vsdxModel=new c.mxgraph.io.vsdx.mxVsdxModel(d,p,D);for(var a=g.vsdxModel.getPages(),y=g.RESPONSE_HEADER,E=function(a){null==a.entries&&(a.entries=[]);return a.entries}(a),a=function(a){a=E[a].getValue();if(!a.isBackground()){var b=t.createMxGraph();b.getModel().beginUpdate();t.importPage(a,b,b.getDefaultParent());
|
||||
var d=a.getBackPage();if(null!=d){b.getModel().setValue(b.getDefaultParent(),a.getPageName());var p=new mxCell(d.getPageName());b.addCell(p,b.getModel().getRoot(),0,null,null);t.importPage(d,b,b.getDefaultParent())}t.scaleGraph(b,a.getPageScale()/a.getDrawingScale());b.getModel().endUpdate();y=y.concat(g.RESPONSE_DIAGRAM_START);y=y.concat(g.processPage(b,a));y=y.concat(g.RESPONSE_DIAGRAM_END)}},t=g,d=0;d<E.length;d++)a(d);y=y.concat(g.RESPONSE_END);b&&b(y)},y=0,t=0,l=function(){if(t==y)try{E()}catch(aa){console.log(aa),
|
||||
null!=d?d():b("")}};JSZip.loadAsync(f).then(function(a){0==Object.keys(a.files).length?null!=d&&d():a.forEach(function(a,b){var d=b.name,g=d.toLowerCase(),c=g.length;g.indexOf(".xml")==c-4||g.indexOf(".xml.rels")==c-9?(y++,b.async("string").then(function(a){if(0!==a.length){65279==a.charCodeAt(0)&&(a=a.substring(1));var b=h.parseXml(a);null==b&&0===a.charCodeAt(1)&&0===a.charCodeAt(3)&&0===a.charCodeAt(5)&&(b=h.parseXml(h.decodeUTF16LE(a)));null!=b&&(b.vsdxFileName=d,p[d]=b)}t++;l()})):0===g.indexOf(h.vsdxPlaceholder+
|
||||
"/media")&&(y++,function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(g,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?b.async("blob").then(function(a){var b=new FormData;b.append("img",a,g);var p=new XMLHttpRequest;p.open("POST",EMF_CONVERT_URL);p.responseType="blob";p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var a=new FileReader;a.readAsDataURL(p.response);a.onloadend=function(){D[d]=a.result.substr(22);t++;
|
||||
{},E=function(){for(var a=h.vsdxPlaceholder+"/document.xml",d=p[a]?p[a]:null,f=d.firstChild;null!=f&&1!=f.nodeType;)f=f.nextSibling;if(null!=f&&1==f.nodeType)g.importNodes(d,f,a,p);else return null;g.vsdxModel=new c.mxgraph.io.vsdx.mxVsdxModel(d,p,D);for(var a=g.vsdxModel.getPages(),x=g.RESPONSE_HEADER,E=function(a){null==a.entries&&(a.entries=[]);return a.entries}(a),a=function(a){a=E[a].getValue();if(!a.isBackground()){var b=t.createMxGraph();b.getModel().beginUpdate();t.importPage(a,b,b.getDefaultParent());
|
||||
var d=a.getBackPage();if(null!=d){b.getModel().setValue(b.getDefaultParent(),a.getPageName());var p=new mxCell(d.getPageName());b.addCell(p,b.getModel().getRoot(),0,null,null);t.importPage(d,b,b.getDefaultParent())}t.scaleGraph(b,a.getPageScale()/a.getDrawingScale());b.getModel().endUpdate();x=x.concat(g.RESPONSE_DIAGRAM_START);x=x.concat(g.processPage(b,a));x=x.concat(g.RESPONSE_DIAGRAM_END)}},t=g,d=0;d<E.length;d++)a(d);x=x.concat(g.RESPONSE_END);b&&b(x)},x=0,t=0,l=function(){if(t==x)try{E()}catch(aa){console.log(aa),
|
||||
null!=d?d():b("")}};JSZip.loadAsync(f).then(function(a){0==Object.keys(a.files).length?null!=d&&d():a.forEach(function(a,b){var d=b.name,g=d.toLowerCase(),c=g.length;g.indexOf(".xml")==c-4||g.indexOf(".xml.rels")==c-9?(x++,b.async("string").then(function(a){if(0!==a.length){65279==a.charCodeAt(0)&&(a=a.substring(1));var b=h.parseXml(a);null==b&&0===a.charCodeAt(1)&&0===a.charCodeAt(3)&&0===a.charCodeAt(5)&&(b=h.parseXml(h.decodeUTF16LE(a)));null!=b&&(b.vsdxFileName=d,p[d]=b)}t++;l()})):0===g.indexOf(h.vsdxPlaceholder+
|
||||
"/media")&&(x++,function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(g,".emf")?JSZip.support.blob&&window.EMF_CONVERT_URL?b.async("blob").then(function(a){var b=new FormData;b.append("img",a,g);var p=new XMLHttpRequest;p.open("POST",EMF_CONVERT_URL);p.responseType="blob";p.onreadystatechange=mxUtils.bind(this,function(){if(4==p.readyState)if(200<=p.status&&299>=p.status)try{var a=new FileReader;a.readAsDataURL(p.response);a.onloadend=function(){D[d]=a.result.substr(22);t++;
|
||||
l()}}catch(fa){console.log(fa),t++,l()}else t++,l()});p.send(b)}):(t++,l()):function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(g,".bmp")?JSZip.support.uint8array&&b.async("uint8array").then(function(a){a=new BmpDecoder(a);var b=document.createElement("canvas");b.width=a.width;b.height=a.height;b.getContext("2d").putImageData(a.imageData,0,0);a=b.toDataURL("image/jpeg");D[d]=a.substr(23);t++;l()}):b.async("base64").then(function(a){D[d]=a;t++;l()}))})},function(a){null!=d&&
|
||||
d(a)})};h.prototype.createMxGraph=function(){var c=new mxGraph;c.setExtendParents(!1);c.setExtendParentsOnAdd(!1);c.setConstrainChildren(!1);c.setHtmlLabels(!0);c.getModel().maintainEdgeParent=!1;return c};h.prototype.processPage=function(c,b){var a=(new mxCodec).encode(c.getModel());a.setAttribute("style","default-style2");var a=mxUtils.getXml(a),d="";if(null!=b)var g=mxUtils.htmlEntities(b.getPageName()),d=d+('<diagram name="'+g+'">');return d+=Graph.prototype.compress(a)};h.prototype.scalePoint=
|
||||
function(c,b){null!=c&&(c.x*=b,c.y*=b);return c};h.prototype.scaleRect=function(c,b){null!=c&&(c.x*=b,c.y*=b,c.height*=b,c.width*=b);return c};h.prototype.importNodes=function(c,b,a,d){var g=a.lastIndexOf("/"),p=a,f=a;if(-1!==g&&(p=a.substring(0,g),f=a.substring(g+1,a.length),a=function(a,b){return a[b]?a[b]:null}(d,p+"/_rels/"+f+".rels"),null!=a)){var E=a.getElementsByTagName("Relationship");a={};for(g=0;g<E.length;g++){var f=E.item(g),y=f.getAttribute("Id"),f=f.getAttribute("Target");a[y]=f}b=b.getElementsByTagName("Rel");
|
||||
for(g=0;g<b.length;g++)if(E=b.item(g),f=function(a,b){return a[b]?a[b]:null}(a,E.getAttribute("r:id")),f=p+"/"+f,null!=f&&(y=d[f]?d[f]:null,null!=y)){E=E.parentNode;for(y=y.firstChild;null!=y&&1!=y.nodeType;)y=y.nextSibling;if(null!=y&&1==y.nodeType)for(y=y.firstChild;null!=y;){if(null!=y&&1==y.nodeType){var t=E.appendChild(c.importNode(y,!0));this.importNodes(c,t,f,d)}y=y.nextSibling}}}};h.prototype.importPage=function(c,b,a){var d=c.getLayers();this.layersMap[0]=b.getDefaultParent();if(1<d.length)for(var g=
|
||||
function(c,b){null!=c&&(c.x*=b,c.y*=b);return c};h.prototype.scaleRect=function(c,b){null!=c&&(c.x*=b,c.y*=b,c.height*=b,c.width*=b);return c};h.prototype.importNodes=function(c,b,a,d){var g=a.lastIndexOf("/"),p=a,f=a;if(-1!==g&&(p=a.substring(0,g),f=a.substring(g+1,a.length),a=function(a,b){return a[b]?a[b]:null}(d,p+"/_rels/"+f+".rels"),null!=a)){var E=a.getElementsByTagName("Relationship");a={};for(g=0;g<E.length;g++){var f=E.item(g),x=f.getAttribute("Id"),f=f.getAttribute("Target");a[x]=f}b=b.getElementsByTagName("Rel");
|
||||
for(g=0;g<b.length;g++)if(E=b.item(g),f=function(a,b){return a[b]?a[b]:null}(a,E.getAttribute("r:id")),f=p+"/"+f,null!=f&&(x=d[f]?d[f]:null,null!=x)){E=E.parentNode;for(x=x.firstChild;null!=x&&1!=x.nodeType;)x=x.nextSibling;if(null!=x&&1==x.nodeType)for(x=x.firstChild;null!=x;){if(null!=x&&1==x.nodeType){var t=E.appendChild(c.importNode(x,!0));this.importNodes(c,t,f,d)}x=x.nextSibling}}}};h.prototype.importPage=function(c,b,a){var d=c.getLayers();this.layersMap[0]=b.getDefaultParent();if(1<d.length)for(var g=
|
||||
1;g<d.length;g++){var p=d[g],f=new mxCell;f.setVisible(1==p.Visible);1==p.Lock&&f.setStyle("locked=1;");f.setValue(p.Name);this.layersMap[g]=f;b.addCell(f,b.model.root,g)}p=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getShapes()));d=c.getPageDimensions().y;for(g=c.getId();p.hasNext();){var f=p.next(),f=f.getValue(),E=this.layersMap[f.layerMember];this.addShape(b,f,
|
||||
E?E:a,g,d)}for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(c.getConnects()));c.hasNext();)f=c.next(),a=this.addConnectedEdge(b,f.getValue(),g,d),null!=a&&function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries.splice(d,1)[0]}(this.edgeShapeMap,
|
||||
a);for(c=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(this.edgeShapeMap));c.hasNext();)a=c.next(),a.getKey().getPageNumber()===g&&this.addUnconnectedEdge(b,function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,
|
||||
a.getKey()),a.getValue(),d);this.sanitiseGraph(b);return d};h.prototype.addShape=function(f,b,a,d,g){b.parentHeight=g;var p=c.mxgraph.io.vsdx.VsdxShape.getType(b.getShape());if(null!=p&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||function(a,b){return a&&a.equals?a.equals(b):a===b}(p,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(p,c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))){p=b.getId();if(b.isVertex()){var D=
|
||||
null,D=b.isGroup()?this.addGroup(f,b,a,d,g):this.addVertex(f,b,a,d,g);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d,p),b);return D}b.setShapeIndex(f.getModel().getChildCount(a));(function(a,
|
||||
b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.edgeShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d,p),b);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===
|
||||
b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(d,p),a)}return null};h.prototype.addGroup=function(f,b,a,d,g){var p=b.getDimensions(),D=b.getMaster(),E=b.getStyleFromShape(),y=b.getGeomList();y.isNoFill()&&(E[mxConstants.STYLE_FILLCOLOR]="none",E[mxConstants.STYLE_GRADIENTCOLOR]="none");y.isNoLine()&&(E[mxConstants.STYLE_STROKECOLOR]="none");E.html="1";E[mxConstants.STYLE_WHITE_SPACE]=
|
||||
"wrap";var t=c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"="),E=null,h=b.getChildShapes(),E=null!=h&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(h),y=b.isDisplacedLabel()||b.isRotatedLabel()||E,E=b.getOriginPoint(g,!0);if(y)E=f.insertVertex(a,null,null,Math.floor(Math.round(100*E.x)/100),Math.floor(Math.round(100*E.y)/100),Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*p.y)/100),t);else var l=b.getTextLabel(),E=f.insertVertex(a,null,l,Math.floor(Math.round(100*
|
||||
b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(d,p),a)}return null};h.prototype.addGroup=function(f,b,a,d,g){var p=b.getDimensions(),D=b.getMaster(),E=b.getStyleFromShape(),x=b.getGeomList();x.isNoFill()&&(E[mxConstants.STYLE_FILLCOLOR]="none",E[mxConstants.STYLE_GRADIENTCOLOR]="none");x.isNoLine()&&(E[mxConstants.STYLE_STROKECOLOR]="none");E.html="1";E[mxConstants.STYLE_WHITE_SPACE]=
|
||||
"wrap";var t=c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"="),E=null,h=b.getChildShapes(),E=null!=h&&0<function(a){null==a.entries&&(a.entries=[]);return a.entries.length}(h),x=b.isDisplacedLabel()||b.isRotatedLabel()||E,E=b.getOriginPoint(g,!0);if(x)E=f.insertVertex(a,null,null,Math.floor(Math.round(100*E.x)/100),Math.floor(Math.round(100*E.y)/100),Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*p.y)/100),t);else var l=b.getTextLabel(),E=f.insertVertex(a,null,l,Math.floor(Math.round(100*
|
||||
E.x)/100),Math.floor(Math.round(100*E.y)/100),Math.floor(Math.round(100*p.x)/100),Math.floor(Math.round(100*p.y)/100),t);for(a=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){null==a.entries&&(a.entries=[]);return a.entries}(h));a.hasNext();)t=a.next().getValue(),h=t.getId(),t.isVertex()?(l=c.mxgraph.io.vsdx.VsdxShape.getType(t.getShape()),null!=l&&(function(a,b){return a&&a.equals?a.equals(b):a===b}(l,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_SHAPE)||
|
||||
function(a,b){return a&&a.equals?a.equals(b):a===b}(l,c.mxgraph.io.vsdx.mxVsdxConstants.TYPE_GROUP)||function(a,b){return a&&a.equals?a.equals(b):a===b}(l,c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN))&&t.isVertex()&&(t.propagateRotation(b.getRotation()),t.isGroup()?this.addGroup(f,t,E,d,p.y):this.addVertex(f,t,E,d,p.y)),null==D&&function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=
|
||||
d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexShapeMap,new c.mxgraph.io.vsdx.ShapePageId(d,h),t)):null==D?(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.edgeShapeMap,
|
||||
new c.mxgraph.io.vsdx.ShapePageId(d,h),t),function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(d,h),E)):this.addUnconnectedEdge(f,E,t,g);y&&b.createLabelSubShape(f,E);f=b.getRotation();if(0!==f)for(d=E.getGeometry(),
|
||||
b=d.width/2,d=d.height/2,g=0;g<E.getChildCount();g++)p=E.getChildAt(g),c.mxgraph.online.Utils.rotatedGeometry(p.getGeometry(),f,b,d);return E};h.rotatedEdgePoint=function(c,b,a,d){b=b*Math.PI/180;var g=Math.cos(b);b=Math.sin(b);var p=c.x-a,f=c.y-d;c.x=Math.round(p*g-f*b+a);c.y=Math.round(f*g+p*b+d)};h.prototype.addVertex=function(f,b,a,d,g){var p="",D=b.isDisplacedLabel()||b.isRotatedLabel();D||(p=b.getTextLabel());var E=b.getDimensions(),y=b.getStyleFromShape();y.html="1";var t=y.hasOwnProperty(mxConstants.STYLE_SHAPE)||
|
||||
y.hasOwnProperty("stencil");y.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&t||(y[mxConstants.STYLE_FILLCOLOR]="none");t||(y[mxConstants.STYLE_STROKECOLOR]="none");y.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&t||(y[mxConstants.STYLE_GRADIENTCOLOR]="none");y[mxConstants.STYLE_WHITE_SPACE]="wrap";g=b.getOriginPoint(g,!0);return t||null!=p?(y=c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(y,"="),t=null,t=D?f.insertVertex(a,null,null,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/
|
||||
100),Math.floor(Math.round(100*E.x)/100),Math.floor(Math.round(100*E.y)/100),y):f.insertVertex(a,null,p,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/100),Math.floor(Math.round(100*E.x)/100),Math.floor(Math.round(100*E.y)/100),y),function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},
|
||||
getValue:function(){return this.value}})}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(d,b.getId()),t),b.setLabelOffset(t,y),D&&b.createLabelSubShape(f,t),t):null};h.calculateAbsolutePoint=function(c){for(var b=0,a=0;null!=c;){var d=c.geometry;null!=d&&(b+=d.x,a+=d.y);c=c.parent}return new mxPoint(b,a)};h.prototype.addConnectedEdge=function(f,b,a,d){var g=b.getFromSheet(),g=new c.mxgraph.io.vsdx.ShapePageId(a,g),p=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=
|
||||
a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.edgeShapeMap,g);if(null==p)return null;var D=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(a,p.getId()));if(null!=D){var E=f.getModel().getGeometry(D);null!=E&&(d=E.height)}var y=
|
||||
p.getStartXY(d),t=p.getEndXY(d),E=p.getRoutingPoints(d,y,p.getRotation());this.rotateChildEdge(f.getModel(),D,y,t,E);var l=null,w=b.getSourceToSheet(),w=null!=w?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(a,w)):null,m=!0;if(null==w)w=f.insertVertex(D,null,null,Math.floor(Math.round(100*y.x)/100),
|
||||
Math.floor(Math.round(100*y.y)/100),0,0);else if(w.style&&-1==w.style.indexOf(";rotation="))var l=h.calculateAbsolutePoint(w),C=h.calculateAbsolutePoint(D),A=w.geometry,l=new mxPoint((C.x+y.x-l.x)/A.width,(C.y+y.y-l.y)/A.height);else m=!1;y=null;b=b.getTargetToSheet();b=null!=b?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(a,
|
||||
b)):null;C=!0;null==b?b=f.insertVertex(D,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*t.y)/100),0,0):b.style&&-1==b.style.indexOf(";rotation=")?(a=h.calculateAbsolutePoint(b),y=h.calculateAbsolutePoint(D),A=b.geometry,y=new mxPoint((y.x+t.x-a.x)/A.width,(y.y+t.y-a.y)/A.height)):C=!1;t=p.getStyleFromEdgeShape(d);A=p.getRotation();0!==A?(a=f.insertEdge(D,null,null,w,b,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=")),m=p.createLabelSubShape(f,a),null!=m&&(m.setStyle(m.getStyle()+
|
||||
";rotation="+(60<A&&240>A?(A+180)%360:A)),m=m.getGeometry(),m.x=0,m.y=0,m.relative=!0,m.offset=new mxPoint(-m.width/2,-m.height/2))):(a=f.insertEdge(D,null,p.getTextLabel(),w,b,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=")),A=p.getLblEdgeOffset(f.getView(),E),a.getGeometry().offset=A,null!=l&&f.setConnectionConstraint(a,w,!0,new mxConnectionConstraint(l,!1)),m&&E.shift(),null!=y&&f.setConnectionConstraint(a,b,!1,new mxConnectionConstraint(y,!1)),C&&E.pop());m=f.getModel().getGeometry(a);if(w.parent!=
|
||||
b.parent&&null!=D&&1!=D.id&&1==w.parent.id){b=l=0;do y=D.geometry,null!=y&&(l+=y.x,b+=y.y),D=D.parent;while(null!=D);a.parent=w.parent;for(D=0;D<E.length;D++)E[D].x+=l,E[D].y+=b}m.points=E;t.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(t,"curved"),"1")&&(m=f.getModel().getGeometry(a),f=p.getControlPoints(d),m.points=f);return g};h.prototype.addUnconnectedEdge=function(f,b,a,d){if(null!=b){var g=f.getModel().getGeometry(b);null!=
|
||||
g&&(d=g.height)}var p=a.getStartXY(d),D=a.getEndXY(d),E=a.getStyleFromEdgeShape(d),y=a.getRoutingPoints(d,p,a.getRotation()),t=a.getRotation();if(0!==t){0===a.getShapeIndex()?g=f.insertEdge(b,null,null,null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")):(g=f.createEdge(b,null,null,null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")),g=f.addEdge(g,b,null,null,a.getShapeIndex()));var h=a.createLabelSubShape(f,g);null!=h&&(h.setStyle(h.getStyle()+";rotation="+(60<t&&240>t?(t+180)%
|
||||
360:t)),t=h.getGeometry(),t.x=0,t.y=0,t.relative=!0,t.offset=new mxPoint(-t.width/2,-t.height/2))}else 0===a.getShapeIndex()?g=f.insertEdge(b,null,a.getTextLabel(),null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")):(g=f.createEdge(b,null,a.getTextLabel(),null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")),g=f.addEdge(g,b,null,null,a.getShapeIndex())),t=a.getLblEdgeOffset(f.getView(),y),g.getGeometry().offset=t;this.rotateChildEdge(f.getModel(),b,p,D,y);b=f.getModel().getGeometry(g);
|
||||
y.pop();y.shift();b.points=y;b.setTerminalPoint(p,!0);b.setTerminalPoint(D,!1);E.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(E,"curved"),"1")&&(b=f.getModel().getGeometry(g),f=a.getControlPoints(d),b.points=f);return g};h.prototype.rotateChildEdge=function(c,b,a,d,g){if(null!=b){var p=c.getGeometry(b);c=c.getStyle(b);if(null!=p&&null!=c&&(b=c.indexOf("rotation="),-1<b))for(c=parseFloat(c.substring(b+9,c.indexOf(";",b))),b=p.width/
|
||||
2,p=p.height/2,h.rotatedEdgePoint(a,c,b,p),h.rotatedEdgePoint(d,c,b,p),a=0;a<g.length;a++)h.rotatedEdgePoint(g[a],c,b,p)}};h.prototype.sanitiseGraph=function(c){var b=c.getModel().getRoot();this.sanitiseCell(c,b)};h.prototype.sanitiseCell=function(c,b){for(var a=c.getModel(),d=a.getChildCount(b),g=[],p=0;p<d;p++){var f=a.getChildAt(b,p);this.sanitiseCell(c,f)&&0<g.push(f)}for(p=0;p<g.length;p++)a.remove(g[p]);0<d&&(d=a.getChildCount(b));g=(new String(a.getValue(b))).toString();p=a.getStyle(b);return 0!==
|
||||
d||!a.isVertex(b)||null!=a.getValue(b)&&0!==g.length||null==p||-1==p.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||-1==p.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=p.indexOf("image=")?!1:!0};return h}();w.mxVsdxCodec=l;l.__class="com.mxgraph.io.mxVsdxCodec"})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
new c.mxgraph.io.vsdx.ShapePageId(d,h),t),function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(d,h),E)):this.addUnconnectedEdge(f,E,t,g);x&&b.createLabelSubShape(f,E);f=b.getRotation();if(0!==f)for(p=E.getGeometry(),
|
||||
g=p.width/2,p=p.height/2,D=0;D<E.getChildCount();D++)x=E.getChildAt(D),c.mxgraph.online.Utils.rotatedGeometry(x.getGeometry(),f,g,p);(function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})})(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(d,b.getId()),E);
|
||||
return E};h.rotatedEdgePoint=function(c,b,a,d){b=b*Math.PI/180;var g=Math.cos(b);b=Math.sin(b);var p=c.x-a,f=c.y-d;c.x=Math.round(p*g-f*b+a);c.y=Math.round(f*g+p*b+d)};h.prototype.addVertex=function(f,b,a,d,g){var p="",D=b.isDisplacedLabel()||b.isRotatedLabel();D||(p=b.getTextLabel());var E=b.getDimensions(),x=b.getStyleFromShape();x.html="1";var t=x.hasOwnProperty(mxConstants.STYLE_SHAPE)||x.hasOwnProperty("stencil");x.hasOwnProperty(mxConstants.STYLE_FILLCOLOR)&&t||(x[mxConstants.STYLE_FILLCOLOR]=
|
||||
"none");t||(x[mxConstants.STYLE_STROKECOLOR]="none");x.hasOwnProperty(mxConstants.STYLE_GRADIENTCOLOR)&&t||(x[mxConstants.STYLE_GRADIENTCOLOR]="none");x[mxConstants.STYLE_WHITE_SPACE]="wrap";g=b.getOriginPoint(g,!0);return t||null!=p?(x=c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(x,"="),t=null,t=D?f.insertVertex(a,null,null,Math.floor(Math.round(100*g.x)/100),Math.floor(Math.round(100*g.y)/100),Math.floor(Math.round(100*E.x)/100),Math.floor(Math.round(100*E.y)/100),x):f.insertVertex(a,null,p,Math.floor(Math.round(100*
|
||||
g.x)/100),Math.floor(Math.round(100*g.y)/100),Math.floor(Math.round(100*E.x)/100),Math.floor(Math.round(100*E.y)/100),x),function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},getValue:function(){return this.value}})}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(d,b.getId()),t),b.setLabelOffset(t,
|
||||
x),D&&b.createLabelSubShape(f,t),t):null};h.calculateAbsolutePoint=function(c){for(var b=0,a=0;null!=c;){var d=c.geometry;null!=d&&(b+=d.x,a+=d.y);c=c.parent}return new mxPoint(b,a)};h.prototype.addConnectedEdge=function(f,b,a,d){var g=b.getFromSheet(),g=new c.mxgraph.io.vsdx.ShapePageId(a,g),p=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.edgeShapeMap,
|
||||
g);if(null==p)return null;var D=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.parentsMap,new c.mxgraph.io.vsdx.ShapePageId(a,p.getId()));if(null!=D){var E=f.getModel().getGeometry(D);null!=E&&(d=E.height)}var x=p.getStartXY(d),t=p.getEndXY(d),E=p.getRoutingPoints(d,x,p.getRotation());this.rotateChildEdge(f.getModel(),D,x,t,E);var l=null,
|
||||
w=b.getSourceToSheet(),w=null!=w?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(a,w)):null,m=!0;if(null==w)w=f.insertVertex(D,null,null,Math.floor(Math.round(100*x.x)/100),Math.floor(Math.round(100*x.y)/100),0,0);else if(w.style&&-1==w.style.indexOf(";rotation="))var l=h.calculateAbsolutePoint(w),
|
||||
C=h.calculateAbsolutePoint(D),A=w.geometry,l=new mxPoint((C.x+x.x-l.x)/A.width,(C.y+x.y-l.y)/A.height);else m=!1;x=null;b=b.getTargetToSheet();b=null!=b?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.vertexMap,new c.mxgraph.io.vsdx.ShapePageId(a,b)):null;C=!0;null==b?b=f.insertVertex(D,null,null,Math.floor(Math.round(100*t.x)/100),Math.floor(Math.round(100*
|
||||
t.y)/100),0,0):b.style&&-1==b.style.indexOf(";rotation=")?(a=h.calculateAbsolutePoint(b),x=h.calculateAbsolutePoint(D),A=b.geometry,x=new mxPoint((x.x+t.x-a.x)/A.width,(x.y+t.y-a.y)/A.height)):C=!1;t=p.getStyleFromEdgeShape(d);A=p.getRotation();0!==A?(a=f.insertEdge(D,null,null,w,b,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=")),m=p.createLabelSubShape(f,a),null!=m&&(m.setStyle(m.getStyle()+";rotation="+(60<A&&240>A?(A+180)%360:A)),m=m.getGeometry(),m.x=0,m.y=0,m.relative=!0,m.offset=new mxPoint(-m.width/
|
||||
2,-m.height/2))):(a=f.insertEdge(D,null,p.getTextLabel(),w,b,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(t,"=")),A=p.getLblEdgeOffset(f.getView(),E),a.getGeometry().offset=A,null!=l&&f.setConnectionConstraint(a,w,!0,new mxConnectionConstraint(l,!1)),m&&E.shift(),null!=x&&f.setConnectionConstraint(a,b,!1,new mxConnectionConstraint(x,!1)),C&&E.pop());m=f.getModel().getGeometry(a);if(w.parent!=b.parent&&null!=D&&1!=D.id&&1==w.parent.id){b=l=0;do x=D.geometry,null!=x&&(l+=x.x,b+=x.y),D=D.parent;while(null!=
|
||||
D);a.parent=w.parent;for(D=0;D<E.length;D++)E[D].x+=l,E[D].y+=b}m.points=E;t.hasOwnProperty("curved")&&function(a,b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(t,"curved"),"1")&&(m=f.getModel().getGeometry(a),f=p.getControlPoints(d),m.points=f);return g};h.prototype.addUnconnectedEdge=function(f,b,a,d){if(null!=b){var g=f.getModel().getGeometry(b);null!=g&&(d=g.height)}var p=a.getStartXY(d),D=a.getEndXY(d),E=a.getStyleFromEdgeShape(d),x=a.getRoutingPoints(d,p,a.getRotation()),
|
||||
t=a.getRotation();if(0!==t){0===a.getShapeIndex()?g=f.insertEdge(b,null,null,null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")):(g=f.createEdge(b,null,null,null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")),g=f.addEdge(g,b,null,null,a.getShapeIndex()));var h=a.createLabelSubShape(f,g);null!=h&&(h.setStyle(h.getStyle()+";rotation="+(60<t&&240>t?(t+180)%360:t)),t=h.getGeometry(),t.x=0,t.y=0,t.relative=!0,t.offset=new mxPoint(-t.width/2,-t.height/2))}else 0===a.getShapeIndex()?
|
||||
g=f.insertEdge(b,null,a.getTextLabel(),null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")):(g=f.createEdge(b,null,a.getTextLabel(),null,null,c.mxgraph.io.vsdx.mxVsdxUtils.getStyleString(E,"=")),g=f.addEdge(g,b,null,null,a.getShapeIndex())),t=a.getLblEdgeOffset(f.getView(),x),g.getGeometry().offset=t;this.rotateChildEdge(f.getModel(),b,p,D,x);b=f.getModel().getGeometry(g);x.pop();x.shift();b.points=x;b.setTerminalPoint(p,!0);b.setTerminalPoint(D,!1);E.hasOwnProperty("curved")&&function(a,
|
||||
b){return a&&a.equals?a.equals(b):a===b}(function(a,b){return a[b]?a[b]:null}(E,"curved"),"1")&&(b=f.getModel().getGeometry(g),f=a.getControlPoints(d),b.points=f);return g};h.prototype.rotateChildEdge=function(c,b,a,d,g){if(null!=b){var p=c.getGeometry(b);c=c.getStyle(b);if(null!=p&&null!=c&&(b=c.indexOf("rotation="),-1<b))for(c=parseFloat(c.substring(b+9,c.indexOf(";",b))),b=p.width/2,p=p.height/2,h.rotatedEdgePoint(a,c,b,p),h.rotatedEdgePoint(d,c,b,p),a=0;a<g.length;a++)h.rotatedEdgePoint(g[a],
|
||||
c,b,p)}};h.prototype.sanitiseGraph=function(c){var b=c.getModel().getRoot();this.sanitiseCell(c,b)};h.prototype.sanitiseCell=function(c,b){for(var a=c.getModel(),d=a.getChildCount(b),g=[],p=0;p<d;p++){var f=a.getChildAt(b,p);this.sanitiseCell(c,f)&&0<g.push(f)}for(p=0;p<g.length;p++)a.remove(g[p]);0<d&&(d=a.getChildCount(b));g=(new String(a.getValue(b))).toString();p=a.getStyle(b);return 0!==d||!a.isVertex(b)||null!=a.getValue(b)&&0!==g.length||null==p||-1==p.indexOf(mxConstants.STYLE_FILLCOLOR+"=none")||
|
||||
-1==p.indexOf(mxConstants.STYLE_STROKECOLOR+"=none")||-1!=p.indexOf("image=")?!1:!0};return h}();w.mxVsdxCodec=l;l.__class="com.mxgraph.io.mxVsdxCodec"})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(w){var l=function(h){function f(){var b=h.call(this)||this;b.RESPONSE_END="";b.RESPONSE_DIAGRAM_START="";b.RESPONSE_DIAGRAM_END="";b.RESPONSE_HEADER="";return b}__extends(f,h);f.prototype.decodeVssx=function(b,a,d){var g=this,p="<mxlibrary>[";this.decodeVsdx(b,function(b){p=p.concat(b);var d=g.vsdxModel.getMasterShapes(),f=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){var b=[];null==
|
||||
a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)b.push(a.entries[d].value);return b}(g.vsdxModel.getPages())).next();if(null!=d){var D={str:"",toString:function(){return this.str}},l=0===b.length?"":",",w=function(a){return Object.keys(a).map(function(b){return a[b]})}(d);b=function(a){a=w[a];var b=m.createMxGraph(),g=a.getMasterShape().getShape(),g=new c.mxgraph.io.vsdx.VsdxShape(f,g,!f.isEdge(g),d,null,m.vsdxModel),p=1;if(null!=a.pageSheet){var y=p=1,E=a.pageSheet.DrawingScale;null!=
|
||||
E&&(p=parseFloat(E.getAttribute("V")));E=a.pageSheet.PageScale;null!=E&&(y=parseFloat(E.getAttribute("V")));p=y/p}y=null;if(g.isVertex())for(m.edgeShapeMap.entries=[],m.parentsMap.entries=[],y=m.addShape(b,g,b.getDefaultParent(),0,1169),g=function(a){null==a.entries&&(a.entries=[]);return a.entries}(m.edgeShapeMap),E=0;E<g.length;E++){var t=g[E],z=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===
|
||||
b)return a.entries[d].value;return null}(m.parentsMap,t.getKey());m.addUnconnectedEdge(b,z,t.getValue(),1169)}else y=m.addUnconnectedEdge(b,null,g,1169);if(null!=y){m.scaleGraph(b,p);g=m.normalizeGeo(y);m.sanitiseGraph(b);if(0===b.getModel().getChildCount(b.getDefaultParent()))return"continue";D.str=D.str.concat(l);D.str=D.str.concat('{"xml":"');b=h.prototype.processPage.call(m,b,null);D.str=D.str.concat(b);D.str=D.str.concat('","w":');D.str=D.str.concat(g.width);D.str=D.str.concat(',"h":');D.str=
|
||||
a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)b.push(a.entries[d].value);return b}(g.vsdxModel.getPages())).next();if(null!=d){var D={str:"",toString:function(){return this.str}},l=0===b.length?"":",",w=function(a){return Object.keys(a).map(function(b){return a[b]})}(d);b=function(a){a=w[a];var b=m.createMxGraph(),g=a.getMasterShape().getShape(),g=new c.mxgraph.io.vsdx.VsdxShape(f,g,!f.isEdge(g),d,null,m.vsdxModel),p=1;if(null!=a.pageSheet){var x=p=1,E=a.pageSheet.DrawingScale;null!=
|
||||
E&&(p=parseFloat(E.getAttribute("V")));E=a.pageSheet.PageScale;null!=E&&(x=parseFloat(E.getAttribute("V")));p=x/p}x=null;if(g.isVertex())for(m.edgeShapeMap.entries=[],m.parentsMap.entries=[],x=m.addShape(b,g,b.getDefaultParent(),0,1169),g=function(a){null==a.entries&&(a.entries=[]);return a.entries}(m.edgeShapeMap),E=0;E<g.length;E++){var t=g[E],z=function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===
|
||||
b)return a.entries[d].value;return null}(m.parentsMap,t.getKey());m.addUnconnectedEdge(b,z,t.getValue(),1169)}else x=m.addUnconnectedEdge(b,null,g,1169);if(null!=x){m.scaleGraph(b,p);g=m.normalizeGeo(x);m.sanitiseGraph(b);if(0===b.getModel().getChildCount(b.getDefaultParent()))return"continue";D.str=D.str.concat(l);D.str=D.str.concat('{"xml":"');b=h.prototype.processPage.call(m,b,null);D.str=D.str.concat(b);D.str=D.str.concat('","w":');D.str=D.str.concat(g.width);D.str=D.str.concat(',"h":');D.str=
|
||||
D.str.concat(g.height);D.str=D.str.concat(',"title":');a=a.getName();null==a&&(a="");a=JSON.stringify(mxUtils.htmlEntities(a));D.str=D.str.concat(a);D.str=D.str.concat("}");l=","}};for(var m=g,C=0;C<w.length;C++)b(C);p=p.concat(D)}p=p.concat("]</mxlibrary>");a&&a(p)},d)};f.prototype.normalizeGeo=function(b){var a=b.getGeometry();a.x=0;a.y=0;var d=a.sourcePoint;if(b.isEdge()&&null!=d){this.transPoint(a.targetPoint,d);this.transPoint(a.offset,d);b=a.points;if(null!=b)for(var g=0;g<b.length;g++)this.transPoint(b[g],
|
||||
d);this.transPoint(d,d)}return a};f.prototype.transPoint=function(b,a){null!=b&&(b.x-=a.x,b.y-=a.y)};f.prototype.processPage=function(b,a){var d=b.getModel(),g="",p="",f;for(f in d.cells){var E=d.cells[f];if(b.getDefaultParent()===d.getParent(E)){var g=g.concat(p),g=g.concat('{"xml":"'),y=this.createMxGraph();y.addCell(E);this.sanitiseGraph(y);if(0===y.getModel().getChildCount(y.getDefaultParent()))return"continue";p=this.normalizeGeo(E);y=h.prototype.processPage.call(this,y,null);g=g.concat(y);g=
|
||||
g.concat('","w":');g=g.concat(p.width);g=g.concat(',"h":');g=g.concat(p.height);g=g.concat(',"title":"');p=d.getStyle(E);E="";if(null!=p&&(y=p.indexOf(c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID),0<=y)){y+=c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID.length+1;f=parseInt(p.substring(y,p.indexOf(";",y)));a:{p=this.vertexShapeMap;y=new c.mxgraph.io.vsdx.ShapePageId(a.getId(),f);null==p.entries&&(p.entries=[]);for(var t=0;t<p.entries.length;t++)if(null!=p.entries[t].key.equals&&p.entries[t].key.equals(y)||
|
||||
p.entries[t].key===y){p=p.entries[t].value;break a}p=null}null!=p&&(E=p.getName())}g=g.concat(E);g=g.concat('"}');p=","}}this.RESPONSE_DIAGRAM_START=0<g.length?",":"";return g};return f}(c.mxgraph.io.mxVsdxCodec);w.mxVssxCodec=l;l.__class="com.mxgraph.io.mxVssxCodec"})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
d);this.transPoint(d,d)}return a};f.prototype.transPoint=function(b,a){null!=b&&(b.x-=a.x,b.y-=a.y)};f.prototype.processPage=function(b,a){var d=b.getModel(),g="",p="",f;for(f in d.cells){var E=d.cells[f];if(b.getDefaultParent()===d.getParent(E)){var g=g.concat(p),g=g.concat('{"xml":"'),x=this.createMxGraph();x.addCell(E);this.sanitiseGraph(x);if(0===x.getModel().getChildCount(x.getDefaultParent()))return"continue";p=this.normalizeGeo(E);x=h.prototype.processPage.call(this,x,null);g=g.concat(x);g=
|
||||
g.concat('","w":');g=g.concat(p.width);g=g.concat(',"h":');g=g.concat(p.height);g=g.concat(',"title":"');p=d.getStyle(E);E="";if(null!=p&&(x=p.indexOf(c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID),0<=x)){x+=c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID.length+1;f=parseInt(p.substring(x,p.indexOf(";",x)));a:{p=this.vertexShapeMap;x=new c.mxgraph.io.vsdx.ShapePageId(a.getId(),f);null==p.entries&&(p.entries=[]);for(var t=0;t<p.entries.length;t++)if(null!=p.entries[t].key.equals&&p.entries[t].key.equals(x)||
|
||||
p.entries[t].key===x){p=p.entries[t].value;break a}p=null}null!=p&&(E=p.getName())}g=g.concat(E);g=g.concat('"}');p=","}}this.RESPONSE_DIAGRAM_START=0<g.length?",":"";return g};return f}(c.mxgraph.io.mxVsdxCodec);w.mxVssxCodec=l;l.__class="com.mxgraph.io.mxVssxCodec"})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a,b,g){this.formulaE=this.formulaA=this.d=this.c=this.b=this.a=this.y=this.x=null;this.index=0;this.index=a;this.x=b;this.y=g}b.prototype.getX=function(){return this.x};b.prototype.getY=function(){return this.y};b.prototype.getA=function(){return this.a};b.prototype.getB=function(){return this.b};b.prototype.getC=function(){return this.c};b.prototype.getD=function(){return this.d};b.prototype.getFormulaA=
|
||||
function(){return this.formulaA};b.prototype.getFormulaE=function(){return this.formulaE};b.prototype.getIndex=function(){return this.index};return b}();c.Row=f;f.__class="com.mxgraph.io.vsdx.geometry.Row"})(c.geometry||(c.geometry={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))}catch(d){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(g){}return null};b.getRowObj=function(a,d){var g=a.getAttribute("T"),p=b.getIndex(a),f;f=(f=a.getAttribute("Del"))&&f.equals?f.equals("1"):"1"===f;if(!f){var E=null;p<=d.length&&(E=d[p-1]);var y=f=null,t=null,h=null,
|
||||
l=null,m=null,w=null,A=null;null!=E&&(f=E.x,y=E.y,t=E.getA(),h=E.getB(),l=E.getC(),m=E.getD(),A=E.getFormulaA(),w=E.getFormulaE());for(var E=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),F=0;F<E.length;F++){var B=E[F],Y=B.getAttribute("N"),J=B.getAttribute("V");switch(Y){case "X":f=b.getDoubleVal(J);break;case "Y":y=b.getDoubleVal(J);break;case "A":t=b.getDoubleVal(J);A=B.getAttribute("V");break;case "B":h=b.getDoubleVal(J);break;case "C":l=b.getDoubleVal(J);break;case "D":m=b.getDoubleVal(J);
|
||||
break;case "E":w=J}}switch(g){case "MoveTo":return new c.mxgraph.io.vsdx.geometry.MoveTo(p,f,y);case "LineTo":return new c.mxgraph.io.vsdx.geometry.LineTo(p,f,y);case "ArcTo":return new c.mxgraph.io.vsdx.geometry.ArcTo(p,f,y,t);case "Ellipse":return new c.mxgraph.io.vsdx.geometry.Ellipse(p,f,y,t,h,l,m);case "EllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.EllipticalArcTo(p,f,y,t,h,l,m);case "InfiniteLine":return new c.mxgraph.io.vsdx.geometry.InfiniteLine(p,f,y,t,h);case "NURBSTo":return new c.mxgraph.io.vsdx.geometry.NURBSTo(p,
|
||||
f,y,t,h,l,m,w);case "PolylineTo":return new c.mxgraph.io.vsdx.geometry.PolylineTo(p,f,y,A);case "RelCubBezTo":return new c.mxgraph.io.vsdx.geometry.RelCubBezTo(p,f,y,t,h,l,m);case "RelEllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(p,f,y,t,h,l,m);case "RelLineTo":return new c.mxgraph.io.vsdx.geometry.RelLineTo(p,f,y);case "RelMoveTo":return new c.mxgraph.io.vsdx.geometry.RelMoveTo(p,f,y);case "RelQuadBezTo":return new c.mxgraph.io.vsdx.geometry.RelQuadBezTo(p,f,y,t,h);case "SplineKnot":return new c.mxgraph.io.vsdx.geometry.SplineKnot(p,
|
||||
f,y,t);case "SplineStart":return new c.mxgraph.io.vsdx.geometry.SplineStart(p,f,y,t,h,l,m)}}return new c.mxgraph.io.vsdx.geometry.DelRow(p)};return b}();h.RowFactory=f;f.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getIndex=function(a){try{return parseInt(a.getAttribute("IX"))}catch(d){return 1}};b.getDoubleVal=function(a){try{if(null!=a&&0!==a.length){var b=parseFloat(a);if(isFinite(b))return b}}catch(g){}return null};b.getRowObj=function(a,d){var g=a.getAttribute("T"),p=b.getIndex(a),f;f=(f=a.getAttribute("Del"))&&f.equals?f.equals("1"):"1"===f;if(!f){var E=null;p<=d.length&&(E=d[p-1]);var x=f=null,t=null,h=null,
|
||||
l=null,m=null,w=null,A=null;null!=E&&(f=E.x,x=E.y,t=E.getA(),h=E.getB(),l=E.getC(),m=E.getD(),A=E.getFormulaA(),w=E.getFormulaE());for(var E=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),F=0;F<E.length;F++){var B=E[F],Y=B.getAttribute("N"),J=B.getAttribute("V");switch(Y){case "X":f=b.getDoubleVal(J);break;case "Y":x=b.getDoubleVal(J);break;case "A":t=b.getDoubleVal(J);A=B.getAttribute("V");break;case "B":h=b.getDoubleVal(J);break;case "C":l=b.getDoubleVal(J);break;case "D":m=b.getDoubleVal(J);
|
||||
break;case "E":w=J}}switch(g){case "MoveTo":return new c.mxgraph.io.vsdx.geometry.MoveTo(p,f,x);case "LineTo":return new c.mxgraph.io.vsdx.geometry.LineTo(p,f,x);case "ArcTo":return new c.mxgraph.io.vsdx.geometry.ArcTo(p,f,x,t);case "Ellipse":return new c.mxgraph.io.vsdx.geometry.Ellipse(p,f,x,t,h,l,m);case "EllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.EllipticalArcTo(p,f,x,t,h,l,m);case "InfiniteLine":return new c.mxgraph.io.vsdx.geometry.InfiniteLine(p,f,x,t,h);case "NURBSTo":return new c.mxgraph.io.vsdx.geometry.NURBSTo(p,
|
||||
f,x,t,h,l,m,w);case "PolylineTo":return new c.mxgraph.io.vsdx.geometry.PolylineTo(p,f,x,A);case "RelCubBezTo":return new c.mxgraph.io.vsdx.geometry.RelCubBezTo(p,f,x,t,h,l,m);case "RelEllipticalArcTo":return new c.mxgraph.io.vsdx.geometry.RelEllipticalArcTo(p,f,x,t,h,l,m);case "RelLineTo":return new c.mxgraph.io.vsdx.geometry.RelLineTo(p,f,x);case "RelMoveTo":return new c.mxgraph.io.vsdx.geometry.RelMoveTo(p,f,x);case "RelQuadBezTo":return new c.mxgraph.io.vsdx.geometry.RelQuadBezTo(p,f,x,t,h);case "SplineKnot":return new c.mxgraph.io.vsdx.geometry.SplineKnot(p,
|
||||
f,x,t);case "SplineStart":return new c.mxgraph.io.vsdx.geometry.SplineStart(p,f,x,t,h,l,m)}}return new c.mxgraph.io.vsdx.geometry.DelRow(p)};return b}();h.RowFactory=f;f.__class="com.mxgraph.io.vsdx.geometry.RowFactory"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(){this.colorElementMap={};this.fontElementMap={}}f.__static_initialize=function(){f.__static_initialized||(f.__static_initialized=!0,f.__static_initializer_0())};f.defaultColors_$LI$=function(){f.__static_initialize();null==f.defaultColors&&(f.defaultColors={});return f.defaultColors};f.__static_initializer_0=function(){f.defaultColors_$LI$()["0"]="#000000";f.defaultColors_$LI$()["1"]="#FFFFFF";f.defaultColors_$LI$()["2"]=
|
||||
"#FF0000";f.defaultColors_$LI$()["3"]="#00FF00";f.defaultColors_$LI$()["4"]="#0000FF";f.defaultColors_$LI$()["5"]="#FFFF00";f.defaultColors_$LI$()["6"]="#FF00FF";f.defaultColors_$LI$()["7"]="#00FFFF";f.defaultColors_$LI$()["8"]="#800000";f.defaultColors_$LI$()["9"]="#008000";f.defaultColors_$LI$()["10"]="#000080";f.defaultColors_$LI$()["11"]="#808000";f.defaultColors_$LI$()["12"]="#800080";f.defaultColors_$LI$()["13"]="#008080";f.defaultColors_$LI$()["14"]="#C0C0C0";f.defaultColors_$LI$()["15"]="#E6E6E6";
|
||||
f.defaultColors_$LI$()["16"]="#CDCDCD";f.defaultColors_$LI$()["17"]="#B3B3B3";f.defaultColors_$LI$()["18"]="#9A9A9A";f.defaultColors_$LI$()["19"]="#808080";f.defaultColors_$LI$()["20"]="#666666";f.defaultColors_$LI$()["21"]="#4D4D4D";f.defaultColors_$LI$()["22"]="#333333";f.defaultColors_$LI$()["23"]="#1A1A1A"};f.prototype.initialise=function(b,a){if(null!=b){var d=b.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.COLORS);if(0<d.length)for(var g=d.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.COLOR_ENTRY),
|
||||
|
@ -629,10 +630,10 @@ f.prototype.isNoLine=function(){return this.noLine};f.prototype.isNoShow=functio
|
|||
function(){function a(a){this.__parent=a}a.prototype.compare=function(a,b){return a.getIndex()-b.getIndex()};return a}();c.mxVsdxGeometry$0=b;b.__interfaces=["java.util.Comparator"]})(h=l.mxVsdxGeometry||(l.mxVsdxGeometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.geomList=[];this.parentGeomList=null;this.sortNeeded=!1;if(null!=b){this.parentGeomList=b.geomList;var a=this.geomList;a.push.apply(a,b.geomList)}}f.prototype.addGeometry=function(b){b=new c.mxgraph.io.vsdx.mxVsdxGeometry(b,this.parentGeomList);b.getIndex()<this.geomList.length?this.geomList[b.getIndex()]=b:(0<this.geomList.push(b),this.sortNeeded=!0)};f.prototype.sort=function(){this.sortNeeded&&(function(b,a){a.compare?
|
||||
b.sort(function(b,g){return a.compare(b,g)}):b.sort(a)}(this.geomList,new f.mxVsdxGeometryList$0(this)),this.sortNeeded=!1)};f.prototype.isNoShow=function(){for(var b=0;b<this.geomList.length;b++)if(!this.geomList[b].isNoShow())return!1;return!0};f.prototype.isNoFill=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&!a.isNoFill())return!1}return!0};f.prototype.isNoLine=function(){for(var b=0;b<this.geomList.length;b++){var a=this.geomList[b];if(!a.isNoShow()&&
|
||||
!a.isNoLine())return!1}return!0};f.prototype.hasGeom=function(){return 0!=this.geomList.length};f.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};f.prototype.rotatedPoint=function(b,a,d){var g=b.y*a+b.x*d;b.x=b.x*a-b.y*d;b.y=g};f.prototype.getRoutingPoints=function(b,a,d){this.sort();b=[];0<b.push(a.clone());for(var g=0,p=0,f=0;f<this.geomList.length;f++){var E=this.geomList[f];if(!E.isNoShow())for(var E=E.getRows(),y=0;y<E.length;y++){var h=
|
||||
E[y];if(0==y&&null!=h&&h instanceof c.mxgraph.io.vsdx.geometry.MoveTo)g=null!=h.x?h.x:0,p=null!=h.y?h.y:0;else if(null!=h&&h instanceof c.mxgraph.io.vsdx.geometry.LineTo){var l=null!=h.x?h.x:0,h=null!=h.y?h.y:0,m=new mxPoint(l,h);0!==d&&(d=(360-d)*Math.PI/180,this.rotatedPoint(m,Math.cos(d),Math.sin(d)));l=(m.x-g)*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();l+=a.x;h=(m.y-p)*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;h+=a.y;l=Math.round(100*l)/100;h=Math.round(100*h)/100;m.x=
|
||||
l;m.y=h;0<b.push(m)}}}return b};f.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),d={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},g=d.str.length,p;p=this.processGeo(b,a,d,-1,!0);p=this.processGeo(b,a,d,p,!1);if(d.str.length===g)return"";this.closePath(d,p);d.str=d.str.concat("</foreground></shape>");return d.str};f.prototype.processGeo=function(b,a,d,g,p){for(var c=0;c<this.geomList.length;c++){var f=this.geomList[c];if(p!==f.isNoFill()){var y=f.getPathXML(a,
|
||||
b);0!==y.length&&(f=this.getGeoStyle(f),-1===g?d.str=d.str.concat("<path>"):g!==f&&(this.closePath(d,g),d.str=d.str.concat("<path>")),d.str=d.str.concat(y),g=f)}}return g};f.prototype.getGeoStyle=function(b){var a=0;b.isNoLine()||b.isNoFill()?b.isNoFill()?b.isNoLine()||(a=3):a=2:a=1;return a};f.prototype.closePath=function(b,a){b.str=b.str.concat("</path>");1===a?b.str=b.str.concat("<fillstroke/>"):2===a?b.str=b.str.concat("<fill/>"):3===a&&(b.str=b.str.concat("<stroke/>"))};return f}();l.mxVsdxGeometryList=
|
||||
!a.isNoLine())return!1}return!0};f.prototype.hasGeom=function(){return 0!=this.geomList.length};f.prototype.getGeoCount=function(){for(var b=0,a=0;a<this.geomList.length;a++)this.geomList[a].isNoShow()||b++;return b};f.prototype.rotatedPoint=function(b,a,d){var g=b.y*a+b.x*d;b.x=b.x*a-b.y*d;b.y=g};f.prototype.getRoutingPoints=function(b,a,d){this.sort();b=[];0<b.push(a.clone());for(var g=0,p=0,f=0;f<this.geomList.length;f++){var E=this.geomList[f];if(!E.isNoShow())for(var E=E.getRows(),x=0;x<E.length;x++){var h=
|
||||
E[x];if(0==x&&null!=h&&h instanceof c.mxgraph.io.vsdx.geometry.MoveTo)g=null!=h.x?h.x:0,p=null!=h.y?h.y:0;else if(null!=h&&h instanceof c.mxgraph.io.vsdx.geometry.LineTo){var l=null!=h.x?h.x:0,h=null!=h.y?h.y:0,m=new mxPoint(l,h);0!==d&&(d=(360-d)*Math.PI/180,this.rotatedPoint(m,Math.cos(d),Math.sin(d)));l=(m.x-g)*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();l+=a.x;h=(m.y-p)*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$()*-1;h+=a.y;l=Math.round(100*l)/100;h=Math.round(100*h)/100;m.x=
|
||||
l;m.y=h;0<b.push(m)}}}return b};f.prototype.getShapeXML=function(b){var a=new mxPoint(0,0),d={str:'<shape strokewidth="inherit"><foreground>',toString:function(){return this.str}},g=d.str.length,p;p=this.processGeo(b,a,d,-1,!0);p=this.processGeo(b,a,d,p,!1);if(d.str.length===g)return"";this.closePath(d,p);d.str=d.str.concat("</foreground></shape>");return d.str};f.prototype.processGeo=function(b,a,d,g,p){for(var c=0;c<this.geomList.length;c++){var f=this.geomList[c];if(p!==f.isNoFill()){var x=f.getPathXML(a,
|
||||
b);0!==x.length&&(f=this.getGeoStyle(f),-1===g?d.str=d.str.concat("<path>"):g!==f&&(this.closePath(d,g),d.str=d.str.concat("<path>")),d.str=d.str.concat(x),g=f)}}return g};f.prototype.getGeoStyle=function(b){var a=0;b.isNoLine()||b.isNoFill()?b.isNoFill()?b.isNoLine()||(a=3):a=2:a=1;return a};f.prototype.closePath=function(b,a){b.str=b.str.concat("</path>");1===a?b.str=b.str.concat("<fillstroke/>"):2===a?b.str=b.str.concat("<fill/>"):3===a&&(b.str=b.str.concat("<stroke/>"))};return f}();l.mxVsdxGeometryList=
|
||||
h;h.__class="com.mxgraph.io.vsdx.mxVsdxGeometryList";(function(c){var b=function(){function a(a){this.__parent=a}a.prototype.compare=function(a,b){return a.getIndex()-b.getIndex()};return a}();c.mxVsdxGeometryList$0=b;b.__interfaces=["java.util.Comparator"]})(h=l.mxVsdxGeometryList||(l.mxVsdxGeometryList={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.masterShape=this.Id=null;this.childShapes={};this.master=b;this.Id=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID)||"";this.processMasterShapes(a)}f.prototype.processMasterShapes=function(b){for(var a=this.master.firstChild;null!=a;){if(null!=a&&1==a.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(a.nodeName,"Rel")){var d=b.getRelationship(a.getAttribute("r:id"),c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+
|
||||
"/masters/_rels/masters.xml.rels"),g=d.getAttribute("Target"),d=d.getAttribute("Type"),p=null;null!=d&&function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(d,"master")&&(p=b.getXmlDoc(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/masters/"+g));if(null!=p)for(g=p.firstChild;null!=g;){if(null!=g&&1==g.nodeType&&function(a,b){return a&&a.equals?a.equals(b):a===b}(g.nodeName,"MasterContents")){this.processMasterShape(g,b);break}g=g.nextSibling}}else if(1==a.nodeType&&"PageSheet"==
|
||||
|
@ -653,7 +654,7 @@ this)};f.prototype.getPropertiesManager=function(){return this.pm};f.prototype.s
|
|||
"com.mxgraph.io.vsdx.mxVsdxModel"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.pageName=this.Id=null;this.__isBackground=!1;this.pageSheet=this.backPage=this.backPageId=null;this.shapes={};this.connects={};this.cellElements={};this.model=a;this.pageElement=b;this.layers=[];var d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.BACKGROUND),g;if(g=null!=d)g=c.mxgraph.io.vsdx.mxVsdxConstants.TRUE,g=d&&d.equals?d.equals(g):d===g;this.__isBackground=g?!0:!1;d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.BACK_PAGE);
|
||||
!this.__isBackground&&null!=d&&0<d.length&&(this.backPageId=parseFloat(d));this.Id=parseFloat(b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID));this.pageName=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.NAME)||"";d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(b,"PageSheet");if(0<d.length){d=d[0];g=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell");for(var p=0;p<g.length;p++){var f=g[p],h=f.getAttribute("N");this.cellElements[h]=f}d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,
|
||||
"Section");for(g=0;g<d.length;g++)if(p=d[g],h=p.getAttribute("N"),"Layer"==h)for(h=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"Row"),p=0;p<h.length;p++){for(var f=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(h[p],"Cell"),y={},t=0;t<f.length;t++)y[f[t].getAttribute("N")]=f[t].getAttribute("V");this.layers[parseInt(h[p].getAttribute("IX"))]=y}}this.parseNodes(b,a,"pages")}f.prototype.parseNodes=function(b,a,d){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var g=
|
||||
"Section");for(g=0;g<d.length;g++)if(p=d[g],h=p.getAttribute("N"),"Layer"==h)for(h=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"Row"),p=0;p<h.length;p++){for(var f=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(h[p],"Cell"),x={},t=0;t<f.length;t++)x[f[t].getAttribute("N")]=f[t].getAttribute("V");this.layers[parseInt(h[p].getAttribute("IX"))]=x}}this.parseNodes(b,a,"pages")}f.prototype.parseNodes=function(b,a,d){for(b=b.firstChild;null!=b;){if(null!=b&&1==b.nodeType){var g=
|
||||
b,p=g.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Rel"))this.resolveRel(g,a,d);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Shapes"))this.shapes=this.parseShapes(g,null,!1);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(p,"Connects"))for(g=g.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONNECT),g=null!=g&&0<g.length?g.item(0):null;null!=g;){if(null!=g&&1==g.nodeType){var p=g,f=new c.mxgraph.io.vsdx.mxVsdxConnect(p),h=f.getFromSheet(),
|
||||
h=null!=h&&-1<h?function(a,b){null==a.entries&&(a.entries=[]);for(var d=0;d<a.entries.length;d++)if(null!=a.entries[d].key.equals&&a.entries[d].key.equals(b)||a.entries[d].key===b)return a.entries[d].value;return null}(this.connects,h):null;null!=h?h.addConnect(p):function(a,b,d){null==a.entries&&(a.entries=[]);for(var g=0;g<a.entries.length;g++)if(null!=a.entries[g].key.equals&&a.entries[g].key.equals(b)||a.entries[g].key===b){a.entries[g].value=d;return}a.entries.push({key:b,value:d,getKey:function(){return this.key},
|
||||
getValue:function(){return this.value}})}(this.connects,f.getFromSheet(),f)}g=g.nextSibling}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(p,"PageSheet")&&(this.pageSheet=g)}b=b.nextSibling}};f.prototype.resolveRel=function(b,a,d){d=a.getRelationship(b.getAttribute("r:id"),c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/pages/_rels/"+d+".xml.rels");b=d.getAttribute("Target");d=d.getAttribute("Type");if(function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}((new String(d)).toString(),
|
||||
|
@ -681,7 +682,7 @@ a.equals(b):a===b}(g,"a:fontScheme")?(function(a,b){return a&&a.equals?a.equals(
|
|||
p)}this.isProcessed=!0}};f.prototype.processExtras=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=0;a<b.length;a++){var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(b[a]);switch(d.nodeName){case "vt:fmtConnectorScheme":var g;g=this.name;var p=d.getAttribute("name");g=g&&g.equals?g.equals(p):g===p;g||(this.__isPure=!1);d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d);for(g=0;g<d.length;g++)switch(p=d[g],p.nodeName){case "a:fillStyleLst":for(var p=
|
||||
c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p),f=0;f<p.length;f++)0<this.connFillStyles.push(c.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(p[f]));break;case "a:lnStyleLst":for(p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p),f=0;f<p.length;f++)0<this.connLineStyles.push(new c.mxgraph.io.vsdx.theme.LineStyle(p[f]))}break;case "vt:lineStyles":d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d);for(g=0;g<d.length;g++)switch(p=d[g],p.nodeName){case "vt:fmtConnectorSchemeLineStyles":p=
|
||||
c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p);for(f=0;f<p.length;f++)0<this.connLineStylesExt.push(new c.mxgraph.io.vsdx.theme.LineStyleExt(p[f]));break;case "vt:fmtSchemeLineStyles":for(p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(p),f=0;f<p.length;f++)0<this.lineStylesExt.push(new c.mxgraph.io.vsdx.theme.LineStyleExt(p[f]))}break;case "vt:fontStylesGroup":d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d);for(g=0;g<d.length;g++)switch(p=d[g],p.nodeName){case "vt:connectorFontStyles":this.fillFontStyles(p,
|
||||
this.connFontColors,this.connFontStyles);break;case "vt:fontStyles":this.fillFontStyles(p,this.fontColors,this.fontStyles)}break;case "vt:variationStyleSchemeLst":for(d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),p=g=0;p<d.length;p++){f=d[p];this.variantEmbellishment[g]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"embellishment");for(var f=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),h=0,y=0;y<f.length;y++){var t=f[y];this.variantFillIdx[g][h]=
|
||||
this.connFontColors,this.connFontStyles);break;case "vt:fontStyles":this.fillFontStyles(p,this.fontColors,this.fontStyles)}break;case "vt:variationStyleSchemeLst":for(d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),p=g=0;p<d.length;p++){f=d[p];this.variantEmbellishment[g]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(f,"embellishment");for(var f=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(f),h=0,x=0;x<f.length;x++){var t=f[x];this.variantFillIdx[g][h]=
|
||||
c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"fillIdx");this.variantLineIdx[g][h]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"lineIdx");this.variantEffectIdx[g][h]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"effectIdx");this.variantFontIdx[g][h]=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(t,"fontIdx");h++}g++}}}};f.prototype.fillFontStyles=function(b,a,d){b=
|
||||
c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var g=0;g<b.length;g++){var p=b[g];0<d.push(c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"style"));p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p);null!=p&&0<a.push(c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(p)))}};f.prototype.processFormats=function(b){b=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(b);for(var a=
|
||||
0;a<b.length;a++){var d=b[a];switch(d.nodeName){case "a:fillStyleLst":for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),g=0;g<d.length;g++)0<this.fillStyles.push(c.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(d[g]));break;case "a:lnStyleLst":for(d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(d),g=0;g<d.length;g++)0<this.lineStyles.push(new c.mxgraph.io.vsdx.theme.LineStyle(d[g]))}}};f.prototype.processFonts=function(b){};f.prototype.processColors=function(b){for(b=b.firstChild;null!=
|
||||
|
@ -715,18 +716,18 @@ throw Error("invalid overload");};f.prototype.getLineWidth$com_mxgraph_io_vsdx_t
|
|||
b.firstChild;null!=b;b=b.nextSibling)null!=b&&1==b.nodeType&&0<a.push(b);return a};f.getDirectFirstChildElement=function(b){for(b=b.firstChild;null!=b;b=b.nextSibling)if(null!=b&&1==b.nodeType)return b;return null};f.getIntAttr$org_w3c_dom_Element$java_lang_String$int=function(b,a,d){try{var g=b.getAttribute(a);if(null!=g)return parseInt(g)}catch(p){}return d};f.getIntAttr=function(b,a,d){if((null==b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||"number"!==typeof d&&null!==d){if((null==
|
||||
b||1!=b.nodeType)&&null!==b||"string"!==typeof a&&null!==a||void 0!==d)throw Error("invalid overload");return c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(b,a)}return c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,d)};f.getIntAttr$org_w3c_dom_Element$java_lang_String=function(b,a){return f.getIntAttr$org_w3c_dom_Element$java_lang_String$int(b,a,0)};f.getStyleString=function(b,a){for(var d="",g=function(a){var b=0;return{next:function(){return b<
|
||||
a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(function(a){return Object.keys(a).map(function(b){return a[b]})}(b)),p=function(a){var b=0;return{next:function(){return b<a.length?a[b++]:null},hasNext:function(){return b<a.length}}}(Object.keys(b));p.hasNext();){var c=p.next(),f=g.next();if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(c,mxConstants.STYLE_SHAPE)||!function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(b[c]?b[c]:null,"image")&&!function(a,b,d){void 0===
|
||||
d&&(d=0);return a.substr(d,b.length)===b}(b[c]?b[c]:null,"rounded="))try{d=d+c+a}catch(y){console.error("mxVsdxUtils.getStyleString,"+y+",style.length="+d.length+",key.length="+c.length+",asig.length="+a.length)}d=d+f+";"}return d};f.surroundByTags=function(b,a){return"<"+a+">"+b+"</"+a+">"};f.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};f.toInitialCapital=
|
||||
d&&(d=0);return a.substr(d,b.length)===b}(b[c]?b[c]:null,"rounded="))try{d=d+c+a}catch(x){console.error("mxVsdxUtils.getStyleString,"+x+",style.length="+d.length+",key.length="+c.length+",asig.length="+a.length)}d=d+f+";"}return d};f.surroundByTags=function(b,a){return"<"+a+">"+b+"</"+a+">"};f.htmlEntities=function(b){return b.replace(RegExp("&","g"),"&").replace(RegExp('"',"g"),""").replace(RegExp("'","g"),"′").replace(RegExp("<","g"),"<").replace(RegExp(">","g"),">")};f.toInitialCapital=
|
||||
function(b){b=b.split(" ");for(var a="",d=0;d<b.length;d++)var g=b[d],p=g.substring(0,1),g=g.substring(1),p=p.toUpperCase(),a=a+(p+g);return a.substring(0,a.length)};f.toSmallCaps=function(b,a){var d="",g=d;if(a&&a.equals?a.equals(g):a===g)d=b;else for(var g=b.split(""),p=0;p<g.length;p++){var c=g[p];(null==c.charCodeAt?c:c.charCodeAt(0))>=(null=="a".charCodeAt?"a":97)&&(null==c.charCodeAt?c:c.charCodeAt(0))<=(null=="z".charCodeAt?"z":122)?(c=(new String(c)).toString(),c=c.toUpperCase(),d+='<font style="font-size:'+
|
||||
parseFloat(a)/1.28+'px">'+c+"</font>"):d+=c}return d};f.getStyleMap=function(b,a){for(var d={},g=b.split(";"),p=0;p<g.length;p++){var c=g[p],f=c.indexOf(a),h=c.substring(0,f),c=c.substring(f+1);d[h]=c}return d};f.isInsideTriangle=function(b,a,d,g,p,c,f,h){p-=d;c-=g;f-=d;h-=g;g=p*h-f*c;d=(b*(c-h)+a*(f-p)+p*h-f*c)/g;f=(b*h-a*f)/g;b=(a*p-b*c)/g;return 0<d&&1>d&&0<f&&1>f&&0<b&&1>b?!0:!1};return f}();h.screenCoordinatesPerCm=40;h.CENTIMETERS_PER_INCHES=2.54;l.mxVsdxUtils=h;h.__class="com.mxgraph.io.vsdx.mxVsdxUtils"})(m.vsdx||
|
||||
(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(c){(function(c){(function(c){var h=function(){function c(b,a,d,g){this.paraIndex=this.fields=this.charIndices=this.values=null;this.values=[];0<this.values.push(b);this.charIndices=[];0<this.charIndices.push(a);this.fields=[];0<this.fields.push(g);this.paraIndex=d}c.prototype.addText=function(b,a,d){0<this.values.push(b);0<this.charIndices.push(a);0<this.fields.push(d)};c.prototype.getParagraphIndex=function(){return this.paraIndex};c.prototype.getValue=function(b){return this.values[b]};
|
||||
c.prototype.numValues=function(){return this.values.length};c.prototype.getChar=function(b){return this.charIndices[b]};c.prototype.getField=function(b){return this.fields[b]};return c}();c.Paragraph=h;h.__class="com.mxgraph.io.vsdx.Paragraph"})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.elem=b}f.prototype.getIndexedCell=function(b,a){for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.elem,"Row"),g=0;g<d.length;g++){var p=d[g],f=p.getAttribute("IX");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(f,b)||null==b)for(var p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"Cell"),h=0;h<p.length;h++){var y=p[h],f=y.getAttribute("N");if(function(a,b){return a&&
|
||||
a.equals?a.equals(b):a===b}(f,a))return y}}return null};return f}();l.Section=h;h.__class="com.mxgraph.io.vsdx.Section"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(b){this.elem=b}f.prototype.getIndexedCell=function(b,a){for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(this.elem,"Row"),g=0;g<d.length;g++){var p=d[g],f=p.getAttribute("IX");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(f,b)||null==b)for(var p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"Cell"),h=0;h<p.length;h++){var x=p[h],f=x.getAttribute("N");if(function(a,b){return a&&
|
||||
a.equals?a.equals(b):a===b}(f,a))return x}}return null};return f}();l.Section=h;h.__class="com.mxgraph.io.vsdx.Section"})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(c){(function(c){(function(c){var h=function(){function c(b,a){this.pageNumber=0;this.pageNumber=b;this.Id=a}c.prototype.getId=function(){return this.Id};c.prototype.getPageNumber=function(){return this.pageNumber};c.prototype.equals=function(b){return null==b||this.constructor!==b.constructor||this.pageNumber!==b.pageNumber||this.Id!==b.Id?!1:!0};c.prototype.hashCode=function(){return 1E5*this.pageNumber+this.Id};return c}();c.ShapePageId=h;h.__class="com.mxgraph.io.vsdx.ShapePageId"})(c.vsdx||
|
||||
(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(a,b,g){this.blue=this.green=this.red=0;this.gradientClr=null;this.red=a;this.green=b;this.blue=g}b.NONE_$LI$=function(){null==b.NONE&&(b.NONE=new b(-1,-1,-1));return b.NONE};b.prototype.getRed=function(){return this.red};b.prototype.setRed=function(a){this.red=a};b.prototype.getGreen=function(){return this.green};b.prototype.setGreen=function(a){this.green=a};b.prototype.getBlue=function(){return this.blue};
|
||||
b.prototype.setBlue=function(a){this.blue=a};b.prototype.toHsl=function(){var a=this.getRed()/255,b=this.getGreen()/255,g=this.getBlue()/255,p=Math.max(a,Math.max(b,g)),f=Math.min(a,Math.min(b,g)),h=(p+f)/2;if(p===f)a=f=0;else var y=p-f,f=.5<h?y/(2-p-f):y/(p+f),a=(p===a?(b-g)/y+(b<g?6:0):p===b?(g-a)/y+2:(a-b)/y+4)/6;return new c.mxgraph.io.vsdx.theme.HSLColor(a,f,h)};b.prototype.toHsv=function(){var a=this.getRed()/255,b=this.getGreen()/255,g=this.getBlue()/255,p=Math.max(a,Math.max(b,g)),f=Math.min(a,
|
||||
b.prototype.setBlue=function(a){this.blue=a};b.prototype.toHsl=function(){var a=this.getRed()/255,b=this.getGreen()/255,g=this.getBlue()/255,p=Math.max(a,Math.max(b,g)),f=Math.min(a,Math.min(b,g)),h=(p+f)/2;if(p===f)a=f=0;else var x=p-f,f=.5<h?x/(2-p-f):x/(p+f),a=(p===a?(b-g)/x+(b<g?6:0):p===b?(g-a)/x+2:(a-b)/x+4)/6;return new c.mxgraph.io.vsdx.theme.HSLColor(a,f,h)};b.prototype.toHsv=function(){var a=this.getRed()/255,b=this.getGreen()/255,g=this.getBlue()/255,p=Math.max(a,Math.max(b,g)),f=Math.min(a,
|
||||
Math.min(b,g)),h=p-f,a=p===f?0:(p===a?(b-g)/h+(b<g?6:0):p===b?(g-a)/h+2:(a-b)/h+4)/6;return new c.mxgraph.io.vsdx.theme.HSVColor(a,0===p?0:h/p,p)};b.decodeColorHex=function(a){a=parseInt(a,16);return new b(a>>16&255,a>>8&255,a&255)};b.prototype.toHexStr=function(){var a=this.red.toString(16),a=1==a.length?"0"+a:a,b=this.green.toString(16),b=1==b.length?"0"+b:b,g=this.blue.toString(16),g=1==g.length?"0"+g:g;return"#"+a+b+g};b.prototype.getGradientClr=function(){return this.gradientClr};b.prototype.setGradientClr=
|
||||
function(a){this.gradientClr=a};return b}();h.Color=f;f.__class="com.mxgraph.io.vsdx.theme.Color"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getFillStyle=function(a){var b=null;switch(a.nodeName){case "a:solidFill":b=new c.mxgraph.io.vsdx.theme.SolidFillStyle(c.mxgraph.io.vsdx.theme.OoxmlColorFactory.getOoxmlColor(c.mxgraph.io.vsdx.mxVsdxUtils.getDirectFirstChildElement(a)));break;case "a:noFill":b=new c.mxgraph.io.vsdx.theme.NoFillStyle;break;case "a:gradFill":b=new c.mxgraph.io.vsdx.theme.GradFill(a)}return b};return b}();h.FillStyleFactory=
|
||||
|
@ -745,7 +746,7 @@ this.isBevelJoin=this.isRoundJoin=!1;this.lineWidth=0;this.headEndType=this.fill
|
|||
a.getAttribute("cmpd");if(null!=d)switch(d){case "sng":this.lineComp=b.CompoundLineType.SINGLE;break;case "dbl":this.lineComp=b.CompoundLineType.DOUBLE;break;case "thickThin":this.lineComp=b.CompoundLineType.THICK_THIN_DOUBLE;break;case "thinThick":this.lineComp=b.CompoundLineType.THIN_THICK_DOUBLE;break;case "tri":this.lineComp=b.CompoundLineType.THIN_THICK_THIN_TRIPLE}for(var d=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a),g=0;g<d.length;g++){var p=d[g];switch(p.nodeName){case "a:noFill":case "a:solidFill":case "a:gradFill":case "a:pattFill":this.fillStyle=
|
||||
c.mxgraph.io.vsdx.theme.FillStyleFactory.getFillStyle(p);break;case "a:prstDash":p=p.getAttribute("val");this.isLineDashed=!0;switch(p){case "solid":this.isLineDashed=!1;break;case "sysDot":case "dot":0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "lgDash":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);break;case "sysDashDot":case "dashDot":0<this.lineDashPattern.push(8);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);
|
||||
break;case "lgDashDot":0<this.lineDashPattern.push(12);0<this.lineDashPattern.push(4);0<this.lineDashPattern.push(1);0<this.lineDashPattern.push(4);break;case "sysDashDotDot":case "lgDashDotDot":0<this.lineDashPattern.push(12),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4),0<this.lineDashPattern.push(1),0<this.lineDashPattern.push(4)}break;case "a:custDash":this.isLineDashed=!0;for(var p=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(p,"a:ds"),
|
||||
f=0;f<p.length;f++){var h=p[f],y=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(h,"d"),h=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(h,"sp");0<this.lineDashPattern.push(y/1E4);0<this.lineDashPattern.push(h/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType=
|
||||
f=0;f<p.length;f++){var h=p[f],x=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(h,"d"),h=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(h,"sp");0<this.lineDashPattern.push(x/1E4);0<this.lineDashPattern.push(h/1E4)}break;case "a:round":this.isRoundJoin=!0;break;case "a:bevel":this.isBevelJoin=!0;break;case "a:miter":c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"lim");this.isMiterJoin=!0;break;case "a:headEnd":this.headEndType=
|
||||
this.getLineEndType(p);this.headEndWidth=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"w");this.headEndLen=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"len");break;case "a:tailEnd":this.tailEndType=this.getLineEndType(p),this.tailEndWidth=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"w"),this.tailEndLen=c.mxgraph.io.vsdx.mxVsdxUtils.getIntAttr$org_w3c_dom_Element$java_lang_String(p,"len")}}}else if(void 0===
|
||||
a)Array.prototype.slice.call(arguments),this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0,this.isLineDashed=!1,this.lineDashPattern=[],this.isMiterJoin=this.isBevelJoin=this.isRoundJoin=!1,this.lineWidth=0,this.headEndType=this.fillStyle=this.lineComp=this.lineCap=null,this.headEndLen=this.headEndWidth=0,this.tailEndType=null,this.tailEndLen=this.tailEndWidth=0;else throw Error("invalid overload");
|
||||
}b.prototype.getLineEndType=function(a){var d=null;switch(a.getAttribute("type")){case "none":d=b.LineEndType.NONE;break;case "triangle":d=b.LineEndType.TRIANGLE;break;case "stealth":d=b.LineEndType.STEALTH;break;case "diamond":d=b.LineEndType.DIAMOND;break;case "oval":d=b.LineEndType.OVAL;break;case "arrow":d=b.LineEndType.ARROW}return d};b.prototype.getLineColor=function(a,b){return null!=this.fillStyle?this.fillStyle.applyStyle(a,b):b.getDefaultLineClr()};b.prototype.isDashed=function(){return this.isLineDashed};
|
||||
|
@ -766,8 +767,8 @@ function(a){this.blueOff=a;this.hasEffects=!0};b.prototype.setBlueMod=function(a
|
|||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(){function b(){}b.getOoxmlColor=function(a){var b=null;switch(a.nodeName){case "a:scrgbClr":b=new c.mxgraph.io.vsdx.theme.ScrgbClr(parseInt(a.getAttribute("r")),parseInt(a.getAttribute("g")),parseInt(a.getAttribute("b")));break;case "a:srgbClr":b=new c.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"));break;case "a:hslClr":b=new c.mxgraph.io.vsdx.theme.HslClr(parseInt(a.getAttribute("hue")),parseInt(a.getAttribute("sat")),
|
||||
parseInt(a.getAttribute("lum")));break;case "a:sysClr":b=new c.mxgraph.io.vsdx.theme.SysClr(a.getAttribute("val"),a.getAttribute("lastClr"));break;case "a:schemeClr":b=new c.mxgraph.io.vsdx.theme.SchemeClr(a.getAttribute("val"));break;case "a:prstClr":b=new c.mxgraph.io.vsdx.theme.SrgbClr(a.getAttribute("val"))}a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildElements(a);for(var g=0;g<a.length;g++){var p=a[g],f=parseInt(p.getAttribute("val"))/1E3|0;switch(p.nodeName){case "a:tint":b.setTint(f);break;
|
||||
case "a:shade":b.setShade(f);break;case "a:satMod":b.setSatMod(f);break;case "a:lumMod":b.setLumMod(f);break;case "a:hueMod":b.setHueMod(f)}}return b};return b}();h.OoxmlColorFactory=f;f.__class="com.mxgraph.io.vsdx.theme.OoxmlColorFactory"})(l.theme||(l.theme={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a,b,g,c,f,h,y,t,l,m){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=b;this.quickStyleFillMatrix=g;this.quickStyleFontColor=c;this.quickStyleFontMatrix=f;this.quickStyleLineColor=
|
||||
h;this.quickStyleLineMatrix=y;this.quickStyleShadowColor=t;this.quickStyleType=l;this.quickStyleVariation=m}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix};
|
||||
(function(c){(function(c){(function(c){(function(c){(function(c){var f=function(){function b(a,b,g,c,f,h,x,t,l,m){this.quickStyleVariation=this.quickStyleType=this.quickStyleShadowColor=this.quickStyleLineColor=this.quickStyleFontMatrix=this.quickStyleFontColor=this.quickStyleFillMatrix=this.quickStyleFillColor=this.quickStyleEffectsMatrix=0;this.quickStyleEffectsMatrix=a;this.quickStyleFillColor=b;this.quickStyleFillMatrix=g;this.quickStyleFontColor=c;this.quickStyleFontMatrix=f;this.quickStyleLineColor=
|
||||
h;this.quickStyleLineMatrix=x;this.quickStyleShadowColor=t;this.quickStyleType=l;this.quickStyleVariation=m}b.prototype.getQuickStyleEffectsMatrix=function(){return this.quickStyleEffectsMatrix};b.prototype.getQuickStyleFillColor=function(){return this.quickStyleFillColor};b.prototype.getQuickStyleFillMatrix=function(){return this.quickStyleFillMatrix};b.prototype.getQuickStyleFontColor=function(){return this.quickStyleFontColor};b.prototype.getQuickStyleFontMatrix=function(){return this.quickStyleFontMatrix};
|
||||
b.prototype.getQuickStyleLineColor=function(){return this.quickStyleLineColor};b.prototype.getQuickStyleLineMatrix=function(){return this.quickStyleLineMatrix};b.prototype.getQuickStyleShadowColor=function(){return this.quickStyleShadowColor};b.prototype.getQuickStyleType=function(){return this.quickStyleType};b.prototype.getQuickStyleVariation=function(){return this.quickStyleVariation};b.prototype.setQuickStyleEffectsMatrix=function(a){this.quickStyleEffectsMatrix=a};b.prototype.setQuickStyleFillColor=
|
||||
function(a){this.quickStyleFillColor=a};b.prototype.setQuickStyleFillMatrix=function(a){this.quickStyleFillMatrix=a};b.prototype.setQuickStyleFontColor=function(a){this.quickStyleFontColor=a};b.prototype.setQuickStyleFontMatrix=function(a){this.quickStyleFontMatrix=a};b.prototype.setQuickStyleLineColor=function(a){this.quickStyleLineColor=a};b.prototype.setQuickStyleLineMatrix=function(a){this.quickStyleLineMatrix=a};b.prototype.setQuickStyleShadowColor=function(a){this.quickStyleShadowColor=a};b.prototype.setQuickStyleType=
|
||||
function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a){this.quickStyleVariation=a};return b}();c.QuickStyleVals=f;f.__class="com.mxgraph.io.vsdx.theme.QuickStyleVals"})(c.theme||(c.theme={}))})(c.vsdx||(c.vsdx={}))})(c.io||(c.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
|
@ -779,23 +780,23 @@ function(a){this.quickStyleType=a};b.prototype.setQuickStyleVariation=function(a
|
|||
c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),f=Math.abs(t-f),h=Math.abs(l-h),f=h=.5*m+(f*f+h*h)/(8*m),w=Math.abs(h),h=Math.round(100*h/g*100)/100,f=Math.round(100*f/d*100)/100,t=Math.round(100*t/g*100)/100,l=Math.round(100*l/d*100)/100,m=Math.round(100*m)/100,h=Math.abs(h),f=Math.abs(f),d=0>m?"1":"0",m=w<Math.abs(m)?"1":"0";b.setLastX(t);b.setLastY(l);return'<arc rx="'+(new String(h)).toString()+'" ry="'+(new String(f)).toString()+'" x="'+(new String(t)).toString()+'" y="'+(new String(l)).toString()+
|
||||
'" x-axis-rotation="0" large-arc-flag="'+m+'" sweep-flag="'+d+'"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.ArcTo=f;f.__class="com.mxgraph.io.vsdx.geometry.ArcTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a){return b.call(this,a,null,null)||this}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.DelRow=f;f.__class="com.mxgraph.io.vsdx.geometry.DelRow"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,y,t){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=y;a.d=t;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),g=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=d-h,t=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,x,t){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=x;a.d=t;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),g=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=d-h,t=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
||||
l=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=d-l,m=this.c*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),w=this.d*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),t=Math.abs(t-f),l=Math.abs(l-h),l=Math.sqrt(t*t+l*l),m=Math.abs(m-f),w=Math.abs(d-w-h),f=100*f/g,w=Math.round(100*Math.sqrt(m*m+w*w)/d/2*100)/100,g=Math.round(100*l/g/2*100)/100,m=Math.round(100*(f-2*g))/100,f=Math.round(100*(f+2*g))/100,d=Math.round(100*h/d*100)/100;return'<move x="'+(new String(m)).toString()+
|
||||
'" y="'+(new String(d)).toString()+'"/><arc rx="'+(new String(g)).toString()+'" ry="'+(new String(w)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/><arc rx="'+(new String(g)).toString()+'" ry="'+(new String(w)).toString()+'" x="'+(new String(m)).toString()+'" y="'+(new String(d)).toString()+'" x-axis-rotation="0" large-arc-flag="1" sweep-flag="0"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.Ellipse=
|
||||
f;f.__class="com.mxgraph.io.vsdx.geometry.Ellipse"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,y,l){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=y;a.d=l;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),g=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=d-h,l=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,x,l){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=x;a.d=l;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){var d=b.getHeight(),g=b.getWidth(),f=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),h=d-h,l=this.a*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),
|
||||
m=this.b*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),w=this.c,I=this.d,f=100*f/g,h=100*h/d,C=b.getLastX()*g/100,A=b.getLastY()*d/100,F=f*g/100,B=h*d/100,Y=d-m,J=-w,w=Math.sqrt(C*C+A*A)*Math.cos(Math.atan2(A,C)-J),m=Math.sqrt(C*C+A*A)*Math.sin(Math.atan2(A,C)-J),X=Math.sqrt(F*F+B*B)*Math.cos(Math.atan2(B,F)-J),M=Math.sqrt(F*F+B*B)*Math.sin(Math.atan2(B,F)-J),fa=Math.sqrt(l*l+Y*Y)*Math.cos(Math.atan2(Y,l)-J),ga=Math.sqrt(l*l+Y*Y)*Math.sin(Math.atan2(Y,l)-J),db=((w-X)*(w+X)*(M-ga)-(X-fa)*(X+
|
||||
fa)*(m-M)+I*I*(m-M)*(M-ga)*(m-ga))/(2*((w-X)*(M-ga)-(X-fa)*(m-M))),Aa=((w-X)*(X-fa)*(w-fa)/(I*I)+(X-fa)*(m-M)*(m+M)-(w-X)*(M-ga)*(M+ga))/(2*((X-fa)*(m-M)-(w-X)*(M-ga))),ca=w-db,Ga=m-Aa,ca=Math.sqrt(ca*ca+Ga*Ga*I*I),I=ca/I,J=180*J/Math.PI,f=Math.round(100*f)/100,h=Math.round(100*h)/100,ca=Math.round(100*ca/g*100)/100,I=Math.round(100*I/d*100)/100,J=Math.round(100*J)/100,d=0<(F-C)*(Y-A)-(B-A)*(l-C)?"0":"1",g="0";c.mxgraph.io.vsdx.mxVsdxUtils.isInsideTriangle(db,Aa,w,m,X,M,fa,ga)&&this.isReflexAngle(db,
|
||||
Aa,w,m,X,M,fa,ga)&&(g="1");b.setLastX(f);b.setLastY(h);return'<arc rx="'+(new String(ca)).toString()+'" ry="'+(new String(I)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(h)).toString()+'" x-axis-rotation="'+(new String(J)).toString()+'" large-arc-flag="'+g+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,f,h,y,l,m){c-=a;f-=b;y-=b;h=l-a;m-=b;b=a=0;c=180*(Math.atan2(f,c)-Math.atan2(b,a))/Math.PI;h=180*(Math.atan2(y,h)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(m,
|
||||
Aa,w,m,X,M,fa,ga)&&(g="1");b.setLastX(f);b.setLastY(h);return'<arc rx="'+(new String(ca)).toString()+'" ry="'+(new String(I)).toString()+'" x="'+(new String(f)).toString()+'" y="'+(new String(h)).toString()+'" x-axis-rotation="'+(new String(J)).toString()+'" large-arc-flag="'+g+'" sweep-flag="'+d+'"/>'}return""};a.prototype.isReflexAngle=function(a,b,c,f,h,x,l,m){c-=a;f-=b;x-=b;h=l-a;m-=b;b=a=0;c=180*(Math.atan2(f,c)-Math.atan2(b,a))/Math.PI;h=180*(Math.atan2(x,h)-Math.atan2(b,a))/Math.PI;a=180*(Math.atan2(m,
|
||||
l)-Math.atan2(b,a))/Math.PI;c=(c-a)%360;h=(h-a)%360;180<c?c-=360:-180>c&&(c+=360);180<h?h-=360:-180>h&&(h+=360);return(0<c&&0>h||0>c&&0<h)&&180<Math.abs(c-h)?!0:!1};return a}(c.mxgraph.io.vsdx.geometry.Row);h.EllipticalArcTo=f;f.__class="com.mxgraph.io.vsdx.geometry.EllipticalArcTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;return a}__extends(a,b);a.prototype.handle=function(a,b){return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.InfiniteLine=f;f.__class="com.mxgraph.io.vsdx.geometry.InfiniteLine"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c){return b.call(this,a,g,c)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,g=a.y,f=b.getHeight(),h=b.getWidth();null!=this.x&&null!=this.y&&(d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());d=Math.round(100*d/h*100)/100;g=Math.round(100*(100-100*g/f))/100;a.x=d;a.y=g;b.setLastX(d);b.setLastY(g);return'<line x="'+
|
||||
(new String(d)).toString()+'" y="'+(new String(g)).toString()+'"/>'};return a}(c.mxgraph.io.vsdx.geometry.Row);h.LineTo=f;f.__class="com.mxgraph.io.vsdx.geometry.LineTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c){return b.call(this,a,g,c)||this}__extends(a,b);a.prototype.handle=function(a,b){var d=a.x,g=a.y,f=b.getHeight(),h=b.getWidth();null!=this.x&&null!=this.y&&(d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$());d=Math.round(100*d/h*100)/100;g=Math.round(100*(100-100*g/f))/100;a.x=d;a.y=g;b.setLastX(d);b.setLastY(g);b.setLastMoveX(d);
|
||||
b.setLastMoveY(g);return'<move x="'+(new String(d)).toString()+'" y="'+(new String(g)).toString()+'"/>'};return a}(c.mxgraph.io.vsdx.geometry.Row);h.MoveTo=f;f.__class="com.mxgraph.io.vsdx.geometry.MoveTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,y,l,m){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=y;a.d=l;a.formulaE=m;return a}__extends(a,b);a.prototype.handle=function(b,g){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var d=g.getHeight(),f=g.getWidth(),h=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),t=this.formulaE.split("NURBS(").join(""),t=t.split(")").join(""),
|
||||
t=new a.Nurbs(this,t,f,d);if(2<=t.getSize()){var m=t.getX(0),w=t.getY(0),I=t.getX(1),C=t.getY(1),h=Math.round(100*h/f*100)/100,l=Math.round(100*(100-100*l/d))/100,m=Math.round(100*m)/100,w=Math.round(100*w)/100,I=Math.round(100*I)/100,C=Math.round(100*C)/100;g.setLastX(h);g.setLastY(l);if(3===t.getDegree()&&t.isOrderedByThree(this.getA())){d=[];f=[];m=[];I=t.getSize();for(w=0;w<I-1;w+=3)0<d.push(new mxPoint(t.getX(w),t.getY(w))),0<f.push(new mxPoint(t.getX(w+1),t.getY(w+1))),w<I-2?0<m.push(new mxPoint(t.getX(w+
|
||||
2),t.getY(w+2))):0<m.push(new mxPoint(h,l));h="";for(w=0;w<d.length;w++)h+='<curve x1="'+d[w].x+'" y1="'+d[w].y+'" x2="'+f[w].x+'" y2="'+f[w].y+'" x3="'+m[w].x+'" y3="'+m[w].y+'"/>\n';return h}return'<curve x1="'+(new String(m)).toString()+'" y1="'+(new String(w)).toString()+'" x2="'+(new String(I)).toString()+'" y2="'+(new String(C)).toString()+'" x3="'+(new String(h)).toString()+'" y3="'+(new String(l)).toString()+'"/>'}}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.NURBSTo=f;f.__class=
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,x,l,m){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=x;a.d=l;a.formulaE=m;return a}__extends(a,b);a.prototype.handle=function(b,g){if(null!=this.x&&null!=this.y&&null!=this.formulaE){var d=g.getHeight(),f=g.getWidth(),h=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),x=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),l=this.formulaE.split("NURBS(").join(""),l=l.split(")").join(""),
|
||||
l=new a.Nurbs(this,l,f,d);if(2<=l.getSize()){var m=l.getX(0),w=l.getY(0),I=l.getX(1),C=l.getY(1),h=Math.round(100*h/f*100)/100,x=Math.round(100*(100-100*x/d))/100,m=Math.round(100*m)/100,w=Math.round(100*w)/100,I=Math.round(100*I)/100,C=Math.round(100*C)/100;g.setLastX(h);g.setLastY(x);if(3===l.getDegree()&&l.isOrderedByThree(this.getA())){d=[];f=[];m=[];I=l.getSize();for(w=0;w<I-1;w+=3)0<d.push(new mxPoint(l.getX(w),l.getY(w))),0<f.push(new mxPoint(l.getX(w+1),l.getY(w+1))),w<I-2?0<m.push(new mxPoint(l.getX(w+
|
||||
2),l.getY(w+2))):0<m.push(new mxPoint(h,x));h="";for(w=0;w<d.length;w++)h+='<curve x1="'+d[w].x+'" y1="'+d[w].y+'" x2="'+f[w].x+'" y2="'+f[w].y+'" x3="'+m[w].x+'" y3="'+m[w].y+'"/>\n';return h}return'<curve x1="'+(new String(m)).toString()+'" y1="'+(new String(w)).toString()+'" x2="'+(new String(I)).toString()+'" y2="'+(new String(C)).toString()+'" x3="'+(new String(h)).toString()+'" y3="'+(new String(x)).toString()+'"/>'}}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.NURBSTo=f;f.__class=
|
||||
"com.mxgraph.io.vsdx.geometry.NURBSTo";(function(b){var a=function(){function a(a,b,d,c){this.__parent=a;this.nurbsValues=[];a=b.split(/\s*,\s*/).slice(0);for(b=0;b<a.length;b++)3<b&&0===b%4?0<this.nurbsValues.push(100*parseFloat(a[b])):3<b&&1===b%4?0<this.nurbsValues.push(100-100*parseFloat(a[b])):0<this.nurbsValues.push(parseFloat(a[b]))}a.prototype.isOrderedByThree=function(a){for(var b=0;b+2<this.getSize();b+=3){var d=Math.round(100*this.getKnot(b))/100,g=Math.round(100*this.getKnot(b+1))/100,
|
||||
c=Math.round(100*this.getKnot(b+2))/100;if(d!==g||d!==c||g!==c)return!1}b=Math.round(10*this.getKnot(this.getSize()-2))/10;d=Math.round(10*this.getKnot(this.getSize()-1))/10;a=Math.round(10*a)/10;return b!==d||b!==a||d!==a?!1:!0};a.prototype.getSize=function(){return(this.nurbsValues.length/4|0)-1};a.prototype.getKnotLast=function(){return this.nurbsValues[0]};a.prototype.getDegree=function(){return this.nurbsValues[1]};a.prototype.getXType=function(){return this.nurbsValues[2]};a.prototype.getYType=
|
||||
function(){return this.nurbsValues[3]};a.prototype.getX=function(a){return this.nurbsValues[4*(a+1)]};a.prototype.getY=function(a){return this.nurbsValues[4*(a+1)+1]};a.prototype.getKnot=function(a){return this.nurbsValues[4*(a+1)+2]};a.prototype.getWeight=function(a){return this.nurbsValues[4*(a+1)+3]};return a}();b.Nurbs=a;a.__class="com.mxgraph.io.vsdx.geometry.NURBSTo.Nurbs"})(f=h.NURBSTo||(h.NURBSTo={}))})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph=
|
||||
|
@ -815,7 +816,7 @@ h.RelMoveTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelMoveTo"})(l.geometry||(
|
|||
(new String(f)).toString()+'" x2="'+(new String(d)).toString()+'" y2="'+(new String(g)).toString()+'"/>'}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.RelQuadBezTo=f;f.__class="com.mxgraph.io.vsdx.geometry.RelQuadBezTo"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f){a=b.call(this,a,g,c)||this;a.a=f;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a){var d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),d=Math.round(100*d)/100,g=Math.round(100*(100-g))/100;b.setLastX(d);b.setLastY(g)}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);
|
||||
h.SplineKnot=f;f.__class="com.mxgraph.io.vsdx.geometry.SplineKnot"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,l,t){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=l;a.d=t;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){b.getHeight();b.getWidth();var d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();b.setLastKnot(this.c);d=Math.round(100*d)/
|
||||
(function(c){(function(m){(function(m){(function(l){(function(h){var f=function(b){function a(a,g,c,f,h,l,m){a=b.call(this,a,g,c)||this;a.a=f;a.b=h;a.c=l;a.d=m;return a}__extends(a,b);a.prototype.handle=function(a,b){if(null!=this.x&&null!=this.y&&null!=this.a&&null!=this.b&&null!=this.c&&null!=this.d){b.getHeight();b.getWidth();var d=this.x*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$(),g=this.y*c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();b.setLastKnot(this.c);d=Math.round(100*d)/
|
||||
100;g=Math.round(100*(100-g))/100;b.getLastX();b.getLastY();b.setLastX(d);b.setLastY(g);return"<curve "}return""};return a}(c.mxgraph.io.vsdx.geometry.Row);h.SplineStart=f;f.__class="com.mxgraph.io.vsdx.geometry.SplineStart"})(l.geometry||(l.geometry={}))})(m.vsdx||(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){(function(l){var h=function(){function f(b,a){this.cellElements={};this.sections={};this.styleParents={};this.style=this.pm=this.Id=this.shape=null;this.shape=b;this.pm=a.getPropertiesManager();var d=b.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.ID);try{this.Id=null!=d&&0!==d.length?parseFloat(d):-1}catch(g){this.Id=-1}this.cacheCells(a);this.stylesheetRefs(a)}f.__static_initialize=function(){f.__static_initialized||(f.__static_initialized=!0,f.__static_initializer_0(),
|
||||
f.__static_initializer_1())};f.styleTypes_$LI$=function(){f.__static_initialize();null==f.styleTypes&&(f.styleTypes={});return f.styleTypes};f.__static_initializer_0=function(){f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;f.styleTypes_$LI$()[c.mxgraph.io.vsdx.mxVsdxConstants.FILL_BKGND_TRANS]=c.mxgraph.io.vsdx.mxVsdxConstants.FILL_STYLE;
|
||||
|
@ -874,13 +875,13 @@ b){return a[b]?a[b]:null}(d.cellElements,c.mxgraph.io.vsdx.mxVsdxConstants.WIDTH
|
|||
b.UNICODE_LINE_SEP=String.fromCharCode(8232));return b.UNICODE_LINE_SEP};b.prototype.setThemeAndVariant=function(a,b){this.theme=a;this.themeVariant=b};b.prototype.getTheme=function(){null!=this.theme&&this.theme.setVariant(this.themeVariant);return this.theme};b.prototype.getQuickStyleVals=function(){return this.quickStyleVals};b.prototype.processGeomList=function(a){if(!this.geomListProcessed){this.geomList=new c.mxgraph.io.vsdx.mxVsdxGeometryList(a);if(null!=this.geom)for(a=0;a<this.geom.length;a++)this.geomList.addGeometry(this.geom[a]);
|
||||
this.geomListProcessed=!0}};b.prototype.parseShapeElem=function(a,d){f.prototype.parseShapeElem.call(this,a,d);var g=a.nodeName;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(g,"ForeignData")){var p=a.ownerDocument.vsdxFileName,h=a.getAttribute("ForeignType"),g=a.getAttribute("CompressionType")||"";if(function(a,b){return a&&a.equals?a.equals(b):a===b}(h,"Bitmap"))g=g.toLowerCase();else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(h,"MetaFile"))g="png";else if(function(a,b){return a&&
|
||||
a.equals?a.equals(b):a===b}(h,"Enhanced Metafile")||function(a,b){return a&&a.equals?a.equals(b):a===b}(h,"EnhMetaFile"))g="png";else return;h=a.firstChild;if(null!=h){if(null!=h&&1==h.nodeType){var l=h;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(l.nodeName.toLowerCase(),"rel")&&(l=l.getAttribute("r:id"),null!=l&&0!==l.length)){var h=p.lastIndexOf("/"),m="",t="";try{m=p.substring(0,h),t=p.substring(h,p.length)}catch(z){return}h=d.getRelationship(l,m+"/_rels"+t+".rels");if(null!=h){p=h.getAttribute("Target")||
|
||||
"";l=h.getAttribute("Type");h=p.lastIndexOf("/");try{p=p.substring(h+1,p.length)}catch(z){return}null!=l&&function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(l,"image")&&(this.imageData={},(h=d.getMedia(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+p))?(this.imageData.iData=h,function(a,b){var d=a.length-b.length,c=a.indexOf(b,d);return-1!==c&&c===d}(p.toLowerCase(),".bmp")&&(g="jpg"),this.imageData.iType=g):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}return}}h=
|
||||
"";l=h.getAttribute("Type");h=p.lastIndexOf("/");try{p=p.substring(h+1,p.length)}catch(z){return}null!=l&&function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(l,"image")&&(this.imageData={},(h=d.getMedia(c.mxgraph.io.mxVsdxCodec.vsdxPlaceholder+"/media/"+p))?(this.imageData.iData=h,function(a,b){var d=a.length-b.length,g=a.indexOf(b,d);return-1!==g&&g===d}(p.toLowerCase(),".bmp")&&(g="jpg"),this.imageData.iType=g):(this.imageData.iData=b.ERROR_IMAGE,this.imageData.iType="svg+xml"))}return}}h=
|
||||
h.nextSibling}}else(function(a,b){return a&&a.equals?a.equals(b):a===b})(g,c.mxgraph.io.vsdx.mxVsdxConstants.TEXT)&&(this.text=a)};b.prototype.parseSection=function(a){var d=a.getAttribute("N");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Geometry"))null==this.geom&&(this.geom=[]),0<this.geom.push(a);else if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Field")){a=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(a,"Row");for(var g=0;g<a.length;g++){var d=a[g],p=d.getAttribute("IX")||
|
||||
"";if(0!==p.length)if(null==this.fields&&(this.fields={}),function(a,b){return a&&a.equals?a.equals(b):a===b}("1",d.getAttribute("Del")))this.fields[p]="";else{for(var h=c.mxgraph.io.vsdx.mxVsdxUtils.getDirectChildNamedElements(d,"Cell"),l="",m="",t=0;t<h.length;t++){var z=h[t],d=z.getAttribute("N"),z=z.getAttribute("V");switch(d){case "Value":l=z;break;case "Format":m=z}}if(0!==l.length){try{(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b})(m,"{{")&&(l=(new Date(b.VSDX_START_TIME+
|
||||
Math.floor(864E5*parseFloat(l)))).toString())}catch(aa){}this.fields[p]=l}}}}else f.prototype.parseSection.call(this,a)};b.prototype.parseGeom=function(){return this.hasGeomList()?this.geomList.getShapeXML(this):""};b.prototype.getText=function(){return null!=this.text?this.text.textContent:null};b.prototype.getTextChildren=function(){return null!=this.text?this.text.childNodes:null};b.prototype.getWidth=function(){return 0===this.width&&0<this.height?1:this.width};b.prototype.getHeight=function(){return 0===
|
||||
this.height&&0<this.width?1:this.height};b.prototype.getRotation=function(){return this.rotation};b.prototype.getStyleMap=function(){return this.styleMap};b.prototype.hasGeom=function(){return!(null==this.geom||0==this.geom.length)};b.prototype.hasGeomList=function(){return null!=this.geomList&&this.geomList.hasGeom()};b.prototype.textToList=function(a,b){if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(b,"")){var d=this.getBullet(b);if(!function(a,b){return a&&a.equals?a.equals(b):a===b}(d,
|
||||
"0")){var f=a.split("\n");f[f.length-1]||f.pop();for(var h="",l=0;l<f.length;l++)h+=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(f[l],"li");h=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(h,"ul");f={};(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"4")?f["list-style-type"]="square":f["list-style-type"]="disc";return h=this.insertAttributes(h,f)}}return a};b.prototype.getTextParagraphFormated=function(a){var b="",c={};c.align=this.getHorizontalAlign(this.pp,!0);c["margin-left"]=this.getIndentLeft(this.pp);
|
||||
c["margin-right"]=this.getIndentRight(this.pp);c["margin-top"]=this.getSpBefore(this.pp)+"px";c["margin-bottom"]=this.getSpAfter(this.pp)+"px";c["text-indent"]=this.getIndentFirst(this.pp);c.valign=this.getAlignVertical();c.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,c)};b.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",g="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",h=
|
||||
"0")){var f=a.split("\n");f[f.length-1]||f.pop();for(var h="",l=0;l<f.length;l++)h+=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(f[l],"li");h=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(h,"ul");f={};(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"4")?f["list-style-type"]="square":f["list-style-type"]="disc";return h=this.insertAttributes(h,f)}}return a};b.prototype.getTextParagraphFormated=function(a){var b="",g={};g.align=this.getHorizontalAlign(this.pp,!0);g["margin-left"]=this.getIndentLeft(this.pp);
|
||||
g["margin-right"]=this.getIndentRight(this.pp);g["margin-top"]=this.getSpBefore(this.pp)+"px";g["margin-bottom"]=this.getSpAfter(this.pp)+"px";g["text-indent"]=this.getIndentFirst(this.pp);g.valign=this.getAlignVertical();g.direction=this.getTextDirection(this.pp);return b+=this.insertAttributes(a,g)};b.prototype.getTextCharFormated=function(a){var b="color:"+this.getTextColor(this.cp)+";",g="font-size:"+parseFloat(this.getTextSize(this.cp))+"px;",f="font-family:"+this.getTextFont(this.cp)+";",h=
|
||||
"direction:"+this.getRtlText(this.cp)+";",l="letter-spacing:"+parseFloat(this.getLetterSpace(this.cp))/.71+"px;",m="line-height:"+this.getSpcLine(this.pp),t=";opacity:"+this.getTextOpacity(this.cp),z=this.getTextPos(this.cp),w=this.getTextCase(this.cp);(function(a,b){return a&&a.equals?a.equals(b):a===b})(w,"1")?a=a.toUpperCase():function(a,b){return a&&a.equals?a.equals(b):a===b}(w,"2")&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.toInitialCapital(a));(function(a,b){return a&&a.equals?a.equals(b):a===b})(z,
|
||||
"1")?a=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sup"):function(a,b){return a&&a.equals?a.equals(b):a===b}(z,"2")&&(a=c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"sub"));a=this.isBold(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"b"):a;a=this.isItalic(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"i"):a;a=this.isUnderline(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"u"):a;a=this.getTextStrike(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.surroundByTags(a,"s"):a;
|
||||
a=this.isSmallCaps(this.cp)?c.mxgraph.io.vsdx.mxVsdxUtils.toSmallCaps(a,this.getTextSize(this.cp)):a;return""+('<font style="'+g+f+b+h+l+m+t+'">'+a+"</font>")};b.prototype.getTextDirection=function(a){a=this.getFlags(a);(function(a,b){return a&&a.equals?a.equals(b):a===b})(a,"0")?a="ltr":function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1")&&(a="rtl");return a};b.prototype.getSpcLine=function(a){var b=!1;a=this.getSpLine(a);0<a?a*=c.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$():(a=0===
|
||||
|
@ -968,7 +969,7 @@ f=f.hasAttribute("F")?f.getAttribute("F"):f.textContent);h=a.getGeometry();d=d.s
|
|||
(m=z.split("tabHeight=").join(""))}(function(a,b){return a&&a.equals?a.equals(b):a===b})(m,"")&&(m="20");l=parseFloat(m);d=parseFloat(d);f=parseFloat(f);m=h.height;d=.1*h.width+100*d;d=new mxPoint(d,m-m*f-l/2);a.getGeometry().offset=d}else if(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,"Domain 3D")||function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(f,"Domain 3D")){h=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.CONTROL).item(0);d=null;
|
||||
d="0.0";f=null;f="-0.4";null!=h&&(d=h.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.X).item(0),d=d.getAttribute("F"),f=h.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.Y).item(0),f=f.getAttribute("F"));h=a.getGeometry();d=d.split("Width/2+").join("");d=d.split("DL").join("");f=f.split("Height*").join("");if(function(a,b){return a&&a.equals?a.equals(b):a===b}(d,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(d,""))d="0.0";if(function(a,b){return a&&a.equals?a.equals(b):
|
||||
a===b}(f,"Inh")||function(a,b){return a&&a.equals?a.equals(b):a===b}(f,""))f="-0.4";-1!=f.indexOf("txtHeight")&&(f="-0.4");d=parseFloat(d);f=parseFloat(f);m=h.height;d=.1*h.width+100*d;d=new mxPoint(d,m-m*f);a.getGeometry().offset=d}};b.prototype.getForm=function(){var a={};if(this.isVertex())try{var d=b.getType(this.getShape());this.styleDebug("shape type = "+d);if(null!=this.imageData||function(a,b){return a&&a.equals?a.equals(b):a===b}(c.mxgraph.io.vsdx.mxVsdxConstants.FOREIGN,d)&&null!=this.masterShape&&
|
||||
null!=this.masterShape.imageData){var f=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var h=function(a,b){return a[b]?a[b]:null}(f,"iType"),l=function(a,b){return a[b]?a[b]:null}(f,"iData");a.image="data:image/"+h+","+l;return a}var m=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(m,""))return this.styleDebug("No geom found"),a;var y=Graph.prototype.compress(m);a[mxConstants.STYLE_SHAPE]="stencil("+y+")"}catch(t){console.error(t.message,
|
||||
null!=this.masterShape.imageData){var f=null!=this.imageData?this.imageData:this.masterShape.imageData;a.shape="image";a.aspect="fixed";var h=function(a,b){return a[b]?a[b]:null}(f,"iType"),l=function(a,b){return a[b]?a[b]:null}(f,"iData");a.image="data:image/"+h+","+l;return a}var m=this.parseGeom();if(function(a,b){return a&&a.equals?a.equals(b):a===b}(m,""))return this.styleDebug("No geom found"),a;var x=Graph.prototype.compress(m);a[mxConstants.STYLE_SHAPE]="stencil("+x+")"}catch(t){console.error(t.message,
|
||||
t)}else return this.getEdgeStyle();return a};b.prototype.isOff_page_reference=function(){var a=this.getNameU();return function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Off-page reference")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"Lined/Shaded process")?!0:!1};b.prototype.isExternal_process=function(){var a;a=(a=this.shapeName)&&a.equals?a.equals("External process"):"External process"===a;return a};b.prototype.getDirection=function(a){a=mxResources.get("mxOffset"+this.shapeName);
|
||||
if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0")&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")){if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"1"))return mxConstants.DIRECTION_SOUTH;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"2"))return mxConstants.DIRECTION_WEST;if(function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"3"))return mxConstants.DIRECTION_NORTH}return mxConstants.DIRECTION_EAST};b.prototype.isSubproces=function(){var a;a=
|
||||
(a=this.shapeName)&&a.equals?a.equals("Subproces"):"Subproces"===a;return a};b.prototype.getEdgeStyle$=function(){return{edgeStyle:"none"}};b.prototype.getChildShapes=function(){return this.childShapes};b.prototype.setChildShapes=function(a){this.childShapes=a};b.prototype.isDisplacedLabel=function(){var a=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_X,"F",""),b=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_PIN_Y,"F",""),f=this.getAttribute(c.mxgraph.io.vsdx.mxVsdxConstants.TXT_WIDTH,
|
||||
|
@ -979,7 +980,7 @@ b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(a.toLowerCase(),"control
|
|||
a.equals?a.equals(b):a===b}(a,"0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"0.0")||function(a,b){return a&&a.equals?a.equals(b):a===b}(a,"")?!1:!0};b.prototype.setRootShape=function(a){this.rootShape=a};b.prototype.getRootShape=function(){return this.rootShape};b.prototype.getStartXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_X),0))/100);a=Math.floor(Math.round(100*
|
||||
(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.BEGIN_Y),0)))/100);return new mxPoint(b,a)};b.prototype.getEndXY=function(a){var b=Math.floor(Math.round(100*this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_X),0))/100);a=Math.floor(Math.round(100*(a-this.getScreenNumericalValue$org_w3c_dom_Element$double(this.getCellElement$java_lang_String(c.mxgraph.io.vsdx.mxVsdxConstants.END_Y),
|
||||
0)))/100);return new mxPoint(b,a)};b.prototype.getRoutingPoints=function(a,b,c){return null!=this.geomList?this.geomList.getRoutingPoints(a,b,c):null};b.prototype.getControlPoints=function(a){var b=this.getStartXY(a);a=this.getEndXY(a);var f=[];if(null!=this.shape){var h=this.shape.getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.GEOM);if(0<h.length&&(h=h.item(0).getElementsByTagName(c.mxgraph.io.vsdx.mxVsdxConstants.NURBS_TO).item(0).getElementsByTagName("E").item(0),null!=h)){for(var h=h.getAttribute("F"),
|
||||
h=h.replace(RegExp("NURBS\\(","g"),""),h=h.replace(RegExp("\\)","g"),""),h=h.replace(RegExp(",","g")," "),h=h.replace(RegExp("\\s\\s","g")," "),h=h.split(" "),l=h.length,m=[];0<l--;)m.push(0);for(l=0;l<h.length;l++)m[l]=parseFloat(h[l]);for(l=2;l+4<h.length;l+=4){var y=new mxPoint,t=m[l+3];y.x=Math.floor(Math.round(100*(b.x+Math.min(100,Math.abs(a.x-b.x))*m[l+2]))/100);y.y=Math.floor(Math.round(100*(b.y-100*t))/100);0<f.push(y)}return f}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=
|
||||
h=h.replace(RegExp("NURBS\\(","g"),""),h=h.replace(RegExp("\\)","g"),""),h=h.replace(RegExp(",","g")," "),h=h.replace(RegExp("\\s\\s","g")," "),h=h.split(" "),l=h.length,m=[];0<l--;)m.push(0);for(l=0;l<h.length;l++)m[l]=parseFloat(h[l]);for(l=2;l+4<h.length;l+=4){var x=new mxPoint,t=m[l+3];x.x=Math.floor(Math.round(100*(b.x+Math.min(100,Math.abs(a.x-b.x))*m[l+2]))/100);x.y=Math.floor(Math.round(100*(b.y-100*t))/100);0<f.push(x)}return f}}return null};b.prototype.getStyleFromEdgeShape=function(a){this.styleMap[c.mxgraph.io.vsdx.mxVsdxConstants.VSDX_ID]=
|
||||
this.getId().toString();a=this.getForm();if(null!=a&&!function(a,b){return a&&a.equals?a.equals(b):a===b}(a,""))for(var d in a)this.styleMap[d]=a[d];this.isDashed()&&(this.styleMap[mxConstants.STYLE_DASHED]="1",d=this.getDashPattern(),null!=d&&(this.styleMap[mxConstants.STYLE_DASH_PATTERN]=d));d=this.getEdgeMarker(!0);null!=d&&(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,b.ARROW_NO_FILL_MARKER)&&(d=d.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_STARTFILL]=
|
||||
"0"),this.styleMap[mxConstants.STYLE_STARTARROW]=d);d=this.getEdgeMarker(!1);null!=d&&(function(a,b,d){void 0===d&&(d=0);return a.substr(d,b.length)===b}(d,b.ARROW_NO_FILL_MARKER)&&(d=d.substring(b.ARROW_NO_FILL_MARKER.length),this.styleMap[mxConstants.STYLE_ENDFILL]="0"),this.styleMap[mxConstants.STYLE_ENDARROW]=d);d=Math.round(this.getStartArrowSize())|0;6!==d&&(this.styleMap[mxConstants.STYLE_STARTSIZE]=""+d);d=Math.round(this.getFinalArrowSize())|0;6!==d&&(this.styleMap[mxConstants.STYLE_ENDSIZE]=
|
||||
""+d);d=Math.round(this.getLineWidth())|0;1!==d&&(this.styleMap[mxConstants.STYLE_STROKEWIDTH]=""+d);d=this.getStrokeColor();(function(a,b){return a&&a.equals?a.equals(b):a===b})(d,"")||(this.styleMap[mxConstants.STYLE_STROKECOLOR]=d);this.isShadow()&&(this.styleMap[mxConstants.STYLE_SHADOW]=c.mxgraph.io.vsdx.mxVsdxConstants.TRUE);this.isConnectorBigNameU(this.getNameU())&&(this.styleMap[mxConstants.STYLE_SHAPE]=mxConstants.SHAPE_ARROW,d=this.getFillColor(),function(a,b){return a&&a.equals?a.equals(b):
|
||||
|
@ -997,19 +998,19 @@ b.prototype.getLblEdgeOffset=function(a,b){if(null!=b&&1<b.length){var d=new mxC
|
|||
d)/100),Math.floor(Math.round(100*h)/100))}return null};b.prototype.getShapeIndex=function(){return this.shapeIndex};b.prototype.setShapeIndex=function(a){this.shapeIndex=a};return b}(c.mxgraph.io.vsdx.Shape);h.__static_initialized=!1;h.ARROW_NO_FILL_MARKER="0";h.maxDp=2;h.USE_SHAPE_MATCH=!1;h.stencilTemplate='<shape h="htemplate" w="wtemplate" aspect="variable" strokewidth="inherit"><connections></connections><background></background><foreground></foreground></shape>';l.VsdxShape=h;h.__class="com.mxgraph.io.vsdx.VsdxShape"})(m.vsdx||
|
||||
(m.vsdx={}))})(m.io||(m.io={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));
|
||||
(function(c){(function(m){(function(m){var l=function(){function h(){}h.__static_initialize=function(){h.__static_initialized||(h.__static_initialized=!0,h.__static_initializer_0())};h.CA_$LI$=function(){h.__static_initialize();null==h.CA&&(h.CA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""));return h.CA};h.IA_$LI$=function(){h.__static_initialize();if(null==h.IA){for(var c=256,b=[];0<c--;)b.push(0);h.IA=b}return h.IA};h.__static_initializer_0=function(){for(var c=h.IA_$LI$(),
|
||||
b=0;b<c.length;b++)c[b]=-1;c=0;for(b=h.CA_$LI$().length;c<b;c++)h.IA_$LI$()[h.CA_$LI$()[c].charCodeAt(0)]=c;h.IA_$LI$()[61]=0};h.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var f=3*(d/3|0),l=((d-1)/3|0)+1<<2,l=l+(a?((l-1)/76|0)<<1:0),m=Array(l),w=b,y=0,t=0;w<f+b;){var z=(c[w++]&255)<<16|(c[w++]&255)<<8|c[w++]&255;m[y++]=h.CA_$LI$()[z>>>18&63];m[y++]=h.CA_$LI$()[z>>>12&63];m[y++]=h.CA_$LI$()[z>>>6&63];m[y++]=h.CA_$LI$()[z&63];a&&19===++t&&y<l-2&&(m[y++]="\r",m[y++]=
|
||||
b=0;b<c.length;b++)c[b]=-1;c=0;for(b=h.CA_$LI$().length;c<b;c++)h.IA_$LI$()[h.CA_$LI$()[c].charCodeAt(0)]=c;h.IA_$LI$()[61]=0};h.encodeToChar=function(c,b,a){var d=null!=c?c.length-b:0;if(0===d)return[];for(var f=3*(d/3|0),l=((d-1)/3|0)+1<<2,l=l+(a?((l-1)/76|0)<<1:0),m=Array(l),w=b,x=0,t=0;w<f+b;){var z=(c[w++]&255)<<16|(c[w++]&255)<<8|c[w++]&255;m[x++]=h.CA_$LI$()[z>>>18&63];m[x++]=h.CA_$LI$()[z>>>12&63];m[x++]=h.CA_$LI$()[z>>>6&63];m[x++]=h.CA_$LI$()[z&63];a&&19===++t&&x<l-2&&(m[x++]="\r",m[x++]=
|
||||
"\n",t=0)}a=d-f;0<a&&(z=(c[f+b]&255)<<10|(2===a?(c[d+b-1]&255)<<2:0),m[l-4]=h.CA_$LI$()[z>>12],m[l-3]=h.CA_$LI$()[z>>>6&63],m[l-2]=2===a?h.CA_$LI$()[z&63]:"=",m[l-1]="=");return m};h.decode$char_A=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>h.IA_$LI$()[c[d].charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=h.IA_$LI$()[c[--d].charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b=
|
||||
[];0<a--;)b.push(0);return b}(b),l=f=0;l<b;){for(var m=d=0;4>m;m++){var w=h.IA_$LI$()[c[f++].charCodeAt(0)];0<=w?d|=w<<18-6*m:m--}a[l++]=d>>16|0;l<b&&(a[l++]=d>>8|0,l<b&&(a[l++]=d|0))}return a};h.decode=function(f){if(null!=f&&f instanceof Array&&(0==f.length||null==f[0]||"string"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decode$char_A(f);if(null!=f&&f instanceof Array&&(0==f.length||null==f[0]||"number"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decode$byte_A(f);if("string"===
|
||||
typeof f||null===f)return c.mxgraph.online.mxBase64.decode$java_lang_String(f);throw Error("invalid overload");};h.decodeFast$char_A=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[c[a].charCodeAt(0)];)a++;for(;0<d&&0>h.IA_$LI$()[c[d].charCodeAt(0)];)d--;for(var f=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d])?61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c[d-1])?2:1:0,l=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:
|
||||
a.charCodeAt(0)}(c[76])?l/78|0:0)<<1:0,l=(6*(l-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(l),w=0,y=0,t=3*(l/3|0);w<t;){var z=h.IA_$LI$()[c[a++].charCodeAt(0)]<<18|h.IA_$LI$()[c[a++].charCodeAt(0)]<<12|h.IA_$LI$()[c[a++].charCodeAt(0)]<<6|h.IA_$LI$()[c[a++].charCodeAt(0)];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=z|0;0<m&&19===++y&&(a+=2,y=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>c|0}return b};h.decodeFast=function(f){if(null!=
|
||||
a.charCodeAt(0)}(c[76])?l/78|0:0)<<1:0,l=(6*(l-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(l),w=0,x=0,t=3*(l/3|0);w<t;){var z=h.IA_$LI$()[c[a++].charCodeAt(0)]<<18|h.IA_$LI$()[c[a++].charCodeAt(0)]<<12|h.IA_$LI$()[c[a++].charCodeAt(0)]<<6|h.IA_$LI$()[c[a++].charCodeAt(0)];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=z|0;0<m&&19===++x&&(a+=2,x=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c[a++].charCodeAt(0)]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>c|0}return b};h.decodeFast=function(f){if(null!=
|
||||
f&&f instanceof Array&&(0==f.length||null==f[0]||"string"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decodeFast$char_A(f);if(null!=f&&f instanceof Array&&(0==f.length||null==f[0]||"number"===typeof f[0])||null===f)return c.mxgraph.online.mxBase64.decodeFast$byte_A(f);if("string"===typeof f||null===f)return c.mxgraph.online.mxBase64.decodeFast$java_lang_String(f);throw Error("invalid overload");};h.encodeToByte=function(c,b){var a=null!=c?c.length:0;if(0===a)return[];for(var d=3*(a/
|
||||
3|0),f=((a-1)/3|0)+1<<2,l=f+=b?((f-1)/76|0)<<1:0,m=[];0<l--;)m.push(0);for(var w=0,y=0,t=0;w<d;)l=(c[w++]&255)<<16|(c[w++]&255)<<8|c[w++]&255,m[y++]=h.CA_$LI$()[l>>>18&63].charCodeAt(0),m[y++]=h.CA_$LI$()[l>>>12&63].charCodeAt(0),m[y++]=h.CA_$LI$()[l>>>6&63].charCodeAt(0),m[y++]=h.CA_$LI$()[l&63].charCodeAt(0),b&&19===++t&&y<f-2&&(m[y++]=13,m[y++]=10,t=0);w=a-d;0<w&&(l=(c[d]&255)<<10|(2===w?(c[a-1]&255)<<2:0),m[f-4]=h.CA_$LI$()[l>>12].charCodeAt(0),m[f-3]=h.CA_$LI$()[l>>>6&63].charCodeAt(0),m[f-2]=
|
||||
3|0),f=((a-1)/3|0)+1<<2,l=f+=b?((f-1)/76|0)<<1:0,m=[];0<l--;)m.push(0);for(var w=0,x=0,t=0;w<d;)l=(c[w++]&255)<<16|(c[w++]&255)<<8|c[w++]&255,m[x++]=h.CA_$LI$()[l>>>18&63].charCodeAt(0),m[x++]=h.CA_$LI$()[l>>>12&63].charCodeAt(0),m[x++]=h.CA_$LI$()[l>>>6&63].charCodeAt(0),m[x++]=h.CA_$LI$()[l&63].charCodeAt(0),b&&19===++t&&x<f-2&&(m[x++]=13,m[x++]=10,t=0);w=a-d;0<w&&(l=(c[d]&255)<<10|(2===w?(c[a-1]&255)<<2:0),m[f-4]=h.CA_$LI$()[l>>12].charCodeAt(0),m[f-3]=h.CA_$LI$()[l>>>6&63].charCodeAt(0),m[f-2]=
|
||||
2===w?h.CA_$LI$()[l&63].charCodeAt(0):61,m[f-1]=61);return m};h.decode$byte_A=function(c){for(var b=c.length,a=0,d=0;d<b;d++)0>h.IA_$LI$()[c[d]&255]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=h.IA_$LI$()[c[--d]&255];)61==c[d]&&f++;d=b=(6*(b-a)>>3)-f;for(a=[];0<d--;)a.push(0);for(var l=f=0;l<b;){for(var m=d=0;4>m;m++){var w=h.IA_$LI$()[c[f++]&255];0<=w?d|=w<<18-6*m:m--}a[l++]=d>>16|0;l<b&&(a[l++]=d>>8|0,l<b&&(a[l++]=d|0))}return a};h.decodeFast$byte_A=function(c){var b=c.length;if(0===
|
||||
b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>h.IA_$LI$()[c[d]&255];)d--;for(var f=61==c[d]?61==c[d-1]?2:1:0,l=d-a+1,m=76<b?(13==c[76]?l/78|0:0)<<1:0,w=l=(6*(l-m)>>3)-f,b=[];0<w--;)b.push(0);for(var y=w=0,t=3*(l/3|0);w<t;){var z=h.IA_$LI$()[c[a++]]<<18|h.IA_$LI$()[c[a++]]<<12|h.IA_$LI$()[c[a++]]<<6|h.IA_$LI$()[c[a++]];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=z|0;0<m&&19===++y&&(a+=2,y=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>
|
||||
b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[c[a]&255];)a++;for(;0<d&&0>h.IA_$LI$()[c[d]&255];)d--;for(var f=61==c[d]?61==c[d-1]?2:1:0,l=d-a+1,m=76<b?(13==c[76]?l/78|0:0)<<1:0,w=l=(6*(l-m)>>3)-f,b=[];0<w--;)b.push(0);for(var x=w=0,t=3*(l/3|0);w<t;){var z=h.IA_$LI$()[c[a++]]<<18|h.IA_$LI$()[c[a++]]<<12|h.IA_$LI$()[c[a++]]<<6|h.IA_$LI$()[c[a++]];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=z|0;0<m&&19===++x&&(a+=2,x=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c[a++]]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>
|
||||
c|0}return b};h.encodeToString=function(c,b,a){return h.encodeToChar(c,b,a).join("")};h.decode$java_lang_String=function(c){var b=null!=c?c.length:0;if(0===b)return[];for(var a=0,d=0;d<b;d++)0>h.IA_$LI$()[c.charAt(d).charCodeAt(0)]&&a++;if(0!==(b-a)%4)return null;for(var f=0,d=b;1<d&&0>=h.IA_$LI$()[c.charAt(--d).charCodeAt(0)];)61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&&f++;for(var b=(6*(b-a)>>3)-f,a=function(a){for(var b=[];0<a--;)b.push(0);return b}(b),l=f=0;l<b;){for(var m=
|
||||
d=0;4>m;m++){var w=h.IA_$LI$()[c.charAt(f++).charCodeAt(0)];0<=w?d|=w<<18-6*m:m--}a[l++]=d>>16|0;l<b&&(a[l++]=d>>8|0,l<b&&(a[l++]=d|0))}return a};h.decodeFast$java_lang_String=function(c){var b=c.length;if(0===b)return[];for(var a=0,d=b-1;a<d&&0>h.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(a))&255];)a++;for(;0<d&&0>h.IA_$LI$()[function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))&255];)d--;for(var f=61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d))?
|
||||
61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,l=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?l/78|0:0)<<1:0,l=(6*(l-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(l),w=0,y=0,t=3*(l/3|0);w<t;){var z=h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=
|
||||
z|0;0<m&&19===++y&&(a+=2,y=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>c|0}return b};return h}();l.__static_initialized=!1;m.mxBase64=l;l.__class="com.mxgraph.online.mxBase64"})(m.online||(m.online={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();
|
||||
61==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(d-1))?2:1:0,l=d-a+1,m=76<b?(13==function(a){return null==a.charCodeAt?a:a.charCodeAt(0)}(c.charAt(76))?l/78|0:0)<<1:0,l=(6*(l-m)>>3)-f,b=function(a){for(var b=[];0<a--;)b.push(0);return b}(l),w=0,x=0,t=3*(l/3|0);w<t;){var z=h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<12|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<6|h.IA_$LI$()[c.charAt(a++).charCodeAt(0)];b[w++]=z>>16|0;b[w++]=z>>8|0;b[w++]=
|
||||
z|0;0<m&&19===++x&&(a+=2,x=0)}if(w<l){for(m=z=0;a<=d-f;m++)z|=h.IA_$LI$()[c.charAt(a++).charCodeAt(0)]<<18-6*m;for(c=16;w<l;c-=8)b[w++]=z>>c|0}return b};return h}();l.__static_initialized=!1;m.mxBase64=l;l.__class="com.mxgraph.online.mxBase64"})(m.online||(m.online={}))})(c.mxgraph||(c.mxgraph={}))})(com||(com={}));com.mxgraph.online.mxBase64.IA_$LI$();com.mxgraph.online.mxBase64.CA_$LI$();com.mxgraph.online.mxBase64.__static_initialize();com.mxgraph.io.vsdx.VsdxShape.__com_mxgraph_io_vsdx_VsdxShape_LOGGER_$LI$();
|
||||
com.mxgraph.io.vsdx.VsdxShape.arrowTypes_$LI$();com.mxgraph.io.vsdx.VsdxShape.arrowSizes_$LI$();com.mxgraph.io.vsdx.VsdxShape.OFFSET_ARRAY_$LI$();com.mxgraph.io.vsdx.VsdxShape.__static_initialize();com.mxgraph.io.vsdx.Shape.UNICODE_LINE_SEP_$LI$();com.mxgraph.io.vsdx.Style.lineDashPatterns_$LI$();com.mxgraph.io.vsdx.Style.styleTypes_$LI$();com.mxgraph.io.vsdx.Style.__static_initialize();com.mxgraph.online.Constants.MAX_AREA_$LI$();com.mxgraph.io.vsdx.theme.Color.NONE_$LI$();com.mxgraph.io.vsdx.mxVsdxUtils.conversionFactor_$LI$();
|
||||
com.mxgraph.io.vsdx.mxVsdxTheme.colorIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.themesIds_$LI$();com.mxgraph.io.vsdx.mxVsdxTheme.__static_initialize();com.mxgraph.io.vsdx.mxVsdxConstants.MY_SET_$LI$();com.mxgraph.io.vsdx.mxVsdxConstants.SET_VALUES_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.defaultColors_$LI$();com.mxgraph.io.vsdx.mxPropertiesManager.__static_initialize();com.mxgraph.io.mxVsdxCodec.vsdxPlaceholder_$LI$();com.mxgraph.io.mxVsdxCodec.parsererrorNS_$LI$();
|
||||
EditorUi.prototype.doImportVisio=function(c,m,w){null!=c.name&&/(\.vssx?)($|\?)/i.test(c.name)?(new com.mxgraph.io.mxVssxCodec).decodeVssx(c,m):(new com.mxgraph.io.mxVsdxCodec).decodeVsdx(c,m,null,w)};/*!
|
||||
|
|
|
@ -337,7 +337,7 @@ Editor.prototype.editAsNew = function(xml, title)
|
|||
}
|
||||
|
||||
this.editorWindow = this.graph.openLink(this.getEditBlankUrl(p +
|
||||
((p.length > 0) ? '&' : '?') + 'client=1'));
|
||||
((p.length > 0) ? '&' : '?') + 'client=1'), null, true);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -1450,7 +1450,7 @@ Graph.prototype.labelLinkClicked = function(state, elt, evt)
|
|||
/**
|
||||
* Returns the size of the page format scaled with the page size.
|
||||
*/
|
||||
Graph.prototype.openLink = function(href, target)
|
||||
Graph.prototype.openLink = function(href, target, allowOpener)
|
||||
{
|
||||
var result = window;
|
||||
|
||||
|
@ -1479,6 +1479,11 @@ Graph.prototype.openLink = function(href, target)
|
|||
else
|
||||
{
|
||||
result = window.open(href, target);
|
||||
|
||||
if (result != null && !allowOpener)
|
||||
{
|
||||
result.opener = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -5626,6 +5631,7 @@ if (typeof mxVertexHandler != 'undefined')
|
|||
|
||||
if (href != null)
|
||||
{
|
||||
links[i].setAttribute('rel', 'nofollow noopener noreferrer');
|
||||
links[i].setAttribute('href', href);
|
||||
|
||||
if (beforeClick != null)
|
||||
|
@ -6624,6 +6630,7 @@ if (typeof mxVertexHandler != 'undefined')
|
|||
};
|
||||
|
||||
var a = document.createElement('a');
|
||||
a.setAttribute('rel', 'nofollow noopener noreferrer');
|
||||
a.setAttribute('href', this.getAbsoluteUrl(link));
|
||||
a.setAttribute('title', short((this.isCustomLink(link)) ?
|
||||
this.getLinkTitle(link) : link, 80));
|
||||
|
|
93
src/main/webapp/js/reader.min.js
vendored
93
src/main/webapp/js/reader.min.js
vendored
|
@ -184,7 +184,7 @@ f)+"\n"+t+"}":"{"+z.join(",")+"}";f=t;return l}}"function"!==typeof Date.prototy
|
|||
e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;e<d;e+=1)g+=" ";else"string"===typeof d&&(g=d);if((k=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return c("",{"":a})});
|
||||
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),void 0!==f?g[e]=f:delete g[e]);return b.call(a,d,g)}var e;a=""+a;d.lastIndex=0;d.test(a)&&(a=a.replace(d,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
|
||||
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"===typeof b?c({"":e},""):e;throw new SyntaxError("JSON.parse");})})();"undefined"===typeof window.mxBasePath&&(window.mxBasePath="https://www.draw.io/mxgraph/");window.mxLoadStylesheets=window.mxLoadStylesheets||!1;window.mxLoadResources=window.mxLoadResources||!1;window.mxLanguage=window.mxLanguage||"en";window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";
|
||||
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"9.0.8",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
|
||||
window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"9.0.9",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&
|
||||
0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&&
|
||||
0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&&
|
||||
0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")||
|
||||
|
@ -1440,8 +1440,9 @@ mxConnectionHandler.prototype.getTargetPerimeterPoint=function(a,b){var c=null,d
|
|||
mxConnectionHandler.prototype.getSourcePerimeterPoint=function(a,b,c){c=null;var d=a.view,e=d.getPerimeterFunction(a),f=new mxPoint(a.getCenterX(),a.getCenterY());if(null!=e){var g=mxUtils.getValue(a.style,mxConstants.STYLE_ROTATION,0),h=Math.PI/180*-g;0!=g&&(b=mxUtils.getRotatedPoint(new mxPoint(b.x,b.y),Math.cos(h),Math.sin(h),f));a=e(d.getPerimeterBounds(a),a,b,!1);null!=a&&(0!=g&&(a=mxUtils.getRotatedPoint(new mxPoint(a.x,a.y),Math.cos(-h),Math.sin(-h),f)),c=a)}else c=f;return c};
|
||||
mxConnectionHandler.prototype.updateIcons=function(a,b,c){};mxConnectionHandler.prototype.isStopEvent=function(a){return null!=a.getState()};
|
||||
mxConnectionHandler.prototype.addWaypointForEvent=function(a){var b=mxUtils.convertPoint(this.graph.container,a.getX(),a.getY()),c=Math.abs(b.x-this.first.x),b=Math.abs(b.y-this.first.y);if(null!=this.waypoints||1<this.mouseDownCounter&&(c>this.graph.tolerance||b>this.graph.tolerance))null==this.waypoints&&(this.waypoints=[]),c=this.graph.view.scale,b=new mxPoint(this.graph.snap(a.getGraphX()/c)*c,this.graph.snap(a.getGraphY()/c)*c),this.waypoints.push(b)};
|
||||
mxConnectionHandler.prototype.mouseUp=function(a,b){if(!b.isConsumed()&&this.isConnecting()){if(this.waypointsEnabled&&!this.isStopEvent(b)){this.addWaypointForEvent(b);b.consume();return}if(null==this.error){var c=null!=this.previous?this.previous.cell:null,d=null;null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus&&(d=this.constraintHandler.currentFocus.cell);null==d&&null!=this.currentState&&(d=this.currentState.cell);this.connect(c,d,b.getEvent(),b.getCell())}else null!=
|
||||
this.previous&&null!=this.marker.validState&&this.previous.cell==this.marker.validState.cell&&this.graph.selectCellForEvent(this.marker.source,evt),0<this.error.length&&this.graph.validationAlert(this.error);this.destroyIcons();b.consume()}null!=this.first&&this.reset()};
|
||||
mxConnectionHandler.prototype.checkConstraints=function(a,b){return null==a||null==b||null==a.point||null==b.point||!a.point.equals(b.point)||a.perimeter!=b.perimeter};
|
||||
mxConnectionHandler.prototype.mouseUp=function(a,b){if(!b.isConsumed()&&this.isConnecting()){if(this.waypointsEnabled&&!this.isStopEvent(b)){this.addWaypointForEvent(b);b.consume();return}var c=this.sourceConstraint,d=this.constraintHandler.currentConstraint;null==this.error&&this.checkConstraints(c,d)?(c=null!=this.previous?this.previous.cell:null,d=null,null!=this.constraintHandler.currentConstraint&&null!=this.constraintHandler.currentFocus&&(d=this.constraintHandler.currentFocus.cell),null==d&&
|
||||
null!=this.currentState&&(d=this.currentState.cell),this.connect(c,d,b.getEvent(),b.getCell())):(null!=this.previous&&null!=this.marker.validState&&this.previous.cell==this.marker.validState.cell&&this.graph.selectCellForEvent(this.marker.source,b.getEvent()),null!=this.error&&0<this.error.length&&this.graph.validationAlert(this.error));this.destroyIcons();b.consume()}null!=this.first&&this.reset()};
|
||||
mxConnectionHandler.prototype.reset=function(){null!=this.shape&&(this.shape.destroy(),this.shape=null);null!=this.cursor&&null!=this.graph.container&&(this.graph.container.style.cursor="");this.destroyIcons();this.marker.reset();this.constraintHandler.reset();this.sourceConstraint=this.error=this.previous=this.edgeState=this.currentPoint=this.originalPoint=null;this.mouseDownCounter=0;this.first=null;this.fireEvent(new mxEventObject(mxEvent.RESET))};
|
||||
mxConnectionHandler.prototype.drawPreview=function(){this.updatePreview(null==this.error);this.shape.redraw()};mxConnectionHandler.prototype.updatePreview=function(a){this.shape.strokewidth=this.getEdgeWidth(a);this.shape.stroke=this.getEdgeColor(a)};mxConnectionHandler.prototype.getEdgeColor=function(a){return a?mxConstants.VALID_COLOR:mxConstants.INVALID_COLOR};mxConnectionHandler.prototype.getEdgeWidth=function(a){return a?3:1};
|
||||
mxConnectionHandler.prototype.connect=function(a,b,c,d){if(null!=b||this.isCreateTarget(c)||this.graph.allowDanglingEdges){var e=this.graph.getModel(),f=!1,g=null;e.beginUpdate();try{if(null!=a&&null==b&&!this.graph.isIgnoreTerminalEvent(c)&&this.isCreateTarget(c)&&(b=this.createTargetVertex(c,a),null!=b)){d=this.graph.getDropTarget([b],c,d);f=!0;if(null!=d&&this.graph.getModel().isEdge(d))d=this.graph.getDefaultParent();else{var h=this.graph.getView().getState(d);if(null!=h){var k=e.getGeometry(b);
|
||||
|
@ -1561,7 +1562,7 @@ function(b){this.graph.useCssTransforms&&(this.graph.currentScale=this.scale,thi
|
|||
if(null!=a)if(a=a.parentNode,this.useCssTransforms){var b=a.getAttribute("transform");a.setAttribute("transformOrigin","0 0");a.setAttribute("transform","scale("+this.currentScale+","+this.currentScale+")translate("+this.currentTranslate.x+","+this.currentTranslate.y+")");if(b!=a.getAttribute("transform"))try{if(mxClient.IS_EDGE){var c=a.style.display;a.style.display="none";a.getBBox();a.style.display=c}}catch(g){}}else a.removeAttribute("transformOrigin"),a.removeAttribute("transform")};var b=mxGraphView.prototype.validateBackgroundPage;
|
||||
mxGraphView.prototype.validateBackgroundPage=function(){var a=this.graph.useCssTransforms,c=this.scale,f=this.translate;a&&(this.scale=this.graph.currentScale,this.translate=this.graph.currentTranslate);b.apply(this,arguments);a&&(this.scale=c,this.translate=f)};var c=mxGraph.prototype.updatePageBreaks;mxGraph.prototype.updatePageBreaks=function(a,b,f){var d=this.useCssTransforms,e=this.view.scale,k=this.view.translate;d&&(this.view.scale=1,this.view.translate=new mxPoint(0,0),this.useCssTransforms=
|
||||
!1);c.apply(this,arguments);d&&(this.view.scale=e,this.view.translate=k,this.useCssTransforms=!0)}})();Graph.prototype.isLightboxView=function(){return this.lightbox};Graph.prototype.labelLinkClicked=function(a,b,c){b=b.getAttribute("href");if(null!=b&&!this.isCustomLink(b)&&mxEvent.isLeftMouseButton(c)&&!mxEvent.isPopupTrigger(c)||mxEvent.isTouchEvent(c)){if(!this.isEnabled()||this.isCellLocked(a.cell))a=this.isBlankLink(b)?this.linkTarget:"_top",this.openLink(this.getAbsoluteUrl(b),a);mxEvent.consume(c)}};
|
||||
Graph.prototype.openLink=function(a,b){var c=window;if("_self"==b&&window!=window.top)window.location.href=a;else if(a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top){var d=a.split("#")[1];window.location.hash=="#"+d&&(window.location.hash="");window.location.hash=d}else c=window.open(a,b);return c};Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};
|
||||
Graph.prototype.openLink=function(a,b,c){var d=window;"_self"==b&&window!=window.top?window.location.href=a:a.substring(0,this.baseUrl.length)==this.baseUrl&&"#"==a.charAt(this.baseUrl.length)&&"_top"==b&&window==window.top?(a=a.split("#")[1],window.location.hash=="#"+a&&(window.location.hash=""),window.location.hash=a):(d=window.open(a,b),null==d||c||(d.opener=null));return d};Graph.prototype.getLinkTitle=function(a){return a.substring(a.lastIndexOf("/")+1)};
|
||||
Graph.prototype.isCustomLink=function(a){return"data:"==a.substring(0,5)};Graph.prototype.customLinkClicked=function(a){return!1};Graph.prototype.isExternalProtocol=function(a){return"mailto:"===a.substring(0,7)};Graph.prototype.isBlankLink=function(a){return!this.isExternalProtocol(a)&&("blank"===this.linkPolicy||"self"!==this.linkPolicy&&!this.isRelativeUrl(a)&&a.substring(0,this.domainUrl.length)!==this.domainUrl)};
|
||||
Graph.prototype.isRelativeUrl=function(a){return null!=a&&!this.absoluteUrlPattern.test(a)&&"data:"!==a.substring(0,5)&&!this.isExternalProtocol(a)};
|
||||
Graph.prototype.initLayoutManager=function(){this.layoutManager=new mxLayoutManager(this);this.layoutManager.getLayout=function(a){var b=this.graph.view.getState(a);a=null!=b?b.style:this.graph.getCellStyle(a);return"stackLayout"==a.childLayout?(b=new mxStackLayout(this.graph,!0),b.resizeParentMax="1"==mxUtils.getValue(a,"resizeParentMax","1"),b.horizontal="1"==mxUtils.getValue(a,"horizontalStack","1"),b.resizeParent="1"==mxUtils.getValue(a,"resizeParent","1"),b.resizeLast="1"==mxUtils.getValue(a,
|
||||
|
@ -1684,48 +1685,48 @@ this.view.scale-this.view.translate.x,c=this.container.scrollTop/this.view.scale
|
|||
(b.y+b.height)/a.scale-a.translate.y+2*this.gridSize)));return new mxPoint(d,a)};Graph.prototype.isMouseInsertPoint=function(){return!1};Graph.prototype.addText=function(a,b,c){var d=new mxCell;d.value="Text";d.style="text;html=1;resizable=0;points=[];";d.geometry=new mxGeometry(0,0,0,0);d.vertex=!0;if(null!=c){d.style+="align=center;verticalAlign=middle;labelBackgroundColor=#ffffff;";d.geometry.relative=!0;d.connectable=!1;var e=this.view.getRelativePoint(c,a,b);d.geometry.x=Math.round(1E4*e.x)/
|
||||
1E4;d.geometry.y=Math.round(e.y);d.geometry.offset=new mxPoint(0,0);var e=this.view.getPoint(c,d.geometry),f=this.view.scale;d.geometry.offset=new mxPoint(Math.round((a-e.x)/f),Math.round((b-e.y)/f))}else d.style+="autosize=1;align=left;verticalAlign=top;spacingTop=-4;",e=this.view.translate,d.geometry.width=40,d.geometry.height=20,d.geometry.x=Math.round(a/this.view.scale)-e.x,d.geometry.y=Math.round(b/this.view.scale)-e.y;this.getModel().beginUpdate();try{this.addCells([d],null!=c?c.cell:null),
|
||||
this.fireEvent(new mxEventObject("textInserted","cells",[d])),this.autoSizeCell(d)}finally{this.getModel().endUpdate()}return d};Graph.prototype.getAbsoluteUrl=function(a){null!=a&&this.isRelativeUrl(a)&&(a="#"==a.charAt(0)?this.baseUrl+a:"/"==a.charAt(0)?this.domainUrl+a:this.domainPathUrl+a);return a};Graph.prototype.addClickHandler=function(a,b,c){var d=mxUtils.bind(this,function(){var a=this.container.getElementsByTagName("a");if(null!=a)for(var c=0;c<a.length;c++){var d=this.getAbsoluteUrl(a[c].getAttribute("href"));
|
||||
null!=d&&(a[c].setAttribute("href",d),null!=b&&mxEvent.addGestureListeners(a[c],null,null,b))}});this.model.addListener(mxEvent.CHANGE,d);d();var e=this.container.style.cursor,f=this.getTolerance(),g=this,h={currentState:null,currentLink:null,highlight:null!=a&&""!=a&&a!=mxConstants.NONE?new mxCellHighlight(g,a,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(a){var b=a.sourceState;if(null==b||null==g.getLinkForCell(b.cell))a=g.getCellAt(a.getGraphX(),a.getGraphY(),null,
|
||||
null,null,function(a,b,c){return null==g.getLinkForCell(a.cell)}),b=g.view.getState(a);b!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=b,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(a,b){this.startX=b.getGraphX();this.startY=b.getGraphY();this.scrollLeft=g.container.scrollLeft;this.scrollTop=g.container.scrollTop;null==this.currentLink&&"auto"==g.container.style.overflow&&(g.container.style.cursor="move");this.updateCurrentState(b)},
|
||||
mouseMove:function(a,b){if(g.isMouseDown){if(null!=this.currentLink){var c=Math.abs(this.startX-b.getGraphX()),d=Math.abs(this.startY-b.getGraphY());(c>f||d>f)&&this.clear()}}else{for(c=b.getSource();null!=c&&"a"!=c.nodeName.toLowerCase();)c=c.parentNode;null!=c?this.clear():(null!=g.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&g.tooltipHandler.reset(b,!0,this.currentState),(null==this.currentState||b.getState()!=this.currentState&&null!=b.sourceState||!g.intersects(this.currentState,
|
||||
b.getGraphX(),b.getGraphY()))&&this.updateCurrentState(b))}},mouseUp:function(a,d){for(var e=d.getSource(),h=d.getEvent();null!=e&&"a"!=e.nodeName.toLowerCase();)e=e.parentNode;null==e&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&(null==d.sourceState||!d.isSource(d.sourceState.control))&&((mxEvent.isLeftMouseButton(h)||mxEvent.isMiddleMouseButton(h))&&!mxEvent.isPopupTrigger(h)||mxEvent.isTouchEvent(h))&&(null!=this.currentLink?(e=g.isBlankLink(this.currentLink),
|
||||
"data:"!==this.currentLink.substring(0,5)&&e||null==b||b(h,this.currentLink),mxEvent.isConsumed(h)||(h=mxEvent.isMiddleMouseButton(h)?"_blank":e?g.linkTarget:"_top",g.openLink(this.currentLink,h),d.consume())):null!=c&&!d.isConsumed()&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&Math.abs(this.startX-d.getGraphX())<f&&Math.abs(this.startY-d.getGraphY())<f&&c(d.getEvent()));this.clear()},activate:function(a){this.currentLink=g.getAbsoluteUrl(g.getLinkForCell(a.cell));
|
||||
null!=this.currentLink&&(g.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(a))},clear:function(){null!=g.container&&(g.container.style.cursor=e);this.currentLink=this.currentState=null;null!=this.highlight&&this.highlight.hide();null!=g.tooltipHandler&&g.tooltipHandler.hide()}};g.click=function(a){};g.addMouseListener(h);mxEvent.addListener(document,"mouseleave",function(a){h.clear()})};Graph.prototype.duplicateCells=function(a,b){a=null!=a?a:this.getSelectionCells();
|
||||
b=null!=b?b:!0;a=this.model.getTopmostCells(a);var c=this.getModel(),d=this.gridSize,e=[];c.beginUpdate();try{for(var f=this.cloneCells(a,!1),g=0;g<a.length;g++){var h=c.getParent(a[g]),k=this.moveCells([f[g]],d,d,!1)[0];e.push(k);if(b)c.add(h,f[g]);else{var l=h.getIndex(a[g]);c.add(h,f[g],l+1)}}}finally{c.endUpdate()}return e};Graph.prototype.insertImage=function(a,b,c){if(null!=a){for(var d=this.cellEditor.textarea.getElementsByTagName("img"),e=[],f=0;f<d.length;f++)e.push(d[f]);document.execCommand("insertimage",
|
||||
!1,a);a=this.cellEditor.textarea.getElementsByTagName("img");if(a.length==e.length+1)for(f=a.length-1;0<=f;f--)if(0==f||a[f]!=e[f-1]){a[f].setAttribute("width",b);a[f].setAttribute("height",c);break}}};Graph.prototype.insertLink=function(a){if(0==a.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var b=this.cellEditor.textarea.getElementsByTagName("a"),c=[],d=0;d<b.length;d++)c.push(b[d]);document.execCommand("createlink",!1,mxUtils.trim(a));b=this.cellEditor.textarea.getElementsByTagName("a");
|
||||
if(b.length==c.length+1)for(d=b.length-1;0<=d;d--)if(b[d]!=c[d-1]){for(b=b[d].getElementsByTagName("a");0<b.length;){for(c=b[0].parentNode;null!=b[0].firstChild;)c.insertBefore(b[0].firstChild,b[0]);c.removeChild(b[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(a))};Graph.prototype.isCellResizable=function(a){var b=mxGraph.prototype.isCellResizable.apply(this,arguments),c=this.view.getState(a),c=null!=c?c.style:this.getCellStyle(a);return b||"0"!=mxUtils.getValue(c,mxConstants.STYLE_RESIZABLE,
|
||||
"1")&&"wrap"==c[mxConstants.STYLE_WHITE_SPACE]};Graph.prototype.distributeCells=function(a,b){null==b&&(b=this.getSelectionCells());if(null!=b&&1<b.length){for(var c=[],d=null,e=null,f=0;f<b.length;f++)if(this.getModel().isVertex(b[f])){var g=this.view.getState(b[f]);if(null!=g){var h=a?g.getCenterX():g.getCenterY(),d=null!=d?Math.max(d,h):h,e=null!=e?Math.min(e,h):h;c.push(g)}}if(2<c.length){c.sort(function(b,c){return a?b.x-c.x:b.y-c.y});g=this.view.translate;h=this.view.scale;e=e/h-(a?g.x:g.y);
|
||||
d=d/h-(a?g.x:g.y);this.getModel().beginUpdate();try{for(var k=(d-e)/(c.length-1),d=e,f=1;f<c.length-1;f++){var l=this.view.getState(this.model.getParent(c[f].cell)),m=this.getCellGeometry(c[f].cell),d=d+k;null!=m&&null!=l&&(m=m.clone(),a?m.x=Math.round(d-m.width/2)-l.origin.x:m.y=Math.round(d-m.height/2)-l.origin.y,this.getModel().setGeometry(c[f].cell,m))}}finally{this.getModel().endUpdate()}}}return b};Graph.prototype.isCloneEvent=function(a){return mxClient.IS_MAC&&mxEvent.isMetaDown(a)||mxEvent.isControlDown(a)};
|
||||
Graph.prototype.encodeCells=function(a){for(var b=this.cloneCells(a),c=new mxDictionary,d=0;d<a.length;d++)c.put(a[d],!0);for(d=0;d<b.length;d++){var e=this.view.getState(a[d]);if(null!=e){var f=this.getCellGeometry(b[d]);null==f||!f.relative||this.model.isEdge(a[d])||c.get(this.model.getParent(a[d]))||(f.relative=!1,f.x=e.x/e.view.scale-e.view.translate.x,f.y=e.y/e.view.scale-e.view.translate.y)}}c=new mxCodec;e=new mxGraphModel;f=e.getChildAt(e.getRoot(),0);for(d=0;d<a.length;d++)e.add(f,b[d]);
|
||||
return c.encode(e)};Graph.prototype.createSvgImageExport=function(){var a=new mxImageExport;a.getLinkForCellState=mxUtils.bind(this,function(a,b){return this.getLinkForCell(a.cell)});return a};Graph.prototype.getSvg=function(a,b,c,d,e,f,g,h){var k=this.useCssTransforms;k&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{b=null!=b?b:1;c=null!=c?c:0;e=null!=e?e:!0;f=null!=f?f:!0;g=null!=g?g:!0;var l=f||d?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells());if(null==
|
||||
l)throw Error(mxResources.get("drawingEmpty"));var m=this.view.scale,n=mxUtils.createXmlDocument(),p=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"svg"):n.createElement("svg");null!=a&&(null!=p.style?p.style.backgroundColor=a:p.setAttribute("style","background-color:"+a));null==n.createElementNS?(p.setAttribute("xmlns",mxConstants.NS_SVG),p.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):p.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);a=b/m;p.setAttribute("width",
|
||||
Math.max(1,Math.ceil(l.width*a)+2*c)+"px");p.setAttribute("height",Math.max(1,Math.ceil(l.height*a)+2*c)+"px");p.setAttribute("version","1.1");d=p;if(e){var v=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"g"):n.createElement("g");v.setAttribute("transform","translate(0.5,0.5)");p.appendChild(v);n.appendChild(p);d=v}else n.appendChild(p);var q=this.createSvgCanvas(d);q.foOffset=e?-.5:0;q.textOffset=e?-.5:0;q.imageOffset=e?-.5:0;q.translate(Math.floor((c/b-l.x)/m),Math.floor((c/b-l.y)/
|
||||
m));var r=document.createElement("textarea"),t=q.createAlternateContent;q.createAlternateContent=function(a,b,c,d,e,f,g,h,k,l,m,n,p){var v=this.state;if(null!=this.foAltText&&(0==d||0!=v.fontSize&&f.length<5*d/v.fontSize)){var q=this.createElement("text");q.setAttribute("x",Math.round(d/2));q.setAttribute("y",Math.round((e+v.fontSize)/2));q.setAttribute("fill",v.fontColor||"black");q.setAttribute("text-anchor","middle");q.setAttribute("font-size",Math.round(v.fontSize)+"px");q.setAttribute("font-family",
|
||||
v.fontFamily);(v.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&q.setAttribute("font-weight","bold");(v.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&q.setAttribute("font-style","italic");(v.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&q.setAttribute("text-decoration","underline");try{return r.innerHTML=f,q.textContent=r.value,q}catch(Aa){return t.apply(this,arguments)}}else return t.apply(this,arguments)};var u=this.backgroundImage;if(null!=u){b=m/b;
|
||||
var G=this.view.translate,Q=new mxRectangle(G.x*b,G.y*b,u.width*b,u.height*b);mxUtils.intersects(l,Q)&&q.image(G.x,G.y,u.width,u.height,u.src,!0)}q.scale(a);q.textEnabled=g;h=null!=h?h:this.createSvgImageExport();var w=h.drawCellState;h.drawCellState=function(a,b){for(var c=a.view.graph,d=c.isCellSelected(a.cell),e=c.model.getParent(a.cell);!f&&!d&&null!=e;)d=c.isCellSelected(e),e=c.model.getParent(e);(f||d)&&w.apply(this,arguments)};h.drawState(this.getView().getState(this.model.root),q);return p}finally{k&&
|
||||
(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.createSvgCanvas=function(a){return new mxSvgCanvas2D(a)};Graph.prototype.getSelectedElement=function(){var a=null;if(window.getSelection){var b=window.getSelection();b.getRangeAt&&b.rangeCount&&(a=b.getRangeAt(0).commonAncestorContainer)}else document.selection&&(a=document.selection.createRange().parentElement());return a};Graph.prototype.getParentByName=function(a,b,c){for(;null!=a&&a.nodeName!=b;){if(a==c)return null;
|
||||
a=a.parentNode}return a};Graph.prototype.selectNode=function(a){var b=null;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){var c=document.createRange();c.selectNode(a);b.removeAllRanges();b.addRange(c)}}else(b=document.selection)&&"Control"!=b.type&&(a=b.createRange(),a.collapse(!0),c=b.createRange(),c.setEndPoint("StartToStart",a),c.select())};Graph.prototype.insertRow=function(a,b){for(var c=a.tBodies[0],d=c.rows[0].cells,e=0,f=0;f<d.length;f++)var g=d[f].getAttribute("colspan"),
|
||||
e=e+(null!=g?parseInt(g):1);c=c.insertRow(b);for(f=0;f<e;f++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(a,b){a.tBodies[0].deleteRow(b)};Graph.prototype.insertColumn=function(a,b){var c=a.tHead;if(null!=c)for(var d=0;d<c.rows.length;d++){var e=document.createElement("th");c.rows[d].appendChild(e);mxUtils.br(e)}c=a.tBodies[0];for(d=0;d<c.rows.length;d++)e=c.rows[d].insertCell(b),mxUtils.br(e);return c.rows[0].cells[0<=b?b:c.rows[0].cells.length-1]};Graph.prototype.deleteColumn=
|
||||
function(a,b){if(0<=b)for(var c=a.tBodies[0].rows,d=0;d<c.length;d++)c[d].cells.length>b&&c[d].deleteCell(b)};Graph.prototype.pasteHtmlAtCaret=function(a){var b;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){b=b.getRangeAt(0);b.deleteContents();var c=document.createElement("div");c.innerHTML=a;a=document.createDocumentFragment();for(var d;d=c.firstChild;)lastNode=a.appendChild(d);b.insertNode(a)}}else(b=document.selection)&&"Control"!=b.type&&b.createRange().pasteHTML(a)};
|
||||
Graph.prototype.createLinkForHint=function(a,b){function c(a,b){a.length>b&&(a=a.substring(0,Math.round(b/2))+"..."+a.substring(a.length-Math.round(b/4)));return a}a=null!=a?a:"javascript:void(0);";if(null==b||0==b.length)b=this.isCustomLink(a)?this.getLinkTitle(a):a;var d=document.createElement("a");d.setAttribute("href",this.getAbsoluteUrl(a));d.setAttribute("title",c(this.isCustomLink(a)?this.getLinkTitle(a):a,80));null!=this.linkTarget&&d.setAttribute("target",this.linkTarget);mxUtils.write(d,
|
||||
c(b,40));this.isCustomLink(a)&&mxEvent.addListener(d,"click",mxUtils.bind(this,function(b){this.customLinkClicked(a);mxEvent.consume(b)}));return d};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(a,b){this.popupMenuHandler.hideMenu()});var a=this.updateMouseEvent;this.updateMouseEvent=function(b){b=a.apply(this,arguments);if(mxEvent.isTouchEvent(b.getEvent())&&
|
||||
null==b.getState()){var c=this.getCellAt(b.graphX,b.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,b.graphX,b.graphY)||(b.state=this.view.getState(c),null!=b.state&&null!=b.state.shape&&(this.container.style.cursor=b.state.shape.node.style.cursor))}null==b.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return b};var b=!1,c=!1,d=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(a,f,g){a==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f),b=this.isCellSelected(f.getCell()),
|
||||
c=this.isSelectionEmpty(),d=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(a,e){this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!d&&!mxEvent.isMouseEvent(e.getEvent())&&(c&&null==e.getCell()&&this.isSelectionEmpty()||b&&this.isCellSelected(e.getCell())));mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,
|
||||
arguments)})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this.editingCell);return null!=a&&1==a.style.html};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var a=window.getSelection();if(a.getRangeAt&&a.rangeCount){for(var b=[],c=0,d=a.rangeCount;c<d;++c)b.push(a.getRangeAt(c));return b}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();return null};mxCellEditor.prototype.restoreSelection=
|
||||
function(a){try{if(a)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var b=0,c=a.length;b<c;++b)sel.addRange(a[b])}else document.selection&&a.select&&a.select()}catch(I){}};var e=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(a){null!=a.text&&(a.text.replaceLinefeeds="0"!=mxUtils.getValue(a.style,"nl2Br","1"));e.apply(this,arguments)};var f=mxConstraintHandler.prototype.update;mxConstraintHandler.prototype.update=function(a,b){this.isKeepFocusEvent(a)||
|
||||
!mxEvent.isAltDown(a.getEvent())?f.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(a){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var g=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(a,b){g.apply(this,arguments);var c=this.graph.view.getState(a);this.textarea.className=null!=c&&1==c.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";
|
||||
this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(a);var c=this.graph.getModel().getParent(a),d=this.graph.getCellGeometry(a);this.graph.getModel().isEdge(c)&&null!=d&&d.relative||this.graph.getModel().isEdge(a)?mxClient.IS_QUIRKS?this.textarea.style.border="gray dotted 1px":this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":"":mxClient.IS_QUIRKS&&(this.textarea.style.outline="none",this.textarea.style.border=
|
||||
"")};var h=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(a){function b(a,c){c.originalNode=a;a=a.firstChild;for(var d=c.firstChild;null!=a&&null!=d;)b(a,d),a=a.nextSibling,d=d.nextSibling;return c}function c(a,b){if(null!=a)if(b.originalNode!=a)d(a);else for(a=a.firstChild,b=b.firstChild;null!=a;){var e=a.nextSibling;null==b?d(a):(c(a,b),b=b.nextSibling);a=e}}function d(a){for(var b=a.firstChild;null!=b;){var c=b.nextSibling;d(b);b=c}1==a.nodeType&&("BR"===
|
||||
a.nodeName||null!=a.firstChild)||3==a.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(a)).length?(3==a.nodeType&&mxUtils.setTextContent(a,mxUtils.getTextContent(a).replace(/\n|\r/g,"")),1==a.nodeType&&(a.removeAttribute("style"),a.removeAttribute("class"),a.removeAttribute("width"),a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.removeAttribute("border"))):a.parentNode.removeChild(a)}h.apply(this,arguments);mxClient.IS_QUIRKS||7===document.documentMode||8===document.documentMode||
|
||||
mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(a){var d=b(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){c(this.textarea,d)}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this.editingCell),b=null!=a&&"0"!=mxUtils.getValue(a.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){h=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);0<h.length&&"\n"==h.charAt(h.length-1)&&(h=h.substring(0,
|
||||
h.length-1));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"<br/>"):h,!0);this.textarea.className="mxCellEditor geContentEditable";var d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style,
|
||||
mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,a=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+"px";this.textarea.style.textDecoration=a?"underline":"";this.textarea.style.fontWeight=f?"bold":"normal";this.textarea.style.fontStyle=
|
||||
g?"italic":"";this.textarea.style.fontFamily=b;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");var h=mxUtils.htmlEntities(this.textarea.innerHTML);
|
||||
mxClient.IS_QUIRKS||8==document.documentMode||(h=mxUtils.replaceTrailingNewlines(h,"<div><br></div>"));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"").replace(/<br\s*.?>/g,"<br>"):h,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var d=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+"px";this.textarea.style.textDecoration="";
|
||||
this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.padding="2px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=c;this.resize()};var k=mxCellEditor.prototype.resize;mxCellEditor.prototype.resize=function(a,
|
||||
b){if(null!=this.textarea)if(a=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=a){var c=a.view.scale;this.bounds=mxRectangle.fromRectangle(a);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var d=null!=a.text?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,mxConstants.ALIGN_MIDDLE)));
|
||||
this.bounds.x+=d.x*this.bounds.width;this.bounds.y+=d.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*c);this.textarea.clientWidth<
|
||||
this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/c)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*c);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxClient.IS_VML?this.textarea.style.zoom=c:mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")")}else this.textarea.style.height="",this.textarea.style.overflow="",
|
||||
k.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(a,b){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var c=this.graph.getEditingValue(a.cell,b);"1"==mxUtils.getValue(a.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));return c=this.graph.sanitizeHtml(c,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=
|
||||
null!=d&&(a[c].setAttribute("rel","nofollow noopener noreferrer"),a[c].setAttribute("href",d),null!=b&&mxEvent.addGestureListeners(a[c],null,null,b))}});this.model.addListener(mxEvent.CHANGE,d);d();var e=this.container.style.cursor,f=this.getTolerance(),g=this,h={currentState:null,currentLink:null,highlight:null!=a&&""!=a&&a!=mxConstants.NONE?new mxCellHighlight(g,a,4):null,startX:0,startY:0,scrollLeft:0,scrollTop:0,updateCurrentState:function(a){var b=a.sourceState;if(null==b||null==g.getLinkForCell(b.cell))a=
|
||||
g.getCellAt(a.getGraphX(),a.getGraphY(),null,null,null,function(a,b,c){return null==g.getLinkForCell(a.cell)}),b=g.view.getState(a);b!=this.currentState&&(null!=this.currentState&&this.clear(),this.currentState=b,null!=this.currentState&&this.activate(this.currentState))},mouseDown:function(a,b){this.startX=b.getGraphX();this.startY=b.getGraphY();this.scrollLeft=g.container.scrollLeft;this.scrollTop=g.container.scrollTop;null==this.currentLink&&"auto"==g.container.style.overflow&&(g.container.style.cursor=
|
||||
"move");this.updateCurrentState(b)},mouseMove:function(a,b){if(g.isMouseDown){if(null!=this.currentLink){var c=Math.abs(this.startX-b.getGraphX()),d=Math.abs(this.startY-b.getGraphY());(c>f||d>f)&&this.clear()}}else{for(c=b.getSource();null!=c&&"a"!=c.nodeName.toLowerCase();)c=c.parentNode;null!=c?this.clear():(null!=g.tooltipHandler&&null!=this.currentLink&&null!=this.currentState&&g.tooltipHandler.reset(b,!0,this.currentState),(null==this.currentState||b.getState()!=this.currentState&&null!=b.sourceState||
|
||||
!g.intersects(this.currentState,b.getGraphX(),b.getGraphY()))&&this.updateCurrentState(b))}},mouseUp:function(a,d){for(var e=d.getSource(),h=d.getEvent();null!=e&&"a"!=e.nodeName.toLowerCase();)e=e.parentNode;null==e&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&(null==d.sourceState||!d.isSource(d.sourceState.control))&&((mxEvent.isLeftMouseButton(h)||mxEvent.isMiddleMouseButton(h))&&!mxEvent.isPopupTrigger(h)||mxEvent.isTouchEvent(h))&&(null!=
|
||||
this.currentLink?(e=g.isBlankLink(this.currentLink),"data:"!==this.currentLink.substring(0,5)&&e||null==b||b(h,this.currentLink),mxEvent.isConsumed(h)||(h=mxEvent.isMiddleMouseButton(h)?"_blank":e?g.linkTarget:"_top",g.openLink(this.currentLink,h),d.consume())):null!=c&&!d.isConsumed()&&Math.abs(this.scrollLeft-g.container.scrollLeft)<f&&Math.abs(this.scrollTop-g.container.scrollTop)<f&&Math.abs(this.startX-d.getGraphX())<f&&Math.abs(this.startY-d.getGraphY())<f&&c(d.getEvent()));this.clear()},activate:function(a){this.currentLink=
|
||||
g.getAbsoluteUrl(g.getLinkForCell(a.cell));null!=this.currentLink&&(g.container.style.cursor="pointer",null!=this.highlight&&this.highlight.highlight(a))},clear:function(){null!=g.container&&(g.container.style.cursor=e);this.currentLink=this.currentState=null;null!=this.highlight&&this.highlight.hide();null!=g.tooltipHandler&&g.tooltipHandler.hide()}};g.click=function(a){};g.addMouseListener(h);mxEvent.addListener(document,"mouseleave",function(a){h.clear()})};Graph.prototype.duplicateCells=function(a,
|
||||
b){a=null!=a?a:this.getSelectionCells();b=null!=b?b:!0;a=this.model.getTopmostCells(a);var c=this.getModel(),d=this.gridSize,e=[];c.beginUpdate();try{for(var f=this.cloneCells(a,!1),g=0;g<a.length;g++){var h=c.getParent(a[g]),k=this.moveCells([f[g]],d,d,!1)[0];e.push(k);if(b)c.add(h,f[g]);else{var l=h.getIndex(a[g]);c.add(h,f[g],l+1)}}}finally{c.endUpdate()}return e};Graph.prototype.insertImage=function(a,b,c){if(null!=a){for(var d=this.cellEditor.textarea.getElementsByTagName("img"),e=[],f=0;f<d.length;f++)e.push(d[f]);
|
||||
document.execCommand("insertimage",!1,a);a=this.cellEditor.textarea.getElementsByTagName("img");if(a.length==e.length+1)for(f=a.length-1;0<=f;f--)if(0==f||a[f]!=e[f-1]){a[f].setAttribute("width",b);a[f].setAttribute("height",c);break}}};Graph.prototype.insertLink=function(a){if(0==a.length)document.execCommand("unlink",!1);else if(mxClient.IS_FF){for(var b=this.cellEditor.textarea.getElementsByTagName("a"),c=[],d=0;d<b.length;d++)c.push(b[d]);document.execCommand("createlink",!1,mxUtils.trim(a));
|
||||
b=this.cellEditor.textarea.getElementsByTagName("a");if(b.length==c.length+1)for(d=b.length-1;0<=d;d--)if(b[d]!=c[d-1]){for(b=b[d].getElementsByTagName("a");0<b.length;){for(c=b[0].parentNode;null!=b[0].firstChild;)c.insertBefore(b[0].firstChild,b[0]);c.removeChild(b[0])}break}}else document.execCommand("createlink",!1,mxUtils.trim(a))};Graph.prototype.isCellResizable=function(a){var b=mxGraph.prototype.isCellResizable.apply(this,arguments),c=this.view.getState(a),c=null!=c?c.style:this.getCellStyle(a);
|
||||
return b||"0"!=mxUtils.getValue(c,mxConstants.STYLE_RESIZABLE,"1")&&"wrap"==c[mxConstants.STYLE_WHITE_SPACE]};Graph.prototype.distributeCells=function(a,b){null==b&&(b=this.getSelectionCells());if(null!=b&&1<b.length){for(var c=[],d=null,e=null,f=0;f<b.length;f++)if(this.getModel().isVertex(b[f])){var g=this.view.getState(b[f]);if(null!=g){var h=a?g.getCenterX():g.getCenterY(),d=null!=d?Math.max(d,h):h,e=null!=e?Math.min(e,h):h;c.push(g)}}if(2<c.length){c.sort(function(b,c){return a?b.x-c.x:b.y-c.y});
|
||||
g=this.view.translate;h=this.view.scale;e=e/h-(a?g.x:g.y);d=d/h-(a?g.x:g.y);this.getModel().beginUpdate();try{for(var k=(d-e)/(c.length-1),d=e,f=1;f<c.length-1;f++){var l=this.view.getState(this.model.getParent(c[f].cell)),m=this.getCellGeometry(c[f].cell),d=d+k;null!=m&&null!=l&&(m=m.clone(),a?m.x=Math.round(d-m.width/2)-l.origin.x:m.y=Math.round(d-m.height/2)-l.origin.y,this.getModel().setGeometry(c[f].cell,m))}}finally{this.getModel().endUpdate()}}}return b};Graph.prototype.isCloneEvent=function(a){return mxClient.IS_MAC&&
|
||||
mxEvent.isMetaDown(a)||mxEvent.isControlDown(a)};Graph.prototype.encodeCells=function(a){for(var b=this.cloneCells(a),c=new mxDictionary,d=0;d<a.length;d++)c.put(a[d],!0);for(d=0;d<b.length;d++){var e=this.view.getState(a[d]);if(null!=e){var f=this.getCellGeometry(b[d]);null==f||!f.relative||this.model.isEdge(a[d])||c.get(this.model.getParent(a[d]))||(f.relative=!1,f.x=e.x/e.view.scale-e.view.translate.x,f.y=e.y/e.view.scale-e.view.translate.y)}}c=new mxCodec;e=new mxGraphModel;f=e.getChildAt(e.getRoot(),
|
||||
0);for(d=0;d<a.length;d++)e.add(f,b[d]);return c.encode(e)};Graph.prototype.createSvgImageExport=function(){var a=new mxImageExport;a.getLinkForCellState=mxUtils.bind(this,function(a,b){return this.getLinkForCell(a.cell)});return a};Graph.prototype.getSvg=function(a,b,c,d,e,f,g,h){var k=this.useCssTransforms;k&&(this.useCssTransforms=!1,this.view.revalidate(),this.sizeDidChange());try{b=null!=b?b:1;c=null!=c?c:0;e=null!=e?e:!0;f=null!=f?f:!0;g=null!=g?g:!0;var l=f||d?this.getGraphBounds():this.getBoundingBox(this.getSelectionCells());
|
||||
if(null==l)throw Error(mxResources.get("drawingEmpty"));var m=this.view.scale,n=mxUtils.createXmlDocument(),p=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"svg"):n.createElement("svg");null!=a&&(null!=p.style?p.style.backgroundColor=a:p.setAttribute("style","background-color:"+a));null==n.createElementNS?(p.setAttribute("xmlns",mxConstants.NS_SVG),p.setAttribute("xmlns:xlink",mxConstants.NS_XLINK)):p.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",mxConstants.NS_XLINK);
|
||||
a=b/m;p.setAttribute("width",Math.max(1,Math.ceil(l.width*a)+2*c)+"px");p.setAttribute("height",Math.max(1,Math.ceil(l.height*a)+2*c)+"px");p.setAttribute("version","1.1");d=p;if(e){var v=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"g"):n.createElement("g");v.setAttribute("transform","translate(0.5,0.5)");p.appendChild(v);n.appendChild(p);d=v}else n.appendChild(p);var q=this.createSvgCanvas(d);q.foOffset=e?-.5:0;q.textOffset=e?-.5:0;q.imageOffset=e?-.5:0;q.translate(Math.floor((c/
|
||||
b-l.x)/m),Math.floor((c/b-l.y)/m));var r=document.createElement("textarea"),t=q.createAlternateContent;q.createAlternateContent=function(a,b,c,d,e,f,g,h,k,l,m,n,p){var v=this.state;if(null!=this.foAltText&&(0==d||0!=v.fontSize&&f.length<5*d/v.fontSize)){var q=this.createElement("text");q.setAttribute("x",Math.round(d/2));q.setAttribute("y",Math.round((e+v.fontSize)/2));q.setAttribute("fill",v.fontColor||"black");q.setAttribute("text-anchor","middle");q.setAttribute("font-size",Math.round(v.fontSize)+
|
||||
"px");q.setAttribute("font-family",v.fontFamily);(v.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&q.setAttribute("font-weight","bold");(v.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&q.setAttribute("font-style","italic");(v.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&q.setAttribute("text-decoration","underline");try{return r.innerHTML=f,q.textContent=r.value,q}catch(Aa){return t.apply(this,arguments)}}else return t.apply(this,arguments)};var u=this.backgroundImage;
|
||||
if(null!=u){b=m/b;var G=this.view.translate,Q=new mxRectangle(G.x*b,G.y*b,u.width*b,u.height*b);mxUtils.intersects(l,Q)&&q.image(G.x,G.y,u.width,u.height,u.src,!0)}q.scale(a);q.textEnabled=g;h=null!=h?h:this.createSvgImageExport();var w=h.drawCellState;h.drawCellState=function(a,b){for(var c=a.view.graph,d=c.isCellSelected(a.cell),e=c.model.getParent(a.cell);!f&&!d&&null!=e;)d=c.isCellSelected(e),e=c.model.getParent(e);(f||d)&&w.apply(this,arguments)};h.drawState(this.getView().getState(this.model.root),
|
||||
q);return p}finally{k&&(this.useCssTransforms=!0,this.view.revalidate(),this.sizeDidChange())}};Graph.prototype.createSvgCanvas=function(a){return new mxSvgCanvas2D(a)};Graph.prototype.getSelectedElement=function(){var a=null;if(window.getSelection){var b=window.getSelection();b.getRangeAt&&b.rangeCount&&(a=b.getRangeAt(0).commonAncestorContainer)}else document.selection&&(a=document.selection.createRange().parentElement());return a};Graph.prototype.getParentByName=function(a,b,c){for(;null!=a&&a.nodeName!=
|
||||
b;){if(a==c)return null;a=a.parentNode}return a};Graph.prototype.selectNode=function(a){var b=null;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){var c=document.createRange();c.selectNode(a);b.removeAllRanges();b.addRange(c)}}else(b=document.selection)&&"Control"!=b.type&&(a=b.createRange(),a.collapse(!0),c=b.createRange(),c.setEndPoint("StartToStart",a),c.select())};Graph.prototype.insertRow=function(a,b){for(var c=a.tBodies[0],d=c.rows[0].cells,e=0,f=0;f<d.length;f++)var g=
|
||||
d[f].getAttribute("colspan"),e=e+(null!=g?parseInt(g):1);c=c.insertRow(b);for(f=0;f<e;f++)mxUtils.br(c.insertCell(-1));return c.cells[0]};Graph.prototype.deleteRow=function(a,b){a.tBodies[0].deleteRow(b)};Graph.prototype.insertColumn=function(a,b){var c=a.tHead;if(null!=c)for(var d=0;d<c.rows.length;d++){var e=document.createElement("th");c.rows[d].appendChild(e);mxUtils.br(e)}c=a.tBodies[0];for(d=0;d<c.rows.length;d++)e=c.rows[d].insertCell(b),mxUtils.br(e);return c.rows[0].cells[0<=b?b:c.rows[0].cells.length-
|
||||
1]};Graph.prototype.deleteColumn=function(a,b){if(0<=b)for(var c=a.tBodies[0].rows,d=0;d<c.length;d++)c[d].cells.length>b&&c[d].deleteCell(b)};Graph.prototype.pasteHtmlAtCaret=function(a){var b;if(window.getSelection){if(b=window.getSelection(),b.getRangeAt&&b.rangeCount){b=b.getRangeAt(0);b.deleteContents();var c=document.createElement("div");c.innerHTML=a;a=document.createDocumentFragment();for(var d;d=c.firstChild;)lastNode=a.appendChild(d);b.insertNode(a)}}else(b=document.selection)&&"Control"!=
|
||||
b.type&&b.createRange().pasteHTML(a)};Graph.prototype.createLinkForHint=function(a,b){function c(a,b){a.length>b&&(a=a.substring(0,Math.round(b/2))+"..."+a.substring(a.length-Math.round(b/4)));return a}a=null!=a?a:"javascript:void(0);";if(null==b||0==b.length)b=this.isCustomLink(a)?this.getLinkTitle(a):a;var d=document.createElement("a");d.setAttribute("rel","nofollow noopener noreferrer");d.setAttribute("href",this.getAbsoluteUrl(a));d.setAttribute("title",c(this.isCustomLink(a)?this.getLinkTitle(a):
|
||||
a,80));null!=this.linkTarget&&d.setAttribute("target",this.linkTarget);mxUtils.write(d,c(b,40));this.isCustomLink(a)&&mxEvent.addListener(d,"click",mxUtils.bind(this,function(b){this.customLinkClicked(a);mxEvent.consume(b)}));return d};Graph.prototype.initTouch=function(){this.connectionHandler.marker.isEnabled=function(){return null!=this.graph.connectionHandler.first};this.addListener(mxEvent.START_EDITING,function(a,b){this.popupMenuHandler.hideMenu()});var a=this.updateMouseEvent;this.updateMouseEvent=
|
||||
function(b){b=a.apply(this,arguments);if(mxEvent.isTouchEvent(b.getEvent())&&null==b.getState()){var c=this.getCellAt(b.graphX,b.graphY);null!=c&&this.isSwimlane(c)&&this.hitsSwimlaneContent(c,b.graphX,b.graphY)||(b.state=this.view.getState(c),null!=b.state&&null!=b.state.shape&&(this.container.style.cursor=b.state.shape.node.style.cursor))}null==b.getState()&&this.isEnabled()&&(this.container.style.cursor="default");return b};var b=!1,c=!1,d=!1,e=this.fireMouseEvent;this.fireMouseEvent=function(a,
|
||||
f,g){a==mxEvent.MOUSE_DOWN&&(f=this.updateMouseEvent(f),b=this.isCellSelected(f.getCell()),c=this.isSelectionEmpty(),d=this.popupMenuHandler.isMenuShowing());e.apply(this,arguments)};this.popupMenuHandler.mouseUp=mxUtils.bind(this,function(a,e){this.popupMenuHandler.popupTrigger=!this.isEditing()&&this.isEnabled()&&(null==e.getState()||!e.isSource(e.getState().control))&&(this.popupMenuHandler.popupTrigger||!d&&!mxEvent.isMouseEvent(e.getEvent())&&(c&&null==e.getCell()&&this.isSelectionEmpty()||b&&
|
||||
this.isCellSelected(e.getCell())));mxPopupMenuHandler.prototype.mouseUp.apply(this.popupMenuHandler,arguments)})};mxCellEditor.prototype.isContentEditing=function(){var a=this.graph.view.getState(this.editingCell);return null!=a&&1==a.style.html};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var a=window.getSelection();if(a.getRangeAt&&a.rangeCount){for(var b=[],c=0,d=a.rangeCount;c<d;++c)b.push(a.getRangeAt(c));return b}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();
|
||||
return null};mxCellEditor.prototype.restoreSelection=function(a){try{if(a)if(window.getSelection){sel=window.getSelection();sel.removeAllRanges();for(var b=0,c=a.length;b<c;++b)sel.addRange(a[b])}else document.selection&&a.select&&a.select()}catch(I){}};var e=mxCellRenderer.prototype.initializeLabel;mxCellRenderer.prototype.initializeLabel=function(a){null!=a.text&&(a.text.replaceLinefeeds="0"!=mxUtils.getValue(a.style,"nl2Br","1"));e.apply(this,arguments)};var f=mxConstraintHandler.prototype.update;
|
||||
mxConstraintHandler.prototype.update=function(a,b){this.isKeepFocusEvent(a)||!mxEvent.isAltDown(a.getEvent())?f.apply(this,arguments):this.reset()};mxGuide.prototype.createGuideShape=function(a){return new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH)};mxCellEditor.prototype.escapeCancelsEditing=!1;var g=mxCellEditor.prototype.startEditing;mxCellEditor.prototype.startEditing=function(a,b){g.apply(this,arguments);var c=this.graph.view.getState(a);this.textarea.className=null!=
|
||||
c&&1==c.style.html?"mxCellEditor geContentEditable":"mxCellEditor mxPlainTextEditor";this.codeViewMode=!1;this.switchSelectionState=null;this.graph.setSelectionCell(a);var c=this.graph.getModel().getParent(a),d=this.graph.getCellGeometry(a);this.graph.getModel().isEdge(c)&&null!=d&&d.relative||this.graph.getModel().isEdge(a)?mxClient.IS_QUIRKS?this.textarea.style.border="gray dotted 1px":this.textarea.style.outline=mxClient.IS_IE||mxClient.IS_IE11||mxClient.IS_FF&&mxClient.IS_WIN?"gray dotted 1px":
|
||||
"":mxClient.IS_QUIRKS&&(this.textarea.style.outline="none",this.textarea.style.border="")};var h=mxCellEditor.prototype.installListeners;mxCellEditor.prototype.installListeners=function(a){function b(a,c){c.originalNode=a;a=a.firstChild;for(var d=c.firstChild;null!=a&&null!=d;)b(a,d),a=a.nextSibling,d=d.nextSibling;return c}function c(a,b){if(null!=a)if(b.originalNode!=a)d(a);else for(a=a.firstChild,b=b.firstChild;null!=a;){var e=a.nextSibling;null==b?d(a):(c(a,b),b=b.nextSibling);a=e}}function d(a){for(var b=
|
||||
a.firstChild;null!=b;){var c=b.nextSibling;d(b);b=c}1==a.nodeType&&("BR"===a.nodeName||null!=a.firstChild)||3==a.nodeType&&0!=mxUtils.trim(mxUtils.getTextContent(a)).length?(3==a.nodeType&&mxUtils.setTextContent(a,mxUtils.getTextContent(a).replace(/\n|\r/g,"")),1==a.nodeType&&(a.removeAttribute("style"),a.removeAttribute("class"),a.removeAttribute("width"),a.removeAttribute("cellpadding"),a.removeAttribute("cellspacing"),a.removeAttribute("border"))):a.parentNode.removeChild(a)}h.apply(this,arguments);
|
||||
mxClient.IS_QUIRKS||7===document.documentMode||8===document.documentMode||mxEvent.addListener(this.textarea,"paste",mxUtils.bind(this,function(a){var d=b(this.textarea,this.textarea.cloneNode(!0));window.setTimeout(mxUtils.bind(this,function(){c(this.textarea,d)}),0)}))};mxCellEditor.prototype.toggleViewMode=function(){var a=this.graph.view.getState(this.editingCell),b=null!=a&&"0"!=mxUtils.getValue(a.style,"nl2Br","1"),c=this.saveSelection();if(this.codeViewMode){h=mxUtils.extractTextWithWhitespace(this.textarea.childNodes);
|
||||
0<h.length&&"\n"==h.charAt(h.length-1)&&(h=h.substring(0,h.length-1));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"<br/>"):h,!0);this.textarea.className="mxCellEditor geContentEditable";var d=mxUtils.getValue(a.style,mxConstants.STYLE_FONTSIZE,mxConstants.DEFAULT_FONTSIZE),b=mxUtils.getValue(a.style,mxConstants.STYLE_FONTFAMILY,mxConstants.DEFAULT_FONTFAMILY),e=mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_LEFT),f=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_BOLD)==
|
||||
mxConstants.FONT_BOLD,g=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC,a=(mxUtils.getValue(a.style,mxConstants.STYLE_FONTSTYLE,0)&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+"px";this.textarea.style.textDecoration=a?"underline":"";this.textarea.style.fontWeight=
|
||||
f?"bold":"normal";this.textarea.style.fontStyle=g?"italic":"";this.textarea.style.fontFamily=b;this.textarea.style.textAlign=e;this.textarea.style.padding="0px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h,0==this.textarea.innerHTML.length&&(this.textarea.innerHTML=this.getEmptyLabelText(),this.clearOnChange=0<this.textarea.innerHTML.length));this.codeViewMode=!1}else{this.clearOnChange&&this.textarea.innerHTML==this.getEmptyLabelText()&&(this.clearOnChange=!1,this.textarea.innerHTML="");
|
||||
var h=mxUtils.htmlEntities(this.textarea.innerHTML);mxClient.IS_QUIRKS||8==document.documentMode||(h=mxUtils.replaceTrailingNewlines(h,"<div><br></div>"));h=this.graph.sanitizeHtml(b?h.replace(/\n/g,"").replace(/<br\s*.?>/g,"<br>"):h,!0);this.textarea.className="mxCellEditor mxPlainTextEditor";var d=mxConstants.DEFAULT_FONTSIZE;this.textarea.style.lineHeight=mxConstants.ABSOLUTE_LINE_HEIGHT?Math.round(d*mxConstants.LINE_HEIGHT)+"px":mxConstants.LINE_HEIGHT;this.textarea.style.fontSize=Math.round(d)+
|
||||
"px";this.textarea.style.textDecoration="";this.textarea.style.fontWeight="normal";this.textarea.style.fontStyle="";this.textarea.style.fontFamily=mxConstants.DEFAULT_FONTFAMILY;this.textarea.style.textAlign="left";this.textarea.style.padding="2px";this.textarea.innerHTML!=h&&(this.textarea.innerHTML=h);this.codeViewMode=!0}this.textarea.focus();null!=this.switchSelectionState&&this.restoreSelection(this.switchSelectionState);this.switchSelectionState=c;this.resize()};var k=mxCellEditor.prototype.resize;
|
||||
mxCellEditor.prototype.resize=function(a,b){if(null!=this.textarea)if(a=this.graph.getView().getState(this.editingCell),this.codeViewMode&&null!=a){var c=a.view.scale;this.bounds=mxRectangle.fromRectangle(a);if(0==this.bounds.width&&0==this.bounds.height){this.bounds.width=160*c;this.bounds.height=60*c;var d=null!=a.text?a.text.margin:null;null==d&&(d=mxUtils.getAlignmentAsPoint(mxUtils.getValue(a.style,mxConstants.STYLE_ALIGN,mxConstants.ALIGN_CENTER),mxUtils.getValue(a.style,mxConstants.STYLE_VERTICAL_ALIGN,
|
||||
mxConstants.ALIGN_MIDDLE)));this.bounds.x+=d.x*this.bounds.width;this.bounds.y+=d.y*this.bounds.height}this.textarea.style.width=Math.round((this.bounds.width-4)/c)+"px";this.textarea.style.height=Math.round((this.bounds.height-4)/c)+"px";this.textarea.style.overflow="auto";this.textarea.clientHeight<this.textarea.offsetHeight&&(this.textarea.style.height=Math.round(this.bounds.height/c)+(this.textarea.offsetHeight-this.textarea.clientHeight)+"px",this.bounds.height=parseInt(this.textarea.style.height)*
|
||||
c);this.textarea.clientWidth<this.textarea.offsetWidth&&(this.textarea.style.width=Math.round(this.bounds.width/c)+(this.textarea.offsetWidth-this.textarea.clientWidth)+"px",this.bounds.width=parseInt(this.textarea.style.width)*c);this.textarea.style.left=Math.round(this.bounds.x)+"px";this.textarea.style.top=Math.round(this.bounds.y)+"px";mxClient.IS_VML?this.textarea.style.zoom=c:mxUtils.setPrefixedStyle(this.textarea.style,"transform","scale("+c+","+c+")")}else this.textarea.style.height="",this.textarea.style.overflow=
|
||||
"",k.apply(this,arguments)};mxCellEditorGetInitialValue=mxCellEditor.prototype.getInitialValue;mxCellEditor.prototype.getInitialValue=function(a,b){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetInitialValue.apply(this,arguments);var c=this.graph.getEditingValue(a.cell,b);"1"==mxUtils.getValue(a.style,"nl2Br","1")&&(c=c.replace(/\n/g,"<br/>"));return c=this.graph.sanitizeHtml(c,!0)};mxCellEditorGetCurrentValue=mxCellEditor.prototype.getCurrentValue;mxCellEditor.prototype.getCurrentValue=
|
||||
function(a){if("0"==mxUtils.getValue(a.style,"html","0"))return mxCellEditorGetCurrentValue.apply(this,arguments);var b=this.graph.sanitizeHtml(this.textarea.innerHTML,!0);return b="1"==mxUtils.getValue(a.style,"nl2Br","1")?b.replace(/\r\n/g,"<br/>").replace(/\n/g,"<br/>"):b.replace(/\r\n/g,"").replace(/\n/g,"")};var l=mxCellEditor.prototype.stopEditing;mxCellEditor.prototype.stopEditing=function(a){this.codeViewMode&&this.toggleViewMode();l.apply(this,arguments);this.focusContainer()};mxCellEditor.prototype.focusContainer=
|
||||
function(){try{this.graph.container.focus()}catch(v){}};var m=mxCellEditor.prototype.applyValue;mxCellEditor.prototype.applyValue=function(a,b){this.graph.getModel().beginUpdate();try{if(m.apply(this,arguments),this.graph.isCellDeletable(a.cell)&&0==this.graph.model.getChildCount(a.cell)){var c=mxUtils.getValue(a.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE),d=mxUtils.getValue(a.style,mxConstants.STYLE_FILLCOLOR,mxConstants.NONE);""==b&&c==mxConstants.NONE&&d==mxConstants.NONE&&this.graph.removeCells([a.cell],
|
||||
!1)}}finally{this.graph.getModel().endUpdate()}};mxCellEditor.prototype.getBackgroundColor=function(a){var b=null;if(this.graph.getModel().isEdge(a.cell)||this.graph.getModel().isEdge(this.graph.getModel().getParent(a.cell)))b=mxUtils.getValue(a.style,mxConstants.STYLE_LABEL_BACKGROUNDCOLOR,null),b==mxConstants.NONE&&(b=null);return b};mxCellEditor.prototype.getMinimumSize=function(a){var b=this.graph.getView().scale;return new mxRectangle(0,0,null==a.text?30:a.text.size*b+20,30)};var n=mxGraphHandler.prototype.moveCells;
|
||||
|
|
2
src/main/webapp/js/stencils.min.js
vendored
2
src/main/webapp/js/stencils.min.js
vendored
File diff suppressed because one or more lines are too long
795
src/main/webapp/js/viewer.min.js
vendored
795
src/main/webapp/js/viewer.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -102,7 +102,10 @@ Draw.loadPlugin(function(ui)
|
|||
|
||||
function isDeskLink(link)
|
||||
{
|
||||
return config != null && link.substring(0, deskDomain.length) == deskDomain;
|
||||
var dl = deskDomain.length;
|
||||
|
||||
return config != null && link.substring(0, dl) == deskDomain &&
|
||||
link.substring(dl, dl + 18) == '/helpdesk/tickets/';
|
||||
};
|
||||
|
||||
function getIdForDeskLink(link)
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -88,6 +88,9 @@ html body .geDialog, html body div.mxWindow {
|
|||
box-shadow:none;
|
||||
color:#cccccc;
|
||||
}
|
||||
html body .geActivePage {
|
||||
border-bottom: 3px solid #DF6C0C !important;
|
||||
}
|
||||
.geHint {
|
||||
-webkit-box-shadow: 1px 1px 1px 0px #ccc;
|
||||
-moz-box-shadow: 1px 1px 1px 0px #ccc;
|
||||
|
|
|
@ -715,4 +715,45 @@ html td.mxWindowTitle {
|
|||
font-size:12px;
|
||||
color:rgb(112, 112, 112);
|
||||
padding:4px;
|
||||
}
|
||||
}
|
||||
|
||||
.propHeader, .propRow {
|
||||
border: 1px solid #e9e9e9;
|
||||
}
|
||||
|
||||
.propHeader>.propHeaderCell {
|
||||
border-top: 0;
|
||||
border-bottom: 0;
|
||||
text-align: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.propHeader>.propHeaderCell:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.propHeader>.propHeaderCell:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.propHeader {
|
||||
background: #e5e5e5;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.propRowCell {
|
||||
border-left: 1px solid #f3f3f3;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.propRow>.propRowCell {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.propRowAtl>.propRowCell {
|
||||
background: #fcfcfc;
|
||||
}
|
||||
|
||||
.propEditor input:invalid {
|
||||
border: 1px solid red;
|
||||
}
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mxfile userAgent="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" version="@DRAWIO-VERSION@" editor="www.draw.io" type="google"><diagram name="Page-1" id="822b0af5-4adb-64df-f703-e8dfc1f81529">7Vxbc9o4FP41PCZjWfLtsU1L92F3JrPZS/u049gCNDEWI0SA/vqVsGSQ5VA7YDCteYl1JMvmfN+5SEdkBB/mmy8sXsz+oCnORq6Tbkbw08h1AYJI/JGSbSFBUVQIpoykatBe8ES+YyV0lHRFUrw0BnJKM04WpjCheY4TbshixujaHDahmfnURTzFluApiTNb+i9J+UxJgePsO37DZDpTjw491fEcJy9TRle5et7IhZPdp+iex3ouNX45i1O6PhDBzyP4wCjlxdV884AzqVuttuK+8Ru95XsznPMmNwRpBOGzE6VR4Hk4Se6AQu41zlZKGX/iJV2xBO8UyfCSq1fnW60uzkicT2Xr43pGOH5axInsWgt2CNmMzzPRAuJypxosH+6IVvntZSOhc5LoDs7oS6l6eeOE5nwcz0kmGfUPZmmcx0KcEibwJzQX0pwyOfxjFj/j7JEuiZInQheYiY5XzDgRIP9eGfBMOadzMSDOyLT2jg+qg1P5fWwlK73L4XhzIFJK/4LpHHO2FUNUbwgVAZSBuLq93tPN07LZAdM8GCiaK4pPy7n3MIsLhXRT1F0L9b+XQgMD4mdDHDkm4pFrAe6Gvg04RE4XgEMLcAtjMYXwt1eA+BzaDqChbej6lroBcm11R6gDbds+1VL2j5m6XBSRbkI2UteHANSTttD3A80o29lKjgt0FvKR881Uhu77hAhT3twXVkXZ9j9h9q87S2iIancYAsc3QfSRhaHv2RCG4b3XAYhe70GckAz3Cj+vgh8AFoABqLHBLkKcXxvhln3DcLV7qR6g52mwtAeFkW196L7G/rwurC/qvfVxusasR+ZXBRBEsJn77AI+0MB73nK+EQWRoWyE7Hy+XPQdaht0k97Z3u4TWcbPmdCa66wGx3c87TAzdRQE1/R8IBhc36kQQmhnHpfzfWFt6jEsrs+3uAZeaAIe2Mu9S66uG2QrtxztgF/J7CGww1398roLdeu4OuT2jfGLKsm9W5MbXi7Eld9gCHHvhhDUZSmXCnE1eJkaOsBiF08+lnWSqvp5zPgHWcKpyMZEvs5uMpynesRzRpOXQqQGAAvYkQsd8RmP23hJKVZ1KeCqdmVCxzkGpaqZHA8Q4otNMX9rkEIKp0axyqYEw1nMyatZuzovvnDAtxW+8MbwRXZ+It7qSTUVTm9CjjeEf5ViETGK1reBDBbOR8nQIy7YWzV/sZVcpqiH03w5IwuLMFd2AeOxAunsqAuw2farprpsfCu5nqxEQpCqvjfpcdwNhA2hV5H/zrl3gI7sKvjf6fy7MT3U9I+U5Pxw4RyZE5d1aT1HwXR1255l9kxetcJdXWkVSrFmErDH24NhCzlgeeSVq4VVAIwjD+KimLJyu56fTiZLzEdViyn1/k4jsjfg2hrRMdr9XAZ2DiNy2xuRj5BBHORd14baMj9yK8R3+0B8e7fyaZsnbEZz8n3H++aZZGkBzn0YhKYVIAi14BEzIl5Zrst2M1wr5+jGON6Xc6BuAg+EKDS5DU6zmY7JaO+8/oiMbdLegWgNiYZaE82NfL/XzLJ3eM/JrAPPF+1AO4z/XjR4vhMJ2T5bAFHF85Ws7idBob2lOhSdznyiMzSLIHV14gsWnaBrIW77oBsuOnmeb6g7qDlNVltzCqMutG0foB1qTkfhi8zVVuDWnOa8XMlJ/0JlKDm9G0EvCG0EL1VxgvYu5RDfznyoAjnmRgbyaw61XTDA2XtqP1WAAygwU0w/sl1k/akKvwt12zs5Q4Q7ip8HKhmKc9WDg9De/egbdn0LcRaEnn/Fg4P6xP2JVVl93ap8cOUK7JtYHl376yXQrZTddZg8tez+6wDs3xjA9i5M6zLg1az49ILf6ZXz4wcrmuz16Y2wpnt9sjCoA+WJlUC/+kOC6unXM5XAw6hSag96UAjUeWon1D+xNn5ls7gY9Zs6wpL60NX1W11Tfte5ktZnOGDl+L4+J35dBttbfB3VeORxeoPH0EGj99d42tP7YgH8rLS9QPy2dwk7ooCHkEmBwPd/YQq0DNqyQBdEFdcVnRbET3Euorn/Hz7F8P0/SoKf/wc=</diagram></mxfile>
|
||||
<mxfile userAgent="Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" version="@DRAWIO-VERSION@" editor="www.draw.io" type="google"><diagram name="Page-1" id="822b0af5-4adb-64df-f703-e8dfc1f81529">7Vxbc9o4FP41PCZjWfLtsU1L92F3JrPZS/u049gCNDEWI0SA/vqVsGSQ5VA7YDCteYl1JMvmfN+5SEdkBB/mmy8sXsz+oCnORq6Tbkbw08h1AYJI/JGSbSFBUVQIpoykatBe8ES+YyV0lHRFUrw0BnJKM04WpjCheY4TbshixujaHDahmfnURTzFluApiTNb+i9J+UxJgePsO37DZDpTjw491fEcJy9TRle5et7IhZPdp+iex3ouNX45i1O6PhDBzyP4wCjlxdV884AzqVuttuK+8Ru95XsznPMmNwRpBOGzE6VR4Hk4Se6AQu41zlZKGX/iJV2xBO8UyfCSq1fnW60uzkicT2Xr43pGOH5axInsWgt2CNmMzzPRAuJypxosH+6IVvntZSOhc5LoDs7oS6l6eeOE5nwcz0kmGfUPZmmcx0KcEibwJzQX0pwyOfxjFj/j7JEuiZInQheYiY5XzDgRIP9eGfBMOadzMSDOyLT2jg+qg1P5fWwlK73L4XhzIFJK/4LpHHO2FUNUbwgVAZSBuLq93tPN07LZAdM8GCiaK4pPy7n3MIsLhXRT1F0L9b+XQgMD4mdDHDkm4pFrAe6Gvg04RE4XgEMLcAtjMYXwt1eA+BzaDqChbej6lroBcm11R6gDbds+1VL2j5m6XBSRbkI2UteHANSTttD3A80o29lKjgt0FvKR881Uhu77hAhT3twXVkXZ9j9h9q87S2iIancYAsc3QfSRhaHv2RCG4b3XAYhe70GckAz3Cj+vgh8AFoABqLHBLkKcXxvhln3DcLV7qR6g52mwtAeFkW196L7G/rwurC/qvfVxusasR+ZXBRBEsJn77AI+0MB73nK+EQWRoWyE7Hy+XPQdaht0k97Z3u4TWcbPmdCa66wGx3c87TAzdRQE1/R8IBhc36kQQmhnHpfzfWFt6jEsrs+3uAZeaAIe2Mu9S66uG2QrtxztgF/J7CGww1398roLdeu4OuT2jfGLKsm9W5MbXi7Eld9gCHHvhhDUZSmXCnE1eJkaOsBiF08+lnWSqvp5zPgHWcKpyMZEvs5uMpynesRzRpOXQqQGAAvYkQsd8RmP23hJKVZ1KeCqdmVCxzkGpaqZHA8Q4otNMX9rkEIKp0axyqYEw1nMyatZuzovvnDAtxW+8MbwRXZ+It7qSTUVTm9CjjeEf5ViETGK1reBDBbOR8nQIy7YWzV/sZVcpqiH03w5IwuLMFd2AeOxAunsqAuw2farprpsfCu5nqxEQpCqvjfpcdwNhA2hV5H/zrl3gI7sKvjf6fy7MT3U9I+U5Pxw4RyZE5d1aT1HwXR1255l9kxetcJdXWkVSrFmErDH24NhCzlgeeSVq4VVAIwjD+KimLJyu56fTiZLzEdViyn1/k4jsjfg2hrRMdr9XAZ2DiNy2xuRj5BBHORd14baMj9yK8R3+0B8e7fyaZsnM0Zz8n3H++aZZGkBzn0YhKYVIAi14BEzIl5Zrst2M1wr5+jGON6Xc6BuAg+EKDS5DU6zmY7JaO+8/oiMbdLegWgNiYZaE82NfL/XzLJ3eM/JrAPPF+1AO4z/XjR4vhMJ2T5bAFHF85Ws7idBob2lOhSdznyiMzSLIHV14gsWnaBrIW77oBsuOnmeb6g7qDlNVltzCqMutG0foB1qTkfhi8zVVuDWnOa8XMlJ/0JlKDm9G0EvCG0EL1VxgvYu5RDfznyoAjnmRgbyaw61XTDA2XtqP1WAAygwU0w/sl1k/akKvwt12zs5Q4Q7ip8HKhmKc9WDg9De/egbdn0LcRaEnn/Fg4P6xP2JVVl93ap8cOUK7JtYHl376yXQrZTddZg8tez+6wDs3xjA9i5M6zLg1az49ILf6ZXz4wcrmuz16Y2wpnt9sjCoA+WJlUC/+kOC6unXM5XAw6hSag96UAjUeWon1D+xNn5ls7gY9Zs6wpL60NX1W11Tfte5ktZnOGDl+L4+J35dBttbfB3VeORxeoPH0EGj99d42tP7YgH8rLS9QPy2dwk7ooCHkEmBwPd/YQq0DNqyQBdEFdcVnRbET3Euorn/Hz7F8P0/SoKf/wc=</diagram></mxfile>
|
Loading…
Reference in a new issue