@omnia/fx 8.0.103-vnext → 8.0.104-vnext

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.
Files changed (138) hide show
  1. package/internal-do-not-import-from-here/core/utils/Utils.d.ts +6 -6
  2. package/internal-do-not-import-from-here/manifests/omnia.fx.ux.manifest.json +1 -1
  3. package/internal-do-not-import-from-here/ux/admin/queryableproperties/QueryablePropertiesJourneyConstants.d.ts +4 -6
  4. package/internal-do-not-import-from-here/ux/enterpriseproperties/picker/EnterprisePropertyPicker.d.ts +17 -0
  5. package/internal-do-not-import-from-here/ux/imagetransformation/utils.d.ts +6 -6
  6. package/internal-do-not-import-from-here/ux/imagetransformer/Components/ImageRollup/ImageRollup.d.ts +1 -66
  7. package/internal-do-not-import-from-here/ux/imagetransformer/Components/ImageTransformCropper/ImageTransformCropper.d.ts +280 -44
  8. package/internal-do-not-import-from-here/ux/imagetransformer/Components/ImageTransformEditor/ImageTransformEditor.css.d.ts +2 -0
  9. package/internal-do-not-import-from-here/ux/imagetransformer/Components/ImageTransformEditor/ImageTransformEditor.d.ts +14 -14
  10. package/internal-do-not-import-from-here/ux/imagetransformer/ImageTransformer.css.d.ts +5 -0
  11. package/internal-do-not-import-from-here/ux/imagetransformer/ImageTransformer.d.ts +2 -3
  12. package/internal-do-not-import-from-here/ux/imagetransformer/ImageTransformer_older.d.ts +1 -40
  13. package/internal-do-not-import-from-here/ux/oxide/dialog/Dialog.css.d.ts +3 -4
  14. package/internal-do-not-import-from-here/ux/oxide/divider/Divider.d.ts +8 -8
  15. package/internal-do-not-import-from-here/ux/oxide/draggable/Draggable.d.ts +134 -464
  16. package/internal-do-not-import-from-here/ux/oxide/panel/Panel.css.d.ts +1 -1
  17. package/internal-do-not-import-from-here/ux/oxide/panel/Panel.d.ts +6 -5
  18. package/internal-do-not-import-from-here/ux/oxide/slider/Slider.d.ts +2 -2
  19. package/internal-do-not-import-from-here/ux/theming-v2/designkits/default/index.d.ts +1 -0
  20. package/internal-do-not-import-from-here/ux/theming-v2/{skins/default/useDefaultSkin.d.ts → designkits/default/useDefaultDesignKit.d.ts} +1 -1
  21. package/internal-do-not-import-from-here/ux/theming-v2/designkits/documentation/index.d.ts +1 -0
  22. package/internal-do-not-import-from-here/ux/theming-v2/{skins/documentation/useDocumentationSkin.d.ts → designkits/documentation/useDocumentationDesignKit.d.ts} +1 -1
  23. package/internal-do-not-import-from-here/ux/theming-v2/designkits/editor/index.d.ts +1 -0
  24. package/internal-do-not-import-from-here/ux/theming-v2/{skins/editor/useEditorSkin.d.ts → designkits/editor/useEditorDesignKit.d.ts} +1 -1
  25. package/internal-do-not-import-from-here/ux/theming-v2/designkits/index.d.ts +1 -0
  26. package/internal-do-not-import-from-here/ux/theming-v2/{skins/useSkins.d.ts → designkits/useDesignKits.d.ts} +1 -1
  27. package/internal-do-not-import-from-here/ux/theming-v2/index.d.ts +1 -1
  28. package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +9 -2
  29. package/internal-do-not-import-from-here/ux/velcron/core/stores/ReactivitySystem.d.ts +2 -2
  30. package/internal-do-not-import-from-here/ux/velcron/editor/models/VelcronDescriptors.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/action.d.ts +0 -101
  33. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/addIcon.d.ts +0 -20
  34. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/addImageObject.d.ts +0 -16
  35. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/addObject.d.ts +0 -17
  36. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/addShape.d.ts +0 -27
  37. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/addText.d.ts +0 -26
  38. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/applyFilter.d.ts +0 -20
  39. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/changeIconColor.d.ts +0 -17
  40. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/changeShape.d.ts +0 -28
  41. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/changeText.d.ts +0 -17
  42. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/changeTextStyle.d.ts +0 -25
  43. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/clearObjects.d.ts +0 -16
  44. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/flip.d.ts +0 -16
  45. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/loadImage.d.ts +0 -17
  46. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/removeFilter.d.ts +0 -17
  47. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/removeObject.d.ts +0 -16
  48. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/resizeCanvasDimension.d.ts +0 -16
  49. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/rotate.d.ts +0 -18
  50. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/setObjectPosition.d.ts +0 -21
  51. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/command/setObjectProperties.d.ts +0 -25
  52. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/cropper.d.ts +0 -118
  53. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/filter.d.ts +0 -89
  54. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/flip.d.ts +0 -70
  55. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/freeDrawing.d.ts +0 -26
  56. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/icon.d.ts +0 -51
  57. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/imageLoader.d.ts +0 -30
  58. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/line.d.ts +0 -55
  59. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/rotation.d.ts +0 -42
  60. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/shape.d.ts +0 -144
  61. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/component/text.d.ts +0 -173
  62. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/consts.d.ts +0 -243
  63. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/dependencies/tui-code-snippet.d.ts +0 -1
  64. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/drawingMode/cropper.d.ts +0 -26
  65. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/drawingMode/freeDrawing.d.ts +0 -27
  66. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/drawingMode/lineDrawing.d.ts +0 -27
  67. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/drawingMode/shape.d.ts +0 -26
  68. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/drawingMode/text.d.ts +0 -26
  69. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/arrowLine.d.ts +0 -2
  70. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/blur.d.ts +0 -8
  71. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/colorFilter.d.ts +0 -8
  72. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/cropzone.d.ts +0 -10
  73. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/emboss.d.ts +0 -8
  74. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/mask.d.ts +0 -8
  75. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/extension/sharpen.d.ts +0 -8
  76. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/factory/command.d.ts +0 -27
  77. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/factory/errorMessage.d.ts +0 -5
  78. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/graphics.d.ts +0 -569
  79. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/helper/imagetracer.d.ts +0 -56
  80. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/helper/shapeFilterFillHelper.d.ts +0 -44
  81. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/helper/shapeResizeHelper.d.ts +0 -20
  82. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/imageEditor.d.ts +0 -1003
  83. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/index.d.ts +0 -15
  84. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/interface/command.d.ts +0 -49
  85. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/interface/component.d.ts +0 -76
  86. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/interface/drawingMode.d.ts +0 -26
  87. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/interfaces.d.ts +0 -283
  88. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/invoker.d.ts +0 -91
  89. package/internal-do-not-import-from-here/ux/imagetransformer/tui-image-editor/util.d.ts +0 -154
  90. package/internal-do-not-import-from-here/ux/mediapicker/components/ImageEditor.css.d.ts +0 -16
  91. package/internal-do-not-import-from-here/ux/mediapicker/components/ImageEditor.d.ts +0 -91
  92. package/internal-do-not-import-from-here/ux/theming-v2/skins/default/index.d.ts +0 -1
  93. package/internal-do-not-import-from-here/ux/theming-v2/skins/documentation/index.d.ts +0 -1
  94. package/internal-do-not-import-from-here/ux/theming-v2/skins/editor/index.d.ts +0 -1
  95. package/internal-do-not-import-from-here/ux/theming-v2/skins/index.d.ts +0 -1
  96. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/core/Colors.d.ts +0 -0
  97. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/core/ThemeDefinitionInstance.d.ts +0 -0
  98. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/core/index.d.ts +0 -0
  99. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/DefinitionRegistrations.d.ts +0 -0
  100. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/ThemeRegistrations.d.ts +0 -0
  101. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/BannerImageTop.d.ts +0 -0
  102. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/RollupAvatar.d.ts +0 -0
  103. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/RollupImageLarge.d.ts +0 -0
  104. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/RollupImageSmall.d.ts +0 -0
  105. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/RollupImageTop.d.ts +0 -0
  106. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/RollupImageTopAvatar.d.ts +0 -0
  107. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/cards/index.d.ts +0 -0
  108. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/content/Contentblocks.d.ts +0 -0
  109. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/content/Image.d.ts +0 -0
  110. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/content/ImageText.d.ts +0 -0
  111. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/content/Quote.d.ts +0 -0
  112. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/content/Text.d.ts +0 -0
  113. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/content/index.d.ts +0 -0
  114. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/headers/BlockTextIcon.d.ts +0 -0
  115. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/headers/Pageheader.d.ts +0 -0
  116. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/headers/index.d.ts +0 -0
  117. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/definitions/index.d.ts +0 -0
  118. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/themes/Blueprints.d.ts +0 -0
  119. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/themes/SpacingTypes.d.ts +0 -0
  120. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/themes/ThemeDefinitions.d.ts +0 -0
  121. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/themes/TypographyTypes.d.ts +0 -0
  122. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/default/themes/index.d.ts +0 -0
  123. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/documentation/ApiRegistrations.d.ts +0 -0
  124. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/documentation/themes/Blueprints.d.ts +0 -0
  125. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/documentation/themes/SpacingTypes.d.ts +0 -0
  126. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/documentation/themes/ThemeDefinitions.d.ts +0 -0
  127. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/documentation/themes/TypographyTypes.d.ts +0 -0
  128. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/documentation/themes/index.d.ts +0 -0
  129. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/editor/ThemeRegistrations.d.ts +0 -0
  130. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/editor/themes/Blueprints.d.ts +0 -0
  131. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/editor/themes/SpacingTypes.d.ts +0 -0
  132. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/editor/themes/ThemeDefinitions.d.ts +0 -0
  133. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/editor/themes/TypographyTypes.d.ts +0 -0
  134. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/editor/themes/index.d.ts +0 -0
  135. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/pages/DefinitionRegistrations.d.ts +0 -0
  136. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/pages/definitions/headers/HeaderWithImage.d.ts +0 -0
  137. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/pages/definitions/property/PropertiesWithColumLayout.d.ts +0 -0
  138. /package/internal-do-not-import-from-here/ux/theming-v2/{skins → designkits}/pages/definitions/property/PropertiesWithRowLayout.d.ts +0 -0
