commit
df73309a0b
|
@ -23,14 +23,11 @@
|
||||||
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
|
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
|
||||||
{
|
{
|
||||||
if (terminal != null && terminal.shape != null)
|
if (terminal != null && terminal.shape != null)
|
||||||
{
|
|
||||||
if (terminal.shape.stencil != null)
|
|
||||||
{
|
{
|
||||||
if (terminal.shape.stencil != null)
|
if (terminal.shape.stencil != null)
|
||||||
{
|
{
|
||||||
return terminal.shape.stencil.constraints;
|
return terminal.shape.stencil.constraints;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (terminal.shape.constraints != null)
|
else if (terminal.shape.constraints != null)
|
||||||
{
|
{
|
||||||
return terminal.shape.constraints;
|
return terminal.shape.constraints;
|
||||||
|
|
|
@ -16,14 +16,11 @@ window.onload = function () {
|
||||||
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
|
mxGraph.prototype.getAllConnectionConstraints = function(terminal, source)
|
||||||
{
|
{
|
||||||
if (terminal != null && terminal.shape != null)
|
if (terminal != null && terminal.shape != null)
|
||||||
{
|
|
||||||
if (terminal.shape.stencil != null)
|
|
||||||
{
|
{
|
||||||
if (terminal.shape.stencil != null)
|
if (terminal.shape.stencil != null)
|
||||||
{
|
{
|
||||||
return terminal.shape.stencil.constraints;
|
return terminal.shape.stencil.constraints;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (terminal.shape.constraints != null)
|
else if (terminal.shape.constraints != null)
|
||||||
{
|
{
|
||||||
return terminal.shape.constraints;
|
return terminal.shape.constraints;
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
* For vertices, the geometry consists of the x- and y-location, and the width
|
* For vertices, the geometry consists of the x- and y-location, and the width
|
||||||
* and height. For edges, the geometry consists of the optional terminal- and
|
* and height. For edges, the geometry consists of the optional terminal- and
|
||||||
* control points. The terminal points are only required if an edge is
|
* control points. The terminal points are only required if an edge is
|
||||||
* unconnected, and are stored in the sourcePoint> and <targetPoint>
|
* unconnected, and are stored in the <sourcePoint> and <targetPoint>
|
||||||
* variables, respectively.
|
* variables, respectively.
|
||||||
*
|
*
|
||||||
* Example:
|
* Example:
|
||||||
|
|
Loading…
Reference in New Issue