Skip to content

Commit

Permalink
Merge pull request #2 from jankuss/add-storybook
Browse files Browse the repository at this point in the history
Add storybook
  • Loading branch information
jankuss authored Dec 7, 2020
2 parents a715a75 + 1a1c99e commit d9a72fa
Show file tree
Hide file tree
Showing 7 changed files with 19,468 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/objects/room/Wall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,11 @@ export class Wall extends RoomObject {
1,
-0.5,
baseX + wallWidth - this.wallDepth,
baseY - this.wallHeight + wallWidth / 2 - this.wallDepth / 2
baseY -
this.wallHeight +
wallWidth / 2 -
this.wallDepth / 2 +
roomZ * 32
),
this.wallDepth
);
Expand Down
14 changes: 14 additions & 0 deletions storybook/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
typescript: {
check: false,
checkOptions: {},
},
"stories": [
"../stories/**/*.stories.mdx",
"../stories/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials"
]
}
4 changes: 4 additions & 0 deletions storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
Loading

0 comments on commit d9a72fa

Please sign in to comment.