@asyra/core 0.2.5 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/dist/apis/create-apis.d.ts +8 -0
  4. package/dist/apis/create-apis.d.ts.map +1 -0
  5. package/dist/apis/create-apis.js +272 -0
  6. package/dist/apis/create-apis.js.map +1 -0
  7. package/dist/apis/element-properties.d.ts +10 -0
  8. package/dist/apis/element-properties.d.ts.map +1 -0
  9. package/dist/apis/element-properties.js +33 -0
  10. package/dist/apis/element-properties.js.map +1 -0
  11. package/dist/apis/element-selection.d.ts +4 -2
  12. package/dist/apis/element-selection.d.ts.map +1 -1
  13. package/dist/apis/element-selection.js +155 -6
  14. package/dist/apis/element-selection.js.map +1 -1
  15. package/dist/apis/feature-system.d.ts +11 -0
  16. package/dist/apis/feature-system.d.ts.map +1 -0
  17. package/dist/apis/feature-system.js +9 -0
  18. package/dist/apis/feature-system.js.map +1 -0
  19. package/dist/apis/index.d.ts +1 -2
  20. package/dist/apis/index.d.ts.map +1 -1
  21. package/dist/apis/index.js +1 -24
  22. package/dist/apis/index.js.map +1 -1
  23. package/dist/apis/input-system.d.ts +1 -1
  24. package/dist/apis/input-system.d.ts.map +1 -1
  25. package/dist/apis/props.d.ts +18 -2
  26. package/dist/apis/props.d.ts.map +1 -1
  27. package/dist/apis/props.js +28 -9
  28. package/dist/apis/props.js.map +1 -1
  29. package/dist/apis/render.d.ts +39 -2
  30. package/dist/apis/render.d.ts.map +1 -1
  31. package/dist/apis/render.js +35 -2
  32. package/dist/apis/render.js.map +1 -1
  33. package/dist/apis/scene-bounds.d.ts +4 -0
  34. package/dist/apis/scene-bounds.d.ts.map +1 -0
  35. package/dist/apis/scene-bounds.js +112 -0
  36. package/dist/apis/scene-bounds.js.map +1 -0
  37. package/dist/apis/scene-tree.d.ts +24 -2
  38. package/dist/apis/scene-tree.d.ts.map +1 -1
  39. package/dist/apis/scene-tree.js +116 -25
  40. package/dist/apis/scene-tree.js.map +1 -1
  41. package/dist/apis/system-properties.d.ts +18 -0
  42. package/dist/apis/system-properties.d.ts.map +1 -0
  43. package/dist/apis/system-properties.js +21 -0
  44. package/dist/apis/system-properties.js.map +1 -0
  45. package/dist/apis/ui-context.d.ts +10 -0
  46. package/dist/apis/ui-context.d.ts.map +1 -0
  47. package/dist/apis/ui-context.js +22 -0
  48. package/dist/apis/ui-context.js.map +1 -0
  49. package/dist/canvas-pipeline-debugger/debugger.d.ts +29 -0
  50. package/dist/canvas-pipeline-debugger/debugger.d.ts.map +1 -0
  51. package/dist/canvas-pipeline-debugger/debugger.js +251 -0
  52. package/dist/canvas-pipeline-debugger/debugger.js.map +1 -0
  53. package/dist/canvas-pipeline-debugger/index.d.ts +2 -0
  54. package/dist/canvas-pipeline-debugger/index.d.ts.map +1 -0
  55. package/dist/canvas-pipeline-debugger/index.js +2 -0
  56. package/dist/canvas-pipeline-debugger/index.js.map +1 -0
  57. package/dist/core.d.ts +196 -40
  58. package/dist/core.d.ts.map +1 -1
  59. package/dist/core.js +1055 -38
  60. package/dist/core.js.map +1 -1
  61. package/dist/data-channel-observer.d.ts +35 -0
  62. package/dist/data-channel-observer.d.ts.map +1 -0
  63. package/dist/data-channel-observer.js +77 -0
  64. package/dist/data-channel-observer.js.map +1 -0
  65. package/dist/define-component.d.ts +102 -0
  66. package/dist/define-component.d.ts.map +1 -0
  67. package/dist/define-component.js +429 -0
  68. package/dist/define-component.js.map +1 -0
  69. package/dist/define-property-component.d.ts +29 -0
  70. package/dist/define-property-component.d.ts.map +1 -0
  71. package/dist/define-property-component.js +140 -0
  72. package/dist/define-property-component.js.map +1 -0
  73. package/dist/feature-integration.d.ts +16 -0
  74. package/dist/feature-integration.d.ts.map +1 -0
  75. package/dist/feature-integration.js +19 -0
  76. package/dist/feature-integration.js.map +1 -0
  77. package/dist/index.d.ts +43 -1
  78. package/dist/index.d.ts.map +1 -1
  79. package/dist/index.js +18 -1
  80. package/dist/index.js.map +1 -1
  81. package/dist/types/canonical-changes.d.ts +39 -0
  82. package/dist/types/canonical-changes.d.ts.map +1 -0
  83. package/dist/types/canonical-changes.js +2 -0
  84. package/dist/types/canonical-changes.js.map +1 -0
  85. package/dist/types/deps.d.ts +0 -2
  86. package/dist/types/deps.d.ts.map +1 -1
  87. package/dist/types/element-properties.d.ts +24 -0
  88. package/dist/types/element-properties.d.ts.map +1 -0
  89. package/dist/types/element-properties.js +2 -0
  90. package/dist/types/element-properties.js.map +1 -0
  91. package/dist/types/element-selection.d.ts +5 -1
  92. package/dist/types/element-selection.d.ts.map +1 -1
  93. package/dist/types/feature-system.d.ts +5 -0
  94. package/dist/types/feature-system.d.ts.map +1 -0
  95. package/dist/types/feature-system.js +2 -0
  96. package/dist/types/feature-system.js.map +1 -0
  97. package/dist/types/index.d.ts +18 -14
  98. package/dist/types/index.d.ts.map +1 -1
  99. package/dist/types/index.js +1 -1
  100. package/dist/types/index.js.map +1 -1
  101. package/dist/types/load-migration.d.ts +12 -0
  102. package/dist/types/load-migration.d.ts.map +1 -0
  103. package/dist/types/load-migration.js +16 -0
  104. package/dist/types/load-migration.js.map +1 -0
  105. package/dist/types/load-validation.d.ts +12 -0
  106. package/dist/types/load-validation.d.ts.map +1 -0
  107. package/dist/types/load-validation.js +2 -0
  108. package/dist/types/load-validation.js.map +1 -0
  109. package/dist/types/props.d.ts +8 -1
  110. package/dist/types/props.d.ts.map +1 -1
  111. package/dist/types/render.d.ts +20 -1
  112. package/dist/types/render.d.ts.map +1 -1
  113. package/dist/types/scene-tree.d.ts +21 -9
  114. package/dist/types/scene-tree.d.ts.map +1 -1
  115. package/dist/types/system-properties.d.ts +19 -0
  116. package/dist/types/system-properties.d.ts.map +1 -0
  117. package/dist/types/system-properties.js +2 -0
  118. package/dist/types/system-properties.js.map +1 -0
  119. package/dist/types/ui-context.d.ts +11 -0
  120. package/dist/types/ui-context.d.ts.map +1 -0
  121. package/dist/types/ui-context.js +2 -0
  122. package/dist/types/ui-context.js.map +1 -0
  123. package/dist/types/vector.d.ts +131 -0
  124. package/dist/types/vector.d.ts.map +1 -0
  125. package/dist/types/vector.js +83 -0
  126. package/dist/types/vector.js.map +1 -0
  127. package/package.json +39 -12
  128. package/.turbo/turbo-test$colon$ci.log +0 -132
  129. package/.turbo/turbo-test$colon$local.log +0 -21
  130. package/.turbo/turbo-test.log +0 -0
  131. package/CHANGELOG.md +0 -86
  132. package/coverage/base.css +0 -224
  133. package/coverage/block-navigation.js +0 -87
  134. package/coverage/clover.xml +0 -991
  135. package/coverage/coverage-final.json +0 -14952
  136. package/coverage/favicon.png +0 -0
  137. package/coverage/index.html +0 -236
  138. package/coverage/prettify.css +0 -1
  139. package/coverage/prettify.js +0 -2
  140. package/coverage/sort-arrow-sprite.png +0 -0
  141. package/coverage/sorter.js +0 -196
  142. package/coverage/src/apis/element-selection.ts.html +0 -133
  143. package/coverage/src/apis/index.html +0 -266
  144. package/coverage/src/apis/index.ts.html +0 -175
  145. package/coverage/src/apis/input-system.ts.html +0 -121
  146. package/coverage/src/apis/interaction-core.ts.html +0 -190
  147. package/coverage/src/apis/props.ts.html +0 -124
  148. package/coverage/src/apis/render.ts.html +0 -130
  149. package/coverage/src/apis/scene-tree.ts.html +0 -292
  150. package/coverage/src/apis/system-context.ts.html +0 -154
  151. package/coverage/src/apis/transaction.ts.html +0 -124
  152. package/coverage/src/apis/undo.ts.html +0 -124
  153. package/coverage/src/apis/viewport.ts.html +0 -193
  154. package/coverage/src/combinations.ts.html +0 -223
  155. package/coverage/src/core.ts.html +0 -559
  156. package/coverage/src/index.html +0 -146
  157. package/coverage/src/index.ts.html +0 -97
  158. package/coverage/src/requests/factory.ts.html +0 -127
  159. package/coverage/src/requests/index.html +0 -206
  160. package/coverage/src/requests/index.ts.html +0 -154
  161. package/coverage/src/requests/props.ts.html +0 -133
  162. package/coverage/src/requests/render.ts.html +0 -187
  163. package/coverage/src/requests/scene-tree.ts.html +0 -163
  164. package/coverage/src/requests/selection.ts.html +0 -127
  165. package/coverage/src/requests/system-context.ts.html +0 -130
  166. package/coverage/src/subscribes/index.html +0 -116
  167. package/coverage/src/subscribes/index.ts.html +0 -109
  168. package/coverage/src/subscribes/input-system/index.html +0 -176
  169. package/coverage/src/subscribes/input-system/index.ts.html +0 -226
  170. package/coverage/src/subscribes/input-system/primary-tool.ts.html +0 -160
  171. package/coverage/src/subscribes/input-system/render.ts.html +0 -484
  172. package/coverage/src/subscribes/input-system/undo.ts.html +0 -172
  173. package/coverage/src/subscribes/input-system/viewport.ts.html +0 -259
  174. package/coverage/src/subscribes/interaction-core/create-element.ts.html +0 -151
  175. package/coverage/src/subscribes/interaction-core/index.html +0 -236
  176. package/coverage/src/subscribes/interaction-core/index.ts.html +0 -289
  177. package/coverage/src/subscribes/interaction-core/primary-tool.ts.html +0 -109
  178. package/coverage/src/subscribes/interaction-core/reset-element-size.ts.html +0 -127
  179. package/coverage/src/subscribes/interaction-core/resize-element.ts.html +0 -181
  180. package/coverage/src/subscribes/interaction-core/select-elements.ts.html +0 -109
  181. package/coverage/src/subscribes/interaction-core/transaction.ts.html +0 -130
  182. package/coverage/src/subscribes/interaction-core/undoredo.ts.html +0 -133
  183. package/coverage/src/subscribes/interaction-core/viewport.ts.html +0 -193
  184. package/coverage/src/types/deps.ts.html +0 -118
  185. package/coverage/src/types/element-selection.ts.html +0 -100
  186. package/coverage/src/types/index.html +0 -266
  187. package/coverage/src/types/index.ts.html +0 -385
  188. package/coverage/src/types/input-system.ts.html +0 -100
  189. package/coverage/src/types/interaction-core.ts.html +0 -127
  190. package/coverage/src/types/props.ts.html +0 -109
  191. package/coverage/src/types/render.ts.html +0 -106
  192. package/coverage/src/types/requests/factory.ts.html +0 -127
  193. package/coverage/src/types/requests/index.html +0 -206
  194. package/coverage/src/types/requests/index.ts.html +0 -214
  195. package/coverage/src/types/requests/props.ts.html +0 -133
  196. package/coverage/src/types/requests/render.ts.html +0 -139
  197. package/coverage/src/types/requests/scene-tree.ts.html +0 -133
  198. package/coverage/src/types/requests/selection.ts.html +0 -127
  199. package/coverage/src/types/requests/system-context.ts.html +0 -142
  200. package/coverage/src/types/scene-tree.ts.html +0 -178
  201. package/coverage/src/types/system-context/index.html +0 -161
  202. package/coverage/src/types/system-context/index.ts.html +0 -112
  203. package/coverage/src/types/system-context/key-state.ts.html +0 -106
  204. package/coverage/src/types/system-context/mouse-state.ts.html +0 -106
  205. package/coverage/src/types/system-context/primary-tool.ts.html +0 -112
  206. package/coverage/src/types/transaction.ts.html +0 -103
  207. package/coverage/src/types/undo.ts.html +0 -103
  208. package/coverage/src/types/viewport.ts.html +0 -127
  209. package/dist/__tests__/core.test.d.ts +0 -2
  210. package/dist/__tests__/core.test.d.ts.map +0 -1
  211. package/dist/__tests__/core.test.js +0 -122
  212. package/dist/__tests__/core.test.js.map +0 -1
  213. package/dist/apis/interaction-core.d.ts +0 -3
  214. package/dist/apis/interaction-core.d.ts.map +0 -1
  215. package/dist/apis/interaction-core.js +0 -22
  216. package/dist/apis/interaction-core.js.map +0 -1
  217. package/dist/apis/system-context.d.ts +0 -3
  218. package/dist/apis/system-context.d.ts.map +0 -1
  219. package/dist/apis/system-context.js +0 -16
  220. package/dist/apis/system-context.js.map +0 -1
  221. package/dist/apis/transaction.d.ts +0 -3
  222. package/dist/apis/transaction.d.ts.map +0 -1
  223. package/dist/apis/transaction.js +0 -12
  224. package/dist/apis/transaction.js.map +0 -1
  225. package/dist/apis/undo.d.ts +0 -3
  226. package/dist/apis/undo.d.ts.map +0 -1
  227. package/dist/apis/undo.js +0 -12
  228. package/dist/apis/undo.js.map +0 -1
  229. package/dist/apis/viewport.d.ts +0 -4
  230. package/dist/apis/viewport.d.ts.map +0 -1
  231. package/dist/apis/viewport.js +0 -27
  232. package/dist/apis/viewport.js.map +0 -1
  233. package/dist/combinations.d.ts +0 -4
  234. package/dist/combinations.d.ts.map +0 -1
  235. package/dist/combinations.js +0 -42
  236. package/dist/combinations.js.map +0 -1
  237. package/dist/requests/factory copy.d.ts +0 -7
  238. package/dist/requests/factory copy.d.ts.map +0 -1
  239. package/dist/requests/factory copy.js +0 -10
  240. package/dist/requests/factory copy.js.map +0 -1
  241. package/dist/requests/factory.d.ts +0 -7
  242. package/dist/requests/factory.d.ts.map +0 -1
  243. package/dist/requests/factory.js +0 -10
  244. package/dist/requests/factory.js.map +0 -1
  245. package/dist/requests/index.d.ts +0 -3
  246. package/dist/requests/index.d.ts.map +0 -1
  247. package/dist/requests/index.js +0 -21
  248. package/dist/requests/index.js.map +0 -1
  249. package/dist/requests/primary-tool.d.ts +0 -7
  250. package/dist/requests/primary-tool.d.ts.map +0 -1
  251. package/dist/requests/primary-tool.js +0 -13
  252. package/dist/requests/primary-tool.js.map +0 -1
  253. package/dist/requests/props copy.d.ts +0 -7
  254. package/dist/requests/props copy.d.ts.map +0 -1
  255. package/dist/requests/props copy.js +0 -13
  256. package/dist/requests/props copy.js.map +0 -1
  257. package/dist/requests/props.d.ts +0 -7
  258. package/dist/requests/props.d.ts.map +0 -1
  259. package/dist/requests/props.js +0 -13
  260. package/dist/requests/props.js.map +0 -1
  261. package/dist/requests/render.d.ts +0 -3
  262. package/dist/requests/render.d.ts.map +0 -1
  263. package/dist/requests/render.js +0 -22
  264. package/dist/requests/render.js.map +0 -1
  265. package/dist/requests/scene-tree.d.ts +0 -7
  266. package/dist/requests/scene-tree.d.ts.map +0 -1
  267. package/dist/requests/scene-tree.js +0 -17
  268. package/dist/requests/scene-tree.js.map +0 -1
  269. package/dist/requests/selection.d.ts +0 -7
  270. package/dist/requests/selection.d.ts.map +0 -1
  271. package/dist/requests/selection.js +0 -10
  272. package/dist/requests/selection.js.map +0 -1
  273. package/dist/requests/system-context copy.d.ts +0 -7
  274. package/dist/requests/system-context copy.d.ts.map +0 -1
  275. package/dist/requests/system-context copy.js +0 -19
  276. package/dist/requests/system-context copy.js.map +0 -1
  277. package/dist/requests/system-context.d.ts +0 -7
  278. package/dist/requests/system-context.d.ts.map +0 -1
  279. package/dist/requests/system-context.js +0 -10
  280. package/dist/requests/system-context.js.map +0 -1
  281. package/dist/requests/types.d.ts +0 -7
  282. package/dist/requests/types.d.ts.map +0 -1
  283. package/dist/requests/types.js +0 -4
  284. package/dist/requests/types.js.map +0 -1
  285. package/dist/requests/viewport.d.ts +0 -19
  286. package/dist/requests/viewport.d.ts.map +0 -1
  287. package/dist/requests/viewport.js +0 -6
  288. package/dist/requests/viewport.js.map +0 -1
  289. package/dist/subscribes/index.d.ts +0 -3
  290. package/dist/subscribes/index.d.ts.map +0 -1
  291. package/dist/subscribes/index.js +0 -7
  292. package/dist/subscribes/index.js.map +0 -1
  293. package/dist/subscribes/input-system/index.d.ts +0 -3
  294. package/dist/subscribes/input-system/index.d.ts.map +0 -1
  295. package/dist/subscribes/input-system/index.js +0 -26
  296. package/dist/subscribes/input-system/index.js.map +0 -1
  297. package/dist/subscribes/input-system/primary-tool.d.ts +0 -10
  298. package/dist/subscribes/input-system/primary-tool.d.ts.map +0 -1
  299. package/dist/subscribes/input-system/primary-tool.js +0 -15
  300. package/dist/subscribes/input-system/primary-tool.js.map +0 -1
  301. package/dist/subscribes/input-system/render.d.ts +0 -16
  302. package/dist/subscribes/input-system/render.d.ts.map +0 -1
  303. package/dist/subscribes/input-system/render.js +0 -97
  304. package/dist/subscribes/input-system/render.js.map +0 -1
  305. package/dist/subscribes/input-system/undo.d.ts +0 -10
  306. package/dist/subscribes/input-system/undo.d.ts.map +0 -1
  307. package/dist/subscribes/input-system/undo.js +0 -18
  308. package/dist/subscribes/input-system/undo.js.map +0 -1
  309. package/dist/subscribes/input-system/viewport.d.ts +0 -11
  310. package/dist/subscribes/input-system/viewport.d.ts.map +0 -1
  311. package/dist/subscribes/input-system/viewport.js +0 -36
  312. package/dist/subscribes/input-system/viewport.js.map +0 -1
  313. package/dist/subscribes/interaction-core/create-and-resize.d.ts +0 -5
  314. package/dist/subscribes/interaction-core/create-and-resize.d.ts.map +0 -1
  315. package/dist/subscribes/interaction-core/create-and-resize.js +0 -86
  316. package/dist/subscribes/interaction-core/create-and-resize.js.map +0 -1
  317. package/dist/subscribes/interaction-core/create-element copy.d.ts +0 -3
  318. package/dist/subscribes/interaction-core/create-element copy.d.ts.map +0 -1
  319. package/dist/subscribes/interaction-core/create-element copy.js +0 -17
  320. package/dist/subscribes/interaction-core/create-element copy.js.map +0 -1
  321. package/dist/subscribes/interaction-core/create-element.d.ts +0 -3
  322. package/dist/subscribes/interaction-core/create-element.d.ts.map +0 -1
  323. package/dist/subscribes/interaction-core/create-element.js +0 -17
  324. package/dist/subscribes/interaction-core/create-element.js.map +0 -1
  325. package/dist/subscribes/interaction-core/index.d.ts +0 -3
  326. package/dist/subscribes/interaction-core/index.d.ts.map +0 -1
  327. package/dist/subscribes/interaction-core/index.js +0 -42
  328. package/dist/subscribes/interaction-core/index.js.map +0 -1
  329. package/dist/subscribes/interaction-core/input-to-decision.d.ts +0 -5
  330. package/dist/subscribes/interaction-core/input-to-decision.d.ts.map +0 -1
  331. package/dist/subscribes/interaction-core/input-to-decision.js +0 -48
  332. package/dist/subscribes/interaction-core/input-to-decision.js.map +0 -1
  333. package/dist/subscribes/interaction-core/primary-tool.d.ts +0 -3
  334. package/dist/subscribes/interaction-core/primary-tool.d.ts.map +0 -1
  335. package/dist/subscribes/interaction-core/primary-tool.js +0 -7
  336. package/dist/subscribes/interaction-core/primary-tool.js.map +0 -1
  337. package/dist/subscribes/interaction-core/reset-element-size.d.ts +0 -5
  338. package/dist/subscribes/interaction-core/reset-element-size.d.ts.map +0 -1
  339. package/dist/subscribes/interaction-core/reset-element-size.js +0 -9
  340. package/dist/subscribes/interaction-core/reset-element-size.js.map +0 -1
  341. package/dist/subscribes/interaction-core/resize-element.d.ts +0 -3
  342. package/dist/subscribes/interaction-core/resize-element.d.ts.map +0 -1
  343. package/dist/subscribes/interaction-core/resize-element.js +0 -24
  344. package/dist/subscribes/interaction-core/resize-element.js.map +0 -1
  345. package/dist/subscribes/interaction-core/select-elements.d.ts +0 -3
  346. package/dist/subscribes/interaction-core/select-elements.d.ts.map +0 -1
  347. package/dist/subscribes/interaction-core/select-elements.js +0 -7
  348. package/dist/subscribes/interaction-core/select-elements.js.map +0 -1
  349. package/dist/subscribes/interaction-core/transaction.d.ts +0 -3
  350. package/dist/subscribes/interaction-core/transaction.d.ts.map +0 -1
  351. package/dist/subscribes/interaction-core/transaction.js +0 -10
  352. package/dist/subscribes/interaction-core/transaction.js.map +0 -1
  353. package/dist/subscribes/interaction-core/undoredo.d.ts +0 -3
  354. package/dist/subscribes/interaction-core/undoredo.d.ts.map +0 -1
  355. package/dist/subscribes/interaction-core/undoredo.js +0 -15
  356. package/dist/subscribes/interaction-core/undoredo.js.map +0 -1
  357. package/dist/subscribes/interaction-core/viewport.d.ts +0 -3
  358. package/dist/subscribes/interaction-core/viewport.d.ts.map +0 -1
  359. package/dist/subscribes/interaction-core/viewport.js +0 -29
  360. package/dist/subscribes/interaction-core/viewport.js.map +0 -1
  361. package/dist/subscribes/render.d.ts +0 -6
  362. package/dist/subscribes/render.d.ts.map +0 -1
  363. package/dist/subscribes/render.js +0 -28
  364. package/dist/subscribes/render.js.map +0 -1
  365. package/dist/types/interaction-core.d.ts +0 -11
  366. package/dist/types/interaction-core.d.ts.map +0 -1
  367. package/dist/types/interaction-core.js +0 -2
  368. package/dist/types/interaction-core.js.map +0 -1
  369. package/dist/types/requests/factory copy.d.ts +0 -12
  370. package/dist/types/requests/factory copy.d.ts.map +0 -1
  371. package/dist/types/requests/factory copy.js +0 -2
  372. package/dist/types/requests/factory copy.js.map +0 -1
  373. package/dist/types/requests/factory.d.ts +0 -12
  374. package/dist/types/requests/factory.d.ts.map +0 -1
  375. package/dist/types/requests/factory.js +0 -2
  376. package/dist/types/requests/factory.js.map +0 -1
  377. package/dist/types/requests/index.d.ts +0 -17
  378. package/dist/types/requests/index.d.ts.map +0 -1
  379. package/dist/types/requests/index.js +0 -4
  380. package/dist/types/requests/index.js.map +0 -1
  381. package/dist/types/requests/primary-tool.d.ts +0 -13
  382. package/dist/types/requests/primary-tool.d.ts.map +0 -1
  383. package/dist/types/requests/primary-tool.js +0 -2
  384. package/dist/types/requests/primary-tool.js.map +0 -1
  385. package/dist/types/requests/props copy.d.ts +0 -14
  386. package/dist/types/requests/props copy.d.ts.map +0 -1
  387. package/dist/types/requests/props copy.js +0 -2
  388. package/dist/types/requests/props copy.js.map +0 -1
  389. package/dist/types/requests/props.d.ts +0 -14
  390. package/dist/types/requests/props.d.ts.map +0 -1
  391. package/dist/types/requests/props.js +0 -2
  392. package/dist/types/requests/props.js.map +0 -1
  393. package/dist/types/requests/render.d.ts +0 -15
  394. package/dist/types/requests/render.d.ts.map +0 -1
  395. package/dist/types/requests/render.js +0 -2
  396. package/dist/types/requests/render.js.map +0 -1
  397. package/dist/types/requests/scene-tree.d.ts +0 -14
  398. package/dist/types/requests/scene-tree.d.ts.map +0 -1
  399. package/dist/types/requests/scene-tree.js +0 -2
  400. package/dist/types/requests/scene-tree.js.map +0 -1
  401. package/dist/types/requests/selection.d.ts +0 -12
  402. package/dist/types/requests/selection.d.ts.map +0 -1
  403. package/dist/types/requests/selection.js +0 -2
  404. package/dist/types/requests/selection.js.map +0 -1
  405. package/dist/types/requests/system-context.d.ts +0 -17
  406. package/dist/types/requests/system-context.d.ts.map +0 -1
  407. package/dist/types/requests/system-context.js +0 -2
  408. package/dist/types/requests/system-context.js.map +0 -1
  409. package/dist/types/requests/system.d.ts +0 -13
  410. package/dist/types/requests/system.d.ts.map +0 -1
  411. package/dist/types/requests/system.js +0 -2
  412. package/dist/types/requests/system.js.map +0 -1
  413. package/dist/types/requests/viewport.d.ts +0 -20
  414. package/dist/types/requests/viewport.d.ts.map +0 -1
  415. package/dist/types/requests/viewport.js +0 -6
  416. package/dist/types/requests/viewport.js.map +0 -1
  417. package/dist/types/requests.d.ts +0 -8
  418. package/dist/types/requests.d.ts.map +0 -1
  419. package/dist/types/requests.js +0 -2
  420. package/dist/types/requests.js.map +0 -1
  421. package/dist/types/system-context/index.d.ts +0 -8
  422. package/dist/types/system-context/index.d.ts.map +0 -1
  423. package/dist/types/system-context/index.js +0 -4
  424. package/dist/types/system-context/index.js.map +0 -1
  425. package/dist/types/system-context/key-state.d.ts +0 -6
  426. package/dist/types/system-context/key-state.d.ts.map +0 -1
  427. package/dist/types/system-context/key-state.js +0 -2
  428. package/dist/types/system-context/key-state.js.map +0 -1
  429. package/dist/types/system-context/mouse-state.d.ts +0 -6
  430. package/dist/types/system-context/mouse-state.d.ts.map +0 -1
  431. package/dist/types/system-context/mouse-state.js +0 -2
  432. package/dist/types/system-context/mouse-state.js.map +0 -1
  433. package/dist/types/system-context/primary-tool.d.ts +0 -8
  434. package/dist/types/system-context/primary-tool.d.ts.map +0 -1
  435. package/dist/types/system-context/primary-tool.js +0 -2
  436. package/dist/types/system-context/primary-tool.js.map +0 -1
  437. package/dist/types/transaction.d.ts +0 -6
  438. package/dist/types/transaction.d.ts.map +0 -1
  439. package/dist/types/transaction.js +0 -2
  440. package/dist/types/transaction.js.map +0 -1
  441. package/dist/types/undo.d.ts +0 -6
  442. package/dist/types/undo.d.ts.map +0 -1
  443. package/dist/types/undo.js +0 -2
  444. package/dist/types/undo.js.map +0 -1
  445. package/dist/types/viewport.d.ts +0 -12
  446. package/dist/types/viewport.d.ts.map +0 -1
  447. package/dist/types/viewport.js +0 -2
  448. package/dist/types/viewport.js.map +0 -1
  449. package/src/__tests__/core.test.ts +0 -153
  450. package/src/apis/element-selection.ts +0 -16
  451. package/src/apis/index.ts +0 -30
  452. package/src/apis/input-system.ts +0 -12
  453. package/src/apis/interaction-core.ts +0 -35
  454. package/src/apis/props.ts +0 -13
  455. package/src/apis/render.ts +0 -15
  456. package/src/apis/scene-tree.ts +0 -69
  457. package/src/apis/system-context.ts +0 -23
  458. package/src/apis/transaction.ts +0 -13
  459. package/src/apis/undo.ts +0 -13
  460. package/src/apis/viewport.ts +0 -36
  461. package/src/combinations.ts +0 -46
  462. package/src/core.ts +0 -158
  463. package/src/index.ts +0 -4
  464. package/src/requests/factory.ts +0 -14
  465. package/src/requests/index.ts +0 -23
  466. package/src/requests/props.ts +0 -16
  467. package/src/requests/render.ts +0 -34
  468. package/src/requests/scene-tree.ts +0 -26
  469. package/src/requests/selection.ts +0 -14
  470. package/src/requests/system-context.ts +0 -15
  471. package/src/subscribes/index.ts +0 -8
  472. package/src/subscribes/input-system/index.ts +0 -47
  473. package/src/subscribes/input-system/primary-tool.ts +0 -25
  474. package/src/subscribes/input-system/render.ts +0 -133
  475. package/src/subscribes/input-system/undo.ts +0 -29
  476. package/src/subscribes/input-system/viewport.ts +0 -58
  477. package/src/subscribes/interaction-core/create-element.ts +0 -22
  478. package/src/subscribes/interaction-core/index.ts +0 -68
  479. package/src/subscribes/interaction-core/primary-tool.ts +0 -8
  480. package/src/subscribes/interaction-core/reset-element-size.ts +0 -12
  481. package/src/subscribes/interaction-core/resize-element.ts +0 -31
  482. package/src/subscribes/interaction-core/select-elements.ts +0 -8
  483. package/src/subscribes/interaction-core/transaction.ts +0 -15
  484. package/src/subscribes/interaction-core/undoredo.ts +0 -16
  485. package/src/subscribes/interaction-core/viewport.ts +0 -35
  486. package/src/types/deps.ts +0 -11
  487. package/src/types/element-selection.ts +0 -5
  488. package/src/types/index.ts +0 -100
  489. package/src/types/input-system.ts +0 -5
  490. package/src/types/interaction-core.ts +0 -14
  491. package/src/types/props.ts +0 -8
  492. package/src/types/render.ts +0 -7
  493. package/src/types/requests/factory.ts +0 -14
  494. package/src/types/requests/index.ts +0 -43
  495. package/src/types/requests/props.ts +0 -16
  496. package/src/types/requests/render.ts +0 -18
  497. package/src/types/requests/scene-tree.ts +0 -16
  498. package/src/types/requests/selection.ts +0 -14
  499. package/src/types/requests/system-context.ts +0 -19
  500. package/src/types/scene-tree.ts +0 -31
  501. package/src/types/system-context/index.ts +0 -9
  502. package/src/types/system-context/key-state.ts +0 -7
  503. package/src/types/system-context/mouse-state.ts +0 -7
  504. package/src/types/system-context/primary-tool.ts +0 -9
  505. package/src/types/transaction.ts +0 -6
  506. package/src/types/undo.ts +0 -6
  507. package/src/types/viewport.ts +0 -14
  508. package/test-setup.ts +0 -6
  509. package/tsconfig.json +0 -22
  510. package/vitest.config.ts +0 -8
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-integration.d.ts","sourceRoot":"","sources":["../src/feature-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAEnB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAI9D;AAED;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { getSessionManager, getFeatureRegistry, setCorePackages } from '@asyra/feature-system';
2
+ /**
3
+ * Integrate feature-system with core
4
+ * Connects session manager to input-system events
5
+ */
6
+ export function initFeatureSystem(coreDeps) {
7
+ // Set core packages for feature system to use
8
+ // This will trigger registration of all pending features
9
+ setCorePackages(coreDeps);
10
+ }
11
+ /**
12
+ * Get feature registry instance
13
+ */
14
+ export { getFeatureRegistry };
15
+ /**
16
+ * Get session manager instance
17
+ */
18
+ export { getSessionManager };
19
+ //# sourceMappingURL=feature-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-integration.js","sourceRoot":"","sources":["../src/feature-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EAChB,MAAM,uBAAuB,CAAA;AAG9B;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,QAAsB;IACtD,8CAA8C;IAC9C,yDAAyD;IACzD,eAAe,CAAC,QAAQ,CAAC,CAAA;AAC3B,CAAC;AAED;;GAEG;AACH,OAAO,EAAE,kBAAkB,EAAE,CAAA;AAE7B;;GAEG;AACH,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,46 @@
1
- import core, { Core } from './core';
1
+ import core, { Core } from './core.js';
2
+ import uiContext, { UIContext, propertyRegistry } from '@asyra/ui-context';
3
+ export { initFeatureSystem, getFeatureRegistry, getSessionManager } from './feature-integration.js';
4
+ export { defineComponent, defineComponentPropertyRelation, getComponentPropertyRelations, removeComponentPropertyRelation, unregisterComponent } from './define-component.js';
5
+ export type { ComponentPropertyRelationMetadata, ComponentDefinition, UnregisterComponentOptions, UnregisterComponentResult, UnregisterComponentSkippedEntry } from './define-component.js';
6
+ export { definePropertyChildRelation, definePropertyComponent, getPropertyChildRelations, removePropertyChildRelation, unregisterPropertyComponent } from './define-property-component.js';
7
+ export type { PropertyChildRelationMetadata, PropertyComponentDefinition } from './define-property-component.js';
8
+ export { defineFeature, FeatureUnregisterError, getFeature, unregisterFeature } from '@asyra/feature-system';
9
+ export { registerPropertySchema, getPropertySchema, registerPropertyComponent, getPropertyComponent, unregisterPropertySchema, unregisterPropertyRegistration, PROPERTY_REGISTRATION_ERROR_CODES, PropertyRegistrationError, PROPERTY_TYPE_DEFINITION_ERROR_CODES, PropertyTypeDefinitionError, elementPropertyRegistry, propertySchemaRegistry, propertyComponentRegistry, BasePropertyComponent, getPropertyComponentAccessor } from '@asyra/props-manager';
10
+ export type { PropertyComponentConstructor, PropertyComponentAccessor, PropertyChildRelationDefinition, PropertyRegistrationErrorCode, PropertyRegistrationInUseFailure, PropertyRegistrationScope, PropertyRegistrationUnregisterMissing, PropertyRegistrationUnregisterResult, PropertyRegistrationUnregisterSuccess, PropertyTypeDefinition, PropertyTypeDefinitionErrorCode, PropertyTypeDefinitionFailure, PropertyTypeFieldDefinition } from '@asyra/props-manager';
11
+ export { REGISTRATION_CONTRACT_ERROR_CODES, RegistrationGraph, RegistrationRelationError } from '@asyra/utils';
12
+ export type { RegistrationContractErrorCode, RegistrationDefinitionMetadata, RegistrationNodeMetadata, RegistrationOwnerMetadata, RegistrationRef, RegistrationRelationDeclaration, RegistrationRelationMetadata, RelationOperationSuccess, UnregisterRegistrationSuccess } from '@asyra/utils';
13
+ export { BaseSelection } from '@asyra/selection';
14
+ export type { SelectionDefinition } from '@asyra/selection';
15
+ export { componentRegistry } from '@asyra/scene-tree';
16
+ export type { FeatureDefinition, FeatureAPI, FeatureKeyMap, SessionHandler } from '@asyra/feature-system';
17
+ export { keyMap } from '@asyra/input-system';
18
+ export { renderStrategyRegistry, createOverlayLayerRegistration, sampleOverlayBezierPoints, createRenderInteractionPointTarget, createRenderInteractionCircleTarget, createRenderInteractionSegmentTarget, createRenderInteractionPolylineTarget, createRenderGradientFillStyle, createEvenOddFillStyle, isPointInsidePreparedEvenOddShape, prepareEvenOddShape, createMeshProjection, renderSceneTreeStore, renderSelectionStore, type OverlayCanvas, type OverlayStrokeStyle, type CreateOverlayLayerOptions, type CreateRenderGradientFillOptions, type RenderGradientColorStop, type RenderGradientPoint, type RenderFillStyle, type RenderInteractionTarget, type RenderInteractionTargetBounds, type RenderInteractionTargetSpace, type RenderInteractionHandlerRegistration, type RenderInteractionEventType, type RenderInteractionEvent, type EvenOddSegment, type EvenOddPath, type EvenOddShape, type PreparedEvenOddSegment, type PreparedEvenOddShape, type EvenOddFillOptions, type EvenOddFillResult, type GeometryPoint, type GeometryModel, type MeshProjectionPaint, type CreateMeshProjectionOptions, type MeshProjection } from '@asyra/render';
19
+ export type { EngineNeutralRenderStrategy, RenderStrategy, RenderStrategyGraphic } from '@asyra/render';
20
+ export { createLocalSharedDataChannel, registerSharedDataChannel, unregisterSharedDataChannel, hasSharedDataChannel } from '@asyra/factory';
21
+ export { EventTypes, defineEvent, registerEventDefinitions, startTransaction, updateTransaction, endTransaction, rollbackTransaction, runTransaction, subscribeToSynchronousEvent, subscribeToFileLoadComplete, subscribeToEndTransaction, subscribeToTransactionStatusChanged, subscribeToSelectElements, subscribeToSelectVectorPoints, subscribeToSelectVectorSegments } from '@asyra/reactive-events';
22
+ export type { EventDefinition, SelectElementsEvent, SelectVectorPointsEvent, SelectVectorSegmentsEvent } from '@asyra/reactive-events';
23
+ export type { EndTransactionOptions, RunTransactionOptions, TransactionFailure, TransactionFailureKind, TransactionOrigin, TransactionOutcome, TransactionStatus, TransactionStatusPayload } from '@asyra/utils';
24
+ export { defineDataChannelObserver, registerDataChannelObserver, unregisterDataChannelObserver } from './data-channel-observer.js';
25
+ export type { DataChannelObserverRegistration } from './data-channel-observer.js';
26
+ export { uiContext, UIContext, propertyRegistry };
27
+ export { VECTOR_TOKENS, VECTOR_HANDLE_MODES, VECTOR_ANCHOR_ID_PREFIX, VECTOR_ANCHOR_ID_TYPE, VECTOR_TOPOLOGY_NETWORK_ID_TYPE, VECTOR_TOPOLOGY_SEGMENT_ID_TYPE, VECTOR_TOPOLOGY_POINT_ID_TYPE, isVectorAnchorNode, isVectorControlNode, isVectorHandleMode, getVectorControlId, getVectorPointTargetPosition, sortVectorItemsById, getVectorNetworkAnchorHandleRefs } from './types/vector.js';
28
+ export type { VectorAnchorPoint, VectorAnchorPointNode, VectorAnchorHandleRefs, VectorAnchorType, VectorPathStyle, VectorHandleMode, VectorPointNode, VectorControlPointNode, VectorPointTarget, VectorEndpointSide, VectorControlRole, VectorSegment, VectorNetwork, VectorTopology, VectorSelectionRef, VectorEditingContinuation, SelectedVectorPointState, SelectedVectorSegmentState, HoveredVectorSegmentInsertPointState } from './types/vector.js';
29
+ export type { RenderLayerRegistration, RegisterRenderLayerOptions, RegisterRenderLayer } from './types/render.js';
30
+ export type { LoadDiagnosticsHook, LoadValidationDiagnostic, LoadValidationScope } from './types/load-validation.js';
31
+ export { LOAD_HOOK_EXECUTION_ERROR_CODES, LoadHookExecutionError } from './types/load-migration.js';
32
+ export type { LoadHookExecutionErrorCode } from './types/load-migration.js';
33
+ export type { ElementPropertyAPIs, ElementPropertyPatchUpdate, ElementPropertyRecordFields, ElementPropertyRecordPatch, ElementPropertyValuesUpdate } from './types/element-properties.js';
34
+ export type { CanonicalChange, CanonicalChangeAPIs } from './types/canonical-changes.js';
35
+ export type { PropertyComponentValuesUpdate } from './types/props.js';
36
+ type CoreBasicApiKeys = 'setRenderer' | 'destroyRenderer' | 'setRenderEngineProvider' | 'hasRenderEngineProvider' | 'isCompositionOpen' | 'setLoadSource' | 'setPersistence' | 'registerSaveHook' | 'registerLoadHook' | 'registerLoadDiagnosticsHook' | 'start' | 'load' | 'save' | 'getPresetDependencies';
37
+ type CoreExtensionApiKeys = 'setupInputSystem' | 'applyCanonicalChanges' | 'updateElementProperties' | 'patchElementProperties' | 'updatePropertyComponents' | 'initRender' | 'renderIsReady' | 'registerRenderLayer' | 'unregisterRenderLayer' | 'createRenderGradientFillStyle' | 'createEvenOddFillStyle' | 'createMeshProjection' | 'registerRenderInteractionTargets' | 'updateRenderInteractionTarget' | 'unregisterRenderInteractionTarget' | 'clearRenderInteractionTargets' | 'registerRenderInteractionHandler' | 'unregisterRenderInteractionHandler' | 'sceneTreeInit' | 'sceneTreeLoadData' | 'sceneTreeSaveData' | 'createElement' | 'createElementInParent' | 'createElementsInParent' | 'createElementsInParentFromCanonicalData' | 'removeElementsFromCanonicalData' | 'getElementComputedData' | 'moveElements' | 'applyHierarchyMoves' | 'applyElementDataChanges' | 'removeSubtree' | 'removeSubtreeFromCanonicalData' | 'updateLocalComputedData' | 'patchLocalComputedData' | 'projectLocalComputedDataFromPropertyIds' | 'getAllElementsBounds' | 'isContainerType' | 'selectByChannel' | 'selectElements' | 'selectVectorPoints' | 'selectVectorSegments' | 'initFeatureSystem' | 'defineUIProperty' | 'registerUIProperty' | 'getUIProperty' | 'setUIProperty' | 'getUIPropertySubject' | 'onUIPropertyChange' | 'defineSystemProperty' | 'registerSystemProperty' | 'getSystemProperty' | 'setSystemProperty' | 'getSystemPropertyObservable' | 'hasSystemProperty' | 'unregisterSystemProperty' | 'registerEvent' | 'unregisterEvent' | 'subscribeEvent' | 'registerPropertySchema' | 'getPropertySchema' | 'getPropertyTypeDefinition' | 'redefinePropertyType' | 'definePropertyComponent' | 'registerPropertyComponent' | 'getPropertyComponent' | 'unregisterPropertyRegistration' | 'definePropertyChildRelation' | 'removePropertyChildRelation' | 'getPropertyChildRelations' | 'unregisterPropertyType' | 'defineComponent' | 'unregisterComponent' | 'defineComponentPropertyRelation' | 'removeComponentPropertyRelation' | 'getComponentPropertyRelations' | 'defineFeature' | 'getFeature' | 'unregisterFeature' | 'registerRenderStrategy' | 'unregisterRenderStrategy' | 'unregisterUIProperty' | 'getRegistration' | 'getRegistrations' | 'getRegistrationRelations' | 'defineSelection' | 'registerSelection' | 'unregisterSelection' | 'getSelection' | 'registerDataChannelObserver' | 'unregisterDataChannelObserver' | 'registerSharedDataChannel' | 'unregisterSharedDataChannel' | 'hasSharedDataChannel' | 'createLocalSharedDataChannel';
38
+ type CorePresetInstallApiKeys = 'setRenderEngineProvider' | 'hasRenderEngineProvider' | 'isCompositionOpen' | 'registerEvent' | 'unregisterEvent' | 'registerRenderLayer' | 'unregisterRenderLayer' | 'createRenderGradientFillStyle' | 'registerDataChannelObserver' | 'unregisterDataChannelObserver' | 'registerSharedDataChannel' | 'unregisterSharedDataChannel' | 'hasSharedDataChannel' | 'createLocalSharedDataChannel' | 'registerPropertySchema' | 'getPropertyTypeDefinition' | 'redefinePropertyType' | 'definePropertyComponent' | 'unregisterPropertyRegistration' | 'definePropertyChildRelation' | 'removePropertyChildRelation' | 'getPropertyChildRelations' | 'unregisterPropertyType' | 'defineComponent' | 'unregisterComponent' | 'defineComponentPropertyRelation' | 'removeComponentPropertyRelation' | 'getComponentPropertyRelations' | 'defineFeature' | 'getFeature' | 'unregisterFeature' | 'registerRenderStrategy' | 'unregisterRenderStrategy' | 'unregisterUIProperty' | 'getRegistration' | 'getRegistrations' | 'getRegistrationRelations' | 'defineSelection' | 'unregisterSelection' | 'getSelection' | 'defineUIProperty' | 'defineSystemProperty' | 'hasSystemProperty' | 'unregisterSystemProperty' | 'getSystemPropertyObservable' | 'getPresetDependencies';
39
+ export type CoreBasicAPIs = Pick<Core, CoreBasicApiKeys>;
40
+ export type CoreExtensionAPIs = Pick<Core, CoreExtensionApiKeys>;
41
+ export type CoreConcreteAPIs = CoreBasicAPIs & CoreExtensionAPIs;
42
+ export type CorePresetInstallAPIs = Pick<CoreConcreteAPIs, CorePresetInstallApiKeys>;
43
+ export type CorePresetDependencies = ReturnType<CorePresetInstallAPIs['getPresetDependencies']>;
2
44
  export { Core };
