konva 8.4.2 → 9.0.0
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/README.md +1 -9
- package/konva.js +17669 -16968
- package/konva.min.js +3 -3
- package/lib/Animation.d.ts +2 -2
- package/lib/Animation.js +11 -7
- package/lib/BezierFunctions.d.ts +6 -0
- package/lib/BezierFunctions.js +791 -0
- package/lib/Canvas.d.ts +2 -1
- package/lib/Canvas.js +26 -18
- package/lib/Container.d.ts +4 -4
- package/lib/Container.js +16 -12
- package/lib/Context.d.ts +16 -13
- package/lib/Context.js +27 -19
- package/lib/Core.d.ts +2 -2
- package/lib/Core.js +7 -3
- package/lib/DragAndDrop.d.ts +3 -3
- package/lib/DragAndDrop.js +25 -22
- package/lib/Factory.js +27 -24
- package/lib/FastLayer.d.ts +1 -1
- package/lib/FastLayer.js +10 -6
- package/lib/Global.js +16 -12
- package/lib/Group.d.ts +3 -3
- package/lib/Group.js +10 -6
- package/lib/Layer.d.ts +9 -9
- package/lib/Layer.js +37 -33
- package/lib/Node.d.ts +8 -8
- package/lib/Node.js +95 -90
- package/lib/PointerEvents.d.ts +4 -4
- package/lib/PointerEvents.js +15 -7
- package/lib/Shape.d.ts +6 -4
- package/lib/Shape.js +90 -86
- package/lib/Stage.d.ts +7 -7
- package/lib/Stage.js +51 -47
- package/lib/Tween.d.ts +2 -2
- package/lib/Tween.js +26 -22
- package/lib/Util.d.ts +2 -2
- package/lib/Util.js +29 -25
- package/lib/Validators.js +58 -44
- package/lib/_CoreInternals.d.ts +29 -29
- package/lib/_CoreInternals.js +36 -33
- package/lib/_FullInternals.d.ts +67 -67
- package/lib/_FullInternals.js +78 -75
- package/lib/filters/Blur.d.ts +1 -1
- package/lib/filters/Blur.js +9 -5
- package/lib/filters/Brighten.d.ts +1 -1
- package/lib/filters/Brighten.js +9 -5
- package/lib/filters/Contrast.d.ts +1 -1
- package/lib/filters/Contrast.js +9 -5
- package/lib/filters/Emboss.d.ts +1 -1
- package/lib/filters/Emboss.js +14 -10
- package/lib/filters/Enhance.d.ts +1 -1
- package/lib/filters/Enhance.js +9 -5
- package/lib/filters/Grayscale.d.ts +1 -1
- package/lib/filters/Grayscale.js +5 -1
- package/lib/filters/HSL.d.ts +1 -1
- package/lib/filters/HSL.js +11 -7
- package/lib/filters/HSV.d.ts +1 -1
- package/lib/filters/HSV.js +11 -7
- package/lib/filters/Invert.d.ts +1 -1
- package/lib/filters/Invert.js +5 -1
- package/lib/filters/Kaleidoscope.d.ts +1 -1
- package/lib/filters/Kaleidoscope.js +13 -9
- package/lib/filters/Mask.d.ts +1 -1
- package/lib/filters/Mask.js +9 -5
- package/lib/filters/Noise.d.ts +1 -1
- package/lib/filters/Noise.js +9 -5
- package/lib/filters/Pixelate.d.ts +1 -1
- package/lib/filters/Pixelate.js +11 -7
- package/lib/filters/Posterize.d.ts +1 -1
- package/lib/filters/Posterize.js +9 -5
- package/lib/filters/RGB.d.ts +1 -1
- package/lib/filters/RGB.js +11 -7
- package/lib/filters/RGBA.d.ts +1 -1
- package/lib/filters/RGBA.js +12 -8
- package/lib/filters/Sepia.d.ts +1 -1
- package/lib/filters/Sepia.js +5 -1
- package/lib/filters/Solarize.d.ts +1 -1
- package/lib/filters/Solarize.js +5 -1
- package/lib/filters/Threshold.d.ts +1 -1
- package/lib/filters/Threshold.js +9 -5
- package/lib/index-node.d.ts +1 -1
- package/lib/index-node.js +7 -5
- package/lib/index-types.d.ts +124 -124
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -2
- package/lib/shapes/Arc.d.ts +6 -5
- package/lib/shapes/Arc.js +17 -13
- package/lib/shapes/Arrow.d.ts +5 -4
- package/lib/shapes/Arrow.js +17 -13
- package/lib/shapes/Circle.d.ts +6 -5
- package/lib/shapes/Circle.js +11 -7
- package/lib/shapes/Ellipse.d.ts +6 -5
- package/lib/shapes/Ellipse.js +13 -9
- package/lib/shapes/Image.d.ts +5 -5
- package/lib/shapes/Image.js +21 -17
- package/lib/shapes/Label.d.ts +8 -7
- package/lib/shapes/Label.js +18 -13
- package/lib/shapes/Line.d.ts +3 -3
- package/lib/shapes/Line.js +14 -10
- package/lib/shapes/Path.d.ts +6 -3
- package/lib/shapes/Path.js +44 -43
- package/lib/shapes/Rect.d.ts +3 -3
- package/lib/shapes/Rect.js +13 -9
- package/lib/shapes/RegularPolygon.d.ts +6 -5
- package/lib/shapes/RegularPolygon.js +12 -8
- package/lib/shapes/Ring.d.ts +6 -5
- package/lib/shapes/Ring.js +12 -8
- package/lib/shapes/Sprite.d.ts +7 -6
- package/lib/shapes/Sprite.js +19 -15
- package/lib/shapes/Star.d.ts +6 -5
- package/lib/shapes/Star.js +13 -9
- package/lib/shapes/Text.d.ts +8 -7
- package/lib/shapes/Text.js +31 -26
- package/lib/shapes/TextPath.d.ts +12 -7
- package/lib/shapes/TextPath.js +82 -188
- package/lib/shapes/Transformer.d.ts +10 -10
- package/lib/shapes/Transformer.js +92 -81
- package/lib/shapes/Wedge.d.ts +6 -5
- package/lib/shapes/Wedge.js +16 -12
- package/lib/types.d.ts +6 -0
- package/lib/types.js +5 -2
- package/package.json +13 -42
- package/cmj/Animation.d.ts +0 -24
- package/cmj/Animation.js +0 -145
- package/cmj/Canvas.d.ts +0 -32
- package/cmj/Canvas.js +0 -114
- package/cmj/Container.d.ts +0 -47
- package/cmj/Container.js +0 -325
- package/cmj/Context.d.ts +0 -84
- package/cmj/Context.js +0 -538
- package/cmj/Core.d.ts +0 -3
- package/cmj/Core.js +0 -7
- package/cmj/DragAndDrop.d.ts +0 -17
- package/cmj/DragAndDrop.js +0 -111
- package/cmj/Factory.d.ts +0 -11
- package/cmj/Factory.js +0 -125
- package/cmj/FastLayer.d.ts +0 -4
- package/cmj/FastLayer.js +0 -16
- package/cmj/Global.d.ts +0 -34
- package/cmj/Global.js +0 -61
- package/cmj/Group.d.ts +0 -8
- package/cmj/Group.js +0 -17
- package/cmj/Layer.d.ts +0 -61
- package/cmj/Layer.js +0 -309
- package/cmj/Node.d.ts +0 -328
- package/cmj/Node.js +0 -1420
- package/cmj/PointerEvents.d.ts +0 -11
- package/cmj/PointerEvents.js +0 -45
- package/cmj/Shape.d.ts +0 -184
- package/cmj/Shape.js +0 -521
- package/cmj/Stage.d.ts +0 -85
- package/cmj/Stage.js +0 -692
- package/cmj/Tween.d.ts +0 -86
- package/cmj/Tween.js +0 -520
- package/cmj/Util.d.ts +0 -91
- package/cmj/Util.js +0 -801
- package/cmj/Validators.d.ts +0 -11
- package/cmj/Validators.js +0 -192
- package/cmj/_CoreInternals.d.ts +0 -152
- package/cmj/_CoreInternals.js +0 -37
- package/cmj/_FullInternals.d.ts +0 -196
- package/cmj/_FullInternals.js +0 -81
- package/cmj/filters/Blur.d.ts +0 -2
- package/cmj/filters/Blur.js +0 -701
- package/cmj/filters/Brighten.d.ts +0 -2
- package/cmj/filters/Brighten.js +0 -16
- package/cmj/filters/Contrast.d.ts +0 -2
- package/cmj/filters/Contrast.js +0 -38
- package/cmj/filters/Emboss.d.ts +0 -2
- package/cmj/filters/Emboss.js +0 -106
- package/cmj/filters/Enhance.d.ts +0 -2
- package/cmj/filters/Enhance.js +0 -87
- package/cmj/filters/Grayscale.d.ts +0 -2
- package/cmj/filters/Grayscale.js +0 -13
- package/cmj/filters/HSL.d.ts +0 -2
- package/cmj/filters/HSL.js +0 -28
- package/cmj/filters/HSV.d.ts +0 -2
- package/cmj/filters/HSV.js +0 -28
- package/cmj/filters/Invert.d.ts +0 -2
- package/cmj/filters/Invert.js +0 -12
- package/cmj/filters/Kaleidoscope.d.ts +0 -2
- package/cmj/filters/Kaleidoscope.js +0 -137
- package/cmj/filters/Mask.d.ts +0 -2
- package/cmj/filters/Mask.js +0 -144
- package/cmj/filters/Noise.d.ts +0 -2
- package/cmj/filters/Noise.js +0 -16
- package/cmj/filters/Pixelate.d.ts +0 -2
- package/cmj/filters/Pixelate.js +0 -64
- package/cmj/filters/Posterize.d.ts +0 -2
- package/cmj/filters/Posterize.js +0 -14
- package/cmj/filters/RGB.d.ts +0 -2
- package/cmj/filters/RGB.js +0 -43
- package/cmj/filters/RGBA.d.ts +0 -2
- package/cmj/filters/RGBA.js +0 -53
- package/cmj/filters/Sepia.d.ts +0 -2
- package/cmj/filters/Sepia.js +0 -15
- package/cmj/filters/Solarize.d.ts +0 -2
- package/cmj/filters/Solarize.js +0 -29
- package/cmj/filters/Threshold.d.ts +0 -2
- package/cmj/filters/Threshold.js +0 -14
- package/cmj/index-node.d.ts +0 -2
- package/cmj/index-node.js +0 -21
- package/cmj/index-types.d.ts +0 -181
- package/cmj/index.d.ts +0 -2
- package/cmj/index.js +0 -4
- package/cmj/package.json +0 -6
- package/cmj/shapes/Arc.d.ts +0 -25
- package/cmj/shapes/Arc.js +0 -59
- package/cmj/shapes/Arrow.d.ts +0 -25
- package/cmj/shapes/Arrow.js +0 -103
- package/cmj/shapes/Circle.d.ts +0 -13
- package/cmj/shapes/Circle.js +0 -37
- package/cmj/shapes/Ellipse.d.ts +0 -16
- package/cmj/shapes/Ellipse.js +0 -41
- package/cmj/shapes/Image.d.ts +0 -25
- package/cmj/shapes/Image.js +0 -117
- package/cmj/shapes/Label.d.ts +0 -35
- package/cmj/shapes/Label.js +0 -178
- package/cmj/shapes/Line.d.ts +0 -28
- package/cmj/shapes/Line.js +0 -159
- package/cmj/shapes/Path.d.ts +0 -37
- package/cmj/shapes/Path.js +0 -631
- package/cmj/shapes/Rect.d.ts +0 -10
- package/cmj/shapes/Rect.js +0 -26
- package/cmj/shapes/RegularPolygon.d.ts +0 -22
- package/cmj/shapes/RegularPolygon.js +0 -69
- package/cmj/shapes/Ring.d.ts +0 -15
- package/cmj/shapes/Ring.js +0 -37
- package/cmj/shapes/Sprite.d.ts +0 -30
- package/cmj/shapes/Sprite.js +0 -112
- package/cmj/shapes/Star.d.ts +0 -17
- package/cmj/shapes/Star.js +0 -42
- package/cmj/shapes/Text.d.ts +0 -62
- package/cmj/shapes/Text.js +0 -373
- package/cmj/shapes/TextPath.d.ts +0 -55
- package/cmj/shapes/TextPath.js +0 -351
- package/cmj/shapes/Transformer.d.ts +0 -116
- package/cmj/shapes/Transformer.js +0 -964
- package/cmj/shapes/Wedge.d.ts +0 -17
- package/cmj/shapes/Wedge.js +0 -42
- package/cmj/types.d.ts +0 -50
- package/cmj/types.js +0 -25
package/cmj/Validators.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare function RGBComponent(val: number): number;
|
|
2
|
-
export declare function alphaComponent(val: number): number;
|
|
3
|
-
export declare function getNumberValidator(): <T>(val: T, attr: string) => void | T;
|
|
4
|
-
export declare function getNumberOrArrayOfNumbersValidator(noOfElements: number): <T>(val: T, attr: string) => void | T;
|
|
5
|
-
export declare function getNumberOrAutoValidator(): <T extends string>(val: T, attr: string) => void | T;
|
|
6
|
-
export declare function getStringValidator(): (val: any, attr: string) => any;
|
|
7
|
-
export declare function getStringOrGradientValidator(): (val: any, attr: string) => any;
|
|
8
|
-
export declare function getFunctionValidator(): (val: any, attr: string) => any;
|
|
9
|
-
export declare function getNumberArrayValidator(): (val: any, attr: string) => any;
|
|
10
|
-
export declare function getBooleanValidator(): (val: any, attr: string) => any;
|
|
11
|
-
export declare function getComponentValidator(components: any): (val: any, attr: string) => any;
|
package/cmj/Validators.js
DELETED
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getComponentValidator = exports.getBooleanValidator = exports.getNumberArrayValidator = exports.getFunctionValidator = exports.getStringOrGradientValidator = exports.getStringValidator = exports.getNumberOrAutoValidator = exports.getNumberOrArrayOfNumbersValidator = exports.getNumberValidator = exports.alphaComponent = exports.RGBComponent = void 0;
|
|
4
|
-
const Global_1 = require("./Global");
|
|
5
|
-
const Util_1 = require("./Util");
|
|
6
|
-
function _formatValue(val) {
|
|
7
|
-
if (Util_1.Util._isString(val)) {
|
|
8
|
-
return '"' + val + '"';
|
|
9
|
-
}
|
|
10
|
-
if (Object.prototype.toString.call(val) === '[object Number]') {
|
|
11
|
-
return val;
|
|
12
|
-
}
|
|
13
|
-
if (Util_1.Util._isBoolean(val)) {
|
|
14
|
-
return val;
|
|
15
|
-
}
|
|
16
|
-
return Object.prototype.toString.call(val);
|
|
17
|
-
}
|
|
18
|
-
function RGBComponent(val) {
|
|
19
|
-
if (val > 255) {
|
|
20
|
-
return 255;
|
|
21
|
-
}
|
|
22
|
-
else if (val < 0) {
|
|
23
|
-
return 0;
|
|
24
|
-
}
|
|
25
|
-
return Math.round(val);
|
|
26
|
-
}
|
|
27
|
-
exports.RGBComponent = RGBComponent;
|
|
28
|
-
function alphaComponent(val) {
|
|
29
|
-
if (val > 1) {
|
|
30
|
-
return 1;
|
|
31
|
-
}
|
|
32
|
-
else if (val < 0.0001) {
|
|
33
|
-
return 0.0001;
|
|
34
|
-
}
|
|
35
|
-
return val;
|
|
36
|
-
}
|
|
37
|
-
exports.alphaComponent = alphaComponent;
|
|
38
|
-
function getNumberValidator() {
|
|
39
|
-
if (Global_1.Konva.isUnminified) {
|
|
40
|
-
return function (val, attr) {
|
|
41
|
-
if (!Util_1.Util._isNumber(val)) {
|
|
42
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
43
|
-
' is a not valid value for "' +
|
|
44
|
-
attr +
|
|
45
|
-
'" attribute. The value should be a number.');
|
|
46
|
-
}
|
|
47
|
-
return val;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.getNumberValidator = getNumberValidator;
|
|
52
|
-
function getNumberOrArrayOfNumbersValidator(noOfElements) {
|
|
53
|
-
if (Global_1.Konva.isUnminified) {
|
|
54
|
-
return function (val, attr) {
|
|
55
|
-
let isNumber = Util_1.Util._isNumber(val);
|
|
56
|
-
let isValidArray = Util_1.Util._isArray(val) && val.length == noOfElements;
|
|
57
|
-
if (!isNumber && !isValidArray) {
|
|
58
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
59
|
-
' is a not valid value for "' +
|
|
60
|
-
attr +
|
|
61
|
-
'" attribute. The value should be a number or Array<number>(' +
|
|
62
|
-
noOfElements +
|
|
63
|
-
')');
|
|
64
|
-
}
|
|
65
|
-
return val;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.getNumberOrArrayOfNumbersValidator = getNumberOrArrayOfNumbersValidator;
|
|
70
|
-
function getNumberOrAutoValidator() {
|
|
71
|
-
if (Global_1.Konva.isUnminified) {
|
|
72
|
-
return function (val, attr) {
|
|
73
|
-
var isNumber = Util_1.Util._isNumber(val);
|
|
74
|
-
var isAuto = val === 'auto';
|
|
75
|
-
if (!(isNumber || isAuto)) {
|
|
76
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
77
|
-
' is a not valid value for "' +
|
|
78
|
-
attr +
|
|
79
|
-
'" attribute. The value should be a number or "auto".');
|
|
80
|
-
}
|
|
81
|
-
return val;
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
exports.getNumberOrAutoValidator = getNumberOrAutoValidator;
|
|
86
|
-
function getStringValidator() {
|
|
87
|
-
if (Global_1.Konva.isUnminified) {
|
|
88
|
-
return function (val, attr) {
|
|
89
|
-
if (!Util_1.Util._isString(val)) {
|
|
90
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
91
|
-
' is a not valid value for "' +
|
|
92
|
-
attr +
|
|
93
|
-
'" attribute. The value should be a string.');
|
|
94
|
-
}
|
|
95
|
-
return val;
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
exports.getStringValidator = getStringValidator;
|
|
100
|
-
function getStringOrGradientValidator() {
|
|
101
|
-
if (Global_1.Konva.isUnminified) {
|
|
102
|
-
return function (val, attr) {
|
|
103
|
-
const isString = Util_1.Util._isString(val);
|
|
104
|
-
const isGradient = Object.prototype.toString.call(val) === '[object CanvasGradient]' ||
|
|
105
|
-
(val && val.addColorStop);
|
|
106
|
-
if (!(isString || isGradient)) {
|
|
107
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
108
|
-
' is a not valid value for "' +
|
|
109
|
-
attr +
|
|
110
|
-
'" attribute. The value should be a string or a native gradient.');
|
|
111
|
-
}
|
|
112
|
-
return val;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
exports.getStringOrGradientValidator = getStringOrGradientValidator;
|
|
117
|
-
function getFunctionValidator() {
|
|
118
|
-
if (Global_1.Konva.isUnminified) {
|
|
119
|
-
return function (val, attr) {
|
|
120
|
-
if (!Util_1.Util._isFunction(val)) {
|
|
121
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
122
|
-
' is a not valid value for "' +
|
|
123
|
-
attr +
|
|
124
|
-
'" attribute. The value should be a function.');
|
|
125
|
-
}
|
|
126
|
-
return val;
|
|
127
|
-
};
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.getFunctionValidator = getFunctionValidator;
|
|
131
|
-
function getNumberArrayValidator() {
|
|
132
|
-
if (Global_1.Konva.isUnminified) {
|
|
133
|
-
return function (val, attr) {
|
|
134
|
-
const TypedArray = Int8Array ? Object.getPrototypeOf(Int8Array) : null;
|
|
135
|
-
if (TypedArray && val instanceof TypedArray) {
|
|
136
|
-
return val;
|
|
137
|
-
}
|
|
138
|
-
if (!Util_1.Util._isArray(val)) {
|
|
139
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
140
|
-
' is a not valid value for "' +
|
|
141
|
-
attr +
|
|
142
|
-
'" attribute. The value should be a array of numbers.');
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
val.forEach(function (item) {
|
|
146
|
-
if (!Util_1.Util._isNumber(item)) {
|
|
147
|
-
Util_1.Util.warn('"' +
|
|
148
|
-
attr +
|
|
149
|
-
'" attribute has non numeric element ' +
|
|
150
|
-
item +
|
|
151
|
-
'. Make sure that all elements are numbers.');
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return val;
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
exports.getNumberArrayValidator = getNumberArrayValidator;
|
|
160
|
-
function getBooleanValidator() {
|
|
161
|
-
if (Global_1.Konva.isUnminified) {
|
|
162
|
-
return function (val, attr) {
|
|
163
|
-
var isBool = val === true || val === false;
|
|
164
|
-
if (!isBool) {
|
|
165
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
166
|
-
' is a not valid value for "' +
|
|
167
|
-
attr +
|
|
168
|
-
'" attribute. The value should be a boolean.');
|
|
169
|
-
}
|
|
170
|
-
return val;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
exports.getBooleanValidator = getBooleanValidator;
|
|
175
|
-
function getComponentValidator(components) {
|
|
176
|
-
if (Global_1.Konva.isUnminified) {
|
|
177
|
-
return function (val, attr) {
|
|
178
|
-
if (val === undefined || val === null) {
|
|
179
|
-
return val;
|
|
180
|
-
}
|
|
181
|
-
if (!Util_1.Util.isObject(val)) {
|
|
182
|
-
Util_1.Util.warn(_formatValue(val) +
|
|
183
|
-
' is a not valid value for "' +
|
|
184
|
-
attr +
|
|
185
|
-
'" attribute. The value should be an object with properties ' +
|
|
186
|
-
components);
|
|
187
|
-
}
|
|
188
|
-
return val;
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
exports.getComponentValidator = getComponentValidator;
|
package/cmj/_CoreInternals.d.ts
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { Transform } from './Util';
|
|
2
|
-
import { Node } from './Node';
|
|
3
|
-
import { Container } from './Container';
|
|
4
|
-
import { Stage } from './Stage';
|
|
5
|
-
import { Layer } from './Layer';
|
|
6
|
-
import { FastLayer } from './FastLayer';
|
|
7
|
-
import { Group } from './Group';
|
|
8
|
-
import { Shape } from './Shape';
|
|
9
|
-
import { Animation } from './Animation';
|
|
10
|
-
import { Tween } from './Tween';
|
|
11
|
-
import { Context } from './Context';
|
|
12
|
-
import { Canvas } from './Canvas';
|
|
13
|
-
export declare const Konva: {
|
|
14
|
-
_global: any;
|
|
15
|
-
version: string;
|
|
16
|
-
isBrowser: boolean;
|
|
17
|
-
isUnminified: boolean;
|
|
18
|
-
dblClickWindow: number;
|
|
19
|
-
getAngle(angle: number): number;
|
|
20
|
-
enableTrace: boolean;
|
|
21
|
-
pointerEventsEnabled: boolean;
|
|
22
|
-
autoDrawEnabled: boolean;
|
|
23
|
-
hitOnDragEnabled: boolean;
|
|
24
|
-
capturePointerEventsEnabled: boolean;
|
|
25
|
-
_mouseListenClick: boolean;
|
|
26
|
-
_touchListenClick: boolean;
|
|
27
|
-
_pointerListenClick: boolean;
|
|
28
|
-
_mouseInDblClickWindow: boolean;
|
|
29
|
-
_touchInDblClickWindow: boolean;
|
|
30
|
-
_pointerInDblClickWindow: boolean;
|
|
31
|
-
_mouseDblClickPointerId: any;
|
|
32
|
-
_touchDblClickPointerId: any;
|
|
33
|
-
_pointerDblClickPointerId: any;
|
|
34
|
-
pixelRatio: number;
|
|
35
|
-
dragDistance: number;
|
|
36
|
-
angleDeg: boolean;
|
|
37
|
-
showWarnings: boolean;
|
|
38
|
-
dragButtons: number[];
|
|
39
|
-
isDragging(): any;
|
|
40
|
-
isDragReady(): boolean;
|
|
41
|
-
releaseCanvasOnDestroy: boolean;
|
|
42
|
-
document: any;
|
|
43
|
-
_injectGlobal(Konva: any): void;
|
|
44
|
-
} & {
|
|
45
|
-
Util: {
|
|
46
|
-
_isElement(obj: any): obj is Element;
|
|
47
|
-
_isFunction(obj: any): boolean;
|
|
48
|
-
_isPlainObject(obj: any): boolean;
|
|
49
|
-
_isArray(obj: any): obj is any[];
|
|
50
|
-
_isNumber(obj: any): obj is number;
|
|
51
|
-
_isString(obj: any): obj is string;
|
|
52
|
-
_isBoolean(obj: any): obj is boolean;
|
|
53
|
-
isObject(val: any): val is Object;
|
|
54
|
-
isValidSelector(selector: any): boolean;
|
|
55
|
-
_sign(number: number): 1 | -1;
|
|
56
|
-
requestAnimFrame(callback: Function): void;
|
|
57
|
-
createCanvasElement(): HTMLCanvasElement;
|
|
58
|
-
createImageElement(): HTMLImageElement;
|
|
59
|
-
_isInDocument(el: any): boolean;
|
|
60
|
-
_urlToImage(url: string, callback: Function): void;
|
|
61
|
-
_rgbToHex(r: number, g: number, b: number): string;
|
|
62
|
-
_hexToRgb(hex: string): import("./types").RGB;
|
|
63
|
-
getRandomColor(): string;
|
|
64
|
-
getRGB(color: string): import("./types").RGB;
|
|
65
|
-
colorToRGBA(str: string): import("./types").RGBA;
|
|
66
|
-
_namedColorToRBA(str: string): {
|
|
67
|
-
r: any;
|
|
68
|
-
g: any;
|
|
69
|
-
b: any;
|
|
70
|
-
a: number;
|
|
71
|
-
};
|
|
72
|
-
_rgbColorToRGBA(str: string): import("./types").RGBA;
|
|
73
|
-
_rgbaColorToRGBA(str: string): import("./types").RGBA;
|
|
74
|
-
_hex8ColorToRGBA(str: string): import("./types").RGBA;
|
|
75
|
-
_hex6ColorToRGBA(str: string): import("./types").RGBA;
|
|
76
|
-
_hex4ColorToRGBA(str: string): import("./types").RGBA;
|
|
77
|
-
_hex3ColorToRGBA(str: string): import("./types").RGBA;
|
|
78
|
-
_hslColorToRGBA(str: string): import("./types").RGBA;
|
|
79
|
-
haveIntersection(r1: import("./types").IRect, r2: import("./types").IRect): boolean;
|
|
80
|
-
cloneObject<Any>(obj: Any): Any;
|
|
81
|
-
cloneArray(arr: any[]): any[];
|
|
82
|
-
degToRad(deg: number): number;
|
|
83
|
-
radToDeg(rad: number): number;
|
|
84
|
-
_degToRad(deg: number): number;
|
|
85
|
-
_radToDeg(rad: number): number;
|
|
86
|
-
_getRotation(radians: any): any;
|
|
87
|
-
_capitalize(str: string): string;
|
|
88
|
-
throw(str: string): never;
|
|
89
|
-
error(str: string): void;
|
|
90
|
-
warn(str: string): void;
|
|
91
|
-
each(obj: any, func: any): void;
|
|
92
|
-
_inRange(val: any, left: any, right: any): boolean;
|
|
93
|
-
_getProjectionToSegment(x1: any, y1: any, x2: any, y2: any, x3: any, y3: any): any[];
|
|
94
|
-
_getProjectionToLine(pt: import("./types").Vector2d, line: any, isClosed: any): import("./types").Vector2d;
|
|
95
|
-
_prepareArrayForTween(startArray: any, endArray: any, isClosed: any): any[];
|
|
96
|
-
_prepareToStringify(obj: any): any;
|
|
97
|
-
_assign<T, U>(target: T, source: U): T & U;
|
|
98
|
-
_getFirstPointerId(evt: any): any;
|
|
99
|
-
releaseCanvas(...canvases: HTMLCanvasElement[]): void;
|
|
100
|
-
drawRoundedRectPath(context: Context, width: number, height: number, cornerRadius: number | number[]): void;
|
|
101
|
-
};
|
|
102
|
-
Transform: typeof Transform;
|
|
103
|
-
Node: typeof Node;
|
|
104
|
-
Container: typeof Container;
|
|
105
|
-
Stage: typeof Stage;
|
|
106
|
-
stages: Stage[];
|
|
107
|
-
Layer: typeof Layer;
|
|
108
|
-
FastLayer: typeof FastLayer;
|
|
109
|
-
Group: typeof Group;
|
|
110
|
-
DD: {
|
|
111
|
-
readonly isDragging: boolean;
|
|
112
|
-
justDragged: boolean;
|
|
113
|
-
readonly node: Node<import("./Node").NodeConfig>;
|
|
114
|
-
_dragElements: Map<number, {
|
|
115
|
-
node: Node<import("./Node").NodeConfig>;
|
|
116
|
-
startPointerPos: import("./types").Vector2d;
|
|
117
|
-
offset: import("./types").Vector2d;
|
|
118
|
-
pointerId?: number;
|
|
119
|
-
dragStatus: "ready" | "dragging" | "stopped";
|
|
120
|
-
}>;
|
|
121
|
-
_drag(evt: any): void;
|
|
122
|
-
_endDragBefore(evt?: any): void;
|
|
123
|
-
_endDragAfter(evt: any): void;
|
|
124
|
-
};
|
|
125
|
-
Shape: typeof Shape;
|
|
126
|
-
shapes: {
|
|
127
|
-
[key: string]: Shape<import("./Shape").ShapeConfig>;
|
|
128
|
-
};
|
|
129
|
-
Animation: typeof Animation;
|
|
130
|
-
Tween: typeof Tween;
|
|
131
|
-
Easings: {
|
|
132
|
-
BackEaseIn(t: any, b: any, c: any, d: any): any;
|
|
133
|
-
BackEaseOut(t: any, b: any, c: any, d: any): any;
|
|
134
|
-
BackEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
135
|
-
ElasticEaseIn(t: any, b: any, c: any, d: any, a: any, p: any): any;
|
|
136
|
-
ElasticEaseOut(t: any, b: any, c: any, d: any, a: any, p: any): any;
|
|
137
|
-
ElasticEaseInOut(t: any, b: any, c: any, d: any, a: any, p: any): any;
|
|
138
|
-
BounceEaseOut(t: any, b: any, c: any, d: any): any;
|
|
139
|
-
BounceEaseIn(t: any, b: any, c: any, d: any): any;
|
|
140
|
-
BounceEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
141
|
-
EaseIn(t: any, b: any, c: any, d: any): any;
|
|
142
|
-
EaseOut(t: any, b: any, c: any, d: any): any;
|
|
143
|
-
EaseInOut(t: any, b: any, c: any, d: any): any;
|
|
144
|
-
StrongEaseIn(t: any, b: any, c: any, d: any): any;
|
|
145
|
-
StrongEaseOut(t: any, b: any, c: any, d: any): any;
|
|
146
|
-
StrongEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
147
|
-
Linear(t: any, b: any, c: any, d: any): any;
|
|
148
|
-
};
|
|
149
|
-
Context: typeof Context;
|
|
150
|
-
Canvas: typeof Canvas;
|
|
151
|
-
};
|
|
152
|
-
export default Konva;
|
package/cmj/_CoreInternals.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Konva = void 0;
|
|
4
|
-
const Global_1 = require("./Global");
|
|
5
|
-
const Util_1 = require("./Util");
|
|
6
|
-
const Node_1 = require("./Node");
|
|
7
|
-
const Container_1 = require("./Container");
|
|
8
|
-
const Stage_1 = require("./Stage");
|
|
9
|
-
const Layer_1 = require("./Layer");
|
|
10
|
-
const FastLayer_1 = require("./FastLayer");
|
|
11
|
-
const Group_1 = require("./Group");
|
|
12
|
-
const DragAndDrop_1 = require("./DragAndDrop");
|
|
13
|
-
const Shape_1 = require("./Shape");
|
|
14
|
-
const Animation_1 = require("./Animation");
|
|
15
|
-
const Tween_1 = require("./Tween");
|
|
16
|
-
const Context_1 = require("./Context");
|
|
17
|
-
const Canvas_1 = require("./Canvas");
|
|
18
|
-
exports.Konva = Util_1.Util._assign(Global_1.Konva, {
|
|
19
|
-
Util: Util_1.Util,
|
|
20
|
-
Transform: Util_1.Transform,
|
|
21
|
-
Node: Node_1.Node,
|
|
22
|
-
Container: Container_1.Container,
|
|
23
|
-
Stage: Stage_1.Stage,
|
|
24
|
-
stages: Stage_1.stages,
|
|
25
|
-
Layer: Layer_1.Layer,
|
|
26
|
-
FastLayer: FastLayer_1.FastLayer,
|
|
27
|
-
Group: Group_1.Group,
|
|
28
|
-
DD: DragAndDrop_1.DD,
|
|
29
|
-
Shape: Shape_1.Shape,
|
|
30
|
-
shapes: Shape_1.shapes,
|
|
31
|
-
Animation: Animation_1.Animation,
|
|
32
|
-
Tween: Tween_1.Tween,
|
|
33
|
-
Easings: Tween_1.Easings,
|
|
34
|
-
Context: Context_1.Context,
|
|
35
|
-
Canvas: Canvas_1.Canvas,
|
|
36
|
-
});
|
|
37
|
-
exports.default = exports.Konva;
|
package/cmj/_FullInternals.d.ts
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
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';
|
|
18
|
-
export declare const Konva: {
|
|
19
|
-
_global: any;
|
|
20
|
-
version: string;
|
|
21
|
-
isBrowser: boolean;
|
|
22
|
-
isUnminified: boolean;
|
|
23
|
-
dblClickWindow: number;
|
|
24
|
-
getAngle(angle: number): number;
|
|
25
|
-
enableTrace: boolean;
|
|
26
|
-
pointerEventsEnabled: boolean;
|
|
27
|
-
autoDrawEnabled: boolean;
|
|
28
|
-
hitOnDragEnabled: boolean;
|
|
29
|
-
capturePointerEventsEnabled: boolean;
|
|
30
|
-
_mouseListenClick: boolean;
|
|
31
|
-
_touchListenClick: boolean;
|
|
32
|
-
_pointerListenClick: boolean;
|
|
33
|
-
_mouseInDblClickWindow: boolean;
|
|
34
|
-
_touchInDblClickWindow: boolean;
|
|
35
|
-
_pointerInDblClickWindow: boolean;
|
|
36
|
-
_mouseDblClickPointerId: any;
|
|
37
|
-
_touchDblClickPointerId: any;
|
|
38
|
-
_pointerDblClickPointerId: any;
|
|
39
|
-
pixelRatio: number;
|
|
40
|
-
dragDistance: number;
|
|
41
|
-
angleDeg: boolean;
|
|
42
|
-
showWarnings: boolean;
|
|
43
|
-
dragButtons: number[];
|
|
44
|
-
isDragging(): any;
|
|
45
|
-
isDragReady(): boolean;
|
|
46
|
-
releaseCanvasOnDestroy: boolean;
|
|
47
|
-
document: any;
|
|
48
|
-
_injectGlobal(Konva: any): void;
|
|
49
|
-
} & {
|
|
50
|
-
Util: {
|
|
51
|
-
_isElement(obj: any): obj is Element;
|
|
52
|
-
_isFunction(obj: any): boolean;
|
|
53
|
-
_isPlainObject(obj: any): boolean;
|
|
54
|
-
_isArray(obj: any): obj is any[];
|
|
55
|
-
_isNumber(obj: any): obj is number;
|
|
56
|
-
_isString(obj: any): obj is string;
|
|
57
|
-
_isBoolean(obj: any): obj is boolean;
|
|
58
|
-
isObject(val: any): val is Object;
|
|
59
|
-
isValidSelector(selector: any): boolean;
|
|
60
|
-
_sign(number: number): 1 | -1;
|
|
61
|
-
requestAnimFrame(callback: Function): void;
|
|
62
|
-
createCanvasElement(): HTMLCanvasElement;
|
|
63
|
-
createImageElement(): HTMLImageElement;
|
|
64
|
-
_isInDocument(el: any): boolean;
|
|
65
|
-
_urlToImage(url: string, callback: Function): void;
|
|
66
|
-
_rgbToHex(r: number, g: number, b: number): string;
|
|
67
|
-
_hexToRgb(hex: string): import("./types").RGB;
|
|
68
|
-
getRandomColor(): string;
|
|
69
|
-
getRGB(color: string): import("./types").RGB;
|
|
70
|
-
colorToRGBA(str: string): import("./types").RGBA;
|
|
71
|
-
_namedColorToRBA(str: string): {
|
|
72
|
-
r: any;
|
|
73
|
-
g: any;
|
|
74
|
-
b: any;
|
|
75
|
-
a: number;
|
|
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;
|
|
85
|
-
cloneObject<Any>(obj: Any): Any;
|
|
86
|
-
cloneArray(arr: any[]): any[];
|
|
87
|
-
degToRad(deg: number): number;
|
|
88
|
-
radToDeg(rad: number): number;
|
|
89
|
-
_degToRad(deg: number): number;
|
|
90
|
-
_radToDeg(rad: number): number;
|
|
91
|
-
_getRotation(radians: any): any;
|
|
92
|
-
_capitalize(str: string): string;
|
|
93
|
-
throw(str: string): never;
|
|
94
|
-
error(str: string): void;
|
|
95
|
-
warn(str: string): void;
|
|
96
|
-
each(obj: any, func: any): void;
|
|
97
|
-
_inRange(val: any, left: any, right: any): boolean;
|
|
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;
|
|
100
|
-
_prepareArrayForTween(startArray: any, endArray: any, isClosed: any): any[];
|
|
101
|
-
_prepareToStringify(obj: any): any;
|
|
102
|
-
_assign<T, U>(target: T, source: U): T & U;
|
|
103
|
-
_getFirstPointerId(evt: any): any;
|
|
104
|
-
releaseCanvas(...canvases: HTMLCanvasElement[]): void;
|
|
105
|
-
drawRoundedRectPath(context: import("./Context").Context, width: number, height: number, cornerRadius: number | number[]): void;
|
|
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;
|
|
115
|
-
DD: {
|
|
116
|
-
readonly isDragging: boolean;
|
|
117
|
-
justDragged: boolean;
|
|
118
|
-
readonly node: import("./Node").Node<import("./Node").NodeConfig>;
|
|
119
|
-
_dragElements: Map<number, {
|
|
120
|
-
node: import("./Node").Node<import("./Node").NodeConfig>;
|
|
121
|
-
startPointerPos: import("./types").Vector2d;
|
|
122
|
-
offset: import("./types").Vector2d;
|
|
123
|
-
pointerId?: number;
|
|
124
|
-
dragStatus: "ready" | "dragging" | "stopped";
|
|
125
|
-
}>;
|
|
126
|
-
_drag(evt: any): void;
|
|
127
|
-
_endDragBefore(evt?: any): void;
|
|
128
|
-
_endDragAfter(evt: any): void;
|
|
129
|
-
};
|
|
130
|
-
Shape: typeof import("./Shape").Shape;
|
|
131
|
-
shapes: {
|
|
132
|
-
[key: string]: import("./Shape").Shape<import("./Shape").ShapeConfig>;
|
|
133
|
-
};
|
|
134
|
-
Animation: typeof import("./Animation").Animation;
|
|
135
|
-
Tween: typeof import("./Tween").Tween;
|
|
136
|
-
Easings: {
|
|
137
|
-
BackEaseIn(t: any, b: any, c: any, d: any): any;
|
|
138
|
-
BackEaseOut(t: any, b: any, c: any, d: any): any;
|
|
139
|
-
BackEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
140
|
-
ElasticEaseIn(t: any, b: any, c: any, d: any, a: any, p: any): any;
|
|
141
|
-
ElasticEaseOut(t: any, b: any, c: any, d: any, a: any, p: any): any;
|
|
142
|
-
ElasticEaseInOut(t: any, b: any, c: any, d: any, a: any, p: any): any;
|
|
143
|
-
BounceEaseOut(t: any, b: any, c: any, d: any): any;
|
|
144
|
-
BounceEaseIn(t: any, b: any, c: any, d: any): any;
|
|
145
|
-
BounceEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
146
|
-
EaseIn(t: any, b: any, c: any, d: any): any;
|
|
147
|
-
EaseOut(t: any, b: any, c: any, d: any): any;
|
|
148
|
-
EaseInOut(t: any, b: any, c: any, d: any): any;
|
|
149
|
-
StrongEaseIn(t: any, b: any, c: any, d: any): any;
|
|
150
|
-
StrongEaseOut(t: any, b: any, c: any, d: any): any;
|
|
151
|
-
StrongEaseInOut(t: any, b: any, c: any, d: any): any;
|
|
152
|
-
Linear(t: any, b: any, c: any, d: any): any;
|
|
153
|
-
};
|
|
154
|
-
Context: typeof import("./Context").Context;
|
|
155
|
-
Canvas: typeof import("./Canvas").Canvas;
|
|
156
|
-
} & {
|
|
157
|
-
Arc: typeof Arc;
|
|
158
|
-
Arrow: typeof Arrow;
|
|
159
|
-
Circle: typeof Circle;
|
|
160
|
-
Ellipse: typeof Ellipse;
|
|
161
|
-
Image: typeof Image;
|
|
162
|
-
Label: typeof Label;
|
|
163
|
-
Tag: typeof Tag;
|
|
164
|
-
Line: typeof Line;
|
|
165
|
-
Path: typeof Path;
|
|
166
|
-
Rect: typeof Rect;
|
|
167
|
-
RegularPolygon: typeof RegularPolygon;
|
|
168
|
-
Ring: typeof Ring;
|
|
169
|
-
Sprite: typeof Sprite;
|
|
170
|
-
Star: typeof Star;
|
|
171
|
-
Text: typeof Text;
|
|
172
|
-
TextPath: typeof TextPath;
|
|
173
|
-
Transformer: typeof Transformer;
|
|
174
|
-
Wedge: typeof Wedge;
|
|
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;
|
|
195
|
-
};
|
|
196
|
-
};
|
package/cmj/_FullInternals.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Konva = void 0;
|
|
4
|
-
const _CoreInternals_1 = require("./_CoreInternals");
|
|
5
|
-
const Arc_1 = require("./shapes/Arc");
|
|
6
|
-
const Arrow_1 = require("./shapes/Arrow");
|
|
7
|
-
const Circle_1 = require("./shapes/Circle");
|
|
8
|
-
const Ellipse_1 = require("./shapes/Ellipse");
|
|
9
|
-
const Image_1 = require("./shapes/Image");
|
|
10
|
-
const Label_1 = require("./shapes/Label");
|
|
11
|
-
const Line_1 = require("./shapes/Line");
|
|
12
|
-
const Path_1 = require("./shapes/Path");
|
|
13
|
-
const Rect_1 = require("./shapes/Rect");
|
|
14
|
-
const RegularPolygon_1 = require("./shapes/RegularPolygon");
|
|
15
|
-
const Ring_1 = require("./shapes/Ring");
|
|
16
|
-
const Sprite_1 = require("./shapes/Sprite");
|
|
17
|
-
const Star_1 = require("./shapes/Star");
|
|
18
|
-
const Text_1 = require("./shapes/Text");
|
|
19
|
-
const TextPath_1 = require("./shapes/TextPath");
|
|
20
|
-
const Transformer_1 = require("./shapes/Transformer");
|
|
21
|
-
const Wedge_1 = require("./shapes/Wedge");
|
|
22
|
-
const Blur_1 = require("./filters/Blur");
|
|
23
|
-
const Brighten_1 = require("./filters/Brighten");
|
|
24
|
-
const Contrast_1 = require("./filters/Contrast");
|
|
25
|
-
const Emboss_1 = require("./filters/Emboss");
|
|
26
|
-
const Enhance_1 = require("./filters/Enhance");
|
|
27
|
-
const Grayscale_1 = require("./filters/Grayscale");
|
|
28
|
-
const HSL_1 = require("./filters/HSL");
|
|
29
|
-
const HSV_1 = require("./filters/HSV");
|
|
30
|
-
const Invert_1 = require("./filters/Invert");
|
|
31
|
-
const Kaleidoscope_1 = require("./filters/Kaleidoscope");
|
|
32
|
-
const Mask_1 = require("./filters/Mask");
|
|
33
|
-
const Noise_1 = require("./filters/Noise");
|
|
34
|
-
const Pixelate_1 = require("./filters/Pixelate");
|
|
35
|
-
const Posterize_1 = require("./filters/Posterize");
|
|
36
|
-
const RGB_1 = require("./filters/RGB");
|
|
37
|
-
const RGBA_1 = require("./filters/RGBA");
|
|
38
|
-
const Sepia_1 = require("./filters/Sepia");
|
|
39
|
-
const Solarize_1 = require("./filters/Solarize");
|
|
40
|
-
const Threshold_1 = require("./filters/Threshold");
|
|
41
|
-
exports.Konva = _CoreInternals_1.Konva.Util._assign(_CoreInternals_1.Konva, {
|
|
42
|
-
Arc: Arc_1.Arc,
|
|
43
|
-
Arrow: Arrow_1.Arrow,
|
|
44
|
-
Circle: Circle_1.Circle,
|
|
45
|
-
Ellipse: Ellipse_1.Ellipse,
|
|
46
|
-
Image: Image_1.Image,
|
|
47
|
-
Label: Label_1.Label,
|
|
48
|
-
Tag: Label_1.Tag,
|
|
49
|
-
Line: Line_1.Line,
|
|
50
|
-
Path: Path_1.Path,
|
|
51
|
-
Rect: Rect_1.Rect,
|
|
52
|
-
RegularPolygon: RegularPolygon_1.RegularPolygon,
|
|
53
|
-
Ring: Ring_1.Ring,
|
|
54
|
-
Sprite: Sprite_1.Sprite,
|
|
55
|
-
Star: Star_1.Star,
|
|
56
|
-
Text: Text_1.Text,
|
|
57
|
-
TextPath: TextPath_1.TextPath,
|
|
58
|
-
Transformer: Transformer_1.Transformer,
|
|
59
|
-
Wedge: Wedge_1.Wedge,
|
|
60
|
-
Filters: {
|
|
61
|
-
Blur: Blur_1.Blur,
|
|
62
|
-
Brighten: Brighten_1.Brighten,
|
|
63
|
-
Contrast: Contrast_1.Contrast,
|
|
64
|
-
Emboss: Emboss_1.Emboss,
|
|
65
|
-
Enhance: Enhance_1.Enhance,
|
|
66
|
-
Grayscale: Grayscale_1.Grayscale,
|
|
67
|
-
HSL: HSL_1.HSL,
|
|
68
|
-
HSV: HSV_1.HSV,
|
|
69
|
-
Invert: Invert_1.Invert,
|
|
70
|
-
Kaleidoscope: Kaleidoscope_1.Kaleidoscope,
|
|
71
|
-
Mask: Mask_1.Mask,
|
|
72
|
-
Noise: Noise_1.Noise,
|
|
73
|
-
Pixelate: Pixelate_1.Pixelate,
|
|
74
|
-
Posterize: Posterize_1.Posterize,
|
|
75
|
-
RGB: RGB_1.RGB,
|
|
76
|
-
RGBA: RGBA_1.RGBA,
|
|
77
|
-
Sepia: Sepia_1.Sepia,
|
|
78
|
-
Solarize: Solarize_1.Solarize,
|
|
79
|
-
Threshold: Threshold_1.Threshold,
|
|
80
|
-
},
|
|
81
|
-
});
|
package/cmj/filters/Blur.d.ts
DELETED