@dcl/playground-assets 7.1.1 → 7.1.2-4409125554.commit-f109d0e
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/alpha.d.ts +1 -1
- package/dist/beta.d.ts +1 -1
- package/dist/index.bundled.d.ts +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/playground/sdk/dcl-sdk.package.json +3 -3
- package/dist/playground-assets.d.ts +1 -1
- package/etc/playground-assets.api.json +3 -3
- package/etc/playground-assets.api.md +1 -1
- package/package.json +3 -3
package/dist/alpha.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ export declare interface BaseComponent<T> {
|
|
|
177
177
|
* This function writes the whole state of the component into a ByteBuffer
|
|
178
178
|
* @public
|
|
179
179
|
*/
|
|
180
|
-
|
|
180
|
+
dumpCrdtStateToBuffer(buffer: ByteBuffer): void;
|
|
181
181
|
/**
|
|
182
182
|
* @public
|
|
183
183
|
* Marks the entity as deleted and signals it cannot be used ever again. It must
|
package/dist/beta.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ export declare interface BaseComponent<T> {
|
|
|
177
177
|
* This function writes the whole state of the component into a ByteBuffer
|
|
178
178
|
* @public
|
|
179
179
|
*/
|
|
180
|
-
|
|
180
|
+
dumpCrdtStateToBuffer(buffer: ByteBuffer): void;
|
|
181
181
|
/**
|
|
182
182
|
* @public
|
|
183
183
|
* Marks the entity as deleted and signals it cannot be used ever again. It must
|
package/dist/index.bundled.d.ts
CHANGED
|
@@ -177,7 +177,7 @@ export declare interface BaseComponent<T> {
|
|
|
177
177
|
* This function writes the whole state of the component into a ByteBuffer
|
|
178
178
|
* @public
|
|
179
179
|
*/
|
|
180
|
-
|
|
180
|
+
dumpCrdtStateToBuffer(buffer: ByteBuffer): void;
|
|
181
181
|
/**
|
|
182
182
|
* @public
|
|
183
183
|
* Marks the entity as deleted and signals it cannot be used ever again. It must
|
package/dist/index.js
CHANGED
|
@@ -15261,7 +15261,7 @@
|
|
|
15261
15261
|
},
|
|
15262
15262
|
getCrdtUpdates: createGetCrdtMessagesForLww(componentId, timestamps, dirtyIterator, schema, data),
|
|
15263
15263
|
updateFromCrdt: createUpdateLwwFromCrdt(componentId, timestamps, schema, data),
|
|
15264
|
-
|
|
15264
|
+
dumpCrdtStateToBuffer: createDumpLwwFunctionFromCrdt(componentId, timestamps, schema, data)
|
|
15265
15265
|
};
|
|
15266
15266
|
}
|
|
15267
15267
|
|
|
@@ -15435,7 +15435,7 @@
|
|
|
15435
15435
|
}
|
|
15436
15436
|
return [null, undefined];
|
|
15437
15437
|
},
|
|
15438
|
-
|
|
15438
|
+
dumpCrdtStateToBuffer: function (buffer) {
|
|
15439
15439
|
for (const [entity, { raw }] of data) {
|
|
15440
15440
|
for (const it of raw) {
|
|
15441
15441
|
const buf = new ReadWriteByteBuffer();
|
|
@@ -42168,6 +42168,7 @@
|
|
|
42168
42168
|
const UiInputResult = UiInputResult$1(engine);
|
|
42169
42169
|
const UiDropdown = UiDropdown$1(engine);
|
|
42170
42170
|
const UiDropdownResult = UiDropdownResult$1(engine);
|
|
42171
|
+
const PointerEvents = PointerEvents$1(engine);
|
|
42171
42172
|
// Component ID Helper
|
|
42172
42173
|
const getComponentId = {
|
|
42173
42174
|
uiTransform: UiTransform.componentId,
|
|
@@ -42238,6 +42239,7 @@
|
|
|
42238
42239
|
function removeChildEntity(instance) {
|
|
42239
42240
|
changeEvents.delete(instance.entity);
|
|
42240
42241
|
engine.removeEntity(instance.entity);
|
|
42242
|
+
pointerEventTick.delete(instance.entity);
|
|
42241
42243
|
for (const child of instance._child) {
|
|
42242
42244
|
removeChildEntity(child);
|
|
42243
42245
|
}
|
|
@@ -42377,12 +42379,21 @@
|
|
|
42377
42379
|
}
|
|
42378
42380
|
}
|
|
42379
42381
|
}
|
|
42382
|
+
const pointerEventTick = new Set();
|
|
42380
42383
|
return {
|
|
42381
42384
|
update: function (component) {
|
|
42382
42385
|
if (changeEvents.size) {
|
|
42383
42386
|
handleOnChange(UiInput.componentId, UiInputResult);
|
|
42384
42387
|
handleOnChange(UiDropdown.componentId, UiDropdownResult);
|
|
42385
42388
|
}
|
|
42389
|
+
for (const [entity] of engine.getEntitiesWith(UiTransform, PointerEvents)) {
|
|
42390
|
+
if (pointerEventTick.has(entity)) {
|
|
42391
|
+
continue;
|
|
42392
|
+
}
|
|
42393
|
+
pointerEventTick.add(entity);
|
|
42394
|
+
// Re-send this pointer-event because of #issue
|
|
42395
|
+
PointerEvents.getMutable(entity);
|
|
42396
|
+
}
|
|
42386
42397
|
return reconciler.updateContainer(component, root, null);
|
|
42387
42398
|
},
|
|
42388
42399
|
getEntities: () => Array.from(entities)
|