3
45
  export default core;
4
46
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAA;AACf,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,SAAS,EAAE,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAC1E,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,mBAAmB,EACpB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,iCAAiC,EACjC,mBAAmB,EACnB,0BAA0B,EAC1B,yBAAyB,EACzB,+BAA+B,EAChC,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,EACvB,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AACvC,YAAY,EACV,6BAA6B,EAC7B,2BAA2B,EAC5B,MA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BAAiB,GAAG,IAAI,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAA;AAChE,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,iBAAiB,CAAA;AAChE,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,gBAAgB,EAChB,wBAAwB,CACzB,CAAA;AACD,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,qBAAqB,CAAC,uBAAuB,CAAC,CAC/C,CAAA;AAED,OAAO,EAAE,IAAI,EAAE,CAAA;AACf,eAAe,IAAI,CAAA"}
package/dist/index.js CHANGED
@@ -1,4 +1,21 @@
1
- import core, { Core } from './core';
1
+ import core, { Core } from './core.js';
2
+ import uiContext, { UIContext, propertyRegistry } from '@asyra/ui-context';
3
+ export { initFeatureSystem, getFeatureRegistry, getSessionManager } from './feature-integration.js';
4
+ export { defineComponent, defineComponentPropertyRelation, getComponentPropertyRelations, removeComponentPropertyRelation, unregisterComponent } from './define-component.js';
5
+ export { definePropertyChildRelation, definePropertyComponent, getPropertyChildRelations, removePropertyChildRelation, unregisterPropertyComponent } from './define-property-component.js';
6
+ export { defineFeature, FeatureUnregisterError, getFeature, unregisterFeature } from '@asyra/feature-system';
7
+ export { registerPropertySchema, getPropertySchema, registerPropertyComponent, getPropertyComponent, unregisterPropertySchema, unregisterPropertyRegistration, PROPERTY_REGISTRATION_ERROR_CODES, PropertyRegistrationError, PROPERTY_TYPE_DEFINITION_ERROR_CODES, PropertyTypeDefinitionError, elementPropertyRegistry, propertySchemaRegistry, propertyComponentRegistry, BasePropertyComponent, getPropertyComponentAccessor } from '@asyra/props-manager';
8
+ export { REGISTRATION_CONTRACT_ERROR_CODES, RegistrationGraph, RegistrationRelationError } from '@asyra/utils';
9
+ export { BaseSelection } from '@asyra/selection';
10
+ export { componentRegistry } from '@asyra/scene-tree';
11
+ export { keyMap } from '@asyra/input-system';
12
+ export { renderStrategyRegistry, createOverlayLayerRegistration, sampleOverlayBezierPoints, createRenderInteractionPointTarget, createRenderInteractionCircleTarget, createRenderInteractionSegmentTarget, createRenderInteractionPolylineTarget, createRenderGradientFillStyle, createEvenOddFillStyle, isPointInsidePreparedEvenOddShape, prepareEvenOddShape, createMeshProjection, renderSceneTreeStore, renderSelectionStore } from '@asyra/render';
13
+ export { createLocalSharedDataChannel, registerSharedDataChannel, unregisterSharedDataChannel, hasSharedDataChannel } from '@asyra/factory';
14
+ export { EventTypes, defineEvent, registerEventDefinitions, startTransaction, updateTransaction, endTransaction, rollbackTransaction, runTransaction, subscribeToSynchronousEvent, subscribeToFileLoadComplete, subscribeToEndTransaction, subscribeToTransactionStatusChanged, subscribeToSelectElements, subscribeToSelectVectorPoints, subscribeToSelectVectorSegments } from '@asyra/reactive-events';
15
+ export { defineDataChannelObserver, registerDataChannelObserver, unregisterDataChannelObserver } from './data-channel-observer.js';
16
+ export { uiContext, UIContext, propertyRegistry };
17
+ export { VECTOR_TOKENS, VECTOR_HANDLE_MODES, VECTOR_ANCHOR_ID_PREFIX, VECTOR_ANCHOR_ID_TYPE, VECTOR_TOPOLOGY_NETWORK_ID_TYPE, VECTOR_TOPOLOGY_SEGMENT_ID_TYPE, VECTOR_TOPOLOGY_POINT_ID_TYPE, isVectorAnchorNode, isVectorControlNode, isVectorHandleMode, getVectorControlId, getVectorPointTargetPosition, sortVectorItemsById, getVectorNetworkAnchorHandleRefs } from './types/vector.js';
18
+ export { LOAD_HOOK_EXECUTION_ERROR_CODES, LoadHookExecutionError } from './types/load-migration.js';
2
19
  export { Core };
3
20
  export default core;
4
21
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAEnC,OAAO,EAAE,IAAI,EAAE,CAAA;AACf,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"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EACpB,oBAAoB,EACpB,oBAAoB,EA0BrB,MAAM,eAAe,CAAA;AAMtB,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,2BAA2B,EAC3B,oBAAoB,EACrB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EACL,UAAU,EACV,WAAW,EACX,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,mCAAmC,EACnC,yBAAyB,EACzB,6BAA6B,EAC7B,+BAA+B,EAChC,MAAM,wBAAwB,CAAA;AAiB/B,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC9B,MAAM,4BAA4B,CAAA;AAEnC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAA;AACjD,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,qBAAqB,EACrB,+BAA+B,EAC/B,+BAA+B,EAC/B,6BAA6B,EAC7B,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,EAC5B,mBAAmB,EACnB,gCAAgC,EACjC,MAAM,mBAAmB,CAAA;AAgC1B,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,2BAA2B,CAAA;AAyLlC,OAAO,EAAE,IAAI,EAAE,CAAA;AACf,eAAe,IAAI,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { CanonicalElementRemoval } from '@asyra/scene-tree';
2
+ import type { ElementRawData, HierarchyMove, PropertyComponentRawData, PropsRestoreSnapshot, SceneTreeRestoreSnapshot, SubtreeChange, UpdateElementDataChange } from '@asyra/utils';
3
+ import type { PropertyComponentValuesUpdate } from './props.js';
4
+ export type CanonicalChange = Readonly<{
5
+ kind: 'property-components';
6
+ records?: readonly Readonly<{
7
+ propertyId: string;
8
+ key: string;
9
+ set?: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
10
+ remove?: readonly string[];
11
+ }>[];
12
+ updates: readonly PropertyComponentValuesUpdate[];
13
+ }> | Readonly<{
14
+ kind: 'element-data';
15
+ changes: readonly UpdateElementDataChange[];
16
+ }> | Readonly<{
17
+ kind: 'hierarchy-moves';
18
+ moves: readonly HierarchyMove[];
19
+ }> | Readonly<{
20
+ kind: 'subtree-removal';
21
+ change: SubtreeChange;
22
+ }> | Readonly<{
23
+ kind: 'subtree-restore';
24
+ sceneSnapshot: SceneTreeRestoreSnapshot;
25
+ propsSnapshot: PropsRestoreSnapshot;
26
+ }> | Readonly<{
27
+ kind: 'element-creation';
28
+ elements: readonly ElementRawData[];
29
+ properties: readonly PropertyComponentRawData[];
30
+ parentId: string;
31
+ index: number;
32
+ }> | Readonly<{
33
+ kind: 'element-removal';
34
+ removals: readonly CanonicalElementRemoval[];
35
+ }>;
36
+ export interface CanonicalChangeAPIs {
37
+ applyCanonicalChanges(changes: readonly CanonicalChange[]): void;
38
+ }
39
+ //# sourceMappingURL=canonical-changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonical-changes.d.ts","sourceRoot":"","sources":["../../src/types/canonical-changes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACxB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAE/D,MAAM,MAAM,eAAe,GACvB,QAAQ,CAAC;IACP,IAAI,EAAE,qBAAqB,CAAA;IAC3B,OAAO,CAAC,EAAE,SAAS,QAAQ,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAA;QAClB,GAAG,EAAE,MAAM,CAAA;QACX,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAA;QACjE,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KAC3B,CAAC,EAAE,CAAA;IACJ,OAAO,EAAE,SAAS,6BAA6B,EAAE,CAAA;CAClD,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,cAAc,CAAA;IACpB,OAAO,EAAE,SAAS,uBAAuB,EAAE,CAAA;CAC5C,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,iBAAiB,CAAA;IACvB,KAAK,EAAE,SAAS,aAAa,EAAE,CAAA;CAChC,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,iBAAiB,CAAA;IACvB,MAAM,EAAE,aAAa,CAAA;CACtB,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,iBAAiB,CAAA;IACvB,aAAa,EAAE,wBAAwB,CAAA;IACvC,aAAa,EAAE,oBAAoB,CAAA;CACpC,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,kBAAkB,CAAA;IACxB,QAAQ,EAAE,SAAS,cAAc,EAAE,CAAA;IACnC,UAAU,EAAE,SAAS,wBAAwB,EAAE,CAAA;IAC/C,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,iBAAiB,CAAA;IACvB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAA;CAC7C,CAAC,CAAA;AAEN,MAAM,WAAW,mBAAmB;IAClC,qBAAqB,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,GAAG,IAAI,CAAA;CACjE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=canonical-changes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canonical-changes.js","sourceRoot":"","sources":["../../src/types/canonical-changes.ts"],"names":[],"mappings":""}
@@ -1,11 +1,9 @@
1
1
  import type { Factory } from '@asyra/factory';
