angular-three 4.2.1 → 4.2.3
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/fesm2022/angular-three-dom.mjs +26 -26
- package/fesm2022/angular-three-dom.mjs.map +1 -1
- package/fesm2022/angular-three-testing.mjs +5 -5
- package/fesm2022/angular-three-testing.mjs.map +1 -1
- package/fesm2022/angular-three.mjs +76 -66
- package/fesm2022/angular-three.mjs.map +1 -1
- package/package.json +1 -1
- package/types/angular-three.d.ts +5 -3
|
@@ -187,10 +187,10 @@ class NgtCommonDirective {
|
|
|
187
187
|
this.view = this.vcr.createEmbeddedView(this.template);
|
|
188
188
|
this.view.detectChanges();
|
|
189
189
|
}
|
|
190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
191
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
190
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtCommonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
191
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: NgtCommonDirective, isStandalone: true, ngImport: i0 }); }
|
|
192
192
|
}
|
|
193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtCommonDirective, decorators: [{
|
|
194
194
|
type: Directive
|
|
195
195
|
}], ctorParameters: () => [] });
|
|
196
196
|
|
|
@@ -215,12 +215,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
215
215
|
class NgtArgs extends NgtCommonDirective {
|
|
216
216
|
constructor() {
|
|
217
217
|
super();
|
|
218
|
-
this.args = input.required(...(ngDevMode ? [{ debugName: "args" }] : []));
|
|
219
|
-
this.linkedValue = linkedSignal(this.args, ...(ngDevMode ? [{ debugName: "linkedValue" }] : []));
|
|
218
|
+
this.args = input.required(...(ngDevMode ? [{ debugName: "args" }] : /* istanbul ignore next */ []));
|
|
219
|
+
this.linkedValue = linkedSignal(this.args, ...(ngDevMode ? [{ debugName: "linkedValue" }] : /* istanbul ignore next */ []));
|
|
220
220
|
this.shouldSkipRender = computed(() => {
|
|
221
221
|
const args = this.args();
|
|
222
222
|
return args == null || !Array.isArray(args) || (args.length === 1 && args[0] === null);
|
|
223
|
-
}, ...(ngDevMode ? [{ debugName: "shouldSkipRender" }] : []));
|
|
223
|
+
}, ...(ngDevMode ? [{ debugName: "shouldSkipRender" }] : /* istanbul ignore next */ []));
|
|
224
224
|
const commentNode = this.commentNode;
|
|
225
225
|
commentNode.data = NGT_ARGS_FLAG;
|
|
226
226
|
commentNode[NGT_ARGS_FLAG] = true;
|
|
@@ -232,10 +232,10 @@ class NgtArgs extends NgtCommonDirective {
|
|
|
232
232
|
validate() {
|
|
233
233
|
return !this.injected && !!this.injectedValue?.length;
|
|
234
234
|
}
|
|
235
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
236
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
235
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtArgs, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
236
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtArgs, isStandalone: true, selector: "ng-template[args]", inputs: { args: { classPropertyName: "args", publicName: "args", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
237
237
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtArgs, decorators: [{
|
|
239
239
|
type: Directive,
|
|
240
240
|
args: [{ selector: 'ng-template[args]' }]
|
|
241
241
|
}], ctorParameters: () => [], propDecorators: { args: [{ type: i0.Input, args: [{ isSignal: true, alias: "args", required: true }] }] } });
|
|
@@ -538,7 +538,7 @@ function signalState(initialState) {
|
|
|
538
538
|
const stateSource = stateKeys.reduce((signalsDict, key) => Object.assign(signalsDict, {
|
|
539
539
|
[key]: signal(initialState[key]),
|
|
540
540
|
}), {});
|
|
541
|
-
const signalState = computed(() => stateKeys.reduce((state, key) => ({ ...state, [key]: stateSource[key]() }), {}), ...(ngDevMode ? [{ debugName: "signalState" }] : []));
|
|
541
|
+
const signalState = computed(() => stateKeys.reduce((state, key) => ({ ...state, [key]: stateSource[key]() }), {}), ...(ngDevMode ? [{ debugName: "signalState" }] : /* istanbul ignore next */ []));
|
|
542
542
|
Object.defineProperties(signalState, {
|
|
543
543
|
[STATE_SOURCE]: { value: stateSource },
|
|
544
544
|
update: { value: patchState.bind(null, signalState) },
|
|
@@ -614,6 +614,15 @@ function updateCamera(camera, size) {
|
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
|
|
617
|
+
/** RFC 4122 v4 UUID — safe in non-secure contexts (e.g. http:// on LAN). */
|
|
618
|
+
function uuidv4Fallback() {
|
|
619
|
+
const bytes = new Uint8Array(16);
|
|
620
|
+
crypto.getRandomValues(bytes);
|
|
621
|
+
bytes[6] = (bytes[6] & 0x0f) | 0x40;
|
|
622
|
+
bytes[8] = (bytes[8] & 0x3f) | 0x80;
|
|
623
|
+
const hex = Array.from(bytes, (b) => b.toString(16).padStart(2, '0'));
|
|
624
|
+
return `${hex.slice(0, 4).join('')}-${hex.slice(4, 6).join('')}-${hex.slice(6, 8).join('')}-${hex.slice(8, 10).join('')}-${hex.slice(10).join('')}`;
|
|
625
|
+
}
|
|
617
626
|
/**
|
|
618
627
|
* @deprecated Use `getInstanceState` instead. Will be removed in 5.0.0
|
|
619
628
|
* @param obj - The object to get local state from
|
|
@@ -709,8 +718,9 @@ function prepare(object, type, instanceState) {
|
|
|
709
718
|
const nonObjectsChanged = computed(() => {
|
|
710
719
|
const [_nonObjects] = [nonObjects(), geometryStamp()];
|
|
711
720
|
return _nonObjects;
|
|
712
|
-
}, ...(ngDevMode ? [{ debugName: "nonObjectsChanged" }] : []));
|
|
713
|
-
instance.__ngt_id__ =
|
|
721
|
+
}, ...(ngDevMode ? [{ debugName: "nonObjectsChanged" }] : /* istanbul ignore next */ []));
|
|
722
|
+
instance.__ngt_id__ =
|
|
723
|
+
typeof crypto.randomUUID === 'function' ? crypto.randomUUID() : uuidv4Fallback();
|
|
714
724
|
instance.__ngt__ = {
|
|
715
725
|
previousAttach: null,
|
|
716
726
|
type,
|
|
@@ -2069,10 +2079,10 @@ class NgtRendererFactory2 {
|
|
|
2069
2079
|
this.rendererMap.set(type.id, (renderer = new NgtRenderer2(delegateRenderer, this.catalogue, this.document, this.options)));
|
|
2070
2080
|
return renderer;
|
|
2071
2081
|
}
|
|
2072
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2073
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
2082
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtRendererFactory2, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2083
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtRendererFactory2 }); }
|
|
2074
2084
|
}
|
|
2075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtRendererFactory2, decorators: [{
|
|
2076
2086
|
type: Injectable
|
|
2077
2087
|
}], ctorParameters: () => [{ type: i0.RendererFactory2 }] });
|
|
2078
2088
|
/**
|
|
@@ -2888,7 +2898,7 @@ function resolveRef(ref) {
|
|
|
2888
2898
|
class NgtParent extends NgtCommonDirective {
|
|
2889
2899
|
constructor() {
|
|
2890
2900
|
super();
|
|
2891
|
-
this.parent = input.required(...(ngDevMode ? [{ debugName: "parent" }] : []));
|
|
2901
|
+
this.parent = input.required(...(ngDevMode ? [{ debugName: "parent" }] : /* istanbul ignore next */ []));
|
|
2892
2902
|
this.store = injectStore();
|
|
2893
2903
|
this._parent = computed(() => {
|
|
2894
2904
|
const parent = this.parent();
|
|
@@ -2900,9 +2910,9 @@ class NgtParent extends NgtCommonDirective {
|
|
|
2900
2910
|
return scene.getObjectByName(rawParent);
|
|
2901
2911
|
}
|
|
2902
2912
|
return resolveRef(rawParent);
|
|
2903
|
-
}, ...(ngDevMode ? [{ debugName: "_parent" }] : []));
|
|
2904
|
-
this.linkedValue = linkedSignal(this._parent, ...(ngDevMode ? [{ debugName: "linkedValue" }] : []));
|
|
2905
|
-
this.shouldSkipRender = computed(() => !this._parent(), ...(ngDevMode ? [{ debugName: "shouldSkipRender" }] : []));
|
|
2913
|
+
}, ...(ngDevMode ? [{ debugName: "_parent" }] : /* istanbul ignore next */ []));
|
|
2914
|
+
this.linkedValue = linkedSignal(this._parent, ...(ngDevMode ? [{ debugName: "linkedValue" }] : /* istanbul ignore next */ []));
|
|
2915
|
+
this.shouldSkipRender = computed(() => !this._parent(), ...(ngDevMode ? [{ debugName: "shouldSkipRender" }] : /* istanbul ignore next */ []));
|
|
2906
2916
|
const commentNode = this.commentNode;
|
|
2907
2917
|
commentNode.data = NGT_PARENT_FLAG;
|
|
2908
2918
|
commentNode[NGT_PARENT_FLAG] = true;
|
|
@@ -2920,10 +2930,10 @@ class NgtParent extends NgtCommonDirective {
|
|
|
2920
2930
|
commentNode[NGT_INTERNAL_SET_PARENT_COMMENT_FLAG](this.injectedValue);
|
|
2921
2931
|
}
|
|
2922
2932
|
}
|
|
2923
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2924
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
2933
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtParent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2934
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtParent, isStandalone: true, selector: "ng-template[parent]", inputs: { parent: { classPropertyName: "parent", publicName: "parent", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
2925
2935
|
}
|
|
2926
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtParent, decorators: [{
|
|
2927
2937
|
type: Directive,
|
|
2928
2938
|
args: [{ selector: 'ng-template[parent]' }]
|
|
2929
2939
|
}], ctorParameters: () => [], propDecorators: { parent: [{ type: i0.Input, args: [{ isSignal: true, alias: "parent", required: true }] }] } });
|
|
@@ -2945,8 +2955,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
2945
2955
|
*/
|
|
2946
2956
|
class NgtSelectionApi {
|
|
2947
2957
|
constructor() {
|
|
2948
|
-
this.enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : {}), alias: 'selection', transform: booleanAttribute });
|
|
2949
|
-
this.source = signal([], ...(ngDevMode ? [{ debugName: "source" }] : []));
|
|
2958
|
+
this.enabled = input(true, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), alias: 'selection', transform: booleanAttribute });
|
|
2959
|
+
this.source = signal([], ...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
|
|
2950
2960
|
this.selected = this.source.asReadonly();
|
|
2951
2961
|
}
|
|
2952
2962
|
update(...args) {
|
|
@@ -2954,10 +2964,10 @@ class NgtSelectionApi {
|
|
|
2954
2964
|
return;
|
|
2955
2965
|
this.source.update(...args);
|
|
2956
2966
|
}
|
|
2957
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2958
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
2967
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtSelectionApi, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2968
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtSelectionApi, isStandalone: true, selector: "[selection]", inputs: { enabled: { classPropertyName: "enabled", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
2959
2969
|
}
|
|
2960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtSelectionApi, decorators: [{
|
|
2961
2971
|
type: Directive,
|
|
2962
2972
|
args: [{ selector: '[selection]' }]
|
|
2963
2973
|
}], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }] } });
|
|
@@ -2976,7 +2986,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImpor
|
|
|
2976
2986
|
*/
|
|
2977
2987
|
class NgtSelect {
|
|
2978
2988
|
constructor() {
|
|
2979
|
-
this.enabled = input(false, { ...(ngDevMode ? { debugName: "enabled" } : {}), transform: booleanAttribute, alias: 'select' });
|
|
2989
|
+
this.enabled = input(false, { ...(ngDevMode ? { debugName: "enabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute, alias: 'select' });
|
|
2980
2990
|
const elementRef = inject(ElementRef);
|
|
2981
2991
|
const selectionApi = inject(NgtSelectionApi);
|
|
2982
2992
|
effect((onCleanup) => {
|
|
@@ -3012,10 +3022,10 @@ class NgtSelect {
|
|
|
3012
3022
|
});
|
|
3013
3023
|
});
|
|
3014
3024
|
}
|
|
3015
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3016
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
3025
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3026
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtSelect, isStandalone: true, selector: "ngt-group[select], ngt-mesh[select]", inputs: { enabled: { classPropertyName: "enabled", publicName: "select", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
3017
3027
|
}
|
|
3018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtSelect, decorators: [{
|
|
3019
3029
|
type: Directive,
|
|
3020
3030
|
args: [{ selector: 'ngt-group[select], ngt-mesh[select]' }]
|
|
3021
3031
|
}], ctorParameters: () => [], propDecorators: { enabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "select", required: false }] }] } });
|
|
@@ -3078,10 +3088,10 @@ class NgtHTML {
|
|
|
3078
3088
|
delete host.nativeElement[NGT_DOM_PARENT_FLAG];
|
|
3079
3089
|
});
|
|
3080
3090
|
}
|
|
3081
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3082
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
3091
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtHTML, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3092
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: NgtHTML, isStandalone: true, ngImport: i0 }); }
|
|
3083
3093
|
}
|
|
3084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtHTML, decorators: [{
|
|
3085
3095
|
type: Directive
|
|
3086
3096
|
}], ctorParameters: () => [] });
|
|
3087
3097
|
|
|
@@ -3136,7 +3146,7 @@ function load(loaderConstructorFactory, inputs, { extensions, onLoad, onProgress
|
|
|
3136
3146
|
*/
|
|
3137
3147
|
function _injectLoader(loaderConstructorFactory, inputs, { extensions, onProgress, onLoad, injector, } = {}) {
|
|
3138
3148
|
return assertInjector(_injectLoader, injector, () => {
|
|
3139
|
-
const response = signal(null, ...(ngDevMode ? [{ debugName: "response" }] : []));
|
|
3149
|
+
const response = signal(null, ...(ngDevMode ? [{ debugName: "response" }] : /* istanbul ignore next */ []));
|
|
3140
3150
|
const cachedResultPromisesEffect = load(loaderConstructorFactory, inputs, {
|
|
3141
3151
|
extensions,
|
|
3142
3152
|
onProgress,
|
|
@@ -3410,10 +3420,10 @@ class NgtHexify {
|
|
|
3410
3420
|
const hex = component.toString(16);
|
|
3411
3421
|
return hex.length === 1 ? '0' + hex : hex;
|
|
3412
3422
|
}
|
|
3413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3414
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.
|
|
3423
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtHexify, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3424
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: NgtHexify, isStandalone: true, name: "hexify" }); }
|
|
3415
3425
|
}
|
|
3416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtHexify, decorators: [{
|
|
3417
3427
|
type: Pipe,
|
|
3418
3428
|
args: [{ name: 'hexify', pure: true }]
|
|
3419
3429
|
}] });
|
|
@@ -3587,7 +3597,7 @@ class NgtPortalAutoRender {
|
|
|
3587
3597
|
this.portalStore = injectStore({ host: true });
|
|
3588
3598
|
this.parentStore = injectStore({ skipSelf: true });
|
|
3589
3599
|
this.portal = inject(NgtPortalImpl, { host: true });
|
|
3590
|
-
this.renderPriority = input(1, { ...(ngDevMode ? { debugName: "renderPriority" } : {}), alias: 'autoRender', transform: (value) => numberAttribute(value, 1) });
|
|
3600
|
+
this.renderPriority = input(1, { ...(ngDevMode ? { debugName: "renderPriority" } : /* istanbul ignore next */ {}), alias: 'autoRender', transform: (value) => numberAttribute(value, 1) });
|
|
3591
3601
|
effect((onCleanup) => {
|
|
3592
3602
|
const portalRendered = this.portal.portalRendered();
|
|
3593
3603
|
if (!portalRendered)
|
|
@@ -3616,10 +3626,10 @@ class NgtPortalAutoRender {
|
|
|
3616
3626
|
onCleanup(() => cleanup());
|
|
3617
3627
|
});
|
|
3618
3628
|
}
|
|
3619
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3620
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
3629
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtPortalAutoRender, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3630
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtPortalAutoRender, isStandalone: true, selector: "ngt-portal[autoRender]", inputs: { renderPriority: { classPropertyName: "renderPriority", publicName: "autoRender", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
3621
3631
|
}
|
|
3622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtPortalAutoRender, decorators: [{
|
|
3623
3633
|
type: Directive,
|
|
3624
3634
|
args: [{ selector: 'ngt-portal[autoRender]' }]
|
|
3625
3635
|
}], ctorParameters: () => [], propDecorators: { renderPriority: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoRender", required: false }] }] } });
|
|
@@ -3651,10 +3661,10 @@ class NgtPortalContent {
|
|
|
3651
3661
|
commentNode[NGT_PORTAL_CONTENT_FLAG] = store;
|
|
3652
3662
|
commentNode[NGT_DOM_PARENT_FLAG] = host.nativeElement;
|
|
3653
3663
|
}
|
|
3654
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3655
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.
|
|
3664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtPortalContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3665
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.9", type: NgtPortalContent, isStandalone: true, selector: "ng-template[portalContent]", ngImport: i0 }); }
|
|
3656
3666
|
}
|
|
3657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtPortalContent, decorators: [{
|
|
3658
3668
|
type: Directive,
|
|
3659
3669
|
args: [{ selector: 'ng-template[portalContent]' }]
|
|
3660
3670
|
}], ctorParameters: () => [] });
|
|
@@ -3710,8 +3720,8 @@ function mergeState(previousRoot, store, container, pointer, raycaster, events,
|
|
|
3710
3720
|
*/
|
|
3711
3721
|
class NgtPortalImpl {
|
|
3712
3722
|
constructor() {
|
|
3713
|
-
this.container = input.required(...(ngDevMode ? [{ debugName: "container" }] : []));
|
|
3714
|
-
this.state = input({}, ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
3723
|
+
this.container = input.required(...(ngDevMode ? [{ debugName: "container" }] : /* istanbul ignore next */ []));
|
|
3724
|
+
this.state = input({}, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
3715
3725
|
this.contentRef = contentChild.required(NgtPortalContent, { read: TemplateRef });
|
|
3716
3726
|
this.anchorRef = contentChild.required(NgtPortalContent, { read: ViewContainerRef });
|
|
3717
3727
|
this.previousStore = injectStore({ skipSelf: true });
|
|
@@ -3720,7 +3730,7 @@ class NgtPortalImpl {
|
|
|
3720
3730
|
this.size = pick(this.state, 'size');
|
|
3721
3731
|
this.events = pick(this.state, 'events');
|
|
3722
3732
|
this.restState = omit(this.state, ['size', 'events']);
|
|
3723
|
-
this.portalContentRendered = signal(false, ...(ngDevMode ? [{ debugName: "portalContentRendered" }] : []));
|
|
3733
|
+
this.portalContentRendered = signal(false, ...(ngDevMode ? [{ debugName: "portalContentRendered" }] : /* istanbul ignore next */ []));
|
|
3724
3734
|
this.portalRendered = this.portalContentRendered.asReadonly();
|
|
3725
3735
|
extend({ Group });
|
|
3726
3736
|
effect(() => {
|
|
@@ -3749,8 +3759,8 @@ class NgtPortalImpl {
|
|
|
3749
3759
|
this.portalContentRendered.set(true);
|
|
3750
3760
|
});
|
|
3751
3761
|
}
|
|
3752
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3753
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
3762
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtPortalImpl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3763
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: NgtPortalImpl, isStandalone: true, selector: "ngt-portal", inputs: { container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: true, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
3754
3764
|
{
|
|
3755
3765
|
provide: NGT_STORE,
|
|
3756
3766
|
useFactory: (previousStore) => {
|
|
@@ -3777,7 +3787,7 @@ class NgtPortalImpl {
|
|
|
3777
3787
|
}
|
|
3778
3788
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3779
3789
|
}
|
|
3780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtPortalImpl, decorators: [{
|
|
3781
3791
|
type: Component,
|
|
3782
3792
|
args: [{
|
|
3783
3793
|
selector: 'ngt-portal',
|
|
@@ -4147,12 +4157,12 @@ class NgtRoutedScene {
|
|
|
4147
4157
|
onCleanup(() => sub.unsubscribe());
|
|
4148
4158
|
});
|
|
4149
4159
|
}
|
|
4150
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
4151
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
4160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtRoutedScene, deps: [{ token: i1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4161
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: NgtRoutedScene, isStandalone: true, selector: "ngt-routed-scene", ngImport: i0, template: `
|
|
4152
4162
|
<router-outlet />
|
|
4153
4163
|
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
4154
4164
|
}
|
|
4155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
4165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtRoutedScene, decorators: [{
|
|
4156
4166
|
type: Component,
|
|
4157
4167
|
args: [{
|
|
4158
4168
|
selector: 'ngt-routed-scene',
|
|
@@ -4189,7 +4199,7 @@ function beforeRender(cb, { priority = 0, injector } = {}) {
|
|
|
4189
4199
|
const p = priority();
|
|
4190
4200
|
const sub = store.snapshot.internal.subscribe(cb, p, store);
|
|
4191
4201
|
onCleanup(() => sub());
|
|
4192
|
-
}, ...(ngDevMode ? [{ debugName: "ref" }] : []));
|
|
4202
|
+
}, ...(ngDevMode ? [{ debugName: "ref" }] : /* istanbul ignore next */ []));
|
|
4193
4203
|
inject(DestroyRef).onDestroy(() => void ref.destroy());
|
|
4194
4204
|
return ref;
|
|
4195
4205
|
});
|
|
@@ -4251,13 +4261,13 @@ class NgtElementEvents {
|
|
|
4251
4261
|
this.change = output();
|
|
4252
4262
|
this.disposed = output();
|
|
4253
4263
|
// NOTE: we use model here to allow for the hostDirective host to set this value
|
|
4254
|
-
this.events = model(undefined, { ...(ngDevMode ? { debugName: "events" } : {}), alias: 'elementEvents' });
|
|
4264
|
+
this.events = model(undefined, { ...(ngDevMode ? { debugName: "events" } : /* istanbul ignore next */ {}), alias: 'elementEvents' });
|
|
4255
4265
|
const obj = computed(() => {
|
|
4256
4266
|
const ngtObject = this.events();
|
|
4257
4267
|
if (typeof ngtObject === 'function')
|
|
4258
4268
|
return ngtObject();
|
|
4259
4269
|
return ngtObject;
|
|
4260
|
-
}, ...(ngDevMode ? [{ debugName: "obj" }] : []));
|
|
4270
|
+
}, ...(ngDevMode ? [{ debugName: "obj" }] : /* istanbul ignore next */ []));
|
|
4261
4271
|
elementEvents(obj, {
|
|
4262
4272
|
// @ts-expect-error - different type
|
|
4263
4273
|
created: this.emitEvent('created'),
|
|
@@ -4276,10 +4286,10 @@ class NgtElementEvents {
|
|
|
4276
4286
|
emitEvent(eventName) {
|
|
4277
4287
|
return this[eventName].emit.bind(this[eventName]);
|
|
4278
4288
|
}
|
|
4279
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
4280
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
4289
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtElementEvents, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4290
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtElementEvents, isStandalone: true, selector: "[elementEvents]", inputs: { events: { classPropertyName: "events", publicName: "elementEvents", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { created: "created", attached: "attached", updated: "updated", added: "added", removed: "removed", childadded: "childadded", childremoved: "childremoved", change: "change", disposed: "disposed", events: "elementEventsChange" }, ngImport: i0 }); }
|
|
4281
4291
|
}
|
|
4282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
4292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtElementEvents, decorators: [{
|
|
4283
4293
|
type: Directive,
|
|
4284
4294
|
args: [{ selector: '[elementEvents]' }]
|
|
4285
4295
|
}], ctorParameters: () => [], propDecorators: { created: [{ type: i0.Output, args: ["created"] }], attached: [{ type: i0.Output, args: ["attached"] }], updated: [{ type: i0.Output, args: ["updated"] }], added: [{ type: i0.Output, args: ["added"] }], removed: [{ type: i0.Output, args: ["removed"] }], childadded: [{ type: i0.Output, args: ["childadded"] }], childremoved: [{ type: i0.Output, args: ["childremoved"] }], change: [{ type: i0.Output, args: ["change"] }], disposed: [{ type: i0.Output, args: ["disposed"] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "elementEvents", required: false }] }, { type: i0.Output, args: ["elementEventsChange"] }] } });
|
|
@@ -4370,13 +4380,13 @@ class NgtObjectEvents {
|
|
|
4370
4380
|
this.pointercancel = output();
|
|
4371
4381
|
this.wheel = output();
|
|
4372
4382
|
// NOTE: we use model here to allow for the hostDirective host to set this value
|
|
4373
|
-
this.events = model(undefined, { ...(ngDevMode ? { debugName: "events" } : {}), alias: 'objectEvents' });
|
|
4383
|
+
this.events = model(undefined, { ...(ngDevMode ? { debugName: "events" } : /* istanbul ignore next */ {}), alias: 'objectEvents' });
|
|
4374
4384
|
const obj = computed(() => {
|
|
4375
4385
|
const ngtObject = this.events();
|
|
4376
4386
|
if (typeof ngtObject === 'function')
|
|
4377
4387
|
return ngtObject();
|
|
4378
4388
|
return ngtObject;
|
|
4379
|
-
}, ...(ngDevMode ? [{ debugName: "obj" }] : []));
|
|
4389
|
+
}, ...(ngDevMode ? [{ debugName: "obj" }] : /* istanbul ignore next */ []));
|
|
4380
4390
|
objectEvents(obj, {
|
|
4381
4391
|
click: this.emitEvent('click'),
|
|
4382
4392
|
dblclick: this.emitEvent('dblclick'),
|
|
@@ -4396,10 +4406,10 @@ class NgtObjectEvents {
|
|
|
4396
4406
|
emitEvent(eventName) {
|
|
4397
4407
|
return this[eventName].emit.bind(this[eventName]);
|
|
4398
4408
|
}
|
|
4399
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
4400
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.
|
|
4409
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtObjectEvents, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4410
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: NgtObjectEvents, isStandalone: true, selector: "[objectEvents]", inputs: { events: { classPropertyName: "events", publicName: "objectEvents", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click", dblclick: "dblclick", contextmenu: "contextmenu", pointerup: "pointerup", pointerdown: "pointerdown", pointerover: "pointerover", pointerout: "pointerout", pointerenter: "pointerenter", pointerleave: "pointerleave", pointermove: "pointermove", pointermissed: "pointermissed", pointercancel: "pointercancel", wheel: "wheel", events: "objectEventsChange" }, ngImport: i0 }); }
|
|
4401
4411
|
}
|
|
4402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
4412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: NgtObjectEvents, decorators: [{
|
|
4403
4413
|
type: Directive,
|
|
4404
4414
|
args: [{ selector: '[objectEvents]' }]
|
|
4405
4415
|
}], ctorParameters: () => [], propDecorators: { click: [{ type: i0.Output, args: ["click"] }], dblclick: [{ type: i0.Output, args: ["dblclick"] }], contextmenu: [{ type: i0.Output, args: ["contextmenu"] }], pointerup: [{ type: i0.Output, args: ["pointerup"] }], pointerdown: [{ type: i0.Output, args: ["pointerdown"] }], pointerover: [{ type: i0.Output, args: ["pointerover"] }], pointerout: [{ type: i0.Output, args: ["pointerout"] }], pointerenter: [{ type: i0.Output, args: ["pointerenter"] }], pointerleave: [{ type: i0.Output, args: ["pointerleave"] }], pointermove: [{ type: i0.Output, args: ["pointermove"] }], pointermissed: [{ type: i0.Output, args: ["pointermissed"] }], pointercancel: [{ type: i0.Output, args: ["pointercancel"] }], wheel: [{ type: i0.Output, args: ["wheel"] }], events: [{ type: i0.Input, args: [{ isSignal: true, alias: "objectEvents", required: false }] }, { type: i0.Output, args: ["objectEventsChange"] }] } });
|
|
@@ -4478,5 +4488,5 @@ function hasListener(...emitterRefs) {
|
|
|
4478
4488
|
* Generated bundle index. Do not edit.
|
|
4479
4489
|
*/
|
|
4480
4490
|
|
|
4481
|
-
export { NGT_APPLY_PROPS, NGT_ARGS_FLAG, NGT_CANVAS_CONTENT_FLAG, NGT_CATALOGUE, NGT_DELEGATE_RENDERER_DESTROY_NODE_PATCHED_FLAG, NGT_DOM_PARENT_FLAG, NGT_GET_NODE_ATTRIBUTE_FLAG, NGT_HTML_FLAG, NGT_INTERNAL_ADD_COMMENT_FLAG, NGT_INTERNAL_SET_PARENT_COMMENT_FLAG, NGT_LOOP, NGT_PARENT_FLAG, NGT_PORTAL_CONTENT_FLAG, NGT_RENDERER_NODE_FLAG, NGT_RENDERER_OPTIONS, NGT_STORE, NgtArgs, NgtElementEvents, NgtHTML, NgtHexify, NgtObjectEvents, NgtParent, NgtPortal, NgtPortalAutoRender, NgtPortalContent, NgtPortalImpl, NgtRenderer2, NgtRendererFactory2, NgtRoutedScene, NgtSelect, NgtSelection, NgtSelectionApi, THREE_NATIVE_EVENTS, addAfterEffect, addEffect, addTail, applyProps, attach, beforeRender, canvasRootInitializer, checkNeedsUpdate, checkUpdate, createAttachFunction, createEvents, detach, dispose, elementEvents, extend, flushGlobalEffects, getEmitter, getInstanceState, getLocalState, hasListener, injectBeforeRender, injectCatalogue, injectLoader, injectLoop, injectObjectEvents, injectStore, invalidateInstance, is, loaderResource, makeCameraInstance, makeDpr, makeId, makeObjectGraph, makeRendererInstance, merge, objectEvents, omit, pick, prepare, provideHTMLDomElement, remove, removeInteractivity, resolveInstanceKey, resolveRef, roots, signalState, storeFactory, toDeepSignal, updateCamera, vector2, vector3, vector4 };
|
|
4491
|
+
export { NGT_APPLY_PROPS, NGT_ARGS_FLAG, NGT_CANVAS_CONTENT_FLAG, NGT_CATALOGUE, NGT_DELEGATE_RENDERER_DESTROY_NODE_PATCHED_FLAG, NGT_DOM_PARENT_FLAG, NGT_GET_NODE_ATTRIBUTE_FLAG, NGT_HTML_FLAG, NGT_INTERNAL_ADD_COMMENT_FLAG, NGT_INTERNAL_SET_PARENT_COMMENT_FLAG, NGT_LOOP, NGT_PARENT_FLAG, NGT_PORTAL_CONTENT_FLAG, NGT_RENDERER_NODE_FLAG, NGT_RENDERER_OPTIONS, NGT_STORE, NgtArgs, NgtElementEvents, NgtHTML, NgtHexify, NgtObjectEvents, NgtParent, NgtPortal, NgtPortalAutoRender, NgtPortalContent, NgtPortalImpl, NgtRenderer2, NgtRendererFactory2, NgtRoutedScene, NgtSelect, NgtSelection, NgtSelectionApi, THREE_NATIVE_EVENTS, addAfterEffect, addEffect, addTail, applyProps, attach, beforeRender, canvasRootInitializer, checkNeedsUpdate, checkUpdate, createAttachFunction, createEvents, detach, dispose, elementEvents, extend, flushGlobalEffects, getEmitter, getInstanceState, getLocalState, hasListener, injectBeforeRender, injectCatalogue, injectLoader, injectLoop, injectObjectEvents, injectStore, invalidateInstance, is, loaderResource, makeCameraInstance, makeDpr, makeId, makeObjectGraph, makeRendererInstance, merge, objectEvents, omit, pick, prepare, provideHTMLDomElement, remove, removeInteractivity, resolveInstanceKey, resolveRef, roots, signalState, storeFactory, toDeepSignal, updateCamera, uuidv4Fallback, vector2, vector3, vector4 };
|
|
4482
4492
|
//# sourceMappingURL=angular-three.mjs.map
|