strokes-js 0.1.4 → 0.2.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.
- package/dist/glyphs/glyphs.js +24 -0
- package/dist/glyphs/punctuation/punct-ampersand.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-ampersand.js +9 -0
- package/dist/glyphs/punctuation/punct-asterisk.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-asterisk.js +9 -0
- package/dist/glyphs/punctuation/punct-backtick.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-backtick.js +9 -0
- package/dist/glyphs/punctuation/punct-brace-close.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-brace-close.js +9 -0
- package/dist/glyphs/punctuation/punct-brace-open.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-brace-open.js +9 -0
- package/dist/glyphs/punctuation/punct-bracket-close.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-bracket-close.js +9 -0
- package/dist/glyphs/punctuation/punct-bracket-open.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-bracket-open.js +9 -0
- package/dist/glyphs/punctuation/punct-em-dash.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-em-dash.js +9 -0
- package/dist/glyphs/punctuation/punct-equals.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-equals.js +9 -0
- package/dist/glyphs/punctuation/punct-paren-close.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-paren-close.js +9 -0
- package/dist/glyphs/punctuation/punct-paren-open.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-paren-open.js +9 -0
- package/dist/glyphs/punctuation/punct-quote.d.ts +3 -0
- package/dist/glyphs/punctuation/punct-quote.js +9 -0
- package/package.json +1 -1
package/dist/glyphs/glyphs.js
CHANGED
|
@@ -66,6 +66,18 @@ 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";
|
|
69
81
|
import { space } from "./space.js";
|
|
70
82
|
export const glyphs = {
|
|
71
83
|
" ": space,
|
|
@@ -137,4 +149,16 @@ export const glyphs = {
|
|
|
137
149
|
"?": punctQuestion,
|
|
138
150
|
"'": punctApostrophe,
|
|
139
151
|
"-": punctHyphen,
|
|
152
|
+
"&": punctAmpersand,
|
|
153
|
+
"(": punctParenOpen,
|
|
154
|
+
")": punctParenClose,
|
|
155
|
+
"—": punctEmDash,
|
|
156
|
+
'"': punctQuote,
|
|
157
|
+
"`": punctBacktick,
|
|
158
|
+
"{": punctBraceOpen,
|
|
159
|
+
"}": punctBraceClose,
|
|
160
|
+
"[": punctBracketOpen,
|
|
161
|
+
"]": punctBracketClose,
|
|
162
|
+
"*": punctAsterisk,
|
|
163
|
+
"=": punctEquals,
|
|
140
164
|
};
|
|
@@ -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,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,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,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
|
+
};
|