mirror of
https://github.com/konvajs/konva.git
synced 2025-05-04 04:57:59 +08:00
cleaned up Path docs
This commit is contained in:
parent
7cb4c4269f
commit
b97a7ab1ba
@ -5,9 +5,6 @@
|
|||||||
* @constructor
|
* @constructor
|
||||||
* @augments Kinetic.Shape
|
* @augments Kinetic.Shape
|
||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
* @param {String} config.textFill
|
|
||||||
* @param {String} config.textStroke
|
|
||||||
* @param {Number} config.textStrokeWidth
|
|
||||||
* @param {String} config.fontFamily default is Calibri
|
* @param {String} config.fontFamily default is Calibri
|
||||||
* @param {Number} config.fontSize default is 12
|
* @param {Number} config.fontSize default is 12
|
||||||
* @param {String} config.fontStyle can be normal, bold, or italic. Default is normal
|
* @param {String} config.fontStyle can be normal, bold, or italic. Default is normal
|
||||||
@ -23,7 +20,6 @@
|
|||||||
fontFamily: 'Calibri',
|
fontFamily: 'Calibri',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontStyle: 'normal',
|
fontStyle: 'normal',
|
||||||
detectionType: 'path',
|
|
||||||
text: ''
|
text: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -299,11 +295,10 @@
|
|||||||
Kinetic.Global.extend(Kinetic.TextPath, Kinetic.Shape);
|
Kinetic.Global.extend(Kinetic.TextPath, Kinetic.Shape);
|
||||||
|
|
||||||
// add setters and getters
|
// add setters and getters
|
||||||
Kinetic.Node.addGettersSetters(Kinetic.TextPath, ['fontFamily', 'fontSize', 'fontStyle', 'textFill', 'textStroke', 'textStrokeWidth']);
|
Kinetic.Node.addGettersSetters(Kinetic.TextPath, ['fontFamily', 'fontSize', 'fontStyle']);
|
||||||
Kinetic.Node.addGetters(Kinetic.TextPath, ['text', 'textShadow']);
|
Kinetic.Node.addGetters(Kinetic.TextPath, ['text']);
|
||||||
|
|
||||||
// reference Text methods
|
// reference Text methods
|
||||||
Kinetic.TextPath.prototype.setTextShadow = Kinetic.Text.prototype.setTextShadow;
|
|
||||||
Kinetic.TextPath.prototype.fillText = Kinetic.Text.prototype.fillText;
|
Kinetic.TextPath.prototype.fillText = Kinetic.Text.prototype.fillText;
|
||||||
Kinetic.TextPath.prototype.strokeText = Kinetic.Text.prototype.strokeText;
|
Kinetic.TextPath.prototype.strokeText = Kinetic.Text.prototype.strokeText;
|
||||||
Kinetic.TextPath.prototype.fillStrokeText = Kinetic.Text.prototype.strokeText;
|
Kinetic.TextPath.prototype.fillStrokeText = Kinetic.Text.prototype.strokeText;
|
||||||
@ -329,27 +324,6 @@
|
|||||||
* @param {String} fontStyle
|
* @param {String} fontStyle
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* set text fill color
|
|
||||||
* @name setTextFill
|
|
||||||
* @methodOf Kinetic.TextPath.prototype
|
|
||||||
* @param {String} textFill
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* set text stroke color
|
|
||||||
* @name setFontStroke
|
|
||||||
* @methodOf Kinetic.TextPath.prototype
|
|
||||||
* @param {String} textStroke
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* set text stroke width
|
|
||||||
* @name setTextStrokeWidth
|
|
||||||
* @methodOf Kinetic.TextPath.prototype
|
|
||||||
* @param {int} textStrokeWidth
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get font family
|
* get font family
|
||||||
* @name getFontFamily
|
* @name getFontFamily
|
||||||
@ -368,24 +342,6 @@
|
|||||||
* @methodOf Kinetic.TextPath.prototype
|
* @methodOf Kinetic.TextPath.prototype
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* get text fill color
|
|
||||||
* @name getTextFill
|
|
||||||
* @methodOf Kinetic.TextPath.prototype
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* get text stroke color
|
|
||||||
* @name getTextStroke
|
|
||||||
* @methodOf Kinetic.TextPath.prototype
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* get text stroke width
|
|
||||||
* @name getTextStrokeWidth
|
|
||||||
* @methodOf Kinetic.TextPath.prototype
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get text
|
* get text
|
||||||
* @name getText
|
* @name getText
|
||||||
|
Loading…
Reference in New Issue
Block a user