mirror of
https://github.com/konvajs/konva.git
synced 2026-01-21 18:51:52 +08:00
update CHANGELOG with new version
This commit is contained in:
@@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## [new version][unreleased]
|
## [new version][unreleased]
|
||||||
|
|
||||||
|
## [2.1.5][2018-06-15]
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
* Typescript fixes
|
* Typescript fixes
|
||||||
|
|||||||
17
konva.js
17
konva.js
@@ -8435,13 +8435,14 @@
|
|||||||
* y: 10,
|
* y: 10,
|
||||||
* fill: 'red',
|
* fill: 'red',
|
||||||
* // a Konva.Canvas renderer is passed into the sceneFunc function
|
* // a Konva.Canvas renderer is passed into the sceneFunc function
|
||||||
* sceneFunc: function(context) {
|
* sceneFunc: function(context, shape) {
|
||||||
* context.beginPath();
|
* context.beginPath();
|
||||||
* context.moveTo(200, 50);
|
* context.moveTo(200, 50);
|
||||||
* context.lineTo(420, 80);
|
* context.lineTo(420, 80);
|
||||||
* context.quadraticCurveTo(300, 100, 260, 170);
|
* context.quadraticCurveTo(300, 100, 260, 170);
|
||||||
* context.closePath();
|
* context.closePath();
|
||||||
* context.fillStrokeShape(this);
|
* // Konva specific method
|
||||||
|
* context.fillStrokeShape(shape);
|
||||||
* }
|
* }
|
||||||
*});
|
*});
|
||||||
*/
|
*/
|
||||||
@@ -8736,7 +8737,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
drawFunc.call(this, bufferContext);
|
drawFunc.call(this, bufferContext, this);
|
||||||
bufferContext.restore();
|
bufferContext.restore();
|
||||||
|
|
||||||
var ratio = bufferCanvas.pixelRatio;
|
var ratio = bufferCanvas.pixelRatio;
|
||||||
@@ -8787,13 +8788,13 @@
|
|||||||
}
|
}
|
||||||
context._applyShadow(this);
|
context._applyShadow(this);
|
||||||
|
|
||||||
drawFunc.call(this, context);
|
drawFunc.call(this, context, this);
|
||||||
context.restore();
|
context.restore();
|
||||||
// if shape has stroke we need to redraw shape
|
// if shape has stroke we need to redraw shape
|
||||||
// otherwise we will see a shadow under stroke (and over fill)
|
// otherwise we will see a shadow under stroke (and over fill)
|
||||||
// but I think this is unexpected behavior
|
// but I think this is unexpected behavior
|
||||||
if (this.hasFill() && this.getShadowForStrokeEnabled()) {
|
if (this.hasFill() && this.getShadowForStrokeEnabled()) {
|
||||||
drawFunc.call(this, context);
|
drawFunc.call(this, context, this);
|
||||||
}
|
}
|
||||||
} else if (hasShadow && !canvas.hitCanvas) {
|
} else if (hasShadow && !canvas.hitCanvas) {
|
||||||
context.save();
|
context.save();
|
||||||
@@ -8802,14 +8803,14 @@
|
|||||||
context._applyGlobalCompositeOperation(this);
|
context._applyGlobalCompositeOperation(this);
|
||||||
}
|
}
|
||||||
context._applyShadow(this);
|
context._applyShadow(this);
|
||||||
drawFunc.call(this, context);
|
drawFunc.call(this, context, this);
|
||||||
context.restore();
|
context.restore();
|
||||||
} else {
|
} else {
|
||||||
if (!caching) {
|
if (!caching) {
|
||||||
context._applyOpacity(this);
|
context._applyOpacity(this);
|
||||||
context._applyGlobalCompositeOperation(this);
|
context._applyGlobalCompositeOperation(this);
|
||||||
}
|
}
|
||||||
drawFunc.call(this, context);
|
drawFunc.call(this, context, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
context.restore();
|
context.restore();
|
||||||
@@ -8849,7 +8850,7 @@
|
|||||||
context.transform(o[0], o[1], o[2], o[3], o[4], o[5]);
|
context.transform(o[0], o[1], o[2], o[3], o[4], o[5]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
drawFunc.call(this, context);
|
drawFunc.call(this, context, this);
|
||||||
context.restore();
|
context.restore();
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|||||||
2
konva.min.js
vendored
2
konva.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user