mirror of
https://github.com/konvajs/konva.git
synced 2025-11-24 16:53:06 +08:00
Merge pull request #743 from naqtn/master
Fix doc of `Node.getAbsoluteScale()` return type
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user