mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-15 01:03:10 +00:00
Fix Point and Intersection docs. Build distribution.
This commit is contained in:
parent
62740ff27b
commit
0fc54d4f7f
6 changed files with 35 additions and 27 deletions
27
dist/all.js
vendored
27
dist/all.js
vendored
|
|
@ -4990,6 +4990,7 @@ fabric.util.string = {
|
|||
/**
|
||||
* Point class
|
||||
* @class fabric.Point
|
||||
* @memberOf fabric
|
||||
* @constructor
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
|
|
@ -5278,6 +5279,7 @@ fabric.util.string = {
|
|||
/**
|
||||
* Intersection class
|
||||
* @class fabric.Intersection
|
||||
* @memberOf fabric
|
||||
* @constructor
|
||||
*/
|
||||
function Intersection(status) {
|
||||
|
|
@ -6484,10 +6486,11 @@ fabric.Pattern = fabric.util.createClass(/** @lends fabric.Pattern.prototype */
|
|||
},
|
||||
|
||||
/**
|
||||
* @return {String} Returns CSS3 text-shadow declaration
|
||||
* Returns a string representation of an instance
|
||||
* @see http://www.w3.org/TR/css-text-decor-3/#text-shadow
|
||||
* @return {String} Returns CSS3 text-shadow declaration
|
||||
*/
|
||||
getShadow: function() {
|
||||
toString: function() {
|
||||
return [this.offsetX, this.offsetY, this.blur, this.color].join('px ');
|
||||
},
|
||||
|
||||
|
|
@ -18003,7 +18006,7 @@ fabric.util.object.extend(fabric.Text.prototype, {
|
|||
fontFamily: this.fontFamily,
|
||||
fontWeight: this.fontWeight,
|
||||
textDecoration: this.textDecoration,
|
||||
textShadow: this.shadow && this.shadow.getShadow(),
|
||||
textShadow: this.shadow && this.shadow.toString(),
|
||||
textAlign: this.textAlign,
|
||||
fontStyle: this.fontStyle,
|
||||
lineHeight: this.lineHeight,
|
||||
|
|
@ -18114,15 +18117,15 @@ fabric.util.object.extend(fabric.Text.prototype, {
|
|||
}
|
||||
|
||||
/** @private */
|
||||
function request_fs(url, callback){
|
||||
var fs = require('fs'),
|
||||
stream = fs.createReadStream(url),
|
||||
body = '';
|
||||
stream.on('data', function(chunk){
|
||||
body += chunk;
|
||||
});
|
||||
stream.on('end', function(){
|
||||
callback(body);
|
||||
function request_fs(path, callback){
|
||||
var fs = require('fs');
|
||||
fs.readFile(path, function (err, data) {
|
||||
if (err) {
|
||||
fabric.log(err);
|
||||
throw err;
|
||||
} else {
|
||||
callback(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
6
dist/all.min.js
vendored
6
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.
27
dist/all.require.js
vendored
27
dist/all.require.js
vendored
|
|
@ -4990,6 +4990,7 @@ fabric.util.string = {
|
|||
/**
|
||||
* Point class
|
||||
* @class fabric.Point
|
||||
* @memberOf fabric
|
||||
* @constructor
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
|
|
@ -5278,6 +5279,7 @@ fabric.util.string = {
|
|||
/**
|
||||
* Intersection class
|
||||
* @class fabric.Intersection
|
||||
* @memberOf fabric
|
||||
* @constructor
|
||||
*/
|
||||
function Intersection(status) {
|
||||
|
|
@ -6484,10 +6486,11 @@ fabric.Pattern = fabric.util.createClass(/** @lends fabric.Pattern.prototype */
|
|||
},
|
||||
|
||||
/**
|
||||
* @return {String} Returns CSS3 text-shadow declaration
|
||||
* Returns a string representation of an instance
|
||||
* @see http://www.w3.org/TR/css-text-decor-3/#text-shadow
|
||||
* @return {String} Returns CSS3 text-shadow declaration
|
||||
*/
|
||||
getShadow: function() {
|
||||
toString: function() {
|
||||
return [this.offsetX, this.offsetY, this.blur, this.color].join('px ');
|
||||
},
|
||||
|
||||
|
|
@ -18003,7 +18006,7 @@ fabric.util.object.extend(fabric.Text.prototype, {
|
|||
fontFamily: this.fontFamily,
|
||||
fontWeight: this.fontWeight,
|
||||
textDecoration: this.textDecoration,
|
||||
textShadow: this.shadow && this.shadow.getShadow(),
|
||||
textShadow: this.shadow && this.shadow.toString(),
|
||||
textAlign: this.textAlign,
|
||||
fontStyle: this.fontStyle,
|
||||
lineHeight: this.lineHeight,
|
||||
|
|
@ -18114,15 +18117,15 @@ fabric.util.object.extend(fabric.Text.prototype, {
|
|||
}
|
||||
|
||||
/** @private */
|
||||
function request_fs(url, callback){
|
||||
var fs = require('fs'),
|
||||
stream = fs.createReadStream(url),
|
||||
body = '';
|
||||
stream.on('data', function(chunk){
|
||||
body += chunk;
|
||||
});
|
||||
stream.on('end', function(){
|
||||
callback(body);
|
||||
function request_fs(path, callback){
|
||||
var fs = require('fs');
|
||||
fs.readFile(path, function (err, data) {
|
||||
if (err) {
|
||||
fabric.log(err);
|
||||
throw err;
|
||||
} else {
|
||||
callback(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
/**
|
||||
* Intersection class
|
||||
* @class fabric.Intersection
|
||||
* @memberOf fabric
|
||||
* @constructor
|
||||
*/
|
||||
function Intersection(status) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
/**
|
||||
* Point class
|
||||
* @class fabric.Point
|
||||
* @memberOf fabric
|
||||
* @constructor
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
|
|
|
|||
Loading…
Reference in a new issue