2
2
  import type { InputSystem } from '@asyra/input-system';
3
- import type { InteractionCore } from '@asyra/interaction-core';
4
3
  import type { Render } from '@asyra/render';
5
4
  export interface HandlerDeps {
6
5
  inputSystem: InputSystem;
7
6
  render: Render;
8
7
  factory: Factory;
9
- interactionCore: InteractionCore;
10
8
  }
11
9
  //# sourceMappingURL=deps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/types/deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,EAAE,eAAe,CAAA;CACjC"}
1
+ {"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/types/deps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,WAAW,CAAA;IACxB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;CACjB"}
@@ -0,0 +1,24 @@
1
+ import type { EVENT_OPTIONS } from '@asyra/utils';
2
+ export interface ElementPropertyValuesUpdate {
3
+ readonly elementId: string;
4
+ readonly values: Readonly<Record<string, unknown>>;
5
+ }
6
+ export type ElementPropertyRecordFields = Readonly<Record<string, unknown>> & {
7
+ readonly id?: never;
8
+ readonly type?: never;
9
+ };
10
+ export interface ElementPropertyRecordPatch {
11
+ readonly key: string;
12
+ readonly set?: Readonly<Record<string, ElementPropertyRecordFields>>;
13
+ readonly remove?: readonly string[];
14
+ }
15
+ export interface ElementPropertyPatchUpdate {
16
+ readonly elementId: string;
17
+ readonly values?: Readonly<Record<string, unknown>>;
18
+ readonly records: readonly ElementPropertyRecordPatch[];
19
+ }
20
+ export interface ElementPropertyAPIs {
21
+ updateElementProperties: (updates: readonly ElementPropertyValuesUpdate[], options?: EVENT_OPTIONS) => readonly string[];
22
+ patchElementProperties: (patches: readonly ElementPropertyPatchUpdate[], options?: EVENT_OPTIONS) => readonly string[];
23
+ }
24
+ //# sourceMappingURL=element-properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-properties.d.ts","sourceRoot":"","sources":["../../src/types/element-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAEjD,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACnD;AAED,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG;IAC5E,QAAQ,CAAC,EAAE,CAAC,EAAE,KAAK,CAAA;IACnB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAA;CACtB,CAAA;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC,CAAA;IACpE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACnD,QAAQ,CAAC,OAAO,EAAE,SAAS,0BAA0B,EAAE,CAAA;CACxD;AAED,MAAM,WAAW,mBAAmB;IAClC,uBAAuB,EAAE,CACvB,OAAO,EAAE,SAAS,2BAA2B,EAAE,EAC/C,OAAO,CAAC,EAAE,aAAa,KACpB,SAAS,MAAM,EAAE,CAAA;IACtB,sBAAsB,EAAE,CACtB,OAAO,EAAE,SAAS,0BAA0B,EAAE,EAC9C,OAAO,CAAC,EAAE,aAAa,KACpB,SAAS,MAAM,EAAE,CAAA;CACvB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=element-properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-properties.js","sourceRoot":"","sources":["../../src/types/element-properties.ts"],"names":[],"mappings":""}
@@ -1,5 +1,9 @@
1
+ import { EVENT_OPTIONS } from '@asyra/utils';
1
2
  export interface ElementSelectionActionAPIs {
2
- selectElements: (elementIds: string[]) => void;
3
+ selectByChannel: (channel: string, ids: string[], options?: EVENT_OPTIONS) => void;
4
+ selectElements: (elementIds: string[], options?: EVENT_OPTIONS) => void;
5
+ selectVectorPoints: (pointIds: string[], options?: EVENT_OPTIONS) => void;
6
+ selectVectorSegments: (segmentIds: string[], options?: EVENT_OPTIONS) => void;
3
7
  }
