worldorbit 2.5.11 → 2.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/unpkg/worldorbit-viewer.min.js +20 -20
- package/dist/unpkg/worldorbit.js +14 -1
- package/dist/unpkg/worldorbit.min.js +24 -24
- package/package.json +1 -1
- package/packages/core/dist/atlas-edit.d.ts +11 -0
- package/packages/core/dist/atlas-edit.js +210 -0
- package/packages/core/dist/diagnostics.d.ts +10 -0
- package/packages/core/dist/diagnostics.js +109 -0
- package/packages/core/dist/draft-parse.d.ts +3 -0
- package/packages/core/dist/draft-parse.js +642 -0
- package/packages/core/dist/draft.d.ts +15 -0
- package/packages/core/dist/draft.js +343 -0
- package/packages/core/dist/errors.d.ts +7 -0
- package/packages/core/dist/errors.js +16 -0
- package/packages/core/dist/format.d.ts +4 -0
- package/packages/core/dist/format.js +364 -0
- package/packages/core/dist/index.d.ts +28 -0
- package/packages/core/dist/index.js +44 -0
- package/packages/core/dist/load.d.ts +4 -0
- package/packages/core/dist/load.js +130 -0
- package/packages/core/dist/markdown.d.ts +2 -0
- package/packages/core/dist/markdown.js +37 -0
- package/packages/core/dist/normalize.d.ts +2 -0
- package/packages/core/dist/normalize.js +304 -0
- package/packages/core/dist/parse.d.ts +2 -0
- package/packages/core/dist/parse.js +133 -0
- package/packages/core/dist/scene.d.ts +3 -0
- package/packages/core/dist/scene.js +1500 -0
- package/packages/core/dist/schema.d.ts +8 -0
- package/packages/core/dist/schema.js +298 -0
- package/packages/core/dist/tokenize.d.ts +4 -0
- package/packages/core/dist/tokenize.js +68 -0
- package/packages/core/dist/types.d.ts +382 -0
- package/packages/core/dist/types.js +1 -0
- package/packages/core/dist/validate.d.ts +2 -0
- package/packages/core/dist/validate.js +56 -0
package/dist/unpkg/worldorbit.js
CHANGED
|
@@ -5426,6 +5426,9 @@ var WorldOrbit = (() => {
|
|
|
5426
5426
|
touchPoints.set(event.pointerId, point);
|
|
5427
5427
|
if (touchPoints.size === 2) {
|
|
5428
5428
|
touchGesture = createTouchGestureState(scene, state, touchPoints);
|
|
5429
|
+
} else if (touchPoints.size === 1) {
|
|
5430
|
+
dragDistance = 0;
|
|
5431
|
+
suppressClick = false;
|
|
5429
5432
|
}
|
|
5430
5433
|
return;
|
|
5431
5434
|
}
|
|
@@ -5443,7 +5446,9 @@ var WorldOrbit = (() => {
|
|
|
5443
5446
|
if (!behavior.touch || !touchPoints.has(event.pointerId)) {
|
|
5444
5447
|
return;
|
|
5445
5448
|
}
|
|
5446
|
-
touchPoints.
|
|
5449
|
+
const prevPoint = touchPoints.get(event.pointerId);
|
|
5450
|
+
const nextPoint2 = getViewportPointFromClient(event.clientX, event.clientY);
|
|
5451
|
+
touchPoints.set(event.pointerId, nextPoint2);
|
|
5447
5452
|
if (touchPoints.size === 2) {
|
|
5448
5453
|
if (!touchGesture) {
|
|
5449
5454
|
touchGesture = createTouchGestureState(scene, state, touchPoints);
|
|
@@ -5454,6 +5459,14 @@ var WorldOrbit = (() => {
|
|
|
5454
5459
|
const deltaX2 = current.center.x - touchGesture.startViewportCenter.x;
|
|
5455
5460
|
const deltaY2 = current.center.y - touchGesture.startViewportCenter.y;
|
|
5456
5461
|
updateState(panViewerState(zoomedState, deltaX2, deltaY2));
|
|
5462
|
+
} else if (touchPoints.size === 1) {
|
|
5463
|
+
const deltaX2 = nextPoint2.x - prevPoint.x;
|
|
5464
|
+
const deltaY2 = nextPoint2.y - prevPoint.y;
|
|
5465
|
+
dragDistance += Math.abs(deltaX2) + Math.abs(deltaY2);
|
|
5466
|
+
if (dragDistance > 2) {
|
|
5467
|
+
suppressClick = true;
|
|
5468
|
+
}
|
|
5469
|
+
updateState(panViewerState(state, deltaX2, deltaY2));
|
|
5457
5470
|
}
|
|
5458
5471
|
return;
|
|
5459
5472
|
}
|