Lines Matching refs:idx

311 	  var idx = isArray$2(collection) ? -1 : undefined;
314 idx = key;
318 return idx;
384 return arr.filter(function (el, idx) { argument
385 return !matcher(el, idx);
399 forEach(collection, function (value, idx) { argument
400 result = iterator(result, value, idx);
544 for (var idx = 0; idx < sorted.length; idx++) {
545 var d = sorted[idx].d;
548 sorted.splice(idx, 0, entry);
2856 var idx, point, connectionPath = [];
2858 for (idx = 0; (point = waypoints[idx]); idx++) {
2864 connectionPath.push([ idx === 0 ? 'M' : 'L', point.x, point.y ]);
2960 var idx = collection.indexOf(element);
2962 if (idx !== -1) {
2963 collection.splice(idx, 1);
2966 return idx;
2977 function add(collection, element, idx) { argument
2983 if (typeof idx !== 'number') {
2984 idx = -1;
2991 if (currentIdx === idx) {
2997 if (idx !== -1) {
3009 if (idx !== -1) {
3012 collection.splice(idx, 0, element);
4281 var idx = 0,
4286 while (waypoints[idx]) {
4287 point = waypoints[idx];
4288 previousPoint = waypoints[idx - 1];
4289 nextPoint = waypoints[idx + 1];
4296 waypoints.splice(idx, 1);
4298 idx++;
5872 var idx = this.indexOf(element);
5873 if (idx !== -1) {
5874 this.splice(idx, 1);
5907 value: function(element, idx) { argument
5911 if (typeof idx === 'undefined') {
5919 idx = this.length;
5930 this.splice(idx, 0, element);
7634 DescriptorBuilder.prototype.addProperty = function(p, idx, validate) { argument
7636 if (typeof idx === 'boolean') {
7637 validate = idx;
7638 idx = undefined;
7645 if (idx !== undefined) {
7646 properties.splice(idx, 0, p);
7683 var idx = props.indexOf(oldProperty);
7684 if (idx === -1) {
7689 props.splice(idx, 1);
7696 this.addProperty(newProperty, replace ? undefined : idx, rename);
10167 idx = collection.indexOf(r);
10171 if (idx === -1) {
10172 idx = collection.length;
10178 collection.splice(idx, 1);
10182 collection[idx] = reference;
10942 newPrefix, idx,
10962 idx = 1;
10966 newPrefix = prefix + '_' + idx++;
18872 var totalHeight = reduce(layouted, function(sum, line, idx) { argument
18876 var maxLineWidth = reduce(layouted, function(sum, line, idx) { argument
20757 var idx = selectedElements.indexOf(element);
20759 if (idx !== -1) {
20762 selectedElements.splice(idx, 1);
21301 var idx = container.overlays.indexOf(overlay);
21302 if (idx !== -1) {
21303 container.overlays.splice(idx, 1);
28034 points.forEach(function(p, idx) { argument
28035 segments.push([ idx === 0 ? 'M' : 'L', p.x, p.y ]);
28068 idx;
28083 idx = max$6(a.segment2, b.segment2) - 1;
28086 point: waypoints[idx],
28088 index: idx
28402 var idx = intersection.index,
28406 if (idx <= 0 || intersection.bendpoint) {
28410 p0 = waypoints[idx - 1];
28411 p1 = waypoints[idx];
28504 function getSegmentDragger(idx, parentGfx) { argument
28506 '.djs-segment-dragger[data-segment-idx="' + idx + '"]',
28512 connection.waypoints.forEach(function(p, idx) { argument
29263 this.start = function(event, connection, idx) { argument
29267 segmentStartIndex = idx - 1,
29268 segmentEndIndex = idx,
29389 var filteredWaypoints = waypoints.filter(function(r, idx) { argument
29390 if (pointsOnLine(waypoints[idx - 1], waypoints[idx + 1], r)) {
29393 segmentOffset = idx <= segmentStartIndex ? segmentOffset - 1 : segmentOffset;
29612 var idx, snapValue;
29614 for (idx = 0; idx < values.length; idx++) {
29615 snapValue = values[idx];
36682 forEach(sortedElements, function(element, idx) { argument
42040 var idx = 0,
42053 for (idx = 0; idx < line.length - 1; idx++) {
42055 segmentStart = line[idx];
42056 segmentEnd = line[idx + 1];
42078 segmentIndex: idx,
42079 bendpointIndex: pointsEqual(segmentStart, intersections[0]) ? idx : idx + 1
42091 segmentIndex: idx,
42387 function relativePositionMidWaypoint(waypoints, idx) { argument
42389 var distanceSegment1 = getDistancePointPoint(waypoints[idx-1], waypoints[idx]),
42390 distanceSegment2 = getDistancePointPoint(waypoints[idx], waypoints[idx+1]);
42410 function getLine(waypoints, idx) { argument
42411 return [ waypoints[idx], waypoints[idx+1] ];
43429 var idx = elements.indexOf(oldElement);
43431 elements[idx] = bpmnReplace.replaceElement(oldElement, newElement, { select: false });
49672 forEach(groups, function(group, idx) { argument
49678 if (idx && idx !== groups.length - 1) {
49690 if (idx === lastGroupIdx) {
49716 if (idx && idx !== groups.length - 1) {
49741 forEach(group.elements, function(element, idx) { argument
49753 group.range.max = Math.max(element[axis] + element[dimension], idx ? group.range.max : 0);
50810 function addAttacher(host, attacher, idx) { argument
50822 add(attachers, attacher, idx);
51850 idx;
51852 for (idx = 0; idx < newLanesCount; idx++) {
51854 laneY = shape.y + idx * newLanesHeight;
51857 if (idx === newLanesCount - 1) {
51858 laneHeight = shape.height - (newLanesHeight * idx);
51870 if (idx < existingLanesCount) {
51873 modeling.resizeShape(childLanes[idx], laneBounds);
53183 return !!find(points, function(p, idx) { argument
53184 var q = points[idx - 1];
53386 return waypoints.reduce(function(points, p, idx) { argument
53389 next = waypoints[idx + 1];
53808 var croppedWaypoints = connection.waypoints.slice(sourceDocking.idx + 1, targetDocking.idx);
53836 idx: dockingIdx