mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 05:01:41 +08:00
Merge branch 'master' of github.com:konvajs/konva
This commit is contained in:
commit
0a99665e98
@ -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`.
|
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
|
# Loading and installing Konva
|
||||||
|
|
||||||
Konva supports UMD loading. So you can use all possible variants to load the framework into your project:
|
Konva supports UMD loading. So you can use all possible variants to load the framework into your project:
|
||||||
|
@ -26,7 +26,7 @@ export type LineJoin = 'round' | 'bevel' | 'miter';
|
|||||||
export type LineCap = 'butt' | 'round' | 'square';
|
export type LineCap = 'butt' | 'round' | 'square';
|
||||||
|
|
||||||
export interface ShapeConfig extends NodeConfig {
|
export interface ShapeConfig extends NodeConfig {
|
||||||
fill?: string;
|
fill?: string | CanvasGradient;
|
||||||
fillPatternImage?: HTMLImageElement;
|
fillPatternImage?: HTMLImageElement;
|
||||||
fillPatternX?: number;
|
fillPatternX?: number;
|
||||||
fillPatternY?: number;
|
fillPatternY?: number;
|
||||||
@ -779,7 +779,7 @@ export class Shape<
|
|||||||
dash: GetSet<number[], this>;
|
dash: GetSet<number[], this>;
|
||||||
dashEnabled: GetSet<boolean, this>;
|
dashEnabled: GetSet<boolean, this>;
|
||||||
dashOffset: GetSet<number, this>;
|
dashOffset: GetSet<number, this>;
|
||||||
fill: GetSet<string, this>;
|
fill: GetSet<string | CanvasGradient, this>;
|
||||||
fillEnabled: GetSet<boolean, this>;
|
fillEnabled: GetSet<boolean, this>;
|
||||||
fillLinearGradientColorStops: GetSet<Array<number | string>, this>;
|
fillLinearGradientColorStops: GetSet<Array<number | string>, this>;
|
||||||
fillLinearGradientStartPoint: GetSet<Vector2d, this>;
|
fillLinearGradientStartPoint: GetSet<Vector2d, this>;
|
||||||
@ -828,7 +828,7 @@ export class Shape<
|
|||||||
shadowOffsetY: GetSet<number, this>;
|
shadowOffsetY: GetSet<number, this>;
|
||||||
shadowOpacity: GetSet<number, this>;
|
shadowOpacity: GetSet<number, this>;
|
||||||
shadowBlur: GetSet<number, this>;
|
shadowBlur: GetSet<number, this>;
|
||||||
stroke: GetSet<string, this>;
|
stroke: GetSet<string | CanvasGradient, this>;
|
||||||
strokeEnabled: GetSet<boolean, this>;
|
strokeEnabled: GetSet<boolean, this>;
|
||||||
fillAfterStrokeEnabled: GetSet<boolean, this>;
|
fillAfterStrokeEnabled: GetSet<boolean, this>;
|
||||||
strokeScaleEnabled: GetSet<boolean, this>;
|
strokeScaleEnabled: GetSet<boolean, this>;
|
||||||
|
Loading…
Reference in New Issue
Block a user