2017-01-03 9 views
0

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は123行目にあり、defaultVertexというスタイルがあります。 verticalAlign属性をの下のに変更します。

... 
<add as="align" value="left"/> 
<add as="verticalAlign" value="bottom"/> 
<add as="shadow" value="0"/> 
.... 
関連する問題