Lines Matching refs:node

1464 Graph.compressNode = function(node, checked)  argument
1466 var xml = mxUtils.getXml(node);
2080 while (elt != null && elt != shape.node)
2093 mxEvent.addGestureListeners(shape.node, down, move, up);
2094 mxEvent.addListener(shape.node, 'click', function(evt)
3058 if (shapes[j] != null && shapes[j].node != null)
3060 nodes.push(shapes[j].node);
3065 if (state.control != null && state.control.node != null)
3067 nodes.push(state.control.node);
3155 if (state.text != null && state.text.node != null)
3157 state.text.node.style.opacity = f;
3168 if (state.text != null && state.text.node != null)
3170 state.text.node.style.opacity = ''
3206 if (state.text != null && state.text.node != null)
3208 state.text.node.style.opacity = f;
3219 if (state.text != null && state.text.node != null)
3221 state.text.node.style.opacity = ''
4245 if (state != null && state.text != null && state.text.node != null)
4247 return state.text.node.getElementsByTagName('a');
4863 Graph.prototype.compressNode = function(node) argument
4865 return Graph.compressNode(node);
5471 if (handler.rotationShape != null && handler.rotationShape.node != null &&
5472 handler.rotationShape.node.style.visibility != 'hidden' &&
5473 handler.rotationShape.node.style.display != 'none' &&
6464 if (this.state != null && this.node != null &&
6469 var paths = this.node.getElementsByTagName('path');
6895 mxStencil.prototype.evaluateTextAttribute = function(node, attribute, shape) argument
6898 var placeholders = node.getAttribute('placeholders');
7464 var node = (this.themes != null) ? this.themes[this.defaultThemeName] :
7468 if (node != null)
7470 var dec = new mxCodec(node.ownerDocument);
7471 dec.decode(node, this.getStylesheet());
7524 Graph.prototype.importGraphModel = function(node, dx, dy, crop) argument
7529 var codec = new mxCodec(node.ownerDocument);
7531 codec.decode(node, tempModel);
8477 var node = stencil.fgNode.firstChild;
8479 while (node != null)
8481 if (node.nodeName == 'text' && node.getAttribute('placeholders') == '1')
8486 node = node.nextSibling;
8929 (state == null || (state.text == null || state.text.node == null ||
8931 pt.x, pt.y) && !mxUtils.isAncestorNode(state.text.node, mxEvent.getSource(evt))))) &&
9982 Graph.prototype.updateSvgLinks = function(node, target, removeCustom) argument
9984 var links = node.getElementsByTagName('a');
10015 Graph.prototype.createSvgCanvas = function(node) argument
10017 var canvas = new mxSvgCanvas2D(node);
10029 var node = null;
10038 node = range.commonAncestorContainer;
10043 node = document.selection.createRange().parentElement();
10046 return node;
10054 var node = this.getSelectedElement();
10056 while (node != null && node.nodeType != mxConstants.NODETYPE_ELEMENT)
10058 node = node.parentNode;
10061 if (node != null)
10064 if (node == this.cellEditor.textarea && this.cellEditor.textarea.children.length == 1 &&
10067 node = this.cellEditor.textarea.firstChild;
10071 return node;
10077 Graph.prototype.getParentByName = function(node, name, stopAt) argument
10079 while (node != null)
10081 if (node.nodeName == name)
10083 return node;
10086 if (node == stopAt)
10091 node = node.parentNode;
10094 return node;
10100 Graph.prototype.getParentByNames = function(node, names, stopAt) argument
10102 while (node != null)
10104 if (mxUtils.indexOf(names, node.nodeName) >= 0)
10106 return node;
10109 if (node == stopAt)
10114 node = node.parentNode;
10117 return node;
10123 Graph.prototype.selectNode = function(node) argument
10135 range.selectNode(node);
10690 var frag = document.createDocumentFragment(), node;
10692 while ((node = el.firstChild))
10694 lastNode = frag.appendChild(node);
10804 this.container.style.cursor = me.state.shape.node.style.cursor;
10962 this.graph.processElements(this.textarea, function(node) argument
10964 if (shiftPressed || window.getSelection().containsNode(node, true))
10966 node.removeAttribute('align');
10967 node.style.textAlign = null;
11148 function reference(node, clone) argument
11150 clone.originalNode = node;
11152 node = node.firstChild;
11155 while (node != null && child != null)
11157 reference(node, child);
11158 node = node.nextSibling;
11166 function checkNode(node, clone) argument
11168 if (node != null)
11170 if (clone.originalNode != node)
11172 cleanNode(node);
11176 node = node.firstChild;
11179 while (node != null)
11181 var nextNode = node.nextSibling;
11185 cleanNode(node);
11189 checkNode(node, clone);
11193 node = nextNode;
11200 function cleanNode(node) argument
11202 var child = node.firstChild;
11211 if ((node.nodeType != 1 || (node.nodeName !== 'BR' && node.firstChild == null)) &&
11212 (node.nodeType != 3 || mxUtils.trim(mxUtils.getTextContent(node)).length == 0))
11214 node.parentNode.removeChild(node);
11219 if (node.nodeType == 3)
11221 mxUtils.setTextContent(node, mxUtils.getTextContent(node).replace(/\n|\r/g, ''));
11225 if (node.nodeType == 1)
11227 node.removeAttribute('style');
11228 node.removeAttribute('class');
11229 node.removeAttribute('width');
11230 node.removeAttribute('cellpadding');
11231 node.removeAttribute('cellspacing');
11232 node.removeAttribute('border');
11943 handle.shape.node.parentNode.insertBefore(handle.shape.node,
11944 handle.shape.node.parentNode.firstChild);
12024 handle.shape.node.parentNode.insertBefore(handle.shape.node,
12025 handle.shape.node.parentNode.firstChild);
12096 this.cornerHandles[i].node.style.visibility = (visible) ? '' : 'hidden';
12966 if (this.rotationShape != null && this.rotationShape.node != null)
12968 this.rotationShape.node.style.display = 'none';
12985 if (this.rotationShape != null && this.rotationShape.node != null)
12987 this.rotationShape.node.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none';
13007 this.rotationShape.node.setAttribute('title', mxResources.get('rotateTooltip'));
13035 this.specialHandle.node.style.display = (this.graph.isEnabled() &&
13184 this.labelShape.node.style.display = (this.graph.isEnabled() &&
13261 this.cornerHandles[i].node.style.display = (this.graph.getSelectionCount() == 1) ? '' : 'none';
13266 if (this.rotationShape != null && this.rotationShape.node != null)
13268 this.rotationShape.node.style.display = (this.moveHandles == null &&
13324 if (this.cornerHandles[i] != null && this.cornerHandles[i].node != null &&
13325 this.cornerHandles[i].node.parentNode != null)
13327 this.cornerHandles[i].node.parentNode.removeChild(this.cornerHandles[i].node);