- Preparing search index...
- The search index is not available
Chess Bots
Function splineToSvgDrawAttribute
- splineToSvgDrawAttribute(spline: {
points: (({ type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; endPoint: { x: number; y: number; }; }) | ({ type: SplinePointType.QuadraticBezier; endPoint: { x: number; y: number; }; }))[];
start: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; };
}): string
-
Parameters
-
spline: {
points: (({ type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; endPoint: { x: number; y: number; }; }) | ({ type: SplinePointType.QuadraticBezier; endPoint: { x: number; y: number; }; }))[];
start: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; };
}
-
points: (({ type: SplinePointType.CubicBezier; controlPoint: { x: number; y: number; }; endPoint: { x: number; y: number; }; }) | ({ type: SplinePointType.QuadraticBezier; endPoint: { x: number; y: number; }; }))[]
-
start: { type: SplinePointType.StartPoint; point: { x: number; y: number; }; }
Returns string
Converts a spline to a string that can be used as the
d
attribute of an SVG path, for a visual display of the spline.Example
Returns
the SVG path for the spline.