@adobe/data 0.7.2 → 0.7.3

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 (209) hide show
  1. package/dist/ecs/archetype/archetype.d.ts +3 -3
  2. package/dist/ecs/archetype/create-archetype.d.ts +4 -4
  3. package/dist/ecs/archetype/create-archetype.js.map +1 -1
  4. package/dist/ecs/archetype/create-archetype.test.js +6 -6
  5. package/dist/ecs/archetype/create-archetype.test.js.map +1 -1
  6. package/dist/ecs/archetype/delete-row.d.ts +2 -2
  7. package/dist/ecs/archetype/delete-row.js.map +1 -1
  8. package/dist/ecs/archetype/delete-row.test.js +4 -4
  9. package/dist/ecs/archetype/delete-row.test.js.map +1 -1
  10. package/dist/ecs/core-components.d.ts +3 -3
  11. package/dist/ecs/database/database.d.ts +4 -4
  12. package/dist/ecs/database/observe-select-entities.d.ts +2 -2
  13. package/dist/ecs/database/observe-select-entities.js.map +1 -1
  14. package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
  15. package/dist/ecs/database/observed/observed-database.d.ts +3 -3
  16. package/dist/ecs/database/replicate.js.map +1 -1
  17. package/dist/ecs/entity-location-table/create-entity-location-table.d.ts +1 -1
  18. package/dist/ecs/entity-location-table/create-entity-location-table.js +14 -1
  19. package/dist/ecs/entity-location-table/create-entity-location-table.js.map +1 -1
  20. package/dist/ecs/entity-location-table/create-entity-location-table.test.js +14 -0
  21. package/dist/ecs/entity-location-table/create-entity-location-table.test.js.map +1 -1
  22. package/dist/ecs/entity.d.ts +9 -7
  23. package/dist/ecs/entity.js +5 -2
  24. package/dist/ecs/entity.js.map +1 -1
  25. package/dist/ecs/index.d.ts +1 -1
  26. package/dist/ecs/index.js +1 -1
  27. package/dist/ecs/index.js.map +1 -1
  28. package/dist/ecs/optional-components.d.ts +3 -0
  29. package/dist/ecs/optional-components.js +2 -0
  30. package/dist/ecs/optional-components.js.map +1 -0
  31. package/dist/ecs/required-components.d.ts +4 -0
  32. package/dist/ecs/required-components.js +2 -0
  33. package/dist/ecs/required-components.js.map +1 -0
  34. package/dist/ecs/store/core/core.d.ts +15 -15
  35. package/dist/ecs/store/core/create-core.d.ts +2 -1
  36. package/dist/ecs/store/core/create-core.js +29 -12
  37. package/dist/ecs/store/core/create-core.js.map +1 -1
  38. package/dist/ecs/store/core/create-core.test.d.ts +1 -1
  39. package/dist/ecs/store/core/create-core.test.js +30 -2
  40. package/dist/ecs/store/core/create-core.test.js.map +1 -1
  41. package/dist/ecs/store/core/select-entities.d.ts +2 -2
  42. package/dist/ecs/store/core/select-entities.js.map +1 -1
  43. package/dist/ecs/store/create-store.d.ts +2 -1
  44. package/dist/ecs/store/create-store.js +3 -1
  45. package/dist/ecs/store/create-store.js.map +1 -1
  46. package/dist/ecs/store/store.d.ts +6 -6
  47. package/dist/samples/todo/services/state-service/create-todo-database.d.ts +1 -1
  48. package/dist/samples/todo/services/state-service/create-todo-store.d.ts +1 -1
  49. package/dist/tsconfig.tsbuildinfo +1 -1
  50. package/package.json +4 -3
  51. package/dist/blob/download-handle.d.ts +0 -4
  52. package/dist/blob/download-handle.js +0 -2
  53. package/dist/blob/download-handle.js.map +0 -1
  54. package/dist/blob/upload-handle.d.ts +0 -4
  55. package/dist/blob/upload-handle.js +0 -2
  56. package/dist/blob/upload-handle.js.map +0 -1
  57. package/dist/ecs/database/applied/applied-database.d.ts +0 -47
  58. package/dist/ecs/database/applied/applied-database.js +0 -22
  59. package/dist/ecs/database/applied/applied-database.js.map +0 -1
  60. package/dist/ecs/database/applied/applied-entry.d.ts +0 -30
  61. package/dist/ecs/database/applied/applied-entry.js +0 -84
  62. package/dist/ecs/database/applied/applied-entry.js.map +0 -1
  63. package/dist/ecs/database/applied/create-applied-database.d.ts +0 -8
  64. package/dist/ecs/database/applied/create-applied-database.js +0 -266
  65. package/dist/ecs/database/applied/create-applied-database.js.map +0 -1
  66. package/dist/ecs/database/applied/create-applied-database.test.d.ts +0 -1
  67. package/dist/ecs/database/applied/create-applied-database.test.js +0 -94
  68. package/dist/ecs/database/applied/create-applied-database.test.js.map +0 -1
  69. package/dist/ecs/database/create-applied-database.d.ts +0 -49
  70. package/dist/ecs/database/create-applied-database.js +0 -275
  71. package/dist/ecs/database/create-applied-database.js.map +0 -1
  72. package/dist/ecs/database/reconciling/applied-database.d.ts +0 -47
  73. package/dist/ecs/database/reconciling/applied-database.js +0 -22
  74. package/dist/ecs/database/reconciling/applied-database.js.map +0 -1
  75. package/dist/ecs/database/reconciling/applied-entry.d.ts +0 -30
  76. package/dist/ecs/database/reconciling/applied-entry.js +0 -84
  77. package/dist/ecs/database/reconciling/applied-entry.js.map +0 -1
  78. package/dist/ecs/database/reconciling/create-applied-database.d.ts +0 -8
  79. package/dist/ecs/database/reconciling/create-applied-database.js +0 -266
  80. package/dist/ecs/database/reconciling/create-applied-database.js.map +0 -1
  81. package/dist/ecs/database/reconciling/create-applied-database.test.d.ts +0 -1
  82. package/dist/ecs/database/reconciling/create-applied-database.test.js +0 -94
  83. package/dist/ecs/database/reconciling/create-applied-database.test.js.map +0 -1
  84. package/dist/ecs/store/store-schema/create-store-schema-test.d.ts +0 -1
  85. package/dist/ecs/store/store-schema/create-store-schema-test.js +0 -33
  86. package/dist/ecs/store/store-schema/create-store-schema-test.js.map +0 -1
  87. package/dist/ecs/store/store-schema/create-store-schema.d.ts +0 -11
  88. package/dist/ecs/store/store-schema/create-store-schema.js +0 -31
  89. package/dist/ecs/store/store-schema/create-store-schema.js.map +0 -1
  90. package/dist/ecs/store/store-schema/index.d.ts +0 -2
  91. package/dist/ecs/store/store-schema/index.js +0 -24
  92. package/dist/ecs/store/store-schema/index.js.map +0 -1
  93. package/dist/ecs/store/store-schema/store-schema.d.ts +0 -12
  94. package/dist/ecs/store/store-schema/store-schema.js +0 -23
  95. package/dist/ecs/store/store-schema/store-schema.js.map +0 -1
  96. package/dist/ecs/world/create-world.d.ts +0 -7
  97. package/dist/ecs/world/create-world.js +0 -113
  98. package/dist/ecs/world/create-world.js.map +0 -1
  99. package/dist/ecs/world/create-world.test.d.ts +0 -1
  100. package/dist/ecs/world/create-world.test.js +0 -499
  101. package/dist/ecs/world/create-world.test.js.map +0 -1
  102. package/dist/ecs/world/index.d.ts +0 -5
  103. package/dist/ecs/world/index.js +0 -27
  104. package/dist/ecs/world/index.js.map +0 -1
  105. package/dist/ecs/world/system-phase.d.ts +0 -5
  106. package/dist/ecs/world/system-phase.js +0 -14
  107. package/dist/ecs/world/system-phase.js.map +0 -1
  108. package/dist/ecs/world/system.d.ts +0 -25
  109. package/dist/ecs/world/system.js +0 -2
  110. package/dist/ecs/world/system.js.map +0 -1
  111. package/dist/ecs/world/world-schema/create-world-schema-test.d.ts +0 -1
  112. package/dist/ecs/world/world-schema/create-world-schema-test.js +0 -55
  113. package/dist/ecs/world/world-schema/create-world-schema-test.js.map +0 -1
  114. package/dist/ecs/world/world-schema/create-world-schema.d.ts +0 -19
  115. package/dist/ecs/world/world-schema/create-world-schema.js +0 -33
  116. package/dist/ecs/world/world-schema/create-world-schema.js.map +0 -1
  117. package/dist/ecs/world/world-schema/index.d.ts +0 -2
  118. package/dist/ecs/world/world-schema/index.js +0 -24
  119. package/dist/ecs/world/world-schema/index.js.map +0 -1
  120. package/dist/ecs/world/world-schema/world-schema.d.ts +0 -18
  121. package/dist/ecs/world/world-schema/world-schema.js +0 -23
  122. package/dist/ecs/world/world-schema/world-schema.js.map +0 -1
  123. package/dist/ecs/world/world.d.ts +0 -11
  124. package/dist/ecs/world/world.js +0 -2
  125. package/dist/ecs/world/world.js.map +0 -1
  126. package/dist/graphics/camera/camera.d.ts +0 -62
  127. package/dist/graphics/camera/camera.js +0 -17
  128. package/dist/graphics/camera/camera.js.map +0 -1
  129. package/dist/graphics/camera/index.d.ts +0 -4
  130. package/dist/graphics/camera/index.js +0 -5
  131. package/dist/graphics/camera/index.js.map +0 -1
  132. package/dist/graphics/camera/screen-to-world-ray.d.ts +0 -12
  133. package/dist/graphics/camera/screen-to-world-ray.js +0 -49
  134. package/dist/graphics/camera/screen-to-world-ray.js.map +0 -1
  135. package/dist/graphics/camera/screen-to-world-ray.test.d.ts +0 -1
  136. package/dist/graphics/camera/screen-to-world-ray.test.js +0 -171
  137. package/dist/graphics/camera/screen-to-world-ray.test.js.map +0 -1
  138. package/dist/graphics/camera/to-view-projection.d.ts +0 -3
  139. package/dist/graphics/camera/to-view-projection.js +0 -8
  140. package/dist/graphics/camera/to-view-projection.js.map +0 -1
  141. package/dist/graphics/camera/world-to-screen.d.ts +0 -12
  142. package/dist/graphics/camera/world-to-screen.js +0 -38
  143. package/dist/graphics/camera/world-to-screen.js.map +0 -1
  144. package/dist/graphics/camera/world-to-screen.test.d.ts +0 -1
  145. package/dist/graphics/camera/world-to-screen.test.js +0 -124
  146. package/dist/graphics/camera/world-to-screen.test.js.map +0 -1
  147. package/dist/graphics/create-struct-gpu-buffer.d.ts +0 -7
  148. package/dist/graphics/create-struct-gpu-buffer.js +0 -17
  149. package/dist/graphics/create-struct-gpu-buffer.js.map +0 -1
  150. package/dist/graphics/extract-wgsl-bindings.d.ts +0 -5
  151. package/dist/graphics/extract-wgsl-bindings.js +0 -10
  152. package/dist/graphics/extract-wgsl-bindings.js.map +0 -1
  153. package/dist/graphics/frame.d.ts +0 -22
  154. package/dist/graphics/frame.js +0 -12
  155. package/dist/graphics/frame.js.map +0 -1
  156. package/dist/graphics/get-web-gpu-device-and-context.d.ts +0 -2
  157. package/dist/graphics/get-web-gpu-device-and-context.js +0 -21
  158. package/dist/graphics/get-web-gpu-device-and-context.js.map +0 -1
  159. package/dist/graphics/graphics-context.d.ts +0 -5
  160. package/dist/graphics/graphics-context.js +0 -2
  161. package/dist/graphics/graphics-context.js.map +0 -1
  162. package/dist/graphics/index.d.ts +0 -5
  163. package/dist/graphics/index.js +0 -5
  164. package/dist/graphics/index.js.map +0 -1
  165. package/dist/graphics/to-gpu-buffer.d.ts +0 -2
  166. package/dist/graphics/to-gpu-buffer.js +0 -14
  167. package/dist/graphics/to-gpu-buffer.js.map +0 -1
  168. package/dist/internal/array-buffer-like/grow.d.ts +0 -1
  169. package/dist/internal/array-buffer-like/grow.js +0 -9
  170. package/dist/internal/array-buffer-like/grow.js.map +0 -1
  171. package/dist/lit/elements/service-application.d.ts +0 -9
  172. package/dist/lit/elements/service-application.js +0 -55
  173. package/dist/lit/elements/service-application.js.map +0 -1
  174. package/dist/lit/elements/service-context.d.ts +0 -1
  175. package/dist/lit/elements/service-context.js +0 -24
  176. package/dist/lit/elements/service-context.js.map +0 -1
  177. package/dist/lit/elements/service-element.d.ts +0 -6
  178. package/dist/lit/elements/service-element.js +0 -43
  179. package/dist/lit/elements/service-element.js.map +0 -1
  180. package/dist/math/picking/get-closest-entity-to-line.d.ts +0 -4
  181. package/dist/math/picking/get-closest-entity-to-line.js +0 -30
  182. package/dist/math/picking/get-closest-entity-to-line.js.map +0 -1
  183. package/dist/math/picking/get-closest-entity-to-point.d.ts +0 -4
  184. package/dist/math/picking/get-closest-entity-to-point.js +0 -27
  185. package/dist/math/picking/get-closest-entity-to-point.js.map +0 -1
  186. package/dist/math/picking/get-intersecting-entities.d.ts +0 -12
  187. package/dist/math/picking/get-intersecting-entities.js +0 -15
  188. package/dist/math/picking/get-intersecting-entities.js.map +0 -1
  189. package/dist/math/picking/index.d.ts +0 -5
  190. package/dist/math/picking/index.js +0 -27
  191. package/dist/math/picking/index.js.map +0 -1
  192. package/dist/math/picking/pick-from-tables.d.ts +0 -19
  193. package/dist/math/picking/pick-from-tables.js +0 -63
  194. package/dist/math/picking/pick-from-tables.js.map +0 -1
  195. package/dist/math/picking/pick-result.d.ts +0 -10
  196. package/dist/math/picking/pick-result.js +0 -23
  197. package/dist/math/picking/pick-result.js.map +0 -1
  198. package/dist/old-ecs/privacy/helper-functions.d.ts +0 -43
  199. package/dist/old-ecs/privacy/helper-functions.js +0 -76
  200. package/dist/old-ecs/privacy/helper-functions.js.map +0 -1
  201. package/dist/old-ecs/privacy/helper-functions.test.d.ts +0 -1
  202. package/dist/old-ecs/privacy/helper-functions.test.js +0 -173
  203. package/dist/old-ecs/privacy/helper-functions.test.js.map +0 -1
  204. package/dist/table/compact-table.d.ts +0 -7
  205. package/dist/table/compact-table.js +0 -15
  206. package/dist/table/compact-table.js.map +0 -1
  207. package/dist/table/compact-table.test.d.ts +0 -1
  208. package/dist/table/compact-table.test.js +0 -121
  209. package/dist/table/compact-table.test.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-applied-database.test.js","sourceRoot":"","sources":["../../../../src/ecs/database/applied/create-applied-database.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,MAAM,yBAAyB,GAAG,GAAG,EAAE;IACnC,MAAM,KAAK,GAAG,WAAW,CACrB;QACI,QAAQ,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACR,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;aACxB;YACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;YACzB,oBAAoB,EAAE,KAAK;SAC9B;QACD,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClB,EACV,EAAE,EACF;QACI,kBAAkB,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;KAClC,CACb,CAAC;IAIF,MAAM,YAAY,GAAG;QACjB,wBAAwB,CACpB,CAAY,EACZ,IAAqE;YAErE,OAAO,CAAC,CAAC,UAAU,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACxD,CAAC;QACD,wBAAwB,CACpB,CA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0,0 @@
1
- import { Archetype, ArchetypeId, ReadonlyArchetype } from "../archetype/index.js";
2
- import { ResourceComponents } from "../store/resource-components.js";
3
- import { Store, ReadonlyStore } from "../store/index.js";
4
- import { Entity } from "../entity.js";
5
- import { EntityReadValues } from "../store/core/index.js";
6
- import { TransactionResult } from "./transactional-store/index.js";
7
- import { StringKeyof } from "../../types/types.js";
8
- import { Observe } from "../../observe/index.js";
9
- import { Components } from "../store/components.js";
10
- import { ArchetypeComponents } from "../store/archetype-components.js";
11
- import { CoreComponents } from "../core-components.js";
12
- import { Service } from "../../service/service.js";
13
- import { TransactionDeclarations } from "./database.js";
14
- export type TransactionEnvelope<Name extends string = string> = {
15
- readonly id: bigint;
16
- readonly name: Name;
17
- readonly args: unknown;
18
- /**
19
- * Negative time indicates a transient application, positive time a committed one,
20
- * and zero time cancels any existing entry.
21
- */
22
- readonly time: number;
23
- };
24
- export interface AppliedDatabase<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>, TD extends TransactionDeclarations<C, R, A>> extends ReadonlyStore<C, R, A>, Service {
25
- readonly resources: {
26
- readonly [K in StringKeyof<R>]: R[K];
27
- };
28
- readonly observe: {
29
- readonly components: {
30
- readonly [K in StringKeyof<C>]: Observe<void>;
31
- };
32
- readonly resources: {
33
- readonly [K in StringKeyof<R>]: Observe<R[K]>;
34
- };
35
- readonly transactions: Observe<TransactionResult<C>>;
36
- entity<T extends CoreComponents>(id: Entity, minArchetype?: ReadonlyArchetype<T> | Archetype<T>): Observe<{
37
- readonly [K in (StringKeyof<CoreComponents & T>)]: (CoreComponents & T)[K];
38
- } & EntityReadValues<C> | null>;
39
- entity(id: Entity): Observe<EntityReadValues<C> | null>;
40
- archetype(id: ArchetypeId): Observe<void>;
41
- select<Include extends StringKeyof<C>, T extends Include>(include: readonly Include[] | ReadonlySet<string>, options?: any): Observe<readonly Entity[]>;
42
- };
43
- readonly toData: () => unknown;
44
- readonly fromData: (data: unknown) => void;
45
- readonly apply: (envelope: TransactionEnvelope<Extract<keyof TD, string>>) => TransactionResult<C> | undefined;
46
- }
47
- export declare function createAppliedDatabase<const C extends Components, const R extends ResourceComponents, const A extends ArchetypeComponents<StringKeyof<C>>, const TD extends TransactionDeclarations<C, R, A>>(store: Store<C, R, A>, transactionDeclarations: TD, options?: {
48
- maxSynchronizeDurationMs?: number;
49
- }): AppliedDatabase<C, R, A, TD>;
@@ -1,275 +0,0 @@
1
- /*MIT License
2
-
3
- © Copyright 2025 Adobe. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.*/
21
- import { mapEntries } from "../../internal/object/index.js";
22
- import { withMap } from "../../observe/index.js";
23
- import { createTransactionalStore } from "./transactional-store/create-transactional-store.js";
24
- import { observeSelectEntities } from "./observe-select-entities.js";
25
- import { applyOperations } from "./transactional-store/apply-operations.js";
26
- const compareEntries = (a, b) => {
27
- if (a.absTime !== b.absTime) {
28
- return a.absTime - b.absTime;
29
- }
30
- if (a.name < b.name) {
31
- return -1;
32
- }
33
- if (a.name > b.name) {
34
- return 1;
35
- }
36
- if (a.id < b.id) {
37
- return -1;
38
- }
39
- if (a.id > b.id) {
40
- return 1;
41
- }
42
- return 0;
43
- };
44
- const binarySearchInsertIndex = (entries, entry) => {
45
- let low = 0;
46
- let high = entries.length;
47
- while (low < high) {
48
- const mid = (low + high) >> 1;
49
- if (compareEntries(entry, entries[mid]) < 0) {
50
- high = mid;
51
- }
52
- else {
53
- low = mid + 1;
54
- }
55
- }
56
- return low;
57
- };
58
- const addToMapSet = (key, map) => (value) => {
59
- let set = map.get(key);
60
- if (set) {
61
- set.add(value);
62
- }
63
- else {
64
- map.set(key, (set = new Set([value])));
65
- }
66
- return () => {
67
- set.delete(value);
68
- };
69
- };
70
- export function createAppliedDatabase(store, transactionDeclarations, options = {}) {
71
- const { maxSynchronizeDurationMs = 5000 } = options;
72
- const transactionalStore = createTransactionalStore(store);
73
- const { execute: transactionalExecute, resources, ...rest } = transactionalStore;
74
- const componentObservers = new Map();
75
- const archetypeObservers = new Map();
76
- const entityObservers = new Map();
77
- const transactionObservers = new Set();
78
- const execute = (handler, options) => {
79
- const result = transactionalExecute(handler, options);
80
- notifyObservers(result);
81
- return result;
82
- };
83
- const notifyObservers = (result) => {
84
- for (const observer of transactionObservers) {
85
- observer(result);
86
- }
87
- for (const changedComponent of result.changedComponents) {
88
- const observers = componentObservers.get(changedComponent);
89
- if (observers) {
90
- for (const observer of observers) {
91
- observer();
92
- }
93
- }
94
- }
95
- for (const changedArchetype of result.changedArchetypes) {
96
- const observers = archetypeObservers.get(changedArchetype);
97
- if (observers) {
98
- for (const observer of observers) {
99
- observer();
100
- }
101
- }
102
- }
103
- for (const changedEntity of result.changedEntities.keys()) {
104
- const observers = entityObservers.get(changedEntity);
105
- if (observers) {
106
- const values = store.read(changedEntity);
107
- for (const observer of observers) {
108
- observer(values);
109
- }
110
- }
111
- }
112
- };
113
- const observeEntity = (entity, minArchetype) => (observer) => {
114
- if (minArchetype) {
115
- const originalObserver = observer;
116
- observer = (values) => {
117
- if (values) {
118
- const location = store.locate(entity);
119
- if (location) {
120
- const { archetype } = location;
121
- if (archetype.id !== minArchetype.id && !archetype.components.isSupersetOf(minArchetype.components)) {
122
- values = null;
123
- }
124
- }
125
- }
126
- originalObserver(values);
127
- };
128
- }
129
- observer(store.read(entity));
130
- const dispose = addToMapSet(entity, entityObservers)(observer);
131
- return dispose;
132
- };
133
- const observeArchetype = (archetype) => addToMapSet(archetype, archetypeObservers);
134
- const observeComponent = mapEntries(store.componentSchemas, ([component]) => addToMapSet(component, componentObservers));
135
- const observeResource = Object.fromEntries(Object.entries(store.resources).map(([resource]) => {
136
- const archetype = store.ensureArchetype(["id", resource]);
137
- const resourceId = archetype.columns.id.get(0);
138
- return [resource, withMap(observeEntity(resourceId), (values) => values?.[resource] ?? null)];
139
- }));
140
- const observeTransaction = (notify) => {
141
- transactionObservers.add(notify);
142
- return () => {
143
- transactionObservers.delete(notify);
144
- };
145
- };
146
- const observe = {
147
- components: observeComponent,
148
- resources: observeResource,
149
- transactions: observeTransaction,
150
- entity: observeEntity,
151
- archetype: observeArchetype,
152
- select: observeSelectEntities(transactionalStore, observeTransaction),
153
- };
154
- const appliedEntries = [];
155
- const rollbackRange = (startIndex) => {
156
- for (let i = appliedEntries.length - 1; i >= startIndex; i--) {
157
- const entry = appliedEntries[i];
158
- if (entry.result) {
159
- execute(t => applyOperations(t, entry.result.undo), { transient: true });
160
- entry.result = undefined;
161
- }
162
- }
163
- };
164
- const replayRange = (startIndex) => {
165
- let lastResult;
166
- for (let i = startIndex; i < appliedEntries.length; i++) {
167
- const entry = appliedEntries[i];
168
- const result = execute(t => entry.transaction(t, entry.args), { transient: entry.isTransient });
169
- entry.result = result;
170
- lastResult = result;
171
- }
172
- return lastResult;
173
- };
174
- const pruneCommittedEntries = (currentAbsTime) => {
175
- if (!maxSynchronizeDurationMs) {
176
- return;
177
- }
178
- while (appliedEntries.length > 0) {
179
- const first = appliedEntries[0];
180
- if (first.isTransient) {
181
- break;
182
- }
183
- if (currentAbsTime - first.absTime > maxSynchronizeDurationMs) {
184
- appliedEntries.shift();
185
- }
186
- else {
187
- break;
188
- }
189
- }
190
- };
191
- const applyEnvelope = (envelope) => {
192
- const transaction = transactionDeclarations[envelope.name];
193
- if (!transaction) {
194
- throw new Error(`Unknown transaction: ${envelope.name}`);
195
- }
196
- const absTime = Math.abs(envelope.time);
197
- const isTransient = envelope.time < 0;
198
- const isCancellation = envelope.time === 0;
199
- let startIndex = appliedEntries.length;
200
- const existingIndex = appliedEntries.findIndex(entry => entry.id === envelope.id);
201
- if (existingIndex >= 0) {
202
- startIndex = existingIndex;
203
- const existingEntry = appliedEntries[existingIndex];
204
- if (existingEntry.result) {
205
- execute(t => applyOperations(t, existingEntry.result.undo), { transient: true });
206
- existingEntry.result = undefined;
207
- }
208
- appliedEntries.splice(existingIndex, 1);
209
- }
210
- if (isCancellation) {
211
- if (startIndex < appliedEntries.length) {
212
- rollbackRange(startIndex);
213
- replayRange(startIndex);
214
- }
215
- return undefined;
216
- }
217
- const entry = {
218
- id: envelope.id,
219
- name: envelope.name,
220
- transaction: transaction,
221
- args: envelope.args,
222
- time: envelope.time,
223
- absTime,
224
- isTransient,
225
- result: undefined,
226
- };
227
- const insertIndex = binarySearchInsertIndex(appliedEntries, entry);
228
- appliedEntries.splice(insertIndex, 0, entry);
229
- const rebuildIndex = Math.min(startIndex, insertIndex);
230
- rollbackRange(rebuildIndex);
231
- replayRange(rebuildIndex);
232
- pruneCommittedEntries(absTime);
233
- const insertedEntry = appliedEntries.find(e => e.id === envelope.id);
234
- return insertedEntry?.result;
235
- };
236
- const notifyAllObserversStoreReloaded = () => {
237
- const notifyResult = {
238
- changedComponents: new Set(componentObservers.keys()),
239
- changedArchetypes: new Set(archetypeObservers.keys()),
240
- changedEntities: new Map([...entityObservers.keys()].map((entity) => {
241
- const values = store.read(entity);
242
- let updateValues = null;
243
- if (values) {
244
- const { id, ...rest } = values;
245
- updateValues = rest;
246
- }
247
- return [
248
- entity,
249
- updateValues
250
- ];
251
- })),
252
- transient: false,
253
- value: undefined,
254
- undo: [],
255
- redo: [],
256
- undoable: null,
257
- };
258
- notifyObservers(notifyResult);
259
- };
260
- const appliedDatabase = {
261
- serviceName: "ecs-applied-database-service",
262
- ...rest,
263
- resources,
264
- observe,
265
- toData: () => store.toData(),
266
- fromData: (data) => {
267
- store.fromData(data);
268
- appliedEntries.length = 0;
269
- notifyAllObserversStoreReloaded();
270
- },
271
- apply: applyEnvelope,
272
- };
273
- return appliedDatabase;
274
- }
275
- //# sourceMappingURL=create-applied-database.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-applied-database.js","sourceRoot":"","sources":["../../../src/ecs/database/create-applied-database.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;WAmBW;AAQX,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAW,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAG/F,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAyD5E,MAAM,cAAc,GAAG,CAIrB,CAAwB,EAAE,CAAwB,EAAE,EAAE;IACpD,IAAI,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;QAC1B,OAAO,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO,CAAC;IACjC,CAAC;IACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QAClB,OAAO,CAAC,CAAC,CAAC;IACd,CAAC;IACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;QAClB,OAAO,CAAC,CAAC;IACb,CAAC;IACD,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC;QACd,OA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aAAa;KACS,CAAC;IAElC,OAAO,eAAe,CAAC;AAC3B,CAAC"}
@@ -1,47 +0,0 @@
1
- import { Archetype, ArchetypeId, ReadonlyArchetype } from "../../archetype/index.js";
2
- import { ResourceComponents } from "../../store/resource-components.js";
3
- import { ReadonlyStore } from "../../store/index.js";
4
- import { Entity } from "../../entity.js";
5
- import { EntityReadValues } from "../../store/core/index.js";
6
- import { TransactionResult } from "../transactional-store/index.js";
7
- import { StringKeyof } from "../../../types/types.js";
8
- import { Observe } from "../../../observe/index.js";
9
- import { Components } from "../../store/components.js";
10
- import { ArchetypeComponents } from "../../store/archetype-components.js";
11
- import { CoreComponents } from "../../core-components.js";
12
- import { Service } from "../../../service/service.js";
13
- import { TransactionDeclarations } from "../database.js";
14
- export type TransactionEnvelope<Name extends string = string> = {
15
- readonly id: number;
16
- readonly name: Name;
17
- readonly args: unknown;
18
- /**
19
- * Negative time indicates a transient application, positive time a committed one,
20
- * and zero time cancels any existing entry.
21
- */
22
- readonly time: number;
23
- };
24
- export interface AppliedDatabase<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>, TD extends TransactionDeclarations<C, R, A>> extends ReadonlyStore<C, R, A>, Service {
25
- readonly resources: {
26
- readonly [K in StringKeyof<R>]: R[K];
27
- };
28
- readonly observe: {
29
- readonly components: {
30
- readonly [K in StringKeyof<C>]: Observe<void>;
31
- };
32
- readonly resources: {
33
- readonly [K in StringKeyof<R>]: Observe<R[K]>;
34
- };
35
- readonly transactions: Observe<TransactionResult<C>>;
36
- entity<T extends CoreComponents>(id: Entity, minArchetype?: ReadonlyArchetype<T> | Archetype<T>): Observe<{
37
- readonly [K in (StringKeyof<CoreComponents & T>)]: (CoreComponents & T)[K];
38
- } & EntityReadValues<C> | null>;
39
- entity(id: Entity): Observe<EntityReadValues<C> | null>;
40
- archetype(id: ArchetypeId): Observe<void>;
41
- select<Include extends StringKeyof<C>, T extends Include>(include: readonly Include[] | ReadonlySet<string>, options?: any): Observe<readonly Entity[]>;
42
- };
43
- readonly toData: () => unknown;
44
- readonly fromData: (data: unknown) => void;
45
- readonly apply: (envelope: TransactionEnvelope<Extract<keyof TD, string>>) => TransactionResult<C> | undefined;
46
- readonly cancel: (id: number) => void;
47
- }
@@ -1,22 +0,0 @@
1
- /*MIT License
2
-
3
- © Copyright 2025 Adobe. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.*/
21
- export {};
22
- //# sourceMappingURL=applied-database.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applied-database.js","sourceRoot":"","sources":["../../../../src/ecs/database/reconciling/applied-database.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;WAmBW"}
@@ -1,30 +0,0 @@
1
- import { StringKeyof } from "../../../types/types.js";
2
- import { Components } from "../../store/components.js";
3
- import { ResourceComponents } from "../../store/resource-components.js";
4
- import { ArchetypeComponents } from "../../store/archetype-components.js";
5
- import { TransactionResult } from "../transactional-store/index.js";
6
- import { TransactionWriteOperation } from "../transactional-store/transactional-store.js";
7
- import { Store } from "../../store/index.js";
8
- import { Entity } from "../../entity.js";
9
- export type AppliedEntry<C extends Components = Components, R extends ResourceComponents = ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>> = ArchetypeComponents<StringKeyof<C>>> = {
10
- readonly id: number;
11
- readonly name: string;
12
- readonly transaction: (store: Store<C, R, A>, args: unknown) => void | Entity;
13
- readonly args: unknown;
14
- readonly time: number;
15
- result?: TransactionResult<C>;
16
- };
17
- export declare const AppliedEntryOps: {
18
- isTransient<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>>(entry: AppliedEntry<C, R, A>): boolean;
19
- compare<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>>(a: AppliedEntry<C, R, A>, b: AppliedEntry<C, R, A>): number;
20
- findInsertIndex<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>>(entries: AppliedEntry<C, R, A>[], entry: AppliedEntry<C, R, A>): number;
21
- };
22
- export type SerializedAppliedEntry = {
23
- readonly id: number;
24
- readonly name: string;
25
- readonly args: unknown;
26
- readonly time: number;
27
- readonly undo?: TransactionWriteOperation<any>[];
28
- };
29
- export declare const serializeAppliedEntry: <C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>>(entry: AppliedEntry<C, R, A>) => SerializedAppliedEntry;
30
- export declare const deserializeAppliedEntry: <C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>>(serialized: SerializedAppliedEntry, transaction: (store: Store<C, R, A>, args: unknown) => void | Entity) => AppliedEntry<C, R, A>;
@@ -1,84 +0,0 @@
1
- /*MIT License
2
-
3
- © Copyright 2025 Adobe. All rights reserved.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.*/
21
- export const AppliedEntryOps = {
22
- isTransient(entry) {
23
- return entry.time < 0;
24
- },
25
- compare(a, b) {
26
- const absDiff = Math.abs(a.time) - Math.abs(b.time);
27
- if (absDiff !== 0) {
28
- return absDiff;
29
- }
30
- if (a.name < b.name) {
31
- return -1;
32
- }
33
- if (a.name > b.name) {
34
- return 1;
35
- }
36
- return a.id - b.id;
37
- },
38
- findInsertIndex(entries, entry) {
39
- let low = 0;
40
- let high = entries.length;
41
- while (low < high) {
42
- const mid = (low + high) >> 1;
43
- if (AppliedEntryOps.compare(entry, entries[mid]) < 0) {
44
- high = mid;
45
- }
46
- else {
47
- low = mid + 1;
48
- }
49
- }
50
- return low;
51
- },
52
- };
53
- export const serializeAppliedEntry = (entry) => ({
54
- id: entry.id,
55
- name: entry.name,
56
- args: entry.args,
57
- time: entry.time,
58
- undo: entry.result?.undo,
59
- });
60
- export const deserializeAppliedEntry = (serialized, transaction) => {
61
- const undoOperations = Array.isArray(serialized.undo)
62
- ? serialized.undo
63
- : undefined;
64
- return {
65
- id: Number(serialized.id),
66
- name: serialized.name,
67
- transaction,
68
- args: serialized.args,
69
- time: serialized.time,
70
- result: undoOperations
71
- ? {
72
- value: undefined,
73
- transient: serialized.time < 0,
74
- undoable: null,
75
- redo: [],
76
- undo: undoOperations,
77
- changedEntities: new Map(),
78
- changedComponents: new Set(),
79
- changedArchetypes: new Set(),
80
- }
81
- : undefined,
82
- };
83
- };
84
- //# sourceMappingURL=applied-entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applied-entry.js","sourceRoot":"","sources":["../../../../src/ecs/database/reconciling/applied-entry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;WAmBW;AAwBX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,WAAW,CAIT,KAA4B;QAC1B,OAAO,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAC1B,CAAC;IACD,OAAO,CAIL,CAAwB,EAAE,CAAwB;QAChD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,OAAO,CAAC;QACnB,CAAC;QACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC,CAAC;QACd,CAAC;QACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC;QACb,CAAC;QACD,OAAO,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;IACvB,CAAC;IACD,eAAe,CAIb,OAAgC,EAAE,KAA4B;QAC5D,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;QAC1B,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;YAChB,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,IAAI,eAAe,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO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,CAAC,CAAC,SAAS;KAClB,CAAC;AACN,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { StringKeyof } from "../../../types/types.js";
2
- import { TransactionDeclarations } from "../database.js";
3
- import { ResourceComponents } from "../../store/resource-components.js";
4
- import { Store } from "../../store/index.js";
5
- import { Components } from "../../store/components.js";
6
- import { ArchetypeComponents } from "../../store/archetype-components.js";
7
- import { AppliedDatabase } from "./applied-database.js";
8
- export declare function createAppliedDatabase<const C extends Components, const R extends ResourceComponents, const A extends ArchetypeComponents<StringKeyof<C>>, const TD extends TransactionDeclarations<C, R, A>>(store: Store<C, R, A>, transactionDeclarations: TD): AppliedDatabase<C, R, A, TD>;