12345678910111213141516171819 |
- import inherits from 'inherits';
- import RuleProvider from 'lib/features/rules/RuleProvider';
- export default function SpaceRules(eventBus) {
- RuleProvider.call(this, eventBus);
- }
- SpaceRules.$inject = [ 'eventBus' ];
- inherits(SpaceRules, RuleProvider);
- SpaceRules.prototype.init = function() {
- this.addRule('shape.resize', function(context) {
- return context.shape.children.length > 0;
- });
- };
|