mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 00:14:29 +08:00
updated docs
This commit is contained in:
parent
2977d8f1d8
commit
bceedc08f6
9
dist/kinetic-core.js
vendored
9
dist/kinetic-core.js
vendored
@ -689,9 +689,14 @@ Kinetic.Node.prototype = {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* transition node to another state. Any property that can accept a real
|
* transition node to another state. Any property that can accept a real
|
||||||
* number such as x, y, rotation, alpha, strokeWidth, radius, scale.x, scale.y,
|
* number can be transitioned, including x, y, rotation, alpha, strokeWidth,
|
||||||
* centerOffset.x and centerOffset.y can be transitioned
|
* radius, scale.x, scale.y, centerOffset.x, centerOffset.y, etc.
|
||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
|
* @config {Number} [duration] duration that the transition runs in seconds
|
||||||
|
* @config {String} [easing] easing function. can be linear, ease-in, ease-out, or ease-in-out.
|
||||||
|
* linear is the default
|
||||||
|
* @config {Function} [callback] callback function to be executed when
|
||||||
|
* transition completes
|
||||||
*/
|
*/
|
||||||
transitionTo: function(config) {
|
transitionTo: function(config) {
|
||||||
var layer = this.getLayer();
|
var layer = this.getLayer();
|
||||||
|
@ -435,9 +435,14 @@ Kinetic.Node.prototype = {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* transition node to another state. Any property that can accept a real
|
* transition node to another state. Any property that can accept a real
|
||||||
* number such as x, y, rotation, alpha, strokeWidth, radius, scale.x, scale.y,
|
* number can be transitioned, including x, y, rotation, alpha, strokeWidth,
|
||||||
* centerOffset.x and centerOffset.y can be transitioned
|
* radius, scale.x, scale.y, centerOffset.x, centerOffset.y, etc.
|
||||||
* @param {Object} config
|
* @param {Object} config
|
||||||
|
* @config {Number} [duration] duration that the transition runs in seconds
|
||||||
|
* @config {String} [easing] easing function. can be linear, ease-in, ease-out, or ease-in-out.
|
||||||
|
* linear is the default
|
||||||
|
* @config {Function} [callback] callback function to be executed when
|
||||||
|
* transition completes
|
||||||
*/
|
*/
|
||||||
transitionTo: function(config) {
|
transitionTo: function(config) {
|
||||||
var layer = this.getLayer();
|
var layer = this.getLayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user