removing VML support from client side
This commit is contained in:
@@ -49,27 +49,21 @@ public class MapEditorService
|
||||
return response;
|
||||
}
|
||||
|
||||
public ResponseMessage saveMap(final int mapId, final String nativeXml, final String chartType,
|
||||
public ResponseMessage saveMap(final int mapId, final String nativeXml,
|
||||
String chartXml, final String editorProperties,boolean saveHistory)
|
||||
throws IOException, WiseMappingException {
|
||||
final MindmapService serservice = getMindmapService();
|
||||
final MindMap mindMap = serservice.getMindmapById(mapId);
|
||||
final User user = this.getUser();
|
||||
|
||||
|
||||
MindMapNative nativeBrowser = mindMap.getNativeBrowser();
|
||||
|
||||
if (nativeBrowser == null) {
|
||||
nativeBrowser = new MindMapNative();
|
||||
}
|
||||
|
||||
if ("SVG".equals(chartType)) {
|
||||
nativeBrowser.setSvgXml(chartXml);
|
||||
nativeBrowser.setVmlXml((byte[]) null);
|
||||
} else {
|
||||
nativeBrowser.setVmlXml(chartXml);
|
||||
nativeBrowser.setSvgXml((byte[]) null);
|
||||
}
|
||||
nativeBrowser.setSvgXml(chartXml);
|
||||
nativeBrowser.setVmlXml((byte[]) null);
|
||||
|
||||
mindMap.setNativeBrowser(nativeBrowser);
|
||||
mindMap.setProperties(editorProperties);
|
||||
|
Reference in New Issue
Block a user