mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 05:58:29 +08:00
updated shape.getContext() documentation
This commit is contained in:
parent
5aee56ab5e
commit
6093c7ca73
7
dist/kinetic-core.js
vendored
7
dist/kinetic-core.js
vendored
@ -1540,7 +1540,11 @@ Kinetic.Shape = function(config) {
|
||||
*/
|
||||
Kinetic.Shape.prototype = {
|
||||
/**
|
||||
* get temporary shape layer context
|
||||
* get layer context that the shape is being drawn. When
|
||||
* the shape is being rendered, .getContext() returns the context of the
|
||||
* user created layer that contains the shape. When the event detection
|
||||
* engine is determining whether or not an event has occured on that shape,
|
||||
* .getContext() returns the context of the invisible backstage layer.
|
||||
*/
|
||||
getContext: function() {
|
||||
return this.tempLayer.getContext();
|
||||
@ -1672,6 +1676,7 @@ Kinetic.Shape.prototype = {
|
||||
};
|
||||
// extend Node
|
||||
Kinetic.GlobalObject.extend(Kinetic.Shape, Kinetic.Node);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
// Rect
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
@ -31,7 +31,11 @@ Kinetic.Shape = function(config) {
|
||||
*/
|
||||
Kinetic.Shape.prototype = {
|
||||
/**
|
||||
* get temporary shape layer context
|
||||
* get layer context that the shape is being drawn. When
|
||||
* the shape is being rendered, .getContext() returns the context of the
|
||||
* user created layer that contains the shape. When the event detection
|
||||
* engine is determining whether or not an event has occured on that shape,
|
||||
* .getContext() returns the context of the invisible backstage layer.
|
||||
*/
|
||||
getContext: function() {
|
||||
return this.tempLayer.getContext();
|
||||
@ -162,4 +166,4 @@ Kinetic.Shape.prototype = {
|
||||
}
|
||||
};
|
||||
// extend Node
|
||||
Kinetic.GlobalObject.extend(Kinetic.Shape, Kinetic.Node);
|
||||
Kinetic.GlobalObject.extend(Kinetic.Shape, Kinetic.Node);
|
||||
|
Loading…
Reference in New Issue
Block a user