Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
lscoder committed Aug 2, 2023
1 parent b3699ba commit 54a0e5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5030,6 +5030,7 @@ function throttle(func: Function, wait?: number, options?: {

// @public (undocumented)
type ToolActivatedEventDetail = {
toolGroupId: string;
toolName: string;
toolBindingsOptions: SetToolBindingsType;
};
Expand Down
1 change: 1 addition & 0 deletions packages/tools/src/store/ToolGroupManager/ToolGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export default class ToolGroup implements IToolGroup {
this._renderViewports();

const eventDetail: ToolActivatedEventDetail = {
toolGroupId: this.id,
toolName,
toolBindingsOptions,
};
Expand Down
2 changes: 2 additions & 0 deletions packages/tools/src/types/EventTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ type InteractionEndEventDetail = InteractionEventDetail;
* The data that is passed to the event handler when a tool is activated.
*/
type ToolActivatedEventDetail = {
/** unique id of the toolGroup */
toolGroupId: string;
/** Tool name */
toolName: string;
/** Tool binding options */
Expand Down

0 comments on commit 54a0e5d

Please sign in to comment.