Skip to content

Commit 4c730bb

Browse files
committed
fix(core): add geometryStamp and updateGeometryStamp to types
1 parent 6ad06e1 commit 4c730bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/core/src/lib/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ export interface NgtLocalInstanceState {
205205
objects: NgtInstanceNode[];
206206
nonObjects: NgtInstanceNode[];
207207
parent: NgtInstanceNode | null;
208+
geometryStamp: number;
208209
}
209210

210211
export interface NgtLocalState {
@@ -216,10 +217,13 @@ export interface NgtLocalState {
216217
parent: Signal<NgtLocalInstanceState['parent']>;
217218
objects: Signal<NgtLocalInstanceState['objects']>;
218219
nonObjects: Signal<NgtLocalInstanceState['nonObjects']>;
220+
219221
// shortcut to add/remove object to list
220222
add: (instance: NgtInstanceNode, type: 'objects' | 'nonObjects') => void;
221223
remove: (instance: NgtInstanceNode, type: 'objects' | 'nonObjects') => void;
222224
setParent: (parent: NgtInstanceNode | null) => void;
225+
updateGeometryStamp: () => void;
226+
223227
// if this THREE instance is a ngt-primitive
224228
primitive?: boolean;
225229
// if this THREE object has any events bound to it

0 commit comments

Comments
 (0)