Skip to content

Commit

Permalink
Release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyKey1 committed May 20, 2023
1 parent f3edef5 commit 3b8cd98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

- -

# v0.2.0

- Updated all links (docs, etc) to official Konva homepage
- 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).
- Various dependency updates
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ svelte-konva is a component-based svelte wrapper for the [Konva HTML5 2D canvas

## Compatibility

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

## Install

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

### Binding the config prop

With svelte-konva you can bind the config prop of a component to have its fields automatically updated on `dragend` and `transformend` events.
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.

```html
<script>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svelte-konva",
"version": "0.1.1",
"version": "0.2.0",
"author": {
"name": "TeyKey1",
"url": "https://github.com/TeyKey1"
Expand Down Expand Up @@ -31,7 +31,7 @@
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"plop": "plop",
"prepack": "plop svelteKonvaComponents",
"prepack": "plop svelteKonvaComponents&&npm run build",
"test": "jest src",
"test:watch": "npm run test -- --watch",
"pretest": "plop svelteKonvaComponentTests&&plop svelteKonvaComponents",
Expand Down

0 comments on commit 3b8cd98

Please sign in to comment.