2017-01-03 6 views
0

Я редактирую digrameditor в here! для моего собственного проекта, и мне нужно поместить метки вершин на дно. Я попытался добавить следующие изменения, но, похоже, это не так.mxGraph диаграмма смену метки метки

.... 
// Program starts here. The document.onLoad executes the 
// mxApplication constructor with a given configuration. 
// In the config file, the mxEditor.onInit method is 
// overridden to invoke this global function as the 
// last step in the editor constructor. 
function onInit(editor) 
{ 
    // Set align of the labels to bottom 
    mxConstants.STYLE_VERTICAL_LABEL_POSITION = mxConstants.ALIGN_BOTTOM; 
.... 

Любая помощь?

Спасибо.

ответ

0

После нескольких исследований я узнал, что это можно сделать, используя файл diagrameditor.xml, расположенный в каталоге config. Вы можете найти mxStylesheet, определенную как stylesheet в строке 123 и в их которых вы можете найти defaultVertex. Измените атрибут verticalAlign на внизу следующим образом.

... 
<add as="align" value="left"/> 
<add as="verticalAlign" value="bottom"/> 
<add as="shadow" value="0"/> 
....