@octostar/map-component 0.3.2 → 0.3.4

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 (47) hide show
  1. package/README.md +14 -0
  2. package/dist/index.cjs +898 -475
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.mjs +898 -475
  5. package/dist/index.mjs.map +1 -1
  6. package/dist/types/components/layers-panel.d.ts +3 -1
  7. package/dist/types/components/layers-panel.d.ts.map +1 -1
  8. package/dist/types/components/map-editor-canvas.d.ts.map +1 -1
  9. package/dist/types/components/timebar.d.ts +7 -1
  10. package/dist/types/components/timebar.d.ts.map +1 -1
  11. package/dist/types/lib/custom-layer-stack.d.ts +2 -1
  12. package/dist/types/lib/custom-layer-stack.d.ts.map +1 -1
  13. package/dist/types/lib/label-pinning.d.ts +4 -1
  14. package/dist/types/lib/label-pinning.d.ts.map +1 -1
  15. package/dist/types/lib/paint-feature.d.ts +9 -27
  16. package/dist/types/lib/paint-feature.d.ts.map +1 -1
  17. package/dist/types/lib/selection-diff.d.ts +0 -51
  18. package/dist/types/lib/selection-diff.d.ts.map +1 -1
  19. package/dist/types/lib/selection-overlay.d.ts +0 -8
  20. package/dist/types/lib/selection-overlay.d.ts.map +1 -1
  21. package/dist/types/lib/selection-paint.d.ts +9 -1
  22. package/dist/types/lib/selection-paint.d.ts.map +1 -1
  23. package/dist/types/lib/selection-state.d.ts +2 -2
  24. package/dist/types/lib/selection-state.d.ts.map +1 -1
  25. package/dist/types/lib/shard-locator.d.ts +2 -0
  26. package/dist/types/lib/shard-locator.d.ts.map +1 -1
  27. package/dist/types/lib/shard-pipeline.d.ts +4 -5
  28. package/dist/types/lib/shard-pipeline.d.ts.map +1 -1
  29. package/dist/types/lib/shard-registry.d.ts +0 -28
  30. package/dist/types/lib/shard-registry.d.ts.map +1 -1
  31. package/dist/types/lib/timeline-index.d.ts +56 -0
  32. package/dist/types/lib/timeline-index.d.ts.map +1 -0
  33. package/dist/types/lib/timeline-state.d.ts +64 -0
  34. package/dist/types/lib/timeline-state.d.ts.map +1 -0
  35. package/dist/types/lib/timeline-window.d.ts +19 -0
  36. package/dist/types/lib/timeline-window.d.ts.map +1 -0
  37. package/dist/types/lib/trace-group-suggestion.d.ts +17 -0
  38. package/dist/types/lib/trace-group-suggestion.d.ts.map +1 -0
  39. package/dist/types/lib/trace-groups.d.ts +6 -5
  40. package/dist/types/lib/trace-groups.d.ts.map +1 -1
  41. package/dist/types/lib/trace-timeline.d.ts +56 -49
  42. package/dist/types/lib/trace-timeline.d.ts.map +1 -1
  43. package/dist/types/lib/visible-feature-count.d.ts +18 -4
  44. package/dist/types/lib/visible-feature-count.d.ts.map +1 -1
  45. package/package.json +3 -1
  46. package/dist/types/lib/timeline-diff.d.ts +0 -43
  47. package/dist/types/lib/timeline-diff.d.ts.map +0 -1
package/README.md CHANGED
@@ -61,6 +61,20 @@ This outputs:
61
61
  - `dist/types/` - TypeScript declarations
62
62
  - `dist/styles.css` - Component styles
63
63
 
64
+ ## Testing
65
+
66
+ ```bash
67
+ pnpm test # Vitest: pure logic in Node, no map
68
+ pnpm test:e2e # Playwright: builds the demo app, drives the real map in Chromium
69
+ ```
70
+
71
+ The e2e suite (`e2e/`) runs in CI on every PR into `main`. It clicks, drags,
72
+ types and drops files through the component's UI, then checks what the map
73
+ holds: rendered features, feature state, source data and the panels. Install
74
+ the browser once with `pnpm exec playwright install chromium`.
75
+
76
+ How the suite works and how to add a test: [`e2e/README.md`](e2e/README.md).
77
+
64
78
  ## Usage (as a package)
65
79
 
66
80
  ```tsx