mirror of https://gitee.com/antv-l7/antv-l7
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
// tslint:disable-next-line:no-submodule-imports
|
|
import { addParameters, configure } from '@storybook/react';
|
|
import { create } from '@storybook/theming';
|
|
|
|
addParameters({
|
|
options: {
|
|
isFullscreen: false,
|
|
showAddonsPanel: false,
|
|
showSearchBox: false,
|
|
panelPosition: 'bottom',
|
|
hierarchySeparator: /\./,
|
|
// hierarchyRootSeparator: /\|/,
|
|
enableShortcuts: true,
|
|
theme: create({
|
|
base: 'light',
|
|
brandTitle: 'L7 for new architecture',
|
|
brandUrl: 'https://github.com/antvis/L7',
|
|
gridCellSize: 12,
|
|
}),
|
|
},
|
|
});
|
|
|
|
// automatically import all files ending in *.stories.tsx
|
|
|
|
// const req = require.context('../stories', true, /\.stories\.tsx$/);
|
|
// const req = require.context('../stories/layerbuild', true, /\.stories\.tsx$/);
|
|
// const req = require.context('../stories/Map', true, /\.stories\.tsx$/);
|
|
const req = require.context('../stories/template', true, /\.stories\.tsx$/);
|
|
// const req = require.context('../stories/MapPerformance', true, /\.stories\.tsx$/);
|
|
// const req = require.context('../stories/tile', true, /\.stories\.tsx$/);
|
|
|
|
function loadStories() {
|
|
req.keys().forEach(req);
|
|
}
|
|
|
|
configure(loadStories, module);
|