/** * @license * Copyright Andrey Chalkin . All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/L2jLiga/xd2svg/LICENSE */ import { Artboard } from './artboard'; export interface Path { type: 'path'; path: string; } export interface CompoundPath { type: 'compound'; path: string; children: Artboard[]; } export interface Rectangle { type: 'rect'; x: number; y: number; r?: number[]; width: number; height: number; } export interface Circle { type: 'circle'; cx: number; cy: number; r: number; } export interface Ellipse { type: 'ellipse'; cx: number; cy: number; rx: number; ry: number; } export interface Line { type: 'line'; x1: number; y1: number; x2: number; y2: number; } export declare type Shape = Path | CompoundPath | Rectangle | Circle | Ellipse | Line;