Skip to content

Commit

Permalink
feat: add generators export #WIK-15546 (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmm-va authored May 27, 2024
1 parent fff28ee commit 2070382
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/new-impalas-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@plait/common': patch
'@plait/draw': patch
---

add export
2 changes: 1 addition & 1 deletion packages/common/src/utils/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,4 @@ export const addElementOfFocusedImage = (board: PlaitBoard, element: PlaitElemen

export const removeElementOfFocusedImage = (board: PlaitBoard) => {
BOARD_TO_ELEMENT_OF_FOCUSED_IMAGE.delete(board);
};
};
6 changes: 6 additions & 0 deletions packages/draw/src/generators/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './geometry-shape.generator';
export * from './line-active.generator';
export * from './line-auto-complete.generator';
export * from './single-text.generator';
export * from './text.generator';
export * from './table.generator';
5 changes: 0 additions & 5 deletions packages/draw/src/interfaces/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,3 @@ export interface PlaitCommonImage extends PlaitElement {
export interface PlaitImage extends PlaitCommonImage {
url: string;
}

// export interface PlaitEmojiImage extends PlaitElement {
// sourceType: 'emoji',
// emojiName: ''
// }
1 change: 1 addition & 0 deletions packages/draw/src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from './utils';
export * from './geometry.component';
export * from './line.component';
export * from './transforms';
export * from './generators/index';
1 change: 1 addition & 0 deletions packages/draw/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from './style';
export * from './hit';
export * from './memorize';
export * from './common';
export * from './snap-resizing';

0 comments on commit 2070382

Please sign in to comment.