sketchmark 2.1.0 → 2.1.2

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 (117) hide show
  1. package/package.json +1 -7
  2. package/ANIMATABLE_MATRIX.md +0 -177
  3. package/KERNEL_SPEC.md +0 -412
  4. package/PACKS.md +0 -81
  5. package/PRESETS.md +0 -182
  6. package/dist/src/builders/index.d.ts +0 -64
  7. package/dist/src/builders/index.js +0 -212
  8. package/dist/src/compounds.d.ts +0 -13
  9. package/dist/src/compounds.js +0 -118
  10. package/dist/src/deck.d.ts +0 -4
  11. package/dist/src/deck.js +0 -91
  12. package/dist/src/export/index.d.ts +0 -8
  13. package/dist/src/export/index.js +0 -15
  14. package/dist/src/kernel.d.ts +0 -8
  15. package/dist/src/kernel.js +0 -68
  16. package/dist/src/motion.d.ts +0 -4
  17. package/dist/src/motion.js +0 -262
  18. package/dist/src/patch.d.ts +0 -5
  19. package/dist/src/patch.js +0 -72
  20. package/dist/src/player/index.d.ts +0 -68
  21. package/dist/src/player/index.js +0 -600
  22. package/dist/src/project.d.ts +0 -11
  23. package/dist/src/project.js +0 -107
  24. package/dist/src/render/raw-three.d.ts +0 -7
  25. package/dist/src/render/raw-three.js +0 -17
  26. package/dist/src/render/three-html.d.ts +0 -2
  27. package/dist/src/render/three-html.js +0 -257
  28. package/dist/src/render/three-preview-svg.d.ts +0 -3
  29. package/dist/src/render/three-preview-svg.js +0 -102
  30. package/dist/src/scenes.d.ts +0 -4
  31. package/dist/src/scenes.js +0 -26
  32. package/dist/src/sequences.d.ts +0 -43
  33. package/dist/src/sequences.js +0 -109
  34. package/dist/src/shapes/builtins.d.ts +0 -2
  35. package/dist/src/shapes/builtins.js +0 -393
  36. package/dist/src/shapes/common.d.ts +0 -9
  37. package/dist/src/shapes/common.js +0 -76
  38. package/dist/src/shapes/geometry.d.ts +0 -22
  39. package/dist/src/shapes/geometry.js +0 -166
  40. package/dist/src/shapes/index.d.ts +0 -2
  41. package/dist/src/shapes/index.js +0 -18
  42. package/dist/src/shapes/registry.d.ts +0 -8
  43. package/dist/src/shapes/registry.js +0 -31
  44. package/dist/src/shapes/types.d.ts +0 -32
  45. package/dist/src/shapes/types.js +0 -2
  46. package/examples/1730642890464.jpg +0 -0
  47. package/examples/app-screen.svg +0 -1
  48. package/examples/app-screen.visual.json +0 -503
  49. package/examples/dashboard-table.svg +0 -1
  50. package/examples/dashboard-table.visual.json +0 -708
  51. package/examples/dev-docs.svg +0 -1
  52. package/examples/dev-docs.visual.json +0 -248
  53. package/examples/explainer.mp4 +0 -0
  54. package/examples/explainer.visual.json +0 -1713
  55. package/examples/group-origin-effects-lab-check.svg +0 -1
  56. package/examples/group-origin-effects-lab.visual.json +0 -1880
  57. package/examples/image-clip-radius.visual.json +0 -271
  58. package/examples/make-app-screen.cjs +0 -368
  59. package/examples/make-dashboard-table.cjs +0 -277
  60. package/examples/make-dev-docs.cjs +0 -233
  61. package/examples/make-explainer.cjs +0 -438
  62. package/examples/make-group-origin-effects-lab.cjs +0 -370
  63. package/examples/make-image-clip-radius.cjs +0 -169
  64. package/examples/make-modal-dialog.cjs +0 -355
  65. package/examples/make-origin-effects-lab.cjs +0 -311
  66. package/examples/make-preset-character-motion.cjs +0 -32
  67. package/examples/make-presets-demo.cjs +0 -30
  68. package/examples/make-pricing.cjs +0 -286
  69. package/examples/make-product-demo.cjs +0 -468
  70. package/examples/make-product-hero.cjs +0 -223
  71. package/examples/make-release-notes.cjs +0 -333
  72. package/examples/make-settings-panel.cjs +0 -435
  73. package/examples/make-split-preview.cjs +0 -248
  74. package/examples/make-storyboard.cjs +0 -215
  75. package/examples/make-transcript.cjs +0 -234
  76. package/examples/make-typography-test.cjs +0 -397
  77. package/examples/make-ui-demo-explainer.cjs +0 -1094
  78. package/examples/make-ui-flow.cjs +0 -762
  79. package/examples/make-walkthrough.cjs +0 -815
  80. package/examples/modal-dialog.svg +0 -1
  81. package/examples/modal-dialog.visual.json +0 -239
  82. package/examples/origin-effects-lab-check.svg +0 -1
  83. package/examples/origin-effects-lab.visual.json +0 -1412
  84. package/examples/preset-character-motion.visual.json +0 -949
  85. package/examples/presets-demo.visual.json +0 -787
  86. package/examples/pricing.svg +0 -1
  87. package/examples/pricing.visual.json +0 -652
  88. package/examples/product-demo.mp4 +0 -0
  89. package/examples/product-demo.visual.json +0 -866
  90. package/examples/product-hero.svg +0 -1
  91. package/examples/product-hero.visual.json +0 -242
  92. package/examples/release-notes.svg +0 -1
  93. package/examples/release-notes.visual.json +0 -467
  94. package/examples/settings-panel.svg +0 -1
  95. package/examples/settings-panel.visual.json +0 -501
  96. package/examples/split-preview.svg +0 -1
  97. package/examples/split-preview.visual.json +0 -124
  98. package/examples/storyboard.svg +0 -1
  99. package/examples/storyboard.visual.json +0 -312
  100. package/examples/transcript.svg +0 -1
  101. package/examples/transcript.visual.json +0 -407
  102. package/examples/typography-indent-check.svg +0 -1
  103. package/examples/typography-lineheight-0.svg +0 -1
  104. package/examples/typography-lineheight-2.svg +0 -1
  105. package/examples/typography-test-check.svg +0 -1
  106. package/examples/typography-test.svg +0 -1
  107. package/examples/typography-test.visual.json +0 -757
  108. package/examples/ui-demo-explainer-billing.svg +0 -1
  109. package/examples/ui-demo-explainer-check.svg +0 -1
  110. package/examples/ui-demo-explainer-save.svg +0 -1
  111. package/examples/ui-demo-explainer-toggle.svg +0 -1
  112. package/examples/ui-demo-explainer.mp4 +0 -0
  113. package/examples/ui-demo-explainer.visual.json +0 -2597
  114. package/examples/ui-flow.mp4 +0 -0
  115. package/examples/ui-flow.visual.json +0 -1211
  116. package/examples/walkthrough.mp4 +0 -0
  117. package/examples/walkthrough.visual.json +0 -1372
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="1280" height="960" viewBox="0 0 1280 960" role="img"><rect x="0" y="0" width="1280" height="960" fill="#ffffff"/><text id="title" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="36" font-weight="700" fill="#1a1a2e"><tspan x="80" y="82">Getting Started with the Render API</tspan></text><text id="subtitle" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="16" font-weight="400" fill="#6b7280"><tspan x="80" y="124">A concise guide to integrating the render pipeline into your application.</tspan></text><path id="divider" d="M 80 164 L 1200 164" fill="none" stroke="#e5e7eb" stroke-width="1"/><text id="para1" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="15" font-weight="400" fill="#1a1a2e"><tspan x="80" y="203.5">The Render API exposes a minimal surface for compiling visual documents into</tspan><tspan x="80" y="229">output frames. It accepts a validated kernel document and a target time, then</tspan><tspan x="80" y="254.5">resolves all timeline interpolations and returns a flat list of positioned primitives</tspan><tspan x="80" y="280">ready for rasterization or SVG serialization.</tspan></text><text id="para2" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="15" font-weight="400" fill="#1a1a2e"><tspan x="80" y="313.5">Before calling the render function, ensure your document passes schema</tspan><tspan x="80" y="339">validation. Invalid documents will throw a structured error with path information</tspan><tspan x="80" y="364.5">pointing to the offending node. This keeps the pipeline predictable and safe.</tspan></text><path id="code-bg" d="M 80 406 L 1200 406 L 1200 578 L 80 578 Z" fill="#f1f5f9" stroke="#e2e8f0" stroke-width="1"/><text id="code-text" text-anchor="start" dominant-baseline="middle" font-family="JetBrains Mono, Fira Code, monospace" font-size="13" font-weight="400" fill="#334155"><tspan x="100" y="430.5">import { validateVisualDocument, resolveVisualFrame } from "sketchmark";</tspan><tspan x="100" y="453.9"></tspan><tspan x="100" y="477.3">const doc = JSON.parse(fs.readFileSync("scene.visual.json", "utf8"));</tspan><tspan x="100" y="500.7">validateVisualDocument(doc);</tspan><tspan x="100" y="524.1"></tspan><tspan x="100" y="547.5">const frame = resolveVisualFrame(doc, { time: 1.5 });</tspan><tspan x="100" y="570.9">console.log(frame.elements.length, "primitives resolved");</tspan></text><text id="list-heading" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="20" font-weight="600" fill="#1a1a2e"><tspan x="80" y="624">Key Concepts</tspan></text><path id="bullet-dot-0" d="M 84 657 A 3 3 0 1 1 84 657.01 Z" fill="#2563eb" stroke="none" stroke-width="0"/><text id="bullet-text-0" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="14" font-weight="400" fill="#1a1a2e"><tspan x="98" y="657">Documents must declare version: 1 and a canvas with width and height.</tspan></text><path id="bullet-dot-1" d="M 84 687 A 3 3 0 1 1 84 687.01 Z" fill="#2563eb" stroke="none" stroke-width="0"/><text id="bullet-text-1" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="14" font-weight="400" fill="#1a1a2e"><tspan x="98" y="687">Elements are flat arrays of path, text, image, point, or group primitives.</tspan></text><path id="bullet-dot-2" d="M 84 717 A 3 3 0 1 1 84 717.01 Z" fill="#2563eb" stroke="none" stroke-width="0"/><text id="bullet-text-2" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="14" font-weight="400" fill="#1a1a2e"><tspan x="98" y="717">Timelines are element-local — each element owns its own tracks and keyframes.</tspan></text><path id="bullet-dot-3" d="M 84 747 A 3 3 0 1 1 84 747.01 Z" fill="#2563eb" stroke="none" stroke-width="0"/><text id="bullet-text-3" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="14" font-weight="400" fill="#1a1a2e"><tspan x="98" y="747">Interpolation resolves per-track using cubic bezier, graph, or hold curves.</tspan></text><path id="bullet-dot-4" d="M 84 777 A 3 3 0 1 1 84 777.01 Z" fill="#2563eb" stroke="none" stroke-width="0"/><text id="bullet-text-4" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="14" font-weight="400" fill="#1a1a2e"><tspan x="98" y="777">The output frame contains fully resolved properties with no remaining references.</tspan></text><path id="btn-bg" d="M 548 840 L 732 840 Q 740 840 740 848 L 740 876 Q 740 884 732 884 L 548 884 Q 540 884 540 876 L 540 848 Q 540 840 548 840 Z" fill="#2563eb" stroke="none" stroke-width="0"/><text id="btn-label" text-anchor="middle" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="15" font-weight="600" fill="#ffffff"><tspan x="640" y="862">View Full Reference</tspan></text><text id="footer" text-anchor="start" dominant-baseline="middle" font-family="Roboto, Arial, sans-serif" font-size="12" font-weight="400" fill="#6b7280"><tspan x="80" y="926">Last updated May 2026 · Sketchmark v1.0 · MIT License</tspan></text></svg>
@@ -1,248 +0,0 @@
1
- {
2
- "version": 1,
3
- "canvas": {
4
- "width": 1280,
5
- "height": 960,
6
- "background": "#ffffff"
7
- },
8
- "elements": [
9
- {
10
- "id": "title",
11
- "type": "text",
12
- "x": 80,
13
- "y": 64,
14
- "text": "Getting Started with the Render API",
15
- "align": "left",
16
- "valign": "top",
17
- "fontSize": 36,
18
- "fontFamily": "Inter, system-ui, sans-serif",
19
- "weight": 700,
20
- "fill": "#1a1a2e"
21
- },
22
- {
23
- "id": "subtitle",
24
- "type": "text",
25
- "x": 80,
26
- "y": 116,
27
- "text": "A concise guide to integrating the render pipeline into your application.",
28
- "align": "left",
29
- "valign": "top",
30
- "fontSize": 16,
31
- "fontFamily": "Inter, system-ui, sans-serif",
32
- "weight": 400,
33
- "fill": "#6b7280"
34
- },
35
- {
36
- "id": "divider",
37
- "type": "path",
38
- "d": "M 80 164 L 1200 164",
39
- "stroke": "#e5e7eb",
40
- "strokeWidth": 1,
41
- "fill": "none"
42
- },
43
- {
44
- "id": "para1",
45
- "type": "text",
46
- "x": 80,
47
- "y": 196,
48
- "text": "The Render API exposes a minimal surface for compiling visual documents into\noutput frames. It accepts a validated kernel document and a target time, then\nresolves all timeline interpolations and returns a flat list of positioned primitives\nready for rasterization or SVG serialization.",
49
- "align": "left",
50
- "valign": "top",
51
- "fontSize": 15,
52
- "fontFamily": "Inter, system-ui, sans-serif",
53
- "weight": 400,
54
- "lineHeight": 1.7,
55
- "fill": "#1a1a2e",
56
- "maxWidth": 1120
57
- },
58
- {
59
- "id": "para2",
60
- "type": "text",
61
- "x": 80,
62
- "y": 306,
63
- "text": "Before calling the render function, ensure your document passes schema\nvalidation. Invalid documents will throw a structured error with path information\npointing to the offending node. This keeps the pipeline predictable and safe.",
64
- "align": "left",
65
- "valign": "top",
66
- "fontSize": 15,
67
- "fontFamily": "Inter, system-ui, sans-serif",
68
- "weight": 400,
69
- "lineHeight": 1.7,
70
- "fill": "#1a1a2e",
71
- "maxWidth": 1120
72
- },
73
- {
74
- "id": "code-bg",
75
- "type": "path",
76
- "d": "M 80 406 L 1200 406 L 1200 578 L 80 578 Z",
77
- "fill": "#f1f5f9",
78
- "stroke": "#e2e8f0",
79
- "strokeWidth": 1
80
- },
81
- {
82
- "id": "code-text",
83
- "type": "text",
84
- "x": 100,
85
- "y": 424,
86
- "text": "import { validateVisualDocument, resolveVisualFrame } from \"sketchmark\";\n\nconst doc = JSON.parse(fs.readFileSync(\"scene.visual.json\", \"utf8\"));\nvalidateVisualDocument(doc);\n\nconst frame = resolveVisualFrame(doc, { time: 1.5 });\nconsole.log(frame.elements.length, \"primitives resolved\");",
87
- "align": "left",
88
- "valign": "top",
89
- "fontSize": 13,
90
- "fontFamily": "JetBrains Mono, Fira Code, monospace",
91
- "weight": 400,
92
- "lineHeight": 1.8,
93
- "fill": "#334155",
94
- "maxWidth": 1080
95
- },
96
- {
97
- "id": "list-heading",
98
- "type": "text",
99
- "x": 80,
100
- "y": 614,
101
- "text": "Key Concepts",
102
- "align": "left",
103
- "valign": "top",
104
- "fontSize": 20,
105
- "fontFamily": "Inter, system-ui, sans-serif",
106
- "weight": 600,
107
- "fill": "#1a1a2e"
108
- },
109
- {
110
- "id": "bullet-dot-0",
111
- "type": "path",
112
- "d": "M 84 657 A 3 3 0 1 1 84 657.01 Z",
113
- "fill": "#2563eb",
114
- "stroke": "none"
115
- },
116
- {
117
- "id": "bullet-text-0",
118
- "type": "text",
119
- "x": 98,
120
- "y": 650,
121
- "text": "Documents must declare version: 1 and a canvas with width and height.",
122
- "align": "left",
123
- "valign": "top",
124
- "fontSize": 14,
125
- "fontFamily": "Inter, system-ui, sans-serif",
126
- "weight": 400,
127
- "fill": "#1a1a2e",
128
- "maxWidth": 1102
129
- },
130
- {
131
- "id": "bullet-dot-1",
132
- "type": "path",
133
- "d": "M 84 687 A 3 3 0 1 1 84 687.01 Z",
134
- "fill": "#2563eb",
135
- "stroke": "none"
136
- },
137
- {
138
- "id": "bullet-text-1",
139
- "type": "text",
140
- "x": 98,
141
- "y": 680,
142
- "text": "Elements are flat arrays of path, text, image, point, or group primitives.",
143
- "align": "left",
144
- "valign": "top",
145
- "fontSize": 14,
146
- "fontFamily": "Inter, system-ui, sans-serif",
147
- "weight": 400,
148
- "fill": "#1a1a2e",
149
- "maxWidth": 1102
150
- },
151
- {
152
- "id": "bullet-dot-2",
153
- "type": "path",
154
- "d": "M 84 717 A 3 3 0 1 1 84 717.01 Z",
155
- "fill": "#2563eb",
156
- "stroke": "none"
157
- },
158
- {
159
- "id": "bullet-text-2",
160
- "type": "text",
161
- "x": 98,
162
- "y": 710,
163
- "text": "Timelines are element-local — each element owns its own tracks and keyframes.",
164
- "align": "left",
165
- "valign": "top",
166
- "fontSize": 14,
167
- "fontFamily": "Inter, system-ui, sans-serif",
168
- "weight": 400,
169
- "fill": "#1a1a2e",
170
- "maxWidth": 1102
171
- },
172
- {
173
- "id": "bullet-dot-3",
174
- "type": "path",
175
- "d": "M 84 747 A 3 3 0 1 1 84 747.01 Z",
176
- "fill": "#2563eb",
177
- "stroke": "none"
178
- },
179
- {
180
- "id": "bullet-text-3",
181
- "type": "text",
182
- "x": 98,
183
- "y": 740,
184
- "text": "Interpolation resolves per-track using cubic bezier, graph, or hold curves.",
185
- "align": "left",
186
- "valign": "top",
187
- "fontSize": 14,
188
- "fontFamily": "Inter, system-ui, sans-serif",
189
- "weight": 400,
190
- "fill": "#1a1a2e",
191
- "maxWidth": 1102
192
- },
193
- {
194
- "id": "bullet-dot-4",
195
- "type": "path",
196
- "d": "M 84 777 A 3 3 0 1 1 84 777.01 Z",
197
- "fill": "#2563eb",
198
- "stroke": "none"
199
- },
200
- {
201
- "id": "bullet-text-4",
202
- "type": "text",
203
- "x": 98,
204
- "y": 770,
205
- "text": "The output frame contains fully resolved properties with no remaining references.",
206
- "align": "left",
207
- "valign": "top",
208
- "fontSize": 14,
209
- "fontFamily": "Inter, system-ui, sans-serif",
210
- "weight": 400,
211
- "fill": "#1a1a2e",
212
- "maxWidth": 1102
213
- },
214
- {
215
- "id": "btn-bg",
216
- "type": "path",
217
- "d": "M 548 840 L 732 840 Q 740 840 740 848 L 740 876 Q 740 884 732 884 L 548 884 Q 540 884 540 876 L 540 848 Q 540 840 548 840 Z",
218
- "fill": "#2563eb",
219
- "stroke": "none"
220
- },
221
- {
222
- "id": "btn-label",
223
- "type": "text",
224
- "x": 640,
225
- "y": 862,
226
- "text": "View Full Reference",
227
- "align": "center",
228
- "valign": "middle",
229
- "fontSize": 15,
230
- "fontFamily": "Inter, system-ui, sans-serif",
231
- "weight": 600,
232
- "fill": "#ffffff"
233
- },
234
- {
235
- "id": "footer",
236
- "type": "text",
237
- "x": 80,
238
- "y": 920,
239
- "text": "Last updated May 2026 · Sketchmark v1.0 · MIT License",
240
- "align": "left",
241
- "valign": "top",
242
- "fontSize": 12,
243
- "fontFamily": "Inter, system-ui, sans-serif",
244
- "weight": 400,
245
- "fill": "#6b7280"
246
- }
247
- ]
248
- }
Binary file