-
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
5a1ce48
commit 1e0c3d3
Showing
3 changed files
with
90 additions
and
32 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import { Meta } from '@storybook/react'; | ||
import { EditorMode } from './../../../index'; | ||
import Annotation from './../../Annotation'; | ||
import { | ||
argTypes, | ||
OvalTemplateWithExistingAnnotations, | ||
PointTemplateWithExistingAnnotations, | ||
RectangleTemplateWithExistingAnnotations, | ||
} from './../Common/AnnotationStoryTemplate'; | ||
|
||
const meta: Meta = { | ||
title: 'EditMode/ReadOnly', | ||
component: Annotation, | ||
argTypes, | ||
parameters: { | ||
controls: { expanded: true }, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Oval = OvalTemplateWithExistingAnnotations.bind({}); | ||
Oval.args = { | ||
editorMode: EditorMode.ReadOnly, | ||
onAnnotationSelect: (annotation) => | ||
console.log('Annotation Selected : ', annotation), | ||
toolBarOptions: { | ||
showToolBar: false, | ||
}, | ||
}; | ||
|
||
export const Rectangle = RectangleTemplateWithExistingAnnotations.bind({}); | ||
Rectangle.args = { | ||
editorMode: EditorMode.ReadOnly, | ||
onAnnotationSelect: (annotation) => | ||
console.log('Annotation Selected : ', annotation), | ||
toolBarOptions: { | ||
showToolBar: false, | ||
}, | ||
}; | ||
|
||
export const Point = PointTemplateWithExistingAnnotations.bind({}); | ||
Point.args = { | ||
editorMode: EditorMode.ReadOnly, | ||
onAnnotationSelect: (annotation) => | ||
console.log('Annotation Selected : ', annotation), | ||
toolBarOptions: { | ||
showToolBar: 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