angular-three 2.2.0 → 2.3.0
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/esm2022/lib/canvas.mjs +40 -42
- package/esm2022/lib/directives/args.mjs +17 -25
- package/esm2022/lib/directives/selection.mjs +47 -43
- package/esm2022/lib/html.mjs +3 -3
- package/esm2022/lib/instance.mjs +13 -2
- package/esm2022/lib/loader.mjs +18 -27
- package/esm2022/lib/pipes/hexify.mjs +3 -3
- package/esm2022/lib/portal.mjs +25 -27
- package/esm2022/lib/renderer/index.mjs +11 -5
- package/esm2022/lib/renderer/utils.mjs +4 -2
- package/esm2022/lib/routed-scene.mjs +3 -3
- package/esm2022/lib/types.mjs +1 -1
- package/esm2022/lib/utils/object-events.mjs +19 -22
- package/esm2022/nativescript/lib/canvas.mjs +3 -3
- package/esm2022/testing/lib/test-canvas.mjs +3 -3
- package/fesm2022/angular-three-nativescript.mjs +3 -3
- package/fesm2022/angular-three-testing.mjs +3 -3
- package/fesm2022/angular-three.mjs +197 -195
- package/fesm2022/angular-three.mjs.map +1 -1
- package/lib/canvas.d.ts +0 -1
- package/lib/directives/args.d.ts +0 -2
- package/lib/directives/selection.d.ts +1 -1
- package/lib/types.d.ts +2 -0
- package/package.json +1 -1
package/lib/canvas.d.ts
CHANGED
package/lib/directives/args.d.ts
CHANGED
|
@@ -2,9 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class NgtArgs {
|
|
3
3
|
args: import("@angular/core").InputSignal<any[] | null>;
|
|
4
4
|
private vcr;
|
|
5
|
-
private zone;
|
|
6
5
|
private template;
|
|
7
|
-
private autoEffect;
|
|
8
6
|
protected injected: boolean;
|
|
9
7
|
protected injectedArgs: any[] | null;
|
|
10
8
|
private view?;
|
|
@@ -5,7 +5,7 @@ export declare class NgtSelection {
|
|
|
5
5
|
enabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
6
6
|
private source;
|
|
7
7
|
selected: import("@angular/core").Signal<(Object3D<import("three").Object3DEventMap> | ElementRef<Object3D<import("three").Object3DEventMap>>)[]>;
|
|
8
|
-
update
|
|
8
|
+
update(...args: Parameters<typeof this.source.update>): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSelection, never>;
|
|
10
10
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgtSelection, "[ngtSelection]", never, { "enabled": { "alias": "ngtSelection"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
11
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export interface NgtLocalInstanceState {
|
|
|
153
153
|
objects: NgtInstanceNode[];
|
|
154
154
|
nonObjects: NgtInstanceNode[];
|
|
155
155
|
parent: NgtInstanceNode | null;
|
|
156
|
+
geometryStamp: number;
|
|
156
157
|
}
|
|
157
158
|
export interface NgtLocalState {
|
|
158
159
|
/** the store of the canvas that the instance is being rendered to */
|
|
@@ -164,6 +165,7 @@ export interface NgtLocalState {
|
|
|
164
165
|
add: (instance: NgtInstanceNode, type: 'objects' | 'nonObjects') => void;
|
|
165
166
|
remove: (instance: NgtInstanceNode, type: 'objects' | 'nonObjects') => void;
|
|
166
167
|
setParent: (parent: NgtInstanceNode | null) => void;
|
|
168
|
+
updateGeometryStamp: () => void;
|
|
167
169
|
primitive?: boolean;
|
|
168
170
|
eventCount: number;
|
|
169
171
|
handlers: Partial<NgtEventHandlers>;
|