Skip to content

Commit 3b8cd98

Browse files
committed
Release v0.2.0
1 parent f3edef5 commit 3b8cd98

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
- -
4+
5+
# v0.2.0
6+
37
- Updated all links (docs, etc) to official Konva homepage
48
- Added the `staticConfig` prop to all components. This prop controls whether svelte-konva dynamically updates the config prop on `dragend` and `transformend` events (See README for more details).
59
- Various dependency updates

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ svelte-konva is a component-based svelte wrapper for the [Konva HTML5 2D canvas
77

88
## Compatibility
99

10-
Currently compatible with Svelte v3, SvelteKit v1 and Konva v8. (For more info on SvelteKit compatability visit the [docs](https://konvajs.org/docs/svelte))
10+
Currently compatible with Svelte v3, SvelteKit v1 and Konva v8+.
1111

1212
## Install
1313

@@ -85,7 +85,7 @@ In various cases it is useful and required to be able to access the underlying K
8585

8686
### Binding the config prop
8787

88-
With svelte-konva you can bind the config prop of a component to have its fields automatically updated on `dragend` and `transformend` events.
88+
By default svelte-konva keeps your config in sync (position, rotation, scale, etc.) with the Konva node after `dragend` and `transformend` events. If you bind the config prop any reactive blocks depending on the config will also be triggered once such changes happen. In case you don't want svelte-konva to sync those changes you can pass the `staticConfig` prop to the component.
8989

9090
```html
9191
<script>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelte-konva",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"author": {
55
"name": "TeyKey1",
66
"url": "https://github.com/TeyKey1"
@@ -31,7 +31,7 @@
3131
"lint": "prettier --plugin-search-dir . --check . && eslint .",
3232
"format": "prettier --plugin-search-dir . --write .",
3333
"plop": "plop",
34-
"prepack": "plop svelteKonvaComponents",
34+
"prepack": "plop svelteKonvaComponents&&npm run build",
3535
"test": "jest src",
3636
"test:watch": "npm run test -- --watch",
3737
"pretest": "plop svelteKonvaComponentTests&&plop svelteKonvaComponents",

0 commit comments

Comments
 (0)