HotSpot.d.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { FC, ReactNode } from "react";
  2. import { EventCallback } from "../types";
  3. export interface HotspotProps {
  4. name: string;
  5. children?: ReactNode;
  6. url?: string;
  7. /**
  8. * @see https://krpano.com/docu/xml/?version=121#layer.type
  9. */
  10. type?: "image" | "text";
  11. keep?: boolean;
  12. visible?: boolean;
  13. enabled?: boolean;
  14. handCursor?: boolean;
  15. cursor?: string;
  16. maskChildren?: boolean;
  17. zOrder?: string;
  18. style?: string;
  19. /**
  20. * 水平方向
  21. */
  22. ath?: number;
  23. /**
  24. * 垂直方向
  25. */
  26. atv?: number;
  27. edge?: string;
  28. zoom?: boolean;
  29. distorted?: boolean;
  30. rx?: number;
  31. ry?: number;
  32. rz?: number;
  33. width?: string;
  34. height?: string;
  35. /**
  36. * 比例
  37. * @default 0.5
  38. */
  39. scale?: number;
  40. rotate?: number;
  41. alpha?: number;
  42. bg?: boolean;
  43. bgcolor?: string;
  44. bgalpha?: number;
  45. bgborder?: number;
  46. bgbordermode?: "outside" | "inside";
  47. bgborderblend?: boolean;
  48. onOver?: EventCallback;
  49. onHover?: EventCallback;
  50. onOut?: EventCallback;
  51. onDown?: EventCallback | string;
  52. onUp?: EventCallback;
  53. onClick?: EventCallback;
  54. onLoaded?: EventCallback;
  55. }
  56. export declare const HotSpot: FC<HotspotProps>;
  57. //# sourceMappingURL=HotSpot.d.ts.map