@dcl/react-ecs 7.1.4-4619276636.commit-e2c17cb → 7.1.4-4620788316.commit-cf01bf1
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.
- package/dist/reconciler/index.js +0 -11
- package/package.json +3 -3
package/dist/reconciler/index.js
CHANGED
|
@@ -24,7 +24,6 @@ export function createReconciler(engine, pointerEvents) {
|
|
|
24
24
|
const UiInputResult = components.UiInputResult(engine);
|
|
25
25
|
const UiDropdown = components.UiDropdown(engine);
|
|
26
26
|
const UiDropdownResult = components.UiDropdownResult(engine);
|
|
27
|
-
const PointerEvents = components.PointerEvents(engine);
|
|
28
27
|
// Component ID Helper
|
|
29
28
|
const getComponentId = {
|
|
30
29
|
uiTransform: UiTransform.componentId,
|
|
@@ -95,7 +94,6 @@ export function createReconciler(engine, pointerEvents) {
|
|
|
95
94
|
function removeChildEntity(instance) {
|
|
96
95
|
changeEvents.delete(instance.entity);
|
|
97
96
|
engine.removeEntity(instance.entity);
|
|
98
|
-
pointerEventTick.delete(instance.entity);
|
|
99
97
|
for (const child of instance._child) {
|
|
100
98
|
removeChildEntity(child);
|
|
101
99
|
}
|
|
@@ -235,21 +233,12 @@ export function createReconciler(engine, pointerEvents) {
|
|
|
235
233
|
}
|
|
236
234
|
}
|
|
237
235
|
}
|
|
238
|
-
const pointerEventTick = new Set();
|
|
239
236
|
return {
|
|
240
237
|
update: function (component) {
|
|
241
238
|
if (changeEvents.size) {
|
|
242
239
|
handleOnChange(UiInput.componentId, UiInputResult);
|
|
243
240
|
handleOnChange(UiDropdown.componentId, UiDropdownResult);
|
|
244
241
|
}
|
|
245
|
-
for (const [entity] of engine.getEntitiesWith(UiTransform, PointerEvents)) {
|
|
246
|
-
if (pointerEventTick.has(entity)) {
|
|
247
|
-
continue;
|
|
248
|
-
}
|
|
249
|
-
pointerEventTick.add(entity);
|
|
250
|
-
// Re-send this pointer-event because of #issue
|
|
251
|
-
PointerEvents.getMutable(entity);
|
|
252
|
-
}
|
|
253
242
|
return reconciler.updateContainer(component, root, null);
|
|
254
243
|
},
|
|
255
244
|
getEntities: () => Array.from(entities)
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/react-ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.1.4-
|
|
4
|
+
"version": "7.1.4-4620788316.commit-cf01bf1",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@dcl/ecs": "7.1.4-
|
|
8
|
+
"@dcl/ecs": "7.1.4-4620788316.commit-cf01bf1",
|
|
9
9
|
"react": "^18.2.0",
|
|
10
10
|
"react-reconciler": "^0.29.0"
|
|
11
11
|
},
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"tsconfig": "./tsconfig.json"
|
|
37
37
|
},
|
|
38
38
|
"types": "./dist/index.d.ts",
|
|
39
|
-
"commit": "
|
|
39
|
+
"commit": "cf01bf1623b9433750a94766ee54c3abbb937d38"
|
|
40
40
|
}
|