| 123456789101112131415161718192021222324252627282930 |
- import type { CSSUnitValue } from '../css';
- import type { DisplayObjectConfig } from '../dom';
- import type { BaseStyleProps, ParsedBaseStyleProps } from '../types';
- import { DisplayObject } from './DisplayObject';
- export interface GroupStyleProps extends BaseStyleProps {
- x?: number | string;
- y?: number | string;
- width?: number | string;
- height?: number | string;
- }
- export interface ParsedGroupStyleProps extends ParsedBaseStyleProps {
- x: CSSUnitValue;
- y: CSSUnitValue;
- width?: CSSUnitValue;
- height?: CSSUnitValue;
- }
- /**
- * its attributes are inherited by its children.
- * @see https://developer.mozilla.org/zh-CN/docs/Web/SVG/Element/g
- *
- * @example
- * <g fill="white" stroke="green" stroke-width="5">
- <circle cx="40" cy="40" r="25" />
- <circle cx="60" cy="60" r="25" />
- </g>
- */
- export declare class Group extends DisplayObject {
- constructor({ style, ...rest }?: DisplayObjectConfig<GroupStyleProps>);
- }
- //# sourceMappingURL=Group.d.ts.map
|