@pixeasy/customizer-stage 0.0.1-beta → 0.0.3-beta

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/index.d.ts CHANGED
@@ -110,3 +110,39 @@ export function generateThumbnails(
110
110
  mtlUrl?: UrlOrText,
111
111
  materialSourceUrl?: string | null,
112
112
  ): Promise<GeneratedThumbnail[]>;
113
+
114
+ export interface TextOverlaySvgOptions {
115
+ text: string;
116
+ fontSize: number;
117
+ fill: string;
118
+ fontFamily?: string;
119
+ fontWeight?: 'normal' | 'bold';
120
+ fontStyle?: 'normal' | 'italic';
121
+ letterSpacing?: number;
122
+ lineHeight?: number;
123
+ stroke?: string | null;
124
+ strokeWidth?: number;
125
+ secondStroke?: string | null;
126
+ secondStrokeWidth?: number;
127
+ curveAmount?: number;
128
+ warpEnabled?: boolean;
129
+ warpEnvelope?: {
130
+ viewBox: { minX: number; minY: number; width: number; height: number };
131
+ topPathD: string;
132
+ bottomPathD: string;
133
+ } | null;
134
+ shadowBlur?: number;
135
+ shadowOffsetX?: number;
136
+ shadowOffsetY?: number;
137
+ shadowColor?: string;
138
+ widthInches?: number;
139
+ heightInches?: number;
140
+ horizontalScale?: number;
141
+ verticalScale?: number;
142
+ angle?: number;
143
+ }
144
+
145
+ export function generateTextSvg(
146
+ overlaySnapIdOrInput: string | any,
147
+ fontSourceOrOptions: string | ArrayBuffer | { apiUrl: string; authToken?: string; fontSource?: string | ArrayBuffer; textOverride?: string },
148
+ ): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixeasy/customizer-stage",
3
- "version": "0.0.1-beta",
3
+ "version": "0.0.3-beta",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {