Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e60aa62

Browse files
ChauChau
Chau
authored and
Chau
committed
refactor(core): clean up
1 parent a3f17c1 commit e60aa62

File tree

3 files changed

+4
-21
lines changed

3 files changed

+4
-21
lines changed

libs/core/src/lib/html.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
1-
// import {
2-
// AbstractType,
3-
// DestroyRef,
4-
// Directive,
5-
// ElementRef,
6-
// inject,
7-
// InjectionToken,
8-
// Provider,
9-
// ProviderToken,
10-
// Type,
11-
// } from '@angular/core';
12-
// import { HTML } from './renderer-old';
13-
// import { DOM_PARENT } from './renderer-old/constants';
14-
// import { injectStore } from './store';
15-
// import { NgtAnyRecord } from './types';
16-
171
import {
182
AbstractType,
193
DestroyRef,
@@ -29,7 +13,6 @@ import { NGT_DOM_PARENT_FLAG, NGT_HTML_FLAG } from './renderer/constants';
2913
import { injectStore } from './store';
3014
import { NgtAnyRecord } from './types';
3115

32-
//
3316
const NGT_HTML_DOM_ELEMENT = new InjectionToken<'gl' | HTMLElement>('NGT_HTML_DOM_ELEMENT');
3417

3518
export function provideHTMLDomElement(): Provider;

libs/core/src/lib/loader-resource.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ export function loaderResource<
111111
return resource({
112112
request: () => getLoaderRequestParams(input, loaderConstructorFactory, extensions),
113113
loader: async ({ request }) => {
114+
// TODO: use the abortSignal when THREE.Loader supports it
115+
114116
const loadedResults = await Promise.all(getLoaderPromises(request, onProgress));
115117

116118
let results: NgtLoaderResults<
@@ -142,9 +144,7 @@ export function loaderResource<
142144
) as NgtLoaderResults<TUrl, NgtBranchingReturn<TReturn, NgtGLTFLike, NgtGLTFLike & NgtObjectMap>>;
143145
}
144146

145-
if (onLoad) {
146-
onLoad(results);
147-
}
147+
if (onLoad) onLoad(results);
148148

149149
return results;
150150
},

libs/soba/abstractions/src/lib/text-3d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const defaultOptions: Partial<NgtThreeElements['ngt-mesh']> & NgtsText3DOptions
3434
};
3535

3636
@Component({
37-
selector: 'ngts-text-3d, ngts-text-3D',
37+
selector: 'ngts-text-3d,ngts-text-3D',
3838
template: `
3939
<ngt-mesh #mesh [parameters]="parameters()">
4040
<ngt-text-geometry #textGeometry *args="textArgs()" />

0 commit comments

Comments
 (0)