|
| 1 | +import { NgtRadianPipeModule } from '@angular-three/core'; |
| 2 | +import { NgtPlaneGeometryModule } from '@angular-three/core/geometries'; |
| 3 | +import { NgtAxesHelperModule } from '@angular-three/core/helpers'; |
| 4 | +import { NgtMeshBasicMaterialModule } from '@angular-three/core/materials'; |
| 5 | +import { NgtMeshModule } from '@angular-three/core/meshes'; |
| 6 | +import { NgtSobaStars, NgtSobaStarsModule } from '@angular-three/soba/staging'; |
| 7 | +import { |
| 8 | + componentWrapperDecorator, |
| 9 | + Meta, |
| 10 | + moduleMetadata, |
| 11 | +} from '@storybook/angular'; |
| 12 | +import { setupCanvas, setupCanvasModules } from '../setup-canvas'; |
| 13 | + |
| 14 | +export default { |
| 15 | + title: 'Staging/Stars', |
| 16 | + component: NgtSobaStars, |
| 17 | + decorators: [ |
| 18 | + componentWrapperDecorator(setupCanvas()), |
| 19 | + moduleMetadata({ |
| 20 | + imports: [ |
| 21 | + ...setupCanvasModules, |
| 22 | + NgtRadianPipeModule, |
| 23 | + NgtSobaStarsModule, |
| 24 | + NgtMeshModule, |
| 25 | + NgtPlaneGeometryModule, |
| 26 | + NgtAxesHelperModule, |
| 27 | + NgtMeshBasicMaterialModule, |
| 28 | + ], |
| 29 | + }), |
| 30 | + ], |
| 31 | +} as Meta; |
| 32 | + |
| 33 | +export const Default = () => ({ |
| 34 | + template: ` |
| 35 | + <ngt-soba-stars></ngt-soba-stars> |
| 36 | + <ngt-mesh [rotation]="[90 | radian, 0, 0]"> |
| 37 | + <ngt-plane-geometry [args]="[100, 100, 4, 4]"></ngt-plane-geometry> |
| 38 | + <ngt-mesh-basic-material wireframe></ngt-mesh-basic-material> |
| 39 | + </ngt-mesh> |
| 40 | + <ngt-axes-helper></ngt-axes-helper> |
| 41 | + `, |
| 42 | +}); |
0 commit comments