apexify.js 4.2.9 → 4.3.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.
@@ -88,6 +88,7 @@ export interface ImageProperties {
88
88
  y?: number;
89
89
  isFilled?: boolean;
90
90
  color?: string;
91
+ opacity?: number;
91
92
  gradient?: {
92
93
  type?: 'linear' | 'radial';
93
94
  startX?: number;
@@ -99,12 +100,24 @@ export interface ImageProperties {
99
100
  colors?: { stop?: number; color?: string }[];
100
101
  };
101
102
  rotation?: number;
102
- borderRadius?: number | "circular"
103
+ borderRadius?: number | "circular";
104
+ borderPosition?: 'all' | 'top' | 'left' | 'right' | 'bottom';
103
105
  stroke?: {
104
106
  color?: string;
105
107
  width?: number;
106
108
  position?: number;
107
- borderRadius?: number | "circular"
109
+ borderRadius?: number | "circular";
110
+ borderPosition?: 'all' | 'top' | 'left' | 'right' | 'bottom';
111
+ gradient?: {
112
+ type: 'linear' | 'radial';
113
+ startX?: number;
114
+ startY?: number;
115
+ endX?: number;
116
+ endY?: number;
117
+ startRadius?: number;
118
+ endRadius?: number;
119
+ colors: { stop: number; color: string }[];
120
+ };
108
121
  };
109
122
  shadow?: {
110
123
  color?: string;
@@ -112,7 +125,8 @@ export interface ImageProperties {
112
125
  offsetY?: number;
113
126
  blur?: number;
114
127
  opacity?: number;
115
- borderRadius?: number | "circular"
128
+ borderRadius?: number | "circular",
129
+ borderPosition?: 'all' | 'top' | 'left' | 'right' | 'bottom';
116
130
  };
117
131
  };
118
132
 
@@ -153,6 +167,16 @@ export interface TextObject {
153
167
  stroke?: {
154
168
  color?: string;
155
169
  width?: number;
170
+ gradient?: {
171
+ type: 'linear' | 'radial';
172
+ startX?: number;
173
+ startY?: number;
174
+ endX?: number;
175
+ endY?: number;
176
+ startRadius?: number;
177
+ endRadius?: number;
178
+ colors: { stop: number; color: string }[];
179
+ }
156
180
  };
157
181
  rotation?: number;
158
182
  opacity?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apexify.js",
3
- "version": "4.2.9",
3
+ "version": "4.3.0",
4
4
  "description": "Ai and Canvas library. Supports ts & js (supports front/back end).",
5
5
  "main": "./dist/index.js",
6
6
  "author": "zenith-79",