konva 8.4.2 → 8.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cmj/Context.d.ts +10 -9
- package/cmj/Context.js +9 -9
- package/cmj/Global.js +1 -1
- package/cmj/Shape.d.ts +2 -0
- package/cmj/shapes/Arc.d.ts +4 -3
- package/cmj/shapes/Arrow.d.ts +3 -2
- package/cmj/shapes/Circle.d.ts +4 -3
- package/cmj/shapes/Ellipse.d.ts +4 -3
- package/cmj/shapes/Image.d.ts +2 -2
- package/cmj/shapes/Label.d.ts +3 -2
- package/cmj/shapes/RegularPolygon.d.ts +4 -3
- package/cmj/shapes/Ring.d.ts +4 -3
- package/cmj/shapes/Sprite.d.ts +4 -3
- package/cmj/shapes/Star.d.ts +4 -3
- package/cmj/shapes/Text.d.ts +6 -5
- package/cmj/shapes/TextPath.d.ts +5 -4
- package/cmj/shapes/Transformer.d.ts +2 -2
- package/cmj/shapes/Transformer.js +8 -1
- package/cmj/shapes/Wedge.d.ts +4 -3
- package/konva.js +34 -13
- package/konva.min.js +3 -3
- package/lib/Animation.d.ts +2 -2
- package/lib/Canvas.d.ts +1 -1
- package/lib/Container.d.ts +4 -4
- package/lib/Context.d.ts +13 -12
- package/lib/Context.js +9 -9
- package/lib/Core.d.ts +2 -2
- package/lib/DragAndDrop.d.ts +3 -3
- package/lib/FastLayer.d.ts +1 -1
- package/lib/Global.js +1 -1
- package/lib/Group.d.ts +3 -3
- package/lib/Layer.d.ts +9 -9
- package/lib/Node.d.ts +8 -8
- package/lib/PointerEvents.d.ts +4 -4
- package/lib/Shape.d.ts +6 -4
- package/lib/Stage.d.ts +7 -7
- package/lib/Tween.d.ts +2 -2
- package/lib/Util.d.ts +2 -2
- package/lib/_CoreInternals.d.ts +29 -29
- package/lib/_FullInternals.d.ts +67 -67
- package/lib/filters/Blur.d.ts +1 -1
- package/lib/filters/Brighten.d.ts +1 -1
- package/lib/filters/Contrast.d.ts +1 -1
- package/lib/filters/Emboss.d.ts +1 -1
- package/lib/filters/Enhance.d.ts +1 -1
- package/lib/filters/Grayscale.d.ts +1 -1
- package/lib/filters/HSL.d.ts +1 -1
- package/lib/filters/HSV.d.ts +1 -1
- package/lib/filters/Invert.d.ts +1 -1
- package/lib/filters/Kaleidoscope.d.ts +1 -1
- package/lib/filters/Mask.d.ts +1 -1
- package/lib/filters/Noise.d.ts +1 -1
- package/lib/filters/Pixelate.d.ts +1 -1
- package/lib/filters/Posterize.d.ts +1 -1
- package/lib/filters/RGB.d.ts +1 -1
- package/lib/filters/RGBA.d.ts +1 -1
- package/lib/filters/Sepia.d.ts +1 -1
- package/lib/filters/Solarize.d.ts +1 -1
- package/lib/filters/Threshold.d.ts +1 -1
- package/lib/index-node.d.ts +1 -1
- package/lib/index-types.d.ts +124 -124
- package/lib/index.d.ts +1 -1
- package/lib/shapes/Arc.d.ts +6 -5
- package/lib/shapes/Arrow.d.ts +5 -4
- package/lib/shapes/Circle.d.ts +6 -5
- package/lib/shapes/Ellipse.d.ts +6 -5
- package/lib/shapes/Image.d.ts +5 -5
- package/lib/shapes/Label.d.ts +8 -7
- package/lib/shapes/Line.d.ts +3 -3
- package/lib/shapes/Path.d.ts +2 -2
- package/lib/shapes/Rect.d.ts +3 -3
- package/lib/shapes/RegularPolygon.d.ts +6 -5
- package/lib/shapes/Ring.d.ts +6 -5
- package/lib/shapes/Sprite.d.ts +7 -6
- package/lib/shapes/Star.d.ts +6 -5
- package/lib/shapes/Text.d.ts +8 -7
- package/lib/shapes/TextPath.d.ts +7 -6
- package/lib/shapes/Transformer.d.ts +10 -10
- package/lib/shapes/Transformer.js +8 -1
- package/lib/shapes/Wedge.d.ts +6 -5
- package/package.json +1 -1
package/lib/_FullInternals.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Arc } from './shapes/Arc';
|
|
2
|
-
import { Arrow } from './shapes/Arrow';
|
|
3
|
-
import { Circle } from './shapes/Circle';
|
|
4
|
-
import { Ellipse } from './shapes/Ellipse';
|
|
5
|
-
import { Image } from './shapes/Image';
|
|
6
|
-
import { Label, Tag } from './shapes/Label';
|
|
7
|
-
import { Line } from './shapes/Line';
|
|
8
|
-
import { Path } from './shapes/Path';
|
|
9
|
-
import { Rect } from './shapes/Rect';
|
|
10
|
-
import { RegularPolygon } from './shapes/RegularPolygon';
|
|
11
|
-
import { Ring } from './shapes/Ring';
|
|
12
|
-
import { Sprite } from './shapes/Sprite';
|
|
13
|
-
import { Star } from './shapes/Star';
|
|
14
|
-
import { Text } from './shapes/Text';
|
|
15
|
-
import { TextPath } from './shapes/TextPath';
|
|
16
|
-
import { Transformer } from './shapes/Transformer';
|
|
17
|
-
import { Wedge } from './shapes/Wedge';
|
|
1
|
+
import { Arc } from './shapes/Arc.js';
|
|
2
|
+
import { Arrow } from './shapes/Arrow.js';
|
|
3
|
+
import { Circle } from './shapes/Circle.js';
|
|
4
|
+
import { Ellipse } from './shapes/Ellipse.js';
|
|
5
|
+
import { Image } from './shapes/Image.js';
|
|
6
|
+
import { Label, Tag } from './shapes/Label.js';
|
|
7
|
+
import { Line } from './shapes/Line.js';
|
|
8
|
+
import { Path } from './shapes/Path.js';
|
|
9
|
+
import { Rect } from './shapes/Rect.js';
|
|
10
|
+
import { RegularPolygon } from './shapes/RegularPolygon.js';
|
|
11
|
+
import { Ring } from './shapes/Ring.js';
|
|
12
|
+
import { Sprite } from './shapes/Sprite.js';
|
|
13
|
+
import { Star } from './shapes/Star.js';
|
|
14
|
+
import { Text } from './shapes/Text.js';
|
|
15
|
+
import { TextPath } from './shapes/TextPath.js';
|
|
16
|
+
import { Transformer } from './shapes/Transformer.js';
|
|
17
|
+
import { Wedge } from './shapes/Wedge.js';
|
|
18
18
|
export declare const Konva: {
|
|
19
19
|
_global: any;
|
|
20
20
|
version: string;
|
|
@@ -64,24 +64,24 @@ export declare const Konva: {
|
|
|
64
64
|
_isInDocument(el: any): boolean;
|
|
65
65
|
_urlToImage(url: string, callback: Function): void;
|
|
66
66
|
_rgbToHex(r: number, g: number, b: number): string;
|
|
67
|
-
_hexToRgb(hex: string): import("./types").RGB;
|
|
67
|
+
_hexToRgb(hex: string): import("./types.js").RGB;
|
|
68
68
|
getRandomColor(): string;
|
|
69
|
-
getRGB(color: string): import("./types").RGB;
|
|
70
|
-
colorToRGBA(str: string): import("./types").RGBA;
|
|
69
|
+
getRGB(color: string): import("./types.js").RGB;
|
|
70
|
+
colorToRGBA(str: string): import("./types.js").RGBA;
|
|
71
71
|
_namedColorToRBA(str: string): {
|
|
72
72
|
r: any;
|
|
73
73
|
g: any;
|
|
74
74
|
b: any;
|
|
75
75
|
a: number;
|
|
76
76
|
};
|
|
77
|
-
_rgbColorToRGBA(str: string): import("./types").RGBA;
|
|
78
|
-
_rgbaColorToRGBA(str: string): import("./types").RGBA;
|
|
79
|
-
_hex8ColorToRGBA(str: string): import("./types").RGBA;
|
|
80
|
-
_hex6ColorToRGBA(str: string): import("./types").RGBA;
|
|
81
|
-
_hex4ColorToRGBA(str: string): import("./types").RGBA;
|
|
82
|
-
_hex3ColorToRGBA(str: string): import("./types").RGBA;
|
|
83
|
-
_hslColorToRGBA(str: string): import("./types").RGBA;
|
|
84
|
-
haveIntersection(r1: import("./types").IRect, r2: import("./types").IRect): boolean;
|
|
77
|
+
_rgbColorToRGBA(str: string): import("./types.js").RGBA;
|
|
78
|
+
_rgbaColorToRGBA(str: string): import("./types.js").RGBA;
|
|
79
|
+
_hex8ColorToRGBA(str: string): import("./types.js").RGBA;
|
|
80
|
+
_hex6ColorToRGBA(str: string): import("./types.js").RGBA;
|
|
81
|
+
_hex4ColorToRGBA(str: string): import("./types.js").RGBA;
|
|
82
|
+
_hex3ColorToRGBA(str: string): import("./types.js").RGBA;
|
|
83
|
+
_hslColorToRGBA(str: string): import("./types.js").RGBA;
|
|
84
|
+
haveIntersection(r1: import("./types").IRect, r2: import("./types.js").IRect): boolean;
|
|
85
85
|
cloneObject<Any>(obj: Any): Any;
|
|
86
86
|
cloneArray(arr: any[]): any[];
|
|
87
87
|
degToRad(deg: number): number;
|
|
@@ -96,30 +96,30 @@ export declare const Konva: {
|
|
|
96
96
|
each(obj: any, func: any): void;
|
|
97
97
|
_inRange(val: any, left: any, right: any): boolean;
|
|
98
98
|
_getProjectionToSegment(x1: any, y1: any, x2: any, y2: any, x3: any, y3: any): any[];
|
|
99
|
-
_getProjectionToLine(pt: import("./types").Vector2d, line: any, isClosed: any): import("./types").Vector2d;
|
|
99
|
+
_getProjectionToLine(pt: import("./types").Vector2d, line: any, isClosed: any): import("./types.js").Vector2d;
|
|
100
100
|
_prepareArrayForTween(startArray: any, endArray: any, isClosed: any): any[];
|
|
101
101
|
_prepareToStringify(obj: any): any;
|
|
102
102
|
_assign<T, U>(target: T, source: U): T & U;
|
|
103
103
|
_getFirstPointerId(evt: any): any;
|
|
104
104
|
releaseCanvas(...canvases: HTMLCanvasElement[]): void;
|
|
105
|
-
drawRoundedRectPath(context: import("./Context").Context, width: number, height: number, cornerRadius: number | number[]): void;
|
|
105
|
+
drawRoundedRectPath(context: import("./Context.js").Context, width: number, height: number, cornerRadius: number | number[]): void;
|
|
106
106
|
};
|
|
107
|
-
Transform: typeof import("./Util").Transform;
|
|
108
|
-
Node: typeof import("./Node").Node;
|
|
109
|
-
Container: typeof import("./Container").Container;
|
|
110
|
-
Stage: typeof import("./Stage").Stage;
|
|
111
|
-
stages: import("./Stage").Stage[];
|
|
112
|
-
Layer: typeof import("./Layer").Layer;
|
|
113
|
-
FastLayer: typeof import("./FastLayer").FastLayer;
|
|
114
|
-
Group: typeof import("./Group").Group;
|
|
107
|
+
Transform: typeof import("./Util.js").Transform;
|
|
108
|
+
Node: typeof import("./Node.js").Node;
|
|
109
|
+
Container: typeof import("./Container.js").Container;
|
|
110
|
+
Stage: typeof import("./Stage.js").Stage;
|
|
111
|
+
stages: import("./Stage.js").Stage[];
|
|
112
|
+
Layer: typeof import("./Layer.js").Layer;
|
|
113
|
+
FastLayer: typeof import("./FastLayer.js").FastLayer;
|
|
114
|
+
Group: typeof import("./Group.js").Group;
|
|
115
115
|
DD: {
|
|
116
116
|
readonly isDragging: boolean;
|
|
117
117
|
justDragged: boolean;
|
|
118
|
-
readonly node: import("./Node").Node<import("./Node").NodeConfig>;
|
|
118
|
+
readonly node: import("./Node").Node<import("./Node.js").NodeConfig>;
|
|
119
119
|
_dragElements: Map<number, {
|
|
120
|
-
node: import("./Node").Node<import("./Node").NodeConfig>;
|
|
121
|
-
startPointerPos: import("./types").Vector2d;
|
|
122
|
-
offset: import("./types").Vector2d;
|
|
120
|
+
node: import("./Node").Node<import("./Node.js").NodeConfig>;
|
|
121
|
+
startPointerPos: import("./types.js").Vector2d;
|
|
122
|
+
offset: import("./types.js").Vector2d;
|
|
123
123
|
pointerId?: number;
|
|
124
124
|
dragStatus: "stopped" | "ready" | "dragging";
|
|
125
125
|
}>;
|
|
@@ -127,12 +127,12 @@ export declare const Konva: {
|
|
|
127
127
|
_endDragBefore(evt?: any): void;
|
|
128
128
|
_endDragAfter(evt: any): void;
|
|
129
129
|
};
|
|
130
|
-
Shape: typeof import("./Shape").Shape;
|
|
130
|
+
Shape: typeof import("./Shape.js").Shape;
|
|
131
131
|
shapes: {
|
|
132
|
-
[key: string]: import("./Shape").Shape<import("./Shape").ShapeConfig>;
|
|
132
|
+
[key: string]: import("./Shape").Shape<import("./Shape.js").ShapeConfig>;
|
|
133
133
|
};
|
|
134
|
-
Animation: typeof import("./Animation").Animation;
|
|
135
|
-
Tween: typeof import("./Tween").Tween;
|
|
134
|
+
Animation: typeof import("./Animation.js").Animation;
|
|
135
|
+
Tween: typeof import("./Tween.js").Tween;
|
|
136
136
|
Easings: {
|
|
137
137
|
BackEaseIn(t: any, b: any, c: any, d: any): any;
|
|
138
138
|
BackEaseOut(t: any, b: any, c: any, d: any): any;
|
|
@@ -151,8 +151,8 @@ export declare const Konva: {
|
|
|
151
151
|
StrongEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
152
152
|
Linear(t: any, b: any, c: any, d: any): any;
|
|
153
153
|
};
|
|
154
|
-
Context: typeof import("./Context").Context;
|
|
155
|
-
Canvas: typeof import("./Canvas").Canvas;
|
|
154
|
+
Context: typeof import("./Context.js").Context;
|
|
155
|
+
Canvas: typeof import("./Canvas.js").Canvas;
|
|
156
156
|
} & {
|
|
157
157
|
Arc: typeof Arc;
|
|
158
158
|
Arrow: typeof Arrow;
|
|
@@ -173,24 +173,24 @@ export declare const Konva: {
|
|
|
173
173
|
Transformer: typeof Transformer;
|
|
174
174
|
Wedge: typeof Wedge;
|
|
175
175
|
Filters: {
|
|
176
|
-
Blur: import("./Node").Filter;
|
|
177
|
-
Brighten: import("./Node").Filter;
|
|
178
|
-
Contrast: import("./Node").Filter;
|
|
179
|
-
Emboss: import("./Node").Filter;
|
|
180
|
-
Enhance: import("./Node").Filter;
|
|
181
|
-
Grayscale: import("./Node").Filter;
|
|
182
|
-
HSL: import("./Node").Filter;
|
|
183
|
-
HSV: import("./Node").Filter;
|
|
184
|
-
Invert: import("./Node").Filter;
|
|
185
|
-
Kaleidoscope: import("./Node").Filter;
|
|
186
|
-
Mask: import("./Node").Filter;
|
|
187
|
-
Noise: import("./Node").Filter;
|
|
188
|
-
Pixelate: import("./Node").Filter;
|
|
189
|
-
Posterize: import("./Node").Filter;
|
|
190
|
-
RGB: import("./Node").Filter;
|
|
191
|
-
RGBA: import("./Node").Filter;
|
|
192
|
-
Sepia: import("./Node").Filter;
|
|
193
|
-
Solarize: import("./Node").Filter;
|
|
194
|
-
Threshold: import("./Node").Filter;
|
|
176
|
+
Blur: import("./Node.js").Filter;
|
|
177
|
+
Brighten: import("./Node.js").Filter;
|
|
178
|
+
Contrast: import("./Node.js").Filter;
|
|
179
|
+
Emboss: import("./Node.js").Filter;
|
|
180
|
+
Enhance: import("./Node.js").Filter;
|
|
181
|
+
Grayscale: import("./Node.js").Filter;
|
|
182
|
+
HSL: import("./Node.js").Filter;
|
|
183
|
+
HSV: import("./Node.js").Filter;
|
|
184
|
+
Invert: import("./Node.js").Filter;
|
|
185
|
+
Kaleidoscope: import("./Node.js").Filter;
|
|
186
|
+
Mask: import("./Node.js").Filter;
|
|
187
|
+
Noise: import("./Node.js").Filter;
|
|
188
|
+
Pixelate: import("./Node.js").Filter;
|
|
189
|
+
Posterize: import("./Node.js").Filter;
|
|
190
|
+
RGB: import("./Node.js").Filter;
|
|
191
|
+
RGBA: import("./Node.js").Filter;
|
|
192
|
+
Sepia: import("./Node.js").Filter;
|
|
193
|
+
Solarize: import("./Node.js").Filter;
|
|
194
|
+
Threshold: import("./Node.js").Filter;
|
|
195
195
|
};
|
|
196
196
|
};
|
package/lib/filters/Blur.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Blur: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Brighten: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Contrast: Filter;
|
package/lib/filters/Emboss.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Emboss: Filter;
|
package/lib/filters/Enhance.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Enhance: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Grayscale: Filter;
|
package/lib/filters/HSL.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const HSL: Filter;
|
package/lib/filters/HSV.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const HSV: Filter;
|
package/lib/filters/Invert.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Invert: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Kaleidoscope: Filter;
|
package/lib/filters/Mask.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Mask: Filter;
|
package/lib/filters/Noise.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Noise: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Pixelate: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Posterize: Filter;
|
package/lib/filters/RGB.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const RGB: Filter;
|
package/lib/filters/RGBA.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const RGBA: Filter;
|
package/lib/filters/Sepia.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Sepia: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Solarize: Filter;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Filter } from '../Node';
|
|
1
|
+
import { Filter } from '../Node.js';
|
|
2
2
|
export declare const Threshold: Filter;
|
package/lib/index-node.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Konva } from './_FullInternals';
|
|
1
|
+
import { Konva } from './_FullInternals.js';
|
|
2
2
|
export default Konva;
|
package/lib/index-types.d.ts
CHANGED
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
// so here we just need to define full API of Konva manually
|
|
8
8
|
|
|
9
9
|
// filters
|
|
10
|
-
import { Blur } from './filters/Blur';
|
|
11
|
-
import { Brighten } from './filters/Brighten';
|
|
12
|
-
import { Contrast } from './filters/Contrast';
|
|
13
|
-
import { Emboss } from './filters/Emboss';
|
|
14
|
-
import { Enhance } from './filters/Enhance';
|
|
15
|
-
import { Grayscale } from './filters/Grayscale';
|
|
16
|
-
import { HSL } from './filters/HSL';
|
|
17
|
-
import { HSV } from './filters/HSV';
|
|
18
|
-
import { Invert } from './filters/Invert';
|
|
19
|
-
import { Kaleidoscope } from './filters/Kaleidoscope';
|
|
20
|
-
import { Mask } from './filters/Mask';
|
|
21
|
-
import { Noise } from './filters/Noise';
|
|
22
|
-
import { Pixelate } from './filters/Pixelate';
|
|
23
|
-
import { Posterize } from './filters/Posterize';
|
|
24
|
-
import { RGB } from './filters/RGB';
|
|
25
|
-
import { RGBA } from './filters/RGBA';
|
|
26
|
-
import { Sepia } from './filters/Sepia';
|
|
27
|
-
import { Solarize } from './filters/Solarize';
|
|
28
|
-
import { Threshold } from './filters/Threshold';
|
|
10
|
+
import { Blur } from './filters/Blur.js';
|
|
11
|
+
import { Brighten } from './filters/Brighten.js';
|
|
12
|
+
import { Contrast } from './filters/Contrast.js';
|
|
13
|
+
import { Emboss } from './filters/Emboss.js';
|
|
14
|
+
import { Enhance } from './filters/Enhance.js';
|
|
15
|
+
import { Grayscale } from './filters/Grayscale.js';
|
|
16
|
+
import { HSL } from './filters/HSL.js';
|
|
17
|
+
import { HSV } from './filters/HSV.js';
|
|
18
|
+
import { Invert } from './filters/Invert.js';
|
|
19
|
+
import { Kaleidoscope } from './filters/Kaleidoscope.js';
|
|
20
|
+
import { Mask } from './filters/Mask.js';
|
|
21
|
+
import { Noise } from './filters/Noise.js';
|
|
22
|
+
import { Pixelate } from './filters/Pixelate.js';
|
|
23
|
+
import { Posterize } from './filters/Posterize.js';
|
|
24
|
+
import { RGB } from './filters/RGB.js';
|
|
25
|
+
import { RGBA } from './filters/RGBA.js';
|
|
26
|
+
import { Sepia } from './filters/Sepia.js';
|
|
27
|
+
import { Solarize } from './filters/Solarize.js';
|
|
28
|
+
import { Threshold } from './filters/Threshold.js';
|
|
29
29
|
|
|
30
30
|
declare namespace Konva {
|
|
31
31
|
export let enableTrace: number;
|
|
@@ -40,120 +40,120 @@ declare namespace Konva {
|
|
|
40
40
|
export const isDragging: () => boolean;
|
|
41
41
|
export const isDragReady: () => boolean;
|
|
42
42
|
|
|
43
|
-
export type Vector2d = import('./types').Vector2d;
|
|
43
|
+
export type Vector2d = import('./types.js').Vector2d;
|
|
44
44
|
|
|
45
|
-
export const Node: typeof import('./Node').Node;
|
|
46
|
-
export type Node = import('./Node').Node;
|
|
47
|
-
export type NodeConfig = import('./Node').NodeConfig;
|
|
45
|
+
export const Node: typeof import('./Node.js').Node;
|
|
46
|
+
export type Node = import('./Node.js').Node;
|
|
47
|
+
export type NodeConfig = import('./Node.js').NodeConfig;
|
|
48
48
|
|
|
49
49
|
export type KonvaEventObject<
|
|
50
50
|
EventType
|
|
51
|
-
> = import('./Node').KonvaEventObject<EventType>;
|
|
51
|
+
> = import('./Node.js').KonvaEventObject<EventType>;
|
|
52
52
|
|
|
53
|
-
export type KonvaPointerEvent = import('./PointerEvents').KonvaPointerEvent;
|
|
53
|
+
export type KonvaPointerEvent = import('./PointerEvents.js').KonvaPointerEvent;
|
|
54
54
|
|
|
55
55
|
export type KonvaEventListener<
|
|
56
56
|
This,
|
|
57
57
|
EventType
|
|
58
|
-
> = import('./Node').KonvaEventListener<This, EventType>;
|
|
59
|
-
|
|
60
|
-
export const Container: typeof import('./Container').Container;
|
|
61
|
-
export type Container = import('./Container').Container<Node>;
|
|
62
|
-
export type ContainerConfig = import('./Container').ContainerConfig;
|
|
63
|
-
|
|
64
|
-
export const Transform: typeof import('./Util').Transform;
|
|
65
|
-
export type Transform = import('./Util').Transform;
|
|
66
|
-
|
|
67
|
-
export const Util: typeof import('./Util').Util;
|
|
68
|
-
|
|
69
|
-
export const Context: typeof import('./Context').Context;
|
|
70
|
-
export type Context = import('./Context').Context;
|
|
71
|
-
|
|
72
|
-
export const Stage: typeof import('./Stage').Stage;
|
|
73
|
-
export type Stage = import('./Stage').Stage;
|
|
74
|
-
export type StageConfig = import('./Stage').StageConfig;
|
|
75
|
-
export const stages: typeof import('./Stage').stages;
|
|
76
|
-
|
|
77
|
-
export const Layer: typeof import('./Layer').Layer;
|
|
78
|
-
export type Layer = import('./Layer').Layer;
|
|
79
|
-
export type LayerConfig = import('./Layer').LayerConfig;
|
|
80
|
-
|
|
81
|
-
export const FastLayer: typeof import('./FastLayer').FastLayer;
|
|
82
|
-
export type FastLayer = import('./FastLayer').FastLayer;
|
|
83
|
-
|
|
84
|
-
export const Group: typeof import('./Group').Group;
|
|
85
|
-
export type Group = import('./Group').Group;
|
|
86
|
-
export type GroupConfig = import('./Group').GroupConfig;
|
|
87
|
-
|
|
88
|
-
export const DD: typeof import('./DragAndDrop').DD;
|
|
89
|
-
|
|
90
|
-
export const Shape: typeof import('./Shape').Shape;
|
|
91
|
-
export type Shape = import('./Shape').Shape;
|
|
92
|
-
export type ShapeConfig = import('./Shape').ShapeConfig;
|
|
93
|
-
export const shapes: typeof import('./Shape').shapes;
|
|
94
|
-
|
|
95
|
-
export const Animation: typeof import('./Animation').Animation;
|
|
96
|
-
export type Animation = import('./Animation').Animation;
|
|
97
|
-
|
|
98
|
-
export const Tween: typeof import('./Tween').Tween;
|
|
99
|
-
export type Tween = import('./Tween').Tween;
|
|
100
|
-
export type TweenConfig = import('./Tween').TweenConfig;
|
|
101
|
-
export const Easings: typeof import('./Tween').Easings;
|
|
102
|
-
|
|
103
|
-
export const Arc: typeof import('./shapes/Arc').Arc;
|
|
104
|
-
export type Arc = import('./shapes/Arc').Arc;
|
|
105
|
-
export type ArcConfig = import('./shapes/Arc').ArcConfig;
|
|
106
|
-
export const Arrow: typeof import('./shapes/Arrow').Arrow;
|
|
107
|
-
export type Arrow = import('./shapes/Arrow').Arrow;
|
|
108
|
-
export type ArrowConfig = import('./shapes/Arrow').ArrowConfig;
|
|
109
|
-
export const Circle: typeof import('./shapes/Circle').Circle;
|
|
110
|
-
export type Circle = import('./shapes/Circle').Circle;
|
|
111
|
-
export type CircleConfig = import('./shapes/Circle').CircleConfig;
|
|
112
|
-
export const Ellipse: typeof import('./shapes/Ellipse').Ellipse;
|
|
113
|
-
export type Ellipse = import('./shapes/Ellipse').Ellipse;
|
|
114
|
-
export type EllipseConfig = import('./shapes/Ellipse').EllipseConfig;
|
|
115
|
-
export const Image: typeof import('./shapes/Image').Image;
|
|
116
|
-
export type Image = import('./shapes/Image').Image;
|
|
117
|
-
export type ImageConfig = import('./shapes/Image').ImageConfig;
|
|
118
|
-
export const Label: typeof import('./shapes/Label').Label;
|
|
119
|
-
export type Label = import('./shapes/Label').Label;
|
|
120
|
-
export type LabelConfig = import('./shapes/Label').LabelConfig;
|
|
121
|
-
export const Tag: typeof import('./shapes/Label').Tag;
|
|
122
|
-
export type Tag = import('./shapes/Label').Tag;
|
|
123
|
-
export type TagConfig = import('./shapes/Label').TagConfig;
|
|
124
|
-
export const Line: typeof import('./shapes/Line').Line;
|
|
125
|
-
export type Line = import('./shapes/Line').Line;
|
|
126
|
-
export type LineConfig = import('./shapes/Line').LineConfig;
|
|
127
|
-
export const Path: typeof import('./shapes/Path').Path;
|
|
128
|
-
export type Path = import('./shapes/Path').Path;
|
|
129
|
-
export type PathConfig = import('./shapes/Path').PathConfig;
|
|
130
|
-
export const Rect: typeof import('./shapes/Rect').Rect;
|
|
131
|
-
export type Rect = import('./shapes/Rect').Rect;
|
|
132
|
-
export type RectConfig = import('./shapes/Rect').RectConfig;
|
|
133
|
-
export const RegularPolygon: typeof import('./shapes/RegularPolygon').RegularPolygon;
|
|
134
|
-
export type RegularPolygon = import('./shapes/RegularPolygon').RegularPolygon;
|
|
135
|
-
export type RegularPolygonConfig = import('./shapes/RegularPolygon').RegularPolygonConfig;
|
|
136
|
-
export const Ring: typeof import('./shapes/Ring').Ring;
|
|
137
|
-
export type Ring = import('./shapes/Ring').Ring;
|
|
138
|
-
export type RingConfig = import('./shapes/Ring').RingConfig;
|
|
139
|
-
export const Sprite: typeof import('./shapes/Sprite').Sprite;
|
|
140
|
-
export type Sprite = import('./shapes/Sprite').Sprite;
|
|
141
|
-
export type SpriteConfig = import('./shapes/Sprite').SpriteConfig;
|
|
142
|
-
export const Star: typeof import('./shapes/Star').Star;
|
|
143
|
-
export type Star = import('./shapes/Star').Star;
|
|
144
|
-
export type StarConfig = import('./shapes/Star').StarConfig;
|
|
145
|
-
export const Text: typeof import('./shapes/Text').Text;
|
|
146
|
-
export type Text = import('./shapes/Text').Text;
|
|
147
|
-
export type TextConfig = import('./shapes/Text').TextConfig;
|
|
148
|
-
export const TextPath: typeof import('./shapes/TextPath').TextPath;
|
|
149
|
-
export type TextPath = import('./shapes/TextPath').TextPath;
|
|
150
|
-
export type TextPathConfig = import('./shapes/TextPath').TextPathConfig;
|
|
151
|
-
export const Transformer: typeof import('./shapes/Transformer').Transformer;
|
|
152
|
-
export type Transformer = import('./shapes/Transformer').Transformer;
|
|
153
|
-
export type TransformerConfig = import('./shapes/Transformer').TransformerConfig;
|
|
154
|
-
export const Wedge: typeof import('./shapes/Wedge').Wedge;
|
|
155
|
-
export type Wedge = import('./shapes/Wedge').Wedge;
|
|
156
|
-
export type WedgeConfig = import('./shapes/Wedge').WedgeConfig;
|
|
58
|
+
> = import('./Node.js').KonvaEventListener<This, EventType>;
|
|
59
|
+
|
|
60
|
+
export const Container: typeof import('./Container.js').Container;
|
|
61
|
+
export type Container = import('./Container.js').Container<Node>;
|
|
62
|
+
export type ContainerConfig = import('./Container.js').ContainerConfig;
|
|
63
|
+
|
|
64
|
+
export const Transform: typeof import('./Util.js').Transform;
|
|
65
|
+
export type Transform = import('./Util.js').Transform;
|
|
66
|
+
|
|
67
|
+
export const Util: typeof import('./Util.js').Util;
|
|
68
|
+
|
|
69
|
+
export const Context: typeof import('./Context.js').Context;
|
|
70
|
+
export type Context = import('./Context.js').Context;
|
|
71
|
+
|
|
72
|
+
export const Stage: typeof import('./Stage.js').Stage;
|
|
73
|
+
export type Stage = import('./Stage.js').Stage;
|
|
74
|
+
export type StageConfig = import('./Stage.js').StageConfig;
|
|
75
|
+
export const stages: typeof import('./Stage.js').stages;
|
|
76
|
+
|
|
77
|
+
export const Layer: typeof import('./Layer.js').Layer;
|
|
78
|
+
export type Layer = import('./Layer.js').Layer;
|
|
79
|
+
export type LayerConfig = import('./Layer.js').LayerConfig;
|
|
80
|
+
|
|
81
|
+
export const FastLayer: typeof import('./FastLayer.js').FastLayer;
|
|
82
|
+
export type FastLayer = import('./FastLayer.js').FastLayer;
|
|
83
|
+
|
|
84
|
+
export const Group: typeof import('./Group.js').Group;
|
|
85
|
+
export type Group = import('./Group.js').Group;
|
|
86
|
+
export type GroupConfig = import('./Group.js').GroupConfig;
|
|
87
|
+
|
|
88
|
+
export const DD: typeof import('./DragAndDrop.js').DD;
|
|
89
|
+
|
|
90
|
+
export const Shape: typeof import('./Shape.js').Shape;
|
|
91
|
+
export type Shape = import('./Shape.js').Shape;
|
|
92
|
+
export type ShapeConfig = import('./Shape.js').ShapeConfig;
|
|
93
|
+
export const shapes: typeof import('./Shape.js').shapes;
|
|
94
|
+
|
|
95
|
+
export const Animation: typeof import('./Animation.js').Animation;
|
|
96
|
+
export type Animation = import('./Animation.js').Animation;
|
|
97
|
+
|
|
98
|
+
export const Tween: typeof import('./Tween.js').Tween;
|
|
99
|
+
export type Tween = import('./Tween.js').Tween;
|
|
100
|
+
export type TweenConfig = import('./Tween.js').TweenConfig;
|
|
101
|
+
export const Easings: typeof import('./Tween.js').Easings;
|
|
102
|
+
|
|
103
|
+
export const Arc: typeof import('./shapes/Arc.js').Arc;
|
|
104
|
+
export type Arc = import('./shapes/Arc.js').Arc;
|
|
105
|
+
export type ArcConfig = import('./shapes/Arc.js').ArcConfig;
|
|
106
|
+
export const Arrow: typeof import('./shapes/Arrow.js').Arrow;
|
|
107
|
+
export type Arrow = import('./shapes/Arrow.js').Arrow;
|
|
108
|
+
export type ArrowConfig = import('./shapes/Arrow.js').ArrowConfig;
|
|
109
|
+
export const Circle: typeof import('./shapes/Circle.js').Circle;
|
|
110
|
+
export type Circle = import('./shapes/Circle.js').Circle;
|
|
111
|
+
export type CircleConfig = import('./shapes/Circle.js').CircleConfig;
|
|
112
|
+
export const Ellipse: typeof import('./shapes/Ellipse.js').Ellipse;
|
|
113
|
+
export type Ellipse = import('./shapes/Ellipse.js').Ellipse;
|
|
114
|
+
export type EllipseConfig = import('./shapes/Ellipse.js').EllipseConfig;
|
|
115
|
+
export const Image: typeof import('./shapes/Image.js').Image;
|
|
116
|
+
export type Image = import('./shapes/Image.js').Image;
|
|
117
|
+
export type ImageConfig = import('./shapes/Image.js').ImageConfig;
|
|
118
|
+
export const Label: typeof import('./shapes/Label.js').Label;
|
|
119
|
+
export type Label = import('./shapes/Label.js').Label;
|
|
120
|
+
export type LabelConfig = import('./shapes/Label.js').LabelConfig;
|
|
121
|
+
export const Tag: typeof import('./shapes/Label.js').Tag;
|
|
122
|
+
export type Tag = import('./shapes/Label.js').Tag;
|
|
123
|
+
export type TagConfig = import('./shapes/Label.js').TagConfig;
|
|
124
|
+
export const Line: typeof import('./shapes/Line.js').Line;
|
|
125
|
+
export type Line = import('./shapes/Line.js').Line;
|
|
126
|
+
export type LineConfig = import('./shapes/Line.js').LineConfig;
|
|
127
|
+
export const Path: typeof import('./shapes/Path.js').Path;
|
|
128
|
+
export type Path = import('./shapes/Path.js').Path;
|
|
129
|
+
export type PathConfig = import('./shapes/Path.js').PathConfig;
|
|
130
|
+
export const Rect: typeof import('./shapes/Rect.js').Rect;
|
|
131
|
+
export type Rect = import('./shapes/Rect.js').Rect;
|
|
132
|
+
export type RectConfig = import('./shapes/Rect.js').RectConfig;
|
|
133
|
+
export const RegularPolygon: typeof import('./shapes/RegularPolygon.js').RegularPolygon;
|
|
134
|
+
export type RegularPolygon = import('./shapes/RegularPolygon.js').RegularPolygon;
|
|
135
|
+
export type RegularPolygonConfig = import('./shapes/RegularPolygon.js').RegularPolygonConfig;
|
|
136
|
+
export const Ring: typeof import('./shapes/Ring.js').Ring;
|
|
137
|
+
export type Ring = import('./shapes/Ring.js').Ring;
|
|
138
|
+
export type RingConfig = import('./shapes/Ring.js').RingConfig;
|
|
139
|
+
export const Sprite: typeof import('./shapes/Sprite.js').Sprite;
|
|
140
|
+
export type Sprite = import('./shapes/Sprite.js').Sprite;
|
|
141
|
+
export type SpriteConfig = import('./shapes/Sprite.js').SpriteConfig;
|
|
142
|
+
export const Star: typeof import('./shapes/Star.js').Star;
|
|
143
|
+
export type Star = import('./shapes/Star.js').Star;
|
|
144
|
+
export type StarConfig = import('./shapes/Star.js').StarConfig;
|
|
145
|
+
export const Text: typeof import('./shapes/Text.js').Text;
|
|
146
|
+
export type Text = import('./shapes/Text.js').Text;
|
|
147
|
+
export type TextConfig = import('./shapes/Text.js').TextConfig;
|
|
148
|
+
export const TextPath: typeof import('./shapes/TextPath.js').TextPath;
|
|
149
|
+
export type TextPath = import('./shapes/TextPath.js').TextPath;
|
|
150
|
+
export type TextPathConfig = import('./shapes/TextPath.js').TextPathConfig;
|
|
151
|
+
export const Transformer: typeof import('./shapes/Transformer.js').Transformer;
|
|
152
|
+
export type Transformer = import('./shapes/Transformer.js').Transformer;
|
|
153
|
+
export type TransformerConfig = import('./shapes/Transformer.js').TransformerConfig;
|
|
154
|
+
export const Wedge: typeof import('./shapes/Wedge.js').Wedge;
|
|
155
|
+
export type Wedge = import('./shapes/Wedge.js').Wedge;
|
|
156
|
+
export type WedgeConfig = import('./shapes/Wedge.js').WedgeConfig;
|
|
157
157
|
|
|
158
158
|
export const Filters: {
|
|
159
159
|
Blur: typeof Blur;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Konva } from './_FullInternals';
|
|
1
|
+
import { Konva } from './_FullInternals.js';
|
|
2
2
|
export default Konva;
|
package/lib/shapes/Arc.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Shape, ShapeConfig } from '../Shape';
|
|
2
|
-
import { GetSet } from '../types';
|
|
1
|
+
import { Shape, ShapeConfig } from '../Shape.js';
|
|
2
|
+
import { GetSet } from '../types.js';
|
|
3
|
+
import { Context } from '../Context.js';
|
|
3
4
|
export interface ArcConfig extends ShapeConfig {
|
|
4
5
|
angle: number;
|
|
5
6
|
innerRadius: number;
|
|
@@ -7,11 +8,11 @@ export interface ArcConfig extends ShapeConfig {
|
|
|
7
8
|
clockwise?: boolean;
|
|
8
9
|
}
|
|
9
10
|
export declare class Arc extends Shape<ArcConfig> {
|
|
10
|
-
_sceneFunc(context:
|
|
11
|
+
_sceneFunc(context: Context): void;
|
|
11
12
|
getWidth(): number;
|
|
12
13
|
getHeight(): number;
|
|
13
|
-
setWidth(width:
|
|
14
|
-
setHeight(height:
|
|
14
|
+
setWidth(width: number): void;
|
|
15
|
+
setHeight(height: number): void;
|
|
15
16
|
getSelfRect(): {
|
|
16
17
|
x: number;
|
|
17
18
|
y: number;
|
package/lib/shapes/Arrow.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Line, LineConfig } from './Line';
|
|
2
|
-
import { GetSet } from '../types';
|
|
1
|
+
import { Line, LineConfig } from './Line.js';
|
|
2
|
+
import { GetSet } from '../types.js';
|
|
3
|
+
import { Context } from '../Context.js';
|
|
3
4
|
export interface ArrowConfig extends LineConfig {
|
|
4
5
|
points: number[];
|
|
5
6
|
tension?: number;
|
|
@@ -10,8 +11,8 @@ export interface ArrowConfig extends LineConfig {
|
|
|
10
11
|
pointerAtEnding?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare class Arrow extends Line<ArrowConfig> {
|
|
13
|
-
_sceneFunc(ctx:
|
|
14
|
-
__fillStroke(ctx:
|
|
14
|
+
_sceneFunc(ctx: Context): void;
|
|
15
|
+
__fillStroke(ctx: Context): void;
|
|
15
16
|
getSelfRect(): {
|
|
16
17
|
x: number;
|
|
17
18
|
y: number;
|