Skip to content

Commit

Permalink
feat: provide selection core module
Browse files Browse the repository at this point in the history
  • Loading branch information
nikku committed Aug 10, 2023
1 parent 3f29cf3 commit d0e6ac6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
10 changes: 10 additions & 0 deletions lib/features/selection/core/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Selection from '../Selection';


/**
* @type { import('didi').ModuleDeclaration }
*/
export default {
__init__: [ 'selectionBehavior' ],
selection: [ 'type', Selection ]
};
11 changes: 7 additions & 4 deletions lib/features/selection/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import InteractionEventsModule from '../interaction-events';
import OutlineModule from '../outline';
import SelectionCoreModule from './core';

import Selection from './Selection';
import SelectionVisuals from './SelectionVisuals';
import SelectionBehavior from './SelectionBehavior';

Expand All @@ -10,12 +10,15 @@ import SelectionBehavior from './SelectionBehavior';
* @type { import('didi').ModuleDeclaration }
*/
export default {
__init__: [ 'selectionVisuals', 'selectionBehavior' ],
__init__: [
'selectionVisuals',
'selectionBehavior'
],
__depends__: [
InteractionEventsModule,
OutlineModule
OutlineModule,
SelectionCoreModule
],
selection: [ 'type', Selection ],
selectionVisuals: [ 'type', SelectionVisuals ],
selectionBehavior: [ 'type', SelectionBehavior ]
};

0 comments on commit d0e6ac6

Please sign in to comment.