minimap.tsx 666 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. import { MinimapRender } from '@flowgram.ai/minimap-plugin';
  6. export const Minimap = () => (
  7. <div
  8. style={{
  9. position: 'absolute',
  10. left: 16,
  11. bottom: 72,
  12. zIndex: 100,
  13. width: 118,
  14. }}
  15. >
  16. <MinimapRender
  17. containerStyles={{
  18. pointerEvents: 'auto',
  19. position: 'relative',
  20. top: 'unset',
  21. right: 'unset',
  22. bottom: 'unset',
  23. left: 'unset',
  24. }}
  25. inactiveStyle={{
  26. opacity: 1,
  27. scale: 1,
  28. translateX: 0,
  29. translateY: 0,
  30. }}
  31. />
  32. </div>
  33. );