2
0

minimap.tsx 567 B

123456789101112131415161718192021222324252627282930
  1. import { MinimapRender } from '@flowgram.ai/minimap-plugin';
  2. export const Minimap = () => (
  3. <div
  4. style={{
  5. position: 'absolute',
  6. right: 16,
  7. bottom: 72,
  8. zIndex: 100,
  9. width: 118,
  10. }}
  11. >
  12. <MinimapRender
  13. containerStyles={{
  14. pointerEvents: 'auto',
  15. position: 'relative',
  16. top: 'unset',
  17. right: 'unset',
  18. bottom: 'unset',
  19. left: 'unset',
  20. }}
  21. inactiveStyle={{
  22. opacity: 1,
  23. scale: 1,
  24. translateX: 0,
  25. translateY: 0,
  26. }}
  27. />
  28. </div>
  29. );