1
0
mirror of https://github.com/konvajs/konva.git synced 2025-04-05 20:48:28 +08:00

fix pattern bug

This commit is contained in:
Anton Lavrenov 2021-06-08 14:16:08 +07:00
parent 501c73bf57
commit 3fce0a5b45
3 changed files with 12 additions and 1 deletions

View File

@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## 8.0.2
- Fix fill pattern updates on `fillPatternX` and `fillPatternY` changes.
## 8.0.1
- Fix some transform caches

View File

@ -848,7 +848,7 @@ Shape.prototype.on.call(
Shape.prototype.on.call(
Shape.prototype,
'fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetX.konva fillPatternOffsetY.konva fillPatternRotation.konva',
'fillPriorityChange.konva fillPatternImageChange.konva fillPatternRepeatChange.konva fillPatternScaleXChange.konva fillPatternScaleYChange.konva fillPatternOffsetX.konva fillPatternOffsetY.konva fillPatternXChange.konva fillPatternYChange.konva fillPatternRotation.konva',
_clearFillPatternCache
);

View File

@ -1852,6 +1852,13 @@ describe('Shape', function () {
var pattern3 = star._getFillPattern();
assert.notEqual(pattern2, pattern3);
star.fillPatternX(10);
var pattern4 = star._getFillPattern();
assert.notEqual(pattern4, pattern3);
done();
});