apexify.js 4.8.2 → 4.8.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.
Files changed (128) hide show
  1. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  2. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  3. package/lib/ai/ApexAI.ts +4 -4
  4. package/lib/ai/ApexModules.ts +8 -8
  5. package/lib/ai/modals/electronHub/chatmodels.ts +1 -1
  6. package/lib/ai/modals/electronHub/imageModels.ts +2 -2
  7. package/lib/ai/modals/electronHub/speechModels.ts +1 -1
  8. package/lib/ai/utils.ts +3 -3
  9. package/lib/canvas/ApexPainter.ts +1 -1
  10. package/lib/canvas/utils/Background/bg.ts +1 -1
  11. package/lib/canvas/utils/Charts/charts.ts +1 -1
  12. package/lib/canvas/utils/Custom/customLines.ts +2 -2
  13. package/lib/canvas/utils/General/general functions.ts +1 -1
  14. package/lib/canvas/utils/Image/imageProperties.ts +1 -1
  15. package/lib/canvas/utils/Texts/textProperties.ts +1 -1
  16. package/lib/canvas/utils/utils.ts +8 -8
  17. package/lib/index.ts +5 -5
  18. package/lib/utils.ts +3 -3
  19. package/package.json +5 -5
  20. package/dist/cjs/ai/ApexAI.d.ts +0 -144
  21. package/dist/cjs/ai/ApexAI.js +0 -486
  22. package/dist/cjs/ai/ApexModules.d.ts +0 -52
  23. package/dist/cjs/ai/ApexModules.js +0 -811
  24. package/dist/cjs/ai/functions/readFiles.d.ts +0 -1
  25. package/dist/cjs/ai/functions/readFiles.js +0 -56
  26. package/dist/cjs/ai/functions/tokenizer.d.ts +0 -9
  27. package/dist/cjs/ai/functions/tokenizer.js +0 -60
  28. package/dist/cjs/ai/functions/validOptions.d.ts +0 -21
  29. package/dist/cjs/ai/functions/validOptions.js +0 -93
  30. package/dist/cjs/ai/modals/electronHub/chatmodels.d.ts +0 -6
  31. package/dist/cjs/ai/modals/electronHub/chatmodels.js +0 -44
  32. package/dist/cjs/ai/modals/electronHub/imageModels.d.ts +0 -11
  33. package/dist/cjs/ai/modals/electronHub/imageModels.js +0 -85
  34. package/dist/cjs/ai/modals/electronHub/songModels.d.ts +0 -1
  35. package/dist/cjs/ai/modals/electronHub/songModels.js +0 -1
  36. package/dist/cjs/ai/modals/electronHub/speechModels.d.ts +0 -6
  37. package/dist/cjs/ai/modals/electronHub/speechModels.js +0 -56
  38. package/dist/cjs/ai/modals/electronHub/videoModels.d.ts +0 -5
  39. package/dist/cjs/ai/modals/electronHub/videoModels.js +0 -56
  40. package/dist/cjs/ai/modals/groq/chatgroq.d.ts +0 -8
  41. package/dist/cjs/ai/modals/groq/chatgroq.js +0 -57
  42. package/dist/cjs/ai/modals/groq/imageAnalyzer.d.ts +0 -7
  43. package/dist/cjs/ai/modals/groq/imageAnalyzer.js +0 -75
  44. package/dist/cjs/ai/modals/groq/whisper.d.ts +0 -4
  45. package/dist/cjs/ai/modals/groq/whisper.js +0 -101
  46. package/dist/cjs/ai/modals/hercai/chatModels.d.ts +0 -6
  47. package/dist/cjs/ai/modals/hercai/chatModels.js +0 -19
  48. package/dist/cjs/ai/utils.d.ts +0 -4
  49. package/dist/cjs/ai/utils.js +0 -4
  50. package/dist/cjs/canvas/ApexPainter.d.ts +0 -144
  51. package/dist/cjs/canvas/ApexPainter.js +0 -900
  52. package/dist/cjs/canvas/utils/Background/bg.d.ts +0 -30
  53. package/dist/cjs/canvas/utils/Background/bg.js +0 -151
  54. package/dist/cjs/canvas/utils/Charts/charts.d.ts +0 -7
  55. package/dist/cjs/canvas/utils/Charts/charts.js +0 -455
  56. package/dist/cjs/canvas/utils/Custom/customLines.d.ts +0 -2
  57. package/dist/cjs/canvas/utils/Custom/customLines.js +0 -105
  58. package/dist/cjs/canvas/utils/General/conversion.d.ts +0 -5
  59. package/dist/cjs/canvas/utils/General/conversion.js +0 -26
  60. package/dist/cjs/canvas/utils/General/general functions.d.ts +0 -38
  61. package/dist/cjs/canvas/utils/General/general functions.js +0 -590
  62. package/dist/cjs/canvas/utils/Image/imageProperties.d.ts +0 -114
  63. package/dist/cjs/canvas/utils/Image/imageProperties.js +0 -590
  64. package/dist/cjs/canvas/utils/Texts/textProperties.d.ts +0 -16
  65. package/dist/cjs/canvas/utils/Texts/textProperties.js +0 -154
  66. package/dist/cjs/canvas/utils/types.d.ts +0 -621
  67. package/dist/cjs/canvas/utils/types.js +0 -5
  68. package/dist/cjs/canvas/utils/utils.d.ts +0 -18
  69. package/dist/cjs/canvas/utils/utils.js +0 -17
  70. package/dist/cjs/index.d.ts +0 -28
  71. package/dist/cjs/index.js +0 -67
  72. package/dist/cjs/utils.d.ts +0 -4
  73. package/dist/cjs/utils.js +0 -4
  74. package/dist/esm/ai/ApexAI.d.ts +0 -144
  75. package/dist/esm/ai/ApexAI.js +0 -486
  76. package/dist/esm/ai/ApexModules.d.ts +0 -52
  77. package/dist/esm/ai/ApexModules.js +0 -811
  78. package/dist/esm/ai/functions/readFiles.d.ts +0 -1
  79. package/dist/esm/ai/functions/readFiles.js +0 -56
  80. package/dist/esm/ai/functions/tokenizer.d.ts +0 -9
  81. package/dist/esm/ai/functions/tokenizer.js +0 -60
  82. package/dist/esm/ai/functions/validOptions.d.ts +0 -21
  83. package/dist/esm/ai/functions/validOptions.js +0 -93
  84. package/dist/esm/ai/modals/electronHub/chatmodels.d.ts +0 -6
  85. package/dist/esm/ai/modals/electronHub/chatmodels.js +0 -44
  86. package/dist/esm/ai/modals/electronHub/imageModels.d.ts +0 -11
  87. package/dist/esm/ai/modals/electronHub/imageModels.js +0 -85
  88. package/dist/esm/ai/modals/electronHub/songModels.d.ts +0 -1
  89. package/dist/esm/ai/modals/electronHub/songModels.js +0 -1
  90. package/dist/esm/ai/modals/electronHub/speechModels.d.ts +0 -6
  91. package/dist/esm/ai/modals/electronHub/speechModels.js +0 -56
  92. package/dist/esm/ai/modals/electronHub/videoModels.d.ts +0 -5
  93. package/dist/esm/ai/modals/electronHub/videoModels.js +0 -56
  94. package/dist/esm/ai/modals/groq/chatgroq.d.ts +0 -8
  95. package/dist/esm/ai/modals/groq/chatgroq.js +0 -57
  96. package/dist/esm/ai/modals/groq/imageAnalyzer.d.ts +0 -7
  97. package/dist/esm/ai/modals/groq/imageAnalyzer.js +0 -75
  98. package/dist/esm/ai/modals/groq/whisper.d.ts +0 -4
  99. package/dist/esm/ai/modals/groq/whisper.js +0 -101
  100. package/dist/esm/ai/modals/hercai/chatModels.d.ts +0 -6
  101. package/dist/esm/ai/modals/hercai/chatModels.js +0 -19
  102. package/dist/esm/ai/utils.d.ts +0 -4
  103. package/dist/esm/ai/utils.js +0 -4
  104. package/dist/esm/canvas/ApexPainter.d.ts +0 -144
  105. package/dist/esm/canvas/ApexPainter.js +0 -900
  106. package/dist/esm/canvas/utils/Background/bg.d.ts +0 -30
  107. package/dist/esm/canvas/utils/Background/bg.js +0 -151
  108. package/dist/esm/canvas/utils/Charts/charts.d.ts +0 -7
  109. package/dist/esm/canvas/utils/Charts/charts.js +0 -455
  110. package/dist/esm/canvas/utils/Custom/customLines.d.ts +0 -2
  111. package/dist/esm/canvas/utils/Custom/customLines.js +0 -105
  112. package/dist/esm/canvas/utils/General/conversion.d.ts +0 -5
  113. package/dist/esm/canvas/utils/General/conversion.js +0 -26
  114. package/dist/esm/canvas/utils/General/general functions.d.ts +0 -38
  115. package/dist/esm/canvas/utils/General/general functions.js +0 -590
  116. package/dist/esm/canvas/utils/Image/imageProperties.d.ts +0 -114
  117. package/dist/esm/canvas/utils/Image/imageProperties.js +0 -590
  118. package/dist/esm/canvas/utils/Texts/textProperties.d.ts +0 -16
  119. package/dist/esm/canvas/utils/Texts/textProperties.js +0 -154
  120. package/dist/esm/canvas/utils/types.d.ts +0 -621
  121. package/dist/esm/canvas/utils/types.js +0 -5
  122. package/dist/esm/canvas/utils/utils.d.ts +0 -18
  123. package/dist/esm/canvas/utils/utils.js +0 -17
  124. package/dist/esm/index.d.ts +0 -28
  125. package/dist/esm/index.js +0 -67
  126. package/dist/esm/utils.d.ts +0 -4
  127. package/dist/esm/utils.js +0 -4
  128. package/lib/ai/modals/electronHub/songModels.ts +0 -0
