Skip to content

Commit

Permalink
html_int: implement int.dnd_reorder_tabindex()
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-pH committed Oct 7, 2024
1 parent 275688b commit 31b73fc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/html_interactivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,14 @@ export class Interactive {
this.dragAndDropHandler?.setData(data);
}

/**
* reorder the tabindex of the containers
* @param container_names
*/
public dnd_reorder_tabindex(container_names: string[]){
this.dragAndDropHandler?.reorder_svg_container_tabindex(container_names);
}

/**
* Get the content size of a container
*/
Expand Down Expand Up @@ -1508,6 +1516,14 @@ class DragAndDropHandler {
}
}
}

public reorder_svg_container_tabindex(container_names: string[]){
for (let container_name of container_names) {
const g = this.get_container_outer_g(container_name);
if (g == undefined) continue;
this.dnd_svg.appendChild(g);
}
}

reposition_container_content(container_name : string){
let container = this.containers[container_name];
Expand Down

0 comments on commit 31b73fc

Please sign in to comment.