strokes-js 0.1.4 → 0.2.1

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 (28) hide show
  1. package/dist/glyphs/glyphs.js +26 -0
  2. package/dist/glyphs/punctuation/punct-ampersand.d.ts +3 -0
  3. package/dist/glyphs/punctuation/punct-ampersand.js +9 -0
  4. package/dist/glyphs/punctuation/punct-asterisk.d.ts +3 -0
  5. package/dist/glyphs/punctuation/punct-asterisk.js +9 -0
  6. package/dist/glyphs/punctuation/punct-backtick.d.ts +3 -0
  7. package/dist/glyphs/punctuation/punct-backtick.js +9 -0
  8. package/dist/glyphs/punctuation/punct-brace-close.d.ts +3 -0
  9. package/dist/glyphs/punctuation/punct-brace-close.js +9 -0
  10. package/dist/glyphs/punctuation/punct-brace-open.d.ts +3 -0
  11. package/dist/glyphs/punctuation/punct-brace-open.js +9 -0
  12. package/dist/glyphs/punctuation/punct-bracket-close.d.ts +3 -0
  13. package/dist/glyphs/punctuation/punct-bracket-close.js +9 -0
  14. package/dist/glyphs/punctuation/punct-bracket-open.d.ts +3 -0
  15. package/dist/glyphs/punctuation/punct-bracket-open.js +9 -0
  16. package/dist/glyphs/punctuation/punct-em-dash.d.ts +3 -0
  17. package/dist/glyphs/punctuation/punct-em-dash.js +9 -0
  18. package/dist/glyphs/punctuation/punct-equals.d.ts +3 -0
  19. package/dist/glyphs/punctuation/punct-equals.js +9 -0
  20. package/dist/glyphs/punctuation/punct-paren-close.d.ts +3 -0
  21. package/dist/glyphs/punctuation/punct-paren-close.js +9 -0
  22. package/dist/glyphs/punctuation/punct-paren-open.d.ts +3 -0
  23. package/dist/glyphs/punctuation/punct-paren-open.js +9 -0
  24. package/dist/glyphs/punctuation/punct-plus.d.ts +3 -0
  25. package/dist/glyphs/punctuation/punct-plus.js +9 -0
  26. package/dist/glyphs/punctuation/punct-quote.d.ts +3 -0
  27. package/dist/glyphs/punctuation/punct-quote.js +9 -0
  28. package/package.json +1 -1
@@ -66,6 +66,19 @@ import { punctExclamation } from "./punctuation/punct-exclamation.js";
66
66
  import { punctQuestion } from "./punctuation/punct-question.js";
67
67
  import { punctApostrophe } from "./punctuation/punct-apostrophe.js";
68
68
  import { punctHyphen } from "./punctuation/punct-hyphen.js";
69
+ import { punctAmpersand } from "./punctuation/punct-ampersand.js";
70
+ import { punctParenOpen } from "./punctuation/punct-paren-open.js";
71
+ import { punctParenClose } from "./punctuation/punct-paren-close.js";
72
+ import { punctEmDash } from "./punctuation/punct-em-dash.js";
73
+ import { punctQuote } from "./punctuation/punct-quote.js";
74
+ import { punctBacktick } from "./punctuation/punct-backtick.js";
75
+ import { punctBraceOpen } from "./punctuation/punct-brace-open.js";
76
+ import { punctBraceClose } from "./punctuation/punct-brace-close.js";
77
+ import { punctBracketOpen } from "./punctuation/punct-bracket-open.js";
78
+ import { punctBracketClose } from "./punctuation/punct-bracket-close.js";
79
+ import { punctAsterisk } from "./punctuation/punct-asterisk.js";
80
+ import { punctEquals } from "./punctuation/punct-equals.js";
81
+ import { punctPlus } from "./punctuation/punct-plus.js";
69
82
  import { space } from "./space.js";
