Skip to content
Spreadsheet Editor

Path

type Path = {
d: PathCommand[];
fill?: PathFillMode;
height?: PositiveCoordinate;
stroke?: boolean;
width?: PositiveCoordinate;
};
Property Type Description
d PathCommand[] Array of path commands (moveTo, lineTo, etc.) defining the path geometry.
fill? PathFillMode Fill mode for the path. Default "norm"
height? PositiveCoordinate Specifies the height, or maximum y coordinate that should be used for within the path coordinate system. This value determines the vertical placement of all points within the corresponding path as they will all be calculated using this height attribute as the max y coordinate.
stroke? boolean Whether this path should be stroked (outlined). Default false
width? PositiveCoordinate Specifies the width, or maximum x coordinate that should be used for within the path coordinate system. This value determines the horizontal placement of all points within the corresponding path as they will all be calculated using this width attribute as the max x coordinate.