import { PubSub } from 'ray-eventpool';
import { ELE_CATALOG_TOPIC } from './../modelConf/stageConf';

export const closeCatalog = () => {
  const catalogOptions = {
    eleType: '',
    sourceId: '',
    position: { left: 0, top: 0 },
    catalogs: []
  };
  PubSub.publish(ELE_CATALOG_TOPIC.NORMAL, {
    catalogVisible: false,
    catalogOptions
  });
};