@@ -1,114 +0,0 @@
1
- import { Image, SKRSContext2D } from "@napi-rs/canvas";
2
- import { ImageProperties } from "../utils.js";
3
- /**
4
- * Applies shadow to the canvas context.
5
- * @param ctx The canvas rendering context.
6
- * @param shadow The shadow properties.
7
- * @param x The x-coordinate of the shape.
8
- * @param y The y-coordinate of the shape.
9
- * @param width The width of the shape.
10
- * @param height The height of the shape.
11
- */
12
- export declare function applyShadow(ctx: SKRSContext2D, shadow: ImageProperties['shadow'], x: number, y: number, width: number, height: number): void;
13
- /**
14
- * Applies zoom (scaling) to the canvas context around a specified point.
15
- * @param ctx The canvas rendering context.
16
- * @param zoom An object with scale (zoom factor) and the x/y coordinates that act as the zoom origin.
17
- */
18
- export declare function applyZoom(ctx: SKRSContext2D, zoom?: {
19
- scale?: number;
20
- x?: number;
21
- y?: number;
22
- }): void;
23
- /**
24
- * Applies stroke to the canvas context with support for selective side strokes.
25
- * Supports optional blur effect on the stroke.
26
- *
27
- * @param ctx The canvas rendering context.
28
- * @param stroke The stroke properties.
29
- * @param x The x-coordinate of the shape.
30
- * @param y The y-coordinate of the shape.
31
- * @param width The width of the shape.
32
- * @param height The height of the shape.
33
- * @param blur Optional blur effect on the stroke.
34
- */
35
- export declare function applyStroke(ctx: SKRSContext2D, stroke: ImageProperties["stroke"], x: number, y: number, width: number, height: number, shapeName?: string): void;
36
- export declare function drawShape(ctx: SKRSContext2D, shapeSettings: any): void;
37
- export declare function createGradient(ctx: any, gradientOptions: any, startX: number, startY: number, endX: number, endY: number): any;
38
- /**
39
- * Applies rotation to the canvas context.
40
- * @param ctx The canvas rendering context.
41
- * @param rotation The rotation angle in degrees.
42
- * @param x The x-coordinate of the center of rotation.
43
- * @param y The y-coordinate of the center of rotation.
44
- * @param width The width of the shape.
45
- * @param height The height of the shape.
46
- */
47
- export declare function applyRotation(ctx: SKRSContext2D, rotation: number, x: number, y: number, width: number, height: number): void;
48
- /**
49
- * Applies border radius to the canvas context with selective corner support.
50
- *
51
- * @param ctx The canvas rendering context.
52
- * @param image The image to be drawn (will be drawn after clipping).
53
- * @param x The x-coordinate of the shape.
54
- * @param y The y-coordinate of the shape.
55
- * @param width The width of the shape.
56
- * @param height The height of the shape.
57
- * @param borderRadius The border radius value (number or "circular").
58
- * @param borderPosition The sides or corners to round.
59
- * Valid values include:
60
- * - "all"
61
- * - "top", "bottom", "left", "right"
62
- * - "top-left", "top-right", "bottom-left", "bottom-right"
63
- * - Or a comma‑separated list (e.g., "top, left, bottom")
64
- */
65
- export declare function imageRadius(ctx: SKRSContext2D, image: any, x: number, y: number, width: number, height: number, borderRadius: number | "circular", borderPosition?: string): void;
66
- /**
67
- * Creates a rounded rectangle (or circular) path on the canvas context.
68
- *
69
- * @param ctx The canvas rendering context.
70
- * @param x The x-coordinate of the rectangle.
71
- * @param y The y-coordinate of the rectangle.
72
- * @param width The width of the rectangle.
73
- * @param height The height of the rectangle.
74
- * @param borderRadius The radius for rounding. Use a number (or string "circular" for a circle).
75
- * @param borderPosition Which sides/corners to round. Valid values include:
76
- * - "all" (default)
77
- * - "top", "bottom", "left", "right"
78
- * - "top-left", "top-right", "bottom-left", "bottom-right"
79
- * - Or a comma-separated list, e.g. "top-left, bottom-right" or "top, left, bottom"
80
- */
81
- export declare function objectRadius(ctx: SKRSContext2D, x: number, y: number, width: number, height: number, borderRadius?: number | "circular", borderPosition?: string): void;
82
- /**
83
- * Applies a perspective warp to the given image by subdividing the source rectangle
84
- * and drawing each cell with an affine transform approximating the local perspective.
85
- *
86
- * @param ctx The canvas rendering context.
87
- * @param image The source image.
88
- * @param x The x-coordinate where the image is drawn.
89
- * @param y The y-coordinate where the image is drawn.
90
- * @param width The width of the region to draw.
91
- * @param height The height of the region to draw.
92
- * @param perspective An object containing four destination corners:
93
- * { topLeft, topRight, bottomRight, bottomLeft }.
94
- * @param gridCols Number of columns to subdivide (default: 10).
95
- * @param gridRows Number of rows to subdivide (default: 10).
96
- */
97
- export declare function applyPerspective(ctx: SKRSContext2D, image: Image, x: number, y: number, width: number, height: number, perspective: {
98
- topLeft: {
99
- x: number;
100
- y: number;
101
- };
102
- topRight: {
103
- x: number;
104
- y: number;
105
- };
106
- bottomRight: {
107
- x: number;
108
- y: number;
109
- };
110
- bottomLeft: {
111
- x: number;
112
- y: number;
113
- };
114
- }, gridCols?: number, gridRows?: number): Promise<void>;