diff --git a/lib/features/selection/core/index.js b/lib/features/selection/core/index.js new file mode 100644 index 000000000..a16012126 --- /dev/null +++ b/lib/features/selection/core/index.js @@ -0,0 +1,10 @@ +import Selection from '../Selection'; + + +/** + * @type { import('didi').ModuleDeclaration } + */ +export default { + __init__: [ 'selectionBehavior' ], + selection: [ 'type', Selection ] +}; diff --git a/lib/features/selection/index.js b/lib/features/selection/index.js index 27cb76763..472726312 100644 --- a/lib/features/selection/index.js +++ b/lib/features/selection/index.js @@ -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'; @@ -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 ] };