我需要根据该属性值向自定义边缘形状(扩展)添加一个新属性以mxConnector
更改边缘的颜色。示例如下:
function ExecutorEdge()
{
mxConnector.call(this);
};
mxUtils.extend(ExecutorEdge, mxConnector);
ExecutorEdge.prototype.customProperties = [
{name: 'trxSort', dispName: 'Transaction Sort', type: 'enum', defVal:'orig',
enumList:[
{val:'orig', dispName:'Original'},
{val:'info', dispName:'Informational'},
{val:'doc', dispName:'Documental'}
]}
];
mxCellRenderer.registerShape('executorEdge', ExecutorEdge);
我设法为扩展的自定义形状做同样的事情,mxEllipse
但使用 Edge,属性甚至不会出现在属性表上。