feat: generate data for highlithing element on client side
This commit is contained in:
@@ -474,4 +474,13 @@ export class WorkflowGenerator {
|
||||
}
|
||||
|
||||
|
||||
public generateDataForHighlighter = async (page: Page, coordinates: Coordinates) => {
|
||||
const rect = await getRect(page, coordinates);
|
||||
const displaySelector = await this.generateSelector(page, coordinates, ActionType.Click);
|
||||
if (rect) {
|
||||
this.socket.emit('highlighter', { rect, selector: displaySelector });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user