Skip to content

Commit 82dffc4

Browse files
committed
build: expose more public dir
1 parent 2267e69 commit 82dffc4

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

libs/soba/.storybook/main.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const config: StorybookConfig & StorybookConfigVite = {
3434
plugins: [angular({ jit: true, tsconfig: './.storybook/tsconfig.json' }), nxViteTsPaths()],
3535
});
3636
},
37-
staticDirs: ['./public'],
37+
staticDirs: ['./public', './public/cube'],
3838
framework: {
3939
name: '@storybook/angular',
4040
options: {},
@@ -43,7 +43,3 @@ const config: StorybookConfig & StorybookConfigVite = {
4343
};
4444

4545
export default config;
46-
47-
// To customize your webpack configuration you can use the webpackFinal field.
48-
// Check https://storybook.js.org/docs/react/builders/webpack#extending-storybooks-webpack-config
49-
// and https://nx.dev/recipes/storybook/custom-builder-configs

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

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,42 @@
11
import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
22
import { Meta } from '@storybook/angular';
33
import { NgtsText3D } from 'angular-three-soba/abstractions';
4-
import { NgtsCenter } from 'angular-three-soba/staging';
4+
import { NgtsCenter, NgtsFloat } from 'angular-three-soba/staging';
55
import { makeDecorators, makeStoryFunction } from '../setup-canvas';
66

7+
@Component({
8+
standalone: true,
9+
template: `
10+
<ngts-center>
11+
<ngts-float>
12+
<ngts-text-3d
13+
text="hello
14+
world"
15+
font="helvetiker_regular.typeface.json"
16+
[options]="{
17+
curveSegments: 32,
18+
bevelEnabled: true,
19+
bevelSize: 0.04,
20+
bevelThickness: 0.1,
21+
height: 0.5,
22+
lineHeight: 0.5,
23+
letterSpacing: -0.06,
24+
size: 1.5,
25+
}"
26+
>
27+
<ngt-mesh-normal-material />
28+
</ngts-text-3d>
29+
</ngts-float>
30+
</ngts-center>
31+
32+
<ngt-axes-helper [scale]="2" />
33+
`,
34+
imports: [NgtsCenter, NgtsText3D, NgtsFloat],
35+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
36+
changeDetection: ChangeDetectionStrategy.OnPush,
37+
})
38+
class FloatText3DStory {}
39+
740
@Component({
841
standalone: true,
942
template: `
@@ -43,3 +76,7 @@ export default {
4376
export const Default = makeStoryFunction(DefaultText3DStory, {
4477
camera: { position: [-1.5, 1.5, 3.5] },
4578
});
79+
80+
export const Float = makeStoryFunction(FloatText3DStory, {
81+
camera: { position: [-1.5, 1.5, 3.5] },
82+
});

0 commit comments

Comments
 (0)