mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 22:57:57 +01:00
26 lines
926 B
JavaScript
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,
|
||
|
};
|