-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: storybook add stories for three-coverage-heatmap Renderer.
- Loading branch information
1 parent
f0f4f90
commit 246b2d5
Showing
6 changed files
with
105 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -190,6 +190,4 @@ function App() { | |
}; | ||
} | ||
|
||
const instance = new App(); | ||
|
||
export default instance; | ||
export default App; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import Renderer from "three-coverage-heatmap"; | ||
export default Renderer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
import Renderer from "./Renderer"; | ||
import { wallsAABBs, furnitureAABBs, getPlanes } from "./data"; | ||
|
||
export default { | ||
title: "three-coverage-heatmap/Renderer", | ||
tags: ["autodocs"], | ||
component: Renderer, | ||
parameters: { | ||
layout: "fullscreen", | ||
}, | ||
}; | ||
|
||
export const ShowroomFloorAp = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: false, | ||
signalIntensity: [10], | ||
signals: [[0, 1e-3, 8.1]], | ||
aabbs: [...wallsAABBs, ...furnitureAABBs], | ||
planes: getPlanes(0.8), | ||
}, | ||
}; | ||
|
||
export const ShowroomCeilingAp = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: false, | ||
signalIntensity: [10], | ||
signals: [[0, 2.0, 8.1]], | ||
aabbs: [...wallsAABBs, ...furnitureAABBs], | ||
planes: getPlanes(0.8), | ||
}, | ||
}; | ||
|
||
export const ShowroomTwoAps = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: false, | ||
signalIntensity: [10, 10], | ||
signals: [ | ||
[0, 1.1, -4], | ||
[0, 2.0, 8.1], | ||
], | ||
aabbs: [...wallsAABBs, ...furnitureAABBs], | ||
planes: getPlanes(0.8), | ||
}, | ||
}; | ||
|
||
export const ShowroomIndexMap = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: true, | ||
signalIntensity: [10, 10], | ||
signals: [ | ||
[0, 1.1, -4], | ||
[0, 2.0, 8.1], | ||
], | ||
aabbs: [...wallsAABBs, ...furnitureAABBs], | ||
planes: getPlanes(0.8), | ||
}, | ||
}; | ||
|
||
export const withoutDoor = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: false, | ||
signalIntensity: [10, 10], | ||
signals: [ | ||
[0, 1.1, -4], | ||
[0, 2.0, 8.1], | ||
], | ||
aabbs: [...wallsAABBs, ...furnitureAABBs], | ||
}, | ||
}; | ||
|
||
export const withoutFurniture = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: false, | ||
signalIntensity: [10, 10], | ||
signals: [ | ||
[0, 1.1, -4], | ||
[0, 2.0, 8.1], | ||
], | ||
aabbs: [...wallsAABBs], | ||
}, | ||
}; | ||
|
||
export const withoutWall = { | ||
args: { | ||
texture: "./floorplan.png", | ||
isSignalIndex: false, | ||
signalIntensity: [10, 10], | ||
signals: [ | ||
[0, 1.1, -4], | ||
[0, 2.0, 8.1], | ||
], | ||
}, | ||
}; |