-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a7cff8
commit 3287685
Showing
6 changed files
with
96 additions
and
10 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
28 changes: 28 additions & 0 deletions
28
src/components/Stories/Overlay/CustomOverlayText.stories.tsx
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,28 @@ | ||
import { Meta } from '@storybook/react'; | ||
import { EditorMode } from './../../../index'; | ||
|
||
import Annotation from './../../Annotation'; | ||
import { | ||
argTypes, | ||
RectangleTemplateWithExistingAnnotations, | ||
} from './../Common/AnnotationStoryTemplate'; | ||
|
||
const meta: Meta = { | ||
title: 'Overlay/CustomOverlayText', | ||
component: Annotation, | ||
argTypes, | ||
parameters: { | ||
controls: { expanded: true }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default = RectangleTemplateWithExistingAnnotations.bind({}); | ||
Default.args = { | ||
editorMode: EditorMode.AnnotateOnly, | ||
overlayOptions: { | ||
displayOverlay: true, | ||
overlayText: 'Some custom text', | ||
}, | ||
}; |
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,27 @@ | ||
import { Meta } from '@storybook/react'; | ||
import { EditorMode } from './../../../index'; | ||
|
||
import Annotation from './../../Annotation'; | ||
import { | ||
argTypes, | ||
RectangleTemplateWithExistingAnnotations, | ||
} from './../Common/AnnotationStoryTemplate'; | ||
|
||
const meta: Meta = { | ||
title: 'Overlay/NoOverlay', | ||
component: Annotation, | ||
argTypes, | ||
parameters: { | ||
controls: { expanded: true }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default = RectangleTemplateWithExistingAnnotations.bind({}); | ||
Default.args = { | ||
editorMode: EditorMode.AnnotateOnly, | ||
overlayOptions: { | ||
displayOverlay: false, | ||
}, | ||
}; |
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