Skip to content

Commit

Permalink
removed straightenObject from canvas`
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur committed Dec 29, 2022
1 parent 5cb0419 commit 64b4358
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
10 changes: 0 additions & 10 deletions src/canvas/static_canvas.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1003,16 +1003,6 @@ export class StaticCanvas<
this.renderOnAddRemove && this.requestRenderAll();
}

/**
* Straightens an object (rotating it from current angle to one of 0, 90, 180, 270, etc. depending on which is closer)
* @TODO probably keen on deleting this.
* @param {FabricObject} object Object to center vertically and horizontally
*/
straightenObject(object: FabricObject) {
object.straighten();
this.renderOnAddRemove && this.requestRenderAll();
}

/**
* Returns dataless JSON representation of canvas
* @param {Array} [propertiesToInclude] Any properties that you might want to additionally include in the output
Expand Down
1 change: 0 additions & 1 deletion src/mixins/canvas_animation.mixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ fabric.util.object.extend(
},

/**
* Same as {@link fabric.Canvas.prototype.straightenObject}, but animated
* @param {fabric.Object} object Object to straighten
* @return {fabric.Canvas} thisArg
*/
Expand Down

0 comments on commit 64b4358

Please sign in to comment.