@luminocity/lemonate-engine 26.5.2 → 26.5.4
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/Shortcuts.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lemonate.es.js +12 -1
- package/dist/lemonate.js +50887 -50876
- package/dist/lemonate.min.js +14 -14
- package/dist/lemonate.umd.js +12 -1
- package/dist/player.zip +0 -0
- package/dist/scenegraph/SgItem.d.ts +3 -0
- package/package.json +2 -2
package/dist/Shortcuts.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Engine } from "./Engine";
|
|
2
|
-
export type ShortcutListenerFunction = (event: KeyboardEvent) => void
|
|
2
|
+
export type ShortcutListenerFunction = (event: KeyboardEvent) => void | Promise<void>;
|
|
3
3
|
export type ShortcutListener = {
|
|
4
4
|
func: ShortcutListenerFunction;
|
|
5
5
|
targetObject: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { parseVectorFormulaSet } from './subsystems/Ribbons';
|
|
|
7
7
|
export * from './tools/DebugTools';
|
|
8
8
|
export { Item, LodMode, ItemState } from './items/Item';
|
|
9
9
|
export { Engine, WaitMode } from './Engine';
|
|
10
|
-
export { Shortcuts } from './Shortcuts';
|
|
10
|
+
export { Shortcuts, ShortcutListener, ShortcutListenerFunction } from './Shortcuts';
|
|
11
11
|
export { Player } from './Player';
|
|
12
12
|
export { Renderer, MaxLayerCount, FrameBufferResult } from './Renderer';
|
|
13
13
|
export { LoadingManager } from "./LoadingManager";
|
package/dist/lemonate.es.js
CHANGED
|
@@ -11390,7 +11390,7 @@ class Item extends EventEmitter {
|
|
|
11390
11390
|
}
|
|
11391
11391
|
}
|
|
11392
11392
|
|
|
11393
|
-
var engine$1 = "26.5.
|
|
11393
|
+
var engine$1 = "26.5.4";
|
|
11394
11394
|
var bullet = "3.26";
|
|
11395
11395
|
var lua = "5.4.3";
|
|
11396
11396
|
var packageVersionInfo = {
|
|
@@ -71206,7 +71206,9 @@ class SgItem extends SgResourceOwner {
|
|
|
71206
71206
|
autoRecreate = true;
|
|
71207
71207
|
// item nodes are nodes below an sgitem that are typically owned by the item and not editable.
|
|
71208
71208
|
// they can be for example further on the fly sgitems, or internal mesh nodes.
|
|
71209
|
+
// The updated timestamp helps to determine if the subnodes need to be refreshed for example in the UI
|
|
71209
71210
|
itemSubNodes = [];
|
|
71211
|
+
itemSubNodesUpdatedTs = 0;
|
|
71210
71212
|
recreationMutex = new Mutex();
|
|
71211
71213
|
container = new Group();
|
|
71212
71214
|
boxHelper;
|
|
@@ -71297,6 +71299,12 @@ class SgItem extends SgResourceOwner {
|
|
|
71297
71299
|
getItemSubNodes() {
|
|
71298
71300
|
return this.itemSubNodes;
|
|
71299
71301
|
}
|
|
71302
|
+
getItemSubNodesUpdatedTs() {
|
|
71303
|
+
return this.itemSubNodesUpdatedTs;
|
|
71304
|
+
}
|
|
71305
|
+
hasSubNodes() {
|
|
71306
|
+
return this.itemSubNodes.length > 0;
|
|
71307
|
+
}
|
|
71300
71308
|
findSubNodeById(id, subNodes) {
|
|
71301
71309
|
subNodes = subNodes ?? this.itemSubNodes;
|
|
71302
71310
|
for (const subNode of subNodes) {
|
|
@@ -71322,9 +71330,12 @@ class SgItem extends SgResourceOwner {
|
|
|
71322
71330
|
subNode.dispose();
|
|
71323
71331
|
});
|
|
71324
71332
|
this.itemSubNodes = [];
|
|
71333
|
+
this.itemSubNodesUpdatedTs = performance.now();
|
|
71325
71334
|
}
|
|
71326
71335
|
createItemSubNodesFromObject3D(obj) {
|
|
71327
71336
|
this.itemSubNodes = [this._createItemSubNodesFromObject3D(obj, this.block.id, 0)];
|
|
71337
|
+
this.itemSubNodesUpdatedTs = performance.now();
|
|
71338
|
+
//console.log("Item subnodes refreshed.", this, this.itemSubNodes);
|
|
71328
71339
|
this.updateChildSubnodeParenting();
|
|
71329
71340
|
this.engine.eventBus.$emit('sgitem:itemNodesUpdated', this);
|
|
71330
71341
|
}
|