SpaceRules.js 405 B

12345678910111213141516171819
  1. import inherits from 'inherits';
  2. import RuleProvider from 'lib/features/rules/RuleProvider';
  3. export default function SpaceRules(eventBus) {
  4. RuleProvider.call(this, eventBus);
  5. }
  6. SpaceRules.$inject = [ 'eventBus' ];
  7. inherits(SpaceRules, RuleProvider);
  8. SpaceRules.prototype.init = function() {
  9. this.addRule('shape.resize', function(context) {
  10. return context.shape.children.length > 0;
  11. });
  12. };