@progress/kendo-vue-inputs 8.0.3-develop.2 → 8.0.3-develop.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/checkbox/Checkbox.d.ts +193 -0
- package/checkbox/interfaces/CheckboxBlurEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxChangeEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxFocusEvent.d.ts +16 -0
- package/checkbox/interfaces/CheckboxProps.d.ts +120 -0
- package/colors/ColorContrastLabels.d.ts +27 -0
- package/colors/ColorContrastSvg.d.ts +30 -0
- package/colors/ColorGradient.d.ts +128 -0
- package/colors/ColorInput.d.ts +67 -0
- package/colors/ColorPalette.d.ts +112 -0
- package/colors/ColorPicker.d.ts +279 -0
- package/colors/ColorPicker.js +1 -1
- package/colors/ColorPicker.mjs +7 -6
- package/colors/FlatColorPicker.d.ts +286 -0
- package/colors/FlatColorPicker.mjs +3 -3
- package/colors/HexInput.d.ts +55 -0
- package/colors/Picker.d.ts +35 -0
- package/colors/common/ColorsAdaptiveMode.d.ts +47 -0
- package/colors/interfaces/ColorGradientBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorGradientFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorGradientProps.d.ts +95 -0
- package/colors/interfaces/ColorPaletteBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPaletteFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPaletteProps.d.ts +93 -0
- package/colors/interfaces/ColorPickerActiveColorClick.d.ts +24 -0
- package/colors/interfaces/ColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerChangeEvent.d.ts +28 -0
- package/colors/interfaces/ColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/ColorPickerPaletteSettings.d.ts +39 -0
- package/colors/interfaces/ColorPickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/ColorPickerProps.d.ts +190 -0
- package/colors/interfaces/ColorPickerView.d.ts +17 -0
- package/colors/interfaces/FlatColorPickerBlurEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerFocusoutEvent.d.ts +16 -0
- package/colors/interfaces/FlatColorPickerViewChangeEvent.d.ts +20 -0
- package/colors/interfaces/HexInputBlurEvent.d.ts +17 -0
- package/colors/interfaces/HexInputFocusEvent.d.ts +17 -0
- package/colors/interfaces/PickerPopupSettings.d.ts +21 -0
- package/colors/interfaces/PickerProps.d.ts +53 -0
- package/colors/models/hsva.d.ts +16 -0
- package/colors/models/output-format.d.ts +11 -0
- package/colors/models/palette-presets.d.ts +60 -0
- package/colors/models/rgb.d.ts +15 -0
- package/colors/models/rgba.d.ts +16 -0
- package/colors/models/table-cell.d.ts +14 -0
- package/colors/models/tile-size.d.ts +18 -0
- package/colors/utils/color-cache.d.ts +50 -0
- package/colors/utils/color-palette.service.d.ts +20 -0
- package/colors/utils/color-parser.d.ts +78 -0
- package/colors/utils/misc.d.ts +22 -0
- package/colors/utils/svg-calc.d.ts +69 -0
- package/dist/cdn/js/kendo-vue-inputs.js +1 -1
- package/index.d.mts +74 -5820
- package/index.d.ts +74 -5820
- package/input/Input.d.ts +378 -0
- package/input/InputBlurEvent.d.ts +16 -0
- package/input/InputFocusEvent.d.ts +16 -0
- package/input-separator/InputSeparator.d.ts +42 -0
- package/input-separator/interfaces/InputSeparatorOrientation.d.ts +15 -0
- package/interfaces/Direction.d.ts +8 -0
- package/interfaces/ToggleBaseProps.d.ts +15 -0
- package/maskedtextbox/MaskedTextBox.d.ts +269 -0
- package/maskedtextbox/MaskedTextBoxBlurEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxFocusEvent.d.ts +16 -0
- package/maskedtextbox/MaskedTextBoxProps.d.ts +230 -0
- package/maskedtextbox/masking.service.d.ts +48 -0
- package/maskedtextbox/parsing/combinators.d.ts +16 -0
- package/maskedtextbox/parsing/parsers.d.ts +54 -0
- package/maskedtextbox/parsing/result.d.ts +30 -0
- package/maskedtextbox/parsing/stream.d.ts +29 -0
- package/maskedtextbox/utils.d.ts +23 -0
- package/messages/main.d.ts +212 -0
- package/numerictextbox/NumericTextBox.d.ts +264 -0
- package/numerictextbox/NumericTextBox.js +1 -1
- package/numerictextbox/NumericTextBox.mjs +2 -0
- package/numerictextbox/interfaces/NumericTextBoxBlurEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxData.d.ts +22 -0
- package/numerictextbox/interfaces/NumericTextBoxFocusEvent.d.ts +16 -0
- package/numerictextbox/interfaces/NumericTextBoxProps.d.ts +188 -0
- package/numerictextbox/utils/main.d.ts +126 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +17 -11
- package/radiobutton/RadioButton.d.ts +94 -0
- package/radiobutton/RadioGroup.d.ts +97 -0
- package/radiobutton/interfaces/RadioButtonBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioButtonProps.d.ts +120 -0
- package/radiobutton/interfaces/RadioGroupBlurEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupChangeEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupFocusEvent.d.ts +16 -0
- package/radiobutton/interfaces/RadioGroupProps.d.ts +86 -0
- package/range-slider/RangeSlider.d.ts +256 -0
- package/range-slider/range-raducer.d.ts +42 -0
- package/range-slider/range-raducer.js +1 -1
- package/range-slider/range-raducer.mjs +2 -2
- package/rating/Rating.d.ts +132 -0
- package/rating/RatingItem.d.ts +98 -0
- package/rating/interfaces/RatingBlurEvent.d.ts +16 -0
- package/rating/interfaces/RatingEvents.d.ts +54 -0
- package/rating/interfaces/RatingFocusEvent.d.ts +16 -0
- package/rating/interfaces/RatingItemProps.d.ts +99 -0
- package/rating/interfaces/RatingProps.d.ts +123 -0
- package/rating/utils/main.d.ts +31 -0
- package/rating/utils/rating-reducer.d.ts +39 -0
- package/signature/Signature.d.ts +219 -0
- package/signature/SignatureBottomActions.d.ts +35 -0
- package/signature/SignatureCanvas.d.ts +66 -0
- package/signature/SignatureDialog.d.ts +90 -0
- package/signature/SignatureLine.d.ts +12 -0
- package/signature/interfaces/SignatureBlurEvent.d.ts +12 -0
- package/signature/interfaces/SignatureCanvasProps.d.ts +23 -0
- package/signature/interfaces/SignatureChangeEvent.d.ts +16 -0
- package/signature/interfaces/SignatureCloseEvent.d.ts +12 -0
- package/signature/interfaces/SignatureFocusEvent.d.ts +12 -0
- package/signature/interfaces/SignatureHandle.d.ts +49 -0
- package/signature/interfaces/SignatureOpenEvent.d.ts +12 -0
- package/signature/interfaces/SignatureProps.d.ts +197 -0
- package/signature/interfaces/main.d.ts +14 -0
- package/signature/utils/main.d.ts +11 -0
- package/slider/Slider.d.ts +201 -0
- package/slider/SliderLabel.d.ts +57 -0
- package/slider/interfaces/SliderBlurEvent.d.ts +16 -0
- package/slider/interfaces/SliderFocusEvent.d.ts +16 -0
- package/switch/Switch.d.ts +318 -0
- package/switch/interfaces/SwitchBlurEvent.d.ts +16 -0
- package/switch/interfaces/SwitchFocusEvent.d.ts +16 -0
- package/switch/util.d.ts +15 -0
- package/textarea/TextArea.d.ts +237 -0
- package/textarea/interfaces/TextAreaBlurEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaChangeEvent.d.ts +16 -0
- package/textarea/interfaces/TextAreaFlow.d.ts +15 -0
- package/textarea/interfaces/TextAreaFocusEvent.d.ts +24 -0
- package/textarea/interfaces/TextAreaProps.d.ts +191 -0
- package/textarea/interfaces/TextAreaResize.d.ts +38 -0
- package/textbox/TextBox.d.ts +422 -0
- package/textbox/interfaces/TextBoxBlurEvent.d.ts +16 -0
- package/textbox/interfaces/TextBoxFocusEvent.d.ts +16 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const PALETTEPRESETS: {
|
|
12
|
+
basic: {
|
|
13
|
+
colors: string[];
|
|
14
|
+
columns: number;
|
|
15
|
+
};
|
|
16
|
+
office: {
|
|
17
|
+
colors: string[];
|
|
18
|
+
columns: number;
|
|
19
|
+
};
|
|
20
|
+
apex: {
|
|
21
|
+
colors: string[];
|
|
22
|
+
columns: number;
|
|
23
|
+
};
|
|
24
|
+
austin: {
|
|
25
|
+
colors: string[];
|
|
26
|
+
columns: number;
|
|
27
|
+
};
|
|
28
|
+
clarity: {
|
|
29
|
+
colors: string[];
|
|
30
|
+
columns: number;
|
|
31
|
+
};
|
|
32
|
+
slipstream: {
|
|
33
|
+
colors: string[];
|
|
34
|
+
columns: number;
|
|
35
|
+
};
|
|
36
|
+
metro: {
|
|
37
|
+
colors: string[];
|
|
38
|
+
columns: number;
|
|
39
|
+
};
|
|
40
|
+
flow: {
|
|
41
|
+
colors: string[];
|
|
42
|
+
columns: number;
|
|
43
|
+
};
|
|
44
|
+
hardcover: {
|
|
45
|
+
colors: string[];
|
|
46
|
+
columns: number;
|
|
47
|
+
};
|
|
48
|
+
trek: {
|
|
49
|
+
colors: string[];
|
|
50
|
+
columns: number;
|
|
51
|
+
};
|
|
52
|
+
verve: {
|
|
53
|
+
colors: string[];
|
|
54
|
+
columns: number;
|
|
55
|
+
};
|
|
56
|
+
monochrome: {
|
|
57
|
+
colors: string[];
|
|
58
|
+
columns: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface RGB {
|
|
12
|
+
r?: number;
|
|
13
|
+
g?: number;
|
|
14
|
+
b?: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface RGBA {
|
|
12
|
+
r?: number;
|
|
13
|
+
g?: number;
|
|
14
|
+
b?: number;
|
|
15
|
+
a?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export interface TableCell {
|
|
12
|
+
row: number;
|
|
13
|
+
col: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Specifies the size of a color cell.
|
|
10
|
+
*
|
|
11
|
+
* The possible values are:
|
|
12
|
+
* * (Default) `number = 24`
|
|
13
|
+
* * `{ width: number, height: number }`
|
|
14
|
+
*/
|
|
15
|
+
export type TileSize = {
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { HSVA } from '../models/hsva';
|
|
9
|
+
import { RGBA } from '../models/rgba';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_GRADIENT_SETTINGS: {
|
|
14
|
+
opacity: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @hidden
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_PALETTE_SETTINGS: {
|
|
20
|
+
palette: string;
|
|
21
|
+
tileSize: number;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* @hidden
|
|
25
|
+
*/
|
|
26
|
+
export declare function cacheHsva(componentGuid: string, value: string, hsva: HSVA): void;
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare function cacheRgba(componentGuid: string, value: string, rgba: RGBA): void;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
export declare function cacheHex(componentGuid: string, value: string, hex: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*/
|
|
38
|
+
export declare function removeCachedColor(componentGuid: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* @hidden
|
|
41
|
+
*/
|
|
42
|
+
export declare function getCachedHex(componentGuid: string | undefined, value: string): any;
|
|
43
|
+
/**
|
|
44
|
+
* @hidden
|
|
45
|
+
*/
|
|
46
|
+
export declare function getCachedHsva(componentGuid: string | undefined, value: string): any;
|
|
47
|
+
/**
|
|
48
|
+
* @hidden
|
|
49
|
+
*/
|
|
50
|
+
export declare function getCachedRgba(componentGuid: string | undefined, value: string): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TableCell } from '../models/table-cell';
|
|
9
|
+
/**
|
|
10
|
+
* @hidden
|
|
11
|
+
*/
|
|
12
|
+
export declare class ColorPaletteService {
|
|
13
|
+
colorRows: string[][];
|
|
14
|
+
setColorMatrix(palette: string[], columns: number): void;
|
|
15
|
+
isInColors(colors: any, current: any): boolean;
|
|
16
|
+
getCellCoordsFor(color?: string): TableCell | undefined;
|
|
17
|
+
getColorAt(cellCoords: TableCell): string | undefined;
|
|
18
|
+
getNextCell(current: TableCell, horizontalStep: number, verticalStep: number): TableCell;
|
|
19
|
+
private clampIndex;
|
|
20
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { HSVA } from '../models/hsva';
|
|
9
|
+
import { OutputFormat } from '../models/output-format';
|
|
10
|
+
import { RGB } from '../models/rgb';
|
|
11
|
+
import { RGBA } from '../models/rgba';
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*
|
|
15
|
+
* Returns the hex or RGBA string representation of the color.
|
|
16
|
+
*/
|
|
17
|
+
export declare const parseColor: (value: string, format: OutputFormat, opacityEnabled?: boolean, safe?: boolean) => string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*
|
|
21
|
+
* Returns the HEX value.
|
|
22
|
+
*/
|
|
23
|
+
export declare const getHexValue: (color: any, opacity: boolean) => string;
|
|
24
|
+
/**
|
|
25
|
+
* @hidden
|
|
26
|
+
*
|
|
27
|
+
* Returns an HSV object representation of the color string.
|
|
28
|
+
*/
|
|
29
|
+
export declare const getHSV: (value: string, safe?: boolean) => HSVA;
|
|
30
|
+
/**
|
|
31
|
+
* @hidden
|
|
32
|
+
*
|
|
33
|
+
* Returns an RGBA object representation of the color string.
|
|
34
|
+
*/
|
|
35
|
+
export declare const getRGBA: (value: string, safe?: boolean) => RGBA;
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*
|
|
39
|
+
* Returns the RGBA string representation of the color.
|
|
40
|
+
*/
|
|
41
|
+
export declare const getColorFromHSV: (hsva: HSVA) => string;
|
|
42
|
+
/**
|
|
43
|
+
* @hidden
|
|
44
|
+
*
|
|
45
|
+
* Returns the RGBA string representation of the color based on the `hue` and
|
|
46
|
+
* assuming the `value`, `saturation`, and `alpha` have a value of `1`.
|
|
47
|
+
*/
|
|
48
|
+
export declare const getColorFromHue: (hue: number) => string;
|
|
49
|
+
/**
|
|
50
|
+
* @hidden
|
|
51
|
+
*
|
|
52
|
+
* Returns the RGBA string representation of the color.
|
|
53
|
+
*/
|
|
54
|
+
export declare const getColorFromRGBA: (rgba: RGBA) => string;
|
|
55
|
+
/**
|
|
56
|
+
* @hidden
|
|
57
|
+
*
|
|
58
|
+
* Returns the RGB object representation of the color based on the background color.
|
|
59
|
+
*/
|
|
60
|
+
export declare const getRGBFromRGBA: (foregroundColor: RGBA, backgroundColor: RGBA) => RGB;
|
|
61
|
+
/**
|
|
62
|
+
* @hidden
|
|
63
|
+
*
|
|
64
|
+
* Returns the relative luminance.
|
|
65
|
+
*/
|
|
66
|
+
export declare const getLuminance: (rgb: RGB) => number;
|
|
67
|
+
/**
|
|
68
|
+
* @hidden
|
|
69
|
+
*
|
|
70
|
+
* Returns the color contrast.
|
|
71
|
+
*/
|
|
72
|
+
export declare const getContrast: (luminance1: number, luminance2: number) => number;
|
|
73
|
+
/**
|
|
74
|
+
* @hidden
|
|
75
|
+
*
|
|
76
|
+
* Returns the color contrast from two RGBA colors.
|
|
77
|
+
*/
|
|
78
|
+
export declare const getContrastFromTwoRGBAs: (a: RGBA, b: RGBA) => number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*/
|
|
11
|
+
export declare const isPresent: (value: any) => boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @hidden
|
|
14
|
+
*
|
|
15
|
+
* Fits the contender number into the specified bounds.
|
|
16
|
+
* If the number is NaN or null, the minimum is returned.
|
|
17
|
+
*
|
|
18
|
+
* @param contender Represents the number you want to fit into the specified bounds.
|
|
19
|
+
* @param min The inclusive lower bound number.
|
|
20
|
+
* @param max The inclusive upper bound number.
|
|
21
|
+
*/
|
|
22
|
+
export declare const fitIntoBounds: (contender: number | undefined, min: number, max: number) => number;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @hidden
|
|
10
|
+
*
|
|
11
|
+
* Render the svg <path> element.
|
|
12
|
+
*
|
|
13
|
+
* @param points (array) Represents the points coordinates as an array of tuples.
|
|
14
|
+
* @param command (function) The command that is used (bezierCommand, lineCommand).
|
|
15
|
+
* @param point (array) [x,y] Represents the current point coordinates.
|
|
16
|
+
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
17
|
+
* @param a (array) Represents the complete array of points coordinates.
|
|
18
|
+
* @output (string) a svg path command.
|
|
19
|
+
* @output (string) a Svg <path> element
|
|
20
|
+
*/
|
|
21
|
+
export declare const svgPath: (points: number[][], command: Function) => string;
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*
|
|
25
|
+
* Returns the properties of a line.
|
|
26
|
+
*
|
|
27
|
+
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
28
|
+
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
29
|
+
* @output (object) { length: (integer), angle: (integer) }
|
|
30
|
+
*/
|
|
31
|
+
export declare const line: (pointA: number[], pointB: number[]) => {
|
|
32
|
+
length: number;
|
|
33
|
+
angle: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @hidden
|
|
37
|
+
*
|
|
38
|
+
* Create a function to calculate the position of the control point.
|
|
39
|
+
*
|
|
40
|
+
* @param lineCalc (function) Represents the line function.
|
|
41
|
+
* @param pointA (array) [x,y] Represents the start point coordinates.
|
|
42
|
+
* @param pointB (array) [x,y] Represents the end point coordinates.
|
|
43
|
+
* @output (object) { length: (integer), angle: (integer) }
|
|
44
|
+
* @output (function) closure.
|
|
45
|
+
* @param current (array) [x, y] Represents the current point coordinates.
|
|
46
|
+
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
47
|
+
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
48
|
+
* @param reverse (boolean, optional) Sets the direction.
|
|
49
|
+
* @output (array) [x, y] coordinates of a control point.
|
|
50
|
+
*/
|
|
51
|
+
export declare const controlPoint: (lineCalc: Function) => (current: number[], previous: number[], next: number[], reverse?: boolean) => number[];
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*
|
|
55
|
+
* Create a function to calculate a bezier curve command.
|
|
56
|
+
*
|
|
57
|
+
* @param controlPointCalc (function) Represents the controlPoint function.
|
|
58
|
+
* @param current (array) [x, y] Represents the current point coordinates.
|
|
59
|
+
* @param previous (array) [x, y] Represents the previous point coordinates.
|
|
60
|
+
* @param next (array) [x, y] ]Represents the next point coordinates.
|
|
61
|
+
* @param reverse (boolean, optional) Sets the direction.
|
|
62
|
+
* @output (array) [x, y] coordinates of a control point.
|
|
63
|
+
* @output (function) closure.
|
|
64
|
+
* @param point (array) [x,y] Represents the current point coordinates.
|
|
65
|
+
* @param i (integer) Represents the index of 'point' in the array 'a'.
|
|
66
|
+
* @param a (array) Represents the complete array of points coordinates.
|
|
67
|
+
* @output (string) 'C x2,y2 x1,y1 x,y' Cubic bezier command.
|
|
68
|
+
*/
|
|
69
|
+
export declare const bezierCommand: (controlPointCalc: Function) => (point: number[], i: number, a: number[]) => string;
|