@pibbl/core 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1069) hide show
  1. package/LICENSE.txt +19 -0
  2. package/README.md +76 -0
  3. package/THIRD_PARTY_NOTICES.txt +205 -0
  4. package/dist/features/particles/index.d.ts +7 -0
  5. package/dist/features/particles/index.js +26 -0
  6. package/dist/features/particles/index.js.map +7 -0
  7. package/dist/features/particles/index.mjs +1 -0
  8. package/dist/features/particles/lib/canvas/birth-ledger.d.ts +69 -0
  9. package/dist/features/particles/lib/canvas/birth-ledger.js +752 -0
  10. package/dist/features/particles/lib/canvas/birth-ledger.js.map +7 -0
  11. package/dist/features/particles/lib/canvas/component.d.ts +14 -0
  12. package/dist/features/particles/lib/canvas/component.js +249 -0
  13. package/dist/features/particles/lib/canvas/component.js.map +7 -0
  14. package/dist/features/particles/lib/canvas/executor.d.ts +31 -0
  15. package/dist/features/particles/lib/canvas/executor.js +537 -0
  16. package/dist/features/particles/lib/canvas/executor.js.map +7 -0
  17. package/dist/features/particles/lib/canvas/primitive.d.ts +14 -0
  18. package/dist/features/particles/lib/canvas/primitive.js +50 -0
  19. package/dist/features/particles/lib/canvas/primitive.js.map +7 -0
  20. package/dist/features/particles/lib/canvas/raster-cache.d.ts +13 -0
  21. package/dist/features/particles/lib/canvas/raster-cache.js +106 -0
  22. package/dist/features/particles/lib/canvas/raster-cache.js.map +7 -0
  23. package/dist/features/particles/lib/color.d.ts +7 -0
  24. package/dist/features/particles/lib/color.js +159 -0
  25. package/dist/features/particles/lib/color.js.map +7 -0
  26. package/dist/features/particles/lib/compiler.d.ts +134 -0
  27. package/dist/features/particles/lib/compiler.js +443 -0
  28. package/dist/features/particles/lib/compiler.js.map +7 -0
  29. package/dist/features/particles/lib/curve.d.ts +19 -0
  30. package/dist/features/particles/lib/curve.js +129 -0
  31. package/dist/features/particles/lib/curve.js.map +7 -0
  32. package/dist/features/particles/lib/definition-records.d.ts +58 -0
  33. package/dist/features/particles/lib/definition-records.js +500 -0
  34. package/dist/features/particles/lib/definition-records.js.map +7 -0
  35. package/dist/features/particles/lib/definition.d.ts +18 -0
  36. package/dist/features/particles/lib/definition.js +602 -0
  37. package/dist/features/particles/lib/definition.js.map +7 -0
  38. package/dist/features/particles/lib/emission.d.ts +54 -0
  39. package/dist/features/particles/lib/emission.js +184 -0
  40. package/dist/features/particles/lib/emission.js.map +7 -0
  41. package/dist/features/particles/lib/flow/field.d.ts +81 -0
  42. package/dist/features/particles/lib/flow/field.js +585 -0
  43. package/dist/features/particles/lib/flow/field.js.map +7 -0
  44. package/dist/features/particles/lib/flow/hook.d.ts +158 -0
  45. package/dist/features/particles/lib/flow/hook.js +215 -0
  46. package/dist/features/particles/lib/flow/hook.js.map +7 -0
  47. package/dist/features/particles/lib/flow/population.d.ts +25 -0
  48. package/dist/features/particles/lib/flow/population.js +104 -0
  49. package/dist/features/particles/lib/flow/population.js.map +7 -0
  50. package/dist/features/particles/lib/particle.d.ts +113 -0
  51. package/dist/features/particles/lib/particle.js +192 -0
  52. package/dist/features/particles/lib/particle.js.map +7 -0
  53. package/dist/features/particles/lib/random.d.ts +16 -0
  54. package/dist/features/particles/lib/random.js +61 -0
  55. package/dist/features/particles/lib/random.js.map +7 -0
  56. package/dist/features/particles/lib/sample.d.ts +32 -0
  57. package/dist/features/particles/lib/sample.js +397 -0
  58. package/dist/features/particles/lib/sample.js.map +7 -0
  59. package/dist/features/particles/lib/signal-inputs.d.ts +6 -0
  60. package/dist/features/particles/lib/signal-inputs.js +41 -0
  61. package/dist/features/particles/lib/signal-inputs.js.map +7 -0
  62. package/dist/features/particles/lib/system/binding.d.ts +59 -0
  63. package/dist/features/particles/lib/system/binding.js +122 -0
  64. package/dist/features/particles/lib/system/binding.js.map +7 -0
  65. package/dist/features/particles/lib/system/controller.d.ts +58 -0
  66. package/dist/features/particles/lib/system/controller.js +1446 -0
  67. package/dist/features/particles/lib/system/controller.js.map +7 -0
  68. package/dist/features/particles/lib/system/hook.d.ts +13 -0
  69. package/dist/features/particles/lib/system/hook.js +52 -0
  70. package/dist/features/particles/lib/system/hook.js.map +7 -0
  71. package/dist/features/particles/lib/system/ownership.d.ts +26 -0
  72. package/dist/features/particles/lib/system/ownership.js +128 -0
  73. package/dist/features/particles/lib/system/ownership.js.map +7 -0
  74. package/dist/features/particles/lib/types.d.ts +983 -0
  75. package/dist/features/physics/2d-geometry.d.ts +216 -0
  76. package/dist/features/physics/2d-geometry.js +59 -0
  77. package/dist/features/physics/2d-geometry.js.map +7 -0
  78. package/dist/features/physics/2d-geometry.mjs +1 -0
  79. package/dist/features/physics/2d-testing.d.ts +80 -0
  80. package/dist/features/physics/2d-testing.js +141 -0
  81. package/dist/features/physics/2d-testing.js.map +7 -0
  82. package/dist/features/physics/2d-testing.mjs +1 -0
  83. package/dist/features/physics/2d.d.ts +165 -0
  84. package/dist/features/physics/2d.js +119 -0
  85. package/dist/features/physics/2d.js.map +7 -0
  86. package/dist/features/physics/2d.mjs +1 -0
  87. package/dist/features/physics/lib/2d/canvas/components.d.ts +46 -0
  88. package/dist/features/physics/lib/2d/canvas/components.js +212 -0
  89. package/dist/features/physics/lib/2d/canvas/components.js.map +7 -0
  90. package/dist/features/physics/lib/2d/canvas/custom.d.ts +24 -0
  91. package/dist/features/physics/lib/2d/canvas/custom.js +45 -0
  92. package/dist/features/physics/lib/2d/canvas/custom.js.map +7 -0
  93. package/dist/features/physics/lib/2d/canvas/debug.d.ts +23 -0
  94. package/dist/features/physics/lib/2d/canvas/debug.js +53 -0
  95. package/dist/features/physics/lib/2d/canvas/debug.js.map +7 -0
  96. package/dist/features/physics/lib/2d/canvas/inference.d.ts +9 -0
  97. package/dist/features/physics/lib/2d/canvas/inference.js +704 -0
  98. package/dist/features/physics/lib/2d/canvas/inference.js.map +7 -0
  99. package/dist/features/physics/lib/2d/canvas/presentation.d.ts +11 -0
  100. package/dist/features/physics/lib/2d/canvas/presentation.js +169 -0
  101. package/dist/features/physics/lib/2d/canvas/presentation.js.map +7 -0
  102. package/dist/features/physics/lib/2d/collision/analytic.d.ts +15 -0
  103. package/dist/features/physics/lib/2d/collision/analytic.js +151 -0
  104. package/dist/features/physics/lib/2d/collision/analytic.js.map +7 -0
  105. package/dist/features/physics/lib/2d/collision/casts.d.ts +37 -0
  106. package/dist/features/physics/lib/2d/collision/casts.js +631 -0
  107. package/dist/features/physics/lib/2d/collision/casts.js.map +7 -0
  108. package/dist/features/physics/lib/2d/collision/epa.d.ts +21 -0
  109. package/dist/features/physics/lib/2d/collision/epa.js +102 -0
  110. package/dist/features/physics/lib/2d/collision/epa.js.map +7 -0
  111. package/dist/features/physics/lib/2d/collision/gjk.d.ts +28 -0
  112. package/dist/features/physics/lib/2d/collision/gjk.js +233 -0
  113. package/dist/features/physics/lib/2d/collision/gjk.js.map +7 -0
  114. package/dist/features/physics/lib/2d/collision/manifold.d.ts +35 -0
  115. package/dist/features/physics/lib/2d/collision/manifold.js +238 -0
  116. package/dist/features/physics/lib/2d/collision/manifold.js.map +7 -0
  117. package/dist/features/physics/lib/2d/collision/pairs.d.ts +10 -0
  118. package/dist/features/physics/lib/2d/collision/pairs.js +285 -0
  119. package/dist/features/physics/lib/2d/collision/pairs.js.map +7 -0
  120. package/dist/features/physics/lib/2d/collision/support.d.ts +20 -0
  121. package/dist/features/physics/lib/2d/collision/support.js +155 -0
  122. package/dist/features/physics/lib/2d/collision/support.js.map +7 -0
  123. package/dist/features/physics/lib/2d/inspection-types.d.ts +159 -0
  124. package/dist/features/physics/lib/2d/math.d.ts +27 -0
  125. package/dist/features/physics/lib/2d/math.js +314 -0
  126. package/dist/features/physics/lib/2d/math.js.map +7 -0
  127. package/dist/features/physics/lib/2d/numeric-policy.d.ts +24 -0
  128. package/dist/features/physics/lib/2d/numeric-policy.js +51 -0
  129. package/dist/features/physics/lib/2d/numeric-policy.js.map +7 -0
  130. package/dist/features/physics/lib/2d/runtime/body-handle.d.ts +148 -0
  131. package/dist/features/physics/lib/2d/runtime/body-handle.js +305 -0
  132. package/dist/features/physics/lib/2d/runtime/body-handle.js.map +7 -0
  133. package/dist/features/physics/lib/2d/runtime/context.d.ts +9 -0
  134. package/dist/features/physics/lib/2d/runtime/context.js +57 -0
  135. package/dist/features/physics/lib/2d/runtime/context.js.map +7 -0
  136. package/dist/features/physics/lib/2d/runtime/controller.d.ts +106 -0
  137. package/dist/features/physics/lib/2d/runtime/controller.js +1317 -0
  138. package/dist/features/physics/lib/2d/runtime/controller.js.map +7 -0
  139. package/dist/features/physics/lib/2d/runtime/descriptors.d.ts +153 -0
  140. package/dist/features/physics/lib/2d/runtime/descriptors.js +526 -0
  141. package/dist/features/physics/lib/2d/runtime/descriptors.js.map +7 -0
  142. package/dist/features/physics/lib/2d/runtime/events.d.ts +56 -0
  143. package/dist/features/physics/lib/2d/runtime/events.js +153 -0
  144. package/dist/features/physics/lib/2d/runtime/events.js.map +7 -0
  145. package/dist/features/physics/lib/2d/runtime/obstacles.d.ts +22 -0
  146. package/dist/features/physics/lib/2d/runtime/obstacles.js +192 -0
  147. package/dist/features/physics/lib/2d/runtime/obstacles.js.map +7 -0
  148. package/dist/features/physics/lib/2d/runtime/ownership.d.ts +41 -0
  149. package/dist/features/physics/lib/2d/runtime/ownership.js +46 -0
  150. package/dist/features/physics/lib/2d/runtime/ownership.js.map +7 -0
  151. package/dist/features/physics/lib/2d/runtime/trace.d.ts +32 -0
  152. package/dist/features/physics/lib/2d/runtime/trace.js +22 -0
  153. package/dist/features/physics/lib/2d/runtime/trace.js.map +7 -0
  154. package/dist/features/physics/lib/2d/runtime/world-component.d.ts +18 -0
  155. package/dist/features/physics/lib/2d/runtime/world-component.js +41 -0
  156. package/dist/features/physics/lib/2d/runtime/world-component.js.map +7 -0
  157. package/dist/features/physics/lib/2d/runtime/world-props.d.ts +16 -0
  158. package/dist/features/physics/lib/2d/shape-records.d.ts +60 -0
  159. package/dist/features/physics/lib/2d/shape-records.js +26 -0
  160. package/dist/features/physics/lib/2d/shape-records.js.map +7 -0
  161. package/dist/features/physics/lib/2d/shapes.d.ts +191 -0
  162. package/dist/features/physics/lib/2d/shapes.js +543 -0
  163. package/dist/features/physics/lib/2d/shapes.js.map +7 -0
  164. package/dist/features/physics/lib/2d/types.d.ts +713 -0
  165. package/dist/features/physics/lib/2d/types.js +1 -0
  166. package/dist/features/physics/lib/2d/types.js.map +7 -0
  167. package/dist/features/physics/lib/2d/world/broad-phase.d.ts +77 -0
  168. package/dist/features/physics/lib/2d/world/broad-phase.js +762 -0
  169. package/dist/features/physics/lib/2d/world/broad-phase.js.map +7 -0
  170. package/dist/features/physics/lib/2d/world/ccd.d.ts +19 -0
  171. package/dist/features/physics/lib/2d/world/ccd.js +265 -0
  172. package/dist/features/physics/lib/2d/world/ccd.js.map +7 -0
  173. package/dist/features/physics/lib/2d/world/contact-cache.d.ts +81 -0
  174. package/dist/features/physics/lib/2d/world/contact-cache.js +497 -0
  175. package/dist/features/physics/lib/2d/world/contact-cache.js.map +7 -0
  176. package/dist/features/physics/lib/2d/world/integrator.d.ts +11 -0
  177. package/dist/features/physics/lib/2d/world/integrator.js +99 -0
  178. package/dist/features/physics/lib/2d/world/integrator.js.map +7 -0
  179. package/dist/features/physics/lib/2d/world/queries.d.ts +62 -0
  180. package/dist/features/physics/lib/2d/world/queries.js +424 -0
  181. package/dist/features/physics/lib/2d/world/queries.js.map +7 -0
  182. package/dist/features/physics/lib/2d/world/rapier-engine.js +7054 -0
  183. package/dist/features/physics/lib/2d/world/rapier-engine.js.map +7 -0
  184. package/dist/features/physics/lib/2d/world/rapier.d.ts +50 -0
  185. package/dist/features/physics/lib/2d/world/rapier.js +655 -0
  186. package/dist/features/physics/lib/2d/world/rapier.js.map +7 -0
  187. package/dist/features/physics/lib/2d/world/solver.d.ts +58 -0
  188. package/dist/features/physics/lib/2d/world/solver.js +660 -0
  189. package/dist/features/physics/lib/2d/world/solver.js.map +7 -0
  190. package/dist/features/physics/lib/2d/world/storage.d.ts +96 -0
  191. package/dist/features/physics/lib/2d/world/storage.js +371 -0
  192. package/dist/features/physics/lib/2d/world/storage.js.map +7 -0
  193. package/dist/features/physics/lib/2d/world/world.d.ts +265 -0
  194. package/dist/features/physics/lib/2d/world/world.js +1713 -0
  195. package/dist/features/physics/lib/2d/world/world.js.map +7 -0
  196. package/dist/features/physics/lib/shared/signal-inputs.d.ts +5 -0
  197. package/dist/features/physics/lib/shared/signal-inputs.js +20 -0
  198. package/dist/features/physics/lib/shared/signal-inputs.js.map +7 -0
  199. package/dist/features/physics/lib/shared/validation.d.ts +5 -0
  200. package/dist/features/physics/lib/shared/validation.js +48 -0
  201. package/dist/features/physics/lib/shared/validation.js.map +7 -0
  202. package/dist/features/sprites/formats/aseprite.js +23 -0
  203. package/dist/features/sprites/formats/aseprite.js.map +7 -0
  204. package/dist/features/sprites/formats/aseprite.mjs +1 -0
  205. package/dist/features/sprites/formats/texture-packer.js +14 -0
  206. package/dist/features/sprites/formats/texture-packer.js.map +7 -0
  207. package/dist/features/sprites/formats/texture-packer.mjs +1 -0
  208. package/dist/features/sprites/index.js +9 -0
  209. package/dist/features/sprites/index.js.map +7 -0
  210. package/dist/features/sprites/index.mjs +1 -0
  211. package/dist/features/sprites/loader.js +63 -0
  212. package/dist/features/sprites/loader.js.map +7 -0
  213. package/dist/features/sprites/model.js +64 -0
  214. package/dist/features/sprites/model.js.map +7 -0
  215. package/dist/features/sprites/sprite.js +31 -0
  216. package/dist/features/sprites/sprite.js.map +7 -0
  217. package/dist/features/textures/index.d.ts +22 -0
  218. package/dist/features/textures/index.js +31 -0
  219. package/dist/features/textures/index.js.map +7 -0
  220. package/dist/features/textures/index.mjs +1 -0
  221. package/dist/features/textures/lib/definitions.d.ts +117 -0
  222. package/dist/features/textures/lib/definitions.js +179 -0
  223. package/dist/features/textures/lib/definitions.js.map +7 -0
  224. package/dist/features/textures/lib/electric-boundary.d.ts +3 -0
  225. package/dist/features/textures/lib/electric-boundary.js +11 -0
  226. package/dist/features/textures/lib/electric-boundary.js.map +7 -0
  227. package/dist/features/textures/lib/electric-shared.d.ts +69 -0
  228. package/dist/features/textures/lib/electric-shared.js +43 -0
  229. package/dist/features/textures/lib/electric-shared.js.map +7 -0
  230. package/dist/features/textures/lib/electric-sources.d.ts +50 -0
  231. package/dist/features/textures/lib/electric-sources.js +43 -0
  232. package/dist/features/textures/lib/electric-sources.js.map +7 -0
  233. package/dist/features/textures/lib/lightning.d.ts +72 -0
  234. package/dist/features/textures/lib/lightning.js +139 -0
  235. package/dist/features/textures/lib/lightning.js.map +7 -0
  236. package/dist/features/textures/lib/material-field.d.ts +12 -0
  237. package/dist/features/textures/lib/material-field.js +31 -0
  238. package/dist/features/textures/lib/material-field.js.map +7 -0
  239. package/dist/features/textures/lib/palette.d.ts +45 -0
  240. package/dist/features/textures/lib/palette.js +52 -0
  241. package/dist/features/textures/lib/palette.js.map +7 -0
  242. package/dist/features/textures/lib/presentation.d.ts +54 -0
  243. package/dist/features/textures/lib/presentation.js +83 -0
  244. package/dist/features/textures/lib/presentation.js.map +7 -0
  245. package/dist/features/textures/lib/procedural-texture.d.ts +44 -0
  246. package/dist/features/textures/lib/procedural-texture.js +110 -0
  247. package/dist/features/textures/lib/procedural-texture.js.map +7 -0
  248. package/dist/features/textures/lib/rain-drops.d.ts +96 -0
  249. package/dist/features/textures/lib/rain-drops.js +322 -0
  250. package/dist/features/textures/lib/rain-drops.js.map +7 -0
  251. package/dist/features/textures/lib/reaction-diffusion.d.ts +67 -0
  252. package/dist/features/textures/lib/reaction-diffusion.js +210 -0
  253. package/dist/features/textures/lib/reaction-diffusion.js.map +7 -0
  254. package/dist/features/textures/lib/simulation.d.ts +16 -0
  255. package/dist/features/textures/lib/simulation.js +85 -0
  256. package/dist/features/textures/lib/simulation.js.map +7 -0
  257. package/dist/features/textures/lib/tendrils.d.ts +57 -0
  258. package/dist/features/textures/lib/tendrils.js +216 -0
  259. package/dist/features/textures/lib/tendrils.js.map +7 -0
  260. package/dist/features/textures/lib/wasm/cellular-bytes.d.ts +1 -0
  261. package/dist/features/textures/lib/wasm/cellular-bytes.js +5 -0
  262. package/dist/features/textures/lib/wasm/cellular-bytes.js.map +7 -0
  263. package/dist/features/textures/lib/wasm/electric.d.ts +88 -0
  264. package/dist/features/textures/lib/wasm/electric.js +299 -0
  265. package/dist/features/textures/lib/wasm/electric.js.map +7 -0
  266. package/dist/features/textures/lib/wasm/ink-bytes.d.ts +1 -0
  267. package/dist/features/textures/lib/wasm/ink-bytes.js +5 -0
  268. package/dist/features/textures/lib/wasm/ink-bytes.js.map +7 -0
  269. package/dist/features/textures/lib/wasm/lightning-bytes.d.ts +1 -0
  270. package/dist/features/textures/lib/wasm/lightning-bytes.js +5 -0
  271. package/dist/features/textures/lib/wasm/lightning-bytes.js.map +7 -0
  272. package/dist/features/textures/lib/wasm/marble-bytes.d.ts +1 -0
  273. package/dist/features/textures/lib/wasm/marble-bytes.js +5 -0
  274. package/dist/features/textures/lib/wasm/marble-bytes.js.map +7 -0
  275. package/dist/features/textures/lib/wasm/memory.d.ts +31 -0
  276. package/dist/features/textures/lib/wasm/memory.js +103 -0
  277. package/dist/features/textures/lib/wasm/memory.js.map +7 -0
  278. package/dist/features/textures/lib/wasm/paper-bytes.d.ts +1 -0
  279. package/dist/features/textures/lib/wasm/paper-bytes.js +5 -0
  280. package/dist/features/textures/lib/wasm/paper-bytes.js.map +7 -0
  281. package/dist/features/textures/lib/wasm/tendrils-bytes.d.ts +1 -0
  282. package/dist/features/textures/lib/wasm/tendrils-bytes.js +5 -0
  283. package/dist/features/textures/lib/wasm/tendrils-bytes.js.map +7 -0
  284. package/dist/features/textures/lib/wasm/water-surface-bytes.d.ts +1 -0
  285. package/dist/features/textures/lib/wasm/water-surface-bytes.js +5 -0
  286. package/dist/features/textures/lib/wasm/water-surface-bytes.js.map +7 -0
  287. package/dist/features/textures/lib/wasm/water-waves-bytes.d.ts +1 -0
  288. package/dist/features/textures/lib/wasm/water-waves-bytes.js +5 -0
  289. package/dist/features/textures/lib/wasm/water-waves-bytes.js.map +7 -0
  290. package/dist/features/textures/lib/water-surface.d.ts +92 -0
  291. package/dist/features/textures/lib/water-surface.js +378 -0
  292. package/dist/features/textures/lib/water-surface.js.map +7 -0
  293. package/dist/features/textures/lib/water-waves.d.ts +60 -0
  294. package/dist/features/textures/lib/water-waves.js +154 -0
  295. package/dist/features/textures/lib/water-waves.js.map +7 -0
  296. package/dist/features/viz/index.d.ts +28 -0
  297. package/dist/features/viz/index.js +45 -0
  298. package/dist/features/viz/index.js.map +7 -0
  299. package/dist/features/viz/index.mjs +1 -0
  300. package/dist/features/viz/lib/anchored-layout.d.ts +104 -0
  301. package/dist/features/viz/lib/anchored-layout.js +166 -0
  302. package/dist/features/viz/lib/anchored-layout.js.map +7 -0
  303. package/dist/features/viz/lib/axis.d.ts +10 -0
  304. package/dist/features/viz/lib/axis.js +116 -0
  305. package/dist/features/viz/lib/axis.js.map +7 -0
  306. package/dist/features/viz/lib/band-scale.d.ts +3 -0
  307. package/dist/features/viz/lib/band-scale.js +57 -0
  308. package/dist/features/viz/lib/band-scale.js.map +7 -0
  309. package/dist/features/viz/lib/bar-fill.d.ts +16 -0
  310. package/dist/features/viz/lib/bar-fill.js +53 -0
  311. package/dist/features/viz/lib/bar-fill.js.map +7 -0
  312. package/dist/features/viz/lib/bar-series.d.ts +150 -0
  313. package/dist/features/viz/lib/bar-series.js +152 -0
  314. package/dist/features/viz/lib/bar-series.js.map +7 -0
  315. package/dist/features/viz/lib/hover-card.d.ts +92 -0
  316. package/dist/features/viz/lib/hover-card.js +146 -0
  317. package/dist/features/viz/lib/hover-card.js.map +7 -0
  318. package/dist/features/viz/lib/hover-data.d.ts +12 -0
  319. package/dist/features/viz/lib/hover-data.js +50 -0
  320. package/dist/features/viz/lib/hover-data.js.map +7 -0
  321. package/dist/features/viz/lib/hover-placement.d.ts +46 -0
  322. package/dist/features/viz/lib/hover-placement.js +51 -0
  323. package/dist/features/viz/lib/hover-placement.js.map +7 -0
  324. package/dist/features/viz/lib/hover-queries.d.ts +60 -0
  325. package/dist/features/viz/lib/hover-queries.js +185 -0
  326. package/dist/features/viz/lib/hover-queries.js.map +7 -0
  327. package/dist/features/viz/lib/hover-types.d.ts +277 -0
  328. package/dist/features/viz/lib/layout-pie.d.ts +13 -0
  329. package/dist/features/viz/lib/layout-pie.js +159 -0
  330. package/dist/features/viz/lib/layout-pie.js.map +7 -0
  331. package/dist/features/viz/lib/line-series.d.ts +11 -0
  332. package/dist/features/viz/lib/line-series.js +89 -0
  333. package/dist/features/viz/lib/line-series.js.map +7 -0
  334. package/dist/features/viz/lib/linear-scale.d.ts +3 -0
  335. package/dist/features/viz/lib/linear-scale.js +70 -0
  336. package/dist/features/viz/lib/linear-scale.js.map +7 -0
  337. package/dist/features/viz/lib/nearest.d.ts +82 -0
  338. package/dist/features/viz/lib/nearest.js +51 -0
  339. package/dist/features/viz/lib/nearest.js.map +7 -0
  340. package/dist/features/viz/lib/paint.d.ts +2 -0
  341. package/dist/features/viz/lib/paint.js +17 -0
  342. package/dist/features/viz/lib/paint.js.map +7 -0
  343. package/dist/features/viz/lib/pie-layout.d.ts +31 -0
  344. package/dist/features/viz/lib/pie-layout.js +324 -0
  345. package/dist/features/viz/lib/pie-layout.js.map +7 -0
  346. package/dist/features/viz/lib/pie-slices.d.ts +51 -0
  347. package/dist/features/viz/lib/pie-slices.js +50 -0
  348. package/dist/features/viz/lib/pie-slices.js.map +7 -0
  349. package/dist/features/viz/lib/pie-types.d.ts +215 -0
  350. package/dist/features/viz/lib/plot-series.d.ts +13 -0
  351. package/dist/features/viz/lib/plot-series.js +53 -0
  352. package/dist/features/viz/lib/plot-series.js.map +7 -0
  353. package/dist/features/viz/lib/plot-types.d.ts +63 -0
  354. package/dist/features/viz/lib/point-data.d.ts +5 -0
  355. package/dist/features/viz/lib/point-data.js +17 -0
  356. package/dist/features/viz/lib/point-data.js.map +7 -0
  357. package/dist/features/viz/lib/point-geometry.d.ts +2 -0
  358. package/dist/features/viz/lib/point-geometry.js +24 -0
  359. package/dist/features/viz/lib/point-geometry.js.map +7 -0
  360. package/dist/features/viz/lib/point-series.d.ts +11 -0
  361. package/dist/features/viz/lib/point-series.js +118 -0
  362. package/dist/features/viz/lib/point-series.js.map +7 -0
  363. package/dist/features/viz/lib/point-types.d.ts +94 -0
  364. package/dist/features/viz/lib/scale-adjust.d.ts +11 -0
  365. package/dist/features/viz/lib/scale-adjust.js +25 -0
  366. package/dist/features/viz/lib/scale-adjust.js.map +7 -0
  367. package/dist/features/viz/lib/scale-context.d.ts +8 -0
  368. package/dist/features/viz/lib/scale-context.js +61 -0
  369. package/dist/features/viz/lib/scale-context.js.map +7 -0
  370. package/dist/features/viz/lib/scale.d.ts +11 -0
  371. package/dist/features/viz/lib/scale.js +80 -0
  372. package/dist/features/viz/lib/scale.js.map +7 -0
  373. package/dist/features/viz/lib/types.d.ts +414 -0
  374. package/dist/features/viz/lib/use-scale.d.ts +20 -0
  375. package/dist/features/viz/lib/use-scale.js +10 -0
  376. package/dist/features/viz/lib/use-scale.js.map +7 -0
  377. package/dist/filters/displacement-gpu.d.ts +38 -0
  378. package/dist/filters/displacement-gpu.js +243 -0
  379. package/dist/filters/displacement-gpu.js.map +7 -0
  380. package/dist/filters/displacement-math.d.ts +5 -0
  381. package/dist/filters/displacement-math.js +22 -0
  382. package/dist/filters/displacement-math.js.map +7 -0
  383. package/dist/filters/displacement.d.ts +13 -0
  384. package/dist/filters/displacement.js +65 -0
  385. package/dist/filters/displacement.js.map +7 -0
  386. package/dist/filters/filter-executor.d.ts +21 -0
  387. package/dist/filters/filter-executor.js +120 -0
  388. package/dist/filters/filter-executor.js.map +7 -0
  389. package/dist/filters/native-canvas-filter.d.ts +4 -0
  390. package/dist/filters/native-canvas-filter.js +105 -0
  391. package/dist/filters/native-canvas-filter.js.map +7 -0
  392. package/dist/filters/native-color.d.ts +2 -0
  393. package/dist/filters/native-color.js +200 -0
  394. package/dist/filters/native-color.js.map +7 -0
  395. package/dist/filters/native-operations.d.ts +8 -0
  396. package/dist/filters/native-operations.js +7 -0
  397. package/dist/filters/native-operations.js.map +7 -0
  398. package/dist/filters/native.d.ts +113 -0
  399. package/dist/filters/native.js +115 -0
  400. package/dist/filters/native.js.map +7 -0
  401. package/dist/filters/reflected-light.d.ts +12 -0
  402. package/dist/filters/reflected-light.js +93 -0
  403. package/dist/filters/reflected-light.js.map +7 -0
  404. package/dist/filters/reflection-gpu.d.ts +58 -0
  405. package/dist/filters/reflection-gpu.js +266 -0
  406. package/dist/filters/reflection-gpu.js.map +7 -0
  407. package/dist/filters/render-displacement-boundary.d.ts +12 -0
  408. package/dist/filters/render-displacement-boundary.js +116 -0
  409. package/dist/filters/render-displacement-boundary.js.map +7 -0
  410. package/dist/filters/render-reflection-boundary.d.ts +15 -0
  411. package/dist/filters/render-reflection-boundary.js +127 -0
  412. package/dist/filters/render-reflection-boundary.js.map +7 -0
  413. package/dist/filters.d.ts +5 -0
  414. package/dist/filters.js +29 -0
  415. package/dist/filters.js.map +7 -0
  416. package/dist/filters.mjs +1 -0
  417. package/dist/index.d.ts +111 -0
  418. package/dist/index.js +300 -0
  419. package/dist/index.js.map +7 -0
  420. package/dist/index.mjs +1 -0
  421. package/dist/internal.d.ts +160 -0
  422. package/dist/internal.js +320 -0
  423. package/dist/internal.js.map +7 -0
  424. package/dist/internal.mjs +1 -0
  425. package/dist/jsx-dev-runtime.d.ts +35 -0
  426. package/dist/jsx-dev-runtime.js +6 -0
  427. package/dist/jsx-dev-runtime.js.map +7 -0
  428. package/dist/jsx-dev-runtime.mjs +1 -0
  429. package/dist/jsx-runtime.d.ts +35 -0
  430. package/dist/jsx-runtime.js +7 -0
  431. package/dist/jsx-runtime.js.map +7 -0
  432. package/dist/jsx-runtime.mjs +1 -0
  433. package/dist/lib/animation/definition.d.ts +140 -0
  434. package/dist/lib/animation/definition.js +605 -0
  435. package/dist/lib/animation/definition.js.map +7 -0
  436. package/dist/lib/animation/easing.d.ts +55 -0
  437. package/dist/lib/animation/easing.js +112 -0
  438. package/dist/lib/animation/easing.js.map +7 -0
  439. package/dist/lib/animation/evaluate.d.ts +118 -0
  440. package/dist/lib/animation/evaluate.js +2398 -0
  441. package/dist/lib/animation/evaluate.js.map +7 -0
  442. package/dist/lib/animation/playback.d.ts +30 -0
  443. package/dist/lib/animation/playback.js +932 -0
  444. package/dist/lib/animation/playback.js.map +7 -0
  445. package/dist/lib/animation/program.d.ts +145 -0
  446. package/dist/lib/animation/program.js +741 -0
  447. package/dist/lib/animation/program.js.map +7 -0
  448. package/dist/lib/animation/spring.d.ts +30 -0
  449. package/dist/lib/animation/spring.js +324 -0
  450. package/dist/lib/animation/spring.js.map +7 -0
  451. package/dist/lib/animation/types.d.ts +418 -0
  452. package/dist/lib/animation/writer-leases.d.ts +47 -0
  453. package/dist/lib/animation/writer-leases.js +314 -0
  454. package/dist/lib/animation/writer-leases.js.map +7 -0
  455. package/dist/lib/backend/canvas-2d-backend.d.ts +4 -0
  456. package/dist/lib/backend/canvas-2d-backend.js +97 -0
  457. package/dist/lib/backend/canvas-2d-backend.js.map +7 -0
  458. package/dist/lib/backend/types.d.ts +309 -0
  459. package/dist/lib/backend/types.js +26 -0
  460. package/dist/lib/backend/types.js.map +7 -0
  461. package/dist/lib/components/arc-geometry.d.ts +4 -0
  462. package/dist/lib/components/arc-geometry.js +46 -0
  463. package/dist/lib/components/arc-geometry.js.map +7 -0
  464. package/dist/lib/components/arc.d.ts +55 -0
  465. package/dist/lib/components/arc.js +91 -0
  466. package/dist/lib/components/arc.js.map +7 -0
  467. package/dist/lib/components/circle.d.ts +49 -0
  468. package/dist/lib/components/circle.js +46 -0
  469. package/dist/lib/components/circle.js.map +7 -0
  470. package/dist/lib/components/clip.d.ts +43 -0
  471. package/dist/lib/components/clip.js +24 -0
  472. package/dist/lib/components/clip.js.map +7 -0
  473. package/dist/lib/components/ellipse.d.ts +53 -0
  474. package/dist/lib/components/ellipse.js +59 -0
  475. package/dist/lib/components/ellipse.js.map +7 -0
  476. package/dist/lib/components/g.d.ts +56 -0
  477. package/dist/lib/components/g.js +24 -0
  478. package/dist/lib/components/g.js.map +7 -0
  479. package/dist/lib/components/horizontal-line.d.ts +56 -0
  480. package/dist/lib/components/horizontal-line.js +71 -0
  481. package/dist/lib/components/horizontal-line.js.map +7 -0
  482. package/dist/lib/components/html-box.d.ts +16 -0
  483. package/dist/lib/components/html-box.js +57 -0
  484. package/dist/lib/components/html-box.js.map +7 -0
  485. package/dist/lib/components/img.d.ts +24 -0
  486. package/dist/lib/components/img.js +150 -0
  487. package/dist/lib/components/img.js.map +7 -0
  488. package/dist/lib/components/layer-node-equality.d.ts +65 -0
  489. package/dist/lib/components/layer-node-equality.js +91 -0
  490. package/dist/lib/components/layer-node-equality.js.map +7 -0
  491. package/dist/lib/components/layer.d.ts +34 -0
  492. package/dist/lib/components/layer.js +172 -0
  493. package/dist/lib/components/layer.js.map +7 -0
  494. package/dist/lib/components/line.d.ts +51 -0
  495. package/dist/lib/components/line.js +76 -0
  496. package/dist/lib/components/line.js.map +7 -0
  497. package/dist/lib/components/path.d.ts +28 -0
  498. package/dist/lib/components/path.js +47 -0
  499. package/dist/lib/components/path.js.map +7 -0
  500. package/dist/lib/components/polygon.d.ts +45 -0
  501. package/dist/lib/components/polygon.js +93 -0
  502. package/dist/lib/components/polygon.js.map +7 -0
  503. package/dist/lib/components/rect.d.ts +24 -0
  504. package/dist/lib/components/rect.js +83 -0
  505. package/dist/lib/components/rect.js.map +7 -0
  506. package/dist/lib/components/regular-polygon.d.ts +102 -0
  507. package/dist/lib/components/regular-polygon.js +112 -0
  508. package/dist/lib/components/regular-polygon.js.map +7 -0
  509. package/dist/lib/components/rounded-corner-style.d.ts +7 -0
  510. package/dist/lib/components/rounded-corner-style.js +40 -0
  511. package/dist/lib/components/rounded-corner-style.js.map +7 -0
  512. package/dist/lib/components/shape-style.d.ts +7 -0
  513. package/dist/lib/components/shape-style.js +52 -0
  514. package/dist/lib/components/shape-style.js.map +7 -0
  515. package/dist/lib/components/star.d.ts +56 -0
  516. package/dist/lib/components/star.js +98 -0
  517. package/dist/lib/components/star.js.map +7 -0
  518. package/dist/lib/components/structural-events.d.ts +10 -0
  519. package/dist/lib/components/structural-events.js +8 -0
  520. package/dist/lib/components/structural-events.js.map +7 -0
  521. package/dist/lib/components/svg-path.d.ts +23 -0
  522. package/dist/lib/components/svg-path.js +25 -0
  523. package/dist/lib/components/svg-path.js.map +7 -0
  524. package/dist/lib/components/text-layout.d.ts +31 -0
  525. package/dist/lib/components/text-layout.js +139 -0
  526. package/dist/lib/components/text-layout.js.map +7 -0
  527. package/dist/lib/components/text.d.ts +29 -0
  528. package/dist/lib/components/text.js +174 -0
  529. package/dist/lib/components/text.js.map +7 -0
  530. package/dist/lib/components/vertical-line.d.ts +57 -0
  531. package/dist/lib/components/vertical-line.js +71 -0
  532. package/dist/lib/components/vertical-line.js.map +7 -0
  533. package/dist/lib/components/wedge.d.ts +55 -0
  534. package/dist/lib/components/wedge.js +93 -0
  535. package/dist/lib/components/wedge.js.map +7 -0
  536. package/dist/lib/define-primitive.d.ts +82 -0
  537. package/dist/lib/define-primitive.js +85 -0
  538. package/dist/lib/define-primitive.js.map +7 -0
  539. package/dist/lib/development.d.ts +2 -0
  540. package/dist/lib/development.js +5 -0
  541. package/dist/lib/development.js.map +7 -0
  542. package/dist/lib/element/children.d.ts +16 -0
  543. package/dist/lib/element/children.js +333 -0
  544. package/dist/lib/element/children.js.map +7 -0
  545. package/dist/lib/element/create-element.d.ts +34 -0
  546. package/dist/lib/element/create-element.js +75 -0
  547. package/dist/lib/element/create-element.js.map +7 -0
  548. package/dist/lib/element/fragment.d.ts +15 -0
  549. package/dist/lib/element/fragment.js +11 -0
  550. package/dist/lib/element/fragment.js.map +7 -0
  551. package/dist/lib/element/jsx-runtime.d.ts +48 -0
  552. package/dist/lib/element/jsx-runtime.js +16 -0
  553. package/dist/lib/element/jsx-runtime.js.map +7 -0
  554. package/dist/lib/element/metadata.d.ts +96 -0
  555. package/dist/lib/element/metadata.js +160 -0
  556. package/dist/lib/element/metadata.js.map +7 -0
  557. package/dist/lib/element/resolve-primitive-inputs.d.ts +12 -0
  558. package/dist/lib/element/resolve-primitive-inputs.js +83 -0
  559. package/dist/lib/element/resolve-primitive-inputs.js.map +7 -0
  560. package/dist/lib/element/types.d.ts +123 -0
  561. package/dist/lib/element-enhancers.d.ts +134 -0
  562. package/dist/lib/element-enhancers.js +193 -0
  563. package/dist/lib/element-enhancers.js.map +7 -0
  564. package/dist/lib/events/adapters/clipboard.d.ts +9 -0
  565. package/dist/lib/events/adapters/clipboard.js +23 -0
  566. package/dist/lib/events/adapters/clipboard.js.map +7 -0
  567. package/dist/lib/events/adapters/drag.d.ts +12 -0
  568. package/dist/lib/events/adapters/drag.js +29 -0
  569. package/dist/lib/events/adapters/drag.js.map +7 -0
  570. package/dist/lib/events/adapters/editing.d.ts +15 -0
  571. package/dist/lib/events/adapters/editing.js +41 -0
  572. package/dist/lib/events/adapters/editing.js.map +7 -0
  573. package/dist/lib/events/adapters/keyboard-focus.d.ts +12 -0
  574. package/dist/lib/events/adapters/keyboard-focus.js +36 -0
  575. package/dist/lib/events/adapters/keyboard-focus.js.map +7 -0
  576. package/dist/lib/events/adapters/mouse.d.ts +17 -0
  577. package/dist/lib/events/adapters/mouse.js +32 -0
  578. package/dist/lib/events/adapters/mouse.js.map +7 -0
  579. package/dist/lib/events/adapters/pointer.d.ts +19 -0
  580. package/dist/lib/events/adapters/pointer.js +40 -0
  581. package/dist/lib/events/adapters/pointer.js.map +7 -0
  582. package/dist/lib/events/adapters/touch.d.ts +16 -0
  583. package/dist/lib/events/adapters/touch.js +36 -0
  584. package/dist/lib/events/adapters/touch.js.map +7 -0
  585. package/dist/lib/events/adapters/wheel.d.ts +10 -0
  586. package/dist/lib/events/adapters/wheel.js +16 -0
  587. package/dist/lib/events/adapters/wheel.js.map +7 -0
  588. package/dist/lib/events/boundary-transitions.d.ts +9 -0
  589. package/dist/lib/events/boundary-transitions.js +16 -0
  590. package/dist/lib/events/boundary-transitions.js.map +7 -0
  591. package/dist/lib/events/dispatch.d.ts +21 -0
  592. package/dist/lib/events/dispatch.js +1078 -0
  593. package/dist/lib/events/dispatch.js.map +7 -0
  594. package/dist/lib/events/event-definitions.d.ts +23 -0
  595. package/dist/lib/events/event-definitions.js +74 -0
  596. package/dist/lib/events/event-definitions.js.map +7 -0
  597. package/dist/lib/events/event-facade.d.ts +19 -0
  598. package/dist/lib/events/event-facade.js +188 -0
  599. package/dist/lib/events/event-facade.js.map +7 -0
  600. package/dist/lib/events/event-path.d.ts +3 -0
  601. package/dist/lib/events/event-path.js +43 -0
  602. package/dist/lib/events/event-path.js.map +7 -0
  603. package/dist/lib/events/hit-test.d.ts +13 -0
  604. package/dist/lib/events/hit-test.js +135 -0
  605. package/dist/lib/events/hit-test.js.map +7 -0
  606. package/dist/lib/events/native-listener-hub.d.ts +10 -0
  607. package/dist/lib/events/native-listener-hub.js +72 -0
  608. package/dist/lib/events/native-listener-hub.js.map +7 -0
  609. package/dist/lib/events/paint-entry.d.ts +66 -0
  610. package/dist/lib/events/paint-entry.js +30 -0
  611. package/dist/lib/events/paint-entry.js.map +7 -0
  612. package/dist/lib/events/pointer-capture.d.ts +23 -0
  613. package/dist/lib/events/pointer-capture.js +339 -0
  614. package/dist/lib/events/pointer-capture.js.map +7 -0
  615. package/dist/lib/events/propagation.d.ts +7 -0
  616. package/dist/lib/events/propagation.js +56 -0
  617. package/dist/lib/events/propagation.js.map +7 -0
  618. package/dist/lib/events/registrations.d.ts +120 -0
  619. package/dist/lib/events/registrations.js +397 -0
  620. package/dist/lib/events/registrations.js.map +7 -0
  621. package/dist/lib/events/resolver-input.d.ts +25 -0
  622. package/dist/lib/events/resolver-input.js +62 -0
  623. package/dist/lib/events/resolver-input.js.map +7 -0
  624. package/dist/lib/events/types.d.ts +596 -0
  625. package/dist/lib/execute-render.d.ts +9 -0
  626. package/dist/lib/execute-render.js +195 -0
  627. package/dist/lib/execute-render.js.map +7 -0
  628. package/dist/lib/filter/canvas-state.d.ts +2 -0
  629. package/dist/lib/filter/canvas-state.js +31 -0
  630. package/dist/lib/filter/canvas-state.js.map +7 -0
  631. package/dist/lib/filter/filter-region.d.ts +33 -0
  632. package/dist/lib/filter/filter-region.js +291 -0
  633. package/dist/lib/filter/filter-region.js.map +7 -0
  634. package/dist/lib/filter/filter-surface-pool.d.ts +38 -0
  635. package/dist/lib/filter/filter-surface-pool.js +252 -0
  636. package/dist/lib/filter/filter-surface-pool.js.map +7 -0
  637. package/dist/lib/filter/render-filter-boundary.d.ts +14 -0
  638. package/dist/lib/filter/render-filter-boundary.js +211 -0
  639. package/dist/lib/filter/render-filter-boundary.js.map +7 -0
  640. package/dist/lib/focus/directional-navigation.d.ts +12 -0
  641. package/dist/lib/focus/directional-navigation.js +86 -0
  642. package/dist/lib/focus/directional-navigation.js.map +7 -0
  643. package/dist/lib/focus/dom-focus-host.d.ts +13 -0
  644. package/dist/lib/focus/dom-focus-host.js +352 -0
  645. package/dist/lib/focus/dom-focus-host.js.map +7 -0
  646. package/dist/lib/focus/dom-tab-stops.d.ts +3 -0
  647. package/dist/lib/focus/dom-tab-stops.js +71 -0
  648. package/dist/lib/focus/dom-tab-stops.js.map +7 -0
  649. package/dist/lib/focus/focus-events.d.ts +4 -0
  650. package/dist/lib/focus/focus-events.js +78 -0
  651. package/dist/lib/focus/focus-events.js.map +7 -0
  652. package/dist/lib/focus/focus-manager.d.ts +121 -0
  653. package/dist/lib/focus/focus-manager.js +1131 -0
  654. package/dist/lib/focus/focus-manager.js.map +7 -0
  655. package/dist/lib/focus/geometry.d.ts +4 -0
  656. package/dist/lib/focus/geometry.js +64 -0
  657. package/dist/lib/focus/geometry.js.map +7 -0
  658. package/dist/lib/focus/html-focus-region.d.ts +27 -0
  659. package/dist/lib/focus/keyboard-defaults.d.ts +7 -0
  660. package/dist/lib/focus/keyboard-defaults.js +110 -0
  661. package/dist/lib/focus/keyboard-defaults.js.map +7 -0
  662. package/dist/lib/focus/policy-components.d.ts +45 -0
  663. package/dist/lib/focus/policy-components.js +94 -0
  664. package/dist/lib/focus/policy-components.js.map +7 -0
  665. package/dist/lib/focus/types.d.ts +37 -0
  666. package/dist/lib/focus/types.js +7 -0
  667. package/dist/lib/focus/types.js.map +7 -0
  668. package/dist/lib/geometry/circle.d.ts +22 -0
  669. package/dist/lib/geometry/circle.js +13 -0
  670. package/dist/lib/geometry/circle.js.map +7 -0
  671. package/dist/lib/geometry/circular-sweep.d.ts +54 -0
  672. package/dist/lib/geometry/circular-sweep.js +95 -0
  673. package/dist/lib/geometry/circular-sweep.js.map +7 -0
  674. package/dist/lib/geometry/ellipse.d.ts +26 -0
  675. package/dist/lib/geometry/ellipse.js +17 -0
  676. package/dist/lib/geometry/ellipse.js.map +7 -0
  677. package/dist/lib/geometry/line.d.ts +20 -0
  678. package/dist/lib/geometry/line.js +15 -0
  679. package/dist/lib/geometry/line.js.map +7 -0
  680. package/dist/lib/geometry/path-arc.d.ts +25 -0
  681. package/dist/lib/geometry/path-arc.js +57 -0
  682. package/dist/lib/geometry/path-arc.js.map +7 -0
  683. package/dist/lib/geometry/path-bend-guide.d.ts +31 -0
  684. package/dist/lib/geometry/path-bend-guide.js +282 -0
  685. package/dist/lib/geometry/path-bend-guide.js.map +7 -0
  686. package/dist/lib/geometry/path-bend-spans.d.ts +31 -0
  687. package/dist/lib/geometry/path-bend-spans.js +109 -0
  688. package/dist/lib/geometry/path-bend-spans.js.map +7 -0
  689. package/dist/lib/geometry/path-bending.d.ts +90 -0
  690. package/dist/lib/geometry/path-bending.js +202 -0
  691. package/dist/lib/geometry/path-bending.js.map +7 -0
  692. package/dist/lib/geometry/path-conversion.d.ts +19 -0
  693. package/dist/lib/geometry/path-conversion.js +114 -0
  694. package/dist/lib/geometry/path-conversion.js.map +7 -0
  695. package/dist/lib/geometry/path-geometry.d.ts +218 -0
  696. package/dist/lib/geometry/path-geometry.js +557 -0
  697. package/dist/lib/geometry/path-geometry.js.map +7 -0
  698. package/dist/lib/geometry/path-radial.d.ts +15 -0
  699. package/dist/lib/geometry/path-radial.js +107 -0
  700. package/dist/lib/geometry/path-radial.js.map +7 -0
  701. package/dist/lib/geometry/path-transforms.d.ts +233 -0
  702. package/dist/lib/geometry/path-transforms.js +478 -0
  703. package/dist/lib/geometry/path-transforms.js.map +7 -0
  704. package/dist/lib/geometry/path-utilities.d.ts +78 -0
  705. package/dist/lib/geometry/path-utilities.js +341 -0
  706. package/dist/lib/geometry/path-utilities.js.map +7 -0
  707. package/dist/lib/geometry/path-wang.d.ts +18 -0
  708. package/dist/lib/geometry/path-wang.js +136 -0
  709. package/dist/lib/geometry/path-wang.js.map +7 -0
  710. package/dist/lib/geometry/path-warp-bezier.d.ts +17 -0
  711. package/dist/lib/geometry/path-warp-bezier.js +109 -0
  712. package/dist/lib/geometry/path-warp-bezier.js.map +7 -0
  713. package/dist/lib/geometry/path-warp.d.ts +27 -0
  714. package/dist/lib/geometry/path-warp.js +165 -0
  715. package/dist/lib/geometry/path-warp.js.map +7 -0
  716. package/dist/lib/geometry/polygon.d.ts +21 -0
  717. package/dist/lib/geometry/polygon.js +12 -0
  718. package/dist/lib/geometry/polygon.js.map +7 -0
  719. package/dist/lib/geometry/rectangle.d.ts +38 -0
  720. package/dist/lib/geometry/rectangle.js +22 -0
  721. package/dist/lib/geometry/rectangle.js.map +7 -0
  722. package/dist/lib/geometry/regular-polygon.d.ts +88 -0
  723. package/dist/lib/geometry/regular-polygon.js +67 -0
  724. package/dist/lib/geometry/regular-polygon.js.map +7 -0
  725. package/dist/lib/geometry/resolve-path.d.ts +4 -0
  726. package/dist/lib/geometry/resolve-path.js +16 -0
  727. package/dist/lib/geometry/resolve-path.js.map +7 -0
  728. package/dist/lib/geometry/rounded-corners.d.ts +28 -0
  729. package/dist/lib/geometry/rounded-corners.js +118 -0
  730. package/dist/lib/geometry/rounded-corners.js.map +7 -0
  731. package/dist/lib/geometry/star.d.ts +39 -0
  732. package/dist/lib/geometry/star.js +90 -0
  733. package/dist/lib/geometry/star.js.map +7 -0
  734. package/dist/lib/geometry/svg-path.d.ts +21 -0
  735. package/dist/lib/geometry/svg-path.js +7 -0
  736. package/dist/lib/geometry/svg-path.js.map +7 -0
  737. package/dist/lib/geometry/transform-bend.d.ts +46 -0
  738. package/dist/lib/geometry/transform-bend.js +219 -0
  739. package/dist/lib/geometry/transform-bend.js.map +7 -0
  740. package/dist/lib/geometry/transform-guide.d.ts +57 -0
  741. package/dist/lib/geometry/transform-guide.js +157 -0
  742. package/dist/lib/geometry/transform-guide.js.map +7 -0
  743. package/dist/lib/geometry/transform-math.d.ts +21 -0
  744. package/dist/lib/geometry/transform-math.js +91 -0
  745. package/dist/lib/geometry/transform-math.js.map +7 -0
  746. package/dist/lib/geometry/transform-mesh.d.ts +39 -0
  747. package/dist/lib/geometry/transform-mesh.js +129 -0
  748. package/dist/lib/geometry/transform-mesh.js.map +7 -0
  749. package/dist/lib/geometry/validation.d.ts +6 -0
  750. package/dist/lib/geometry/validation.js +42 -0
  751. package/dist/lib/geometry/validation.js.map +7 -0
  752. package/dist/lib/global-state.d.ts +63 -0
  753. package/dist/lib/global-state.js +176 -0
  754. package/dist/lib/global-state.js.map +7 -0
  755. package/dist/lib/hooks/hook-slot.d.ts +30 -0
  756. package/dist/lib/hooks/hook-slot.js +66 -0
  757. package/dist/lib/hooks/hook-slot.js.map +7 -0
  758. package/dist/lib/hooks/use-animated-value.d.ts +24 -0
  759. package/dist/lib/hooks/use-animated-value.js +169 -0
  760. package/dist/lib/hooks/use-animated-value.js.map +7 -0
  761. package/dist/lib/hooks/use-canvas-context.d.ts +10 -0
  762. package/dist/lib/hooks/use-canvas-context.js +13 -0
  763. package/dist/lib/hooks/use-canvas-context.js.map +7 -0
  764. package/dist/lib/hooks/use-computed.d.ts +13 -0
  765. package/dist/lib/hooks/use-computed.js +91 -0
  766. package/dist/lib/hooks/use-computed.js.map +7 -0
  767. package/dist/lib/hooks/use-const.d.ts +10 -0
  768. package/dist/lib/hooks/use-const.js +15 -0
  769. package/dist/lib/hooks/use-const.js.map +7 -0
  770. package/dist/lib/hooks/use-cursor.d.ts +16 -0
  771. package/dist/lib/hooks/use-cursor.js +51 -0
  772. package/dist/lib/hooks/use-cursor.js.map +7 -0
  773. package/dist/lib/hooks/use-event-listener.d.ts +10 -0
  774. package/dist/lib/hooks/use-event-listener.js +24 -0
  775. package/dist/lib/hooks/use-event-listener.js.map +7 -0
  776. package/dist/lib/hooks/use-event-target.d.ts +14 -0
  777. package/dist/lib/hooks/use-event-target.js +30 -0
  778. package/dist/lib/hooks/use-event-target.js.map +7 -0
  779. package/dist/lib/hooks/use-layout-box.d.ts +9 -0
  780. package/dist/lib/hooks/use-layout-box.js +8 -0
  781. package/dist/lib/hooks/use-layout-box.js.map +7 -0
  782. package/dist/lib/hooks/use-line-path.d.ts +14 -0
  783. package/dist/lib/hooks/use-line-path.js +13 -0
  784. package/dist/lib/hooks/use-line-path.js.map +7 -0
  785. package/dist/lib/hooks/use-paint-target.d.ts +3 -0
  786. package/dist/lib/hooks/use-paint-target.js +34 -0
  787. package/dist/lib/hooks/use-paint-target.js.map +7 -0
  788. package/dist/lib/hooks/use-playback.d.ts +21 -0
  789. package/dist/lib/hooks/use-playback.js +87 -0
  790. package/dist/lib/hooks/use-playback.js.map +7 -0
  791. package/dist/lib/hooks/use-reaction.d.ts +19 -0
  792. package/dist/lib/hooks/use-reaction.js +245 -0
  793. package/dist/lib/hooks/use-reaction.js.map +7 -0
  794. package/dist/lib/hooks/use-rect-path.d.ts +20 -0
  795. package/dist/lib/hooks/use-rect-path.js +25 -0
  796. package/dist/lib/hooks/use-rect-path.js.map +7 -0
  797. package/dist/lib/hooks/use-ref.d.ts +17 -0
  798. package/dist/lib/hooks/use-ref.js +8 -0
  799. package/dist/lib/hooks/use-ref.js.map +7 -0
  800. package/dist/lib/hooks/use-region.d.ts +11 -0
  801. package/dist/lib/hooks/use-region.js +34 -0
  802. package/dist/lib/hooks/use-region.js.map +7 -0
  803. package/dist/lib/hooks/use-signal.d.ts +12 -0
  804. package/dist/lib/hooks/use-signal.js +12 -0
  805. package/dist/lib/hooks/use-signal.js.map +7 -0
  806. package/dist/lib/hooks/use-svg-path.d.ts +11 -0
  807. package/dist/lib/hooks/use-svg-path.js +13 -0
  808. package/dist/lib/hooks/use-svg-path.js.map +7 -0
  809. package/dist/lib/hooks/use-value-memo-slot.d.ts +12 -0
  810. package/dist/lib/hooks/use-value-memo-slot.js +45 -0
  811. package/dist/lib/hooks/use-value-memo-slot.js.map +7 -0
  812. package/dist/lib/hooks/use-visibility-transition.d.ts +103 -0
  813. package/dist/lib/hooks/use-visibility-transition.js +195 -0
  814. package/dist/lib/hooks/use-visibility-transition.js.map +7 -0
  815. package/dist/lib/html/html-service.d.ts +30 -0
  816. package/dist/lib/html/html-service.js +281 -0
  817. package/dist/lib/html/html-service.js.map +7 -0
  818. package/dist/lib/html/overlay-config.d.ts +3 -0
  819. package/dist/lib/html/overlay-config.js +37 -0
  820. package/dist/lib/html/overlay-config.js.map +7 -0
  821. package/dist/lib/html/portable-clips.d.ts +4 -0
  822. package/dist/lib/html/portable-clips.js +20 -0
  823. package/dist/lib/html/portable-clips.js.map +7 -0
  824. package/dist/lib/html/types.d.ts +110 -0
  825. package/dist/lib/layout/absolute.d.ts +57 -0
  826. package/dist/lib/layout/absolute.js +348 -0
  827. package/dist/lib/layout/absolute.js.map +7 -0
  828. package/dist/lib/layout/box.d.ts +19 -0
  829. package/dist/lib/layout/box.js +209 -0
  830. package/dist/lib/layout/box.js.map +7 -0
  831. package/dist/lib/layout/context.d.ts +13 -0
  832. package/dist/lib/layout/context.js +42 -0
  833. package/dist/lib/layout/context.js.map +7 -0
  834. package/dist/lib/layout/diagnostics.d.ts +15 -0
  835. package/dist/lib/layout/diagnostics.js +30 -0
  836. package/dist/lib/layout/diagnostics.js.map +7 -0
  837. package/dist/lib/layout/flex.d.ts +64 -0
  838. package/dist/lib/layout/flex.js +803 -0
  839. package/dist/lib/layout/flex.js.map +7 -0
  840. package/dist/lib/layout/flow.d.ts +53 -0
  841. package/dist/lib/layout/flow.js +400 -0
  842. package/dist/lib/layout/flow.js.map +7 -0
  843. package/dist/lib/layout/grid.d.ts +64 -0
  844. package/dist/lib/layout/grid.js +597 -0
  845. package/dist/lib/layout/grid.js.map +7 -0
  846. package/dist/lib/layout/measure.d.ts +19 -0
  847. package/dist/lib/layout/measure.js +144 -0
  848. package/dist/lib/layout/measure.js.map +7 -0
  849. package/dist/lib/layout/overlay.d.ts +42 -0
  850. package/dist/lib/layout/overlay.js +151 -0
  851. package/dist/lib/layout/overlay.js.map +7 -0
  852. package/dist/lib/layout/place-child.d.ts +12 -0
  853. package/dist/lib/layout/place-child.js +72 -0
  854. package/dist/lib/layout/place-child.js.map +7 -0
  855. package/dist/lib/layout/positioning-diagnostics.d.ts +3 -0
  856. package/dist/lib/layout/positioning-diagnostics.js +15 -0
  857. package/dist/lib/layout/positioning-diagnostics.js.map +7 -0
  858. package/dist/lib/layout/types.d.ts +78 -0
  859. package/dist/lib/manipulation/controller-types.d.ts +299 -0
  860. package/dist/lib/manipulation/controller.d.ts +57 -0
  861. package/dist/lib/manipulation/controller.js +464 -0
  862. package/dist/lib/manipulation/controller.js.map +7 -0
  863. package/dist/lib/manipulation/coordinates.d.ts +9 -0
  864. package/dist/lib/manipulation/coordinates.js +55 -0
  865. package/dist/lib/manipulation/coordinates.js.map +7 -0
  866. package/dist/lib/manipulation/degrees.d.ts +10 -0
  867. package/dist/lib/manipulation/degrees.js +9 -0
  868. package/dist/lib/manipulation/degrees.js.map +7 -0
  869. package/dist/lib/manipulation/frame.d.ts +24 -0
  870. package/dist/lib/manipulation/frame.js +101 -0
  871. package/dist/lib/manipulation/frame.js.map +7 -0
  872. package/dist/lib/manipulation/geometry.d.ts +4 -0
  873. package/dist/lib/manipulation/geometry.js +26 -0
  874. package/dist/lib/manipulation/geometry.js.map +7 -0
  875. package/dist/lib/manipulation/handles.d.ts +298 -0
  876. package/dist/lib/manipulation/handles.js +598 -0
  877. package/dist/lib/manipulation/handles.js.map +7 -0
  878. package/dist/lib/manipulation/manipulable.d.ts +65 -0
  879. package/dist/lib/manipulation/manipulable.js +47 -0
  880. package/dist/lib/manipulation/manipulable.js.map +7 -0
  881. package/dist/lib/manipulation/ownership.d.ts +15 -0
  882. package/dist/lib/manipulation/ownership.js +80 -0
  883. package/dist/lib/manipulation/ownership.js.map +7 -0
  884. package/dist/lib/manipulation/snap.d.ts +6 -0
  885. package/dist/lib/manipulation/snap.js +40 -0
  886. package/dist/lib/manipulation/snap.js.map +7 -0
  887. package/dist/lib/manipulation/solve.d.ts +2 -0
  888. package/dist/lib/manipulation/solve.js +563 -0
  889. package/dist/lib/manipulation/solve.js.map +7 -0
  890. package/dist/lib/manipulation/types.d.ts +178 -0
  891. package/dist/lib/mount-pibbl.d.ts +25 -0
  892. package/dist/lib/mount-pibbl.js +278 -0
  893. package/dist/lib/mount-pibbl.js.map +7 -0
  894. package/dist/lib/optional-services.d.ts +8 -0
  895. package/dist/lib/optional-services.js +11 -0
  896. package/dist/lib/optional-services.js.map +7 -0
  897. package/dist/lib/pibbl.d.ts +17 -0
  898. package/dist/lib/pibbl.js +21 -0
  899. package/dist/lib/pibbl.js.map +7 -0
  900. package/dist/lib/primitive-presentation.d.ts +24 -0
  901. package/dist/lib/primitive-presentation.js +102 -0
  902. package/dist/lib/primitive-presentation.js.map +7 -0
  903. package/dist/lib/render-layer/controller.d.ts +67 -0
  904. package/dist/lib/render-layer/controller.js +603 -0
  905. package/dist/lib/render-layer/controller.js.map +7 -0
  906. package/dist/lib/render-layer/define-render-layer.d.ts +17 -0
  907. package/dist/lib/render-layer/define-render-layer.js +90 -0
  908. package/dist/lib/render-layer/define-render-layer.js.map +7 -0
  909. package/dist/lib/render-layer/types.d.ts +315 -0
  910. package/dist/lib/render-target.d.ts +27 -0
  911. package/dist/lib/render-target.js +118 -0
  912. package/dist/lib/render-target.js.map +7 -0
  913. package/dist/lib/render-transaction.d.ts +10 -0
  914. package/dist/lib/render-transaction.js +46 -0
  915. package/dist/lib/render-transaction.js.map +7 -0
  916. package/dist/lib/render.d.ts +3 -0
  917. package/dist/lib/render.js +385 -0
  918. package/dist/lib/render.js.map +7 -0
  919. package/dist/lib/scheduler/realm-scheduler.d.ts +52 -0
  920. package/dist/lib/scheduler/realm-scheduler.js +964 -0
  921. package/dist/lib/scheduler/realm-scheduler.js.map +7 -0
  922. package/dist/lib/scheduler/renderer-participant.d.ts +257 -0
  923. package/dist/lib/scheduler/renderer-participant.js +216 -0
  924. package/dist/lib/scheduler/renderer-participant.js.map +7 -0
  925. package/dist/lib/scheduler/simulation-participant.d.ts +103 -0
  926. package/dist/lib/scheduler/simulation-participant.js +229 -0
  927. package/dist/lib/scheduler/simulation-participant.js.map +7 -0
  928. package/dist/lib/scheduler/testing.d.ts +56 -0
  929. package/dist/lib/scheduler/testing.js +71 -0
  930. package/dist/lib/scheduler/testing.js.map +7 -0
  931. package/dist/lib/scheduler/types.d.ts +103 -0
  932. package/dist/lib/signals/edge.d.ts +44 -0
  933. package/dist/lib/signals/edge.js +245 -0
  934. package/dist/lib/signals/edge.js.map +7 -0
  935. package/dist/lib/signals/graph.d.ts +220 -0
  936. package/dist/lib/signals/graph.js +1035 -0
  937. package/dist/lib/signals/graph.js.map +7 -0
  938. package/dist/lib/signals/input-provision.d.ts +3 -0
  939. package/dist/lib/signals/input-provision.js +67 -0
  940. package/dist/lib/signals/input-provision.js.map +7 -0
  941. package/dist/lib/signals/render-consumer.d.ts +21 -0
  942. package/dist/lib/signals/render-consumer.js +218 -0
  943. package/dist/lib/signals/render-consumer.js.map +7 -0
  944. package/dist/lib/signals/resolve-signal-value.d.ts +10 -0
  945. package/dist/lib/signals/resolve-signal-value.js +17 -0
  946. package/dist/lib/signals/resolve-signal-value.js.map +7 -0
  947. package/dist/lib/signals/types.d.ts +80 -0
  948. package/dist/lib/style/diagnostics.d.ts +83 -0
  949. package/dist/lib/style/diagnostics.js +63 -0
  950. package/dist/lib/style/diagnostics.js.map +7 -0
  951. package/dist/lib/style/empty-style.d.ts +3 -0
  952. package/dist/lib/style/empty-style.js +5 -0
  953. package/dist/lib/style/empty-style.js.map +7 -0
  954. package/dist/lib/style/filter-types.d.ts +243 -0
  955. package/dist/lib/style/filter-types.js +5 -0
  956. package/dist/lib/style/filter-types.js.map +7 -0
  957. package/dist/lib/style/filter.d.ts +7 -0
  958. package/dist/lib/style/filter.js +50 -0
  959. package/dist/lib/style/filter.js.map +7 -0
  960. package/dist/lib/style/normalize.d.ts +18 -0
  961. package/dist/lib/style/normalize.js +50 -0
  962. package/dist/lib/style/normalize.js.map +7 -0
  963. package/dist/lib/style/positioning.d.ts +32 -0
  964. package/dist/lib/style/positioning.js +81 -0
  965. package/dist/lib/style/positioning.js.map +7 -0
  966. package/dist/lib/style/resolve-built-in.d.ts +6 -0
  967. package/dist/lib/style/resolve-built-in.js +58 -0
  968. package/dist/lib/style/resolve-built-in.js.map +7 -0
  969. package/dist/lib/style/resolve-dispatch.d.ts +20 -0
  970. package/dist/lib/style/resolve-dispatch.js +167 -0
  971. package/dist/lib/style/resolve-dispatch.js.map +7 -0
  972. package/dist/lib/style/resolve-length.d.ts +16 -0
  973. package/dist/lib/style/resolve-length.js +54 -0
  974. package/dist/lib/style/resolve-length.js.map +7 -0
  975. package/dist/lib/style/responsive.d.ts +31 -0
  976. package/dist/lib/style/responsive.js +172 -0
  977. package/dist/lib/style/responsive.js.map +7 -0
  978. package/dist/lib/style/types.d.ts +338 -0
  979. package/dist/lib/surface/resolve-surface.d.ts +4 -0
  980. package/dist/lib/surface/resolve-surface.js +184 -0
  981. package/dist/lib/surface/resolve-surface.js.map +7 -0
  982. package/dist/lib/surface/root-surface.d.ts +7 -0
  983. package/dist/lib/surface/root-surface.js +171 -0
  984. package/dist/lib/surface/root-surface.js.map +7 -0
  985. package/dist/lib/surface/transform.d.ts +4 -0
  986. package/dist/lib/surface/transform.js +16 -0
  987. package/dist/lib/surface/transform.js.map +7 -0
  988. package/dist/lib/surface/types.d.ts +132 -0
  989. package/dist/lib/teardowns.d.ts +14 -0
  990. package/dist/lib/teardowns.js +50 -0
  991. package/dist/lib/teardowns.js.map +7 -0
  992. package/dist/lib/textures/texture-protocol.d.ts +124 -0
  993. package/dist/lib/textures/texture-protocol.js +40 -0
  994. package/dist/lib/textures/texture-protocol.js.map +7 -0
  995. package/dist/lib/textures/texture.d.ts +170 -0
  996. package/dist/lib/textures/texture.js +385 -0
  997. package/dist/lib/textures/texture.js.map +7 -0
  998. package/dist/lib/transitions/bifrost.d.ts +47 -0
  999. package/dist/lib/transitions/bifrost.js +91 -0
  1000. package/dist/lib/transitions/bifrost.js.map +7 -0
  1001. package/dist/lib/transitions/binding.d.ts +14 -0
  1002. package/dist/lib/transitions/binding.js +35 -0
  1003. package/dist/lib/transitions/binding.js.map +7 -0
  1004. package/dist/lib/transitions/capture.d.ts +21 -0
  1005. package/dist/lib/transitions/capture.js +91 -0
  1006. package/dist/lib/transitions/capture.js.map +7 -0
  1007. package/dist/lib/transitions/common.d.ts +130 -0
  1008. package/dist/lib/transitions/common.js +57 -0
  1009. package/dist/lib/transitions/common.js.map +7 -0
  1010. package/dist/lib/transitions/define-transition.d.ts +64 -0
  1011. package/dist/lib/transitions/define-transition.js +31 -0
  1012. package/dist/lib/transitions/define-transition.js.map +7 -0
  1013. package/dist/lib/transitions/embers-physics.d.ts +114 -0
  1014. package/dist/lib/transitions/embers-physics.js +161 -0
  1015. package/dist/lib/transitions/embers-physics.js.map +7 -0
  1016. package/dist/lib/transitions/embers.d.ts +67 -0
  1017. package/dist/lib/transitions/embers.js +196 -0
  1018. package/dist/lib/transitions/embers.js.map +7 -0
  1019. package/dist/lib/transitions/fade.d.ts +41 -0
  1020. package/dist/lib/transitions/fade.js +31 -0
  1021. package/dist/lib/transitions/fade.js.map +7 -0
  1022. package/dist/lib/transitions/hologram.d.ts +47 -0
  1023. package/dist/lib/transitions/hologram.js +94 -0
  1024. package/dist/lib/transitions/hologram.js.map +7 -0
  1025. package/dist/lib/transitions/wasm/bifrost-bytes.d.ts +1 -0
  1026. package/dist/lib/transitions/wasm/bifrost-bytes.js +5 -0
  1027. package/dist/lib/transitions/wasm/bifrost-bytes.js.map +7 -0
  1028. package/dist/lib/transitions/wasm/bifrost-kernel.d.ts +1 -0
  1029. package/dist/lib/transitions/wasm/bifrost-kernel.js +27 -0
  1030. package/dist/lib/transitions/wasm/bifrost-kernel.js.map +7 -0
  1031. package/dist/lib/transitions/wasm/embers-bytes.d.ts +1 -0
  1032. package/dist/lib/transitions/wasm/embers-bytes.js +5 -0
  1033. package/dist/lib/transitions/wasm/embers-bytes.js.map +7 -0
  1034. package/dist/lib/transitions/wasm/hologram-bytes.d.ts +1 -0
  1035. package/dist/lib/transitions/wasm/hologram-bytes.js +5 -0
  1036. package/dist/lib/transitions/wasm/hologram-bytes.js.map +7 -0
  1037. package/dist/lib/transitions/wasm/kernel.d.ts +7 -0
  1038. package/dist/lib/transitions/wasm/kernel.js +26 -0
  1039. package/dist/lib/transitions/wasm/kernel.js.map +7 -0
  1040. package/dist/lib/types.d.ts +570 -0
  1041. package/dist/lib/update.d.ts +8 -0
  1042. package/dist/lib/update.js +20 -0
  1043. package/dist/lib/update.js.map +7 -0
  1044. package/dist/lib/util/get-2d-context.d.ts +2 -0
  1045. package/dist/lib/util/get-2d-context.js +11 -0
  1046. package/dist/lib/util/get-2d-context.js.map +7 -0
  1047. package/dist/lib/util/get-mouse-coordinates.d.ts +2 -0
  1048. package/dist/lib/util/get-mouse-coordinates.js +32 -0
  1049. package/dist/lib/util/get-mouse-coordinates.js.map +7 -0
  1050. package/dist/lib/util/is-hit.d.ts +11 -0
  1051. package/dist/lib/util/is-hit.js +52 -0
  1052. package/dist/lib/util/is-hit.js.map +7 -0
  1053. package/dist/lib/util/is-transparent.d.ts +1 -0
  1054. package/dist/lib/util/is-transparent.js +8 -0
  1055. package/dist/lib/util/is-transparent.js.map +7 -0
  1056. package/dist/lib/util/pixel-grid-adjustments.d.ts +8 -0
  1057. package/dist/lib/util/pixel-grid-adjustments.js +28 -0
  1058. package/dist/lib/util/pixel-grid-adjustments.js.map +7 -0
  1059. package/dist/lib/util/push-clipping-path.d.ts +6 -0
  1060. package/dist/lib/util/push-clipping-path.js +28 -0
  1061. package/dist/lib/util/push-clipping-path.js.map +7 -0
  1062. package/dist/lib/util/wire-common-events.d.ts +2 -0
  1063. package/dist/lib/util/wire-common-events.js +15 -0
  1064. package/dist/lib/util/wire-common-events.js.map +7 -0
  1065. package/dist/types.d.ts +1 -0
  1066. package/dist/types.js +1 -0
  1067. package/dist/types.js.map +7 -0
  1068. package/dist/types.mjs +1 -0
  1069. package/package.json +149 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/element/children.ts"],
