soccer-jersey-fork 1.0.105 → 1.0.106
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/lib/types/index.d.ts
CHANGED
|
@@ -29,8 +29,8 @@ export interface DrawSoccerJerseyProps {
|
|
|
29
29
|
backgroundColor?: string;
|
|
30
30
|
backgroundShape?: "ellipse" | "square";
|
|
31
31
|
fontFamily: string;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
fontWeight?: number;
|
|
33
|
+
fontStyle?: CSSProperties["fontStyle"];
|
|
34
34
|
}[];
|
|
35
35
|
images: {
|
|
36
36
|
src: string;
|
|
@@ -150,7 +150,7 @@ export default function drawSoccerJersey({ shirtColor = "plain", shirtStyle, shi
|
|
|
150
150
|
*/
|
|
151
151
|
if (texts && texts.length > 0) {
|
|
152
152
|
for (const textItem of texts) {
|
|
153
|
-
const { text, color, size, outlineColor, backgroundColor, backgroundShape, fontFamily = "Impact",
|
|
153
|
+
const { text, color, size, outlineColor, backgroundColor, backgroundShape, fontFamily = "Impact", fontWeight, fontStyle, x, y, } = textItem;
|
|
154
154
|
const drawText = (elem) => {
|
|
155
155
|
return elem
|
|
156
156
|
.text(text)
|
|
@@ -158,8 +158,8 @@ export default function drawSoccerJersey({ shirtColor = "plain", shirtStyle, shi
|
|
|
158
158
|
.font({
|
|
159
159
|
family: fontFamily,
|
|
160
160
|
size,
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
fontWeight,
|
|
162
|
+
fontStyle,
|
|
163
163
|
anchor: "middle",
|
|
164
164
|
})
|
|
165
165
|
.stroke({
|