Lines Matching refs:newBounds

26813 	  var newBounds = this._getOptimalBounds(elements, target);
26815 if (!boundsChanged$1(newBounds, target)) {
26819 …r resizeDirections = getResizeDirections(pick(target, [ 'x', 'y', 'width', 'height' ]), newBounds);
26822 this.resize(target, newBounds, {
26868 AutoResize.prototype.resize = function(shape, newBounds, hints) { argument
26869 this._modeling.resizeShape(shape, newBounds, null, hints);
26873 function boundsChanged$1(newBounds, oldBounds) { argument
26875 newBounds.x !== oldBounds.x ||
26876 newBounds.y !== oldBounds.y ||
26877 newBounds.width !== oldBounds.width ||
26878 newBounds.height !== oldBounds.height
26890 function getResizeDirections(oldBounds, newBounds) { argument
26894 newBounds = asTRBL(newBounds);
26896 if (oldBounds.top > newBounds.top) {
26900 if (oldBounds.right < newBounds.right) {
26904 if (oldBounds.bottom < newBounds.bottom) {
26908 if (oldBounds.left > newBounds.left) {
26938 BpmnAutoResize.prototype.resize = function(target, newBounds, hints) { argument
26941 this._modeling.resizeLane(target, newBounds, null, hints);
26943 this._modeling.resizeShape(target, newBounds, null, hints);
30998 newBounds = this.$textbox.getBoundingClientRect(),
31004 newBounds.height !== previousBounds.height ||
31005 newBounds.width !== previousBounds.width
31010 x: newBounds.left - containerBounds.left,
31011 y: newBounds.top - containerBounds.top,
31012 width: newBounds.width,
31013 height: newBounds.height
35754 var newBounds = { class in resizeBounds$1
35762 newBounds.y = bounds.y + dy;
35763 newBounds.height = bounds.height - dy;
35765 newBounds.height = bounds.height + dy;
35769 newBounds.width = bounds.width + dx;
35771 newBounds.x = bounds.x + dx;
35772 newBounds.width = bounds.width - dx;
35775 return newBounds;
35940 function getTRBLResize(oldBounds, newBounds) { argument
35941 return substractTRBL(asTRBL(newBounds), asTRBL(oldBounds));
36014 function computeLanesResize(shape, newBounds) { argument
36022 shapeNewTrbl = asTRBL(newBounds),
36023 trblResize = getTRBLResize(shape, newBounds),
36063 newBounds: resizeTRBL(other, {
37601 newBounds = context.newBounds;
37604 context.newBounds = self.snapComplex(newBounds, autoResize);
37606 context.newBounds = self.snapSimple(shape, newBounds);
37627 ResizeBehavior$1.prototype.snapSimple = function(shape, newBounds) { argument
37630 newBounds.width = gridSnapping.snapValue(newBounds.width, {
37631 min: newBounds.width
37634 newBounds.height = gridSnapping.snapValue(newBounds.height, {
37635 min: newBounds.height
37638 newBounds.x = shape.x + (shape.width / 2) - (newBounds.width / 2);
37639 newBounds.y = shape.y + (shape.height / 2) - (newBounds.height / 2);
37641 return newBounds;
37652 ResizeBehavior$1.prototype.snapComplex = function(newBounds, directions) { argument
37654 newBounds = this.snapHorizontally(newBounds, directions);
37658 newBounds = this.snapVertically(newBounds, directions);
37661 return newBounds;
37672 ResizeBehavior$1.prototype.snapHorizontally = function(newBounds, directions) { argument
37679 snappedNewBounds.width = gridSnapping.snapValue(newBounds.width, {
37680 min: newBounds.width
37687 snappedNewBounds.x = gridSnapping.snapValue(newBounds.x, {
37688 max: newBounds.x
37691 snappedNewBounds.width += gridSnapping.snapValue(newBounds.x - snappedNewBounds.x, {
37692 min: newBounds.x - snappedNewBounds.x
37698 newBounds.x = newBounds.x + newBounds.width - snappedNewBounds.width;
37703 assign(newBounds, snappedNewBounds);
37705 return newBounds;
37716 ResizeBehavior$1.prototype.snapVertically = function(newBounds, directions) { argument
37723 snappedNewBounds.height = gridSnapping.snapValue(newBounds.height, {
37724 min: newBounds.height
37731 snappedNewBounds.y = gridSnapping.snapValue(newBounds.y, {
37732 max: newBounds.y
37735 snappedNewBounds.height += gridSnapping.snapValue(newBounds.y - snappedNewBounds.y, {
37736 min: newBounds.y - snappedNewBounds.y
37742 newBounds.y = newBounds.y + newBounds.height - snappedNewBounds.height;
37747 assign(newBounds, snappedNewBounds);
37749 return newBounds;
38603 newBounds;
38607 newBounds = resizeBounds$1(shape, direction, delta);
38610 context.newBounds = ensureConstraints$1(newBounds, resizeConstraints);
38649 newBounds = context.newBounds;
38655 newBounds = roundBounds(newBounds);
38657 if (!boundsChanged(shape, newBounds)) {
38664 modeling.resizeShape(shape, newBounds);
38765 function boundsChanged(shape, newBounds) { argument
38766 return shape.x !== newBounds.x ||
38767 shape.y !== newBounds.y ||
38768 shape.width !== newBounds.width ||
38769 shape.height !== newBounds.height;
38833 bounds = context.newBounds,
39454 var newBounds,
39461 newBounds = { class in AnonymousFunctionf8d14cd140300
39490 this._modeling.updateLabel(element, newLabel, newBounds);
42431 function getNewAttachPoint(point, oldBounds, newBounds) { argument
42433 newCenter = center(newBounds),
42437 x: oldDelta.x * (newBounds.width / oldBounds.width),
42438 y: oldDelta.y * (newBounds.height / oldBounds.height)
42458 function getNewAttachShapeDelta(shape, oldBounds, newBounds) { argument
42461 newCenter = center(newBounds),
42464 stickyPositionDelta = getStickyPositionDelta(shapeCenter, oldBounds, newBounds);
42471 x: oldCenterDelta.x * (newBounds.width / oldBounds.width),
42472 y: oldCenterDelta.y * (newBounds.height / oldBounds.height)
42486 function getStickyPositionDelta(oldShapeCenter, oldBounds, newBounds) { argument
42488 newTRBL = asTRBL(newBounds);
42530 newOrientation = getOrientation(newBounds, newShapeCenter);
42590 var newBounds = textRenderer.getTextAnnotationBounds(
42600 modeling.updateLabel(element, properties.text, newBounds);
42763 newBounds = context.newBounds,
42775 var delta = getReferencePointDelta(referencePoint, oldBounds, newBounds);
42806 function getReferencePointDelta(referencePoint, oldBounds, newBounds) { argument
42808 var newReferencePoint = getNewAttachPoint(referencePoint, oldBounds, newBounds);
43639 newBounds = context.newBounds;
43647 newBounds = roundBounds(newBounds);
43650 modeling.resizeLane(shape, newBounds, context.balanced);
43913 newBounds = defaultSize,
43924 newBounds.width = Math.max(visibleBBox.width, newBounds.width);
43925 newBounds.height = Math.max(visibleBBox.height, newBounds.height);
43927 newBounds.x = visibleBBox.x + (visibleBBox.width - newBounds.width) / 2;
43928 newBounds.y = visibleBBox.y + (visibleBBox.height - newBounds.height) / 2;
43932 newBounds.x = shape.x + (shape.width - newBounds.width) / 2;
43933 newBounds.y = shape.y + (shape.height - newBounds.height) / 2;
43936 return newBounds;
43990 newBounds;
43995 newBounds = collapsedBounds(shape, defaultSize);
43999 newBounds = expandedBounds(shape, defaultSize);
44002 modeling.resizeShape(shape, newBounds, null, {
44426 newBounds = context.newBounds;
44428 return canResize(shape, newBounds);
45094 function canResize(shape, newBounds) { argument
45098 !newBounds || (newBounds.width >= 100 && newBounds.height >= 80)
45104 return !newBounds || (newBounds.width >= 130 && newBounds.height >= 60);
45108 return !newBounds || (newBounds.width >= 250 && newBounds.height >= 50);
46866 newBounds = context.newBounds,
46875 var delta = getNewAttachShapeDelta(attacher, oldBounds, newBounds);
50383 newBounds = context.newBounds,
50386 if (newBounds.x === undefined || newBounds.y === undefined ||
50387 newBounds.width === undefined || newBounds.height === undefined) {
50391 if (minBounds && (newBounds.width < minBounds.width
50392 || newBounds.height < minBounds.height)) {
50395 && newBounds.width < 10 || newBounds.height < 10) {
50409 width: newBounds.width,
50410 height: newBounds.height,
50411 x: newBounds.x,
50412 y: newBounds.y
50518 var newBounds = resizeBounds(shape, direction, delta);
50520 self._modeling.resizeShape(shape, newBounds, null, {
51252 Modeling$1.prototype.resizeShape = function(shape, newBounds, minBounds, hints) { argument
51255 newBounds: newBounds, property in AnonymousFunctionf8d14cd15cc00.context
51905 newBounds = context.newBounds,
51909 this.resizeBalanced(shape, newBounds);
51911 this.resizeSpace(shape, newBounds);
51922 ResizeLaneHandler.prototype.resizeBalanced = function(shape, newBounds) { argument
51926 var resizeNeeded = computeLanesResize(shape, newBounds);
51929 modeling.resizeShape(shape, newBounds);
51933 modeling.resizeShape(r.shape, r.newBounds);
51944 ResizeLaneHandler.prototype.resizeSpace = function(shape, newBounds) { argument
51948 newTrbl = asTRBL(newBounds);
52400 newBounds = ctx.newBounds,
52420 if (typeof newBounds === 'undefined') {
52421 newBounds = textRenderer.getExternalLabelBounds(label, text);
52426 if (newBounds) {
52427 modeling.resizeShape(label, newBounds, NULL_DIMENSIONS);
52496 Modeling.prototype.updateLabel = function(element, newLabel, newBounds, hints) { argument
52500 newBounds: newBounds,
52537 Modeling.prototype.resizeLane = function(laneShape, newBounds, balanced) { argument
52540 newBounds: newBounds,