mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
fix pattern bug
This commit is contained in:
parent
501c73bf57
commit
3fce0a5b45
@ -3,6 +3,10 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## 8.0.2
|
||||||
|
|
||||||
|
- Fix fill pattern updates on `fillPatternX` and `fillPatternY` changes.
|
||||||
|
|
||||||
## 8.0.1
|
## 8.0.1
|
||||||
|
|
||||||
- Fix some transform caches
|
- Fix some transform caches
|
||||||
|
@ -848,7 +848,7 @@ Shape.prototype.on.call(
|
|||||||
|
|
||||||
Shape.prototype.on.call(
|
Shape.prototype.on.call(
|
||||||
Shape.prototype,
|
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
|
_clearFillPatternCache
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1852,6 +1852,13 @@ describe('Shape', function () {
|
|||||||
var pattern3 = star._getFillPattern();
|
var pattern3 = star._getFillPattern();
|
||||||
|
|
||||||
assert.notEqual(pattern2, pattern3);
|
assert.notEqual(pattern2, pattern3);
|
||||||
|
|
||||||
|
|
||||||
|
star.fillPatternX(10);
|
||||||
|
|
||||||
|
var pattern4 = star._getFillPattern();
|
||||||
|
|
||||||
|
assert.notEqual(pattern4, pattern3);
|
||||||
|
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user