4
+ "sourcesContent": ["import { isPibblElement } from './create-element.js';\nimport { isFragmentElement } from './fragment.js';\nimport {\n getElementPolicyDefinition,\n getPolicyPreparationSource,\n getElementSource,\n setPolicyPreparationSource,\n} from './metadata.js';\nimport type {\n PibblElement,\n PibblNodeInput,\n PibblTextInput,\n} from './types.js';\nimport { isSignal } from '../signals/graph.js';\n\ntype ChildReceiver = string | PibblElement<any>;\n\nconst REACT_ELEMENT_TYPE = Symbol.for('react.element');\nconst REACT_TRANSITIONAL_ELEMENT_TYPE = Symbol.for(\n 'react.transitional.element',\n);\n\n/** Rejects a directly supplied foreign JSX root before Pibbl acquires resources. */\nexport function assertCompatibleRootNode(node: unknown): void {\n if (isSignal(node)) {\n throw new Error(\n 'Pibbl root received a signal without a component receiver. ' +\n 'Place the signal under a component or read it explicitly.',\n );\n }\n if (!node || typeof node !== 'object' || isPibblElement(node)) return;\n if (isReactElement(node)) throw reactElementError('Pibbl root');\n if (\n !isPromiseLike(node) &&\n !isAsyncIterable(node) &&\n !Array.isArray(node) &&\n !isIterable(node) &&\n isForeignElementLike(node)\n ) {\n throw foreignElementError('Pibbl root');\n }\n}\n\n/**\n * Materializes one receiver's recursive container input into direct elements.\n * Arrays and unkeyed Fragments are transparent; keyed Fragments remain entries.\n */\nexport function materializeContainerChildren(\n node: PibblNodeInput,\n receiver: ChildReceiver,\n options: Readonly<{ validateKeys?: boolean }> = {},\n): readonly PibblElement<any>[] {\n const elements: PibblElement<any>[] = [];\n visitContainerNode(node, receiver, elements, [], false, true, new Set());\n if (options.validateKeys !== false) assertUniqueKeys(elements, receiver);\n return Object.freeze(elements);\n}\n\n/** Prepares a policy descriptor for APIs that receive one element directly. */\nexport function prepareElementPolicies(\n element: PibblElement<any>,\n receiver: string,\n): PibblElement<any> {\n if (!getElementPolicyDefinition(element.type)) return element;\n const [prepared] = materializeContainerChildren(element, receiver);\n return prepared;\n}\n\n/** Materializes Text's recursive scalar content into one reusable string. */\nexport function materializeTextChildren(\n node: PibblTextInput,\n receiver: ChildReceiver,\n): string {\n const parts: string[] = [];\n visitTextNode(node, receiver, parts, true, new Set());\n return parts.join('');\n}\n\nfunction visitContainerNode(\n node: unknown,\n receiver: ChildReceiver,\n elements: PibblElement<any>[],\n pendingPolicies: readonly PibblElement<any>[] = [],\n preservePolicies = false,\n allowSignals = true,\n ancestors: Set<object>,\n): void {\n if (\n node === false ||\n node === true ||\n node === null ||\n node === undefined ||\n node === '' ||\n Object.is(node, 0) ||\n Object.is(node, -0)\n ) {\n return;\n }\n\n if (isSignal(node)) {\n if (receiver === 'Pibbl root') {\n throw new Error(\n 'Pibbl root received a signal without a component receiver. ' +\n 'Place the signal under a component or read it explicitly.',\n );\n }\n if (!allowSignals) throw nestedSignalChild(receiver);\n visitContainerNode(\n node.get(),\n receiver,\n elements,\n pendingPolicies,\n preservePolicies,\n false,\n ancestors,\n );\n return;\n }\n\n if (isPibblElement(node)) {\n const policy = getElementPolicyDefinition(node.type);\n if (policy) {\n if (preservePolicies) {\n elements.push(node);\n return;\n }\n const policyChildren = materializeUnpreparedPolicyChildren(\n (node.props as { readonly children?: PibblNodeInput }).children,\n node,\n allowSignals,\n ancestors,\n );\n if (policyChildren.length !== 1) {\n throw new Error(\n `${describeReceiver(node)} requires exactly one Pibbl element child ` +\n `after empty values are removed; received ${policyChildren.length}.`,\n );\n }\n visitContainerNode(\n policyChildren[0],\n node,\n elements,\n [...pendingPolicies, node],\n preservePolicies,\n allowSignals,\n ancestors,\n );\n return;\n }\n if (isFragmentElement(node) && node.key === undefined) {\n visitContainerNode(\n node.props.children,\n receiver,\n elements,\n pendingPolicies,\n preservePolicies,\n allowSignals,\n ancestors,\n );\n return;\n }\n let prepared = node;\n const preparationSource = getPolicyPreparationSource(node) ?? node;\n for (const pendingPolicy of pendingPolicies) {\n const definition = getElementPolicyDefinition(pendingPolicy.type);\n if (!definition) {\n throw new Error('Pibbl policy preparation metadata was lost.');\n }\n prepared = definition.prepare(pendingPolicy, prepared);\n }\n if (prepared !== node) {\n setPolicyPreparationSource(prepared, preparationSource);\n }\n elements.push(prepared);\n return;\n }\n\n if (typeof node === 'string') {\n throw invalidChild(receiver, 'a non-empty string');\n }\n if (typeof node === 'number') {\n throw invalidChild(receiver, 'a nonzero number');\n }\n if (typeof node === 'function') {\n throw invalidChild(receiver, 'a function');\n }\n if (typeof node === 'symbol') {\n throw invalidChild(receiver, 'a symbol');\n }\n if (typeof node !== 'object') {\n throw invalidChild(receiver, `an unsupported ${typeof node} value`);\n }\n\n if (isReactElement(node)) {\n throw reactElementError(receiver);\n }\n if (isPromiseLike(node)) {\n throw invalidChild(receiver, 'a Promise');\n }\n if (isAsyncIterable(node)) {\n throw invalidChild(receiver, 'an async iterable');\n }\n if (Array.isArray(node)) {\n withAcyclicContainer(node, receiver, ancestors, () => {\n for (const child of node) {\n visitContainerNode(\n child,\n receiver,\n elements,\n pendingPolicies,\n preservePolicies,\n allowSignals,\n ancestors,\n );\n }\n });\n return;\n }\n if (isIterable(node)) {\n withAcyclicContainer(node, receiver, ancestors, () => {\n for (const child of node) {\n visitContainerNode(\n child,\n receiver,\n elements,\n pendingPolicies,\n preservePolicies,\n allowSignals,\n ancestors,\n );\n }\n });\n return;\n }\n if (isForeignElementLike(node)) {\n throw foreignElementError(receiver);\n }\n\n throw invalidChild(receiver, 'an unsupported object');\n}\n\nfunction materializeUnpreparedPolicyChildren(\n node: PibblNodeInput,\n receiver: PibblElement<any>,\n allowSignals: boolean,\n ancestors: Set<object>,\n): readonly PibblElement<any>[] {\n const elements: PibblElement<any>[] = [];\n visitContainerNode(\n node,\n receiver,\n elements,\n [],\n true,\n allowSignals,\n ancestors,\n );\n assertUniqueKeys(elements, receiver);\n return Object.freeze(elements);\n}\n\nfunction visitTextNode(\n node: unknown,\n receiver: ChildReceiver,\n parts: string[],\n allowSignals: boolean,\n ancestors: Set<object>,\n): void {\n if (\n node === false ||\n node === true ||\n node === null ||\n node === undefined\n ) {\n return;\n }\n if (isSignal(node)) {\n if (!allowSignals) throw nestedSignalChild(receiver);\n visitTextNode(node.get(), receiver, parts, false, ancestors);\n return;\n }\n if (typeof node === 'string' || typeof node === 'number') {\n parts.push(String(node));\n return;\n }\n if (isPibblElement(node)) {\n throw invalidChild(receiver, 'a Pibbl element inside textual content');\n }\n if (typeof node === 'function') {\n throw invalidChild(receiver, 'a function');\n }\n if (typeof node === 'symbol') {\n throw invalidChild(receiver, 'a symbol');\n }\n if (typeof node !== 'object') {\n throw invalidChild(receiver, `an unsupported ${typeof node} value`);\n }\n if (isReactElement(node)) {\n throw reactElementError(receiver);\n }\n if (isPromiseLike(node)) {\n throw invalidChild(receiver, 'a Promise');\n }\n if (isAsyncIterable(node)) {\n throw invalidChild(receiver, 'an async iterable');\n }\n if (Array.isArray(node)) {\n withAcyclicContainer(node, receiver, ancestors, () => {\n for (const child of node) {\n visitTextNode(child, receiver, parts, allowSignals, ancestors);\n }\n });\n return;\n }\n if (isIterable(node)) {\n withAcyclicContainer(node, receiver, ancestors, () => {\n for (const child of node) {\n visitTextNode(child, receiver, parts, allowSignals, ancestors);\n }\n });\n return;\n }\n if (isForeignElementLike(node)) {\n throw foreignElementError(receiver);\n }\n throw invalidChild(receiver, 'an unsupported object');\n}\n\nfunction assertUniqueKeys(\n elements: readonly PibblElement<any>[],\n receiver: ChildReceiver,\n): void {\n const keys = new Set<string>();\n for (const element of elements) {\n const key = element.key;\n if (key === undefined) continue;\n if (keys.has(key)) {\n throw invalidChild(receiver, `duplicate Pibbl key \"${key}\"`);\n }\n keys.add(key);\n }\n}\n\nfunction invalidChild(receiver: ChildReceiver, description: string): Error {\n return new Error(\n `${describeReceiver(receiver)} received ${description} as a Pibbl child.`,\n );\n}\n\nfunction nestedSignalChild(receiver: ChildReceiver): Error {\n return invalidChild(\n receiver,\n 'a signal inside a signal-resolved child structure',\n );\n}\n\nfunction withAcyclicContainer<T extends object>(\n value: T,\n receiver: ChildReceiver,\n ancestors: Set<object>,\n visit: () => void,\n): void {\n if (ancestors.has(value)) {\n throw invalidChild(receiver, 'a cyclic child structure');\n }\n ancestors.add(value);\n try {\n visit();\n } finally {\n ancestors.delete(value);\n }\n}\n\nfunction reactElementError(receiver: ChildReceiver): Error {\n return new Error(\n 'Pibbl received a React element. This file is using the React JSX runtime.\\n' +\n 'Set jsxImportSource to \"@pibbl/core\" or add ' +\n '/** @jsxImportSource @pibbl/core */.\\n' +\n `Received by ${describeReceiver(receiver)}.`,\n );\n}\n\nfunction foreignElementError(receiver: ChildReceiver): Error {\n return new Error(\n `${describeReceiver(receiver)} received an element-like object that was ` +\n 'not created by @pibbl/core as a Pibbl child.\\n' +\n 'Check this file\\'s JSX runtime and set jsxImportSource to \"@pibbl/core\".',\n );\n}\n\nfunction describeReceiver(receiver: ChildReceiver): string {\n if (typeof receiver === 'string') return receiver;\n const name = receiver.type.name || 'Anonymous';\n const source = getElementSource(receiver);\n return source ?\n `${name} at ${source.fileName}:${source.lineNumber}:${source.columnNumber}` :\n name;\n}\n\nfunction isReactElement(value: object): boolean {\n const brand = (value as { $$typeof?: unknown }).$$typeof;\n return brand === REACT_ELEMENT_TYPE ||\n brand === REACT_TRANSITIONAL_ELEMENT_TYPE;\n}\n\nfunction isForeignElementLike(value: object): boolean {\n if (\n !Object.prototype.hasOwnProperty.call(value, 'type') ||\n !Object.prototype.hasOwnProperty.call(value, 'props')\n ) {\n return false;\n }\n try {\n const type = (value as { type?: unknown }).type;\n const props = (value as { props?: unknown }).props;\n return (\n (typeof type === 'function' ||\n typeof type === 'string' ||\n typeof type === 'symbol') &&\n (props === null || typeof props === 'object')\n );\n } catch {\n return false;\n }\n}\n\nfunction isPromiseLike(value: object): boolean {\n return typeof (value as { then?: unknown }).then === 'function';\n}\n\nfunction isAsyncIterable(value: object): boolean {\n return typeof (value as { [Symbol.asyncIterator]?: unknown })[\n Symbol.asyncIterator\n ] === 'function';\n}\n\nfunction isIterable(value: object): value is Iterable<unknown> {\n return typeof (value as { [Symbol.iterator]?: unknown })[\n Symbol.iterator\n ] === 'function';\n}\n"],
5
+ "mappings": "AAAA,SAAS,sBAAsB;AAC/B,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAMP,SAAS,gBAAgB;AAIzB,MAAM,qBAAqB,uBAAO,IAAI,eAAe;AACrD,MAAM,kCAAkC,uBAAO;AAAA,EAC7C;AACF;AAGO,SAAS,yBAAyB,MAAqB;AAC5D,MAAI,SAAS,IAAI,GAAG;AAClB,UAAM,IAAI;AAAA,MACR;AAAA,IAEF;AAAA,EACF;AACA,MAAI,CAAC,QAAQ,OAAO,SAAS,YAAY,eAAe,IAAI,EAAG;AAC/D,MAAI,eAAe,IAAI,EAAG,OAAM,kBAAkB,YAAY;AAC9D,MACE,CAAC,cAAc,IAAI,KACnB,CAAC,gBAAgB,IAAI,KACrB,CAAC,MAAM,QAAQ,IAAI,KACnB,CAAC,WAAW,IAAI,KAChB,qBAAqB,IAAI,GACzB;AACA,UAAM,oBAAoB,YAAY;AAAA,EACxC;AACF;AAMO,SAAS,6BACd,MACA,UACA,UAAgD,CAAC,GACnB;AAC9B,QAAM,WAAgC,CAAC;AACvC,qBAAmB,MAAM,UAAU,UAAU,CAAC,GAAG,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AAS,MAA8B;AAC7C,YACG,OAAO,SAAS,cACf,OAAO,SAAS,YAChB,OAAO,SAAS,cACjB,UAAU,QAAQ,OAAO,UAAU;AAAA,EAExC,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,SAAS,cAAc,OAAwB;AAC7C,SAAO,OAAQ,MAA6B,SAAS;AACvD;AAEA,SAAS,gBAAgB,OAAwB;AAC/C,SAAO,OAAQ,MACb,OAAO,aACT,MAAM;AACR;AAEA,SAAS,WAAW,OAA2C;AAC7D,SAAO,OAAQ,MACb,OAAO,QACT,MAAM;AACR;",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
1
+ import { type PibblElementSource } from './metadata.js';
2
+ import type { PibblElement, PibblElementType, PibblKey } from './types.js';
3
+ type UnionKeys<T> = T extends unknown ? keyof T : never;
4
+ type ElementInput<P> = 0 extends (1 & P) ? P & {
5
+ key?: PibblKey;
6
+ } : 'key' extends UnionKeys<P> ? never : P & {
7
+ key?: PibblKey;
8
+ };
9
+ type ElementInputOrNull<P> = [ElementInput<P>] extends [never] ? never : ElementInput<P> | null;
10
+ type ChildrenForProps<P> = P extends unknown ? 'children' extends keyof P ? P['children'] : never : never;
11
+ type MultipleChildren<C> = C extends unknown ? C extends readonly (infer Child)[] ? Child[] extends C ? [Child, Child, ...Child[]] : never : C extends Iterable<infer Child> ? Child[] extends C ? [Child, Child, ...Child[]] : never : never : never;
12
+ type ChildrenArguments<P> = P extends unknown ? 'children' extends keyof P ? [] | [ChildrenForProps<P>] | MultipleChildren<ChildrenForProps<P>> : [
13
+ ] : never;
14
+ /**
15
+ * Public constructor used by direct element authoring.
16
+ *
17
+ * @param type - Pibbl component or fragment to instantiate. See {@link PibblElementType}.
18
+ * @param props - Authored props, or null when allowed by the component's input type. See
19
+ * {@link ElementInputOrNull} .
20
+ * @param children - Child nodes supplied in source order. See {@link ChildrenArguments}.
21
+ * @returns A branded Pibbl element descriptor; rendering occurs when it is mounted. See
22
+ * {@link PibblElement} .
23
+ *
24
+ * @see {@link PibblElementType}
25
+ * @see {@link PibblElement}
26
+ */
27
+ export declare function createElement<P>(type: PibblElementType<P>, props: ElementInputOrNull<P>, ...children: ChildrenArguments<P>): PibblElement<P>;
28
+ /** @internal Shared construction path for direct and compiler element creation. */
29
+ export declare function createPibblElement<P>(type: PibblElementType<P>, incomingProps: P | null, compilerKey: PibblKey | null | undefined, source: PibblElementSource | undefined): PibblElement<P>;
30
+ /** @internal */
31
+ export declare function isPibblElement(value: unknown): value is PibblElement<any>;
32
+ /** @internal Creates another immutable descriptor while retaining private annotations. */
33
+ export declare function clonePibblElement<P>(element: PibblElement<P>): PibblElement<P>;
34
+ export {};
@@ -0,0 +1,75 @@
1
+ import {
2
+ copyElementCloneMetadata,
3
+ getElementMetadata,
4
+ getPrimitiveDefinition,
5
+ setElementMetadata
6
+ } from "./metadata.js";
7
+ import { isDevelopment } from "../development.js";
8
+ import { capturePlacementHandoff } from "../style/positioning.js";
9
+ const PIBBL_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("@pibbl/core.element");
10
+ function createElement(type, props, ...children) {
11
+ const withChildren = children.length === 0 ? props : {
12
+ ...props,
13
+ children: children.length === 1 ? children[0] : children
14
+ };
15
+ return createPibblElement(type, withChildren, void 0, void 0);
16
+ }
17
+ function createPibblElement(type, incomingProps, compilerKey, source) {
18
+ const rawProps = incomingProps ?? {};
19
+ const defensiveKey = Object.prototype.hasOwnProperty.call(rawProps, "key") ? rawProps.key : void 0;
20
+ const rawKey = compilerKey === void 0 ? defensiveKey : compilerKey;
21
+ const { key: _key, ...props } = rawProps;
22
+ const primitiveProgramProps = getPrimitiveDefinition(type) === void 0 ? void 0 : preparePrimitiveProgramProps(props);
23
+ const normalizedKey = rawKey === void 0 || rawKey === null ? void 0 : String(rawKey);
24
+ return finalizePibblElement(type, props, normalizedKey, {
25
+ source,
26
+ primitiveProgramProps
27
+ });
28
+ }
29
+ function preparePrimitiveProgramProps(props) {
30
+ if (!Object.prototype.hasOwnProperty.call(props, "style")) return props;
31
+ const { style: _style, ...programProps } = props;
32
+ return programProps;
33
+ }
34
+ function finalizePibblElement(type, props, key, metadata) {
35
+ const element = key === void 0 ? { type, props } : { type, props, key };
36
+ setElementMetadata(element, metadata);
37
+ Object.defineProperties(element, {
38
+ $$typeof: {
39
+ configurable: false,
40
+ enumerable: false,
41
+ value: PIBBL_ELEMENT_TYPE,
42
+ writable: false
43
+ }
44
+ });
45
+ capturePlacementHandoff(
46
+ element,
47
+ props.style
48
+ );
49
+ if (isDevelopment) {
50
+ Object.freeze(props);
51
+ Object.freeze(element);
52
+ }
53
+ return element;
54
+ }
55
+ function isPibblElement(value) {
56
+ return !!value && typeof value === "object" && value.$$typeof === PIBBL_ELEMENT_TYPE;
57
+ }
58
+ function clonePibblElement(element) {
59
+ const metadata = getElementMetadata(element);
60
+ const clone = finalizePibblElement(
61
+ element.type,
62
+ element.props,
63
+ element.key,
64
+ metadata ? { ...metadata } : {}
65
+ );
66
+ copyElementCloneMetadata(element, clone);
67
+ return clone;
68
+ }
69
+ export {
70
+ clonePibblElement,
71
+ createElement,
72
+ createPibblElement,
73
+ isPibblElement
74
+ };
75
+ //# sourceMappingURL=create-element.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/element/create-element.ts"],
4
+ "sourcesContent": ["import {\n copyElementCloneMetadata,\n getElementMetadata,\n getPrimitiveDefinition,\n setElementMetadata,\n type PibblElementSource,\n} from './metadata.js';\nimport type {\n PibblElement,\n PibblElementType,\n PibblKey,\n} from './types.js';\nimport { isDevelopment } from '../development.js';\nimport { capturePlacementHandoff } from '../style/positioning.js';\n\nconst PIBBL_ELEMENT_TYPE = Symbol.for('@pibbl/core.element');\n\ntype ElementProps = Record<PropertyKey, unknown>;\ntype UnionKeys<T> = T extends unknown ? keyof T : never;\ntype ElementInput<P> = 0 extends (1 & P) ?\n P & { key?: PibblKey } :\n 'key' extends UnionKeys<P> ? never :\n P & { key?: PibblKey };\ntype ElementInputOrNull<P> = [ElementInput<P>] extends [never] ?\n never :\n ElementInput<P> | null;\ntype ChildrenForProps<P> = P extends unknown ?\n 'children' extends keyof P ? P['children'] : never :\n never;\ntype MultipleChildren<C> = C extends unknown ?\n C extends readonly (infer Child)[] ?\n Child[] extends C ? [Child, Child, ...Child[]] : never :\n C extends Iterable<infer Child> ?\n Child[] extends C ? [Child, Child, ...Child[]] : never :\n never :\n never;\ntype ChildrenArguments<P> = P extends unknown ?\n 'children' extends keyof P ?\n | []\n | [ChildrenForProps<P>]\n | MultipleChildren<ChildrenForProps<P>> :\n [] :\n never;\n\n/**\n * Public constructor used by direct element authoring.\n *\n * @param type - Pibbl component or fragment to instantiate. See {@link PibblElementType}.\n * @param props - Authored props, or null when allowed by the component's input type. See\n * {@link ElementInputOrNull} .\n * @param children - Child nodes supplied in source order. See {@link ChildrenArguments}.\n * @returns A branded Pibbl element descriptor; rendering occurs when it is mounted. See\n * {@link PibblElement} .\n *\n * @see {@link PibblElementType}\n * @see {@link PibblElement}\n */\nexport function createElement<P>(\n type: PibblElementType<P>,\n props: ElementInputOrNull<P>,\n ...children: ChildrenArguments<P>\n): PibblElement<P> {\n const withChildren = children.length === 0 ? props : {\n ...(props as object | null),\n children: children.length === 1 ? children[0] : children,\n };\n return createPibblElement(type, withChildren as P | null, undefined, undefined);\n}\n\n/** @internal Shared construction path for direct and compiler element creation. */\nexport function createPibblElement<P>(\n type: PibblElementType<P>,\n incomingProps: P | null,\n compilerKey: PibblKey | null | undefined,\n source: PibblElementSource | undefined,\n): PibblElement<P> {\n const rawProps = (incomingProps ?? {}) as ElementProps;\n const defensiveKey = Object.prototype.hasOwnProperty.call(rawProps, 'key') ?\n rawProps.key :\n undefined;\n const rawKey = compilerKey === undefined ? defensiveKey : compilerKey;\n const { key: _key, ...props } = rawProps;\n const primitiveProgramProps = getPrimitiveDefinition(type) === undefined ?\n undefined :\n preparePrimitiveProgramProps(props);\n const normalizedKey = rawKey === undefined || rawKey === null ?\n undefined :\n String(rawKey);\n return finalizePibblElement(type, props as P, normalizedKey, {\n source,\n primitiveProgramProps,\n });\n}\n\nfunction preparePrimitiveProgramProps(\n props: Readonly<ElementProps>,\n): Readonly<ElementProps> {\n if (!Object.prototype.hasOwnProperty.call(props, 'style')) return props;\n const { style: _style, ...programProps } = props;\n return programProps;\n}\n\nfunction finalizePibblElement<P>(\n type: PibblElementType<P>,\n props: P,\n key: string | undefined,\n metadata: Parameters<typeof setElementMetadata>[1],\n): PibblElement<P> {\n const element = (key === undefined ?\n { type, props } :\n { type, props, key }) as PibblElement<P>;\n\n setElementMetadata(element, metadata);\n Object.defineProperties(element, {\n $$typeof: {\n configurable: false,\n enumerable: false,\n value: PIBBL_ELEMENT_TYPE,\n writable: false,\n },\n });\n\n capturePlacementHandoff(\n element,\n (props as { readonly style?: unknown }).style,\n );\n if (isDevelopment) {\n Object.freeze(props);\n Object.freeze(element);\n }\n return element;\n}\n\n/** @internal */\nexport function isPibblElement(value: unknown): value is PibblElement<any> {\n return !!value &&\n typeof value === 'object' &&\n (value as { $$typeof?: unknown }).$$typeof === PIBBL_ELEMENT_TYPE;\n}\n\n/** @internal Creates another immutable descriptor while retaining private annotations. */\nexport function clonePibblElement<P>(element: PibblElement<P>): PibblElement<P> {\n const metadata = getElementMetadata(element);\n const clone = finalizePibblElement(\n element.type,\n element.props,\n element.key,\n metadata ? { ...metadata } : {},\n );\n copyElementCloneMetadata(element, clone);\n return clone;\n}\n"],
5
+ "mappings": "AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAMP,SAAS,qBAAqB;AAC9B,SAAS,+BAA+B;AAExC,MAAM,qBAAqB,uBAAO,IAAI,qBAAqB;AA0CpD,SAAS,cACd,MACA,UACG,UACc;AACjB,QAAM,eAAe,SAAS,WAAW,IAAI,QAAQ;AAAA,IACnD,GAAI;AAAA,IACJ,UAAU,SAAS,WAAW,IAAI,SAAS,CAAC,IAAI;AAAA,EAClD;AACA,SAAO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QAAQ;AAAA,IACZ,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW,EAAE,GAAG,SAAS,IAAI,CAAC;AAAA,EAChC;AACA,2BAAyB,SAAS,KAAK;AACvC,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,15 @@
1
+ import type { PibblElement, PibblNodeInput } from './types.js';
2
+ export interface FragmentProps {
3
+ children?: PibblNodeInput;
4
+ }
5
+ /**
6
+ * Compiler-visible fragment value. The renderer handles its descriptor directly.
7
+ *
8
+ * @param props - Children and optional fragment identity. See {@link FragmentProps}.
9
+ * @returns The fragment's children, preserving their order. See {@link PibblNodeInput}.
10
+ *
11
+ * @see {@link PibblNodeInput}
12
+ */
13
+ export declare function Fragment(props: FragmentProps): PibblNodeInput;
14
+ /** @internal */
15
+ export declare function isFragmentElement(element: PibblElement<any>): element is PibblElement<FragmentProps>;
@@ -0,0 +1,11 @@
1
+ function Fragment(props) {
2
+ return props.children;
3
+ }
4
+ function isFragmentElement(element) {
5
+ return element.type === Fragment;
6
+ }
7
+ export {
8
+ Fragment,
9
+ isFragmentElement
10
+ };
11
+ //# sourceMappingURL=fragment.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/element/fragment.ts"],
4
+ "sourcesContent": ["import type { PibblElement, PibblNodeInput } from './types.js';\n\nexport interface FragmentProps {\n children?: PibblNodeInput;\n}\n\n/**\n * Compiler-visible fragment value. The renderer handles its descriptor directly.\n *\n * @param props - Children and optional fragment identity. See {@link FragmentProps}.\n * @returns The fragment's children, preserving their order. See {@link PibblNodeInput}.\n *\n * @see {@link PibblNodeInput}\n */\nexport function Fragment(props: FragmentProps): PibblNodeInput {\n return props.children;\n}\n\n/** @internal */\nexport function isFragmentElement(\n element: PibblElement<any>,\n): element is PibblElement<FragmentProps> {\n return element.type === Fragment;\n}\n"],
5
+ "mappings": "AAcO,SAAS,SAAS,OAAsC;AAC7D,SAAO,MAAM;AACf;AAGO,SAAS,kBACd,SACwC;AACxC,SAAO,QAAQ,SAAS;AAC1B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,48 @@
1
+ export { Fragment } from './fragment.js';
2
+ import type { PibblElementSource } from './metadata.js';
3
+ import type { PibblElement, PibblElementType, PibblKey } from './types.js';
4
+ /**
5
+ * @internal Automatic JSX production constructor.
6
+ *
7
+ * @param type - Pibbl component or fragment emitted by the JSX compiler. See {@link PibblElementType}.
8
+ * @param props - Compiler-generated props, including children.
9
+ * @param key - Optional reconciliation key supplied separately by the compiler. See {@link PibblKey}
10
+ * .
11
+ * @returns A branded Pibbl element descriptor. See {@link PibblElement}.
12
+ *
13
+ * @see {@link PibblElementType}
14
+ * @see {@link PibblKey}
15
+ * @see {@link PibblElement}
16
+ */
17
+ export declare function jsx<P>(type: PibblElementType<P>, props: P, key?: PibblKey): PibblElement<P>;
18
+ /**
19
+ * @internal Automatic JSX production constructor for static child lists.
20
+ *
21
+ * @param type - Pibbl component or fragment emitted by the JSX compiler. See {@link PibblElementType}.
22
+ * @param props - Compiler-generated props, including the static child list.
23
+ * @param key - Optional reconciliation key. See {@link PibblKey}.
24
+ * @returns A branded Pibbl element descriptor. See {@link PibblElement}.
25
+ *
26
+ * @see {@link PibblElementType}
27
+ * @see {@link PibblKey}
28
+ * @see {@link PibblElement}
29
+ */
30
+ export declare const jsxs: typeof jsx;
31
+ /**
32
+ * @internal Automatic JSX development constructor.
33
+ *
34
+ * @param type - Pibbl component or fragment emitted by the JSX compiler. See {@link PibblElementType}.
35
+ * @param props - Compiler-generated props, including children.
36
+ * @param key - Reconciliation key, if present. See {@link PibblKey}.
37
+ * @param _isStaticChildren - Compiler compatibility flag; not used by Pibbl.
38
+ * @param source - Development source location for diagnostics. See {@link PibblElementSource}.
39
+ * @param _self - Compiler compatibility receiver; not used by Pibbl.
40
+ * @returns A branded Pibbl element descriptor with development source metadata. See
41
+ * {@link PibblElement} .
42
+ *
43
+ * @see {@link PibblElementType}
44
+ * @see {@link PibblKey}
45
+ * @see {@link PibblElementSource}
46
+ * @see {@link PibblElement}
47
+ */
48
+ export declare function jsxDEV<P>(type: PibblElementType<P>, props: P, key: PibblKey | undefined, _isStaticChildren: boolean, source: PibblElementSource | undefined, _self: unknown): PibblElement<P>;
@@ -0,0 +1,16 @@
1
+ import { createPibblElement } from "./create-element.js";
2
+ import { Fragment } from "./fragment.js";
3
+ function jsx(type, props, key) {
4
+ return createPibblElement(type, props, key, void 0);
5
+ }
6
+ const jsxs = jsx;
7
+ function jsxDEV(type, props, key, _isStaticChildren, source, _self) {
8
+ return createPibblElement(type, props, key, source);
9
+ }
10
+ export {
11
+ Fragment,
12
+ jsx,
13
+ jsxDEV,
14
+ jsxs
15
+ };
16
+ //# sourceMappingURL=jsx-runtime.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/element/jsx-runtime.ts"],
4
+ "sourcesContent": ["import { createPibblElement } from './create-element.js';\nexport { Fragment } from './fragment.js';\nimport type { PibblElementSource } from './metadata.js';\nimport type {\n PibblElement,\n PibblElementType,\n PibblKey,\n} from './types.js';\n\n/**\n * @internal Automatic JSX production constructor.\n *\n * @param type - Pibbl component or fragment emitted by the JSX compiler. See {@link PibblElementType}.\n * @param props - Compiler-generated props, including children.\n * @param key - Optional reconciliation key supplied separately by the compiler. See {@link PibblKey}\n * .\n * @returns A branded Pibbl element descriptor. See {@link PibblElement}.\n *\n * @see {@link PibblElementType}\n * @see {@link PibblKey}\n * @see {@link PibblElement}\n */\nexport function jsx<P>(\n type: PibblElementType<P>,\n props: P,\n key?: PibblKey,\n): PibblElement<P> {\n return createPibblElement(type, props, key, undefined);\n}\n\n/**\n * @internal Automatic JSX production constructor for static child lists.\n *\n * @param type - Pibbl component or fragment emitted by the JSX compiler. See {@link PibblElementType}.\n * @param props - Compiler-generated props, including the static child list.\n * @param key - Optional reconciliation key. See {@link PibblKey}.\n * @returns A branded Pibbl element descriptor. See {@link PibblElement}.\n *\n * @see {@link PibblElementType}\n * @see {@link PibblKey}\n * @see {@link PibblElement}\n */\nexport const jsxs = jsx;\n\n/**\n * @internal Automatic JSX development constructor.\n *\n * @param type - Pibbl component or fragment emitted by the JSX compiler. See {@link PibblElementType}.\n * @param props - Compiler-generated props, including children.\n * @param key - Reconciliation key, if present. See {@link PibblKey}.\n * @param _isStaticChildren - Compiler compatibility flag; not used by Pibbl.\n * @param source - Development source location for diagnostics. See {@link PibblElementSource}.\n * @param _self - Compiler compatibility receiver; not used by Pibbl.\n * @returns A branded Pibbl element descriptor with development source metadata. See\n * {@link PibblElement} .\n *\n * @see {@link PibblElementType}\n * @see {@link PibblKey}\n * @see {@link PibblElementSource}\n * @see {@link PibblElement}\n */\nexport function jsxDEV<P>(\n type: PibblElementType<P>,\n props: P,\n key: PibblKey | undefined,\n _isStaticChildren: boolean,\n source: PibblElementSource | undefined,\n _self: unknown,\n): PibblElement<P> {\n return createPibblElement(type, props, key, source);\n}\n"],
5
+ "mappings": "AAAA,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AAqBlB,SAAS,IACd,MACA,OACA,KACiB;AACjB,SAAO,mBAAmB,MAAM,OAAO,KAAK,MAAS;AACvD;AAcO,MAAM,OAAO;AAmBb,SAAS,OACd,MACA,OACA,KACA,mBACA,QACA,OACiB;AACjB,SAAO,mBAAmB,MAAM,OAAO,KAAK,MAAM;AACpD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,96 @@
1
+ import type { PibblBackendPrimitiveInput } from "../backend/types.js";
2
+ import type { PibblInternalPrimitiveAttachmentInput } from "../element-enhancers.js";
3
+ import type { getCurrentElementSource } from "../../internal.js";
4
+ import type { PibblRenderTransaction, SystemStyle } from '../types.js';
5
+ import type { PibblElement } from './types.js';
6
+ import type { PrimitivePresentation } from '../primitive-presentation.js';
7
+ import type { PibblBackendPrimitiveDefinition } from '../backend/types.js';
8
+ /**
9
+ * Authoring source location attached to an element for diagnostics.
10
+ *
11
+ * @see {@link PibblBackendPrimitiveInput}
12
+ * @see {@link PibblInternalPrimitiveAttachmentInput}
13
+ * @see {@link getCurrentElementSource}
14
+ */
15
+ export interface PibblElementSource {
16
+ /** Source filename recorded for diagnostics. See {@link PibblElementSource}. */
17
+ readonly fileName: string;
18
+ /** Source line recorded for diagnostics. See {@link PibblElementSource}. */
19
+ readonly lineNumber: number;
20
+ /** Source column recorded for diagnostics. See {@link PibblElementSource}. */
21
+ readonly columnNumber: number;
22
+ }
23
+ export interface InternalElementMetadata {
24
+ readonly source?: PibblElementSource;
25
+ readonly specifiedStyle?: Readonly<SystemStyle>;
26
+ readonly primitiveProgramProps?: Readonly<Record<PropertyKey, unknown>>;
27
+ readonly primitiveReceiverToken?: object;
28
+ readonly policyPreparationSource?: PibblElement<any>;
29
+ identityHint?: unknown;
30
+ placementConsumed?: boolean;
31
+ placementSignalHandoff?: Readonly<SystemStyle>;
32
+ }
33
+ export interface PrimitiveDefinition<P = any, S extends SystemStyle = SystemStyle, N extends SystemStyle = S, R extends SystemStyle = N> extends PibblBackendPrimitiveDefinition<P, S, N, R> {
34
+ }
35
+ export interface ElementPolicyDefinition {
36
+ readonly prepare: (policy: PibblElement<any>, child: PibblElement<any>) => PibblElement<any>;
37
+ }
38
+ /** @internal Registers the platform behavior for one component value. */
39
+ export declare function setPrimitiveDefinition<P, S extends SystemStyle, N extends SystemStyle, R extends SystemStyle>(type: Function, definition: PrimitiveDefinition<P, S, N, R>): void;
40
+ /** @internal Reads platform behavior without attaching fields to a function. */
41
+ export declare function getPrimitiveDefinition(type: Function): PrimitiveDefinition | undefined;
42
+ /** @internal Copies one primitive definition and presentation onto a new identity. */
43
+ export declare function derivePrimitiveMetadata(source: Function, derived: Function): void;
44
+ /** @internal Resolves Canvas presentation behavior from erased backend input. */
45
+ export declare function getDefinitionPrimitivePresentation<S>(definition: PrimitiveDefinition, style: Readonly<S>): Readonly<PrimitivePresentation> | undefined;
46
+ /** @internal Registers private presentation behavior for one primitive. */
47
+ export declare function setPrimitivePresentation<S>(type: Function, resolve: (style: Readonly<S>) => Readonly<PrimitivePresentation> | undefined): void;
48
+ /** @internal Resolves private presentation behavior for one primitive. */
49
+ export declare function getPrimitivePresentation<S>(type: Function, style: Readonly<S>): Readonly<PrimitivePresentation> | undefined;
50
+ /** @internal Registers an identity-transparent element preparation policy. */
51
+ export declare function setElementPolicyDefinition(type: Function, definition: ElementPolicyDefinition): void;
52
+ /** @internal Reads a policy before ordinary component identity is assigned. */
53
+ export declare function getElementPolicyDefinition(type: Function): ElementPolicyDefinition | undefined;
54
+ /** @internal */
55
+ export declare function setElementMetadata(element: PibblElement<any>, metadata: InternalElementMetadata): void;
56
+ /** @internal */
57
+ export declare function getElementMetadata(element: PibblElement<any>): InternalElementMetadata | undefined;
58
+ /** @internal Retains the original measurable identity behind policy clones. */
59
+ export declare function setPolicyPreparationSource(element: PibblElement<any>, source: PibblElement<any>): void;
60
+ /** @internal Reads the original measurable identity behind policy clones. */
61
+ export declare function getPolicyPreparationSource(element: PibblElement<any>): PibblElement<any> | undefined;
62
+ /** @internal Registers private WeakMap-backed annotations for immutable clones. */
63
+ export declare function registerElementCloneMetadataHandler(handler: (source: PibblElement<any>, clone: PibblElement<any>) => void): void;
64
+ /** @internal Copies every registered private annotation to a finalized clone. */
65
+ export declare function copyElementCloneMetadata(source: PibblElement<any>, clone: PibblElement<any>): void;
66
+ /** @internal */
67
+ export declare function getElementSource(element: PibblElement<any>): PibblElementSource | undefined;
68
+ /** @internal */
69
+ export declare function getSpecifiedStyle<S extends SystemStyle>(element: PibblElement<{
70
+ style?: S;
71
+ }>): Readonly<S> | undefined;
72
+ /** @internal Returns program props with primitive-owned style removed. */
73
+ export declare function getPrimitiveProgramProps<P>(element: PibblElement<any>): P;
74
+ /** @internal Associates measurement and paint clones for one occurrence. */
75
+ export declare function setPrimitiveReceiverToken(element: PibblElement<any>, token: object): void;
76
+ /** @internal Reads the occurrence token carried by an internal clone. */
77
+ export declare function getPrimitiveReceiverToken(element: PibblElement<any>): object | undefined;
78
+ /** @internal Creates one receiver identity for a standalone measurement. */
79
+ export declare function createPrimitiveReceiverToken(): object;
80
+ /** @internal Reuses a direct-child occurrence across layout measurement and paint. */
81
+ export declare function getChildPrimitiveReceiverToken(transaction: PibblRenderTransaction | undefined, parent: object | undefined, occurrence: number): object;
82
+ /** @internal Reads the private identity override for a placed element. */
83
+ export declare function getPlacementIdentityHint<T>(element: PibblElement<any>): T | undefined;
84
+ /** @internal Stores the private identity override for a placed element. */
85
+ export declare function setPlacementIdentityHint<T>(element: PibblElement<any>, value: T): void;
86
+ /** @internal Built-in opaque payloads, without widening definePrimitive's API. */
87
+ export declare function registerOpaquePrimitiveProps(type: Function, keys: readonly string[]): void;
88
+ export declare function getOpaquePrimitiveProps(type: Function): readonly string[] | undefined;
89
+ /** @internal Marks authored left/top as consumed by a parent layout wrapper. */
90
+ export declare function setPlacementConsumed(element: PibblElement<any>): void;
91
+ /** @internal */
92
+ export declare function isPlacementConsumed(element: PibblElement<any>): boolean;
93
+ /** @internal Marks an element created with a forwarded placement style signal. */
94
+ export declare function setPlacementSignalHandoff(element: PibblElement<any>, style: Readonly<SystemStyle>): void;
95
+ /** @internal */
96
+ export declare function getPlacementSignalHandoffStyle(element: PibblElement<any>): Readonly<SystemStyle> | undefined;
@@ -0,0 +1,160 @@
1
+ const elementMetadata = /* @__PURE__ */ new WeakMap();
2
+ const elementCloneMetadataHandlers = /* @__PURE__ */ new Set();
3
+ const primitiveDefinitions = /* @__PURE__ */ new WeakMap();
4
+ const primitiveDefinitionTypes = /* @__PURE__ */ new WeakMap();
5
+ const primitivePresentationResolvers = /* @__PURE__ */ new WeakMap();
6
+ const policyDefinitions = /* @__PURE__ */ new WeakMap();
7
+ const childPrimitiveReceiverTransactions = /* @__PURE__ */ new WeakMap();
8
+ function setPrimitiveDefinition(type, definition) {
9
+ const erased = definition;
10
+ primitiveDefinitions.set(type, erased);
11
+ primitiveDefinitionTypes.set(erased, type);
12
+ }
13
+ function getPrimitiveDefinition(type) {
14
+ return primitiveDefinitions.get(type);
15
+ }
16
+ function derivePrimitiveMetadata(source, derived) {
17
+ const definition = primitiveDefinitions.get(source);
18
+ if (!definition) throw new TypeError("Can only derive a Pibbl primitive component.");
19
+ setPrimitiveDefinition(derived, { ...definition });
20
+ const presentation = primitivePresentationResolvers.get(source);
21
+ if (presentation) primitivePresentationResolvers.set(derived, presentation);
22
+ }
23
+ function getDefinitionPrimitivePresentation(definition, style) {
24
+ const type = primitiveDefinitionTypes.get(definition);
25
+ return type ? getPrimitivePresentation(type, style) : void 0;
26
+ }
27
+ function setPrimitivePresentation(type, resolve) {
28
+ primitivePresentationResolvers.set(type, resolve);
29
+ }
30
+ function getPrimitivePresentation(type, style) {
31
+ return primitivePresentationResolvers.get(type)?.(style);
32
+ }
33
+ function setElementPolicyDefinition(type, definition) {
34
+ policyDefinitions.set(type, definition);
35
+ }
36
+ function getElementPolicyDefinition(type) {
37
+ return policyDefinitions.get(type);
38
+ }
39
+ function setElementMetadata(element, metadata) {
40
+ elementMetadata.set(element, metadata);
41
+ }
42
+ function getElementMetadata(element) {
43
+ return elementMetadata.get(element);
44
+ }
45
+ function setPolicyPreparationSource(element, source) {
46
+ elementMetadata.set(element, {
47
+ ...elementMetadata.get(element),
48
+ policyPreparationSource: source
49
+ });
50
+ }
51
+ function getPolicyPreparationSource(element) {
52
+ return elementMetadata.get(element)?.policyPreparationSource;
53
+ }
54
+ function registerElementCloneMetadataHandler(handler) {
55
+ elementCloneMetadataHandlers.add(handler);
56
+ }
57
+ function copyElementCloneMetadata(source, clone) {
58
+ for (const handler of elementCloneMetadataHandlers) handler(source, clone);
59
+ }
60
+ function getElementSource(element) {
61
+ return elementMetadata.get(element)?.source;
62
+ }
63
+ function getSpecifiedStyle(element) {
64
+ return element.props.style;
65
+ }
66
+ function getPrimitiveProgramProps(element) {
67
+ const prepared = elementMetadata.get(element)?.primitiveProgramProps;
68
+ if (prepared !== void 0) return prepared;
69
+ const { style: _style, ...programProps } = element.props;
70
+ return programProps;
71
+ }
72
+ function setPrimitiveReceiverToken(element, token) {
73
+ const current = elementMetadata.get(element) ?? {};
74
+ elementMetadata.set(element, { ...current, primitiveReceiverToken: token });
75
+ }
76
+ function getPrimitiveReceiverToken(element) {
77
+ return elementMetadata.get(element)?.primitiveReceiverToken;
78
+ }
79
+ function createPrimitiveReceiverToken() {
80
+ return {};
81
+ }
82
+ function getChildPrimitiveReceiverToken(transaction, parent, occurrence) {
83
+ if (!transaction || !parent) return createPrimitiveReceiverToken();
84
+ let parents = childPrimitiveReceiverTransactions.get(transaction);
85
+ if (!parents) {
86
+ parents = /* @__PURE__ */ new WeakMap();
87
+ childPrimitiveReceiverTransactions.set(transaction, parents);
88
+ }
89
+ let children = parents.get(parent);
90
+ if (!children) {
91
+ children = /* @__PURE__ */ new Map();
92
+ parents.set(parent, children);
93
+ }
94
+ let token = children.get(occurrence);
95
+ if (!token) {
96
+ token = createPrimitiveReceiverToken();
97
+ children.set(occurrence, token);
98
+ }
99
+ return token;
100
+ }
101
+ function getPlacementIdentityHint(element) {
102
+ return elementMetadata.get(element)?.identityHint;
103
+ }
104
+ function setPlacementIdentityHint(element, value) {
105
+ const current = elementMetadata.get(element) ?? {};
106
+ elementMetadata.set(element, { ...current, identityHint: value });
107
+ }
108
+ const opaquePrimitiveProps = /* @__PURE__ */ new WeakMap();
109
+ function registerOpaquePrimitiveProps(type, keys) {
110
+ opaquePrimitiveProps.set(type, keys);
111
+ }
112
+ function getOpaquePrimitiveProps(type) {
113
+ return opaquePrimitiveProps.get(type);
114
+ }
115
+ function setPlacementConsumed(element) {
116
+ const current = elementMetadata.get(element) ?? {};
117
+ elementMetadata.set(element, { ...current, placementConsumed: true });
118
+ }
119
+ function isPlacementConsumed(element) {
120
+ return elementMetadata.get(element)?.placementConsumed === true;
121
+ }
122
+ function setPlacementSignalHandoff(element, style) {
123
+ const current = elementMetadata.get(element) ?? {};
124
+ elementMetadata.set(element, { ...current, placementSignalHandoff: style });
125
+ }
126
+ function getPlacementSignalHandoffStyle(element) {
127
+ return elementMetadata.get(element)?.placementSignalHandoff;
128
+ }
129
+ export {
130
+ copyElementCloneMetadata,
131
+ createPrimitiveReceiverToken,
132
+ derivePrimitiveMetadata,
133
+ getChildPrimitiveReceiverToken,
134
+ getDefinitionPrimitivePresentation,
135
+ getElementMetadata,
136
+ getElementPolicyDefinition,
137
+ getElementSource,
138
+ getOpaquePrimitiveProps,
139
+ getPlacementIdentityHint,
140
+ getPlacementSignalHandoffStyle,
141
+ getPolicyPreparationSource,
142
+ getPrimitiveDefinition,
143
+ getPrimitivePresentation,
144
+ getPrimitiveProgramProps,
145
+ getPrimitiveReceiverToken,
146
+ getSpecifiedStyle,
147
+ isPlacementConsumed,
148
+ registerElementCloneMetadataHandler,
149
+ registerOpaquePrimitiveProps,
150
+ setElementMetadata,
151
+ setElementPolicyDefinition,
152
+ setPlacementConsumed,
153
+ setPlacementIdentityHint,
154
+ setPlacementSignalHandoff,
155
+ setPolicyPreparationSource,
156
+ setPrimitiveDefinition,
157
+ setPrimitivePresentation,
158
+ setPrimitiveReceiverToken
159
+ };
160
+ //# sourceMappingURL=metadata.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/lib/element/metadata.ts"],
4
+ "sourcesContent": ["import type { PibblBackendPrimitiveInput } from '../backend/types.js';\nimport type { PibblInternalPrimitiveAttachmentInput } from '../element-enhancers.js';\nimport type { getCurrentElementSource } from '../../internal.js';\nimport type {\n PibblRenderTransaction,\n SystemStyle,\n} from '../types.js';\nimport type { PibblElement } from './types.js';\nimport type { PrimitivePresentation } from '../primitive-presentation.js';\nimport type { PibblBackendPrimitiveDefinition } from '../backend/types.js';\n\n/**\n * Authoring source location attached to an element for diagnostics.\n *\n * @see {@link PibblBackendPrimitiveInput}\n * @see {@link PibblInternalPrimitiveAttachmentInput}\n * @see {@link getCurrentElementSource}\n */\nexport interface PibblElementSource {\n /** Source filename recorded for diagnostics. See {@link PibblElementSource}. */\n readonly fileName: string;\n /** Source line recorded for diagnostics. See {@link PibblElementSource}. */\n readonly lineNumber: number;\n /** Source column recorded for diagnostics. See {@link PibblElementSource}. */\n readonly columnNumber: number;\n}\n\nexport interface InternalElementMetadata {\n readonly source?: PibblElementSource;\n readonly specifiedStyle?: Readonly<SystemStyle>;\n readonly primitiveProgramProps?: Readonly<Record<PropertyKey, unknown>>;\n readonly primitiveReceiverToken?: object;\n readonly policyPreparationSource?: PibblElement<any>;\n identityHint?: unknown;\n placementConsumed?: boolean;\n placementSignalHandoff?: Readonly<SystemStyle>;\n}\n\nconst elementMetadata = new WeakMap<PibblElement<any>, InternalElementMetadata>();\nconst elementCloneMetadataHandlers = new Set<(\n source: PibblElement<any>,\n clone: PibblElement<any>,\n) => void>();\nconst primitiveDefinitions = new WeakMap<Function, PrimitiveDefinition>();\nconst primitiveDefinitionTypes = new WeakMap<PrimitiveDefinition, Function>();\nconst primitivePresentationResolvers = new WeakMap<\n Function,\n (style: Readonly<any>) => Readonly<PrimitivePresentation> | undefined\n>();\nconst policyDefinitions = new WeakMap<Function, ElementPolicyDefinition>();\nconst childPrimitiveReceiverTransactions = new WeakMap<\n PibblRenderTransaction,\n WeakMap<object, Map<number, object>>\n>();\n\nexport interface PrimitiveDefinition<\n P = any,\n S extends SystemStyle = SystemStyle,\n N extends SystemStyle = S,\n R extends SystemStyle = N,\n> extends PibblBackendPrimitiveDefinition<P, S, N, R> {}\n\nexport interface ElementPolicyDefinition {\n readonly prepare: (\n policy: PibblElement<any>,\n child: PibblElement<any>,\n ) => PibblElement<any>;\n}\n\n/** @internal Registers the platform behavior for one component value. */\nexport function setPrimitiveDefinition<\n P,\n S extends SystemStyle,\n N extends SystemStyle,\n R extends SystemStyle,\n>(\n type: Function,\n definition: PrimitiveDefinition<P, S, N, R>,\n): void {\n const erased = definition as PrimitiveDefinition;\n primitiveDefinitions.set(type, erased);\n primitiveDefinitionTypes.set(erased, type);\n}\n\n/** @internal Reads platform behavior without attaching fields to a function. */\nexport function getPrimitiveDefinition(\n type: Function,\n): PrimitiveDefinition | undefined {\n return primitiveDefinitions.get(type);\n}\n\n/** @internal Copies one primitive definition and presentation onto a new identity. */\nexport function derivePrimitiveMetadata(source: Function, derived: Function): void {\n const definition = primitiveDefinitions.get(source);\n if (!definition) throw new TypeError('Can only derive a Pibbl primitive component.');\n setPrimitiveDefinition(derived, { ...definition });\n const presentation = primitivePresentationResolvers.get(source);\n if (presentation) primitivePresentationResolvers.set(derived, presentation);\n}\n\n/** @internal Resolves Canvas presentation behavior from erased backend input. */\nexport function getDefinitionPrimitivePresentation<S>(\n definition: PrimitiveDefinition,\n style: Readonly<S>,\n): Readonly<PrimitivePresentation> | undefined {\n const type = primitiveDefinitionTypes.get(definition);\n return type ? getPrimitivePresentation(type, style) : undefined;\n}\n\n/** @internal Registers private presentation behavior for one primitive. */\nexport function setPrimitivePresentation<S>(\n type: Function,\n resolve: (\n style: Readonly<S>,\n ) => Readonly<PrimitivePresentation> | undefined,\n): void {\n primitivePresentationResolvers.set(type, resolve);\n}\n\n/** @internal Resolves private presentation behavior for one primitive. */\nexport function getPrimitivePresentation<S>(\n type: Function,\n style: Readonly<S>,\n): Readonly<PrimitivePresentation> | undefined {\n return primitivePresentationResolvers.get(type)?.(style);\n}\n\n/** @internal Registers an identity-transparent element preparation policy. */\nexport function setElementPolicyDefinition(\n type: Function,\n definition: ElementPolicyDefinition,\n): void {\n policyDefinitions.set(type, definition);\n}\n\n/** @internal Reads a policy before ordinary component identity is assigned. */\nexport function getElementPolicyDefinition(\n type: Function,\n): ElementPolicyDefinition | undefined {\n return policyDefinitions.get(type);\n}\n\n/** @internal */\nexport function setElementMetadata(\n element: PibblElement<any>,\n metadata: InternalElementMetadata,\n): void {\n elementMetadata.set(element, metadata);\n}\n\n/** @internal */\nexport function getElementMetadata(\n element: PibblElement<any>,\n): InternalElementMetadata | undefined {\n return elementMetadata.get(element);\n}\n\n/** @internal Retains the original measurable identity behind policy clones. */\nexport function setPolicyPreparationSource(\n element: PibblElement<any>,\n source: PibblElement<any>,\n): void {\n elementMetadata.set(element, {\n ...elementMetadata.get(element),\n policyPreparationSource: source,\n });\n}\n\n/** @internal Reads the original measurable identity behind policy clones. */\nexport function getPolicyPreparationSource(\n element: PibblElement<any>,\n): PibblElement<any> | undefined {\n return elementMetadata.get(element)?.policyPreparationSource;\n}\n\n/** @internal Registers private WeakMap-backed annotations for immutable clones. */\nexport function registerElementCloneMetadataHandler(\n handler: (source: PibblElement<any>, clone: PibblElement<any>) => void,\n): void {\n elementCloneMetadataHandlers.add(handler);\n}\n\n/** @internal Copies every registered private annotation to a finalized clone. */\nexport function copyElementCloneMetadata(\n source: PibblElement<any>,\n clone: PibblElement<any>,\n): void {\n for (const handler of elementCloneMetadataHandlers) handler(source, clone);\n}\n\n/** @internal */\nexport function getElementSource(\n element: PibblElement<any>,\n): PibblElementSource | undefined {\n return elementMetadata.get(element)?.source;\n}\n\n/** @internal */\nexport function getSpecifiedStyle<S extends SystemStyle>(\n element: PibblElement<{ style?: S }>,\n): Readonly<S> | undefined {\n return element.props.style;\n}\n\n/** @internal Returns program props with primitive-owned style removed. */\nexport function getPrimitiveProgramProps<P>(element: PibblElement<any>): P {\n const prepared = elementMetadata.get(element)?.primitiveProgramProps;\n if (prepared !== undefined) return prepared as P;\n const { style: _style, ...programProps } = element.props as {\n readonly style?: unknown;\n readonly [key: PropertyKey]: unknown;\n };\n return programProps as P;\n}\n\n/** @internal Associates measurement and paint clones for one occurrence. */\nexport function setPrimitiveReceiverToken(\n element: PibblElement<any>,\n token: object,\n): void {\n const current = elementMetadata.get(element) ?? {};\n elementMetadata.set(element, { ...current, primitiveReceiverToken: token });\n}\n\n/** @internal Reads the occurrence token carried by an internal clone. */\nexport function getPrimitiveReceiverToken(\n element: PibblElement<any>,\n): object | undefined {\n return elementMetadata.get(element)?.primitiveReceiverToken;\n}\n\n/** @internal Creates one receiver identity for a standalone measurement. */\nexport function createPrimitiveReceiverToken(): object {\n return {};\n}\n\n/** @internal Reuses a direct-child occurrence across layout measurement and paint. */\nexport function getChildPrimitiveReceiverToken(\n transaction: PibblRenderTransaction | undefined,\n parent: object | undefined,\n occurrence: number,\n): object {\n if (!transaction || !parent) return createPrimitiveReceiverToken();\n let parents = childPrimitiveReceiverTransactions.get(transaction);\n if (!parents) {\n parents = new WeakMap();\n childPrimitiveReceiverTransactions.set(transaction, parents);\n }\n let children = parents.get(parent);\n if (!children) {\n children = new Map();\n parents.set(parent, children);\n }\n let token = children.get(occurrence);\n if (!token) {\n token = createPrimitiveReceiverToken();\n children.set(occurrence, token);\n }\n return token;\n}\n\n/** @internal Reads the private identity override for a placed element. */\nexport function getPlacementIdentityHint<T>(element: PibblElement<any>): T | undefined {\n return elementMetadata.get(element)?.identityHint as T | undefined;\n}\n\n/** @internal Stores the private identity override for a placed element. */\nexport function setPlacementIdentityHint<T>(element: PibblElement<any>, value: T): void {\n const current = elementMetadata.get(element) ?? {};\n elementMetadata.set(element, { ...current, identityHint: value });\n}\n\nconst opaquePrimitiveProps = new WeakMap<Function, readonly string[]>();\n/** @internal Built-in opaque payloads, without widening definePrimitive's API. */\nexport function registerOpaquePrimitiveProps(type: Function, keys: readonly string[]): void {\n opaquePrimitiveProps.set(type, keys);\n}\nexport function getOpaquePrimitiveProps(type: Function): readonly string[] | undefined {\n return opaquePrimitiveProps.get(type);\n}\n\n/** @internal Marks authored left/top as consumed by a parent layout wrapper. */\nexport function setPlacementConsumed(element: PibblElement<any>): void {\n const current = elementMetadata.get(element) ?? {};\n elementMetadata.set(element, { ...current, placementConsumed: true });\n}\n\n/** @internal */\nexport function isPlacementConsumed(element: PibblElement<any>): boolean {\n return elementMetadata.get(element)?.placementConsumed === true;\n}\n\n\n/** @internal Marks an element created with a forwarded placement style signal. */\nexport function setPlacementSignalHandoff(\n element: PibblElement<any>,\n style: Readonly<SystemStyle>,\n): void {\n const current = elementMetadata.get(element) ?? {};\n elementMetadata.set(element, { ...current, placementSignalHandoff: style });\n}\n\n/** @internal */\nexport function getPlacementSignalHandoffStyle(\n element: PibblElement<any>,\n): Readonly<SystemStyle> | undefined {\n return elementMetadata.get(element)?.placementSignalHandoff;\n}\n"],
5
+ "mappings": "AAsCA,MAAM,kBAAkB,oBAAI,QAAoD;AAChF,MAAM,+BAA+B,oBAAI,IAG9B;AACX,MAAM,uBAAuB,oBAAI,QAAuC;AACxE,MAAM,2BAA2B,oBAAI,QAAuC;AAC5E,MAAM,iCAAiC,oBAAI,QAGzC;AACF,MAAM,oBAAoB,oBAAI,QAA2C;AACzE,MAAM,qCAAqC,oBAAI,QAG7C;AAiBK,SAAS,uBAMd,MACA,YACM;AACN,QAAM,SAAS;AACf,uBAAqB,IAAI,MAAM,MAAM;AACrC,2BAAyB,IAAI,QAAQ,IAAI;AAC3C;AAGO,SAAS,uBACd,MACiC;AACjC,SAAO,qBAAqB,IAAI,IAAI;AACtC;AAGO,SAAS,wBAAwB,QAAkB,SAAyB;AACjF,QAAM,aAAa,qBAAqB,IAAI,MAAM;AAClD,MAAI,CAAC,WAAY,OAAM,IAAI,UAAU,8CAA8C;AACnF,yBAAuB,SAAS,EAAE,GAAG,WAAW,CAAC;AACjD,QAAM,eAAe,+BAA+B,IAAI,MAAM;AAC9D,MAAI,aAAc,gCAA+B,IAAI,SAAS,YAAY;AAC5E;AAGO,SAAS,mCACd,YACA,OAC6C;AAC7C,QAAM,OAAO,yBAAyB,IAAI,UAAU;AACpD,SAAO,OAAO,yBAAyB,MAAM,KAAK,IAAI;AACxD;AAGO,SAAS,yBACd,MACA,SAGM;AACN,iCAA+B,IAAI,MAAM,OAAO;AAClD;AAGO,SAAS,yBACd,MACA,OAC6C;AAC7C,SAAO,+BAA+B,IAAI,IAAI,IAAI,KAAK;AACzD;AAGO,SAAS,2BACd,MACA,YACM;AACN,oBAAkB,IAAI,MAAM,UAAU;AACxC;AAGO,SAAS,2BACd,MACqC;AACrC,SAAO,kBAAkB,IAAI,IAAI;AACnC;AAGO,SAAS,mBACd,SACA,UACM;AACN,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,WAAW,QAAQ,IAAI,MAAM;AACjC,MAAI,CAAC,UAAU;AACb,eAAW,oBAAI,IAAI;AACnB,YAAQ,IAAI,QAAQ,QAAQ;AAAA,EAC9B;AACA,MAAI,QAAQ,SAAS,IAAI,UAAU;AACnC,MAAI,CAAC,OAAO;AACV,YAAQ,6BAA6B;AACrC,aAAS,IAAI,YAAY,KAAK;AAAA,EAChC;AACA,SAAO;AACT;AAGO,SAAS,yBAA4B,SAA2C;AACrF,SAAO,gBAAgB,IAAI,OAAO,GAAG;AACvC;AAGO,SAAS,yBAA4B,SAA4B,OAAgB;AACtF,QAAM,UAAU,gBAAgB,IAAI,OAAO,KAAK,CAAC;AACjD,kBAAgB,IAAI,SAAS,EAAE,GAAG,SAAS,cAAc,MAAM,CAAC;AAClE;AAEA,MAAM,uBAAuB,oBAAI,QAAqC;AAE/D,SAAS,6BAA6B,MAAgB,MAA+B;AAC1F,uBAAqB,IAAI,MAAM,IAAI;AACrC;AACO,SAAS,wBAAwB,MAA+C;AACrF,SAAO,qBAAqB,IAAI,IAAI;AACtC;AAGO,SAAS,qBAAqB,SAAkC;AACrE,QAAM,UAAU,gBAAgB,IAAI,OAAO,KAAK,CAAC;AACjD,kBAAgB,IAAI,SAAS,EAAE,GAAG,SAAS,mBAAmB,KAAK,CAAC;AACtE;AAGO,SAAS,oBAAoB,SAAqC;AACvE,SAAO,gBAAgB,IAAI,OAAO,GAAG,sBAAsB;AAC7D;AAIO,SAAS,0BACd,SACA,OACM;AACN,QAAM,UAAU,gBAAgB,IAAI,OAAO,KAAK,CAAC;AACjD,kBAAgB,IAAI,SAAS,EAAE,GAAG,SAAS,wBAAwB,MAAM,CAAC;AAC5E;AAGO,SAAS,+BACd,SACmC;AACnC,SAAO,gBAAgB,IAAI,OAAO,GAAG;AACvC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,12 @@
1
+ import { type ResponsiveStylePreparation, type QueryBasis } from '../style/responsive.js';
2
+ import { type PrimitiveDefinition } from './metadata.js';
3
+ import type { PibblElement } from './types.js';
4
+ export interface ResolvedPrimitiveInputs {
5
+ readonly props: Readonly<Record<PropertyKey, unknown>>;
6
+ readonly style: Readonly<Record<PropertyKey, unknown>> | undefined;
7
+ }
8
+ export declare function resolvePrimitiveInputs(element: PibblElement<any>, definition: PrimitiveDefinition, prepared?: {
9
+ style: Readonly<Record<PropertyKey, unknown>>;
10
+ }, basis?: QueryBasis): ResolvedPrimitiveInputs;
11
+ export declare function resolvePrimitiveStyleInput(input: unknown, element: PibblElement<any> | undefined, basis: QueryBasis | undefined, mode: 'value'): Readonly<Record<PropertyKey, unknown>> | undefined;
12
+ export declare function resolvePrimitiveStyleInput(input: unknown, element?: PibblElement<any>, basis?: QueryBasis): Readonly<Record<PropertyKey, unknown>> | ResponsiveStylePreparation | undefined;