keyframeSvgPoint.tsx 600 B

123456789101112131415161718192021
  1. import * as React from "react";
  2. import { Vector2 } from 'babylonjs/Maths/math.vector';
  3. interface IKeyframeSvgPointProps {
  4. point: Vector2;
  5. }
  6. export class KeyframeSvgPoint extends React.Component<IKeyframeSvgPointProps>{
  7. constructor(props: IKeyframeSvgPointProps) {
  8. super(props);
  9. }
  10. render() {
  11. return (
  12. <>
  13. <svg x={this.props.point.x} y={this.props.point.y} style={{overflow:'visible'}}>
  14. <circle cx="0" cy="0" r="0.75" stroke="none" strokeWidth="0" fill="red" />
  15. </svg>
  16. </>
  17. )
  18. }
  19. }