wisemapping-frontend/packages/web2d/storybook/src/stories/Element.EventsRegistration.stories.js

26 lines
926 B
JavaScript
Raw Normal View History

2023-01-30 05:10:57 +01:00
import { createEventRegistration } from './Element';
// More on default export: https://storybook.js.org/docs/html/writing-stories/introduction#default-export
export default {
title: 'Shapes/Element',
// More on argTypes: https://storybook.js.org/docs/html/api/argtypes
argTypes: {
enableForWorkspace: { control: 'boolean' },
enableForInnerCircle: { control: 'boolean' },
enableForOuterCircle: { control: 'boolean' },
stopEventPropagation: { control: 'boolean' },
onClick: { action: 'onClick' },
onMouseOver: { action: 'onMouseOver' },
onMouseOut: { action: 'onMouseOut' },
onDblClick: { action: 'onDblClick' },
},
};
export const EventsRegistration = (({ label, ...args }) => createEventRegistration({ label, ...args })).bind({});
EventsRegistration.args = {
enableForWorkspace: false,
enableForInnerCircle: false,
enableForOuterCircle: false,
stopEventPropagation: true,
};