@celljs/ta-web 4.9.0 → 4.10.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 (376) hide show
  1. package/README.en.md +4 -3
  2. package/README.md +4 -3
  3. package/esm/browser/assistant/assistant-chat-list.js +8 -2
  4. package/esm/browser/assistant/assistant-extension.d.ts +8 -1
  5. package/esm/browser/assistant/assistant-extension.js +33 -5
  6. package/esm/browser/assistant/assistant-protocol.d.ts +3 -1
  7. package/esm/browser/assistant/assistant-task-source.d.ts +2 -0
  8. package/esm/browser/assistant/assistant-task-source.js +2 -0
  9. package/esm/browser/assistant/assistant-task-util.d.ts +8 -0
  10. package/esm/browser/assistant/assistant-task-util.js +13 -3
  11. package/esm/browser/assistant/assistant-tasks.js +3 -2
  12. package/esm/browser/assistant/assistant-view.js +81 -56
  13. package/esm/browser/assistant/assistant.d.ts +30 -1
  14. package/esm/browser/assistant/assistant.js +89 -6
  15. package/esm/browser/assistant/task-views.d.ts +40 -6
  16. package/esm/browser/assistant/task-views.js +73 -21
  17. package/esm/browser/avatar/dino-avatar.d.ts +3 -4
  18. package/esm/browser/avatar/dino-avatar.js +4 -178
  19. package/esm/browser/avatar/dino-face.d.ts +19 -0
  20. package/esm/browser/avatar/dino-face.js +142 -0
  21. package/esm/browser/avatar/dino-geometry.d.ts +11 -0
  22. package/esm/browser/avatar/dino-geometry.js +38 -0
  23. package/esm/browser/avatar/dino-kinds.d.ts +15 -0
  24. package/esm/browser/avatar/dino-kinds.js +544 -0
  25. package/esm/browser/avatar/dino-motion.js +1 -1
  26. package/esm/browser/avatar/dino-shape.d.ts +80 -0
  27. package/esm/browser/avatar/dino-shape.js +113 -0
  28. package/esm/browser/avatar/dino-species.d.ts +1 -61
  29. package/esm/browser/avatar/dino-species.js +2 -653
  30. package/esm/browser/chat/chat-packages.d.ts +39 -0
  31. package/esm/browser/chat/chat-packages.js +70 -0
  32. package/esm/browser/chat/chat-protocol.d.ts +23 -1
  33. package/esm/browser/chat/chat-stores.d.ts +59 -0
  34. package/esm/browser/chat/chat-stores.js +121 -0
  35. package/esm/browser/chat/chat-util.d.ts +17 -0
  36. package/esm/browser/chat/chat-util.js +61 -0
  37. package/esm/browser/chat/chat-view.js +33 -12
  38. package/esm/browser/chat/chat.d.ts +31 -39
  39. package/esm/browser/chat/chat.js +226 -175
  40. package/esm/browser/components/access-view.js +1 -1
  41. package/esm/browser/components/account-menu.js +1 -1
  42. package/esm/browser/components/app-nav.d.ts +6 -3
  43. package/esm/browser/components/app-nav.js +19 -10
  44. package/esm/browser/components/app-shell-hooks.d.ts +47 -0
  45. package/esm/browser/components/app-shell-hooks.js +169 -0
  46. package/esm/browser/components/app-view.js +81 -172
  47. package/esm/browser/components/auth-view.js +1 -1
  48. package/esm/browser/components/chat-list.d.ts +20 -2
  49. package/esm/browser/components/chat-list.js +138 -22
  50. package/esm/browser/components/composer-box.d.ts +5 -5
  51. package/esm/browser/components/composer-box.js +111 -4
  52. package/esm/browser/components/composer.d.ts +7 -0
  53. package/esm/browser/components/composer.js +22 -14
  54. package/esm/browser/components/connection-bar.js +50 -17
  55. package/esm/browser/components/context-menu.d.ts +30 -4
  56. package/esm/browser/components/context-menu.js +199 -37
  57. package/esm/browser/components/conversation-scroll.d.ts +129 -6
  58. package/esm/browser/components/conversation-scroll.js +429 -109
  59. package/esm/browser/components/dino.js +1 -1
  60. package/esm/browser/components/earlier-messages.d.ts +2 -1
  61. package/esm/browser/components/earlier-messages.js +2 -17
  62. package/esm/browser/components/editor-area.d.ts +3 -1
  63. package/esm/browser/components/editor-area.js +6 -5
  64. package/esm/browser/components/empty-pictures.d.ts +0 -2
  65. package/esm/browser/components/empty-pictures.js +0 -16
  66. package/esm/browser/components/folder-picker.d.ts +5 -2
  67. package/esm/browser/components/folder-picker.js +30 -9
  68. package/esm/browser/components/held-talk.d.ts +28 -0
  69. package/esm/browser/components/held-talk.js +76 -0
  70. package/esm/browser/components/host-view.d.ts +1 -1
  71. package/esm/browser/components/host-view.js +1 -1
  72. package/esm/browser/components/icon.d.ts +2 -2
  73. package/esm/browser/components/icon.js +5 -6
  74. package/esm/browser/components/image-viewer.d.ts +124 -0
  75. package/esm/browser/components/image-viewer.js +397 -0
  76. package/esm/browser/components/lightbox.d.ts +11 -0
  77. package/esm/browser/components/lightbox.js +24 -0
  78. package/esm/browser/components/markdown.d.ts +6 -2
  79. package/esm/browser/components/markdown.js +24 -10
  80. package/esm/browser/components/media.js +1 -10
  81. package/esm/browser/components/message-footer.d.ts +16 -2
  82. package/esm/browser/components/message-footer.js +29 -12
  83. package/esm/browser/components/message-list.d.ts +24 -3
  84. package/esm/browser/components/message-list.js +149 -20
  85. package/esm/browser/components/message-menu.d.ts +3 -1
  86. package/esm/browser/components/message-menu.js +18 -3
  87. package/esm/browser/components/nav-places.d.ts +16 -1
  88. package/esm/browser/components/nav-places.js +12 -3
  89. package/esm/browser/components/phone-shell.d.ts +4 -1
  90. package/esm/browser/components/phone-shell.js +3 -1
  91. package/esm/browser/components/run-status.js +3 -3
  92. package/esm/browser/components/select-bar.d.ts +9 -0
  93. package/esm/browser/components/select-bar.js +24 -0
  94. package/esm/browser/components/session-settings.d.ts +6 -0
  95. package/esm/browser/components/session-settings.js +14 -1
  96. package/esm/browser/components/session-view.js +8 -4
  97. package/esm/browser/components/settings-choices.d.ts +35 -0
  98. package/esm/browser/components/settings-choices.js +117 -0
  99. package/esm/browser/components/settings-parts.d.ts +21 -0
  100. package/esm/browser/components/settings-parts.js +323 -0
  101. package/esm/browser/components/settings-view.d.ts +0 -6
  102. package/esm/browser/components/settings-view.js +4 -406
  103. package/esm/browser/components/swipe-row.d.ts +2 -2
  104. package/esm/browser/components/swipe-row.js +7 -3
  105. package/esm/browser/components/tool-view.js +14 -12
  106. package/esm/browser/components/voice-button.d.ts +1 -1
  107. package/esm/browser/components/voice-button.js +1 -1
  108. package/esm/browser/components/voice-talk.d.ts +43 -0
  109. package/esm/browser/components/voice-talk.js +222 -0
  110. package/esm/browser/components/workbench-view.js +1 -1
  111. package/esm/browser/device/device.d.ts +3 -0
  112. package/esm/browser/device/device.js +11 -1
  113. package/esm/browser/device/hold.d.ts +42 -0
  114. package/esm/browser/device/hold.js +136 -0
  115. package/esm/browser/device/launch-screen.d.ts +1 -1
  116. package/esm/browser/device/launch-screen.js +1 -1
  117. package/esm/browser/device/long-press.d.ts +2 -0
  118. package/esm/browser/device/long-press.js +16 -1
  119. package/esm/browser/device/pull-down.d.ts +4 -2
  120. package/esm/browser/device/pull-down.js +64 -76
  121. package/esm/browser/device/row-swipe.d.ts +35 -10
  122. package/esm/browser/device/row-swipe.js +149 -71
  123. package/esm/browser/device/shake-undo.d.ts +16 -0
  124. package/esm/browser/device/shake-undo.js +59 -0
  125. package/esm/browser/device/sheet-swipe.d.ts +118 -18
  126. package/esm/browser/device/sheet-swipe.js +406 -107
  127. package/esm/browser/extension/icons.js +2 -1
  128. package/esm/browser/extension/web-extension-api.d.ts +135 -2
  129. package/esm/browser/extension/web-extension-code.d.ts +6 -0
  130. package/esm/browser/extension/web-extension-code.js +24 -0
  131. package/esm/browser/extension/web-extension-protocol.d.ts +23 -1
  132. package/esm/browser/extension/web-extension-protocol.js +8 -0
  133. package/esm/browser/extension/web-extensions.d.ts +14 -1
  134. package/esm/browser/extension/web-extensions.js +128 -24
  135. package/esm/browser/extension/web-tasks.d.ts +9 -1
  136. package/esm/browser/extension/web-tasks.js +24 -0
  137. package/esm/browser/files/files-protocol.d.ts +25 -0
  138. package/esm/browser/files/files-protocol.js +2 -0
  139. package/esm/browser/files/files.d.ts +35 -0
  140. package/esm/browser/files/files.js +119 -0
  141. package/esm/browser/hooks.d.ts +3 -1
  142. package/esm/browser/hooks.js +8 -0
  143. package/esm/browser/i18n/locales.d.ts +29 -2
  144. package/esm/browser/i18n/messages.d.ts +28 -1
  145. package/esm/browser/i18n/messages.js +58 -4
  146. package/esm/browser/index.d.ts +6 -0
  147. package/esm/browser/index.js +6 -0
  148. package/esm/browser/notices/notices-protocol.d.ts +9 -1
  149. package/esm/browser/notices/notices.d.ts +2 -0
  150. package/esm/browser/notices/notices.js +20 -10
  151. package/esm/browser/offline/device-values.d.ts +55 -0
  152. package/esm/browser/offline/device-values.js +142 -0
  153. package/esm/browser/offline/kept-chats-protocol.d.ts +17 -0
  154. package/esm/browser/offline/kept-chats-protocol.js +2 -0
  155. package/esm/browser/offline/kept-chats.d.ts +47 -0
  156. package/esm/browser/offline/kept-chats.js +146 -0
  157. package/esm/browser/offline/offline-reads.d.ts +44 -0
  158. package/esm/browser/offline/offline-reads.js +107 -0
  159. package/esm/browser/settings/settings-protocol.d.ts +2 -0
  160. package/esm/browser/settings/settings-protocol.js +2 -0
  161. package/esm/browser/style/conversation.d.ts +1 -1
  162. package/esm/browser/style/conversation.js +57 -17
  163. package/esm/browser/style/device.js +43 -4
  164. package/esm/browser/style/layout.d.ts +1 -1
  165. package/esm/browser/style/layout.js +67 -15
  166. package/esm/browser/style/pages.d.ts +1 -1
  167. package/esm/browser/style/pages.js +2 -1
  168. package/esm/browser/style/shell.d.ts +1 -1
  169. package/esm/browser/style/shell.js +47 -3
  170. package/esm/browser/style/tasks.d.ts +1 -1
  171. package/esm/browser/style/tasks.js +2 -0
  172. package/esm/browser/util/frame.d.ts +5 -4
  173. package/esm/browser/util/frame.js +5 -4
  174. package/esm/browser/util/markdown.d.ts +18 -1
  175. package/esm/browser/util/markdown.js +119 -5
  176. package/esm/browser/util/process.d.ts +21 -0
  177. package/esm/browser/util/process.js +45 -1
  178. package/esm/browser/util/voice.d.ts +5 -2
  179. package/esm/browser/util/voice.js +6 -3
  180. package/esm/browser/util/zoom.d.ts +46 -0
  181. package/esm/browser/util/zoom.js +96 -0
  182. package/esm/browser/workbench-calls.d.ts +59 -0
  183. package/esm/browser/workbench-calls.js +141 -0
  184. package/esm/browser/workbench-protocol.d.ts +5 -1
  185. package/esm/browser/workbench-util.d.ts +68 -0
  186. package/esm/browser/workbench-util.js +145 -0
  187. package/esm/browser/workbench.d.ts +15 -42
  188. package/esm/browser/workbench.js +53 -167
  189. package/lib/browser/assistant/assistant-chat-list.js +8 -2
  190. package/lib/browser/assistant/assistant-extension.d.ts +8 -1
  191. package/lib/browser/assistant/assistant-extension.js +33 -5
  192. package/lib/browser/assistant/assistant-protocol.d.ts +3 -1
  193. package/lib/browser/assistant/assistant-task-source.d.ts +2 -0
  194. package/lib/browser/assistant/assistant-task-source.js +2 -0
  195. package/lib/browser/assistant/assistant-task-util.d.ts +8 -0
  196. package/lib/browser/assistant/assistant-task-util.js +13 -3
  197. package/lib/browser/assistant/assistant-tasks.js +2 -1
  198. package/lib/browser/assistant/assistant-view.js +78 -53
  199. package/lib/browser/assistant/assistant.d.ts +30 -1
  200. package/lib/browser/assistant/assistant.js +89 -6
  201. package/lib/browser/assistant/task-views.d.ts +40 -6
  202. package/lib/browser/assistant/task-views.js +74 -21
  203. package/lib/browser/avatar/dino-avatar.d.ts +3 -4
  204. package/lib/browser/avatar/dino-avatar.js +27 -202
  205. package/lib/browser/avatar/dino-face.d.ts +20 -0
  206. package/lib/browser/avatar/dino-face.js +148 -0
  207. package/lib/browser/avatar/dino-geometry.d.ts +12 -0
  208. package/lib/browser/avatar/dino-geometry.js +47 -0
  209. package/lib/browser/avatar/dino-kinds.d.ts +16 -0
  210. package/lib/browser/avatar/dino-kinds.js +547 -0
  211. package/lib/browser/avatar/dino-motion.js +2 -2
  212. package/lib/browser/avatar/dino-shape.d.ts +81 -0
  213. package/lib/browser/avatar/dino-shape.js +126 -0
  214. package/lib/browser/avatar/dino-species.d.ts +1 -61
  215. package/lib/browser/avatar/dino-species.js +34 -687
  216. package/lib/browser/chat/chat-packages.d.ts +40 -0
  217. package/lib/browser/chat/chat-packages.js +74 -0
  218. package/lib/browser/chat/chat-protocol.d.ts +23 -1
  219. package/lib/browser/chat/chat-stores.d.ts +60 -0
  220. package/lib/browser/chat/chat-stores.js +125 -0
  221. package/lib/browser/chat/chat-util.d.ts +18 -0
  222. package/lib/browser/chat/chat-util.js +64 -0
  223. package/lib/browser/chat/chat-view.js +33 -12
  224. package/lib/browser/chat/chat.d.ts +31 -39
  225. package/lib/browser/chat/chat.js +227 -176
  226. package/lib/browser/components/access-view.js +2 -2
  227. package/lib/browser/components/account-menu.js +2 -2
  228. package/lib/browser/components/app-nav.d.ts +6 -3
  229. package/lib/browser/components/app-nav.js +17 -8
  230. package/lib/browser/components/app-shell-hooks.d.ts +48 -0
  231. package/lib/browser/components/app-shell-hooks.js +211 -0
  232. package/lib/browser/components/app-view.js +89 -180
  233. package/lib/browser/components/auth-view.js +3 -3
  234. package/lib/browser/components/chat-list.d.ts +20 -2
  235. package/lib/browser/components/chat-list.js +137 -21
  236. package/lib/browser/components/composer-box.d.ts +5 -5
  237. package/lib/browser/components/composer-box.js +111 -4
  238. package/lib/browser/components/composer.d.ts +7 -0
  239. package/lib/browser/components/composer.js +22 -14
  240. package/lib/browser/components/connection-bar.js +48 -15
  241. package/lib/browser/components/context-menu.d.ts +30 -4
  242. package/lib/browser/components/context-menu.js +198 -36
  243. package/lib/browser/components/conversation-scroll.d.ts +129 -6
  244. package/lib/browser/components/conversation-scroll.js +431 -110
  245. package/lib/browser/components/dino.js +3 -3
  246. package/lib/browser/components/earlier-messages.d.ts +2 -1
  247. package/lib/browser/components/earlier-messages.js +2 -17
  248. package/lib/browser/components/editor-area.d.ts +3 -1
  249. package/lib/browser/components/editor-area.js +5 -4
  250. package/lib/browser/components/empty-pictures.d.ts +0 -2
  251. package/lib/browser/components/empty-pictures.js +0 -17
  252. package/lib/browser/components/folder-picker.d.ts +5 -2
  253. package/lib/browser/components/folder-picker.js +30 -9
  254. package/lib/browser/components/held-talk.d.ts +29 -0
  255. package/lib/browser/components/held-talk.js +79 -0
  256. package/lib/browser/components/host-view.d.ts +1 -1
  257. package/lib/browser/components/host-view.js +5 -5
  258. package/lib/browser/components/icon.d.ts +2 -2
  259. package/lib/browser/components/icon.js +7 -6
  260. package/lib/browser/components/image-viewer.d.ts +125 -0
  261. package/lib/browser/components/image-viewer.js +435 -0
  262. package/lib/browser/components/lightbox.d.ts +12 -0
  263. package/lib/browser/components/lightbox.js +60 -0
  264. package/lib/browser/components/markdown.d.ts +6 -2
  265. package/lib/browser/components/markdown.js +24 -10
  266. package/lib/browser/components/media.js +2 -11
  267. package/lib/browser/components/message-footer.d.ts +16 -2
  268. package/lib/browser/components/message-footer.js +31 -12
  269. package/lib/browser/components/message-list.d.ts +24 -3
  270. package/lib/browser/components/message-list.js +146 -16
  271. package/lib/browser/components/message-menu.d.ts +3 -1
  272. package/lib/browser/components/message-menu.js +17 -2
  273. package/lib/browser/components/nav-places.d.ts +16 -1
  274. package/lib/browser/components/nav-places.js +13 -3
  275. package/lib/browser/components/phone-shell.d.ts +4 -1
  276. package/lib/browser/components/phone-shell.js +3 -1
  277. package/lib/browser/components/run-status.js +3 -3
  278. package/lib/browser/components/select-bar.d.ts +10 -0
  279. package/lib/browser/components/select-bar.js +61 -0
  280. package/lib/browser/components/session-settings.d.ts +6 -0
  281. package/lib/browser/components/session-settings.js +14 -1
  282. package/lib/browser/components/session-view.js +7 -3
  283. package/lib/browser/components/settings-choices.d.ts +36 -0
  284. package/lib/browser/components/settings-choices.js +156 -0
  285. package/lib/browser/components/settings-parts.d.ts +22 -0
  286. package/lib/browser/components/settings-parts.js +359 -0
  287. package/lib/browser/components/settings-view.d.ts +0 -6
  288. package/lib/browser/components/settings-view.js +2 -405
  289. package/lib/browser/components/swipe-row.d.ts +2 -2
  290. package/lib/browser/components/swipe-row.js +7 -3
  291. package/lib/browser/components/tool-view.js +14 -12
  292. package/lib/browser/components/voice-button.d.ts +1 -1
  293. package/lib/browser/components/voice-button.js +1 -1
  294. package/lib/browser/components/voice-talk.d.ts +44 -0
  295. package/lib/browser/components/voice-talk.js +260 -0
  296. package/lib/browser/components/workbench-view.js +3 -3
  297. package/lib/browser/device/device.d.ts +3 -0
  298. package/lib/browser/device/device.js +11 -1
  299. package/lib/browser/device/hold.d.ts +43 -0
  300. package/lib/browser/device/hold.js +173 -0
  301. package/lib/browser/device/launch-screen.d.ts +1 -1
  302. package/lib/browser/device/launch-screen.js +1 -1
  303. package/lib/browser/device/long-press.d.ts +2 -0
  304. package/lib/browser/device/long-press.js +16 -1
  305. package/lib/browser/device/pull-down.d.ts +4 -2
  306. package/lib/browser/device/pull-down.js +63 -75
  307. package/lib/browser/device/row-swipe.d.ts +35 -10
  308. package/lib/browser/device/row-swipe.js +148 -70
  309. package/lib/browser/device/shake-undo.d.ts +17 -0
  310. package/lib/browser/device/shake-undo.js +63 -0
  311. package/lib/browser/device/sheet-swipe.d.ts +118 -18
  312. package/lib/browser/device/sheet-swipe.js +410 -108
  313. package/lib/browser/extension/icons.js +1 -0
  314. package/lib/browser/extension/web-extension-api.d.ts +135 -2
  315. package/lib/browser/extension/web-extension-code.d.ts +6 -0
  316. package/lib/browser/extension/web-extension-code.js +24 -0
  317. package/lib/browser/extension/web-extension-protocol.d.ts +23 -1
  318. package/lib/browser/extension/web-extension-protocol.js +9 -1
  319. package/lib/browser/extension/web-extensions.d.ts +14 -1
  320. package/lib/browser/extension/web-extensions.js +125 -21
  321. package/lib/browser/extension/web-tasks.d.ts +9 -1
  322. package/lib/browser/extension/web-tasks.js +24 -0
  323. package/lib/browser/files/files-protocol.d.ts +26 -0
  324. package/lib/browser/files/files-protocol.js +5 -0
  325. package/lib/browser/files/files.d.ts +36 -0
  326. package/lib/browser/files/files.js +122 -0
  327. package/lib/browser/hooks.d.ts +3 -1
  328. package/lib/browser/hooks.js +9 -0
  329. package/lib/browser/i18n/locales.d.ts +29 -2
  330. package/lib/browser/i18n/messages.d.ts +28 -1
  331. package/lib/browser/i18n/messages.js +58 -4
  332. package/lib/browser/index.d.ts +6 -0
  333. package/lib/browser/index.js +6 -0
  334. package/lib/browser/notices/notices-protocol.d.ts +9 -1
  335. package/lib/browser/notices/notices.d.ts +2 -0
  336. package/lib/browser/notices/notices.js +20 -10
  337. package/lib/browser/offline/device-values.d.ts +56 -0
  338. package/lib/browser/offline/device-values.js +148 -0
  339. package/lib/browser/offline/kept-chats-protocol.d.ts +18 -0
  340. package/lib/browser/offline/kept-chats-protocol.js +5 -0
  341. package/lib/browser/offline/kept-chats.d.ts +48 -0
  342. package/lib/browser/offline/kept-chats.js +149 -0
  343. package/lib/browser/offline/offline-reads.d.ts +45 -0
  344. package/lib/browser/offline/offline-reads.js +111 -0
  345. package/lib/browser/settings/settings-protocol.d.ts +2 -0
  346. package/lib/browser/settings/settings-protocol.js +2 -0
  347. package/lib/browser/style/conversation.d.ts +1 -1
  348. package/lib/browser/style/conversation.js +57 -17
  349. package/lib/browser/style/device.js +43 -4
  350. package/lib/browser/style/layout.d.ts +1 -1
  351. package/lib/browser/style/layout.js +67 -15
  352. package/lib/browser/style/pages.d.ts +1 -1
  353. package/lib/browser/style/pages.js +2 -1
  354. package/lib/browser/style/shell.d.ts +1 -1
  355. package/lib/browser/style/shell.js +47 -3
  356. package/lib/browser/style/tasks.d.ts +1 -1
  357. package/lib/browser/style/tasks.js +2 -0
  358. package/lib/browser/util/frame.d.ts +5 -4
  359. package/lib/browser/util/frame.js +5 -4
  360. package/lib/browser/util/markdown.d.ts +18 -1
  361. package/lib/browser/util/markdown.js +119 -5
  362. package/lib/browser/util/process.d.ts +21 -0
  363. package/lib/browser/util/process.js +46 -2
  364. package/lib/browser/util/voice.d.ts +5 -2
  365. package/lib/browser/util/voice.js +6 -3
  366. package/lib/browser/util/zoom.d.ts +47 -0
  367. package/lib/browser/util/zoom.js +99 -0
  368. package/lib/browser/workbench-calls.d.ts +60 -0
  369. package/lib/browser/workbench-calls.js +145 -0
  370. package/lib/browser/workbench-protocol.d.ts +5 -1
  371. package/lib/browser/workbench-util.d.ts +69 -0
  372. package/lib/browser/workbench-util.js +151 -0
  373. package/lib/browser/workbench.d.ts +15 -42
  374. package/lib/browser/workbench.js +74 -189
  375. package/package.json +10 -10
  376. package/public/launch.svg +46 -42
