Group.d.ts 988 B

123456789101112131415161718192021222324252627282930
  1. import type { CSSUnitValue } from '../css';
  2. import type { DisplayObjectConfig } from '../dom';
  3. import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
  4. import { DisplayObject } from './DisplayObject';
  5. export interface GroupStyleProps extends BaseStyleProps {
  6. x?: number | string;
  7. y?: number | string;
  8. width?: number | string;
  9. height?: number | string;
  10. }
  11. export interface ParsedGroupStyleProps extends ParsedBaseStyleProps {
  12. x: CSSUnitValue;
  13. y: CSSUnitValue;
  14. width?: CSSUnitValue;
  15. height?: CSSUnitValue;
  16. }
  17. /**
  18. * its attributes are inherited by its children.
  19. * @see https://developer.mozilla.org/zh-CN/docs/Web/SVG/Element/g
  20. *
  21. * @example
  22. * <g fill="white" stroke="green" stroke-width="5">
  23. <circle cx="40" cy="40" r="25" />
  24. <circle cx="60" cy="60" r="25" />
  25. </g>
  26. */
  27. export declare class Group extends DisplayObject {
  28. constructor({ style, ...rest }?: DisplayObjectConfig<GroupStyleProps>);
  29. }
  30. //# sourceMappingURL=Group.d.ts.map