soccer-jersey-fork 1.0.126 → 1.0.127
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/index.d.ts +1 -5
- package/lib/index.js +1 -5
- package/lib/patterns/patterns.d.ts +25 -16
- package/lib/patterns/patterns.js +337 -363
- package/lib/stories/jersey-page.js +2 -2
- package/lib/stories/jersey.stories.js +1 -1
- package/lib/types/index.d.ts +4 -3
- package/lib/utils/draw-soccer-jersey.d.ts +32 -1
- package/lib/utils/draw-soccer-jersey.js +246 -199
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,4 @@
|
|
|
2
2
|
* Generate Soccer Jersey SVG images. Generates Data URIs that
|
|
3
3
|
* can be used directly as image src.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
declare const SoccerJersey: {
|
|
7
|
-
draw: typeof drawSoccerJersey;
|
|
8
|
-
};
|
|
9
|
-
export default SoccerJersey;
|
|
5
|
+
export { SoccerJerseyDrawer } from "./utils/draw-soccer-jersey";
|
package/lib/index.js
CHANGED
|
@@ -2,8 +2,4 @@
|
|
|
2
2
|
* Generate Soccer Jersey SVG images. Generates Data URIs that
|
|
3
3
|
* can be used directly as image src.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
const SoccerJersey = {
|
|
7
|
-
draw: drawSoccerJersey,
|
|
8
|
-
};
|
|
9
|
-
export default SoccerJersey;
|
|
5
|
+
export { SoccerJerseyDrawer } from "./utils/draw-soccer-jersey";
|
|
@@ -5,19 +5,28 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { Svg } from "@svgdotjs/svg.js";
|
|
7
7
|
import { StyleDirection } from "../types";
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
export declare abstract class BaseJerseyDrawer {
|
|
9
|
+
protected abstract page: Svg;
|
|
10
|
+
protected isLongSleeve: boolean;
|
|
11
|
+
protected drawStriped(primaryColor: string, secondaryColor: string, direction: StyleDirection, thickness?: "thinSpaced" | "thin" | "thick" | "normal"): import("@svgdotjs/svg.js").Pattern;
|
|
12
|
+
private drawStripedThick;
|
|
13
|
+
private drawStripedThin;
|
|
14
|
+
private drawStripedThinSpaced;
|
|
15
|
+
private drawStripedNormal;
|
|
16
|
+
protected drawCheckered(primaryColor: string, secondaryColor: string, size: "sm" | "lg", direction?: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
17
|
+
protected drawDiamonds(primaryColor: string, secondaryColor: string): import("@svgdotjs/svg.js").Pattern;
|
|
18
|
+
protected drawCrisscross(primaryColor: string, secondaryColor: string): import("@svgdotjs/svg.js").Pattern;
|
|
19
|
+
protected drawTwoColors(primaryColor: string, secondaryColor: string, bandStyle: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
20
|
+
protected addSleeveEdgeLines(color: string): void;
|
|
21
|
+
protected drawSleeveTwoColors(primaryColor: string, secondaryColor: string, direction: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
22
|
+
protected drawSleeveContrastingTwoColors(primaryColor: string, secondaryColor: string): import("@svgdotjs/svg.js").Pattern;
|
|
23
|
+
protected drawSingleBand(primaryColor: string, secondaryColor: string, bandStyle: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
24
|
+
protected drawSingleBandThin(primaryColor: string, secondaryColor: string, bandStyle?: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
25
|
+
protected drawWaves(primaryColor: string, secondaryColor: string, direction: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
26
|
+
protected drawConcentricCircles(primaryColor: string, secondaryColor: string, direction: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
27
|
+
protected drawDashes(primaryColor: string, secondaryColor: string, dashDirection: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
28
|
+
protected drawCrossLines(primaryColor: string, secondaryColor: string, direction: StyleDirection): import("@svgdotjs/svg.js").Pattern;
|
|
29
|
+
protected addShortSideColor(color: string): void;
|
|
30
|
+
protected addShoulderEdgeColor(color: string): void;
|
|
31
|
+
protected addShirtSideColor(color: string): void;
|
|
32
|
+
}
|