update CHANGELOG with new version

This commit is contained in:
Anton Lavrenov
2020-03-26 15:14:30 -05:00
parent 6821d971ab
commit 7df28d4e50
5 changed files with 47 additions and 10 deletions

View File

@@ -376,12 +376,14 @@ export class Shape<Config extends ShapeConfig = ShapeConfig> extends Node<
hasHitStroke() {
const width = this.hitStrokeWidth();
// we should enable hit stroke we stroke is enabled
// on auto just check by stroke
if (width === 'auto') {
return this.hasStroke();
}
// we should enable hit stroke if stroke is enabled
// and we have some value from width
return (
this.strokeEnabled() &&
(width || (this.strokeWidth() && width === 'auto'))
);
return this.strokeEnabled() && !!width;
}
/**
* determines if point is in the shape, regardless if other shapes are on top of it. Note: because