Skip to content

Commit

Permalink
feat(LayerManager): export getLayersCount (gravity-ui#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
yndx-madfriend authored and zamkovskaya committed Aug 7, 2023
1 parent 8681cd1 commit 97064dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ export {useOnFocusOutside} from './utils/useOnFocusOutside';
export * from './utils/interactions';
export * from './utils/xpath';
export * from './utils/useFileInput/useFileInput';
export {getLayersCount} from './utils/LayerManager';
4 changes: 4 additions & 0 deletions src/components/utils/LayerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,7 @@ class LayerManager {
}

export const layerManager = new LayerManager();

export const getLayersCount = () => {
return layerManager.getLayersCount();
};

0 comments on commit 97064dd

Please sign in to comment.