Skip to content

Commit 9e82df2

Browse files
committed
feat(soba): gen gizmos entry; move PivotControls and TransformControls into gizmos
1 parent faf6867 commit 9e82df2

File tree

14 files changed

+30
-6
lines changed

14 files changed

+30
-6
lines changed

libs/soba/controls/src/index.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
export * from './lib/camera-controls';
22
export * from './lib/orbit-controls';
3-
export * from './lib/pivot-controls/pivot-controls';
43
export * from './lib/scroll-controls';
5-
export * from './lib/transform-controls';
4+
5+
import {
6+
NgtsPivotControls as GizmosPivotControls,
7+
NgtsPivotControlsOptions as GizmosPivotControlsOptions,
8+
} from 'angular-three-soba/gizmos';
9+
10+
/**
11+
* @deprecated Use `NgtsPivotControls` from `angular-three-soba/gizmos` instead.
12+
*/
13+
export const NgtsPivotControls = GizmosPivotControls;
14+
/**
15+
* @deprecated Use `NgtsPivotControlsOptions` from `angular-three-soba/gizmos` instead.
16+
*/
17+
export type NgtsPivotControlsOptions = GizmosPivotControlsOptions;

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+
}

libs/soba/gizmos/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './lib/pivot-controls/pivot-controls';
2+
export * from './lib/transform-controls';

0 commit comments

Comments
 (0)