@@ -0,0 +1,547 @@
1
+ "use strict";
2
+ /* The first kinds of dinosaur ta can be (SPECIES in dino-species.ts lists them all). */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PTERANODON = exports.ANKYLOSAURUS = exports.VELOCIRAPTOR = exports.BRACHIOSAURUS = exports.STEGOSAURUS = exports.TRICERATOPS = exports.TREX = void 0;
5
+ const dino_shape_1 = require("./dino-shape");
6
+ /** ta as the logo draws it. */
7
+ exports.TREX = {
8
+ id: 'trex',
9
+ skin: dino_shape_1.LOGO_BODY + dino_shape_1.LOGO_EYE,
10
+ parts: [
11
+ { d: dino_shape_1.LOGO_FRONT, joint: { x: 146, y: 192 }, swing: 'front', lift: 'frontLift', far: true },
12
+ { d: dino_shape_1.LOGO_ARM, joint: { x: 171, y: 149 }, swing: 'arm', far: false },
13
+ ],
14
+ eye: { x: 141.3, y: 44.6, r: 10.9 },
15
+ joints: {
16
+ feet: { x: 128, y: 244 },
17
+ neck: { x: 122, y: 124 },
18
+ jaw: { x: 150, y: 94 },
19
+ tail: { x: 54, y: 160 },
20
+ tip: { x: 40, y: 112 },
21
+ hip: { x: 86, y: 188 },
22
+ },
23
+ weights(x, y) {
24
+ // The neck: a band across it, from the back of the neck down to the throat.
25
+ const across = ((x - 92) * 42 - (y - 106) * 76) / 86.8;
26
+ const head = (0, dino_shape_1.smooth)(-4, 24, across) * (0, dino_shape_1.smooth)(78, 96, x);
27
+ // The jaw: below the line of the mouth, fading at the corner of the mouth and down the throat.
28
+ const mouth = x >= 177 ? 96.5 : 80 + ((x - 143) * 16.5) / 34;
29
+ const jaw = head * (0, dino_shape_1.smooth)(mouth - 3, mouth + 4, y) * (0, dino_shape_1.smooth)(140, 152, x) * (1 - (0, dino_shape_1.smooth)(132, 146, y));
30
+ // The tail from where it leaves the back, and again toward its tip.
31
+ const tail = (0, dino_shape_1.smooth)(178, 128, y) * (1 - (0, dino_shape_1.smooth)(52, 92, x));
32
+ const tip = (0, dino_shape_1.smooth)(128, 86, y) * (1 - (0, dino_shape_1.smooth)(48, 70, x));
33
+ const back = (0, dino_shape_1.smooth)(186, 204, y) * (1 - (0, dino_shape_1.smooth)(108, 124, x));
34
+ return { head: head - jaw, jaw, tail: tail - tip, tip, back, body: Math.max(0, 1 - head - tail - back) };
35
+ },
36
+ head: { axis: { x: 132, y: 60 }, center: { x: 160, y: 60 }, depth: 22 },
37
+ body: { center: { x: 112, y: 160 }, depth: 26 },
38
+ colors: { skin: '#10B981', lit: '#34D399', shade: '#0EA372', ridge: '#047857' },
39
+ badge: { x: 54, y: 34 },
40
+ snout: { x: 238, y: 94 },
41
+ nose: { x: 222, y: 66 },
42
+ face: [76, -20, 184],
43
+ };
44
+ /** Three horns and a frill; on four legs. */
45
+ exports.TRICERATOPS = {
46
+ id: 'triceratops',
47
+ turns: 0.4,
48
+ spins: 0.3,
49
+ leans: 0.35,
50
+ skin: dino_shape_1.Outline.loop([
51
+ [16, 186, 1],
52
+ [40, 166],
53
+ [64, 140],
54
+ [92, 118],
55
+ [122, 108],
56
+ [142, 110],
57
+ [140, 84],
58
+ [150, 58],
59
+ [174, 40],
60
+ [202, 38],
61
+ [218, 58],
62
+ [224, 76],
63
+ [232, 90],
64
+ [238, 98],
65
+ [244, 80, 1],
66
+ [246, 106],
67
+ [252, 122],
68
+ [250, 138],
69
+ [244, 142, 1],
70
+ [226, 140, 1],
71
+ [240, 150],
72
+ [234, 158],
73
+ [218, 166],
74
+ [198, 170],
75
+ [184, 180],
76
+ [172, 194],
77
+ [146, 202],
78
+ [118, 202],
79
+ [112, 206],
80
+ [112, 226],
81
+ [116, 238],
82
+ [112, 244],
83
+ [80, 244],
84
+ [74, 236],
85
+ [74, 222],
86
+ [66, 202],
87
+ [46, 194],
88
+ ]) + dino_shape_1.Outline.circle(204, 104, 9),
89
+ parts: [
90
+ { d: (0, dino_shape_1.leg)(116, 192, 24), joint: { x: 128, y: 198 }, swing: 'front', lift: 'frontLift', far: true },
91
+ { d: (0, dino_shape_1.leg)(190, 170, 20), joint: { x: 200, y: 178 }, swing: 'back', lift: 'backLift', far: true },
92
+ { d: (0, dino_shape_1.leg)(152, 166, 32), joint: { x: 168, y: 176 }, swing: 'front', lift: 'frontLift', far: false, gap: true },
93
+ ],
94
+ eye: { x: 204, y: 104, r: 9 },
95
+ joints: {
96
+ feet: { x: 130, y: 244 },
97
+ neck: { x: 170, y: 134 },
98
+ jaw: { x: 226, y: 140 },
99
+ tail: { x: 58, y: 170 },
100
+ tip: { x: 34, y: 178 },
101
+ hip: { x: 90, y: 196 },
102
+ },
103
+ weights: (0, dino_shape_1.bones)({
104
+ head: [(0, dino_shape_1.cut)({ x: 164, y: 136 }, { x: 76, y: -40 }, 12)],
105
+ jaw: [(0, dino_shape_1.below)(141, 3), (0, dino_shape_1.right)(208, 6)],
106
+ tail: [(0, dino_shape_1.left)(62, 14)],
107
+ tip: [(0, dino_shape_1.left)(34, 8)],
108
+ back: [(0, dino_shape_1.below)(204, 8), (0, dino_shape_1.left)(114, 6)],
109
+ }),
110
+ head: { axis: { x: 186, y: 100 }, center: { x: 206, y: 100 }, depth: 22 },
111
+ body: { center: { x: 112, y: 160 }, depth: 30 },
112
+ colors: (0, dino_shape_1.tones)('#EE7B3B'),
113
+ badge: { x: 60, y: 70 },
114
+ snout: { x: 252, y: 130 },
115
+ nose: { x: 238, y: 118 },
116
+ face: [132, 30, 132],
117
+ // Its two horns over the eyes, ivory, one on each side of its head.
118
+ decor: [
119
+ {
120
+ depth: 0.6,
121
+ markup: `<path d="${dino_shape_1.Outline.loop([
122
+ [212, 62],
123
+ [232, 50],
124
+ [254, 42, 1],
125
+ [234, 62],
126
+ [224, 74],
127
+ ])}" fill="#F3DFC1"/>`,
128
+ },
129
+ ],
130
+ };
131
+ /** Plates along its back and spikes at the end of its tail; on four legs, its head low. */
132
+ exports.STEGOSAURUS = {
133
+ id: 'stegosaurus',
134
+ turns: 0.4,
135
+ spins: 0.3,
136
+ leans: 0.35,
137
+ skin: dino_shape_1.Outline.loop([
138
+ [14, 180, 1],
139
+ [18, 168],
140
+ [4, 146, 1],
141
+ [32, 162],
142
+ [28, 140, 1],
143
+ [48, 154],
144
+ [62, 144],
145
+ [56, 108, 1],
146
+ [78, 128],
147
+ [86, 82, 1],
148
+ [106, 112],
149
+ [122, 70, 1],
150
+ [140, 106],
151
+ [160, 80, 1],
152
+ [170, 118],
153
+ [192, 104, 1],
154
+ [194, 134],
155
+ [210, 148],
156
+ [232, 156],
157
+ [248, 168],
158
+ [250, 178, 1],
159
+ [230, 180, 1],
160
+ [244, 186, 1],
161
+ [232, 194],
162
+ [212, 192],
163
+ [196, 198],
164
+ [184, 206],
165
+ [150, 212],
166
+ [124, 210],
167
+ [116, 214],
168
+ [114, 230],
169
+ [120, 238],
170
+ [116, 244],
171
+ [86, 244],
172
+ [80, 238],
173
+ [80, 226],
174
+ [72, 206],
175
+ [48, 194],
176
+ [28, 188],
177
+ ]) + dino_shape_1.Outline.circle(228, 168, 6),
178
+ parts: [
179
+ { d: (0, dino_shape_1.leg)(124, 200, 22), joint: { x: 134, y: 206 }, swing: 'front', lift: 'frontLift', far: true },
180
+ { d: (0, dino_shape_1.leg)(200, 188, 18), joint: { x: 208, y: 194 }, swing: 'back', lift: 'backLift', far: true },
181
+ { d: (0, dino_shape_1.leg)(170, 190, 26), joint: { x: 182, y: 198 }, swing: 'front', lift: 'frontLift', far: false, gap: true },
182
+ ],
183
+ eye: { x: 228, y: 168, r: 6 },
184
+ joints: {
185
+ feet: { x: 130, y: 244 },
186
+ neck: { x: 200, y: 168 },
187
+ jaw: { x: 230, y: 181 },
188
+ tail: { x: 60, y: 170 },
189
+ tip: { x: 32, y: 170 },
190
+ hip: { x: 94, y: 204 },
191
+ },
192
+ weights: (0, dino_shape_1.bones)({
193
+ head: [(0, dino_shape_1.cut)({ x: 204, y: 160 }, { x: 1, y: 0.3 }, 10)],
194
+ jaw: [(0, dino_shape_1.below)(181.5, 2.5), (0, dino_shape_1.right)(222, 5)],
195
+ tail: [(0, dino_shape_1.left)(58, 12)],
196
+ tip: [(0, dino_shape_1.left)(30, 8)],
197
+ back: [(0, dino_shape_1.below)(210, 8), (0, dino_shape_1.left)(118, 6)],
198
+ }),
199
+ head: { axis: { x: 220, y: 172 }, center: { x: 230, y: 174 }, depth: 14 },
200
+ body: { center: { x: 118, y: 168 }, depth: 30 },
201
+ colors: (0, dino_shape_1.tones)('#4285F4'),
202
+ badge: { x: 40, y: 82 },
203
+ snout: { x: 254, y: 178 },
204
+ nose: { x: 242, y: 171 },
205
+ face: [168, 112, 100],
206
+ };
207
+ /** A neck that reaches up to the trees; on four legs, the front ones long. */
208
+ exports.BRACHIOSAURUS = {
209
+ id: 'brachiosaurus',
210
+ turns: 0.45,
211
+ spins: 0.3,
212
+ leans: 0.35,
213
+ skin: dino_shape_1.Outline.loop([
214
+ [10, 170, 1],
215
+ [36, 150],
216
+ [66, 128],
217
+ [100, 112],
218
+ [132, 104],
219
+ [152, 98],
220
+ [164, 80],
221
+ [174, 56],
222
+ [182, 34],
223
+ [192, 18],
224
+ [212, 10],
225
+ [234, 18],
226
+ [242, 30, 1],
227
+ [222, 34, 1],
228
+ [238, 38, 1],
229
+ [226, 46],
230
+ [206, 48],
231
+ [200, 62],
232
+ [196, 86],
233
+ [194, 112],
234
+ [190, 136],
235
+ [184, 160],
236
+ [172, 178],
237
+ [140, 186],
238
+ [112, 184],
239
+ [104, 190],
240
+ [102, 222],
241
+ [108, 238],
242
+ [104, 244],
243
+ [76, 244],
244
+ [70, 238],
245
+ [70, 220],
246
+ [64, 192],
247
+ [42, 180],
248
+ ]) + dino_shape_1.Outline.circle(212, 24, 5.5),
249
+ parts: [
250
+ { d: (0, dino_shape_1.leg)(110, 184, 22), joint: { x: 120, y: 190 }, swing: 'front', lift: 'frontLift', far: true },
251
+ { d: (0, dino_shape_1.leg)(186, 146, 18), joint: { x: 196, y: 154 }, swing: 'back', lift: 'backLift', far: true },
252
+ { d: (0, dino_shape_1.leg)(158, 138, 28), joint: { x: 172, y: 148 }, swing: 'front', lift: 'frontLift', far: false, gap: true },
253
+ ],
254
+ eye: { x: 212, y: 24, r: 5.5 },
255
+ joints: {
256
+ feet: { x: 128, y: 244 },
257
+ neck: { x: 176, y: 112 },
258
+ jaw: { x: 222, y: 35 },
259
+ tail: { x: 52, y: 160 },
260
+ tip: { x: 28, y: 166 },
261
+ hip: { x: 86, y: 192 },
262
+ },
263
+ weights: (0, dino_shape_1.bones)({
264
+ head: [(0, dino_shape_1.cut)({ x: 176, y: 96 }, { x: 0.3, y: -1 }, 14)],
265
+ jaw: [(0, dino_shape_1.below)(35.5, 2), (0, dino_shape_1.right)(214, 5)],
266
+ tail: [(0, dino_shape_1.left)(54, 12)],
267
+ tip: [(0, dino_shape_1.left)(28, 8)],
268
+ back: [(0, dino_shape_1.below)(194, 8), (0, dino_shape_1.left)(110, 6)],
269
+ }),
270
+ head: { axis: { x: 204, y: 28 }, center: { x: 214, y: 28 }, depth: 12 },
271
+ body: { center: { x: 116, y: 150 }, depth: 30 },
272
+ colors: (0, dino_shape_1.tones)('#8C5CF0'),
273
+ badge: { x: 60, y: 64 },
274
+ snout: { x: 246, y: 30 },
275
+ nose: { x: 230, y: 20 },
276
+ face: [166, -6, 88],
277
+ };
278
+ /** Quick and lean, a long straight tail; on two legs. */
279
+ exports.VELOCIRAPTOR = {
280
+ id: 'velociraptor',
281
+ turns: 0.75,
282
+ spins: 0.7,
283
+ skin: dino_shape_1.Outline.loop([
284
+ [8, 118, 1],
285
+ [40, 110],
286
+ [76, 110],
287
+ [104, 112],
288
+ [130, 110],
289
+ [152, 98],
290
+ [164, 80],
291
+ [170, 62],
292
+ [162, 48, 1],
293
+ [180, 50],
294
+ [196, 50],
295
+ [224, 60],
296
+ [238, 70, 1],
297
+ [210, 76, 1],
298
+ [230, 80, 1],
299
+ [216, 88],
300
+ [192, 88],
301
+ [182, 104],
302
+ [178, 126],
303
+ [168, 146],
304
+ [150, 158],
305
+ [126, 160],
306
+ [114, 168],
307
+ [118, 196],
308
+ [112, 222],
309
+ [128, 236],
310
+ [124, 244],
311
+ [96, 244],
312
+ [92, 238],
313
+ [96, 222],
314
+ [90, 192],
315
+ [80, 164],
316
+ [66, 140],
317
+ [36, 128],
318
+ ]) + dino_shape_1.Outline.circle(194, 64, 6.5),
319
+ parts: [
320
+ {
321
+ d: dino_shape_1.Outline.loop([
322
+ [126, 164],
323
+ [146, 168],
324
+ [150, 196],
325
+ [144, 222],
326
+ [160, 236],
327
+ [156, 242],
328
+ [130, 242],
329
+ [128, 236],
330
+ [130, 220],
331
+ [126, 192],
332
+ ]),
333
+ joint: { x: 136, y: 170 },
334
+ swing: 'front',
335
+ lift: 'frontLift',
336
+ far: true,
337
+ },
338
+ {
339
+ d: dino_shape_1.Outline.loop([
340
+ [164, 130],
341
+ [180, 132],
342
+ [198, 152],
343
+ [192, 162, 1],
344
+ [178, 150],
345
+ [164, 144],
346
+ ]),
347
+ joint: { x: 168, y: 136 },
348
+ swing: 'arm',
349
+ far: false,
350
+ gap: true,
351
+ },
352
+ ],
353
+ eye: { x: 194, y: 64, r: 6.5 },
354
+ joints: {
355
+ feet: { x: 112, y: 244 },
356
+ neck: { x: 168, y: 104 },
357
+ jaw: { x: 210, y: 77 },
358
+ tail: { x: 84, y: 124 },
359
+ tip: { x: 40, y: 118 },
360
+ hip: { x: 100, y: 170 },
361
+ },
362
+ weights: (0, dino_shape_1.bones)({
363
+ head: [(0, dino_shape_1.cut)({ x: 172, y: 96 }, { x: 0.6, y: -1 }, 10)],
364
+ jaw: [(0, dino_shape_1.below)(78, 2.5), (0, dino_shape_1.right)(200, 5)],
365
+ tail: [(0, dino_shape_1.left)(84, 16), (0, dino_shape_1.cut)({ x: 0, y: 150 }, { x: 0, y: -1 }, 8)],
366
+ tip: [(0, dino_shape_1.left)(40, 10)],
367
+ back: [(0, dino_shape_1.below)(172, 8), (0, dino_shape_1.left)(122, 6)],
368
+ }),
369
+ head: { axis: { x: 186, y: 68 }, center: { x: 200, y: 70 }, depth: 14 },
370
+ body: { center: { x: 122, y: 140 }, depth: 20 },
371
+ colors: (0, dino_shape_1.tones)('#EA4335'),
372
+ badge: { x: 60, y: 58 },
373
+ snout: { x: 240, y: 72 },
374
+ nose: { x: 228, y: 64 },
375
+ face: [150, 16, 104],
376
+ };
377
+ /** Armored all over, spikes on its back and a club at the end of its tail; low, on four legs. */
378
+ exports.ANKYLOSAURUS = {
379
+ id: 'ankylosaurus',
380
+ turns: 0.4,
381
+ spins: 0.3,
382
+ leans: 0.35,
383
+ skin: dino_shape_1.Outline.loop([
384
+ [8, 174],
385
+ [2, 160],
386
+ [12, 146],
387
+ [28, 146],
388
+ [36, 156],
389
+ [52, 154],
390
+ [72, 140],
391
+ [88, 124],
392
+ [92, 108, 1],
393
+ [104, 116],
394
+ [122, 108],
395
+ [128, 94, 1],
396
+ [138, 106],
397
+ [156, 104],
398
+ [164, 92, 1],
399
+ [172, 108],
400
+ [188, 116],
401
+ [198, 108, 1],
402
+ [202, 124],
403
+ [214, 132],
404
+ [230, 136],
405
+ [246, 150],
406
+ [248, 160, 1],
407
+ [230, 160, 1],
408
+ [242, 168, 1],
409
+ [232, 176],
410
+ [214, 176],
411
+ [202, 182],
412
+ [190, 196],
413
+ [158, 204],
414
+ [124, 204],
415
+ [118, 208],
416
+ [118, 230],
417
+ [122, 238],
418
+ [118, 244],
419
+ [90, 244],
420
+ [86, 238],
421
+ [86, 226],
422
+ [80, 204],
423
+ [60, 186],
424
+ [40, 176],
425
+ [28, 172],
426
+ ]) + dino_shape_1.Outline.circle(224, 148, 5.5),
427
+ parts: [
428
+ { d: (0, dino_shape_1.leg)(126, 196, 22), joint: { x: 136, y: 202 }, swing: 'front', lift: 'frontLift', far: true },
429
+ { d: (0, dino_shape_1.leg)(204, 182, 16), joint: { x: 212, y: 190 }, swing: 'back', lift: 'backLift', far: true },
430
+ { d: (0, dino_shape_1.leg)(176, 184, 24), joint: { x: 188, y: 192 }, swing: 'front', lift: 'frontLift', far: false, gap: true },
431
+ ],
432
+ eye: { x: 224, y: 148, r: 5.5 },
433
+ joints: {
434
+ feet: { x: 134, y: 244 },
435
+ neck: { x: 206, y: 156 },
436
+ jaw: { x: 230, y: 161 },
437
+ tail: { x: 74, y: 166 },
438
+ tip: { x: 40, y: 164 },
439
+ hip: { x: 100, y: 204 },
440
+ },
441
+ weights: (0, dino_shape_1.bones)({
442
+ head: [(0, dino_shape_1.cut)({ x: 208, y: 150 }, { x: 1, y: 0.1 }, 8)],
443
+ jaw: [(0, dino_shape_1.below)(161.5, 2), (0, dino_shape_1.right)(222, 5)],
444
+ tail: [(0, dino_shape_1.left)(72, 12)],
445
+ tip: [(0, dino_shape_1.left)(42, 8)],
446
+ back: [(0, dino_shape_1.below)(208, 8), (0, dino_shape_1.left)(122, 6)],
447
+ }),
448
+ head: { axis: { x: 216, y: 154 }, center: { x: 228, y: 154 }, depth: 14 },
449
+ body: { center: { x: 132, y: 160 }, depth: 34 },
450
+ colors: (0, dino_shape_1.tones)('#FBBC05'),
451
+ badge: { x: 54, y: 92 },
452
+ snout: { x: 252, y: 156 },
453
+ nose: { x: 240, y: 152 },
454
+ face: [172, 100, 92],
455
+ };
456
+ /** A flier: wings, a long beak and a crest behind it; it stands on small legs. */
457
+ exports.PTERANODON = {
458
+ id: 'pteranodon',
459
+ turns: 0.6,
460
+ spins: 0.6,
461
+ skin: dino_shape_1.Outline.loop([
462
+ [96, 196, 1],
463
+ [104, 170],
464
+ [108, 140],
465
+ [118, 112],
466
+ [134, 94],
467
+ [142, 80],
468
+ [112, 58, 1],
469
+ [150, 62],
470
+ [168, 64],
471
+ [204, 76],
472
+ [246, 94, 1],
473
+ [190, 90, 1],
474
+ [230, 98, 1],
475
+ [196, 102],
476
+ [172, 100],
477
+ [160, 108],
478
+ [152, 128],
479
+ [150, 156],
480
+ [144, 184],
481
+ [140, 198],
482
+ [144, 222],
483
+ [154, 238],
484
+ [150, 244],
485
+ [128, 244],
486
+ [124, 238],
487
+ [128, 222],
488
+ [122, 204],
489
+ [110, 204],
490
+ ]) + dino_shape_1.Outline.circle(176, 78, 6.5),
491
+ parts: [
492
+ {
493
+ d: dino_shape_1.Outline.loop([
494
+ [144, 112],
495
+ [138, 74],
496
+ [130, 40],
497
+ [104, 6, 1],
498
+ [106, 36],
499
+ [112, 70],
500
+ [126, 108],
501
+ ]),
502
+ joint: { x: 140, y: 116 },
503
+ swing: 'wing',
504
+ far: true,
505
+ },
506
+ {
507
+ d: dino_shape_1.Outline.loop([
508
+ [142, 118],
509
+ [114, 92],
510
+ [86, 60],
511
+ [18, 40, 1],
512
+ [38, 66],
513
+ [64, 92],
514
+ [98, 124],
515
+ [134, 148],
516
+ ]),
517
+ joint: { x: 138, y: 126 },
518
+ swing: 'wing',
519
+ far: false,
520
+ gap: true,
521
+ },
522
+ ],
523
+ eye: { x: 176, y: 78, r: 6.5 },
524
+ joints: {
525
+ feet: { x: 138, y: 244 },
526
+ neck: { x: 150, y: 108 },
527
+ jaw: { x: 190, y: 92 },
528
+ tail: { x: 110, y: 190 },
529
+ tip: { x: 102, y: 196 },
530
+ hip: { x: 134, y: 200 },
531
+ },
532
+ weights: (0, dino_shape_1.bones)({
533
+ head: [(0, dino_shape_1.cut)({ x: 150, y: 104 }, { x: 0.5, y: -1 }, 10)],
534
+ jaw: [(0, dino_shape_1.below)(94, 2), (0, dino_shape_1.right)(184, 5)],
535
+ tail: [(0, dino_shape_1.left)(112, 6), (0, dino_shape_1.below)(186, 6)],
536
+ tip: [(0, dino_shape_1.left)(102, 6)],
537
+ back: [(0, dino_shape_1.below)(202, 6)],
538
+ }),
539
+ head: { axis: { x: 166, y: 80 }, center: { x: 176, y: 82 }, depth: 12 },
540
+ body: { center: { x: 130, y: 160 }, depth: 18 },
541
+ colors: (0, dino_shape_1.tones)('#45B5E8'),
542
+ badge: { x: 222, y: 38 },
543
+ snout: { x: 248, y: 96 },
544
+ nose: { x: 222, y: 88 },
545
+ face: [120, 18, 142],
546
+ };
547
+ //# sourceMappingURL=dino-kinds.js.map
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DinoMotion = exports.GAITS = exports.POKE = void 0;
4
4
  const dino_avatar_1 = require("./dino-avatar");
