11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
|
|
const clearAllAnnotations = async page => {
|
||
|
|
await page.evaluate(
|
||
|
|
({ cornerstoneTools }: AppTypes.Test) => {
|
||
|
|
cornerstoneTools.annotation.state.removeAllAnnotations();
|
||
|
|
},
|
||
|
|
await page.evaluateHandle('window')
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export { clearAllAnnotations };
|