mirror of
https://github.com/konvajs/konva.git
synced 2025-12-04 10:58:22 +08:00
new setDetectionType() and getDetectionType() methods to enable path and pixel detection swapping
This commit is contained in:
13
dist/kinetic-core.js
vendored
13
dist/kinetic-core.js
vendored
@@ -441,6 +441,19 @@ Kinetic.Node.prototype = {
|
||||
setY: function(y) {
|
||||
this.attrs.y = y;
|
||||
},
|
||||
/**
|
||||
* set detection type
|
||||
* @param {String} type can be "path" or "pixel"
|
||||
*/
|
||||
setDetectionType: function(type) {
|
||||
this.attrs.detectionType = type;
|
||||
},
|
||||
/**
|
||||
* get detection type
|
||||
*/
|
||||
getDetectionType: function() {
|
||||
return this.attrs.detectionType;
|
||||
},
|
||||
/**
|
||||
* get node position relative to container
|
||||
*/
|
||||
|
||||
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
Reference in New Issue
Block a user