Include prosthetic-hand from GitHub (#9033)

This commit is contained in:
Jon Koops
2023-07-16 14:28:37 +02:00
committed by GitHub
parent 854f71da03
commit 999ca73c7d
11 changed files with 18 additions and 11 deletions

View File

@ -13,6 +13,7 @@ Reloaded before every execution run.
{
"imports": {
"leaflet": "/base/dist/leaflet-src.esm.js",
"prosthetic-hand": "/base/node_modules/prosthetic-hand/lib/Hand.js",
"ui-event-simulator": "/base/node_modules/ui-event-simulator/ui-event-simulator.js"
}
}

View File

@ -15,6 +15,7 @@ just for immediate execution, without reporting to Karma server.
{
"imports": {
"leaflet": "/base/dist/leaflet-src.esm.js",
"prosthetic-hand": "/base/node_modules/prosthetic-hand/lib/Hand.js",
"ui-event-simulator": "/base/node_modules/ui-event-simulator/ui-event-simulator.js"
}
}

View File

@ -18,8 +18,7 @@ module.exports = function (/** @type {import('karma').Config} */ config) {
customContextFile: 'spec/context.html',
customDebugFile: 'spec/debug.html',
files: [
{pattern: 'node_modules/ui-event-simulator/*', included: false, served: true},
'node_modules/prosthetic-hand/dist/prosthetic-hand.js',
{pattern: 'node_modules/**', included: false, served: true},
{pattern: 'dist/**/*.js', included: false, served: true},
{pattern: 'dist/**/*.png', included: false, served: true},
{pattern: 'spec/setup.js', type: 'module'},

View File

@ -1,4 +1,5 @@
import {Map, Popup, Marker, FeatureGroup, Point, Icon, DivIcon, DomUtil, Polygon} from 'leaflet';
import {DivIcon, DomUtil, FeatureGroup, Icon, Map, Marker, Point, Polygon, Popup} from 'leaflet';
import Hand from 'prosthetic-hand';
import UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer} from '../SpecHelper.js';

View File

@ -1,4 +1,5 @@
import {CircleMarker, FeatureGroup, LayerGroup, Map, Marker, Polygon, Polyline, Rectangle, Tooltip} from 'leaflet';
import Hand from 'prosthetic-hand';
import UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer} from '../SpecHelper.js';

View File

@ -1,4 +1,5 @@
import {Map, Marker, DomUtil, Point} from 'leaflet';
import {DomUtil, Map, Marker, Point} from 'leaflet';
import Hand from 'prosthetic-hand';
import {createContainer, removeMapContainer} from '../../SpecHelper.js';
describe('Marker.Drag', () => {

View File

@ -1,4 +1,5 @@
import {Map, Polygon, DomEvent, Marker, Circle, SVG, stamp, Util, Polyline, LayerGroup, Canvas} from 'leaflet';
import {Canvas, Circle, DomEvent, LayerGroup, Map, Marker, Polygon, Polyline, SVG, Util, stamp} from 'leaflet';
import Hand from 'prosthetic-hand';
import UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer} from '../../SpecHelper.js';

View File

@ -1,4 +1,5 @@
import {Map, DomUtil, Point, LatLng, Marker} from 'leaflet';
import {DomUtil, LatLng, Map, Marker, Point} from 'leaflet';
import Hand from 'prosthetic-hand';
import UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer, touchEventType} from '../../SpecHelper.js';

View File

@ -1,4 +1,5 @@
import {LatLng, Map, Polygon, Rectangle} from 'leaflet';
import Hand from 'prosthetic-hand';
import {createContainer, removeMapContainer, touchEventType} from '../../SpecHelper.js';
describe('Map.TouchZoom', () => {