removing VML support from client side
This commit is contained in:
@@ -112,14 +112,6 @@
|
||||
<filelist dir="${basedir}/src/main/javascript/" files="footer.js"/>
|
||||
</concat>
|
||||
|
||||
<concat destfile="${basedir}/target/classes/mindplot.vml.js" append="false">
|
||||
|
||||
<filelist dir="${basedir}/../web2d/target/classes/"
|
||||
files="web2d.vml-min.js"/>
|
||||
<filelist dir="${basedir}/target/tmp/"
|
||||
files="mindplot.js"/>
|
||||
</concat>
|
||||
|
||||
<concat destfile="${basedir}/target/classes/mindplot.svg.js" append="false">
|
||||
|
||||
<filelist dir="${basedir}/../web2d/target/classes/"
|
||||
@@ -215,13 +207,6 @@
|
||||
|
||||
</includes>
|
||||
</aggregation>
|
||||
<aggregation>
|
||||
<output>${basedir}/target/classes/mindplot.vml-min.js</output>
|
||||
<includes>
|
||||
<include>${basedir}/../web2d/target/classes/web2d.vml-min.js</include>
|
||||
<include>${basedir}/target/tmp/mindplot-min.js</include>
|
||||
</includes>
|
||||
</aggregation>
|
||||
<aggregation>
|
||||
<output>${basedir}/target/classes/mindplot.svg-min.js</output>
|
||||
<includes>
|
||||
|
@@ -445,15 +445,8 @@ mindplot.MindmapDesigner.prototype.save = function(onSavedHandler, saveHistory)
|
||||
var mindmap = this._mindmap;
|
||||
|
||||
var xmlChart = this._workspace.dumpNativeChart();
|
||||
var chatType = core.UserAgent.isVMLSupported() ? "VML" : "SVG";
|
||||
if (core.UserAgent.isVMLSupported())
|
||||
{
|
||||
// Remove first line: "<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />"
|
||||
xmlChart = xmlChart.replace('<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />', "");
|
||||
}
|
||||
|
||||
var properties = {zoom:this._zoom};
|
||||
persistantManager.save(mindmap, chatType, xmlChart, properties, onSavedHandler, saveHistory);
|
||||
persistantManager.save(mindmap, xmlChart, properties, onSavedHandler, saveHistory);
|
||||
this._fireEvent("save", {type:saveHistory});
|
||||
|
||||
// Refresh undo state...
|
||||
|
@@ -18,10 +18,9 @@
|
||||
|
||||
mindplot.PersistanceManager = {};
|
||||
|
||||
mindplot.PersistanceManager.save = function(mindmap, chartType, xmlChart, editorProperties, onSavedHandler,saveHistory)
|
||||
mindplot.PersistanceManager.save = function(mindmap, xmlChart, editorProperties, onSavedHandler,saveHistory)
|
||||
{
|
||||
core.assert(mindmap, "mindmap can not be null");
|
||||
core.assert(chartType, "chartType can not be null");
|
||||
core.assert(xmlChart, "xmlChart can not be null");
|
||||
core.assert(editorProperties, "editorProperties can not be null");
|
||||
|
||||
@@ -32,7 +31,7 @@ mindplot.PersistanceManager.save = function(mindmap, chartType, xmlChart, editor
|
||||
var xmlMapStr = core.Utils.innerXML(xmlMap);
|
||||
|
||||
var pref = Json.toString(editorProperties);
|
||||
window.MapEditorService.saveMap(mapId, xmlMapStr, chartType, xmlChart, pref,saveHistory,
|
||||
window.MapEditorService.saveMap(mapId, xmlMapStr, xmlChart, pref,saveHistory,
|
||||
{
|
||||
callback:function(response) {
|
||||
|
||||
|
@@ -87,10 +87,7 @@ mindplot.TextEditor = function(screenManager,actionRunner)
|
||||
this._currentNode = null;
|
||||
}
|
||||
|
||||
if (core.UserAgent.isSVGSupported())
|
||||
{
|
||||
setTimeout("$('ffoxWorkarroundInput').focus();", 0);
|
||||
}
|
||||
};
|
||||
this.fx = new Fx.Style(this.inputText, 'opacity', { duration: 10});
|
||||
this.fx.addEvent('onComplete', onComplete.bind(this));
|
||||
@@ -240,11 +237,7 @@ mindplot.TextEditor.prototype.init = function (nodeGraph)
|
||||
}
|
||||
var position = {x:0,y:0};
|
||||
position.x = pos.x - ((textWidth * scale.width) / 2) + ((iconGroupSize.width * scale.width)/2);
|
||||
var fixError = 0;
|
||||
if (core.UserAgent.isSVGSupported())
|
||||
{
|
||||
fixError = 4;
|
||||
}
|
||||
var fixError = 4;
|
||||
position.y = pos.y - ((textHeight * scale.height) / 2) - fixError;
|
||||
|
||||
editor.setEditorSize(elemSize.width, elemSize.height, scale);
|
||||
|
Reference in New Issue
Block a user