70
83
  export const glyphs = {
71
84
  " ": space,
@@ -137,4 +150,17 @@ export const glyphs = {
137
150
  "?": punctQuestion,
138
151
  "'": punctApostrophe,
139
152
  "-": punctHyphen,
153
+ "&": punctAmpersand,
154
+ "(": punctParenOpen,
155
+ ")": punctParenClose,
156
+ "—": punctEmDash,
157
+ '"': punctQuote,
158
+ "`": punctBacktick,
159
+ "{": punctBraceOpen,
160
+ "}": punctBraceClose,
161
+ "[": punctBracketOpen,
162
+ "]": punctBracketClose,
163
+ "*": punctAsterisk,
164
+ "=": punctEquals,
165
+ "+": punctPlus,
140
166
  };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "&", 3 wobble variants. */
3
+ export declare const punctAmpersand: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "&", 3 wobble variants. */
2
+ export const punctAmpersand = {
3
+ width: 14,
4
+ variants: [
5
+ "M11 8 C 11 5.5 8.5 4 7 5.5 C 5.5 7 6.5 9 8 10.5 L 11.5 14 C 13 15.5 12.5 18.5 10 19.5 C 7 20.5 3.5 19.5 2.5 17 C 1.5 14.5 3.5 12 6.5 12 C 9 12 10.5 13.5 11.5 15.5",
6
+ "M11.0 7.9 C 11.2 5.4 8.6 3.9 6.9 5.6 C 5.4 7.1 6.6 9.1 8.1 10.4 C 8.1 10.4 11.6 13.9 11.6 13.9 C 13.1 15.6 12.4 18.6 9.9 19.6 C 6.9 20.6 3.6 19.4 2.6 16.9 C 1.6 14.4 3.6 11.9 6.6 12.1 C 9.1 11.9 10.6 13.6 11.6 15.4",
7
+ "M10.9 8.1 C 10.9 5.6 8.4 4.1 7.1 5.4 C 5.6 6.9 6.4 8.9 7.9 10.6 L 11.4 14.1 C 12.9 15.4 12.6 18.4 10.1 19.4 C 7.1 20.4 3.4 19.6 2.4 17.1 C 1.4 14.6 3.4 12.1 6.4 11.9 C 8.9 12.1 10.4 13.4 11.4 15.6",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "*", 3 wobble variants. */
3
+ export declare const punctAsterisk: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "*", 3 wobble variants. */
2
+ export const punctAsterisk = {
3
+ width: 10,
4
+ variants: [
5
+ "M5 5 L5 13 M1.5 7 L8.5 11 M8.5 7 L1.5 11",
6
+ "M4.9 4.9 L5.1 13.1 M1.4 6.9 L8.6 11.1 M8.6 6.9 L1.4 11.1",
7
+ "M5.1 5.1 L4.9 12.9 M1.6 7.1 L8.4 10.9 M8.4 7.1 L1.6 10.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "`", 3 wobble variants. */
3
+ export declare const punctBacktick: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "`", 3 wobble variants. */
2
+ export const punctBacktick = {
3
+ width: 6,
4
+ variants: [
5
+ "M3.5 4 L4.5 7",
6
+ "M3.4 3.9 L4.6 7.1",
7
+ "M3.6 4.1 L4.4 6.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "}", 3 wobble variants. */
3
+ export declare const punctBraceClose: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "}", 3 wobble variants. */
2
+ export const punctBraceClose = {
3
+ width: 10,
4
+ variants: [
5
+ "M3 3 C 6 3 5 7 5 9 C 5 11 7 11.5 8 12 C 7 12.5 5 13 5 15 C 5 17 6 21 3 21",
6
+ "M2.9 2.9 C 6.1 3.1 4.9 6.9 5.0 9.1 C 5.1 11.1 6.9 11.4 8.1 12.1 C 6.9 12.6 5.1 12.9 4.9 15.1 C 5.1 17.1 6.1 20.9 2.9 21.1",
7
+ "M3.1 3.1 C 5.9 2.9 5.1 7.1 5.0 8.9 C 4.9 10.9 7.1 11.6 7.9 11.9 C 7.1 12.4 4.9 13.1 5.1 14.9 C 4.9 16.9 5.9 21.1 3.1 20.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "{", 3 wobble variants. */
3
+ export declare const punctBraceOpen: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "{", 3 wobble variants. */
2
+ export const punctBraceOpen = {
3
+ width: 10,
4
+ variants: [
5
+ "M7 3 C 4 3 5 7 5 9 C 5 11 3 11.5 2 12 C 3 12.5 5 13 5 15 C 5 17 4 21 7 21",
6
+ "M7.1 2.9 C 3.9 3.1 5.1 6.9 5.0 9.1 C 4.9 11.1 3.1 11.4 1.9 12.1 C 3.1 12.6 4.9 12.9 5.1 15.1 C 4.9 17.1 3.9 20.9 7.1 21.1",
7
+ "M6.9 3.1 C 4.1 2.9 4.9 7.1 5.0 8.9 C 5.1 10.9 2.9 11.6 2.1 11.9 C 2.9 12.4 5.1 13.1 4.9 14.9 C 5.1 16.9 4.1 21.1 6.9 20.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "]", 3 wobble variants. */
3
+ export declare const punctBracketClose: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "]", 3 wobble variants. */
2
+ export const punctBracketClose = {
3
+ width: 8,
4
+ variants: [
5
+ "M2 3 L5 3 L5 21 L2 21",
6
+ "M1.9 2.9 L5.1 3.1 L4.9 20.9 L1.9 21.1",
7
+ "M2.1 3.1 L4.9 2.9 L5.1 21.1 L2.1 20.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "[", 3 wobble variants. */
3
+ export declare const punctBracketOpen: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "[", 3 wobble variants. */
2
+ export const punctBracketOpen = {
3
+ width: 8,
4
+ variants: [
5
+ "M6 3 L3 3 L3 21 L6 21",
6
+ "M6.1 2.9 L2.9 3.1 L3.1 20.9 L6.1 21.1",
7
+ "M5.9 3.1 L3.1 2.9 L2.9 21.1 L5.9 20.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "—" (em dash), 3 wobble variants. */
3
+ export declare const punctEmDash: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "—" (em dash), 3 wobble variants. */
2
+ export const punctEmDash = {
3
+ width: 12,
4
+ variants: [
5
+ "M1 12 L11 12",
6
+ "M0.9 12.1 L11.1 11.9",
7
+ "M1.1 11.9 L10.9 12.1",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "=", 3 wobble variants. */
3
+ export declare const punctEquals: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "=", 3 wobble variants. */
2
+ export const punctEquals = {
3
+ width: 10,
4
+ variants: [
5
+ "M1 10 L9 10 M1 14 L9 14",
6
+ "M0.9 10.1 L9.1 9.9 M0.9 14.1 L9.1 13.9",
7
+ "M1.1 9.9 L8.9 10.1 M1.1 14.1 L8.9 13.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: ")", 3 wobble variants. */
3
+ export declare const punctParenClose: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: ")", 3 wobble variants. */
2
+ export const punctParenClose = {
3
+ width: 8,
4
+ variants: [
5
+ "M2 3 C 6 7 6 17 2 21",
6
+ "M1.9 2.9 C 6.1 6.9 6.2 17.1 1.9 21.1",
7
+ "M2.1 3.1 C 5.9 7.1 5.8 16.9 2.1 20.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "(", 3 wobble variants. */
3
+ export declare const punctParenOpen: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "(", 3 wobble variants. */
2
+ export const punctParenOpen = {
3
+ width: 8,
4
+ variants: [
5
+ "M6 3 C 2 7 2 17 6 21",
6
+ "M6.1 2.9 C 1.9 6.9 1.8 17.1 6.1 21.1",
7
+ "M5.9 3.1 C 2.1 7.1 2.2 16.9 5.9 20.9",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: "+", 3 wobble variants. */
3
+ export declare const punctPlus: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: "+", 3 wobble variants. */
2
+ export const punctPlus = {
3
+ width: 10,
4
+ variants: [
5
+ "M5 7 L5 15 M1 11 L9 11",
6
+ "M4.9 6.9 L5.1 15.1 M0.9 11.1 L9.1 10.9",
7
+ "M5.1 7.1 L4.9 14.9 M1.1 10.9 L8.9 11.1",
8
+ ],
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { GlyphEntry } from "../types.js";
2
+ /** Real hand-drawn glyph: '"', 3 wobble variants. */
3
+ export declare const punctQuote: GlyphEntry;
@@ -0,0 +1,9 @@
1
+ /** Real hand-drawn glyph: '"', 3 wobble variants. */
2
+ export const punctQuote = {
3
+ width: 9,
4
+ variants: [
5
+ "M2.5 4 L2 7 M6.5 4 L6 7",
6
+ "M2.4 3.9 L2.1 7.1 M6.4 3.9 L6.1 7.1",
7
+ "M2.6 4.1 L1.9 6.9 M6.6 4.1 L5.9 6.9",
8
+ ],
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strokes-js",
3
- "version": "0.1.4",
3
+ "version": "0.2.1",
4
4
  "description": "Renders text as animated hand-drawn SVG",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",