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.
Files changed (36) hide show
  1. package/dist/unpkg/worldorbit-viewer.min.js +20 -20
  2. package/dist/unpkg/worldorbit.js +14 -1
  3. package/dist/unpkg/worldorbit.min.js +24 -24
  4. package/package.json +1 -1
  5. package/packages/core/dist/atlas-edit.d.ts +11 -0
  6. package/packages/core/dist/atlas-edit.js +210 -0
  7. package/packages/core/dist/diagnostics.d.ts +10 -0
  8. package/packages/core/dist/diagnostics.js +109 -0
  9. package/packages/core/dist/draft-parse.d.ts +3 -0
  10. package/packages/core/dist/draft-parse.js +642 -0
  11. package/packages/core/dist/draft.d.ts +15 -0
  12. package/packages/core/dist/draft.js +343 -0
  13. package/packages/core/dist/errors.d.ts +7 -0
  14. package/packages/core/dist/errors.js +16 -0
  15. package/packages/core/dist/format.d.ts +4 -0
  16. package/packages/core/dist/format.js +364 -0
  17. package/packages/core/dist/index.d.ts +28 -0
  18. package/packages/core/dist/index.js +44 -0
  19. package/packages/core/dist/load.d.ts +4 -0
  20. package/packages/core/dist/load.js +130 -0
  21. package/packages/core/dist/markdown.d.ts +2 -0
  22. package/packages/core/dist/markdown.js +37 -0
  23. package/packages/core/dist/normalize.d.ts +2 -0
  24. package/packages/core/dist/normalize.js +304 -0
  25. package/packages/core/dist/parse.d.ts +2 -0
  26. package/packages/core/dist/parse.js +133 -0
  27. package/packages/core/dist/scene.d.ts +3 -0
  28. package/packages/core/dist/scene.js +1500 -0
  29. package/packages/core/dist/schema.d.ts +8 -0
  30. package/packages/core/dist/schema.js +298 -0
  31. package/packages/core/dist/tokenize.d.ts +4 -0
  32. package/packages/core/dist/tokenize.js +68 -0
  33. package/packages/core/dist/types.d.ts +382 -0
  34. package/packages/core/dist/types.js +1 -0
  35. package/packages/core/dist/validate.d.ts +2 -0
  36. package/packages/core/dist/validate.js +56 -0
@@ -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.set(event.pointerId, getViewportPointFromClient(event.clientX, event.clientY));
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
  }