Skip to content

Commit

Permalink
only storysource add-on enabled - stories shown by default #171
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn committed Dec 6, 2021
1 parent 388e4de commit 4727662
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions storybook/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module.exports = {
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
],
addons: [
'@storybook/addon-actions/register',
'@storybook/addon-links',
//'@storybook/addon-actions/register',
//'@storybook/addon-links',
'@storybook/addon-storysource'
// '@storybook/addon-notes/register',
],
Expand Down
2 changes: 0 additions & 2 deletions storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
"@babylonjs/materials": "^4.2.0",
"@babylonjs/procedural-textures": "^4.2.0",
"@inlet/react-pixi": "^6.6.5",
"@storybook/addon-actions": "^6.3.12",
"@storybook/addon-links": "^6.3.12",
"@storybook/addon-storysource": "^6.3.12",
"@storybook/react": "^6.3.12",
"@storybook/theming": "^6.3.12",
Expand Down
7 changes: 0 additions & 7 deletions storybook/stories/babylonjs/GUI/grid.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ import { ValueAndUnit } from '@babylonjs/gui/2D/valueAndUnit';

export default { title: 'GUI' };

const Inspector = () => {
const scene = useScene();
scene.debugLayer.show();
return null;
}

const FullScreen = () => {
// should run on latest alphas of BabylonJS 5.0 alpha 63+
// https://github.com/BabylonJS/Babylon.js/pull/11569
Expand Down Expand Up @@ -75,7 +69,6 @@ export const Grid = () => (
<arcRotateCamera name='camera1' radius={7} beta={Math.PI / 4} alpha={Math.PI / 2} target={Vector3.Zero()} minZ={0.001} wheelPrecision={30} />
<hemisphericLight name='light1' intensity={0.7} direction={Vector3.Up()} />
<FullScreen />
<Inspector />
</Scene>
</Engine>
</div>
Expand Down

0 comments on commit 4727662

Please sign in to comment.