5
- const dino_species_1 = require("./dino-species");
5
+ const dino_shape_1 = require("./dino-shape");
6
6
  const TAU = Math.PI * 2;
7
7
  function smooth(x) {
8
8
  const t = Math.min(1, Math.max(0, x));
@@ -43,7 +43,7 @@ function leg(u, duty, reach, lift) {
43
43
  }
44
44
  /** How fast a way of stepping gets on, in units of the logo a second, so that a foot on the ground does not slide. */
45
45
  function pace({ period, reach, duty }) {
46
- return (2 * dino_species_1.LEG * Math.sin((reach * Math.PI) / 180)) / (duty * period);
46
+ return (2 * dino_shape_1.LEG * Math.sin((reach * Math.PI) / 180)) / (duty * period);
47
47
  }
48
48
  /**
49
49
  * A walk or a run, at `t` seconds: the legs half a step apart, each planted then swung (leg()). Walking the body
@@ -0,0 +1,81 @@
1
+ import type { DinoSpecies } from './dino-species';
2
+ export interface Point {
3
+ x: number;
4
+ y: number;
5
+ }
6
+ /** A point of an outline as drawn: [x, y], and a third 1 where the outline turns sharply there (a corner, the tip of a horn). */
7
+ export type Key = [number, number] | [number, number, 1];
8
+ /** The bones that bend the outline; the legs and arms drawn on their own are parts. */
9
+ export type Bone = 'body' | 'head' | 'jaw' | 'tail' | 'tip' | 'back';
10
+ /** A leg, an arm or a wing drawn on its own, which turns at its joint by an angle of the pose. */
11
+ export interface DinoPart {
12
+ d: string;
13
+ joint: Point;
14
+ swing: 'back' | 'front' | 'arm' | 'wing';
15
+ /** How high it is lifted, as a foot. */
16
+ lift?: 'backLift' | 'frontLift';
17
+ /** On the far side, drawn behind the body and darker; else on the near side, in front of it. */
18
+ far: boolean;
19
+ /** Its own color, not the skin's (or the shade's on the far side). */
20
+ fill?: string;
21
+ /** In front of the body, a gap of the page between the two, as the logo has by its arm. */
22
+ gap?: boolean;
23
+ }
24
+ export interface DinoColors {
25
+ skin: string;
26
+ /** The front of the head or the chest as it turns toward you. */
27
+ lit: string;
28
+ /** The parts on the far side. */
29
+ shade: string;
30
+ /** The ridge of the brow. */
31
+ ridge: string;
32
+ /** The skin from its top to its bottom, of a kind that shines; flat `skin` otherwise. */
33
+ sheen?: [string, string];
34
+ }
35
+ /** The length of a leg of the logo, from the hip to the ground; rig() makes the legs of other kinds swing as far as it does. */
36
+ export declare const LEG = 56;
37
+ export declare function smooth(edge0: number, edge1: number, x: number): number;
38
+ export declare const n: (value: number) => number;
39
+ export declare namespace Outline {
40
+ /**
41
+ * A closed outline through `keys`, as cubic Béziers that pass through each (Catmull-Rom); at a
42
+ * corner the curves on either side of it meet at an angle.
43
+ */
44
+ function loop(keys: Key[]): string;
45
+ /** A circle as four curves, the hole of an eye. */
46
+ function circle(x: number, y: number, r: number): string;
47
+ }
48
+ /**
49
+ * Which side of a line a point is on, softly: 0 well before the line through `at`, 1 well past it
50
+ * in the direction `toward`, eased across `band` units on either side of it.
51
+ */
52
+ export declare function cut(at: Point, toward: Point, band: number): (x: number, y: number) => number;
53
+ export type Side = (x: number, y: number) => number;
54
+ /** The bones of a kind as the sides of lines it is cut along: each bone where all its lines agree, the jaw within the head, the tip within the tail. */
55
+ export declare function bones(cuts: {
56
+ head: Side[];
57
+ jaw: Side[];
58
+ tail: Side[];
59
+ tip: Side[];
60
+ back: Side[];
61
+ }): DinoSpecies['weights'];
62
+ /** The outline of assets/logo.svg; dino-avatar.spec.ts keeps the two the same. */
63
+ export declare const LOGO_PATH = "M87.56 246.56C78.45 245.88 69.68 241.69 63.62 235.12C55.27 226.06 53.05 217.63 57.25 210.87C58.80 208.36 60.00 207.04 65.18 202.17C69.26 198.32 70.20 196.55 70.21 192.69C70.21 189.81 70.10 189.60 68.07 188.59C58.99 184.06 48.53 175.16 41.10 165.64C20.03 138.61 16.32 99.87 32.24 73.21C35.05 68.50 38.42 64.26 40.25 63.11C42.91 61.44 46.64 61.89 48.71 64.14C51.04 66.67 51.48 69.39 50.27 73.65C48.09 81.27 47.41 86.83 47.99 92.32C49.53 106.98 58.42 118.20 70.83 121.15C73.08 121.68 78.88 121.72 81.15 121.22C88.97 119.48 94.86 113.39 96.69 105.18C97.35 102.17 97.35 102.36 97.36 79.55C97.37 56.55 97.35 57.24 98.04 53.23C102.05 29.98 119.81 12.19 141.49 9.73C143.46 9.51 150.65 9.43 152.36 9.61C160.37 10.46 167.56 12.82 174.51 16.89C177.43 18.59 176.54 18.47 186.86 18.57C196.67 18.66 196.99 18.68 200.87 19.58C210.24 21.74 219.17 27.62 224.57 35.17C229.72 42.38 232.50 49.80 233.36 58.67C233.68 61.91 233.71 76.53 233.41 78.22C232.01 86.00 227.35 91.05 220.23 92.50C218.50 92.85 180.16 92.91 177.10 92.57C165.61 91.28 155.17 86.13 150.52 79.47C148.44 76.48 145.54 75.90 143.40 78.04C141.49 79.95 141.76 81.92 144.74 87.63C150.17 98.03 159.04 105.16 169.50 107.52C172.11 108.11 172.69 107.96 173.25 106.55C173.81 105.12 174.70 103.52 175.57 102.37C178.23 98.86 180.68 100.09 183.51 106.36C184.55 108.67 183.79 108.47 191.23 108.44C198.27 108.42 197.86 108.50 198.43 107.20C200.89 101.63 202.81 99.79 204.99 100.89C206.11 101.47 207.63 103.65 208.74 106.31C209.67 108.51 209.55 108.45 213.05 108.41C216.35 108.36 217.08 108.45 218.31 109.05C225.39 112.51 217.61 125.59 205.66 130.33C199.65 132.71 198.20 132.85 180.39 132.87C164.51 132.89 165.38 132.84 164.14 133.78C162.82 134.78 162.30 136.08 162.30 138.40C162.30 139.80 161.98 143.39 161.42 148.29C159.70 163.39 153.05 175.87 141.81 185.08C138.73 187.60 134.92 189.85 129.84 192.14C125.19 194.25 115.57 196.33 110.54 196.34C109.17 196.34 108.60 196.57 108.23 197.27C108.10 197.53 107.64 198.49 107.20 199.42C103.90 206.45 98.19 211.37 88.72 215.35C85.89 216.54 85.91 216.52 85.98 219.64C86.04 222.32 86.33 222.69 90.00 224.75C92.29 226.04 94.81 227.75 95.82 228.71C100.98 233.57 100.86 241.48 95.60 244.93C93.34 246.41 91.24 246.84 87.56 246.56ZM134.07 240.25C128.56 238.82 125.22 235.56 123.96 230.38C123.70 229.30 123.68 228.71 123.59 220.23C123.53 214.63 123.44 210.89 123.34 210.35C123.00 208.36 122.74 207.31 122.25 205.86C121.48 203.62 121.59 203.31 123.26 202.93C129.90 201.41 136.34 198.97 140.57 196.35C147.00 192.39 151.46 188.55 155.60 183.42C157.24 181.39 157.77 181.54 158.23 184.19C159.89 193.79 157.66 202.21 151.13 210.89C149.39 213.20 149.36 213.30 149.36 215.69C149.35 218.41 149.61 218.72 151.96 218.75C157.60 218.82 162.31 219.95 165.26 221.92C173.20 227.23 172.45 238.39 164.03 240.43C162.18 240.88 135.88 240.72 134.07 240.25ZM185.67 173.17C183.79 172.66 182.15 171.55 180.81 169.86C178.08 166.41 174.71 164.68 169.71 164.16C166.89 163.87 166.86 163.80 167.90 160.34C168.86 157.13 169.71 152.32 170.10 147.82C170.40 144.42 170.40 144.42 170.65 144.15C172.11 142.53 184.08 147.33 189.10 151.54C193.73 155.43 196.56 162.25 195.41 166.75C194.22 171.40 189.83 174.29 185.67 173.17ZM144.28 53.97C148.98 52.79 151.98 47.68 150.77 42.91C148.71 34.78 137.83 33.29 134.20 40.65C130.66 47.83 136.74 55.88 144.28 53.97Z";
64
+ export declare const LOGO_BODY: string, LOGO_FRONT: string, LOGO_ARM: string, LOGO_EYE: string;
65
+ /** The colors of a kind from its own: lighter for what is lit, a little darker for the far side, darker still for the brow. */
66
+ export declare function tones(skin: string): DinoColors;
67
+ /** A leg on its own, upright from `top` to the ground: its width, and how much its foot reaches forward. */
68
+ export declare function leg(x: number, top: number, width: number, foot?: number, ground?: number): string;
69
+ export declare const left: (x: number, band: number) => (x: number, y: number) => number;
70
+ export declare const right: (x: number, band: number) => (x: number, y: number) => number;
71
+ export declare const below: (y: number, band: number) => (x: number, y: number) => number;
72
+ /**
73
+ * The two sides of a body as long as a snake's, along its `spine` ([x, y, half its thickness] from the head
74
+ * on): the side to the right of the way the spine runs, and the other, both from the head on. `spikes` puts
75
+ * a spike on the other side (the back) between every two points of the spine from the second on.
76
+ */
77
+ export declare function tube(spine: [number, number, number][], spikes?: number): {
78
+ front: Key[];
79
+ back: Key[];
80
+ };
81
+ //# sourceMappingURL=dino-shape.d.ts.map