From 97dc4b6143f42b679577da74bbde8b91646b00a1 Mon Sep 17 00:00:00 2001 From: naqtn Date: Tue, 17 Sep 2019 19:58:32 +0900 Subject: [PATCH] Fix doc of `Node.getAbsoluteScale()` return type --- src/Node.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Node.ts b/src/Node.ts index 5303e432..8e1ecba9 100644 --- a/src/Node.ts +++ b/src/Node.ts @@ -1681,7 +1681,10 @@ export abstract class Node { * account its ancestor scales * @method * @name Konva.Node#getAbsoluteScale - * @returns {Konva.Transform} + * @returns {Object} + * @example + * // get absolute scale x + * var scaleX = node.getAbsoluteScale().x; */ getAbsoluteScale(top?) { // if using an argument, we can't cache the result.