Skip to content

Commit

Permalink
feat(cpu event): added event pre stack new image for cpu (#565)
Browse files Browse the repository at this point in the history
* added event pre stack new image for cpu

* empty commit
  • Loading branch information
jlopes90 authored Apr 19, 2023
1 parent f3db864 commit b91076f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/RenderingEngine/StackViewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,14 @@ class StackViewport extends Viewport implements IStackViewport {
useRGBA: true,
};

const eventDetail: EventTypes.PreStackNewImageEventDetail = {
imageId,
imageIdIndex,
viewportId: this.id,
renderingEngineId: this.renderingEngineId,
};
triggerEvent(this.element, Events.PRE_STACK_NEW_IMAGE, eventDetail);

imageLoadPoolManager.addRequest(
sendRequest.bind(this, imageId, imageIdIndex, options),
requestType,
Expand Down

0 comments on commit b91076f

Please sign in to comment.