Merge pull request #743 from naqtn/master

Fix doc of `Node.getAbsoluteScale()` return type
This commit is contained in:
Anton Lavrenov
2019-09-17 06:44:46 -05:00
committed by GitHub

View File

@@ -1681,7 +1681,10 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
* account its ancestor scales * account its ancestor scales
* @method * @method
* @name Konva.Node#getAbsoluteScale * @name Konva.Node#getAbsoluteScale
* @returns {Konva.Transform} * @returns {Object}
* @example
* // get absolute scale x
* var scaleX = node.getAbsoluteScale().x;
*/ */
getAbsoluteScale(top?) { getAbsoluteScale(top?) {
// if using an argument, we can't cache the result. // if using an argument, we can't cache the result.