konva/CHANGELOG.md

1447 lines
39 KiB
Markdown
Raw Normal View History

2015-02-17 14:01:01 +08:00
# Change Log
2015-02-17 14:01:01 +08:00
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
2015-02-08 07:24:11 +08:00
2025-08-14 06:29:56 +08:00
## 10.0.0-0 (2025-08-14)
- **Breaking**: Konva module is fully migrated from CommonJS modules to ES modules. It may break some older bundlers and CommonJS environments. In CommonJS environment you have to use default property from require:
```js
// before
const Konva = require('konva');
// after
const Konva = require('konva').default;
```
- **Breaking:** Dropped default support for node.js environment. Now you have to explicitly import it:
```bash
npm install canvas
```
```js
import Konva from 'konva';
import 'konva/canvas-backend';
```
- Added new `skia` render backend for node.js:
```bash
npm install skia-canvas
```
```js
import Konva from 'konva';
import 'konva/skia-backend';
```
- New property `charRenderFunc` for `Konva.Text` for controlling "per-character-render". May be useful any character animations:
````js
var text = new Konva.Text({
x: 10,
y: 10,
text: 'AB',
fontSize: 20,
charRenderFunc: function ({ context, index }) {
if (index === 1) {
// shift only the second character
context.translate(0, 10);
}
},
});
```
- Fixed corner radius render for `Konva.Rect` when negative width or height are used
- Added `cornerRadius` support for `Konva.RegularPolygon`
## 9.3.22 (2025-07-08)
- Fixed possible crash on `node.to()` method
2025-07-07 23:01:04 +08:00
## 9.3.21 (2025-07-07)
- Fixed memory leaks on Tween destroy
- Fixed incorrect export of stage/layer when internal nodes used buffer canvas for rendering
2025-04-04 02:04:23 +08:00
- Fixed incorrect render of cached node when buffer canvas is used
- Fixed incorrect path lenth calculations
2025-07-07 23:01:04 +08:00
- Fixed `pointerleave` bubbling
- Added `pointerleave` event in `Stage`
2025-03-21 04:40:15 +08:00
## 9.3.20 (2025-03-20)
- Fix text rendering when ellipses are used
2025-03-12 22:51:46 +08:00
## 9.3.19 (2025-03-12)
- Typescript fixes
- Memory leak fixes
2024-12-24 01:32:32 +08:00
## 9.3.18 (2024-12-23)
- Fixed emoji split in multiple lines
2024-12-23 23:07:55 +08:00
## 9.3.17 (2024-12-23)
2024-12-23 23:07:55 +08:00
- Fixed `Arrow.getClientRect()`
- Fixed emoji rendering with letterSpacing
- Fixed line-through for justify text
- Changes in letter spacing width calculations to match DOM rendering
2024-12-02 09:19:35 +08:00
2024-10-22 07:16:28 +08:00
## 9.3.16 (2024-10-21)
- Fix freeze on ios on touch cancel event
- Typescript fixes
2024-09-10 00:30:00 +08:00
## 9.3.15 (2024-09-09)
- fix letter spacing for Hindi text
2024-07-19 02:49:01 +08:00
- ts fixes
2024-07-17 09:20:01 +08:00
### 9.3.14 (2024-07-16)
- Fix shadow + corner radius for images
- Support `fillRule` for `Konva.Shape` on hit graph
2024-07-06 02:24:38 +08:00
### 9.3.13 (2024-07-05)
- Fallback for `Konva.Text.measureSize()` when 2d context doesn't return full data
2024-06-20 23:00:27 +08:00
### 9.3.12 (2024-06-20)
- Fix stopped transforming when it was triggered by multi-touch
- Fix svg `path.getPointAtLength()` calculations in some cases
- Fix `shape.getClientRect()` when any of parents is cached
2024-05-24 01:40:59 +08:00
### 9.3.11 (2024-05-23)
2024-05-24 01:20:00 +08:00
- Fix chrome clear canvas issue
- Typescript fixes
2024-05-21 08:25:09 +08:00
### 9.3.9 (2024-05-20)
- Fix underline and line-through for `Konva.Text` when `Konva._fixTextRendering = true`
### 9.3.8 (2024-05-15)
2024-05-16 10:11:19 +08:00
- Fix click events fires on stage
- Temporary `Konva._fixTextRendering = true` flag to fix inconsistent text
2024-03-07 07:54:29 +08:00
### 9.3.6 (2024-03-04)
- Fix transformer bug to enable hit graph back
2024-03-04 06:18:38 +08:00
### 9.3.5 (2024-03-04)
- `tranformer` event will be triggered AFTER all data of transformer is updated
- Improve performance of transformer
2024-03-03 11:43:27 +08:00
### 9.3.4 (2024-03-03)
- Fix clipping with zero size
### 9.3.3 (2024-02-09)
- Another fix for exporting buffered shapes
2024-01-27 00:08:12 +08:00
### 9.3.2 (2024-01-26)
- Fix large memory usage on node export
2024-01-18 08:12:49 +08:00
### 9.3.1 (2024-01-17)
- Fix Pixelate filter work/fix caching size
- Fix node export when large buffer canvas is used
2023-12-20 22:37:09 +08:00
### 9.3.0 (2023-12-20)
- New attribute `rotateLineVisible` for `Konva.Transformer` to show/hide rotate line
2023-10-31 23:48:26 +08:00
### 9.2.3 (2023-10-31)
- Better `Konva.Transformer` work when it has `flipEnabled = false`.
2023-10-10 08:34:33 +08:00
### 9.2.2 (2023-09-14)
- Better RTL support
- Some typescript fixes
2023-09-14 21:51:05 +08:00
### 9.2.1 (2023-09-14)
2023-09-05 00:42:31 +08:00
- Fix text rendering when text has both underline and shadow
2023-09-14 21:51:05 +08:00
- Typescript fixes
2023-09-05 00:42:31 +08:00
2023-06-05 23:28:44 +08:00
### 9.2.0 (2023-05-14)
- More controls on clipping
- `fillRule` for `Konva.Shape`
### 9.1.0 (2023-05-14)
- New `anchorStyleFunc` for `Konva.Transformer` to customize anchor style
2023-05-14 21:31:29 +08:00
### 9.0.2 (2023-05-14)
- Better text rendering when it has stroke
2023-04-17 23:03:39 +08:00
### 9.0.1 (2023-04-17)
- Better performance for any instance creation
- Little typescript fixes
2023-04-14 23:09:40 +08:00
### 9.0.0 (2023-04-13)
- Migrate the npm package from ES back to CommonJS
2023-04-06 10:51:27 +08:00
### 8.4.4 (2023-04-05)
- Some fixes for `Konva.TextPath` calculations and rendering.
- Resolve "willReadFrequently" warning in Chrome
2023-03-24 06:20:15 +08:00
### 8.4.3 (2023-03-23)
- Typescript fixes
- Better validation for `Konva.Transfomer` `nodes` property
2023-01-20 23:53:49 +08:00
### 8.4.2 (2023-01-20)
- Fix justify on text with limited height
2023-01-20 07:42:25 +08:00
### 8.4.1 (2023-01-19)
- Typescript fixes for `container.add()` method. Ability to use empty array as argument. E.g. `container.add(...emptyArray)`
- Fix underline for justify text
- Fix gradient display on underline or line-through text
2023-01-06 12:46:40 +08:00
### 8.4.0 (2023-01-05)
- Add support for `cornerRadius` for Konva.Image
2022-12-18 00:27:22 +08:00
- Fix cloning of `Konva.Transformer`
2022-11-10 02:28:41 +08:00
### 8.3.14 (2022-11-09)
- Automatically release (destroy) used canvas elements. Should fix safari memory issues
2022-10-04 01:11:41 +08:00
### 8.3.13 (2022-10-03)
- Typescript fixes
- Better non-passive events usage
- Better 2d context usage to avoid Chrome warnings
2022-08-29 22:38:49 +08:00
### 8.3.12 (2022-08-29)
2022-08-20 06:48:39 +08:00
2022-08-29 22:38:49 +08:00
- `ellipsis` fixes for `Konva.Text`
- Allow reset component attributes via overloader
2022-08-20 06:48:39 +08:00
2022-08-06 00:13:09 +08:00
### 8.3.11 (2022-08-05)
2022-08-05 23:22:46 +08:00
- Fix `Konva.Label` position when tag attributes are changed
- Fix incorrect ellipsis display for `Konva.Text`
- Fix `click` event trigger on parent containers on touch devices
2022-08-05 23:58:06 +08:00
- Fix incorrect `mouseleave` event trigger when drag is finished
2022-08-05 23:22:46 +08:00
### 8.3.10 (2022-06-20)
- Skip `Konva.Transformer` in `container.getClientRect()` calculations
### 8.3.9 (2022-05-27)
2022-05-30 22:36:11 +08:00
- Typescript fixes
### 8.3.8 (2022-05-05)
2022-05-06 07:41:17 +08:00
- Disable all exports in `package.json`
2022-05-05 05:06:20 +08:00
### 8.3.7 (2022-05-04)
- Migrate to CommonJS exports only
2022-04-27 22:25:09 +08:00
### 8.3.6 (2022-04-27)
2022-04-27 22:21:24 +08:00
- Better exports definitions. Importing `Konva` should work better in different bundlers and test environments.
2022-04-12 07:20:57 +08:00
- `imageSmoothingEnabled` option for `node.toDataURL()`, `node.toCanvas()` and `node.toImage()`
2022-03-22 02:49:55 +08:00
## 8.3.5 (2022-03-21)
- Quick fix for `toCanvas()` and `toDataURL()` size calculation.
2022-03-13 21:08:37 +08:00
## 8.3.4 (2022-03-13)
2022-03-13 11:51:24 +08:00
- Fix characters positions calculations on `fontFamily` changes in `TextPath`.
- Remove rounding in `node.getClientRect()` results
2022-03-09 00:00:28 +08:00
- Fix event object on `transformstart` event.
2022-03-13 21:08:37 +08:00
## 8.3.3 (2022-02-23)
- Fix `justify` align for text with several paragraphs.
2022-01-05 01:11:15 +08:00
## 8.3.2
- Remove source maps for webpack builds
## 8.3.1 (2021-12-09)
- Fix `dbltap` event in Safari
2021-12-09 22:03:55 +08:00
- A bit faster `node.moveToTop()` when node is already on top
- Better client rect calculations for `Konva.Arc` shape.
## 8.3.0 (2021-11-15)
2021-11-16 01:22:04 +08:00
- new `transformer.anchorDragBoundFunc` method.
## 8.2.4 (2021-11-15)
2021-11-15 21:27:41 +08:00
- Fix not working `Konva.Transformer` when several transformers were used
2021-10-22 23:09:34 +08:00
## 8.2.2
- Fix `Konva.Arrow` rendering when it has two pointers
2021-09-24 19:39:30 +08:00
## 8.2.1
- Fix `package.json` exports.
2021-09-24 05:25:45 +08:00
## 8.2.0
- Restore build in CommonJS. `const Konva = require('konva/cmj').default;`
2021-09-24 05:17:14 +08:00
- Fix arrow rendering when dash is used
- Fix `dbltap` trigger when multi-touch is used
2021-09-16 04:35:34 +08:00
## 8.1.4
- Fix `dblclick` event when `cancelBubble` is used.
2021-08-04 19:34:22 +08:00
## 8.1.3
- Fix `fillPattern` cache invalidation on shapes
2021-08-04 16:56:59 +08:00
## 8.1.2
- Fix memory leak for `Konva.Image`
2021-07-01 13:43:17 +08:00
## 8.1.1
- Fix `Konva.Transformer` dragging draw when `shouldOverdrawWholeArea = true`.
- Fix auto redraw when `container.removeChildren()` or `container.destroyChildren()` are used
## 8.1.0
- New property `useSingleNodeRotation` for `Konva.Transformer`.
2021-06-08 15:24:57 +08:00
## 8.0.4
2021-06-08 15:16:08 +08:00
- Fix fill pattern updates on `fillPatternX` and `fillPatternY` changes.
2021-06-08 15:19:47 +08:00
## 8.0.2
2021-05-28 09:05:10 +08:00
2021-05-28 04:07:13 +08:00
- Fix some transform caches
2021-05-28 09:05:10 +08:00
- Fix cache with hidden shapes
2021-05-28 04:07:13 +08:00
## 8.0.1
- Some typescript fixes
2021-05-22 00:01:24 +08:00
## 8.0.0
2021-05-04 21:57:03 +08:00
2021-05-21 23:58:18 +08:00
This is a very large release! The long term of `Konva` API is to make it simpler and faster. So when possible I am trying to optimize the code and remove unpopular/confusing API methods.
2021-05-09 21:11:42 +08:00
2021-05-09 10:55:26 +08:00
**BREAKING:**
2021-05-09 21:11:42 +08:00
- `Konva.Collection` is removed. `container.children` is a simple array now. `container.find()` will returns an array instead of `Konva.Collection()` instance.
`Konva.Collection` was confusing for many users. Also it was slow and worked with a bit of magic. So I decided to get rif of it. Now we are going to use good old arrays.
```js
// old code:
group.find('Shape').visible(false);
// new code:
group.find('Shape').forEach((shape) => shape.visible(false));
2025-08-14 06:29:56 +08:00
````
2021-05-09 21:11:42 +08:00
2021-05-21 23:58:18 +08:00
- argument `selector` is removed from `node.getIntersection(pos)` API. I don't think you even knew about it.
2021-05-09 21:11:42 +08:00
- `Konva.Util.extend` is removed.
2021-06-29 12:52:35 +08:00
- All "content" events from `Konva.Stage` are removed. E.g. instead of `contentMousemove` just use `mousemove` event.
2021-05-09 10:55:26 +08:00
**New features:**
2021-05-22 07:20:52 +08:00
- All updates on canvas will do automatic redraw with `layer.batchDraw()`. This features is configurable with `Konva.autoDrawEnabled` property. Konva will automatically redraw layer when you change any property, remove or add nodes, do caching. So you don't need to call `layer.draw()` or `layer.batchDraw()` in most of the cases.
2021-05-09 10:55:26 +08:00
- New method `layer.getNativeCanvasElement()`
- new `flipEnabled` property for `Konva.Transformer`
- new `node.isClientRectOnScreen()` method
- Added `Konva.Util.degToRad` and `Konva.Util.radToDeg`
- Added `node.getRelativePointerPosition()`
**Changes and fixes:**
2021-05-21 23:58:18 +08:00
- **Full migration to ES modules package (!), commonjs code is removed.**
- **`konva-node` is merged into `konva` npm package. One package works for both environments.**
2021-06-16 04:45:41 +08:00
- Full event system rewrite. Much better `pointer` events support.
2021-04-30 22:24:27 +08:00
- Fix `TextPath` recalculations on `fontSize` change
2021-05-04 21:57:03 +08:00
- Better typescript support. Now every module has its own `*.d.ts` file.
2021-05-05 22:19:24 +08:00
- Removed `Konva.UA`, `Konva._parseUA` (it was used for old browser detection)
2021-05-07 03:23:04 +08:00
- Fixed Arrow head position when an arrow has tension
- `textPath.getKerning()` is removed
- Fix `a` command parsing for `Konva.Path`
- Fix fill pattern for `Konva.Text` when the pattern has an offset or rotation
- `Konva.names` and `Konva.ids` are removed
2021-05-07 20:48:13 +08:00
- `Konva.captureTouchEventsEnabled` is renamed to `Konva.capturePointerEventsEnabled`
2021-04-30 22:24:27 +08:00
2021-03-04 01:06:37 +08:00
## 7.2.5
2021-04-30 22:24:27 +08:00
- Fix transform update on `letterSpacing` change of `Konva.Text`
2021-03-04 01:06:37 +08:00
## 7.2.4
2021-04-30 22:24:27 +08:00
- Fix wrong `mouseleave` trigger for `Konva.Stage`
## 7.2.3
2021-04-30 22:24:27 +08:00
- Fix transformer rotation when parent of a node is rotated too.
2020-12-19 00:13:13 +08:00
## 7.2.2
2021-04-30 22:24:27 +08:00
- Fix wrong size calculations for `Konva.Line` with tension
- Fix `shape.intersects()` behavior when a node is dragged
- Fix ellipsis rendering for `Konva.Text`
## 7.2.1
2021-04-30 22:24:27 +08:00
- Fix correct rendering of `Konva.Label` when heigh of text is changed
- Fix correct `transformstart` and `transformend` events when several nodes are attached with `Konva.Transformer`
## 7.2.0
2021-04-30 22:24:27 +08:00
- New property `fillAfterStrokeEnabled` for `Konva.Shape`. See API docs for more information.
- Fix for `Konva.Transformer` when it may fail to draw.
- Fix rendering of `TextPath` one more time.
2020-11-21 01:22:16 +08:00
## 7.1.9
2021-04-30 22:24:27 +08:00
- Fix autodrawing for `Konva.Transformer` when it is on a different layer
- Fix `Konva.RegularPolygon` size calculations.
2020-11-18 00:22:28 +08:00
## 7.1.8
2021-04-30 22:24:27 +08:00
- Fix incorrect rendering of `TextPath` in some cases. (again)
2020-11-18 00:22:28 +08:00
2020-11-17 00:13:08 +08:00
## 7.1.7
2021-04-30 22:24:27 +08:00
- Fix incorrect rendering of `TextPath` in some cases.
## 7.1.6
2021-04-30 22:24:27 +08:00
- Fix for correct image/dataURL/canvas exports for `Konva.Stage`.
2020-11-10 22:01:00 +08:00
## 7.1.5
2021-04-30 22:24:27 +08:00
- Performance fixes for dragging many nodes with `Konva.Transformer`.
- Documentation updates
2020-11-10 22:01:00 +08:00
2020-10-22 05:42:22 +08:00
## 7.1.4
2021-04-30 22:24:27 +08:00
- Perf fixes
- Change events trigger flow, so adding new events INSIDE event callback will work correctly.
- Fix double `dragend`, `dragstart`, `dragmove` triggers on `Konva.Transformer`
2020-09-17 22:39:15 +08:00
## 7.1.3
2021-04-30 22:24:27 +08:00
- Text rendering fixes
2020-09-17 22:39:15 +08:00
2020-09-16 22:55:40 +08:00
## 7.1.2
2021-04-30 22:24:27 +08:00
- fix ellipses behavior for `Konva.Text`.
- fix scaled fill pattern for text.
2020-09-16 22:55:40 +08:00
2020-09-15 03:30:03 +08:00
## 7.1.1
2021-04-30 22:24:27 +08:00
- fixes for `dragstart` event when `Konva.Transformer` is used. `dragstart` event will have correct native `evt` reference
- Better unicode support in `Konva.Text` and `Konva.TextPath`. Emoji should work better now 👍
2020-09-08 00:05:26 +08:00
## 7.1.0
2021-04-30 22:24:27 +08:00
- Multi row support for `ellipsis` config for `Konva.Text`
- Better `Konva.Transfomer` behavior when single attached node is programmatically rotated.
2020-09-03 02:27:09 +08:00
## 7.0.7
2021-04-30 22:24:27 +08:00
- fixes for `dragstart` event when `Konva.Transformer` is used. `dragstart` will not bubble from transformer.
- `string` and `fill` properties validation can accept `CanvasGradient` as valid value
2020-08-22 01:09:58 +08:00
## 7.0.6
2021-04-30 22:24:27 +08:00
- Better performance for stage dragging
2020-08-22 01:09:58 +08:00
2020-08-08 22:45:01 +08:00
## 7.0.5
2021-04-30 22:24:27 +08:00
- Fixes for `node.cache()` function.
2020-08-08 22:45:01 +08:00
## 7.0.4
2020-07-27 23:20:56 +08:00
2021-04-30 22:24:27 +08:00
- Add `onUpdate` callbacks to `Konva.Tween` configuration and `node.to()` method.
- Up to 6x faster initializations of objects, like `const shape = new Konva.Shape()`.
2020-07-27 23:20:56 +08:00
2020-07-10 05:50:50 +08:00
## 7.0.3 - 2020-07-09
2021-04-30 22:24:27 +08:00
- Fix wring `dragend` trigger on `draggable` property change inside `click`
- Fix incorrect text rendering with `letterSpacing !== 0`
- Typescript fixes
2020-07-06 23:20:47 +08:00
2020-07-01 02:04:06 +08:00
## 7.0.2 - 2020-06-30
2021-04-30 22:24:27 +08:00
- Fix wrong trigger `dbltap` and `click` on mobile
2020-07-01 02:04:06 +08:00
2020-06-30 01:14:39 +08:00
## 7.0.1 - 2020-06-29
2021-04-30 22:24:27 +08:00
- Fixes for different font families support.
- Fixes for `Konva.Transformer` positions
- Types fixes for better Typescript support
2020-06-26 01:20:01 +08:00
2020-06-24 07:07:53 +08:00
## 7.0.0 - 2020-06-23
2021-04-30 22:24:27 +08:00
- **BREAKING** `inherit` option is removed from `visible` and `listening`. They now just have boolean values `true` or `false`. If you do `group.listening(false);` then whole group and all its children will be removed from the hitGraph (and they will not listen to events). Probably 99% `Konva` applications will be not affected by this _breaking change_.
- **Many performance fixes and code size optimizations. Up to 70% performance boost for many moving nodes.**
- `layer.hitGraphEnabled()` is deprecated. Just use `layer.listening(false)` instead
- Better support for font families with spaces inside (like `Font Awesome 5`).
- Fix wrong `dblclick` and `dbltap` triggers
- Deprecate `Konva.FastLayer`. Use `new Konva.Layer({ listening: false });` instead.
- `dragmove` event will be fired on `Konva.Transformer` too when you drag a node.
- `dragmove` triggers only after ALL positions of dragging nodes are changed
2020-05-08 23:07:05 +08:00
## 6.0.0 - 2020-05-08
2020-05-08 22:59:35 +08:00
2021-04-30 22:24:27 +08:00
- **BREAKING!** `boundBoxFunc` of `Konva.Transformer` works in absolute coordinates of whole transformer. Previously in was working in local coordinates of transforming node.
- Many `Konva.Transformer` fixes. Now it works correctly when you transform several rotated shapes.
- Fix for wrong `mouseleave` and `mouseout` fire on shape remove/destroy.
2020-05-07 00:40:08 +08:00
## 5.0.3 - 2020-05-01
2021-04-30 22:24:27 +08:00
- Fixes for `boundBoxFunc` of `Konva.Transformer`.
2020-04-24 00:34:11 +08:00
## 5.0.2 - 2020-04-23
2021-04-30 22:24:27 +08:00
- Deatach fixes for `Konva.Transformer`
2020-04-23 08:20:44 +08:00
## 5.0.1 - 2020-04-22
2021-04-30 22:24:27 +08:00
- Fixes for `Konva.Transformer` when parent scale is changed
- Fixes for `Konva.Transformer` when parent is draggable
- Performance optimizations
2020-04-23 08:20:44 +08:00
## 5.0.0 - 2020-04-21
2020-04-22 05:23:55 +08:00
2021-04-30 22:24:27 +08:00
- **New `Konva.Transformer` implementation!**. Old API should work. But I marked this release is `major` (breaking) just for smooth updates. Changes:
- Support of transforming multiple nodes at once: `tr.nodes([shape1, shape2])`.
- `tr.node()`, `tr.setNode()`, `tr.attachTo()` methods are deprecated. Use `tr.nodes(array)` instead
- Fixes for center scaling
- Fixes for better `padding` support
- `Transformer` can be placed anywhere in the tree of a stage tree (NOT just inside a parent of attached node).
- Fix `imageSmoothEnabled` resets when stage is resized
- Memory usage optimizations when a node is cached
2020-03-27 04:14:30 +08:00
## 4.2.2 - 2020-03-26
2021-04-30 22:24:27 +08:00
- Fix hit stroke issues
2020-03-27 04:14:30 +08:00
2020-03-27 03:42:26 +08:00
## 4.2.1 - 2020-03-26
2021-04-30 22:24:27 +08:00
- Fix some issues with `mouseenter` and `mouseleave` events.
- Deprecate `hitStrokeEnabled` property
- Fix rounding issues for `getClientRect()` for some shapes
2020-03-15 10:37:43 +08:00
## 4.2.0 - 2020-03-14
2021-04-30 22:24:27 +08:00
- Add `rotationSnapTolerance` property to `Konva.Transformer`.
- Add `getActiveAnchor()` method to `Konva.Transformer`
- Fix hit for non-closed `Konva.Path`
- Some fixes for experimental Offscreen canvas support inside a worker
2020-03-03 21:50:55 +08:00
2020-02-26 08:22:46 +08:00
## 4.1.6 - 2020-02-25
2021-04-30 22:24:27 +08:00
- Events fixes for `Konva.Transformer`
- Now `Konva` will keep `id` in a cloned node
- Better error messages on tainted canvas issues
2020-02-18 08:52:12 +08:00
2020-02-16 20:39:42 +08:00
## 4.1.5 - 2020-02-16
2021-04-30 22:24:27 +08:00
- Fixes for `path.getClientRect()` function calculations
2020-02-16 20:39:42 +08:00
2020-02-10 21:23:22 +08:00
## 4.1.4 - 2020-02-10
2021-04-30 22:24:27 +08:00
- Fix wrong internal caching of absolute attributes
- Fix `Konva.Transformer` behavior on scaled with CSS stage
2020-01-31 00:43:22 +08:00
## 4.1.3 - 2020-01-30
2021-04-30 22:24:27 +08:00
- Fix line with tension calculations
- Add `node.getAbsoluteRotation()` method
- Fix cursor on anchors for rotated parent
2020-01-28 02:41:18 +08:00
2020-01-08 21:15:12 +08:00
## 4.1.2 - 2020-01-08
2021-04-30 22:24:27 +08:00
- Fix possible `NaN` in content calculations
2020-01-08 21:15:12 +08:00
## 4.1.1 - 2020-01-07
2021-04-30 22:24:27 +08:00
- Add ability to use `width = 0` and `height = 0` for `Konva.Image`.
- Fix `cache()` method of `Konva.Arrow()`
- Add `Transform` to `Konva` default exports. So `Konva.Transform` is available now.
2019-12-23 23:54:33 +08:00
## 4.1.0 - 2019-12-23
2021-04-30 22:24:27 +08:00
- Make events work on some CSS transforms
- Fix caching on float dimensions
- Fix `mouseleave` event on stage.
- Increase default anchor size for `Konva.Transformer` on touch devices
## 4.0.18 - 2019-11-20
2021-04-30 22:24:27 +08:00
- Fix `path.getClientRect()` calculations for `Konva.Path`
- Fix wrong fire of `click` and `tap` events on stopped drag events.
2019-11-09 00:48:50 +08:00
## 4.0.17 - 2019-11-08
2021-04-30 22:24:27 +08:00
- Allow hitStrokeWidth usage, even if a shape has not stroke visible
- Better IE11 support
2019-11-09 00:45:17 +08:00
2019-10-21 23:13:11 +08:00
## 4.0.16 - 2019-10-21
2021-04-30 22:24:27 +08:00
- Warn on undefined return value of `dragBoundFunc`.
- Better calculations for `container.getClientRect()`
2019-10-16 00:51:13 +08:00
## 4.0.15 - 2019-10-15
2021-04-30 22:24:27 +08:00
- TS fixes
- Better calculations for `TextPath` with align = right
- Better `textPath.getClientRect()`
2019-10-11 22:14:53 +08:00
2019-10-11 20:55:04 +08:00
## 4.0.14 - 2019-10-11
2021-04-30 22:24:27 +08:00
- TS fixes
- Fix globalCompositeOperation + cached hit detections.
- Fix absolute position calculations for cached parent
## 4.0.13 - 2019-10-02
2021-04-30 22:24:27 +08:00
- Fix `line.getClientRect()` calculations for line with a tension or low number of points
2019-09-18 01:54:42 +08:00
## 4.0.12 - 2019-09-17
2021-04-30 22:24:27 +08:00
- Fix some bugs when `Konva.Transformer` has `padding > 0`
2019-09-11 01:09:37 +08:00
## 4.0.10 - 2019-09-10
2021-04-30 22:24:27 +08:00
- Fix drag position handling
- Fix multiple selector for find() method
2019-09-07 03:16:11 +08:00
## 4.0.9 - 2019-09-06
2021-04-30 22:24:27 +08:00
- Fix `Konva.Transformer` behavior on mirrored nodes
- Fix `stage.getPointerPosition()` logic.
2021-04-30 22:24:27 +08:00
## 4.0.8 - 2019-09-05
2019-09-06 02:03:06 +08:00
2021-04-30 22:24:27 +08:00
- Fix `dragend` event on click
- Revert fillPatternScale for text fix.
2019-09-06 02:03:06 +08:00
2021-04-30 22:24:27 +08:00
## 4.0.7 - 2019-09-03
2019-09-03 22:38:19 +08:00
2021-04-30 22:24:27 +08:00
- Fixed evt object on `dragstart`
- Fixed double tap trigger after dragging
2021-04-30 22:24:27 +08:00
## 4.0.6 - 2019-08-31
2019-09-01 05:40:39 +08:00
2021-04-30 22:24:27 +08:00
- Fix fillPatternScale for text
2019-09-01 05:40:39 +08:00
2021-04-30 22:24:27 +08:00
## 4.0.5 - 2019-08-17
2019-08-17 13:47:48 +08:00
2021-04-30 22:24:27 +08:00
- Fix `dragstart` flow when `node.startDrag()` is called.
- Fix `tap` and `dbltap` double trigger on stage
2019-08-17 13:47:48 +08:00
2021-04-30 22:24:27 +08:00
## 4.0.4 - 2019-08-12
2019-08-12 09:44:29 +08:00
2021-04-30 22:24:27 +08:00
- Add `node.isCached()` method
- Fix nested dragging bug
2019-08-10 17:41:54 +08:00
2021-04-30 22:24:27 +08:00
## 4.0.3 - 2019-08-08
2019-08-08 17:24:55 +08:00
2021-04-30 22:24:27 +08:00
- Slightly changed `mousemove` event flow. It triggers for first `mouseover` event too
- Better `Konva.hitOnDragEnabled` support for mouse inputs
2019-08-08 17:24:55 +08:00
2021-04-30 22:24:27 +08:00
## 4.0.2 - 2019-08-08
2021-04-30 22:24:27 +08:00
- Fixed `node.startDrag()` behavior. We can call it at any time.
2021-04-30 22:24:27 +08:00
## 4.0.1 - 2019-08-07
2019-08-07 19:47:48 +08:00
2021-04-30 22:24:27 +08:00
- Better `Konva.Arrow` + tension drawing
- Typescript fixes
2019-08-07 19:47:48 +08:00
2021-04-30 22:24:27 +08:00
## 4.0.0 - 2019-08-05
2019-08-05 14:54:08 +08:00
Basically the release doesn't have any breaking changes. You may only have issues if you are using something from `Konva.DD` object (which is private and never documented). Otherwise you should be fine. `Konva` has major upgrade about touch events system and drag&drop flow. The API is exactly the same. But the internal refactoring is huge so I decided to make a major version. Please upgrade carefully. Report about any issues you have.
2021-04-30 22:24:27 +08:00
- Better multi-touch support. Now we can trigger several `touch` events on one or many nodes.
- New drag&drop implementation. You can drag several shapes at once with several pointers.
- HSL colors support
2019-08-04 15:38:57 +08:00
2021-04-30 22:24:27 +08:00
## 3.4.1 - 2019-07-18
2019-07-18 08:55:22 +08:00
2021-04-30 22:24:27 +08:00
- Fix wrong double tap trigger
2021-04-30 22:24:27 +08:00
## 3.4.0 - 2019-07-12
2021-04-30 22:24:27 +08:00
- TS types fixes
- Added support for different values for `cornerRadius` of `Konva.Rect`
2019-06-19 04:29:07 +08:00
2021-04-30 22:24:27 +08:00
## 3.3.3 - 2019-06-07
2019-06-08 04:24:52 +08:00
2021-04-30 22:24:27 +08:00
- Some fixes for better support `konva-node`
- TS types fixes
2019-06-08 04:24:52 +08:00
2021-04-30 22:24:27 +08:00
## 3.3.2 - 2019-06-03
2019-06-03 22:44:30 +08:00
2021-04-30 22:24:27 +08:00
- TS types fixes
2019-06-03 22:44:30 +08:00
2021-04-30 22:24:27 +08:00
## 3.3.1 - 2019-05-28
2019-05-31 02:06:13 +08:00
2021-04-30 22:24:27 +08:00
- Add new property `imageSmoothingEnabled` to the node caching
- Even more ts fixes. Typescript need a lot of attention, you know...
2021-04-30 22:24:27 +08:00
## 3.3.0 - 2019-05-28
2021-04-30 22:24:27 +08:00
- Enable strict mode for ts types
- Add new property `imageSmoothingEnabled` to the layer
2021-04-30 22:24:27 +08:00
## 3.2.7 - 2019-05-27
2019-05-28 09:27:01 +08:00
2021-04-30 22:24:27 +08:00
- Typescript fixes
- Experimental pointer events support. Do `Konva._pointerEventsEnabled = true;` to enable
- Fix some `Konva.Transformer` bugs.
2019-05-28 01:54:11 +08:00
2021-04-30 22:24:27 +08:00
## 3.2.6 - 2019-05-09
2019-05-09 21:28:09 +08:00
2021-04-30 22:24:27 +08:00
- Typescript fixes again
2019-05-09 21:28:09 +08:00
2021-04-30 22:24:27 +08:00
## 3.2.5 - 2019-04-17
2019-04-18 00:02:42 +08:00
2021-04-30 22:24:27 +08:00
- Show a warning when `Konva.Transformer` and attaching node have different parents.
- Typescript fixes
2019-04-09 01:17:26 +08:00
2021-04-30 22:24:27 +08:00
## 3.2.4 - 2019-04-05
2019-04-05 21:15:42 +08:00
2021-04-30 22:24:27 +08:00
- Fix some stage events. `mouseenter` and `mouseleave` should work correctly on empty spaces
- Fix some typescript types
- Better detection of production mode (no extra warnings)
2019-04-04 09:28:48 +08:00
2021-04-30 22:24:27 +08:00
## 3.2.3 - 2019-03-21
2021-04-30 22:24:27 +08:00
- Fix `hasName` method for empty name cases
2021-04-30 22:24:27 +08:00
## 3.2.2 - 2019-03-19
2019-03-20 07:19:40 +08:00
2021-04-30 22:24:27 +08:00
- Remove `dependencies` from npm package
2019-03-20 07:19:40 +08:00
2021-04-30 22:24:27 +08:00
## 3.2.1 - 2019-03-18
2019-03-19 03:18:03 +08:00
2021-04-30 22:24:27 +08:00
- Better `find` and `findOne` lookup. Now we should not care about duplicate ids.
- Better typescript definitions
2019-03-19 03:18:03 +08:00
2021-04-30 22:24:27 +08:00
## 3.2.0 - 2019-03-10
2019-03-10 23:51:14 +08:00
2021-04-30 22:24:27 +08:00
- new property `shape.hitStrokeWidth(10)`
- Better typescript definitions
- Remove `Object.assign` usage (for IE11 support)
2019-03-10 23:51:14 +08:00
2021-04-30 22:24:27 +08:00
## 3.1.7 - 2019-03-06
2019-03-07 11:51:34 +08:00
2021-04-30 22:24:27 +08:00
- Better modules and TS types
2019-03-07 11:51:34 +08:00
2021-04-30 22:24:27 +08:00
## 3.1.6 - 2019-02-27
2019-02-28 06:32:18 +08:00
2021-04-30 22:24:27 +08:00
- Fix commonjs exports
- Fix global injections
2019-02-28 00:19:24 +08:00
2021-04-30 22:24:27 +08:00
## 3.1.0 - 2019-02-27
2019-02-27 21:11:17 +08:00
2021-04-30 22:24:27 +08:00
- Make `Konva` modular: `import Konva from 'konva/lib/Core';`;
- Fix incorrect `Transformer` behavior
- Fix drag&drop for touch devices
2019-02-27 21:11:17 +08:00
2021-04-30 22:24:27 +08:00
## 3.0.0 - 2019-02-25
2018-03-15 14:38:49 +08:00
2019-02-23 10:39:58 +08:00
## Breaking
2019-02-25 21:05:14 +08:00
Customs builds are temporary removed from npm package. You can not use `import Konva from 'konva/src/Core';`.
2019-02-24 09:54:20 +08:00
This feature will be added back later.
2019-02-23 10:39:58 +08:00
### Possibly breaking
That changes are private and internal specific. They should not break most of `Konva` apps.
2021-04-30 22:24:27 +08:00
- `Konva.Util.addMethods` is removed
- `Konva.Util._removeLastLetter` is removed
- `Konva.Util._getImage` is removed
- `Konv.Util._getRGBAString` is removed
- `Konv.Util._merge` is removed
- Removed polyfill for `requestAnimationFrame`.
- `id` and `name` properties defaults are empty strings, not `undefined`
- internal `_cache` property was updated to use es2015 `Map` instead of `{}`.
- `Konva.Validators` is removed.
2019-02-23 10:39:58 +08:00
### Added
2021-04-30 22:24:27 +08:00
- Show a warning when a stage has too many layers
- Show a warning on duplicate ids
- Show a warning on weird class in `Node.create` parsing from JSON
- Show a warning for incorrect value for component setters.
- Show a warning for incorrect value for `zIndex` property.
- Show a warning when user is trying to reuse destroyed shape.
- new publish method `measureSize(string)` for `Konva.Text`
- You can configure what mouse buttons can be used for drag&drop. To enable right button you can use `Konva.dragButtons = [0, 1]`.
- Now you can hide stage `stage.visible(false)`. It will set its container display style to "none".
- New method `stage.setPointersPositions(event)`. Usually you don't need to use it manually.
- New method `layer.toggleHitCanvas()` to show and debug hit areas
2019-01-02 04:59:27 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Full rewrite to Typescript with tons of refactoring and small optimizations. The public API should be 100% the same
- Fixed `patternImage` and `radialGradient` for `Konva.Text`
- `Konva.Util._isObject` is renamed to `Konva.Util._isPlainObject`.
- A bit changed behavior of `removeId` (private method), now it doesn't clear node ref, if object is changed.
- simplified `batchDraw` method (it doesn't use `Konva.Animation`) now.
- Performance improvements for shapes will image patterns, linear and radial fills
- `text.getTextHeight()` is deprecated. Use `text.height()` or `text.fontSize()` instead.
- Private method `stage._setPointerPosition()` is deprecated. Use `stage.setPointersPositions(event)`;
2019-01-02 04:59:27 +08:00
2018-12-19 01:29:48 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Better mouse support on mobile devices (yes, that is possible to connect mouse to mobile)
- Better implementation of `mouseover` event for stage
- Fixed underline drawing for text with `lineHeight !== 1`
- Fixed some caching behavior when a node has `globalCompositeOperation`.
- Fixed automatic updates for `Konva.Transformer`
- Fixed container change for a stage.
- Fixed warning for `width` and `height` attributes for `Konva.Text`
- Fixed gradient drawing for `Konva.Text`
- Fixed rendering with `strokeWidth = 0`
2018-12-19 01:29:48 +08:00
2021-04-30 22:24:27 +08:00
## 2.6.0 - 2018-12-14
2018-12-15 02:30:05 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Performance fixes when cached node has many children
- Better drawing for shape with `strokeScaleEnabled = false` on HDPI devices
### Added
2021-04-30 22:24:27 +08:00
- New `ignoreStroke` for `Konva.Transformer`. Good to use when a shape has `strokeScaleEnabled = false`
### Changed
2021-04-30 22:24:27 +08:00
- `getKerning` TextPath API is deprecated. Use `kerningFunc` instead.
2021-04-30 22:24:27 +08:00
## 2.5.1 - 2018-11-08
2018-11-08 22:15:47 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Use custom functions for `trimRight` and `trimLeft` (for better browsers support)
2021-04-30 22:24:27 +08:00
## 2.5.0 - 2018-10-24
2018-10-24 21:02:01 +08:00
### Added
2021-04-30 22:24:27 +08:00
- New `anchorCornerRadius` for `Konva.Transformer`
2018-10-16 05:40:33 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Performance fixes for caching
2018-10-16 05:40:33 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- `dragstart` event behavior is a bit changed. It will fire BEFORE actual position of a node is changed.
2021-04-30 22:24:27 +08:00
## 2.4.2 - 2018-10-12
2018-10-13 01:07:58 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed a wrong cache when a shape inside group has `listening = false`
2021-04-30 22:24:27 +08:00
## 2.4.1 - 2018-10-08
2018-10-08 18:16:38 +08:00
### Changed
2018-09-19 20:01:34 +08:00
2021-04-30 22:24:27 +08:00
- Added some text trim logic to wrap in better
### Fixed
2021-04-30 22:24:27 +08:00
- `getClientRect` for complex paths fixes
- `getClientRect` calculation fix for groups
- Update `Konva.Transformer` on `rotateEnabled` change
- Fix click stage event on dragend
- Fix some Transformer cursor behavior
2021-04-30 22:24:27 +08:00
## 2.4.0 - 2018-09-19
### Added
2021-04-30 22:24:27 +08:00
- Centered resize with ALT key for `Konva.Transformer`
- New `centeredScaling` for `Konva.Transformer`
### Fixed
2021-04-30 22:24:27 +08:00
- Tween support for gradient properties
- Add `user-select: none` to the stage container to fix some "selected contend around" issues
2021-04-30 22:24:27 +08:00
## 2.3.0 - 2018-08-30
2018-08-30 20:24:45 +08:00
2018-08-30 18:49:43 +08:00
### Added
2021-04-30 22:24:27 +08:00
- new methods `path.getLength()` and `path.getPointAtLength(val)`
- `verticalAlign` for `Konva.Text`
2018-08-30 18:49:43 +08:00
2021-04-30 22:24:27 +08:00
## 2.2.2 - 2018-08-21
2018-08-21 17:07:28 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Default duration for tweens and `node.to()` methods is now 300ms
- Typescript fixes
- Automatic validations for many attributes
2021-04-30 22:24:27 +08:00
## 2.2.1 - 2018-08-10
2018-08-10 13:39:30 +08:00
2018-08-10 11:22:08 +08:00
### Added
2021-04-30 22:24:27 +08:00
- New properties for `Konva.Transformer`: `borderStroke`, `borderStrokeWidth`, `borderDash`, `anchorStroke`, `anchorStrokeWidth`, `anchorSize`.
2018-08-10 11:22:08 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Some properties of `Konva.Transformer` are renamed. `lineEnabled` -> `borderEnabled`. `rotateHandlerOffset` -> `rotateAnchorOffset`, `enabledHandlers` -> `enabledAnchors`.
2018-08-10 11:22:08 +08:00
2021-04-30 22:24:27 +08:00
## 2.1.8 - 2018-08-01
2018-08-01 19:35:52 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-07-12 12:04:20 +08:00
2021-04-30 22:24:27 +08:00
- Some `Konva.Transformer` fixes
- Typescript fixes
- `stage.toDataURL()` fixes when it has hidden layers
- `shape.toDataURL()` automatically adjust position and size of resulted image
2018-07-12 12:04:20 +08:00
2021-04-30 22:24:27 +08:00
## 2.1.7 - 2018-07-03
2018-07-03 12:03:06 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-07-03 12:03:06 +08:00
2021-04-30 22:24:27 +08:00
- `toObject` fixes
2018-07-05 15:49:02 +08:00
2021-04-30 22:24:27 +08:00
## 2.1.7 - 2018-07-03
2018-07-05 15:49:02 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-07-05 15:49:02 +08:00
2021-04-30 22:24:27 +08:00
- Some drag&drop fixes
2018-07-03 12:03:06 +08:00
2021-04-30 22:24:27 +08:00
## 2.1.6 - 2018-06-16
2018-06-20 19:01:29 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-06-20 19:01:29 +08:00
2021-04-30 22:24:27 +08:00
- Removed wrong dep
- Typescript fixes
2018-06-20 19:01:29 +08:00
2021-04-30 22:24:27 +08:00
## 2.1.5 - 2018-06-15
2018-06-15 16:18:04 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-06-15 15:50:36 +08:00
2021-04-30 22:24:27 +08:00
- Typescript fixes
- add shape as second argument for `sceneFunc` and `hitFunc`
2018-06-15 15:50:36 +08:00
2021-04-30 22:24:27 +08:00
## 2.1.4 - 2018-06-15
2018-08-10 11:22:08 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed `Konva.Text` justify drawing for a text with decoration
- Added methods `data()`,`setData()` and `getData()` methods to `Konva.TextPath`
- Correct cache reset for `Konva.Transformer`
2021-04-30 22:24:27 +08:00
## 2.1.3 - 2018-05-17
2018-05-17 12:11:12 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- `Konva.Transformer` automatically track shape changes
- `Konva.Transformer` works with shapes with offset too
2021-04-30 22:24:27 +08:00
## 2.1.2 - 2018-05-16
2018-05-16 10:42:32 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-04-24 12:08:02 +08:00
2021-04-30 22:24:27 +08:00
- Cursor fixes for `Konva.Transformer`
- Fixed lineHeight behavior for `Konva.Text`
- Some performance optimizations for `Konva.Text`
- Better wrap algorithm for `Konva.Text`
- fixed `Konva.Arrow` with tension != 0
- Some fixes for `Konva.Transformer`
2018-04-24 12:08:02 +08:00
2021-04-30 22:24:27 +08:00
## 2.0.3 - 2018-04-21
2018-04-21 09:06:09 +08:00
2018-03-16 12:14:36 +08:00
### Added
2021-04-30 22:24:27 +08:00
- Typescript defs for `Konva.Transformer`
- Typescript defs for `globalCompositeOperation`
2018-03-16 12:14:36 +08:00
2018-03-16 11:53:50 +08:00
## Changes
2021-04-30 22:24:27 +08:00
- Fixed flow for `contextmenu` event. Now it will be triggered on shapes too
- `find()` method for Containers can use a function as a parameter
2018-03-16 11:53:50 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-03-21 13:04:57 +08:00
2021-04-30 22:24:27 +08:00
- some bugs fixes for `group.getClientRect()`
- `Konva.Arrow` will not draw dash for pointers
- setAttr will trigger change event if new value is the same Object
- better behavior of `dblclick` event when you click fast on different shapes
- `stage.toDataURL` will use `pixelRatio = 1` by default.
2018-03-21 13:04:57 +08:00
2021-04-30 22:24:27 +08:00
## 2.0.2 - 2018-03-15
2018-03-16 09:56:08 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-03-16 09:56:08 +08:00
2021-04-30 22:24:27 +08:00
- Even more bugs fixes for `Konva.Transformer`
2018-03-16 09:56:08 +08:00
2021-04-30 22:24:27 +08:00
## 2.0.1 - 2018-03-15
2018-03-15 15:11:01 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2018-03-15 15:11:01 +08:00
2021-04-30 22:24:27 +08:00
- Several bugs fixes for `Konva.Transformer`
2018-03-15 14:38:49 +08:00
2021-04-30 22:24:27 +08:00
## 2.0.0 - 2018-03-15
### Added
2021-04-30 22:24:27 +08:00
- new `Konva.Transformer`. It is a special group that allow simple resizing and rotation of a shape.
- Add ability to remove event by callback `node.off('event', callback)`.
- new `Konva.Filters.Contrast`.
- new `Konva.Util.haveIntersection()` to detect simple collusion
- add `Konva.Text.ellipsis` to add '…' to text string if width is fixed and wrap is set to 'none'
- add gradients for strokes
## Changed
2021-04-30 22:24:27 +08:00
- stage events are slightly changed. `mousedown`, `click`, `mouseup`, `dblclick`, `touchstart`, `touchend`, `tap`, `dbltap` will be triggered when clicked on empty areas too
2016-07-05 10:59:41 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Some typescript fixes
- Pixelate filter fixes
- Fixes for path data parsing
- Fixed shadow size calculation
2017-12-19 15:31:36 +08:00
2018-03-10 10:56:27 +08:00
## Removed
2021-04-30 22:24:27 +08:00
- Some deprecated methods are removed. If previous version was working without deprecation warnings for you, this one will work fine too.
2018-03-10 10:56:27 +08:00
2021-04-30 22:24:27 +08:00
## 1.7.6 - 2017-11-01
2017-11-01 11:17:14 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Some typescript fixes
2017-11-01 11:17:14 +08:00
2021-04-30 22:24:27 +08:00
## 1.7.4 - 2017-10-30
2017-10-19 17:33:08 +08:00
2018-08-10 11:22:08 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- `isBrowser` detection for electron
2017-10-30 14:07:21 +08:00
2021-04-30 22:24:27 +08:00
## 1.7.3 - 2017-10-19
2017-10-30 14:07:21 +08:00
2017-10-17 11:10:18 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Changing size of a stage will redraw it in synchronous way
2017-10-17 11:10:18 +08:00
2017-10-19 17:33:08 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Some fixes special for nodejs
2017-10-19 17:33:08 +08:00
2021-04-30 22:24:27 +08:00
## 1.7.2 - 2017-10-11
2017-10-11 17:38:16 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed `Konva.document is undefined`
2017-10-11 17:38:16 +08:00
2021-04-30 22:24:27 +08:00
## 1.7.1 - 2017-10-11
2017-10-11 16:17:54 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Konva for browser env and Konva for nodejs env are separate packages now. You can use `konva-node` for NodeJS env.
2017-10-11 16:17:54 +08:00
2021-04-30 22:24:27 +08:00
## 1.7.0 - 2017-10-08
2017-10-08 18:04:39 +08:00
2017-10-08 18:21:41 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Several typescript fixes
2017-10-08 18:21:41 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Default value for `dragDistance` is changed to 3px.
- Fix rare error throw on drag
- Caching with height = 0 or width = 0 with throw async error. Caching will be ignored.
2021-04-30 22:24:27 +08:00
## 1.6.8 - 2017-08-19
2017-08-19 15:01:38 +08:00
2017-08-02 04:16:44 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- The `node.getClientRect()` calculation is changed a bit. It is more powerfull and correct. Also it takes parent transform into account. See docs.
- Upgrade nodejs deps
2017-08-02 04:16:44 +08:00
2021-04-30 22:24:27 +08:00
## 1.6.7 - 2017-07-28
2017-07-29 00:59:54 +08:00
2017-07-27 16:35:59 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fix bug with double trigger wheel in Firefox
- Fix `node.getClientRect()` calculation in a case of Group + invisible child
- Fix dblclick issue https://github.com/konvajs/konva/issues/252
2017-07-27 16:35:59 +08:00
2021-04-30 22:24:27 +08:00
## 1.6.3 - 2017-05-24
2017-05-25 02:53:22 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed bug with pointer detection. css 3d transformed stage will not work now.
2017-05-25 02:53:22 +08:00
2021-04-30 22:24:27 +08:00
## 1.6.2 - 2017-05-08
2017-05-08 20:20:40 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed bug with automatic shadow for negative scale values
2017-05-08 20:20:40 +08:00
2021-04-30 22:24:27 +08:00
## 1.6.1 - 2017-04-25
2017-04-26 01:46:06 +08:00
2017-04-26 02:02:32 +08:00
### Fixed
2017-04-26 01:46:06 +08:00
2021-04-30 22:24:27 +08:00
- Fix pointer position detection
2017-04-26 01:46:06 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- moved `globalCompositeOperation` property to `Konva.Node`
2021-04-30 22:24:27 +08:00
## 1.6.0 - 2017-04-21
2017-04-22 00:11:43 +08:00
### Added
2021-04-30 22:24:27 +08:00
- support of globalCompositeOperation for `Konva.Shape`
### Fixed
2021-04-30 22:24:27 +08:00
- getAllIntersections now works ok for Text shapes (https://github.com/konvajs/konva/issues/224)
2017-03-24 22:09:38 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Konva a bit changed a way to detect pointer position. Now it should be OK to apply css transform on Konva container. https://github.com/konvajs/konva/pull/215
2017-03-24 22:09:38 +08:00
2021-04-30 22:24:27 +08:00
## 1.5.0 - 2017-03-20
2017-03-20 19:54:27 +08:00
2017-03-20 19:53:11 +08:00
### Added
2021-04-30 22:24:27 +08:00
- support for `lineDashOffset` property for `Konva.Shape`.
2017-03-20 19:53:11 +08:00
2021-04-30 22:24:27 +08:00
## 1.4.0 - 2017-02-07
2017-02-08 00:42:24 +08:00
2017-02-08 00:37:01 +08:00
## Added
2021-04-30 22:24:27 +08:00
- `textDecoration` of `Konva.Text` now supports `line-through`
2017-02-08 00:37:01 +08:00
2021-04-30 22:24:27 +08:00
## 1.3.0 - 2017-01-10
2017-01-10 21:29:09 +08:00
## Added
2021-04-30 22:24:27 +08:00
- new align value for `Konva.Text` and `Konva.TextPath`: `justify`
- new property for `Konva.Text` and `Konva.TextPath`: `textDecoration`. Right now it sports only '' (no decoration) and 'underline' values.
- new property for `Konva.Text`: `letterSpacing`
- new event `contentContextmenu` for `Konva.Stage`
- `align` support for `Konva.TextPath`
- new method `toCanvas()` for converting a node into canvas element
### Changed
2021-04-30 22:24:27 +08:00
- changing a size of `Konva.Stage` will update it in async way (via `batchDraw`).
- `shadowOffset` respect pixel ratio now
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed bug when `Konva.Tag` width was not changing its width dynamically
- Fixed "calling remove() for dragging shape will throw an error"
- Fixed wrong opacity level for cached group with opacity
- More consistent shadows on HDPI screens
- Fixed memory leak for nodes with several names
2021-04-30 22:24:27 +08:00
## 1.2.2 - 2016-09-15
2016-09-20 21:35:30 +08:00
2016-09-16 22:10:45 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- refresh stage hit and its `dragend`
- `getClientRect` calculations
2016-09-16 22:10:45 +08:00
2021-04-30 22:24:27 +08:00
## 1.2.0 - 2016-09-15
2016-09-16 05:16:29 +08:00
## Added
2021-04-30 22:24:27 +08:00
- new properties for `Konva.TextPath`: `letterSpacing` and `textBaseline`.
2016-09-16 05:16:29 +08:00
2021-04-30 22:24:27 +08:00
## 1.1.4 - 2016-09-13
2016-09-14 02:26:16 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Prevent throwing an error when text property of `Konva.Text` = undefined or null
2016-09-14 02:26:16 +08:00
2021-04-30 22:24:27 +08:00
## 1.1.3 - 2016-09-12
2016-09-12 19:28:42 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Better hit function for `TextPath`.
- Validation of `Shape` filters.
2016-09-12 19:28:42 +08:00
2021-04-30 22:24:27 +08:00
## 1.1.2 - 2016-09-10
2016-09-10 19:57:50 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed "Dragging Group on mobile view throws "missing preventDefault" error" #169
2016-09-10 19:57:50 +08:00
2021-04-30 22:24:27 +08:00
## 1.1.1 - 2016-08-30
2016-08-30 14:09:19 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed #166 bug of drag&drop
2016-08-30 14:09:19 +08:00
2021-04-30 22:24:27 +08:00
## 1.1.0 - 2016-08-21
## Added
2021-04-30 22:24:27 +08:00
- new property of `Konva.Shape` - `preventDefault`.
2021-04-30 22:24:27 +08:00
## 1.0.3 - 2016-08-14
2016-08-14 14:00:00 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Fixed some typescript definitions
2016-08-14 14:00:00 +08:00
2021-04-30 22:24:27 +08:00
## 1.0.2 - 2016-07-08
## Changed
2021-04-30 22:24:27 +08:00
- `Konva.Text` will interpret undefined `width` and `height` as `AUTO`
2021-04-30 22:24:27 +08:00
## 1.0.1 - 2016-07-05
2016-07-05 10:59:41 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- you can now unset property by `node.x(undefined)` or `node.setAttr('x', null)`
2016-07-05 10:59:41 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Bug fix for case when `touchend` event throws error
2016-07-05 10:59:41 +08:00
2021-04-30 22:24:27 +08:00
## 1.0.0 - 2016-07-05
2015-10-31 00:22:05 +08:00
2016-07-05 10:04:18 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Bug fix for case when `touchend` event throws error
2016-07-05 10:04:18 +08:00
2021-04-30 22:24:27 +08:00
## 0.15.0 - 2016-06-18
2016-06-18 23:31:50 +08:00
2016-06-18 23:27:19 +08:00
## Added
2021-04-30 22:24:27 +08:00
- Custom clip function
2016-06-18 23:27:19 +08:00
2021-04-30 22:24:27 +08:00
## 0.14.0 - 2016-06-17
2016-06-17 15:09:37 +08:00
2016-06-07 18:25:32 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- fixes in typescript definitions
- fixes for bug with `mouseenter` event on deep nesting case
2016-06-07 18:25:32 +08:00
2021-04-30 22:24:27 +08:00
## 0.13.9 - 2016-05-14
2016-05-14 23:17:33 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- typescript definition in npm package
- node@5.10.1, canvas@1.3.14, jsdom@8.5.0 support
- `Konva.Path` will be filled when it is not closed
- `Animation.start()` will not not immediate sync draw. This should improve performance a little.
- Warning when node for `Tween` is not in layer yet.
- `removeChildren()` remove only first level children. So it will not remove grandchildren.
2021-04-30 22:24:27 +08:00
## 0.12.4 - 2016-04-19
### Changed
2021-04-30 22:24:27 +08:00
- `batchDraw` will do not immediate `draw()`
### Fixed
2021-04-30 22:24:27 +08:00
- fix incorrect shadow offset on rotation
2021-04-30 22:24:27 +08:00
## 0.12.3 - 2016-04-07
2016-03-31 10:57:17 +08:00
2016-04-07 12:03:51 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- `batchDraw` function works less time now
- lighter npm package
2016-03-31 10:57:17 +08:00
2021-04-30 22:24:27 +08:00
## 0.12.2 - 2016-03-31
2016-04-07 12:03:51 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- repair `cancelBubble` event property behaviour
- fix wrong `Path` `getClientRect()` calculation
- better HDPI support
- better typescript definitions
- node 0.12 support
2016-01-16 17:35:03 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- more universal stage container selector
- `mousewheel` event changed to `wheel`
2021-04-30 22:24:27 +08:00
## 0.11.1 - 2016-01-16
2016-01-16 17:35:03 +08:00
2015-10-31 00:22:05 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- correct `Konva.Arrow` drawing. Now it works better.
- Better support for dragging when mouse out of stage
- Better corner radius for `Label` shape
- `contentTap` event for stage
2015-10-31 00:22:05 +08:00
2015-11-22 11:44:33 +08:00
### Added
2021-04-30 22:24:27 +08:00
- event delegation. You can use it in this way: `layer.on('click', 'Circle', handler);`
- new `node.findAncestors(selector)` and `node.findAncestor(selector)` functions
- optional selector parameter for `stage.getIntersection` and `layer.getIntersection`
- show warning message if several instances of Konva are added to page.
2015-11-22 11:44:33 +08:00
2015-12-22 18:32:22 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- `moveTo` and some other methods return `this`
- `getAbsolutePosition` support optional relative parent argument (useful to find absolute position inside of some of parent nodes)
- `change` event will be not fired if changed value is the same as old value
2015-12-22 18:32:22 +08:00
2021-04-30 22:24:27 +08:00
## 0.10.0 - 2015-10-27
2015-03-10 20:16:13 +08:00
2015-08-28 11:29:52 +08:00
### Added
2021-04-30 22:24:27 +08:00
- RGBA filter. Thanks to [@codefo](https://github.com/codefo)
- `stroke` and `fill` support for `Konva.Sprite`
2015-08-28 11:29:52 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- Correct calculation in `getClientRect` method of `Konva.Line` and `Konva.Container`.
- Correct `toObject()` behaviour for node with attrs with extended native prototypes
- Fixed bug for caching where buffer canvas is required
2015-06-02 09:14:54 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- Dragging works much better. If your pointer is out of stage content dragging will still continue.
- `Konva.Node.create` now works with objects.
- `Konva.Tween` now supports tweening points to state with different length
2015-06-02 09:14:54 +08:00
2021-04-30 22:24:27 +08:00
## 0.9.5 - 2015-05-28
2015-05-28 14:17:34 +08:00
2015-03-10 20:16:13 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- `to` will not throw error if no `onFinish` callback
- HDPI support for desktop
- Fix bug when filters are not correct for HDPI
- Fix bug when hit area is not correct for HDPI
- Fix bug for incorrect `getClientRect` calculation
- Repair fill gradient for text
2015-03-10 20:16:13 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- context wrapper is more capable with native context.
2015-04-14 10:56:56 +08:00
So you can use `context.fillStyle` property in your `sceneFunc` without accessing native context.
2021-04-30 22:24:27 +08:00
- `toDataURL` now handles pixelRatio. you can pass `config.pixelRatio` argument
- Correct `clone()` for custom nodes
- `FastLayer` can now have transforms
- `stage.toDataURL()` method now works synchronously. So `callback` argument is not required.
- `container.find(selector)` method now has a validation step. So if you forgot to add `#` or `.` you will see a warning message in the console.
2015-05-04 17:56:54 +08:00
### Added
2021-04-30 22:24:27 +08:00
- new `Konva.Image.fromURL` method
2015-03-10 20:16:13 +08:00
2015-05-07 09:48:15 +08:00
### Deprecated
2021-04-30 22:24:27 +08:00
- `fillRed`, `fillGreen`, `fillBlue`, `fillAlpha` are deprecated. Use `fill` instead.
- `strokeRed`, `strokeGreen`, `strokeBlue`, `strokeAlpha` are deprecated. Use `stroke` instead.
- `shadowRed`, `shadowGreen`, `shadowBlue`, `shadowAlpha` are deprecated. Use `shadow` instead.
- `dashArray` is deprecated. Use `dash` instead.
- `drawFunc` is deprecated. Use `sceneFunc` instead.
- `drawHitFunc` is deprecated. Use `hitFunc` instead.
- `rotateDeg` is deprecated. Use `rotate` instead.
2015-05-07 09:48:15 +08:00
2021-04-30 22:24:27 +08:00
## 0.9.0 - 2015-02-27
2015-02-17 14:01:01 +08:00
### Fixed
2021-04-30 22:24:27 +08:00
- cache algorithm has A LOT OF updates.
2015-02-08 07:24:11 +08:00
2015-02-17 14:01:01 +08:00
### Changed
2021-04-30 22:24:27 +08:00
- `scale` now affects `shadowOffset`
- performance optimization (remove some unnecessary draws)
- more expected drawing when shape has opacity, stroke and shadow
- HDPI for caching.
- Cache should work much better. Now you don't need to pass bounding box {x,y,width,height} to `cache` method for all buildin Konva shapes. (only for your custom `Konva.Shape` instance).
- `Tween` now supports color properties (`fill`, `stroke`, `shadowColor`)
2015-02-17 14:01:01 +08:00
### Added
2021-04-30 22:24:27 +08:00
- new methods for working with node's name: `addName`, `removeName`, `hasName`.
- new `perfectDrawEnabled` property for shape. See [http://konvajs.org/docs/performance/Disable_Perfect_Draw.html](http://konvajs.org/docs/performance/Disable_Perfect_Draw.html)
- new `shadowForStrokeEnabled` property for shape. See [http://konvajs.org/docs/performance/All_Performance_Tips.html](http://konvajs.org/docs/performance/All_Performance_Tips.html)
- new `getClientRect` method.
- new `to` method for every node for shorter tweening
2015-05-04 17:56:54 +08:00
2021-04-30 22:24:27 +08:00
## 0.8.0 - 2015-02-04
2021-04-30 22:24:27 +08:00
- Bug Fixes
- browser crashing on pointer events fixed
- optimized `getIntersection` function
- Enhancements
- `container.findOne()` method
- new `strokeHitEnabled` property. Useful for performance optimizations
- typescript definitions. see `/resources/konva.d.ts`
2015-02-17 14:01:01 +08:00
## Rebranding release 2015-01-28
Differences from last official `KineticJS` release
2015-01-22 16:46:53 +08:00
2021-04-30 22:24:27 +08:00
- Bug Fixes
- `strokeScaleEnabled = false` is disabled for text as I can not find a way to implement this
- `strokeScaleEnabled = false` for Line now creates a correct hit graph
- working "this-example" as name for nodes
- Konva.Text() with no config will not throw exception
- Konva.Line() with no config will not throw exception
- Correct stage resizing with `FastLayer`
- `batchDraw` method for `FastLayer`
- Correct mouseover/mouseout/mouseenter/mouseleave events for groups
- cache node before adding to layer
- `intersects` function now works for shapes with shadow
- Enhancements
- `cornerRadius` of Rect is limited by `width/2` and `height/2`
- `black` is default fill for text
- true class extending. Now `rect instanceOf Konva.Shape` will return true
- while dragging you can redraw layer that is not under drag. hit graph will be updated in this case
- now you can move object that is dragging into another layer.
- new `frameOffsets` attribute for `Konva.Sprite`
- much better dragging performance
- `browserify` support
- applying opacity to cached node
- remove all events with `node.off()`
- mouse dragging only with left button
- opacity now affects cached shapes
- Label corner radius
- smart changing `width`, `height`, `radius` attrs for circle, start, ellipse, ring.
- `mousewheel` support. Thanks [@vmichnowicz](https://github.com/vmichnowicz)
- new Arrow plugin
- multiple names: `node.name('foo bar'); container.find('.foo');` (thanks [@mattslocum](https://github.com/mattslocum))
- `Container.findOne()`