Lines Matching refs:transform

2833         transform:            'transformMatrix',  property in attributesMap
3004 transform = '(?:' +
3013 transforms = '(?:' + transform + '(?:' + commaWsp + transform + ')*' + ')',
3021 reTransform = new RegExp(transform, 'g');
3037 var m = new RegExp(transform).exec(match).filter(function (match) {
6376 ctx.transform(v[0], v[1], v[2], v[3], v[4], v[5]);
7449 ctx.transform(v[0], v[1], v[2], v[3], v[4], v[5]);
7598 ctx.transform(v[0], v[1], v[2], v[3], v[4], v[5]);
7844 ctx.transform(v[0], v[1], v[2], v[3], v[4], v[5]);
8450 …_setObjectScale: function(localMouse, transform, lockScalingX, lockScalingY, by, lockScalingFlip) { argument
8451 var target = transform.target, forbidScalingX = false, forbidScalingY = false,
8454 transform.newScaleX = localMouse.x / (target.width + strokeWidth / 2);
8455 transform.newScaleY = localMouse.y / (target.height + strokeWidth / 2);
8457 if (lockScalingFlip && transform.newScaleX <= 0 && transform.newScaleX < target.scaleX) {
8461 if (lockScalingFlip && transform.newScaleY <= 0 && transform.newScaleY < target.scaleY) {
8466 forbidScalingX || forbidScalingY || this._scaleObjectEqually(localMouse, target, transform);
8469 forbidScalingX || lockScalingX || target.set('scaleX', transform.newScaleX);
8470 forbidScalingY || lockScalingY || target.set('scaleY', transform.newScaleY);
8473 forbidScalingX || lockScalingX || target.set('scaleX', transform.newScaleX);
8476 forbidScalingY || lockScalingY || target.set('scaleY', transform.newScaleY);
8479 forbidScalingX || forbidScalingY || this._flipObject(transform, by);
8486 _scaleObjectEqually: function(localMouse, target, transform) { argument
8490 lastDist = (target.height + (strokeWidth / 2)) * transform.original.scaleY +
8491 (target.width + (strokeWidth / 2)) * transform.original.scaleX;
8495 transform.newScaleX = transform.original.scaleX * dist / lastDist;
8496 transform.newScaleY = transform.original.scaleY * dist / lastDist;
8498 target.set('scaleX', transform.newScaleX);
8499 target.set('scaleY', transform.newScaleY);
8505 _flipObject: function(transform, by) { argument
8506 if (transform.newScaleX < 0 && by !== 'y') {
8507 if (transform.originX === 'left') {
8508 transform.originX = 'right';
8510 else if (transform.originX === 'right') {
8511 transform.originX = 'left';
8515 if (transform.newScaleY < 0 && by !== 'x') {
8516 if (transform.originY === 'top') {
8517 transform.originY = 'bottom';
8519 else if (transform.originY === 'bottom') {
8520 transform.originY = 'top';
9411 var transform = this._currentTransform,
9412 target = transform.target;
9697 transform = this._currentTransform;
9699 transform.reset = false,
9700 transform.target.isMoving = true;
9702 this._beforeScaleTransform(e, transform);
9703 this._performTransformAction(e, transform, pointer);
9711 _performTransformAction: function(e, transform, pointer) { argument
9714 target = transform.target,
9715 action = transform.action;
9722 this._onScale(e, transform, x, y);
9751 _beforeScaleTransform: function(e, transform) { argument
9752 …if (transform.action === 'scale' || transform.action === 'scaleX' || transform.action === 'scaleY'…
9753 var centerTransform = this._shouldCenterTransform(e, transform.target);
9756 … if ((centerTransform && (transform.originX !== 'center' || transform.originY !== 'center')) ||
9758 (!centerTransform && transform.originX === 'center' && transform.originY === 'center')
9761 transform.reset = true;
9769 _onScale: function(e, transform, x, y) { argument
9772 if ((e.shiftKey || this.uniScaleTransform) && !transform.target.get('lockUniScaling')) {
9773 transform.currentAction = 'scale';
9778 if (!transform.reset && transform.currentAction === 'scale') {
9779 this._resetCurrentTransform(e, transform.target);
9782 transform.currentAction = 'scaleEqually';
11243 transform: function(ctx, fromLeft) {
11460 this.transform(ctx);
11465 ctx.transform.apply(ctx, this.transformMatrix);
11580 ctx.transform.apply(ctx, g);
11626 ctx.transform.apply(ctx, g);
14326 ctx.transform(1, 0, 0, this.ry/this.rx, 0, 0);
16143 ctx.transform.apply(ctx, this.transformMatrix);
16145 this.transform(ctx);
16539 this.transform(ctx);
20095 this.transform(ctx);
20100 ctx.transform.apply(ctx, this.transformMatrix);
20717 ctx.transform.apply(ctx, this.canvas.viewportTransform);
20718 this.transform(ctx);