Skip to content

Commit 8ac565c

Browse files
committed
feat(soba): gizmo
1 parent 17c5123 commit 8ac565c

File tree

87 files changed

+1189
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1189
-117
lines changed

apps/sandbox/src/app/app.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { ApplicationConfig } from '@angular/core';
1+
import type { ApplicationConfig } from '@angular/core';
22

3-
export const appConfig: ApplicationConfig = {
4-
providers: [],
5-
};
3+
export const appConfig: ApplicationConfig = { providers: [] };

apps/sandbox/src/app/aviator/components/airplane/airplane.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, ElementRef, ViewChild, inject } from '@angular/core';
2-
import { NgtArgs, NgtBeforeRenderEvent } from 'angular-three';
2+
import { NgtArgs, type NgtBeforeRenderEvent } from 'angular-three';
33
import * as THREE from 'three';
44
import { GameService } from '../../services/game.service';
55
import { RefsService } from '../../services/refs.service';

apps/sandbox/src/app/aviator/components/airplane/pilot/pilot.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, Input, inject } from '@angular/core';
2-
import { NgtAfterAttach, NgtArgs, NgtBeforeRenderEvent, NgtRepeat } from 'angular-three';
2+
import { NgtArgs, NgtRepeat, type NgtAfterAttach, type NgtBeforeRenderEvent } from 'angular-three';
33
import * as THREE from 'three';
44
import { GameService } from '../../../services/game.service';
55
import { Colors } from '../../../utils/colors';

apps/sandbox/src/app/aviator/components/airplane/propeller/propeller.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, ElementRef, ViewChild, inject } from '@angular/core';
2-
import { NgtArgs, NgtBeforeRenderEvent, injectNgtRef } from 'angular-three';
2+
import { NgtArgs, injectNgtRef, type NgtBeforeRenderEvent } from 'angular-three';
33
import { GameService } from '../../../services/game.service';
44
import { Colors } from '../../../utils/colors';
55

apps/sandbox/src/app/aviator/components/sea/sea.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, Input, inject } from '@angular/core';
2-
import { NgtAfterAttach, NgtArgs, NgtBeforeRenderEvent, checkUpdate } from 'angular-three';
2+
import { NgtArgs, checkUpdate, type NgtAfterAttach, type NgtBeforeRenderEvent } from 'angular-three';
33
import * as THREE from 'three';
44
import { GameService } from '../../services/game.service';
55
import { WorldService } from '../../services/world.service';

apps/sandbox/src/app/aviator/components/sky/cloud/cloud.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgIf } from '@angular/common';
22
import { CUSTOM_ELEMENTS_SCHEMA, Component, EventEmitter, Output } from '@angular/core';
3-
import { NgtAfterAttach, NgtArgs, NgtBeforeRenderEvent, NgtRepeat, injectNgtRef } from 'angular-three';
3+
import { NgtArgs, NgtRepeat, injectNgtRef, type NgtAfterAttach, type NgtBeforeRenderEvent } from 'angular-three';
44
import { Colors } from '../../../utils/colors';
55

66
@Component({

apps/sandbox/src/app/aviator/components/sky/sky.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, inject } from '@angular/core';
2-
import { NgtArgs, NgtBeforeRenderEvent, NgtRepeat } from 'angular-three';
2+
import { NgtArgs, NgtRepeat, type NgtBeforeRenderEvent } from 'angular-three';
33
import { GameService } from '../../services/game.service';
44
import { WorldService } from '../../services/world.service';
55
import { Cloud } from './cloud/cloud.component';

apps/sandbox/src/app/aviator/services/collectible.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Injectable, inject } from '@angular/core';
22
import { injectNgtStore } from 'angular-three';
3-
import { Coin, Collectible } from '../utils/collectibles';
3+
import { Coin, type Collectible } from '../utils/collectibles';
44
import { randomFromRange } from '../utils/random-from-range';
55
import { GameService } from './game.service';
66
import { RefsService } from './refs.service';

apps/sandbox/src/app/skydiving/components/model.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NgIf } from '@angular/common';
2-
import { CUSTOM_ELEMENTS_SCHEMA, Component, Signal, effect } from '@angular/core';
2+
import { CUSTOM_ELEMENTS_SCHEMA, Component, effect, type Signal } from '@angular/core';
33
import { NgtArgs, injectBeforeRender } from 'angular-three';
4-
import { NgtsGLTF, injectNgtsGLTFLoader, injectNgtsTextureLoader } from 'angular-three-soba/loaders';
4+
import { injectNgtsGLTFLoader, injectNgtsTextureLoader, type NgtsGLTF } from 'angular-three-soba/loaders';
55
import { injectNgtsAnimations } from 'angular-three-soba/misc';
66
import * as THREE from 'three';
77

