mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 11:54:47 +00:00
[BACK_INCOMPAT] Remove fabric.Object#getCenter as it doesn't make sense (getLeft/getTop already return object center coordinates).
This commit is contained in:
parent
de8684cfda
commit
23c4ec2068
7 changed files with 6 additions and 28 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2011, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.7.9" };
|
||||
var fabric = fabric || { version: "0.7.10" };
|
||||
|
||||
if (typeof exports != 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
|
|
|
|||
13
dist/all.js
vendored
13
dist/all.js
vendored
|
|
@ -1,6 +1,6 @@
|
|||
/*! Fabric.js Copyright 2008-2011, Bitsonnet (Juriy Zaytsev, Maxim Chernyak) */
|
||||
|
||||
var fabric = fabric || { version: "0.7.9" };
|
||||
var fabric = fabric || { version: "0.7.10" };
|
||||
|
||||
if (typeof exports != 'undefined') {
|
||||
exports.fabric = fabric;
|
||||
|
|
@ -8045,17 +8045,6 @@ fabric.util.object.extend(fabric.StaticCanvas.prototype, {
|
|||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCenter
|
||||
* @return {Object} object with `x`, `y` properties corresponding to path center coordinates
|
||||
*/
|
||||
getCenter: function() {
|
||||
return {
|
||||
x: this.get('left') + this.width / 2,
|
||||
y: this.get('top') + this.height / 2
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* @method straighten
|
||||
* @return {fabric.Object} thisArg
|
||||
|
|
|
|||
4
dist/all.min.js
vendored
4
dist/all.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/all.min.js.gz
vendored
BIN
dist/all.min.js.gz
vendored
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "fabric",
|
||||
"description": "Object model for HTML5 canvas, and SVG-to-canvas parser. Backed by jsdom and node-canvas.",
|
||||
"version": "0.7.9",
|
||||
"version": "0.7.10",
|
||||
"author": "Juriy Zaytsev <kangax@gmail.com>",
|
||||
"keywords": ["canvas", "graphic", "graphics", "SVG", "node-canvas", "parser", "HTML5", "object model"],
|
||||
"repository": "git://github.com/kangax/fabric.js",
|
||||
|
|
|
|||
2
site
2
site
|
|
@ -1 +1 @@
|
|||
Subproject commit fb11b2db5607ecd7d441c79f6f1ed8c90c1bb9e4
|
||||
Subproject commit 6b3318e7b97d8a2e6f2c7da229af3389dc269f32
|
||||
|
|
@ -1182,17 +1182,6 @@
|
|||
return 0;
|
||||
},
|
||||
|
||||
/**
|
||||
* @method getCenter
|
||||
* @return {Object} object with `x`, `y` properties corresponding to path center coordinates
|
||||
*/
|
||||
getCenter: function() {
|
||||
return {
|
||||
x: this.get('left') + this.width / 2,
|
||||
y: this.get('top') + this.height / 2
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
* @method straighten
|
||||
* @return {fabric.Object} thisArg
|
||||
|
|
|
|||
Loading…
Reference in a new issue