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

8
package-lock.json generated
View File

@ -30,7 +30,7 @@
"leafdoc": "^2.3.0", "leafdoc": "^2.3.0",
"lint-staged": "^13.0.3", "lint-staged": "^13.0.3",
"mocha": "^10.0.0", "mocha": "^10.0.0",
"prosthetic-hand": "^1.4.0", "prosthetic-hand": "github:Leaflet/prosthetic-hand",
"rollup": "^3.2.1", "rollup": "^3.2.1",
"rollup-plugin-git-version": "^0.3.1", "rollup-plugin-git-version": "^0.3.1",
"simple-git": "^3.14.1", "simple-git": "^3.14.1",
@ -5218,9 +5218,9 @@
}, },
"node_modules/prosthetic-hand": { "node_modules/prosthetic-hand": {
"version": "1.4.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/prosthetic-hand/-/prosthetic-hand-1.4.0.tgz", "resolved": "git+ssh://git@github.com/Leaflet/prosthetic-hand.git#67fbb5d483e3b89a84f694522be77a0f185ee4ea",
"integrity": "sha512-H0YgNfPFkO6x00Viw8+6LnqYisivAt8i3enoLnCxRUlT80DM/9i99BVBcKGUosPJ635CxlJMsYbjYLHCFpvF2w==", "dev": true,
"dev": true "license": "Beerware"
}, },
"node_modules/proxy-from-env": { "node_modules/proxy-from-env": {
"version": "1.1.0", "version": "1.1.0",

View File

@ -25,7 +25,7 @@
"leafdoc": "^2.3.0", "leafdoc": "^2.3.0",
"lint-staged": "^13.0.3", "lint-staged": "^13.0.3",
"mocha": "^10.0.0", "mocha": "^10.0.0",
"prosthetic-hand": "^1.4.0", "prosthetic-hand": "github:Leaflet/prosthetic-hand",
"rollup": "^3.2.1", "rollup": "^3.2.1",
"rollup-plugin-git-version": "^0.3.1", "rollup-plugin-git-version": "^0.3.1",
"simple-git": "^3.14.1", "simple-git": "^3.14.1",

View File

@ -13,6 +13,7 @@ Reloaded before every execution run.
{ {
"imports": { "imports": {
"leaflet": "/base/dist/leaflet-src.esm.js", "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" "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": { "imports": {
"leaflet": "/base/dist/leaflet-src.esm.js", "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" "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', customContextFile: 'spec/context.html',
customDebugFile: 'spec/debug.html', customDebugFile: 'spec/debug.html',
files: [ files: [
{pattern: 'node_modules/ui-event-simulator/*', included: false, served: true}, {pattern: 'node_modules/**', included: false, served: true},
'node_modules/prosthetic-hand/dist/prosthetic-hand.js',
{pattern: 'dist/**/*.js', included: false, served: true}, {pattern: 'dist/**/*.js', included: false, served: true},
{pattern: 'dist/**/*.png', included: false, served: true}, {pattern: 'dist/**/*.png', included: false, served: true},
{pattern: 'spec/setup.js', type: 'module'}, {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 UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer} from '../SpecHelper.js'; 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 {CircleMarker, FeatureGroup, LayerGroup, Map, Marker, Polygon, Polyline, Rectangle, Tooltip} from 'leaflet';
import Hand from 'prosthetic-hand';
import UIEventSimulator from 'ui-event-simulator'; import UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer} from '../SpecHelper.js'; 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'; import {createContainer, removeMapContainer} from '../../SpecHelper.js';
describe('Marker.Drag', () => { 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 UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer} from '../../SpecHelper.js'; 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 UIEventSimulator from 'ui-event-simulator';
import {createContainer, removeMapContainer, touchEventType} from '../../SpecHelper.js'; import {createContainer, removeMapContainer, touchEventType} from '../../SpecHelper.js';

View File

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