diff --git a/README.md b/README.md index f60a2363..48eb3c93 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,10 @@ Konva works in all modern mobile and desktop browsers. A browser need to be capa At the current moment `Konva` doesn't work in IE11 directly. To make it work you just need to provide some polyfills such as `Array.prototype.find`, `String.prototype.trimLeft`, `String.prototype.trimRight`, `Array.from`. +# Debugging + +The Chrome inspector simply shows the canvas element. To see the Konva objects and their details, install the konva-dev extension at https://github.com/konvajs/konva-devtool. + # Loading and installing Konva Konva supports UMD loading. So you can use all possible variants to load the framework into your project: diff --git a/src/Shape.ts b/src/Shape.ts index e85aa8df..4d77de82 100644 --- a/src/Shape.ts +++ b/src/Shape.ts @@ -26,7 +26,7 @@ export type LineJoin = 'round' | 'bevel' | 'miter'; export type LineCap = 'butt' | 'round' | 'square'; export interface ShapeConfig extends NodeConfig { - fill?: string; + fill?: string | CanvasGradient; fillPatternImage?: HTMLImageElement; fillPatternX?: number; fillPatternY?: number; @@ -779,7 +779,7 @@ export class Shape< dash: GetSet; dashEnabled: GetSet; dashOffset: GetSet; - fill: GetSet; + fill: GetSet; fillEnabled: GetSet; fillLinearGradientColorStops: GetSet, this>; fillLinearGradientStartPoint: GetSet; @@ -828,7 +828,7 @@ export class Shape< shadowOffsetY: GetSet; shadowOpacity: GetSet; shadowBlur: GetSet; - stroke: GetSet; + stroke: GetSet; strokeEnabled: GetSet; fillAfterStrokeEnabled: GetSet; strokeScaleEnabled: GetSet;