libs/core/src/lib/portal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import type { NgtEventManager } from './events';
2525
import { getLocalState, prepare } from './instance';
2626
import { injectNgtRef } from './ref';
2727
import { SPECIAL_INTERNAL_ADD_COMMENT } from './renderer/constants';
28-
import { NGT_STORE, NgtRenderState, injectNgtStore, type NgtSize, type NgtState } from './store';
28+
import { NGT_STORE, injectNgtStore, type NgtRenderState, type NgtSize, type NgtState } from './store';
2929
import { is } from './utils/is';
3030
import { safeDetectChanges } from './utils/safe-detect-changes';
3131
import { signalStore } from './utils/signal-store';

libs/plugin/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "../../tsconfig.base.json",
33
"compilerOptions": {
4-
"module": "commonjs"
4+
"module": "commonjs",
5+
"verbatimModuleSyntax": false
56
},
67
"files": [],
78
"include": [],

libs/postprocessing/src/lib/effect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Directive, Input, computed, effect } from '@angular/core';
2-
import { NgtAnyRecord, getLocalState, injectNgtRef, injectNgtStore, is, signalStore } from 'angular-three';
2+
import { getLocalState, injectNgtRef, injectNgtStore, is, signalStore, type NgtAnyRecord } from 'angular-three';
33
import { BlendFunction, Effect } from 'postprocessing';
44

55
export type NgtpEffectState = {

libs/postprocessing/src/lib/effects/pixelation/pixelation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, Input, computed } from '@angular/core';
22
import { NgtArgs, injectNgtRef, signalStore } from 'angular-three';
33
import { PixelationEffect } from 'postprocessing';
4-
import { NgtpEffectState } from '../../effect';
4+
import type { NgtpEffectState } from '../../effect';
55

66
export type NgtpPixelationState = {
77
granularity: number;

libs/postprocessing/src/lib/effects/smaa/smaa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
22
import { NgtArgs, extend } from 'angular-three';
33
import { EdgeDetectionMode, PredicationMode, SMAAEffect, SMAAPreset } from 'postprocessing';
4-
import { NgtpEffect, NgtpEffectState } from '../../effect';
4+
import { NgtpEffect, type NgtpEffectState } from '../../effect';
55

66
extend({ SMAAEffect });
77

libs/soba/abstractions/src/detailed/detailed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { CUSTOM_ELEMENTS_SCHEMA, Component, Input, effect } from '@angular/core';
2-
import { NgtBeforeRenderEvent, extend, injectNgtRef, signalStore, type NgtLOD } from 'angular-three';
2+
import { extend, injectNgtRef, signalStore, type NgtBeforeRenderEvent, type NgtLOD } from 'angular-three';
33
import { LOD } from 'three';
44

55
extend({ LOD });

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from '@angular/core';
1111
import { extend, injectNgtRef, NgtArgs, signalStore, type NgtMesh } from 'angular-three';
1212
import { Mesh } from 'three';
13-
import { Font, FontLoader, TextGeometry, TextGeometryParameters } from 'three-stdlib';
13+
import { Font, FontLoader, TextGeometry, type TextGeometryParameters } from 'three-stdlib';
1414

1515
declare type Glyph = { _cachedOutline: string[]; ha: number; o: string };
1616

libs/soba/cameras/src/cube-camera/cube-camera.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import {
77
Directive,
88
EmbeddedViewRef,
99
Input,
10-
OnInit,
11-
Signal,
1210
TemplateRef,
1311
ViewChild,
1412
ViewContainerRef,
@@ -18,6 +16,8 @@ import {
1816
runInInjectionContext,
1917
untracked,
2018
type Injector,
19+
type OnInit,
20+
type Signal,
2121
} from '@angular/core';
2222
import {
2323
NgtArgs,

libs/soba/gizmos/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# angular-three-soba/gizmos
2+
3+
Secondary entry point of `angular-three-soba`. It can be used by importing from `angular-three-soba/gizmos`.

libs/soba/gizmos/ng-package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"lib": {
3+
"entryFile": "src/index.ts"
4+
}
5+
}

0 commit comments

Comments
 (0)