mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:21:36 +08:00
fixed bug with fillText in Shape class
This commit is contained in:
11
dist/kinetic-core.js
vendored
11
dist/kinetic-core.js
vendored
@@ -3,7 +3,7 @@
|
|||||||
* http://www.kineticjs.com/
|
* http://www.kineticjs.com/
|
||||||
* Copyright 2012, Eric Rowell
|
* Copyright 2012, Eric Rowell
|
||||||
* Licensed under the MIT or GPL Version 2 licenses.
|
* Licensed under the MIT or GPL Version 2 licenses.
|
||||||
* Date: Jul 23 2012
|
* Date: Jul 24 2012
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 - 2012 by Eric Rowell
|
* Copyright (C) 2011 - 2012 by Eric Rowell
|
||||||
*
|
*
|
||||||
@@ -3495,6 +3495,13 @@ Kinetic.Group = Kinetic.Container.extend({
|
|||||||
* @config {String} [config.lineJoin] line join can be miter, round, or bevel. The default
|
* @config {String} [config.lineJoin] line join can be miter, round, or bevel. The default
|
||||||
* is miter
|
* is miter
|
||||||
* @config {Object} [config.shadow] shadow object
|
* @config {Object} [config.shadow] shadow object
|
||||||
|
* @config {String} [config.shadow.color]
|
||||||
|
* @config {Number} [config.shadow.blur]
|
||||||
|
* @config {Obect} [config.shadow.blur.offset]
|
||||||
|
* @config {Number} [config.shadow.blur.offset.x]
|
||||||
|
* @config {Number} [config.shadow.blur.offset.y]
|
||||||
|
* @config {Number} [config.shadow.alpha] shadow alpha. Can be any real number
|
||||||
|
* between 0 and 1
|
||||||
* @config {String} [config.detectionType] shape detection type. Can be path or pixel.
|
* @config {String} [config.detectionType] shape detection type. Can be path or pixel.
|
||||||
* The default is path because it performs better
|
* The default is path because it performs better
|
||||||
* @param {Number} [config.x]
|
* @param {Number} [config.x]
|
||||||
@@ -3677,7 +3684,7 @@ Kinetic.Shape = Kinetic.Node.extend({
|
|||||||
context.restore();
|
context.restore();
|
||||||
}
|
}
|
||||||
if(appliedShadow) {
|
if(appliedShadow) {
|
||||||
this.fillText(contex, text, 0, 0);
|
this.fillText(context, text, 0, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
4
dist/kinetic-core.min.js
vendored
4
dist/kinetic-core.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -28,6 +28,13 @@
|
|||||||
* @config {String} [config.lineJoin] line join can be miter, round, or bevel. The default
|
* @config {String} [config.lineJoin] line join can be miter, round, or bevel. The default
|
||||||
* is miter
|
* is miter
|
||||||
* @config {Object} [config.shadow] shadow object
|
* @config {Object} [config.shadow] shadow object
|
||||||
|
* @config {String} [config.shadow.color]
|
||||||
|
* @config {Number} [config.shadow.blur]
|
||||||
|
* @config {Obect} [config.shadow.blur.offset]
|
||||||
|
* @config {Number} [config.shadow.blur.offset.x]
|
||||||
|
* @config {Number} [config.shadow.blur.offset.y]
|
||||||
|
* @config {Number} [config.shadow.alpha] shadow alpha. Can be any real number
|
||||||
|
* between 0 and 1
|
||||||
* @config {String} [config.detectionType] shape detection type. Can be path or pixel.
|
* @config {String} [config.detectionType] shape detection type. Can be path or pixel.
|
||||||
* The default is path because it performs better
|
* The default is path because it performs better
|
||||||
* @param {Number} [config.x]
|
* @param {Number} [config.x]
|
||||||
@@ -210,7 +217,7 @@ Kinetic.Shape = Kinetic.Node.extend({
|
|||||||
context.restore();
|
context.restore();
|
||||||
}
|
}
|
||||||
if(appliedShadow) {
|
if(appliedShadow) {
|
||||||
this.fillText(contex, text, 0, 0);
|
this.fillText(context, text, 0, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user