Files
lan-manager/web/node_modules/@antv/g-svg/esm/shape/path.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

38 lines
1.1 KiB
TypeScript

/**
* @fileoverview path
* @author dengfuping_develop@163.com
*/
import { Point } from '@antv/g-base';
import ShapeBase from './base';
declare class Path extends ShapeBase {
type: string;
canFill: boolean;
canStroke: boolean;
getDefaultAttrs(): {
startArrow: boolean;
endArrow: boolean;
lineWidth: number;
lineAppendWidth: number;
strokeOpacity: number;
fillOpacity: number;
matrix: any;
opacity: number;
};
createPath(context: any, targetAttrs: any): void;
_formatPath(value: any): any;
/**
* Get total length of path
* 尽管通过浏览器的 SVGPathElement.getTotalLength() 接口获取的 path 长度,
* 与 Canvas 版本通过数学计算的方式得到的长度有一些细微差异,但最大误差在个位数像素,精度上可以能接受
* @return {number} length
*/
getTotalLength(): any;
/**
* Get point according to ratio
* @param {number} ratio
* @return {Point} point
*/
getPoint(ratio: number): Point;
}
export default Path;