diff --git a/README.md b/README.md index ea3ea87b..e7f5419c 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,18 @@ In order to run `konva` in nodejs environment you also need to install `canvas` npm install konva canvas ``` +Then you can use the same Konva API and all Konva demos will work just fine. You just don't need to use `container` attribute in your stage. + +```js +import Konva from 'konva'; + +const stage = new Konva.Stage({ + width: 500, + height: 500, +}); +// then all regular Konva code will work +``` + ### CommonJS modules By default `Konva` is delivered as ES modules. Some environments may automatically take CommonJS version of `Konva`. If it doesn't work for you, try to use `cmj` version explicitly: diff --git a/src/shapes/Transformer.ts b/src/shapes/Transformer.ts index e3783555..72adbf36 100644 --- a/src/shapes/Transformer.ts +++ b/src/shapes/Transformer.ts @@ -1242,7 +1242,7 @@ export class Transformer extends Group { ignoreStroke: GetSet<boolean, this>; boundBoxFunc: GetSet<(oldBox: Box, newBox: Box) => Box, this>; anchorDragBoundFunc: GetSet< - (oldPos: Vector2d, newPos: Vector2d, e: MouseEvent) => Box, + (oldPos: Vector2d, newPos: Vector2d, e: MouseEvent) => Vector2d, this >; shouldOverdrawWholeArea: GetSet<boolean, this>;