Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FHL] Part 1: Image Selection - selectImage core api #1284

Merged
merged 18 commits into from
Sep 22, 2022

Conversation

juliaroldi
Copy link
Contributor

Add a new selectImage api experimental feature. With this change is possible to select an image using editor select api, also it is possible to detect when an image is selected using the getSelectionRangeEx api.
Also an interface playground was add to make it easier to debug selection inside the editor.

@@ -174,7 +174,6 @@ export default class PickerPlugin<T extends PickerDataProvider = PickerDataProvi

case PluginEventType.KeyDown:
this.eventHandledOnKeyDown = false;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change here

if (arg1 && 'rows' in arg1) {
const selection = core.api.selectTable(core, arg1, <TableSelection>arg2);
core.domEvent.tableSelectionRange = selection;

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change here

@juliaroldi juliaroldi changed the title Part 1: Image Selection - selectImage core api [FHL] Part 1: Image Selection - selectImage core api Sep 21, 2022
@juliaroldi juliaroldi merged commit dda80b1 into master Sep 22, 2022
@JiuqingSong JiuqingSong deleted the fhl/juliaroldi/imageSelect-api branch October 31, 2022 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants