fix import modules

This commit is contained in:
vcoppe committed 2026-10-31 14:01:27 +01:00
1 parent 957f0c35ec
commit c3ce577e6d
6 files changed
+23 -7

No files matched your search

@@ -1,5 +1,6 @@
import { isMac } from '$lib/utils';
import Sortable, { type Direction } from 'sortablejs/Sortable';
import Sortable from './sortable';
import type { Direction } from 'sortablejs';
import { get, writable } from 'svelte/store';
import { tick } from 'svelte';
import { engine, type MoveTarget, type Selection } from '$lib/engine';
@@ -258,7 +259,7 @@ export class SortableFileList {
}
}
updateToSelection(e: Sortable.SortableEvent) {
updateToSelection(e: Sortable.SortableEvent & { originalEvent?: MouseEvent }) {
if (!this._sortable) return;
if (this._updatingSelection || this._applying) return;
this._updatingSelection = true;
@@ -0,0 +1,7 @@
import Sortable, { MultiDrag } from 'sortablejs';
// The ESM build leaves out the MultiDrag plugin. Mounting it twice throws, so it is done here
// rather than in a module that hot reloading runs again.
Sortable.mount(new MultiDrag());
export default Sortable;
@@ -5,7 +5,7 @@ import {
type MapLayerMouseEvent,
type VectorSourceSpecification,
} from 'maplibre-gl';
import { Viewer, type ViewerBearingEvent } from 'mapillary-js/dist/mapillary.module';
import { Viewer, type ViewerBearingEvent } from 'mapillary-js';
import 'mapillary-js/dist/mapillary.css';
import { mapCursor, MapCursorState } from '$lib/state/map-cursor';
import { ANCHOR_LAYER_KEY } from '$lib/components/map/style';