@@ -1,21 +0,0 @@
1
- declare const command: {
2
- name: string;
3
- /**
4
- * Set object properties
5
- * @param {Graphics} graphics - Graphics instance
6
- * @param {number} id - object id
7
- * @param {Object} posInfo - position object
8
- * @param {number} posInfo.x - x position
9
- * @param {number} posInfo.y - y position
10
- * @param {string} posInfo.originX - can be 'left', 'center', 'right'
11
- * @param {string} posInfo.originY - can be 'top', 'center', 'bottom'
12
- * @returns {Promise}
13
- */
14
- execute(graphics: any, id: any, posInfo: any): Promise<void>;
15
- /**
16
- * @param {Graphics} graphics - Graphics instance
17
- * @returns {Promise}
18
- */
19
- undo(graphics: any): Promise<void>;
20
- };
21
- export default command;
@@ -1,25 +0,0 @@
1
- declare const command: {
2
- name: string;
3
- /**
4
- * Set object properties
5
- * @param {Graphics} graphics - Graphics instance
6
- * @param {number} id - object id
7
- * @param {Object} props - properties
8
- * @param {string} [props.fill] Color
9
- * @param {string} [props.fontFamily] Font type for text
10
- * @param {number} [props.fontSize] Size
11
- * @param {string} [props.fontStyle] Type of inclination (normal / italic)
12
- * @param {string} [props.fontWeight] Type of thicker or thinner looking (normal / bold)
13
- * @param {string} [props.textAlign] Type of text align (left / center / right)
14
- * @param {string} [props.textDecoration] Type of line (underline / line-through / overline)
15
- * @returns {Promise}
16
- */
17
- execute(graphics: any, id: any, props: any): Promise<void>;
18
- /**
19
- * @param {Graphics} graphics - Graphics instance
20
- * @param {number} id - object id
21
- * @returns {Promise}
22
- */
23
- undo(graphics: any, id: any): Promise<void>;
24
- };
25
- export default command;
@@ -1,118 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Cropper components
4
- * @param {Graphics} graphics - Graphics instance
5
- * @extends {Component}
6
- * @class Cropper
7
- * @ignore
8
- */
9
- declare class Cropper extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Start cropping
13
- */
14
- start(): void;
15
- /**
16
- * End cropping
17
- */
18
- end(): void;
19
- /**
20
- * Change cropzone visible
21
- * @param {boolean} visible - cropzone visible state
22
- */
23
- changeVisibility(visible: any): void;
24
- /**
25
- * onMousedown handler in fabric canvas
26
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event
27
- * @private
28
- */
29
- _onFabricMouseDown(fEvent: any): void;
30
- /**
31
- * onMousemove handler in fabric canvas
32
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event
33
- * @private
34
- */
35
- _onFabricMouseMove(fEvent: any): void;
36
- /**
37
- * Get rect dimension setting from Canvas-Mouse-Position(x, y)
38
- * @param {number} x - Canvas-Mouse-Position x
39
- * @param {number} y - Canvas-Mouse-Position Y
40
- * @returns {{left: number, top: number, width: number, height: number}}
41
- * @private
42
- */
43
- _calcRectDimensionFromPoint(x: any, y: any): {
44
- left: number;
45
- top: number;
46
- width: number;
47
- height: number;
48
- };
49
- /**
50
- * onMouseup handler in fabric canvas
51
- * @private
52
- */
53
- _onFabricMouseUp(): void;
54
- /**
55
- * Get cropped image data
56
- * @param {Object} cropRect cropzone rect
57
- * @param {Number} cropRect.left left position
58
- * @param {Number} cropRect.top top position
59
- * @param {Number} cropRect.width width
60
- * @param {Number} cropRect.height height
61
- * @returns {?{imageName: string, url: string}} cropped Image data
62
- */
63
- getCroppedImageData(cropRect: any): {
64
- imageName: any;
65
- url: any;
66
- };
67
- /**
68
- * Get cropped rect
69
- * @returns {Object} rect
70
- */
71
- getCropzoneRect(): {
72
- left: any;
73
- top: any;
74
- width: any;
75
- height: any;
76
- };
77
- /**
78
- * Set a cropzone square
79
- * @param {number} [presetRatio] - preset ratio
80
- */
81
- setCropzoneRect(presetRatio: any): void;
82
- /**
83
- * Restore cropped rect
84
- * @param {Object} cropRect cropzone rect
85
- * @param {Number} presetRatio
86
- * @param {Number} cropRect.left left position
87
- * @param {Number} cropRect.top top position
88
- * @param {Number} cropRect.width width
89
- * @param {Number} cropRect.height height
90
- */
91
- restoreCropzoneRect(presetRatio: any, cropRect: any): void;
92
- /**
93
- * get a cropzone square info
94
- * @param {number} presetRatio - preset ratio
95
- * @returns {{presetRatio: number, left: number, top: number, width: number, height: number}}
96
- * @private
97
- */
98
- _getPresetPropertiesForCropSize(presetRatio: any): {
99
- presetRatio: any;
100
- top: number;
101
- left: number;
102
- width: number;
103
- height: any;
104
- };
105
- /**
106
- * Keydown event handler
107
- * @param {KeyboardEvent} e - Event object
108
- * @private
109
- */
110
- _onKeyDown(e: any): void;
111
- /**
112
- * Keyup event handler
113
- * @param {KeyboardEvent} e - Event object
114
- * @private
115
- */
116
- _onKeyUp(e: any): void;
117
- }
118
- export default Cropper;
@@ -1,89 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Filter
4
- * @class Filter
5
- * @param {Graphics} graphics - Graphics instance
6
- * @extends {Component}
7
- * @ignore
8
- */
9
- declare class Filter extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Add filter to source image (a specific filter is added on fabric.js)
13
- * @param {string} type - Filter type
14
- * @param {Object} [options] - Options of filter
15
- * @returns {Promise}
16
- */
17
- add(type: any, options: any): Promise<unknown>;
18
- /**
19
- * Remove filter to source image
20
- * @param {string} type - Filter type
21
- * @returns {Promise}
22
- */
23
- remove(type: any): Promise<unknown>;
24
- /**
25
- * Whether this has the filter or not
26
- * @param {string} type - Filter type
27
- * @returns {boolean} true if it has the filter
28
- */
29
- hasFilter(type: any): boolean;
30
- /**
31
- * Get a filter options
32
- * @param {string} type - Filter type
33
- * @returns {Object} filter options or null if there is no that filter
34
- */
35
- getOptions(type: any): any;
36
- /**
37
- * Change filter values
38
- * @param {Object} imgFilter object of filter
39
- * @param {Object} options object
40
- * @private
41
- */
42
- _changeFilterValues(imgFilter: any, options: any): void;
43
- /**
44
- * Apply filter
45
- * @param {fabric.Image} sourceImg - Source image to apply filter
46
- * @param {function} callback - Executed function after applying filter
47
- * @private
48
- */
49
- _apply(sourceImg: any, callback: any): void;
50
- /**
51
- * Get source image on canvas
52
- * @returns {fabric.Image} Current source image on canvas
53
- * @private
54
- */
55
- _getSourceImage(): any;
56
- /**
57
- * Create filter instance
58
- * @param {fabric.Image} sourceImg - Source image to apply filter
59
- * @param {string} type - Filter type
60
- * @param {Object} [options] - Options of filter
61
- * @returns {Object} Fabric object of filter
62
- * @private
63
- */
64
- _createFilter(sourceImg: any, type: any, options: any): any;
65
- /**
66
- * Get applied filter instance
67
- * @param {fabric.Image} sourceImg - Source image to apply filter
68
- * @param {string} type - Filter type
69
- * @returns {Object} Fabric object of filter
70
- * @private
71
- */
72
- _getFilter(sourceImg: any, type: any): any;
73
- /**
74
- * Remove applied filter instance
75
- * @param {fabric.Image} sourceImg - Source image to apply filter
76
- * @param {string} type - Filter type
77
- * @private
78
- */
79
- _removeFilter(sourceImg: any, type: any): void;
80
- /**
81
- * Change filter class name to fabric's, especially capitalizing first letter
82
- * @param {string} type - Filter type
83
- * @example
84
- * 'grayscale' -> 'Grayscale'
85
- * @returns {string} Fabric filter class name
86
- */
87
- _getFabricFilterType(type: any): any;
88
- }
89
- export default Filter;
@@ -1,70 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Flip
4
- * @class Flip
5
- * @param {Graphics} graphics - Graphics instance
6
- * @extends {Component}
7
- * @ignore
8
- */
9
- declare class Flip extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Get current flip settings
13
- * @returns {{flipX: Boolean, flipY: Boolean}}
14
- */
15
- getCurrentSetting(): {
16
- flipX: any;
17
- flipY: any;
18
- };
19
- /**
20
- * Set flipX, flipY
21
- * @param {{flipX: Boolean, flipY: Boolean}} newSetting - Flip setting
22
- * @returns {Promise}
23
- */
24
- set(newSetting: any): Promise<{
25
- flipX: any;
26
- flipY: any;
27
- angle: any;
28
- }>;
29
- /**
30
- * Invert image angle for flip
31
- * @param {boolean} isChangingFlipX - Change flipX
32
- * @param {boolean} isChangingFlipY - Change flipY
33
- */
34
- _invertAngle(isChangingFlipX: any, isChangingFlipY: any): void;
35
- /**
36
- * Flip objects
37
- * @param {boolean} isChangingFlipX - Change flipX
38
- * @param {boolean} isChangingFlipY - Change flipY
39
- * @private
40
- */
41
- _flipObjects(isChangingFlipX: any, isChangingFlipY: any): void;
42
- /**
43
- * Reset flip settings
44
- * @returns {Promise}
45
- */
46
- reset(): Promise<{
47
- flipX: any;
48
- flipY: any;
49
- angle: any;
50
- }>;
51
- /**
52
- * Flip x
53
- * @returns {Promise}
54
- */
55
- flipX(): Promise<{
56
- flipX: any;
57
- flipY: any;
58
- angle: any;
59
- }>;
60
- /**
61
- * Flip y
62
- * @returns {Promise}
63
- */
64
- flipY(): Promise<{
65
- flipX: any;
66
- flipY: any;
67
- angle: any;
68
- }>;
69
- }
70
- export default Flip;
@@ -1,26 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * FreeDrawing
4
- * @class FreeDrawing
5
- * @param {Graphics} graphics - Graphics instance
6
- * @extends {Component}
7
- * @ignore
8
- */
9
- declare class FreeDrawing extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Start free drawing mode
13
- * @param {{width: ?number, color: ?string}} [setting] - Brush width & color
14
- */
15
- start(setting: any): void;
16
- /**
17
- * Set brush
18
- * @param {{width: ?number, color: ?string}} [setting] - Brush width & color
19
- */
20
- setBrush(setting: any): void;
21
- /**
22
- * End free drawing mode
23
- */
24
- end(): void;
25
- }
26
- export default FreeDrawing;
@@ -1,51 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Icon
4
- * @class Icon
5
- * @param {Graphics} graphics - Graphics instance
6
- * @extends {Component}
7
- * @ignore
8
- */
9
- declare class Icon extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Add icon
13
- * @param {string} type - Icon type
14
- * @param {Object} options - Icon options
15
- * @param {string} [options.fill] - Icon foreground color
16
- * @param {string} [options.left] - Icon x position
17
- * @param {string} [options.top] - Icon y position
18
- * @returns {Promise}
19
- */
20
- add(type: any, options: any): Promise<unknown>;
21
- /**
22
- * Added icon drag event
23
- * @param {fabric.Canvas} canvas - Canvas instance
24
- * @private
25
- */
26
- _addWithDragEvent(canvas: any): void;
27
- /**
28
- * Register icon paths
29
- * @param {{key: string, value: string}} pathInfos - Path infos
30
- */
31
- registerPaths(pathInfos: any): void;
32
- /**
33
- * Set icon object color
34
- * @param {string} color - Color to set
35
- * @param {fabric.Path}[obj] - Current activated path object
36
- */
37
- setColor(color: any, obj: any): void;
38
- /**
39
- * Get icon color
40
- * @param {fabric.Path}[obj] - Current activated path object
41
- * @returns {string} color
42
- */
43
- getColor(obj: any): any;
44
- /**
45
- * Create icon object
46
- * @param {string} path - Path value to create icon
47
- * @returns {fabric.Path} Path object
48
- */
49
- _createIcon(path: any): any;
50
- }
51
- export default Icon;
@@ -1,30 +0,0 @@
1
- /**
2
- * @author NHN Ent. FE Development Team <dl_javascript@nhn.com>
3
- * @fileoverview Image loader
4
- */
5
- import Component from "../interface/component";
6
- /**
7
- * ImageLoader components
8
- * @extends {Component}
9
- * @class ImageLoader
10
- * @param {Graphics} graphics - Graphics instance
11
- * @ignore
12
- */
13
- declare class ImageLoader extends Component {
14
- constructor(graphics: any);
15
- /**
16
- * Load image from url
17
- * @param {?string} imageName - File name
18
- * @param {?(fabric.Image|string)} img - fabric.Image instance or URL of an image
19
- * @returns {Promise}
20
- */
21
- load(imageName: any, img: any): any;
22
- /**
23
- * Set background image
24
- * @param {?(fabric.Image|String)} img fabric.Image instance or URL of an image to set background to
25
- * @returns {Promise}
26
- * @private
27
- */
28
- _setBackgroundImage(img: any): Promise<unknown>;
29
- }
30
- export default ImageLoader;
@@ -1,55 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Line
4
- * @class Line
5
- * @param {Graphics} graphics - Graphics instance
6
- * @extends {Component}
7
- * @ignore
8
- */
9
- declare class Line extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Start drawing line mode
13
- * @param {{width: ?number, color: ?string}} [setting] - Brush width & color
14
- */
15
- setHeadOption(setting: any): void;
16
- /**
17
- * Start drawing line mode
18
- * @param {{width: ?number, color: ?string}} [setting] - Brush width & color
19
- */
20
- start(setting?: {}): void;
21
- /**
22
- * Set brush
23
- * @param {{width: ?number, color: ?string}} [setting] - Brush width & color
24
- */
25
- setBrush(setting: any): void;
26
- /**
27
- * End drawing line mode
28
- */
29
- end(): void;
30
- /**
31
- * Mousedown event handler in fabric canvas
32
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event object
33
- * @private
34
- */
35
- _onFabricMouseDown(fEvent: any): void;
36
- /**
37
- * Mousemove event handler in fabric canvas
38
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event object
39
- * @private
40
- */
41
- _onFabricMouseMove(fEvent: any): void;
42
- /**
43
- * Mouseup event handler in fabric canvas
44
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event object
45
- * @private
46
- */
47
- _onFabricMouseUp(): void;
48
- /**
49
- * create line event object properties
50
- * @returns {Object} properties line object
51
- * @private
52
- */
53
- _createLineEventObjectProperties(): any;
54
- }
55
- export default Line;
@@ -1,42 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Image Rotation component
4
- * @class Rotation
5
- * @extends {Component}
6
- * @param {Graphics} graphics - Graphics instance
7
- * @ignore
8
- */
9
- declare class Rotation extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Get current angle
13
- * @returns {Number}
14
- */
15
- getCurrentAngle(): any;
16
- /**
17
- * Set angle of the image
18
- *
19
- * Do not call "this.setImageProperties" for setting angle directly.
20
- * Before setting angle, The originX,Y of image should be set to center.
21
- * See "http://fabricjs.com/docs/fabric.Object.html#setAngle"
22
- *
23
- * @param {number} angle - Angle value
24
- * @returns {Promise}
25
- */
26
- setAngle(angle: any): Promise<any>;
27
- /**
28
- * Rotate for each object
29
- * @param {fabric.Point} oldImageCenter - Image center point before rotation
30
- * @param {fabric.Point} newImageCenter - Image center point after rotation
31
- * @param {number} angleDiff - Image angle difference after rotation
32
- * @private
33
- */
34
- _rotateForEachObject(oldImageCenter: any, newImageCenter: any, angleDiff: any): void;
35
- /**
36
- * Rotate the image
37
- * @param {number} additionalAngle - Additional angle
38
- * @returns {Promise}
39
- */
40
- rotate(additionalAngle: any): Promise<any>;
41
- }
42
- export default Rotation;
@@ -1,144 +0,0 @@
1
- import Component from "../interface/component";
2
- /**
3
- * Shape
4
- * @class Shape
5
- * @param {Graphics} graphics - Graphics instance
6
- * @extends {Component}
7
- * @ignore
8
- */
9
- export default class Shape extends Component {
10
- constructor(graphics: any);
11
- /**
12
- * Start to draw the shape on canvas
13
- * @ignore
14
- */
15
- start(): void;
16
- /**
17
- * End to draw the shape on canvas
18
- * @ignore
19
- */
20
- end(): void;
21
- /**
22
- * Set states of the current drawing shape
23
- * @ignore
24
- * @param {string} type - Shape type (ex: 'rect', 'circle')
25
- * @param {Object} [options] - Shape options
26
- * @param {(ShapeFillOption | string)} [options.fill] - {@link ShapeFillOption} or
27
- * Shape foreground color (ex: '#fff', 'transparent')
28
- * @param {string} [options.stoke] - Shape outline color
29
- * @param {number} [options.strokeWidth] - Shape outline width
30
- * @param {number} [options.width] - Width value (When type option is 'rect', this options can use)
31
- * @param {number} [options.height] - Height value (When type option is 'rect', this options can use)
32
- * @param {number} [options.rx] - Radius x value (When type option is 'circle', this options can use)
33
- * @param {number} [options.ry] - Radius y value (When type option is 'circle', this options can use)
34
- */
35
- setStates(type: any, options: any): void;
36
- /**
37
- * Add the shape
38
- * @ignore
39
- * @param {string} type - Shape type (ex: 'rect', 'circle')
40
- * @param {Object} options - Shape options
41
- * @param {(ShapeFillOption | string)} [options.fill] - ShapeFillOption or Shape foreground color (ex: '#fff', 'transparent') or ShapeFillOption object
42
- * @param {string} [options.stroke] - Shape outline color
43
- * @param {number} [options.strokeWidth] - Shape outline width
44
- * @param {number} [options.width] - Width value (When type option is 'rect', this options can use)
45
- * @param {number} [options.height] - Height value (When type option is 'rect', this options can use)
46
- * @param {number} [options.rx] - Radius x value (When type option is 'circle', this options can use)
47
- * @param {number} [options.ry] - Radius y value (When type option is 'circle', this options can use)
48
- * @param {number} [options.isRegular] - Whether scaling shape has 1:1 ratio or not
49
- * @returns {Promise}
50
- */
51
- add(type: any, options: any): Promise<unknown>;
52
- /**
53
- * Change the shape
54
- * @ignore
55
- * @param {fabric.Object} shapeObj - Selected shape object on canvas
56
- * @param {Object} options - Shape options
57
- * @param {(ShapeFillOption | string)} [options.fill] - {@link ShapeFillOption} or
58
- * Shape foreground color (ex: '#fff', 'transparent')
59
- * @param {string} [options.stroke] - Shape outline color
60
- * @param {number} [options.strokeWidth] - Shape outline width
61
- * @param {number} [options.width] - Width value (When type option is 'rect', this options can use)
62
- * @param {number} [options.height] - Height value (When type option is 'rect', this options can use)
63
- * @param {number} [options.rx] - Radius x value (When type option is 'circle', this options can use)
64
- * @param {number} [options.ry] - Radius y value (When type option is 'circle', this options can use)
65
- * @param {number} [options.isRegular] - Whether scaling shape has 1:1 ratio or not
66
- * @returns {Promise}
67
- */
68
- change(shapeObj: any, options: any): Promise<void>;
69
- /**
70
- * make fill property for user event
71
- * @param {fabric.Object} shapeObj - fabric object
72
- * @returns {Object}
73
- */
74
- makeFillPropertyForUserEvent(shapeObj: any): {};
75
- /**
76
- * Copy object handling.
77
- * @param {fabric.Object} shapeObj - Shape object
78
- * @param {fabric.Object} originalShapeObj - Shape object
79
- */
80
- processForCopiedObject(shapeObj: any, originalShapeObj: any): void;
81
- /**
82
- * Create the instance of shape
83
- * @param {string} type - Shape type
84
- * @param {Object} options - Options to creat the shape
85
- * @returns {fabric.Object} Shape instance
86
- * @private
87
- */
88
- _createInstance(type: any, options: any): any;
89
- /**
90
- * Get the options to create the shape
91
- * @param {Object} options - Options to creat the shape
92
- * @returns {Object} Shape options
93
- * @private
94
- */
95
- _extendOptions(options: any): any;
96
- /**
97
- * Bind fabric events on the creating shape object
98
- * @param {fabric.Object} shapeObj - Shape object
99
- * @private
100
- */
101
- _bindEventOnShape(shapeObj: any): void;
102
- /**
103
- * MouseDown event handler on canvas
104
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event object
105
- * @private
106
- */
107
- _onFabricMouseDown(fEvent: any): void;
108
- /**
109
- * MouseDown event handler on canvas
110
- * @param {{target: fabric.Object, e: MouseEvent}} fEvent - Fabric event object
111
- * @private
112
- */
113
- _onFabricMouseMove(fEvent: any): void;
114
- /**
115
- * MouseUp event handler on canvas
116
- * @private
117
- */
118
- _onFabricMouseUp(): void;
119
- /**
120
- * Keydown event handler on document
121
- * @param {KeyboardEvent} e - Event object
122
- * @private
123
- */
124
- _onKeyDown(e: any): void;
125
- /**
126
- * Keyup event handler on document
127
- * @param {KeyboardEvent} e - Event object
128
- * @private
129
- */
130
- _onKeyUp(e: any): void;
131
- /**
132
- * Reset shape position and internal proportions in the filter type fill area.
133
- * @param {fabric.Object} shapeObj - Shape object
134
- * @private
135
- */
136
- _resetPositionFillFilter(shapeObj: any): void;
137
- /**
138
- * Reset filter area position within group selection.
139
- * @param {fabric.Object} shapeObj - Shape object
140
- * @param {fabric.ActiveSelection} activeSelection - Shape object
141
- * @private
142
- */
143
- _fillFilterRePositionInGroupSelection(shapeObj: any, activeSelection: any): void;
144
- }