mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
new strokeScaleEnabled property which enables you to configure if the stroke style of a shape should scale or not as the shape itself scales, or as its ancestors scale
This commit is contained in:
@@ -320,6 +320,10 @@
|
||||
var context = this.context, stroke = shape.getStroke(), strokeWidth = shape.getStrokeWidth(), dashArray = shape.getDashArray();
|
||||
if(stroke || strokeWidth) {
|
||||
context.save();
|
||||
if (!shape.getStrokeScaleEnabled()) {
|
||||
|
||||
context.setTransform(1, 0, 0, 1, 0, 0);
|
||||
}
|
||||
this._applyLineCap(shape);
|
||||
if(dashArray && shape.getDashArrayEnabled()) {
|
||||
if(context.setLineDash) {
|
||||
|
||||
Reference in New Issue
Block a user