mirror of
https://github.com/directus/directus.git
synced 2026-02-02 10:25:05 -05:00
Map layout and interface improvements (#8628)
* Map layout and interface improvements: * Disable drag to rotate * Add keyboard shortcut to delete items * Hide unselect button when selection is empty * Add display template setting * Fixed fitData button behaviour * Removed unused hoveredFeatureId * Added translations * Expose clearFilters to the layout.
This commit is contained in:
@@ -113,10 +113,6 @@ export class BoxSelectControl {
|
||||
const rect = container.getBoundingClientRect();
|
||||
// @ts-ignore
|
||||
return new Point(event.clientX - rect.left - container.clientLeft, event.clientY - rect.top - container.clientTop);
|
||||
// return {
|
||||
// x: event.clientX - rect.left - container.clientLeft,
|
||||
// y: event.clientY - rect.top - container.clientTop
|
||||
// };
|
||||
}
|
||||
|
||||
onKeyDown(event: KeyboardEvent): void {
|
||||
@@ -136,6 +132,10 @@ export class BoxSelectControl {
|
||||
this.map!.fire(`select.${yes ? 'enable' : 'disable'}`);
|
||||
}
|
||||
|
||||
showUnselect(yes: boolean): void {
|
||||
this.unselectButton.show(yes);
|
||||
}
|
||||
|
||||
onKeyUp(event: KeyboardEvent): void {
|
||||
if (event.key == 'Shift') {
|
||||
this.activate(false);
|
||||
|
||||
Reference in New Issue
Block a user