@zonsh/ui 0.0.0-stage → 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.
Files changed (388) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +76 -2
  3. package/assets/illustrations/drawing/bracket-construction-dark.svg +77 -0
  4. package/assets/illustrations/drawing/bracket-construction-filled-dark.svg +50 -0
  5. package/assets/illustrations/drawing/bracket-construction-filled.svg +50 -0
  6. package/assets/illustrations/drawing/bracket-construction.svg +77 -0
  7. package/assets/illustrations/drawing/crescent-dark.svg +28 -0
  8. package/assets/illustrations/drawing/crescent-guides-dark.svg +33 -0
  9. package/assets/illustrations/drawing/crescent-guides.svg +33 -0
  10. package/assets/illustrations/drawing/crescent.svg +28 -0
  11. package/assets/illustrations/drawing/eclipse-dark.svg +187 -0
  12. package/assets/illustrations/drawing/eclipse-guides-dark.svg +191 -0
  13. package/assets/illustrations/drawing/eclipse-guides.svg +191 -0
  14. package/assets/illustrations/drawing/eclipse.svg +187 -0
  15. package/assets/illustrations/drawing/elevation-guides-dark.svg +31 -0
  16. package/assets/illustrations/drawing/elevation-guides-plain-dark.svg +9 -0
  17. package/assets/illustrations/drawing/elevation-guides-plain.svg +9 -0
  18. package/assets/illustrations/drawing/elevation-guides.svg +31 -0
  19. package/assets/illustrations/drawing/horizon-dark.svg +30 -0
  20. package/assets/illustrations/drawing/horizon.svg +30 -0
  21. package/assets/illustrations/drawing/nib-study-dark.svg +107 -0
  22. package/assets/illustrations/drawing/nib-study-plain-dark.svg +93 -0
  23. package/assets/illustrations/drawing/nib-study-plain.svg +93 -0
  24. package/assets/illustrations/drawing/nib-study.svg +107 -0
  25. package/assets/illustrations/editorial/assistant-640.webp +0 -0
  26. package/assets/illustrations/editorial/assistant.webp +0 -0
  27. package/assets/illustrations/editorial/automation-640.webp +0 -0
  28. package/assets/illustrations/editorial/automation.webp +0 -0
  29. package/assets/illustrations/editorial/bracket-left-640.webp +0 -0
  30. package/assets/illustrations/editorial/bracket-left.webp +0 -0
  31. package/assets/illustrations/editorial/bracket-right-640.webp +0 -0
  32. package/assets/illustrations/editorial/bracket-right.webp +0 -0
  33. package/assets/illustrations/editorial/custom-software-640.webp +0 -0
  34. package/assets/illustrations/editorial/custom-software.webp +0 -0
  35. package/assets/illustrations/editorial/digitalization-640.webp +0 -0
  36. package/assets/illustrations/editorial/digitalization.webp +0 -0
  37. package/assets/illustrations/editorial/integration-640.webp +0 -0
  38. package/assets/illustrations/editorial/integration.webp +0 -0
  39. package/assets/illustrations/editorial/problem-640.webp +0 -0
  40. package/assets/illustrations/editorial/problem.webp +0 -0
  41. package/assets/illustrations/editorial/process-analysis-640.webp +0 -0
  42. package/assets/illustrations/editorial/process-analysis.webp +0 -0
  43. package/assets/illustrations/editorial/process-concept-640.webp +0 -0
  44. package/assets/illustrations/editorial/process-concept.webp +0 -0
  45. package/assets/illustrations/editorial/process-development-640.webp +0 -0
  46. package/assets/illustrations/editorial/process-development.webp +0 -0
  47. package/assets/illustrations/editorial/process-discovery-640.webp +0 -0
  48. package/assets/illustrations/editorial/process-discovery.webp +0 -0
  49. package/assets/illustrations/editorial/process-maintenance-640.webp +0 -0
  50. package/assets/illustrations/editorial/process-maintenance.webp +0 -0
  51. package/assets/illustrations/editorial/process-prototype-640.webp +0 -0
  52. package/assets/illustrations/editorial/process-prototype.webp +0 -0
  53. package/assets/illustrations/editorial/process-testing-640.webp +0 -0
  54. package/assets/illustrations/editorial/process-testing.webp +0 -0
  55. package/assets/illustrations/iso/automation-dark.svg +6 -0
  56. package/assets/illustrations/iso/automation.svg +6 -0
  57. package/assets/illustrations/iso/bar-chart-dark.svg +6 -0
  58. package/assets/illustrations/iso/bar-chart.svg +6 -0
  59. package/assets/illustrations/iso/brackets-classic-dark.svg +6 -0
  60. package/assets/illustrations/iso/brackets-classic.svg +6 -0
  61. package/assets/illustrations/iso/brackets-dark.svg +6 -0
  62. package/assets/illustrations/iso/brackets.svg +6 -0
  63. package/assets/illustrations/iso/city-dark.svg +6 -0
  64. package/assets/illustrations/iso/city.svg +6 -0
  65. package/assets/illustrations/iso/conveyor-dark.svg +6 -0
  66. package/assets/illustrations/iso/conveyor.svg +6 -0
  67. package/assets/illustrations/iso/database-dark.svg +6 -0
  68. package/assets/illustrations/iso/database.svg +6 -0
  69. package/assets/illustrations/iso/documents-dark.svg +6 -0
  70. package/assets/illustrations/iso/documents.svg +6 -0
  71. package/assets/illustrations/iso/inbox-dark.svg +6 -0
  72. package/assets/illustrations/iso/inbox.svg +6 -0
  73. package/assets/illustrations/iso/laptop-dark.svg +6 -0
  74. package/assets/illustrations/iso/laptop.svg +6 -0
  75. package/assets/illustrations/iso/monitor-dark.svg +6 -0
  76. package/assets/illustrations/iso/monitor.svg +6 -0
  77. package/assets/illustrations/iso/pipeline-dark.svg +6 -0
  78. package/assets/illustrations/iso/pipeline.svg +6 -0
  79. package/assets/illustrations/iso/platform-dark.svg +6 -0
  80. package/assets/illustrations/iso/platform.svg +6 -0
  81. package/assets/illustrations/iso/server-dark.svg +6 -0
  82. package/assets/illustrations/iso/server.svg +6 -0
  83. package/assets/illustrations/iso/spreadsheet-dark.svg +6 -0
  84. package/assets/illustrations/iso/spreadsheet.svg +6 -0
  85. package/assets/illustrations/iso/timeline-dark.svg +6 -0
  86. package/assets/illustrations/iso/timeline.svg +6 -0
  87. package/assets/illustrations/sheet/construction.svg +115 -0
  88. package/assets/illustrations/sheet/crescent.svg +40 -0
  89. package/assets/illustrations/sheet/limb.svg +42 -0
  90. package/assets/illustrations/sheet/stress-axis.svg +119 -0
  91. package/assets/illustrations/sheet/totality.svg +215 -0
  92. package/assets/illustrations/sheet/vertical-metrics.svg +43 -0
  93. package/assets/logo-left.svg +1 -0
  94. package/assets/logo-right.svg +1 -0
  95. package/assets/logo.svg +1 -0
  96. package/dist/components/_overlay.d.ts +47 -0
  97. package/dist/components/_overlay.js +59 -0
  98. package/dist/components/accordion.d.ts +32 -0
  99. package/dist/components/accordion.js +39 -0
  100. package/dist/components/alert-dialog.d.ts +45 -0
  101. package/dist/components/alert-dialog.js +56 -0
  102. package/dist/components/alert.d.ts +35 -0
  103. package/dist/components/alert.js +42 -0
  104. package/dist/components/ascii-field.d.ts +34 -0
  105. package/dist/components/ascii-field.js +410 -0
  106. package/dist/components/aspect-ratio.d.ts +14 -0
  107. package/dist/components/aspect-ratio.js +17 -0
  108. package/dist/components/avatar.d.ts +42 -0
  109. package/dist/components/avatar.js +55 -0
  110. package/dist/components/badge.d.ts +70 -0
  111. package/dist/components/badge.js +62 -0
  112. package/dist/components/breadcrumb.d.ts +22 -0
  113. package/dist/components/breadcrumb.js +32 -0
  114. package/dist/components/button-group.d.ts +30 -0
  115. package/dist/components/button-group.js +47 -0
  116. package/dist/components/button.d.ts +53 -0
  117. package/dist/components/button.js +130 -0
  118. package/dist/components/calendar.d.ts +26 -0
  119. package/dist/components/calendar.js +164 -0
  120. package/dist/components/card.d.ts +42 -0
  121. package/dist/components/card.js +76 -0
  122. package/dist/components/carousel.d.ts +90 -0
  123. package/dist/components/carousel.js +213 -0
  124. package/dist/components/chart.d.ts +180 -0
  125. package/dist/components/chart.js +286 -0
  126. package/dist/components/checkbox.d.ts +23 -0
  127. package/dist/components/checkbox.js +43 -0
  128. package/dist/components/code-block.d.ts +45 -0
  129. package/dist/components/code-block.js +58 -0
  130. package/dist/components/code-highlight.d.ts +13 -0
  131. package/dist/components/code-highlight.js +107 -0
  132. package/dist/components/collapsible.d.ts +20 -0
  133. package/dist/components/collapsible.js +32 -0
  134. package/dist/components/color-picker.d.ts +85 -0
  135. package/dist/components/color-picker.js +407 -0
  136. package/dist/components/combobox.d.ts +81 -0
  137. package/dist/components/combobox.js +100 -0
  138. package/dist/components/command.d.ts +112 -0
  139. package/dist/components/command.js +212 -0
  140. package/dist/components/context-menu.d.ts +29 -0
  141. package/dist/components/context-menu.js +35 -0
  142. package/dist/components/conversation.d.ts +27 -0
  143. package/dist/components/conversation.js +293 -0
  144. package/dist/components/copy-button.d.ts +46 -0
  145. package/dist/components/copy-button.js +118 -0
  146. package/dist/components/data-table.d.ts +175 -0
  147. package/dist/components/data-table.js +302 -0
  148. package/dist/components/date-picker.d.ts +91 -0
  149. package/dist/components/date-picker.js +207 -0
  150. package/dist/components/dialog.d.ts +48 -0
  151. package/dist/components/dialog.js +92 -0
  152. package/dist/components/direction.d.ts +16 -0
  153. package/dist/components/direction.js +18 -0
  154. package/dist/components/drawer.d.ts +60 -0
  155. package/dist/components/drawer.js +76 -0
  156. package/dist/components/empty.d.ts +31 -0
  157. package/dist/components/empty.js +50 -0
  158. package/dist/components/feature-list.d.ts +54 -0
  159. package/dist/components/feature-list.js +43 -0
  160. package/dist/components/field.d.ts +15 -0
  161. package/dist/components/field.js +36 -0
  162. package/dist/components/file-drop.d.ts +55 -0
  163. package/dist/components/file-drop.js +197 -0
  164. package/dist/components/filter-bar.d.ts +106 -0
  165. package/dist/components/filter-bar.js +296 -0
  166. package/dist/components/form.d.ts +33 -0
  167. package/dist/components/form.js +34 -0
  168. package/dist/components/graph.d.ts +105 -0
  169. package/dist/components/graph.js +786 -0
  170. package/dist/components/illustration.d.ts +85 -0
  171. package/dist/components/illustration.js +165 -0
  172. package/dist/components/input-group.d.ts +127 -0
  173. package/dist/components/input-group.js +292 -0
  174. package/dist/components/input.d.ts +16 -0
  175. package/dist/components/input.js +25 -0
  176. package/dist/components/item.d.ts +64 -0
  177. package/dist/components/item.js +116 -0
  178. package/dist/components/kbd.d.ts +33 -0
  179. package/dist/components/kbd.js +38 -0
  180. package/dist/components/label.d.ts +12 -0
  181. package/dist/components/label.js +24 -0
  182. package/dist/components/layout.d.ts +136 -0
  183. package/dist/components/layout.js +162 -0
  184. package/dist/components/logo.d.ts +54 -0
  185. package/dist/components/logo.js +96 -0
  186. package/dist/components/menu.d.ts +60 -0
  187. package/dist/components/menu.js +138 -0
  188. package/dist/components/menubar.d.ts +62 -0
  189. package/dist/components/menubar.js +223 -0
  190. package/dist/components/message.d.ts +42 -0
  191. package/dist/components/message.js +56 -0
  192. package/dist/components/meter.d.ts +31 -0
  193. package/dist/components/meter.js +25 -0
  194. package/dist/components/native-select.d.ts +26 -0
  195. package/dist/components/native-select.js +35 -0
  196. package/dist/components/navigation-menu.d.ts +42 -0
  197. package/dist/components/navigation-menu.js +97 -0
  198. package/dist/components/number-field.d.ts +36 -0
  199. package/dist/components/number-field.js +153 -0
  200. package/dist/components/otp-field.d.ts +35 -0
  201. package/dist/components/otp-field.js +94 -0
  202. package/dist/components/pagination.d.ts +31 -0
  203. package/dist/components/pagination.js +70 -0
  204. package/dist/components/pdf-viewer.d.ts +69 -0
  205. package/dist/components/pdf-viewer.js +929 -0
  206. package/dist/components/popover.d.ts +33 -0
  207. package/dist/components/popover.js +48 -0
  208. package/dist/components/preview-card.d.ts +25 -0
  209. package/dist/components/preview-card.js +22 -0
  210. package/dist/components/progress.d.ts +27 -0
  211. package/dist/components/progress.js +23 -0
  212. package/dist/components/prompt-input.d.ts +131 -0
  213. package/dist/components/prompt-input.js +403 -0
  214. package/dist/components/quote.d.ts +22 -0
  215. package/dist/components/quote.js +15 -0
  216. package/dist/components/radio-group.d.ts +18 -0
  217. package/dist/components/radio-group.js +34 -0
  218. package/dist/components/reasoning.d.ts +31 -0
  219. package/dist/components/reasoning.js +70 -0
  220. package/dist/components/resizable.d.ts +38 -0
  221. package/dist/components/resizable.js +41 -0
  222. package/dist/components/response.d.ts +30 -0
  223. package/dist/components/response.js +538 -0
  224. package/dist/components/scroll-area.d.ts +33 -0
  225. package/dist/components/scroll-area.js +31 -0
  226. package/dist/components/select.d.ts +35 -0
  227. package/dist/components/select.js +60 -0
  228. package/dist/components/separator.d.ts +14 -0
  229. package/dist/components/separator.js +17 -0
  230. package/dist/components/sidebar.d.ts +147 -0
  231. package/dist/components/sidebar.js +489 -0
  232. package/dist/components/site-header.d.ts +59 -0
  233. package/dist/components/site-header.js +67 -0
  234. package/dist/components/skeleton.d.ts +31 -0
  235. package/dist/components/skeleton.js +29 -0
  236. package/dist/components/slider.d.ts +24 -0
  237. package/dist/components/slider.js +129 -0
  238. package/dist/components/sources.d.ts +25 -0
  239. package/dist/components/sources.js +35 -0
  240. package/dist/components/spinner.d.ts +36 -0
  241. package/dist/components/spinner.js +72 -0
  242. package/dist/components/suggestions.d.ts +20 -0
  243. package/dist/components/suggestions.js +18 -0
  244. package/dist/components/switch.d.ts +14 -0
  245. package/dist/components/switch.js +26 -0
  246. package/dist/components/table.d.ts +162 -0
  247. package/dist/components/table.js +758 -0
  248. package/dist/components/tabs.d.ts +25 -0
  249. package/dist/components/tabs.js +162 -0
  250. package/dist/components/tag.d.ts +41 -0
  251. package/dist/components/tag.js +88 -0
  252. package/dist/components/tags-input.d.ts +40 -0
  253. package/dist/components/tags-input.js +239 -0
  254. package/dist/components/textarea.d.ts +13 -0
  255. package/dist/components/textarea.js +16 -0
  256. package/dist/components/theme.d.ts +41 -0
  257. package/dist/components/theme.js +112 -0
  258. package/dist/components/time-field.d.ts +51 -0
  259. package/dist/components/time-field.js +437 -0
  260. package/dist/components/timeline.d.ts +76 -0
  261. package/dist/components/timeline.js +99 -0
  262. package/dist/components/toast.d.ts +72 -0
  263. package/dist/components/toast.js +196 -0
  264. package/dist/components/toggle-group.d.ts +41 -0
  265. package/dist/components/toggle-group.js +140 -0
  266. package/dist/components/toggle.d.ts +23 -0
  267. package/dist/components/toggle.js +35 -0
  268. package/dist/components/tool-call.d.ts +52 -0
  269. package/dist/components/tool-call.js +57 -0
  270. package/dist/components/toolbar.d.ts +17 -0
  271. package/dist/components/toolbar.js +34 -0
  272. package/dist/components/tooltip.d.ts +42 -0
  273. package/dist/components/tooltip.js +47 -0
  274. package/dist/components/tree.d.ts +75 -0
  275. package/dist/components/tree.js +636 -0
  276. package/dist/components/typography.d.ts +134 -0
  277. package/dist/components/typography.js +176 -0
  278. package/dist/components/video-player.d.ts +276 -0
  279. package/dist/components/video-player.js +1352 -0
  280. package/dist/components/whiteboard.d.ts +80 -0
  281. package/dist/components/whiteboard.js +389 -0
  282. package/dist/index.d.ts +85 -0
  283. package/dist/index.js +86 -0
  284. package/dist/lib/cn.d.ts +20 -0
  285. package/dist/lib/cn.js +38 -0
  286. package/dist/lib/code-highlight.d.ts +31 -0
  287. package/dist/lib/code-highlight.js +24 -0
  288. package/dist/lib/code-theme.d.ts +19 -0
  289. package/dist/lib/code-theme.js +140 -0
  290. package/dist/lib/collapse-row.d.ts +9 -0
  291. package/dist/lib/collapse-row.js +129 -0
  292. package/dist/lib/digit-roll.d.ts +21 -0
  293. package/dist/lib/digit-roll.js +31 -0
  294. package/dist/lib/editorial-assets.d.ts +16 -0
  295. package/dist/lib/editorial-assets.js +56 -0
  296. package/dist/lib/figure/catalog.d.ts +127 -0
  297. package/dist/lib/figure/catalog.js +130 -0
  298. package/dist/lib/figure/figures/automation.d.ts +7 -0
  299. package/dist/lib/figure/figures/automation.js +143 -0
  300. package/dist/lib/figure/figures/bar-chart.d.ts +7 -0
  301. package/dist/lib/figure/figures/bar-chart.js +99 -0
  302. package/dist/lib/figure/figures/brackets-classic.d.ts +11 -0
  303. package/dist/lib/figure/figures/brackets-classic.js +170 -0
  304. package/dist/lib/figure/figures/brackets.d.ts +8 -0
  305. package/dist/lib/figure/figures/brackets.js +84 -0
  306. package/dist/lib/figure/figures/city.d.ts +7 -0
  307. package/dist/lib/figure/figures/city.js +93 -0
  308. package/dist/lib/figure/figures/conveyor.d.ts +7 -0
  309. package/dist/lib/figure/figures/conveyor.js +97 -0
  310. package/dist/lib/figure/figures/database.d.ts +7 -0
  311. package/dist/lib/figure/figures/database.js +65 -0
  312. package/dist/lib/figure/figures/documents.d.ts +7 -0
  313. package/dist/lib/figure/figures/documents.js +83 -0
  314. package/dist/lib/figure/figures/inbox.d.ts +7 -0
  315. package/dist/lib/figure/figures/inbox.js +92 -0
  316. package/dist/lib/figure/figures/laptop.d.ts +7 -0
  317. package/dist/lib/figure/figures/laptop.js +67 -0
  318. package/dist/lib/figure/figures/monitor.d.ts +7 -0
  319. package/dist/lib/figure/figures/monitor.js +59 -0
  320. package/dist/lib/figure/figures/pipeline.d.ts +8 -0
  321. package/dist/lib/figure/figures/pipeline.js +117 -0
  322. package/dist/lib/figure/figures/platform.d.ts +7 -0
  323. package/dist/lib/figure/figures/platform.js +117 -0
  324. package/dist/lib/figure/figures/server.d.ts +7 -0
  325. package/dist/lib/figure/figures/server.js +115 -0
  326. package/dist/lib/figure/figures/spreadsheet.d.ts +7 -0
  327. package/dist/lib/figure/figures/spreadsheet.js +87 -0
  328. package/dist/lib/figure/figures/timeline.d.ts +7 -0
  329. package/dist/lib/figure/figures/timeline.js +65 -0
  330. package/dist/lib/figure/kernel.d.ts +152 -0
  331. package/dist/lib/figure/kernel.js +576 -0
  332. package/dist/lib/figure/parts.d.ts +42 -0
  333. package/dist/lib/figure/parts.js +126 -0
  334. package/dist/lib/form-reset.d.ts +11 -0
  335. package/dist/lib/form-reset.js +22 -0
  336. package/dist/lib/glide.d.ts +53 -0
  337. package/dist/lib/glide.js +138 -0
  338. package/dist/lib/graph-layout.d.ts +58 -0
  339. package/dist/lib/graph-layout.js +200 -0
  340. package/dist/lib/illustration-drawings.d.ts +89 -0
  341. package/dist/lib/illustration-drawings.js +539 -0
  342. package/dist/lib/illustration-info.d.ts +37 -0
  343. package/dist/lib/illustration-info.js +22 -0
  344. package/dist/lib/illustration-library.d.ts +87 -0
  345. package/dist/lib/illustration-library.js +352 -0
  346. package/dist/lib/logo-geometry.d.ts +29 -0
  347. package/dist/lib/logo-geometry.js +67 -0
  348. package/dist/lib/markdown-guard.d.ts +16 -0
  349. package/dist/lib/markdown-guard.js +123 -0
  350. package/dist/lib/merge-refs.d.ts +10 -0
  351. package/dist/lib/merge-refs.js +26 -0
  352. package/dist/lib/motion.d.ts +6 -0
  353. package/dist/lib/motion.js +12 -0
  354. package/dist/lib/pdf-worker.d.ts +1 -0
  355. package/dist/lib/pdf-worker.js +6 -0
  356. package/dist/lib/pdf.d.ts +19 -0
  357. package/dist/lib/pdf.js +58 -0
  358. package/dist/lib/platform.d.ts +33 -0
  359. package/dist/lib/platform.js +68 -0
  360. package/dist/lib/room.d.ts +25 -0
  361. package/dist/lib/room.js +46 -0
  362. package/dist/lib/table-fit.d.ts +143 -0
  363. package/dist/lib/table-fit.js +577 -0
  364. package/dist/lib/theme-script.d.ts +18 -0
  365. package/dist/lib/theme-script.js +29 -0
  366. package/dist/styles/expressive.css +188 -0
  367. package/dist/styles/fonts.css +145 -0
  368. package/dist/styles/index.css +206 -0
  369. package/dist/styles/material.css +313 -0
  370. package/dist/styles/parts/ai.css +360 -0
  371. package/dist/styles/parts/brand.css +75 -0
  372. package/dist/styles/parts/controls.css +725 -0
  373. package/dist/styles/parts/data.css +222 -0
  374. package/dist/styles/parts/editorial.css +120 -0
  375. package/dist/styles/parts/feedback.css +273 -0
  376. package/dist/styles/parts/foundations.css +166 -0
  377. package/dist/styles/parts/graph.css +214 -0
  378. package/dist/styles/parts/inputs.css +261 -0
  379. package/dist/styles/parts/isometric.css +124 -0
  380. package/dist/styles/parts/navigation.css +232 -0
  381. package/dist/styles/parts/overlays.css +250 -0
  382. package/dist/styles/parts/pdf.css +154 -0
  383. package/dist/styles/parts/react-flow.css +519 -0
  384. package/dist/styles/parts/whiteboard.css +855 -0
  385. package/dist/styles/tokens.css +290 -0
  386. package/dist/vite.d.ts +116 -0
  387. package/dist/vite.js +129 -0
  388. package/package.json +189 -3