4
8
  export type ElementSelectionAPIs = ElementSelectionActionAPIs;
5
9
  //# sourceMappingURL=element-selection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"element-selection.d.ts","sourceRoot":"","sources":["../../src/types/element-selection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;CAC/C;AAED,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,CAAA"}
1
+ {"version":3,"file":"element-selection.d.ts","sourceRoot":"","sources":["../../src/types/element-selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAA;AAE5C,MAAM,WAAW,0BAA0B;IACzC,eAAe,EAAE,CACf,OAAO,EAAE,MAAM,EACf,GAAG,EAAE,MAAM,EAAE,EACb,OAAO,CAAC,EAAE,aAAa,KACpB,IAAI,CAAA;IACT,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IACvE,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;IACzE,oBAAoB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,KAAK,IAAI,CAAA;CAC9E;AAED,MAAM,MAAM,oBAAoB,GAAG,0BAA0B,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { CorePackages } from '@asyra/feature-system';
2
+ export interface FeatureSystemAPIs {
3
+ initFeatureSystem: (packages: CorePackages) => void;
4
+ }
5
+ //# sourceMappingURL=feature-system.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-system.d.ts","sourceRoot":"","sources":["../../src/types/feature-system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,MAAM,WAAW,iBAAiB;IAChC,iBAAiB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAA;CACpD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=feature-system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-system.js","sourceRoot":"","sources":["../../src/types/feature-system.ts"],"names":[],"mappings":""}
@@ -1,15 +1,19 @@
1
- import { TransactionAPIs, TransactionActionAPIs } from './transaction';
2
- import { ElementSelectionAPIs, ElementSelectionActionAPIs } from './element-selection';
3
- import { InputSystemAPIs, InputSystemRawAPIs } from './input-system';
4
- import { RenderAPIs, RenderRawAPIs } from './render';
5
- import { SceneTreeAPIs, SceneTreeActionAPIs, SceneTreeHandlerAPIs } from './scene-tree';
6
- import { UndoAPIs, UndoActionAPIs } from './undo';
7
- import { ViewportAPIs } from './viewport';
8
- import { PropsAPIs, PropsRawAPIs } from './props';
9
- import { SystemContextAPIs, PrimaryToolActionAPIs, PrimaryToolAPIs, MouseStateAPIs, KeyStateAPIs } from './system-context';
10
- import { InteractionCoreAPIs, InteractionCoreSessionAPIs, InteractionCoreActionAPIs } from './interaction-core';
11
- import { Requests, RequestsDeps, SystemContextRequests, SystemContextRequestsDeps, PropsRequests, PropsRequestDeps, SceneTreeRequests, SceneTreeRequestDeps, FactoryRequests, FactoryRequestDeps, RenderRequests, RenderRequestDeps, SelectionRequests, SelectionRequestDeps } from './requests';
12
- export { HandlerDeps } from './deps';
13
- export { TransactionAPIs, TransactionActionAPIs, InputSystemRawAPIs, InputSystemAPIs, UndoActionAPIs, UndoAPIs, ViewportAPIs, RenderRawAPIs, RenderAPIs, SceneTreeAPIs, SceneTreeActionAPIs, SceneTreeHandlerAPIs, ElementSelectionActionAPIs, ElementSelectionAPIs, PropsRawAPIs, PropsAPIs, PrimaryToolActionAPIs, PrimaryToolAPIs, MouseStateAPIs, SystemContextAPIs, InteractionCoreActionAPIs, InteractionCoreSessionAPIs, InteractionCoreAPIs, KeyStateAPIs, Requests, RequestsDeps, SystemContextRequests, SystemContextRequestsDeps, PropsRequests, PropsRequestDeps, SceneTreeRequests, SceneTreeRequestDeps, FactoryRequests, FactoryRequestDeps, RenderRequests, RenderRequestDeps, SelectionRequests, SelectionRequestDeps };
14
- export type CoreAPIs = TransactionAPIs & InputSystemAPIs & UndoAPIs & ViewportAPIs & RenderAPIs & SceneTreeAPIs & ElementSelectionAPIs & PropsAPIs & SystemContextAPIs & InteractionCoreAPIs;
1
+ import { InputSystemAPIs, InputSystemRawAPIs } from './input-system.js';
2
+ import { PropsAPIs } from './props.js';
3
+ import { RenderAPIs } from './render.js';
4
+ import { SceneTreeAPIs } from './scene-tree.js';
5
+ import { ElementSelectionActionAPIs } from './element-selection.js';
6
+ import { FeatureSystemAPIs } from './feature-system.js';
7
+ import { UIContextAPIs } from './ui-context.js';
8
+ import { SystemManagedPropertyAPIs } from './system-properties.js';
9
+ import { ElementPropertyAPIs } from './element-properties.js';
10
+ import type { CanonicalChangeAPIs } from './canonical-changes.js';
11
+ export { HandlerDeps } from './deps.js';
12
+ export type { LoadDiagnosticsHook, LoadValidationDiagnostic, LoadValidationScope } from './load-validation.js';
13
+ export { LOAD_HOOK_EXECUTION_ERROR_CODES, LoadHookExecutionError } from './load-migration.js';
14
+ export type { LoadHookExecutionErrorCode } from './load-migration.js';
15
+ export { InputSystemRawAPIs, InputSystemAPIs, PropsAPIs, RenderAPIs, SceneTreeAPIs, ElementSelectionActionAPIs, FeatureSystemAPIs, UIContextAPIs, SystemManagedPropertyAPIs, ElementPropertyAPIs };
16
+ export type { PropertyComponentValuesUpdate } from './props.js';
17
+ export type { CanonicalChange, CanonicalChangeAPIs } from './canonical-changes.js';
18
+ export type CoreAPIs = InputSystemAPIs & PropsAPIs & RenderAPIs & SceneTreeAPIs & ElementSelectionActionAPIs & FeatureSystemAPIs & UIContextAPIs & SystemManagedPropertyAPIs & ElementPropertyAPIs & CanonicalChangeAPIs;
15
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AACtE,OAAO,EACL,oBAAoB,EACpB,0BAA0B,EAC3B,MAAM,qBAAqB,CAAA;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aAAa,EACb,yBAAyB,EACzB,mBAAmB,EACpB,CAAA;AACD,YAAY,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAA;AAC/D,YAAY,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,QAAQ,GAAG,eAAe,GACpC,SAAS,GACT,UAAU,GACV,aAAa,GACb,0BAA0B,GAC1B,iBAAiB,GACjB,aAAa,GACb,yBAAyB,GACzB,mBAAmB,GACnB,mBAAmB,CAAA"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export { LOAD_HOOK_EXECUTION_ERROR_CODES, LoadHookExecutionError } from './load-migration.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EACL,+BAA+B,EAC/B,sBAAsB,EACvB,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const LOAD_HOOK_EXECUTION_ERROR_CODES: {
2
+ readonly ASYNC_UNSUPPORTED: "ASYNC_UNSUPPORTED";
3
+ readonly INVALID_RESULT: "INVALID_RESULT";
4
+ };
5
+ export type LoadHookExecutionErrorCode = (typeof LOAD_HOOK_EXECUTION_ERROR_CODES)[keyof typeof LOAD_HOOK_EXECUTION_ERROR_CODES];
6
+ export declare class LoadHookExecutionError extends Error {
7
+ readonly code: LoadHookExecutionErrorCode;
8
+ readonly hookIndex: number;
9
+ readonly name = "LoadHookExecutionError";
10
+ constructor(code: LoadHookExecutionErrorCode, hookIndex: number);
11
+ }
12
+ //# sourceMappingURL=load-migration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-migration.d.ts","sourceRoot":"","sources":["../../src/types/load-migration.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B;;;CAGlC,CAAA;AAEV,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,OAAO,+BAA+B,CAAC,CAAA;AAExF,qBAAa,sBAAuB,SAAQ,KAAK;IAI7C,QAAQ,CAAC,IAAI,EAAE,0BAA0B;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM;IAJ5B,QAAQ,CAAC,IAAI,4BAA2B;gBAG7B,IAAI,EAAE,0BAA0B,EAChC,SAAS,EAAE,MAAM;CAQ7B"}
@@ -0,0 +1,16 @@
1
+ export const LOAD_HOOK_EXECUTION_ERROR_CODES = {
2
+ ASYNC_UNSUPPORTED: 'ASYNC_UNSUPPORTED',
3
+ INVALID_RESULT: 'INVALID_RESULT'
4
+ };
5
+ export class LoadHookExecutionError extends Error {
6
+ constructor(code, hookIndex) {
7
+ const reason = code === LOAD_HOOK_EXECUTION_ERROR_CODES.ASYNC_UNSUPPORTED
8
+ ? 'returned an unsupported asynchronous result'
9
+ : 'returned an invalid result without a string version';
10
+ super(`[Core] Load hook ${hookIndex} ${reason}`);
11
+ this.code = code;
12
+ this.hookIndex = hookIndex;
13
+ this.name = 'LoadHookExecutionError';
14
+ }
15
+ }
16
+ //# sourceMappingURL=load-migration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-migration.js","sourceRoot":"","sources":["../../src/types/load-migration.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,iBAAiB,EAAE,mBAAmB;IACtC,cAAc,EAAE,gBAAgB;CACxB,CAAA;AAKV,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAG/C,YACW,IAAgC,EAChC,SAAiB;QAE1B,MAAM,MAAM,GACV,IAAI,KAAK,+BAA+B,CAAC,iBAAiB;YACxD,CAAC,CAAC,6CAA6C;YAC/C,CAAC,CAAC,qDAAqD,CAAA;QAC3D,KAAK,CAAC,oBAAoB,SAAS,IAAI,MAAM,EAAE,CAAC,CAAA;QAPvC,SAAI,GAAJ,IAAI,CAA4B;QAChC,cAAS,GAAT,SAAS,CAAQ;QAJnB,SAAI,GAAG,wBAAwB,CAAA;IAWxC,CAAC;CACF"}
@@ -0,0 +1,12 @@
1
+ import type { CoreRawData, LoadDiagnostic } from '@asyra/utils';
2
+ export type LoadValidationScope = 'core' | 'props-manager' | 'scene-tree' | 'system-context';
3
+ export interface LoadValidationDiagnostic extends LoadDiagnostic {
4
+ scope: LoadValidationScope;
5
+ }
6
+ /**
7
+ * Observes detached validation diagnostics and detached post-apply load
8
+ * evidence. It includes applied managed-system serialization and validated
9
+ * package apply inputs. The data is not a canonical state artifact or state owner.
10
+ */
11
+ export type LoadDiagnosticsHook = (diagnostics: LoadValidationDiagnostic[], data: CoreRawData) => void;
12
+ //# sourceMappingURL=load-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-validation.d.ts","sourceRoot":"","sources":["../../src/types/load-validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE/D,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,eAAe,GACf,YAAY,GACZ,gBAAgB,CAAA;AAEpB,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D,KAAK,EAAE,mBAAmB,CAAA;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAChC,WAAW,EAAE,wBAAwB,EAAE,EACvC,IAAI,EAAE,WAAW,KACd,IAAI,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=load-validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-validation.js","sourceRoot":"","sources":["../../src/types/load-validation.ts"],"names":[],"mappings":""}
@@ -1,7 +1,14 @@
1
- import { PropsComponentRawData } from '@asyra/utils';
1
+ import { ElementPropertyRelation, PropsComponentRawData, PreparedPropsRestore, PropsRestoreSnapshot, type EVENT_OPTIONS } from '@asyra/utils';
2
+ export interface PropertyComponentValuesUpdate {
3
+ readonly propertyId: string;
4
+ readonly values: Readonly<Record<string, unknown>>;
5
+ }
2
6
  export interface PropsRawAPIs {
3
7
  propsLoadData: (data: PropsComponentRawData) => void;
4
8
  propsSaveData: () => PropsComponentRawData;
9
+ preflightRestoreProperties: (snapshot: PropsRestoreSnapshot, ownerRelations: readonly ElementPropertyRelation[]) => PreparedPropsRestore;
10
+ applyRestoreProperties: (preparedRestore: PreparedPropsRestore, options?: EVENT_OPTIONS) => readonly string[];
11
+ updatePropertyComponents: (updates: readonly PropertyComponentValuesUpdate[], options?: EVENT_OPTIONS) => readonly string[];
5
12
  }
6
13
  export type PropsAPIs = PropsRawAPIs;
7
14
  //# sourceMappingURL=props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/types/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AAEpD,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAA;IACpD,aAAa,EAAE,MAAM,qBAAqB,CAAA;CAC3C;AAED,MAAM,MAAM,SAAS,GAAG,YAAY,CAAA"}
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/types/props.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,KAAK,aAAa,EACnB,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACnD;AAED,MAAM,WAAW,YAAY;IAC3B,aAAa,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAA;IACpD,aAAa,EAAE,MAAM,qBAAqB,CAAA;IAC1C,0BAA0B,EAAE,CAC1B,QAAQ,EAAE,oBAAoB,EAC9B,cAAc,EAAE,SAAS,uBAAuB,EAAE,KAC/C,oBAAoB,CAAA;IACzB,sBAAsB,EAAE,CACtB,eAAe,EAAE,oBAAoB,EACrC,OAAO,CAAC,EAAE,aAAa,KACpB,SAAS,MAAM,EAAE,CAAA;IACtB,wBAAwB,EAAE,CACxB,OAAO,EAAE,SAAS,6BAA6B,EAAE,EACjD,OAAO,CAAC,EAAE,aAAa,KACpB,SAAS,MAAM,EAAE,CAAA;CACvB;AAED,MAAM,MAAM,SAAS,GAAG,YAAY,CAAA"}
@@ -1,6 +1,25 @@
1
+ import type { CreateRenderGradientFillOptions, RenderFillStyle, EvenOddFillOptions, EvenOddFillResult, CreateMeshProjectionOptions, MeshProjection, RenderInteractionTarget, RenderInteractionHandlerRegistration, RenderInteractionEventType, RenderLayerRegistration } from '@asyra/render';
2
+ export type { RenderLayerRegistration } from '@asyra/render';
3
+ export interface RegisterRenderLayerOptions {
4
+ override?: boolean;
5
+ }
1
6
  export interface RenderRawAPIs {
7
+ initRender: (width: number, height: number, color: number) => Promise<unknown>;
2
8
  renderIsReady: () => void;
3
- initRender: (width: number, height: number, color: number) => Promise<any>;
9
+ registerRenderLayer: (registration: RenderLayerRegistration, options?: RegisterRenderLayerOptions) => void;
10
+ unregisterRenderLayer: (name: string) => boolean;
11
+ createRenderGradientFillStyle: (options: CreateRenderGradientFillOptions) => RenderFillStyle;
12
+ createEvenOddFillStyle: (options: EvenOddFillOptions) => EvenOddFillResult | null;
13
+ createMeshProjection: (options: CreateMeshProjectionOptions) => MeshProjection;
14
+ registerRenderInteractionTargets: (targets: RenderInteractionTarget | RenderInteractionTarget[], options?: {
15
+ override?: boolean;
16
+ }) => void;
17
+ updateRenderInteractionTarget: (targetId: string, patch: Partial<RenderInteractionTarget> | ((current: RenderInteractionTarget) => Partial<RenderInteractionTarget>)) => void;
18
+ unregisterRenderInteractionTarget: (targetId: string) => boolean;
19
+ clearRenderInteractionTargets: () => void;
20
+ registerRenderInteractionHandler: (targetId: string | RegExp, registration: RenderInteractionHandlerRegistration) => void;
21
+ unregisterRenderInteractionHandler: (targetId: string, eventType?: RenderInteractionEventType) => void;
4
22
  }
23
+ export type RegisterRenderLayer = RenderRawAPIs['registerRenderLayer'];
5
24
  export type RenderAPIs = RenderRawAPIs;
6
25
  //# sourceMappingURL=render.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/types/render.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,IAAI,CAAA;IAEzB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CAC3E;AAED,MAAM,MAAM,UAAU,GAAG,aAAa,CAAA"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/types/render.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,2BAA2B,EAC3B,cAAc,EACd,uBAAuB,EACvB,oCAAoC,EACpC,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,eAAe,CAAA;AAEtB,YAAY,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AAE5D,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9E,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,mBAAmB,EAAE,CACnB,YAAY,EAAE,uBAAuB,EACrC,OAAO,CAAC,EAAE,0BAA0B,KACjC,IAAI,CAAA;IACT,qBAAqB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;IAChD,6BAA6B,EAAE,CAC7B,OAAO,EAAE,+BAA+B,KACrC,eAAe,CAAA;IACpB,sBAAsB,EAAE,CACtB,OAAO,EAAE,kBAAkB,KACxB,iBAAiB,GAAG,IAAI,CAAA;IAC7B,oBAAoB,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,cAAc,CAAA;IAC9E,gCAAgC,EAAE,CAChC,OAAO,EAAE,uBAAuB,GAAG,uBAAuB,EAAE,EAC5D,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,KAC7B,IAAI,CAAA;IACT,6BAA6B,EAAE,CAC7B,QAAQ,EAAE,MAAM,EAChB,KAAK,EACD,OAAO,CAAC,uBAAuB,CAAC,GAChC,CAAC,CAAC,OAAO,EAAE,uBAAuB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC,KACzE,IAAI,CAAA;IACT,iCAAiC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAA;IAChE,6BAA6B,EAAE,MAAM,IAAI,CAAA;IACzC,gCAAgC,EAAE,CAChC,QAAQ,EAAE,MAAM,GAAG,MAAM,EACzB,YAAY,EAAE,oCAAoC,KAC/C,IAAI,CAAA;IACT,kCAAkC,EAAE,CAClC,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,0BAA0B,KACnC,IAAI,CAAA;CACV;AAED,MAAM,MAAM,mBAAmB,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAA;AACtE,MAAM,MAAM,UAAU,GAAG,aAAa,CAAA"}
@@ -1,15 +1,27 @@
1
- import { CreateElementData, DataTypes, DimensionData, EVENT_OPTIONS, PositionData, SceneTreeRawData } from '@asyra/utils';
1
+ import { Bounds, CreateElementData, ElementRawData, GroupInstanceTypes, HierarchyMove, SceneTreeRawData, EVENT_OPTIONS, MoveHierarchyRequest, MoveHierarchyResult, RemoveSubtreeResult, PropertyComponentRawData, PreparedSceneTreeRestore, SceneTreeRestorePreflightOptions, SceneTreeRestoreSnapshot, SubtreeChange, UpdateElementDataChange } from '@asyra/utils';
2
+ import type { CanonicalElementRemoval, LocalComputedDataPatchUpdate, LocalComputedDataUpdate } from '@asyra/scene-tree';
2
3
  export interface SceneTreeRawAPIs {
3
4
  sceneTreeInit: () => void;
4
5
  sceneTreeLoadData: (data: SceneTreeRawData) => void;
5
6
  sceneTreeSaveData: () => SceneTreeRawData;
7
+ createElement: (data: CreateElementData, parent?: GroupInstanceTypes, index?: number, options?: EVENT_OPTIONS) => string;
8
+ createElementInParent: (data: CreateElementData, parentId: string, index?: number, options?: EVENT_OPTIONS) => string;
9
+ createElementsInParent: (data: readonly CreateElementData[], parentId: string, index?: number, options?: EVENT_OPTIONS) => readonly string[];
10
+ createElementsInParentFromCanonicalData: (elements: readonly ElementRawData[], properties: readonly PropertyComponentRawData[], parentId: string, index?: number, options?: EVENT_OPTIONS) => readonly string[];
11
+ getElementComputedData: (elementId: string) => Record<string, unknown> | undefined;
12
+ moveElements: (request: MoveHierarchyRequest, options?: EVENT_OPTIONS) => MoveHierarchyResult;
13
+ applyHierarchyMoves: (moves: readonly HierarchyMove[], options?: EVENT_OPTIONS) => boolean;
14
+ applyElementDataChanges: (changes: readonly UpdateElementDataChange[], options?: EVENT_OPTIONS) => readonly string[];
15
+ removeSubtree: (elementId: string, options?: EVENT_OPTIONS) => RemoveSubtreeResult;
16
+ removeSubtreeFromCanonicalData: (change: SubtreeChange, options?: EVENT_OPTIONS) => RemoveSubtreeResult;
17
+ removeElementsFromCanonicalData: (removals: readonly CanonicalElementRemoval[], options?: EVENT_OPTIONS) => readonly string[];
18
+ preflightRestoreSubtree: (snapshot: SceneTreeRestoreSnapshot, options?: SceneTreeRestorePreflightOptions) => PreparedSceneTreeRestore;
19
+ applyRestoreSubtree: (preparedRestore: PreparedSceneTreeRestore, options?: EVENT_OPTIONS) => RemoveSubtreeResult;
20
+ updateLocalComputedData: (updates: readonly LocalComputedDataUpdate[]) => void;
21
+ patchLocalComputedData: (updates: readonly LocalComputedDataPatchUpdate[]) => void;
22
+ projectLocalComputedDataFromPropertyIds: (propertyIds: readonly string[]) => void;
23
+ getAllElementsBounds: () => Bounds | null;
24
+ isContainerType: (type: string) => boolean;
6
25
  }
7
- export interface SceneTreeActionAPIs {
8
- changeComputedData: (key: string, data: DataTypes) => void;
9
- resizeElement: (pos: PositionData, dimension: DimensionData, options?: EVENT_OPTIONS) => void;
10
- }
11
- export interface SceneTreeHandlerAPIs {
12
- addRectangle: (data: CreateElementData) => void;
13
- }
14
- export type SceneTreeAPIs = SceneTreeRawAPIs & SceneTreeActionAPIs & SceneTreeHandlerAPIs;
26
+ export type SceneTreeAPIs = SceneTreeRawAPIs;
15
27
  //# sourceMappingURL=scene-tree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scene-tree.d.ts","sourceRoot":"","sources":["../../src/types/scene-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,cAAc,CAAA;AAErB,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,iBAAiB,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;CAC1C;AAED,MAAM,WAAW,mBAAmB;IAClC,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,KAAK,IAAI,CAAA;IAC1D,aAAa,EAAE,CACb,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE,aAAa,KACpB,IAAI,CAAA;CACV;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAChD;AAED,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAC1C,mBAAmB,GACnB,oBAAoB,CAAA"}
1
+ {"version":3,"file":"scene-tree.d.ts","sourceRoot":"","sources":["../../src/types/scene-tree.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,gCAAgC,EAChC,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACxB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EACV,uBAAuB,EACvB,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,mBAAmB,CAAA;AAE1B,MAAM,WAAW,gBAAgB;IAC/B,aAAa,EAAE,MAAM,IAAI,CAAA;IACzB,iBAAiB,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;IACzC,aAAa,EAAE,CACb,IAAI,EAAE,iBAAiB,EACvB,MAAM,CAAC,EAAE,kBAAkB,EAC3B,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,MAAM,CAAA;IACX,qBAAqB,EAAE,CACrB,IAAI,EAAE,iBAAiB,EACvB,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,MAAM,CAAA;IACX,sBAAsB,EAAE,CACtB,IAAI,EAAE,SAAS,iBAAiB,EAAE,EAClC,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,aAAa,KACpB,SAAS,MAAM,EAAE,CAAA;IACtB,uCAAuC,EAAE,CACvC,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,UAAU,EAAE,SAAS,w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C,EAAE,CACvC,WAAW,EAAE,SAAS,MAAM,EAAE,KAC3B,IAAI,CAAA;IACT,oBAAoB,EAAE,MAAM,MAAM,GAAG,IAAI,CAAA;IACzC,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAA;CAC3C;AAED,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { BehaviorSubject } from 'rxjs';
2
+ export interface SystemManagedPropertyAPIs {
3
+ defineSystemProperty: <T>(key: string, defaultValue: T, options?: {
4
+ runtime?: boolean;
5
+ silent?: boolean;
6
+ validate?: (value: unknown) => value is T;
7
+ }) => BehaviorSubject<T>;
8
+ registerSystemProperty: <T>(key: string, defaultValue: T, options?: {
9
+ runtime?: boolean;
10
+ silent?: boolean;
11
+ validate?: (value: unknown) => value is T;
12
+ }) => BehaviorSubject<T>;
13
+ getSystemProperty: <T>(key: string) => T | undefined;
14
+ setSystemProperty: <T>(key: string, value: T) => void;
15
+ getSystemPropertyObservable: <T>(key: string) => BehaviorSubject<T> | undefined;
16
+ hasSystemProperty: (key: string) => boolean;
17
+ unregisterSystemProperty: (key: string) => boolean;
18
+ }
19
+ //# sourceMappingURL=system-properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-properties.d.ts","sourceRoot":"","sources":["../../src/types/system-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAE3C,MAAM,WAAW,yBAAyB;IACxC,oBAAoB,EAAE,CAAC,CAAC,EACtB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,EACf,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAA;KAC1C,KACE,eAAe,CAAC,CAAC,CAAC,CAAA;IACvB,sBAAsB,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,YAAY,EAAE,CAAC,EACf,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAA;KAC1C,KACE,eAAe,CAAC,CAAC,CAAC,CAAA;IACvB,iBAAiB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,CAAA;IACpD,iBAAiB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IACrD,2BAA2B,EAAE,CAAC,CAAC,EAC7B,GAAG,EAAE,MAAM,KACR,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IACnC,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAA;IAC3C,wBAAwB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAA;CACnD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=system-properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-properties.js","sourceRoot":"","sources":["../../src/types/system-properties.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { BehaviorSubject } from 'rxjs';
2
+ import type { PropertyRegistration, PropertyValue } from '@asyra/ui-context';
3
+ export interface UIContextAPIs {
4
+ defineUIProperty: <T extends PropertyValue>(key: string, config: PropertyRegistration<T>) => void;
5
+ registerUIProperty: <T extends PropertyValue>(key: string, config: PropertyRegistration<T>) => void;
6
+ getUIProperty: <T extends PropertyValue>(key: string) => T | undefined;
7
+ setUIProperty: <T extends PropertyValue>(key: string, value: T) => void;
8
+ getUIPropertySubject: <T extends PropertyValue>(key: string) => BehaviorSubject<T> | undefined;
9
+ onUIPropertyChange: <T extends PropertyValue>(key: string, callback: (value: T) => void) => () => void;
10
+ }
11
+ //# sourceMappingURL=ui-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-context.d.ts","sourceRoot":"","sources":["../../src/types/ui-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,MAAM,CAAA;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAE5E,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,CAAC,CAAC,SAAS,aAAa,EACxC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAC5B,IAAI,CAAA;IACT,kBAAkB,EAAE,CAAC,CAAC,SAAS,aAAa,EAC1C,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAC5B,IAAI,CAAA;IACT,aAAa,EAAE,CAAC,CAAC,SAAS,aAAa,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,CAAA;IACtE,aAAa,EAAE,CAAC,CAAC,SAAS,aAAa,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;IACvE,oBAAoB,EAAE,CAAC,CAAC,SAAS,aAAa,EAC5C,GAAG,EAAE,MAAM,KACR,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IACnC,kBAAkB,EAAE,CAAC,CAAC,SAAS,aAAa,EAC1C,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,KACzB,MAAM,IAAI,CAAA;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ui-context.js.map