wisemapping-frontend/packages/web2d/storybook/src/stories/Element.EventsRegistration.stories.js
2023-01-30 04:10:57 +00:00

26 lines
926 B
JavaScript

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,
};