Skip to content

Commit 4380c17

Browse files
committed
added hard example cases
1 parent 84eaffe commit 4380c17

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed
5.31 MB
Loading
1.54 MB
Loading
861 KB
Loading

src/FullImageSegmentationAnnotator/index.story.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ import React from "react"
55
import { storiesOf } from "@storybook/react"
66
import { action } from "@storybook/addon-actions"
77
import orange from "./orange.story.png"
8+
import hard1 from "./hard1.story.jpg"
9+
import hard2 from "./hard2.story.jpg"
10+
import hard3 from "./hard3.story.jpg"
811

912
import FullImageSegmentationAnnotator from "./"
1013

@@ -72,3 +75,45 @@ storiesOf("FullImageSegmentationAnnotator", module)
7275
/>
7376
</div>
7477
))
78+
.add("Hard 1, 8 Class", () => (
79+
<div style={{ width: "100vw", height: "100vh" }}>
80+
<FullImageSegmentationAnnotator
81+
images={[
82+
{
83+
name: "Hard",
84+
src: hard1,
85+
},
86+
]}
87+
regionClsList={["1", "2", "3", "4", "5", "6", "7", "8"]}
88+
onExit={action("onExit")}
89+
/>
90+
</div>
91+
))
92+
.add("Hard 2, 8 Class", () => (
93+
<div style={{ width: "100vw", height: "100vh" }}>
94+
<FullImageSegmentationAnnotator
95+
images={[
96+
{
97+
name: "Really Hard",
98+
src: hard2,
99+
},
100+
]}
101+
regionClsList={["1", "2", "3", "4", "5", "6", "7", "8"]}
102+
onExit={action("onExit")}
103+
/>
104+
</div>
105+
))
106+
.add("Hard 3, 8 Class", () => (
107+
<div style={{ width: "100vw", height: "100vh" }}>
108+
<FullImageSegmentationAnnotator
109+
images={[
110+
{
111+
name: "Extremely Hard",
112+
src: hard3,
113+
},
114+
]}
115+
regionClsList={["1", "2", "3", "4", "5", "6", "7", "8"]}
116+
onExit={action("onExit")}
117+
/>
118+
</div>
119+
))

0 commit comments

Comments
 (0)