@@ -0,0 +1,127 @@
1
+ import type { Figure } from "./kernel.js";
2
+ export interface FigureSpec {
3
+ /** The id within the library is `iso/<name>`. */
4
+ name: string;
5
+ title: string;
6
+ tags: readonly string[];
7
+ /** What it stands for in zon's work: use it for that, not as decoration. */
8
+ meaning: string;
9
+ /** How it answers the pointer. */
10
+ motion: string;
11
+ load: () => Promise<{
12
+ default: Figure;
13
+ }>;
14
+ }
15
+ export declare const FIGURES: readonly [{
16
+ readonly name: "brackets";
17
+ readonly title: "zon brackets";
18
+ readonly tags: readonly ["brand", "logo", "mark", "404", "cover"];
19
+ readonly meaning: "The mark itself — brand moments, covers, the 404 page.";
20
+ readonly motion: "As the pointer comes near, the brackets drop their arms onto the plinth, one after the other; they rise back when it leaves.";
21
+ readonly load: () => Promise<typeof import("./figures/brackets.js")>;
22
+ }, {
23
+ readonly name: "brackets-classic";
24
+ readonly title: "zon brackets, classic";
25
+ readonly tags: readonly ["brand", "logo", "mark", "404", "cover", "solid"];
26
+ readonly meaning: "The mark itself in the first, solid style — ink brackets on a white plinth, for brand moments that want weight.";
27
+ readonly motion: "On hover the brackets open apart, like the website logo; they close when the pointer leaves.";
28
+ readonly load: () => Promise<typeof import("./figures/brackets-classic.js")>;
29
+ }, {
30
+ readonly name: "server";
31
+ readonly title: "Server";
32
+ readonly tags: readonly ["infrastructure", "hosting", "operations", "backend"];
33
+ readonly meaning: "Infrastructure, hosting, reliable operations.";
34
+ readonly motion: "The pointer's height pulls a unit out, its neighbours less; above the rack it lifts the lid and the fans spin.";
35
+ readonly load: () => Promise<typeof import("./figures/server.js")>;
36
+ }, {
37
+ readonly name: "database";
38
+ readonly title: "Database";
39
+ readonly tags: readonly ["data", "storage", "migration", "source of truth"];
40
+ readonly meaning: "Data, a single source of truth, migrations.";
41
+ readonly motion: "The pointer's height opens the stack at that level; the open platter's read arm lights.";
42
+ readonly load: () => Promise<typeof import("./figures/database.js")>;
43
+ }, {
44
+ readonly name: "laptop";
45
+ readonly title: "Laptop";
46
+ readonly tags: readonly ["software", "internal tools", "dashboard", "app"];
47
+ readonly meaning: "Custom software, internal tools, dashboards.";
48
+ readonly motion: "The pointer's height sets the lid on its hinge; it follows on a spring.";
49
+ readonly load: () => Promise<typeof import("./figures/laptop.js")>;
50
+ }, {
51
+ readonly name: "monitor";
52
+ readonly title: "Monitor";
53
+ readonly tags: readonly ["reporting", "analytics", "monitoring", "insight"];
54
+ readonly meaning: "Reporting and monitoring: seeing what happens.";
55
+ readonly motion: "A cursor follows the pointer across the chart and stands on the line; at rest it marks the latest value.";
56
+ readonly load: () => Promise<typeof import("./figures/monitor.js")>;
57
+ }, {
58
+ readonly name: "documents";
59
+ readonly title: "Documents";
60
+ readonly tags: readonly ["documents", "paperwork", "contracts", "approval"];
61
+ readonly meaning: "Paperwork, contracts and approvals — what gets digitalised.";
62
+ readonly motion: "On the stack the top page lifts out and the signature writes itself as far as the pointer moves across.";
63
+ readonly load: () => Promise<typeof import("./figures/documents.js")>;
64
+ }, {
65
+ readonly name: "spreadsheet";
66
+ readonly title: "Spreadsheet";
67
+ readonly tags: readonly ["excel", "manual work", "fragile", "legacy"];
68
+ readonly meaning: "The fragile spreadsheet a process depends on.";
69
+ readonly motion: "Cells near the pointer rise; bring it to the loose cell and the cell settles back into place.";
70
+ readonly load: () => Promise<typeof import("./figures/spreadsheet.js")>;
71
+ }, {
72
+ readonly name: "conveyor";
73
+ readonly title: "Conveyor";
74
+ readonly tags: readonly ["automation", "process", "throughput", "operations"];
75
+ readonly meaning: "An automated process: work moving through steps without hands.";
76
+ readonly motion: "Crates ride the belt and the press comes down on each, stamping the mark on its lid.";
77
+ readonly load: () => Promise<typeof import("./figures/conveyor.js")>;
78
+ }, {
79
+ readonly name: "bar-chart";
80
+ readonly title: "Bar chart";
81
+ readonly tags: readonly ["growth", "results", "metrics", "progress"];
82
+ readonly meaning: "Growth and results over time.";
83
+ readonly motion: "The pointer brushes the columns; click a column to add a block, right-click to take one off.";
84
+ readonly load: () => Promise<typeof import("./figures/bar-chart.js")>;
85
+ }, {
86
+ readonly name: "inbox";
87
+ readonly title: "Envelope";
88
+ readonly tags: readonly ["email", "inbox", "requests", "intake", "communication"];
89
+ readonly meaning: "Incoming requests and email — where much manual work starts.";
90
+ readonly motion: "The pointer's height opens the flap; past upright it folds back and the letter slides out.";
91
+ readonly load: () => Promise<typeof import("./figures/inbox.js")>;
92
+ }, {
93
+ readonly name: "platform";
94
+ readonly title: "Platform";
95
+ readonly tags: readonly ["foundation", "platform", "modules", "architecture"];
96
+ readonly meaning: "A solid foundation that new modules plug into.";
97
+ readonly motion: "Modules near the pointer rise; an empty tile shows the module that would fit. Click to plug one in or take it out.";
98
+ readonly load: () => Promise<typeof import("./figures/platform.js")>;
99
+ }, {
100
+ readonly name: "automation";
101
+ readonly title: "Automation";
102
+ readonly tags: readonly ["automation", "integration", "process", "system", "scene"];
103
+ readonly meaning: "A process running as one connected system — what automating and integrating does.";
104
+ readonly motion: "Pulses run out along the connections; each step lights up as one lands — it fills, hops and sends out a ripple. The step nearest the pointer rises and its connection streams.";
105
+ readonly load: () => Promise<typeof import("./figures/automation.js")>;
106
+ }, {
107
+ readonly name: "pipeline";
108
+ readonly title: "Data pipeline";
109
+ readonly tags: readonly ["data", "pipeline", "etl", "integration", "flow", "dashboard", "scene"];
110
+ readonly meaning: "Data moving from the tools a company already uses, through processing, into one place people can read.";
111
+ readonly motion: "Blocks flow from the sources through the scanner, raw cubes out as processed tiles, past the processor into the warehouse; the dashboard takes each reading.";
112
+ readonly load: () => Promise<typeof import("./figures/pipeline.js")>;
113
+ }, {
114
+ readonly name: "timeline";
115
+ readonly title: "Timeline";
116
+ readonly tags: readonly ["process", "steps", "project", "roadmap", "phases"];
117
+ readonly meaning: "A project's steps, from discovery to maintenance.";
118
+ readonly motion: "The pointer picks a step: it rises, its neighbours follow one after another, and the marker travels to it.";
119
+ readonly load: () => Promise<typeof import("./figures/timeline.js")>;
120
+ }, {
121
+ readonly name: "city";
122
+ readonly title: "City";
123
+ readonly tags: readonly ["integration", "systems", "landscape", "architecture", "scene"];
124
+ readonly meaning: "A company's systems as a city, joined along its streets.";
125
+ readonly motion: "The building nearest the pointer rises and pulses run out to the systems it talks to.";
126
+ readonly load: () => Promise<typeof import("./figures/city.js")>;
127
+ }];
@@ -0,0 +1,130 @@
1
+ export const FIGURES = [
2
+ {
3
+ name: "brackets",
4
+ title: "zon brackets",
5
+ tags: ["brand", "logo", "mark", "404", "cover"],
6
+ meaning: "The mark itself — brand moments, covers, the 404 page.",
7
+ motion: "As the pointer comes near, the brackets drop their arms onto the plinth, one after the other; they rise back when it leaves.",
8
+ load: () => import("./figures/brackets.js"),
9
+ },
10
+ {
11
+ name: "brackets-classic",
12
+ title: "zon brackets, classic",
13
+ tags: ["brand", "logo", "mark", "404", "cover", "solid"],
14
+ meaning: "The mark itself in the first, solid style — ink brackets on a white plinth, for brand moments that want weight.",
15
+ motion: "On hover the brackets open apart, like the website logo; they close when the pointer leaves.",
16
+ load: () => import("./figures/brackets-classic.js"),
17
+ },
18
+ {
19
+ name: "server",
20
+ title: "Server",
21
+ tags: ["infrastructure", "hosting", "operations", "backend"],
22
+ meaning: "Infrastructure, hosting, reliable operations.",
23
+ motion: "The pointer's height pulls a unit out, its neighbours less; above the rack it lifts the lid and the fans spin.",
24
+ load: () => import("./figures/server.js"),
25
+ },
26
+ {
27
+ name: "database",
28
+ title: "Database",
29
+ tags: ["data", "storage", "migration", "source of truth"],
30
+ meaning: "Data, a single source of truth, migrations.",
31
+ motion: "The pointer's height opens the stack at that level; the open platter's read arm lights.",
32
+ load: () => import("./figures/database.js"),
33
+ },
34
+ {
35
+ name: "laptop",
36
+ title: "Laptop",
37
+ tags: ["software", "internal tools", "dashboard", "app"],
38
+ meaning: "Custom software, internal tools, dashboards.",
39
+ motion: "The pointer's height sets the lid on its hinge; it follows on a spring.",
40
+ load: () => import("./figures/laptop.js"),
41
+ },
42
+ {
43
+ name: "monitor",
44
+ title: "Monitor",
45
+ tags: ["reporting", "analytics", "monitoring", "insight"],
46
+ meaning: "Reporting and monitoring: seeing what happens.",
47
+ motion: "A cursor follows the pointer across the chart and stands on the line; at rest it marks the latest value.",
48
+ load: () => import("./figures/monitor.js"),
49
+ },
50
+ {
51
+ name: "documents",
52
+ title: "Documents",
53
+ tags: ["documents", "paperwork", "contracts", "approval"],
54
+ meaning: "Paperwork, contracts and approvals — what gets digitalised.",
55
+ motion: "On the stack the top page lifts out and the signature writes itself as far as the pointer moves across.",
56
+ load: () => import("./figures/documents.js"),
57
+ },
58
+ {
59
+ name: "spreadsheet",
60
+ title: "Spreadsheet",
61
+ tags: ["excel", "manual work", "fragile", "legacy"],
62
+ meaning: "The fragile spreadsheet a process depends on.",
63
+ motion: "Cells near the pointer rise; bring it to the loose cell and the cell settles back into place.",
64
+ load: () => import("./figures/spreadsheet.js"),
65
+ },
66
+ {
67
+ name: "conveyor",
68
+ title: "Conveyor",
69
+ tags: ["automation", "process", "throughput", "operations"],
70
+ meaning: "An automated process: work moving through steps without hands.",
71
+ motion: "Crates ride the belt and the press comes down on each, stamping the mark on its lid.",
72
+ load: () => import("./figures/conveyor.js"),
73
+ },
74
+ {
75
+ name: "bar-chart",
76
+ title: "Bar chart",
77
+ tags: ["growth", "results", "metrics", "progress"],
78
+ meaning: "Growth and results over time.",
79
+ motion: "The pointer brushes the columns; click a column to add a block, right-click to take one off.",
80
+ load: () => import("./figures/bar-chart.js"),
81
+ },
82
+ {
83
+ name: "inbox",
84
+ title: "Envelope",
85
+ tags: ["email", "inbox", "requests", "intake", "communication"],
86
+ meaning: "Incoming requests and email — where much manual work starts.",
87
+ motion: "The pointer's height opens the flap; past upright it folds back and the letter slides out.",
88
+ load: () => import("./figures/inbox.js"),
89
+ },
90
+ {
91
+ name: "platform",
92
+ title: "Platform",
93
+ tags: ["foundation", "platform", "modules", "architecture"],
94
+ meaning: "A solid foundation that new modules plug into.",
95
+ motion: "Modules near the pointer rise; an empty tile shows the module that would fit. Click to plug one in or take it out.",
96
+ load: () => import("./figures/platform.js"),
97
+ },
98
+ {
99
+ name: "automation",
100
+ title: "Automation",
101
+ tags: ["automation", "integration", "process", "system", "scene"],
102
+ meaning: "A process running as one connected system — what automating and integrating does.",
103
+ motion: "Pulses run out along the connections; each step lights up as one lands — it fills, hops and sends out a ripple. The step nearest the pointer rises and its connection streams.",
104
+ load: () => import("./figures/automation.js"),
105
+ },
106
+ {
107
+ name: "pipeline",
108
+ title: "Data pipeline",
109
+ tags: ["data", "pipeline", "etl", "integration", "flow", "dashboard", "scene"],
110
+ meaning: "Data moving from the tools a company already uses, through processing, into one place people can read.",
111
+ motion: "Blocks flow from the sources through the scanner, raw cubes out as processed tiles, past the processor into the warehouse; the dashboard takes each reading.",
112
+ load: () => import("./figures/pipeline.js"),
113
+ },
114
+ {
115
+ name: "timeline",
116
+ title: "Timeline",
117
+ tags: ["process", "steps", "project", "roadmap", "phases"],
118
+ meaning: "A project's steps, from discovery to maintenance.",
119
+ motion: "The pointer picks a step: it rises, its neighbours follow one after another, and the marker travels to it.",
120
+ load: () => import("./figures/timeline.js"),
121
+ },
122
+ {
123
+ name: "city",
124
+ title: "City",
125
+ tags: ["integration", "systems", "landscape", "architecture", "scene"],
126
+ meaning: "A company's systems as a city, joined along its streets.",
127
+ motion: "The building nearest the pointer rises and pulses run out to the systems it talks to.",
128
+ load: () => import("./figures/city.js"),
129
+ },
130
+ ];
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Automation — a process as one system: steps wired to a hub in four branches. Pulses run out along
3
+ * the connections; the step nearest the pointer rises and its connection streams.
4
+ */
5
+ import { type Figure } from "../kernel.js";
6
+ declare const figure: Figure;
7
+ export default figure;
@@ -0,0 +1,143 @@
1
+ /**
2
+ * Automation — a process as one system: steps wired to a hub in four branches. Pulses run out along
3
+ * the connections; the step nearest the pointer rises and its connection streams.
4
+ */
5
+ import { Spring, falloff, fitPoints, line, rrect } from "../kernel.js";
6
+ import { faceLine, faceRect, markOutline, poly, pulse, topFace } from "../parts.js";
7
+ const figure = {
8
+ mount(ctx) {
9
+ const half = 1.05;
10
+ const th = 0.3;
11
+ const steps = [];
12
+ [
13
+ [1, 0],
14
+ [0, 1],
15
+ [-1, 0],
16
+ [0, -1],
17
+ ].forEach(([dx, dy], j) => {
18
+ const [px, py] = [-dy, dx];
19
+ const a = [6.5 * dx, 6.5 * dy];
20
+ const first = [
21
+ [2.1 * dx, 2.1 * dy, 0.02],
22
+ [a[0] - half * dx, a[1] - half * dy, 0.02],
23
+ ];
24
+ steps.push({ x: a[0], y: a[1], icon: j % 3, route: first });
25
+ for (const side of [1, -1]) {
26
+ const bx = 10.5 * dx + 3.6 * side * px;
27
+ const by = 10.5 * dy + 3.6 * side * py;
28
+ steps.push({
29
+ x: bx,
30
+ y: by,
31
+ icon: (j + (side > 0 ? 1 : 2)) % 3,
32
+ route: [...first, [a[0] + half * side * px, a[1] + half * side * py, 0.02], [a[0] + 3.6 * side * px, a[1] + 3.6 * side * py, 0.02], [bx - half * dx, by - half * dy, 0.02]],
33
+ });
34
+ }
35
+ });
36
+ // The footprint is a cross, not a square, so the camera fits the steps themselves rather
37
+ // than their box, whose empty corners would shrink the figure to half its frame: each step
38
+ // with its ripple at mid-flight on the ground, and its top face lifted and hopping (rule 03).
39
+ const RIPPLE = half + 0.65;
40
+ const LIFT = th + 0.6 + 0.3;
41
+ const cam = fitPoints(steps.flatMap((s) => [-1, 1].flatMap((u) => [-1, 1].flatMap((v) => [
42
+ [s.x + u * RIPPLE, s.y + v * RIPPLE, 0],
43
+ [s.x + u * half, s.y + v * half, LIFT],
44
+ ]))), 14);
45
+ const guides = ctx.path("guide");
46
+ guides.attr("d", steps.map((s, i) => poly(cam, i % 3 === 0 ? s.route : s.route.slice(2))).join(""));
47
+ const flows = steps.map(() => ctx.path("pulse"));
48
+ const pieces = [...steps.map((s, i) => ({ i, depth: s.x + s.y })), { i: -1, depth: 0 }].sort((a, b) => a.depth - b.depth);
49
+ const tiles = [];
50
+ let hub;
51
+ const hubMark = ctx.path("mid");
52
+ for (const p of pieces) {
53
+ if (p.i < 0) {
54
+ hub = ctx.box(-2, -2, 2, 2, 0, 0.8, { r: 0.45, b: 0.3 });
55
+ hub.g.append(hubMark);
56
+ continue;
57
+ }
58
+ const s = steps[p.i];
59
+ const box = ctx.box(s.x - half, s.y - half, s.x + half, s.y + half, 0, th, { r: 0.25, b: 0.15 });
60
+ // A bouncier spring for the hop on arrival: it lands.
61
+ tiles[p.i] = { box, icon: ctx.path("crease", box.g), ring: ctx.path("hi", box.g), lift: new Spring(0), bump: new Spring(0, 170, 9) };
62
+ }
63
+ const mark = markOutline(2.0);
64
+ // Idle, each step's pulse comes round once a long cycle (spread out, so only a few run at a
65
+ // time); the step in focus streams.
66
+ const IDLE = 6;
67
+ const phases = steps.map((_, i) => (i * 2.37) % IDLE);
68
+ // When a pulse reaches its step, the step lights up for a moment.
69
+ const lit = steps.map(() => -Infinity);
70
+ let clock = 0;
71
+ let near = -1;
72
+ const draw = () => {
73
+ steps.forEach((s, i) => {
74
+ const t = tiles[i];
75
+ const z = t.lift.x + t.bump.x;
76
+ t.box.draw(cam, [0, 0, z]);
77
+ const f = topFace(cam, s.x - half, s.y - half, th + z);
78
+ t.icon.attr("d", s.icon === 0
79
+ ? faceRect(f, 0.62, 0.42, 0.86, 1.26, 0.08) + [0.75, 1.0, 1.25].map((v) => faceLine(f, [0.78, v], [1.32, v])).join("")
80
+ : s.icon === 1
81
+ ? faceRect(f, 0.45, 0.55, 1.2, 1.0, 0.08) + faceLine(f, [0.85, 0.55], [0.85, 1.55]) + faceLine(f, [1.25, 0.55], [1.25, 1.55]) + faceLine(f, [0.45, 1.05], [1.65, 1.05])
82
+ : faceRect(f, 0.45, 0.6, 1.2, 0.9, 0.08) + faceLine(f, [0.45, 0.6], [1.05, 1.05]) + faceLine(f, [1.05, 1.05], [1.65, 0.6]));
83
+ const since = clock - lit[i];
84
+ t.box.hi(i === near);
85
+ t.box.g.cls("lit", since < 0.5);
86
+ // The ripple: an outline round the step that grows and fades as the light lands.
87
+ const k = since / 0.7;
88
+ if (k < 1) {
89
+ const g = half + 0.1 + k * 1.1;
90
+ t.ring.attr("d", line(rrect(s.x - g, s.y - g, s.x + g, s.y + g, 0.3 + k * 0.6, 4).map(([x, y]) => cam.P(x, y, th + z)), true));
91
+ t.ring.attr("opacity", (1 - k).toFixed(3));
92
+ }
93
+ else
94
+ t.ring.attr("d", null);
95
+ flows[i].attr("d", near < 0 || i === near ? pulse(cam, s.route, phases[i], 1.2) : null);
96
+ });
97
+ hub.draw(cam);
98
+ const top = topFace(cam, -2, -2, 0.8);
99
+ hubMark.attr("d", mark.map((m) => line(m.map(([u, v]) => top(1.0 + u, 1.0 + v)), true)).join(""));
100
+ };
101
+ ctx.loop((dt) => {
102
+ const p = ctx.pointer;
103
+ near = -1;
104
+ if (p.over) {
105
+ const [gx, gy] = cam.unproj(p.x, p.y, 0);
106
+ let bd = Infinity;
107
+ steps.forEach((s, i) => {
108
+ const dd = Math.hypot(gx - s.x, gy - s.y);
109
+ tiles[i].lift.t = 0.6 * falloff(dd, 4.5);
110
+ if (dd < bd)
111
+ [near, bd] = [i, dd];
112
+ });
113
+ }
114
+ else
115
+ tiles.forEach((t) => (t.lift.t = 0));
116
+ clock += dt;
117
+ if (!ctx.reduced)
118
+ phases.forEach((ph, i) => {
119
+ const next = ph + dt * (i === near ? 0.9 : 0.3);
120
+ // The pulse's head reaches the step at 1; it is drawn until its tail has arrived too.
121
+ if (ph < 1 && next >= 1 && (near < 0 || i === near)) {
122
+ lit[i] = clock;
123
+ // A kick upward: the step hops and settles.
124
+ tiles[i].bump.v = 4.2;
125
+ }
126
+ phases[i] = next % (i === near ? 1.25 : IDLE);
127
+ });
128
+ for (const t of tiles) {
129
+ t.lift.step(dt, ctx.reduced);
130
+ t.bump.step(dt, ctx.reduced);
131
+ // It lands on the ground, never through it.
132
+ if (t.bump.x < 0) {
133
+ t.bump.x = 0;
134
+ t.bump.v = Math.abs(t.bump.v) * 0.3;
135
+ }
136
+ }
137
+ draw();
138
+ return true;
139
+ });
140
+ draw();
141
+ },
142
+ };
143
+ export default figure;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Bar chart — four columns of blocks on a plinth. The pointer brushes them: the nearest column
3
+ * lifts and its top block is the bright one. Click a column to add a block, right-click to take one.
4
+ */
5
+ import { type Figure } from "../kernel.js";
6
+ declare const figure: Figure;
7
+ export default figure;
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Bar chart — four columns of blocks on a plinth. The pointer brushes them: the nearest column
3
+ * lifts and its top block is the bright one. Click a column to add a block, right-click to take one.
4
+ */
5
+ import { Spring, falloff, fit } from "../kernel.js";
6
+ import { bandIndex } from "../parts.js";
7
+ const figure = {
8
+ mount(ctx) {
9
+ const unit = 0.6;
10
+ const max = 9;
11
+ const counts = [2, 4, 6, 8];
12
+ const xs = [0.7, 3.0, 5.3, 7.6];
13
+ const s = 1.6;
14
+ const cam = fit([
15
+ [0, 0, -0.5],
16
+ [10, 3, -0.5],
17
+ [0, 0, max * unit + 0.8],
18
+ [10, 0.7, max * unit + 0.8],
19
+ ], 28);
20
+ ctx.box(0, 0, 10, 3, -0.5, 0, { r: 0.45, b: 0.3 }).draw(cam);
21
+ const slots = ctx.path("guide");
22
+ slots.attr("d", xs
23
+ .map((x) => {
24
+ const pts = [cam.P(x, 0.7, 0), cam.P(x + s, 0.7, 0), cam.P(x + s, 0.7 + s, 0), cam.P(x, 0.7 + s, 0)];
25
+ return `M${pts.map((p) => p.join(" ")).join("L")}Z`;
26
+ })
27
+ .join(""));
28
+ const cols = xs.map((x) => {
29
+ const g = ctx.g();
30
+ return {
31
+ g,
32
+ blocks: Array.from({ length: max }, (_, k) => ctx.box(x, 0.7, x + s, 0.7 + s, k * unit, k * unit + unit - 0.06, { r: 0.18, b: 0.12, parent: g })),
33
+ hop: new Spring(0),
34
+ drop: Array.from({ length: max }, () => new Spring(0)),
35
+ };
36
+ });
37
+ const bands = xs.map((x) => cam.P(x + s / 2, 0.7 + s / 2, 0)[0]);
38
+ let pick = 3;
39
+ // Blocks taken off: each lifts away and fades, the way a new one drops in, reversed.
40
+ let leaving = [];
41
+ const draw = () => {
42
+ cols.forEach((c, i) => c.blocks.forEach((b, k) => {
43
+ const gone = leaving.find((l) => l.i === i && l.k === k);
44
+ b.g.attr("opacity", gone ? (1 - gone.s.x).toFixed(3) : null);
45
+ if (k >= counts[i] && !gone) {
46
+ b.solid.sil.attr("d", null);
47
+ b.solid.crease.attr("d", null);
48
+ return;
49
+ }
50
+ b.draw(cam, [0, 0, c.hop.x + c.drop[k].x + (gone ? gone.s.x * 1.4 : 0)]);
51
+ b.hi(!gone && i === pick && k === counts[i] - 1);
52
+ }));
53
+ };
54
+ ctx.onClick((x, _y, e) => {
55
+ const i = Math.max(0, Math.min(3, Math.round(bandIndex(x, bands))));
56
+ if (e.button === 2) {
57
+ if (!counts[i])
58
+ return;
59
+ const k = --counts[i];
60
+ const s = new Spring(0);
61
+ s.t = 1;
62
+ leaving.push({ i, k, s });
63
+ }
64
+ else if (counts[i] < max) {
65
+ const k = counts[i]++;
66
+ // Put back before it had gone: it stops leaving.
67
+ leaving = leaving.filter((l) => !(l.i === i && l.k === k));
68
+ // A new block drops in from above and lands on a spring.
69
+ cols[i].drop[k].x = 1.6;
70
+ cols[i].drop[k].t = 0;
71
+ }
72
+ });
73
+ ctx.loop((dt) => {
74
+ const p = ctx.pointer;
75
+ if (p.over) {
76
+ const f = bandIndex(p.x, bands);
77
+ cols.forEach((c, i) => (c.hop.t = 0.5 * falloff(Math.abs(i - f), 1.4)));
78
+ pick = Math.max(0, Math.min(3, Math.round(f)));
79
+ }
80
+ else {
81
+ cols.forEach((c) => (c.hop.t = 0));
82
+ pick = 3;
83
+ }
84
+ let moving = false;
85
+ for (const c of cols)
86
+ for (const sp of [c.hop, ...c.drop])
87
+ if (sp.step(dt, ctx.reduced))
88
+ moving = true;
89
+ for (const l of leaving)
90
+ if (l.s.step(dt, ctx.reduced))
91
+ moving = true;
92
+ leaving = leaving.filter((l) => l.s.x < 0.98);
93
+ draw();
94
+ return moving;
95
+ });
96
+ draw();
97
+ },
98
+ };
99
+ export default figure;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Brackets, classic — the first iso mark, kept as it was: solid faces in true 30° isometric, ink
3
+ * brackets on a white plinth. When the pointer is on it, the brackets open apart like the website
4
+ * logo; they close again when it leaves.
5
+ *
6
+ * It does not follow the hairline rules on purpose — it is the solid drawing, with its own
7
+ * projection and tones (the `so-*` classes in isometric.css).
8
+ */
9
+ import { type Figure } from "../kernel.js";
10
+ declare const figure: Figure;
11
+ export default figure;