index.ts 529 B

12345678910111213141516
  1. // /**
  2. // * A palette that allows you to create BPMN _and_ custom elements.
  3. // */
  4. // import AutoPlace from 'bpmn-js/lib/features/auto-place/BpmnAutoPlace.js';
  5. // import { getYmNewShapePosition } from '../autoPlaceUtil';
  6. // function YmAutoPlace(eventBus: any) {
  7. // eventBus.on('autoPlace', function (context: any) {
  8. // var shape = context.shape,
  9. // source = context.source;
  10. // return getYmNewShapePosition(source, shape);
  11. // });
  12. // }
  13. //
  14. // YmAutoPlace.$inject = ['eventBus'];
  15. //
  16. // export default YmAutoPlace;