Lines Matching refs:length

404     		return urlParams['test'] == '1' && state.vertices.length == 1 &&
405 state.edges.length == 0 && graph.isTableCell(state.vertices[0]);
411 return urlParams['test'] == '1' && state.vertices.length == 1 &&
412 state.edges.length == 0 && graph.isTableCell(state.vertices[0]);
417 … var cell = (state.vertices.length == 1 && state.edges.length == 0) ? state.vertices[0] : null;
426 return state.vertices.length == 1 && state.edges.length == 0 &&
431 … var cell = (state.vertices.length == 1 && state.edges.length == 0) ? state.vertices[0] : null;
440 return state.vertices.length == 1 && state.edges.length == 0 &&
460 … var cell = (state.vertices.length == 1 && state.edges.length == 0) ? state.vertices[0] : null;
466 return state.vertices.length == 1 && state.edges.length == 0;
484 return state.vertices.length == 1 && state.edges.length == 0;
488 … var cell = (state.vertices.length == 1 && state.edges.length == 0) ? state.vertices[0] : null;
494 return state.vertices.length == 1 && state.edges.length == 0;
498 … var cell = (state.vertices.length == 1 && state.edges.length == 0) ? state.vertices[0] : null;
505 return state.vertices.length == 1 && state.edges.length == 0;
509 return state.vertices.length == 1 && state.edges.length == 0 &&
518 … return (state.vertices.length > 0) ? model.isVertex(model.getParent(state.vertices[0])) : false;
526 …var geo = (state.vertices.length > 0) ? format.editorUi.editor.graph.getCellGeometry(state.vertice…
548 … return state.vertices.length > 0 && format.editorUi.editor.graph.isContainer(state.vertices[0]);
714 for (var i = 0; i < sets.length; i++)
766 for (var i = 0; i < drawing.ops.length; i++)
881 for (var i = 0; i < str.length; i++)
977 if (arguments.length > 2)
981 for (var i = 2; i < arguments.length; i += 2)
1075 for (var i = 0; i < curves.length; i += 6)
1136 if (this.path.length > 0)
1351 if (data == null || data.length == 0 || typeof(pako) === 'undefined')
1366 if (data == null || data.length == 0 || typeof(pako) === 'undefined')
1386 if (tmp != null && tmp.length > 0)
1388 for (var i = 0; i < tmp.length; i++)
1398 if (divs.length > 0)
1416 if (divs2.length > 0)
1421 if (data.length > 0)
1445 if (tmp != null && tmp.length > 0)
1467 if (diagrams.length > 0)
1469 diagramNode = diagrams[Math.max(0, Math.min(diagrams.length - 1, urlParams['page'] || 0))];
1495 if (text.length > 0)
1499 if (tmp != null && tmp.length > 0)
1508 if (temp.length > 0)
1528 if (text.length > 0)
1581 while (pos < f.length)
1600 if (checked == check.length)
1621 else if (curline.substring(curline.length - 3, curline.length) == 'obj' ||
1669 if (arr != null && arr.length > 0)
1677 if (arr != null && arr.length > 0)
1684 result = subj.substring(1, subj.length - 1);
1708 EditorUi.parsePng(binary, mxUtils.bind(this, function(pos, type, length) argument
1710 var value = binary.substring(pos + 8, pos + 8 + length);
1722 if (xmlData != null && xmlData.length > 0)
1733 if (vals.length > 1 && (vals[0] == 'mxGraphModel' ||
1775 if (errors != null && errors.length > 0)
1780 if (divs.length > 0)
2088 for (var i = 0; i < config.plugins.length; i++)
2126 for (var i = 1; i < parts.length; i++)
2169 Editor.guid = function(length) argument
2171 var len = (length != null) ? length : Editor.GUID_LENGTH;
2176 rtn.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random() * Editor.GUID_ALPHABET.length)));
2218 if (errs != null && errs.length > 0)
2223 if (divs != null && divs.length > 0)
2296 for (var i = 0; i < extFonts.length; i++)
2306 else if (this.graph.extFonts != null && this.graph.extFonts.length > 0)
2352 if (this.graph.extFonts != null && this.graph.extFonts.length > 0)
2387 if (tmp != null && tmp.length > 0)
2512 for (var i = 0; i < Editor.mathJaxQueue.length; i++)
2558 if (tags != null && tags.length > 0)
2621 if (url.substring(0, window.location.origin.length) == window.location.origin)
2661 else if (remote && src.substring(0, converter.baseUrl.length) != converter.baseUrl &&
2809 for (var i = 0; i < images.length; i++)
2877 var out = "", i = 0, len = str.length, c1, c2, c3;
2942 var tmp = new Array(bin.length);
2944 for (var i = 0; i < bin.length; i++)
3010 if (parts.length > 0)
3027 if (temp != null && temp.length > 0)
3032 for (var i = 1; i < parts.length; i++)
3084 for (var j = 1; j < parts.length; j++)
3096 if (parts.length > 0)
3098 for (var i = 1; i < parts.length; i++)
3211 if (extFonts.length > 0)
3228 for (var i = 0; i < extFonts.length; i++)
3281 if (defs != null && defs.length > 0)
3285 for (var i = 0; i < styles.length; i++)
3310 if (defs.length == 0)
3639 for (var i = 0; i < str.length; i++ )
3729 crc = Editor.updateCRC(crc, chunkData, 0, chunkData.length);
3731 result += writeInt(chunkData.length) + type + chunkData + writeInt(crc ^ 0xffffffff);
3732 result += f.substring(pos - 8, f.length);
3959 for (var i = 0; i < enumList.length; i++)
4447 for (var i = 0; i < custProperties.length; i++)
4458 for (var i = 0; i < custProperties.length; i++)
4523 if (sstate.style.shape != 'image' && !sstate.containsLabel && sstate.cells.length > 0)
4536 for (var i = 0; i < vertices.length; i++)
4541 for (var i = 0; i < edges.length; i++)
4543 this.findCommonProperties(edges[i], properties, vertices.length == 0 && i == 0);
4546 if (Object.getOwnPropertyNames != null && Object.getOwnPropertyNames(properties).length > 0)
4575 if (ss.cells.length > 0)
4636 if (prop.index < allVals.length)
4652 if (prop.size != null && allVals.length > prop.size) //trim the array to the specifies size
4661 graph.setCellStyles(prop.countProperty, allVals.length, graph.getSelectionCells());
4664 changedVals.push(allVals.length);
4674 for (var i = 0; i < prop.dependentProps.length; i++)
4679 if (vals.length > newVal)
4685 for (var j = vals.length; j < newVal; j++)
4871 for (var i = 0; i < pEnumList.length; i++)
4887 for (var i = 0; i < pEnumList.length; i++)
4965 inputVal = inputVal.length == 0 && pType != 'string'? 0 : inputVal;
5068 for (var e = div.childNodes.length - 1; e >= 0 ; e--)
5085 for (var r = 0; r < rows.length; r++)
5108 if (state.vertices.length == 1 && state.edges.length == 0)
5112 else if (state.vertices.length == 0 && state.edges.length == 1)
5150 for (var i = 0; i < dependentProps.length; i++)
5166 for (var i = 0; i < secondLevel.length; i++)
5171 for (var j = 0; j < prop.values.length; j++)
5219 for (var i = 0; i < this.defaultColorSchemes.length; i++)
5270 for (var i = 0; i < cells.length; i++)
5274 for (var j = 0; j < stylenames.length; j++)
5346 btn.style.height = (this.defaultColorSchemes.length <= maxEntries) ? '24px' : '30px';
5418 for (var i = 0; i < colorsets.length; i++)
5438 var bottom = (this.defaultColorSchemes.length <= maxEntries) ? 28 : 8;
5446 setScheme(mxUtils.mod(this.format.currentScheme - 1, this.defaultColorSchemes.length));
5453 if (this.defaultColorSchemes.length > 1)
5461 setScheme(mxUtils.mod(this.format.currentScheme + 1, this.defaultColorSchemes.length));
5482 if (this.defaultColorSchemes.length <= maxEntries)
5495 if (ss.cells.length == 1)
5510 var state = (ss.cells.length == 1) ? graph.view.getState(ss.cells[0]) : null;
5535 else if (ss.image && ss.cells.length > 0)
5578 return url.substring(0, Editor.GOOGLE_FONTS.length) == Editor.GOOGLE_FONTS;
5620 if (name != null && name.length > 0 && url != null && url.length > 0)
5710 for (var i = 0; i < elts.length; i++)
6009 for (var i = 0; i < cells.length; i++)
6077 if (tags.length > 0)
6087 if (tags != null && tags.length > 0)
6089 for (var i = 0; i < tags.length; i++)
6191 if (visible && graph.hiddenTags.length > 0)
6300 for (var i = 0; i < tags.length; i++)
6393 for (var i = 0; i < fonts.length; i++)
6530 if (incExtFonts && extFonts.length > 0)
6540 for (var i = 0; i < extFonts.length; i++)
6601 while (ele.length > 0)
6769 if (index < actions.length)
6909 if (cells.length > 0)
6927 for (var i = 0; i < all.length; i++)
6941 if (animations.length > 0)
7010 for (var i = 0; i < links.length; i++)
7059 for (var i = 0; i < actions.length; i++)
7080 for (var i = 0; i < action[name].length; i++)
7122 for (var i = 0; i < result.length; i++)
7146 for (var i = 0; i < ids.length; i++)
7188 if (tags == null || tags.length == 0 ||
7189 this.hiddenTags.length == 0)
7197 if (tmp.length > this.hiddenTags.length)
7203 for (var i = 0; i < tmp.length; i++)
7231 for (var i = 0; i < tagList.length; i++)
7233 if (tagList[i].length > 0)
7240 for (var i = 0; i < cells.length; i++)
7248 if (tags.length > 0)
7252 if (tmp.length >= tagList.length)
7256 for (var j = 0; j < tmp.length && (matchCount < tagCount); j++)
7297 for (var i = 0; i < cells.length; i++)
7302 if (tags.length > 0)
7307 for (var j = 0; j < tokens.length; j++)
7335 for (var i = 0; i < cells.length; i++)
7339 if (tags.length > 0)
7343 for (var j = 0; j < t.length; j++)
7370 if (cells.length > 0 && tagList.length > 0)
7376 for (var i = 0; i < cells.length; i++)
7382 for (var j = 0; j < tagList.length; j++)
7388 temp = (temp.length > 0) ? temp + ' ' + tag : tag;
7411 if (cells.length > 0 && tagList.length > 0)
7417 for (var i = 0; i < cells.length; i++)
7421 if (tags.length > 0)
7426 for (var j = 0; j < tagList.length; j++)
7459 for (var i = 0; i < cells.length; i++)
7478 for (var i = 0; i < cells.length; i++)
7494 for (var i = 0; i < cells.length; i++)
7593 if (defs.length == 0)
7630 if (vb != null && vb.length > 0)
7634 if (tokens.length > 3)
7771 if (type != null && type.length > 0)
7890 pageCount = editorUi.pages.length;
7894 for (var i = 0; i < editorUi.pages.length; i++)
8196 for (var i = 0; i < extFonts.length; i++)
8288 for (var i = 0; i < extFonts.length; i++)
8343 if (!ignorePages && editorUi.pages != null && editorUi.pages.length)
8346 var imax = editorUi.pages.length - 1;
8409 return (editorUi.pages != null) ? editorUi.pages.length : 1;
8607 Editor.prototype.useCanvasForExport = result != null && result.length > 6;